:root {
  --font-primary: "YekanFanum", Tahoma, Geneva, Verdana, sans-serif;
  --font-pelak: "pelak", Sans-serif;
  --font-bakh: "bakh";
  --font-yekan-alt: "yekanfanum";
  --font-b-yekan: "B-yekan";
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f9f9f9;
  --color-gray-200: #eeeeef;
  --color-gray-300: #dddddd;
  --color-gray-400: #cccccc;
  --color-gray-500: #b0b0b0;
  --color-gray-600: #999999;
  --color-primary: #3498db;
  --color-primary-dark: #2980b9;
  --color-accent: #0b93f6;
  --color-danger: #d33;
  --color-danger-alt: #e74c3c;
  --color-success: #50c074;
  --shadow-soft: 0 2px 5px rgba(0, 0, 0, 0.05);
  --transition-base: all 0.3s ease;
  --border-radius-base: 8px;
}

.ir1,
.ir2,
.ir1 .jet-listing-dynamic-field__content,
.ir2 .jet-listing-dynamic-field__content {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: bidi-override !important;
  height: 46px;
  letter-spacing: 10px;
  border: none !important;
  align-self: center;
  font-family: var(--font-pelak);
  font-size: 25px;
  font-weight: bold;
}

.ir1 .jet-listing-dynamic-field__content,
.ir2 .jet-listing-dynamic-field__content {
  letter-spacing: 4px !important;
}

.ir1:focus,
.ir2:focus {
  outline: unset !important;
}

.ir1::placeholder,
.ir2::placeholder {
  color: #c5c5c5;
}

.car-plate-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.car-plate-form [type="submit"] {
  width: 200px;
  border: unset !important;
  background-color: #7cefa1;
  font-family: var(--font-primary);
  border-radius: 7px;
  color: var(--color-white);
  transition: var(--transition-base);
}

.car-plate-form [type="submit"]:hover,
.car-plate-form [type="submit"]:focus {
  background-color: #50c074 !important;
}

.ir1-wrapper {
  width: 15% !important;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.ir2-wrapper {
  width: 60% !important;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

.ir2 {
  border-right: solid 1px #b0b0b0 !important;
  border-radius: unset !important;
  padding: 0 !important;
  text-align-last: center;
}

.ir1 {
  border-radius: unset !important;
  padding: 0 !important;
}

.ir-h .ir1,
.ir-h .ir2,
.ir-h .ir1 .jet-listing-dynamic-field__content,
.ir-h .ir2 .jet-listing-dynamic-field__content {
  height: 20px !important;
}

.ir-h .ir1 {
  width: 20% !important;
  justify-items: center;
  padding-right: 5px !important;
}

.ir-h .ir2 {
  width: 55% !important;
}

.plate-register .wp-block-column {
  align-content: center;
}

.plate-register {
  position: relative !important;
  width: 325px;
  height: 64px;
  border-radius: 12px;
  font-size: 24px;
  padding-right: 20px;
  background-color: var(--color-white);
  border: 1px solid;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.06);
  padding: 3px;
  display: flex !important;
  justify-self: center;
  font-weight: 650;
  line-height: 24px;
  color: #222;
  margin-top: 20px;
  gap: 10px;
}

.ir-h {
  gap: 5px !important;
  border-radius: 7px !important;
}

.plate-register:before,
#plate-register::before,
#plate-register-g::before {
  content: "";
  position: absolute;
  display: block;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #01286d;
  border-radius: 8px 4px 4px 8px;
  margin-right: 8px;
  height: 93%;
  display: flex;
  align-content: center;
  justify-content: center;
  z-index: 0;
  width: 34px;
}

#plate-register::after,
#plate-register-g::after {
  left: 6px;
  height: 26px;
  width: 18px;
}

#plate-register::before,
#plate-register-g::before {
  width: 25px;
  border-radius: 6px 3px 3px 6px !important;
  left: 2px !important;
}

.plate-register::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 30px;
  background-image: url("/wp-content/plugins/0gateepay/assets/images/iran-flag-dark.svg");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.ir-h .ir1::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 30px;
  background-image: url("/wp-content/plugins/0gateepay/assets/images/iran.svg");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.ir1-wrapper::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 9%;
  width: 35px;
  height: 10px;
  background-image: url("/wp-content/plugins/0gateepay/assets/images/iran.svg");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.custom-ir2-class {
  direction: ltr !important;
  text-align: center !important;
  unicode-bidi: bidi-override !important;
}

.plate-expire-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  gap: 5px;
  font-family: var(--font-primary);
  font-weight: 100;
}

.plate-expire-wrapper .date-range-dec {
  font-size: 12px;
}

.plate-expire-wrapper input {
  -webkit-appearance: none;
  appearance: none;
  width: 350px;
  height: 4px;
  border-radius: 5px;
  background-color: #c7c7c7;
  outline: none;
  direction: rtl;
  transform: rotateY(180deg);
}

.plate-expire-wrapper input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #3533a8;
  cursor: pointer;
}

#toast-container > .toast {
  font-family: var(--font-primary) !important;
}

th.col-ir1,
td.custom-ir1-class {
  width: 80px;
}

th.col-ir2,
td.custom-ir2-class {
  width: 60px;
}

.elementor-widget-divider {
  height: 2px !important;
}

p:not([class]) {
  display: none !important;
}

.p-not p:not([class]) {
  display: block !important;
}

.weather-box div.weather-top {
  display: flex;
  align-items: flex-start;
  max-height: 42px;
}

.weather-box {
  font-family: var(--font-primary);
}

.weather-temp {
  font-size: 25px;
  font-weight: bold;
}

.weather-box div h3 {
  font-size: 12px;
  font-weight: normal;
  line-height: 11px;
  height: 34px;
  display: flex;
  align-items: flex-end;
}

.weather-box div span {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0px;
  word-spacing: 0px;
  text-wrap: nowrap;
}

.delete-plate .elementor-shortcode {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  height: 100%;
}

.delete-plate span {
  width: 100%;
  height: 100%;
  text-align: center;
  cursor: pointer;
  color: red;
  font-size: 20px;
}

.guest-plate-block:hover .delete-plate {
  visibility: visible;
  opacity: 1;
}

.delete-plate {
  visibility: hidden;
  opacity: 0;
  position: absolute !important;
  top: 0px;
  height: 40px;
  background: #ffffffd6;
  z-index: 10;
  border-radius: 7px;
  border: 1px solid #00000054;
  transition: var(--transition-base);
  width: 200px !important;
}

@media (max-width: 1024px) {
  .delete-plate {
    visibility: visible;
    opacity: 1;
    position: absolute !important;
    top: 0px;
    height: 40px;
    z-index: 10;
    width: 30px !important;
    right: 0;
    font-size: 22px;
    background: unset !important;
    border-radius: unset !important;
    border: unset !important;
  }

  .guest-plate-block > .e-con-inner {
    margin-left: 0 !important;
    margin-right: 32px !important;
  }
}

.my-confirm-button {
  background-color: #d33 !important;
  color: var(--color-white) !important;
  font-family: var(--font-primary) !important;
}

.my-confirm-button:focus {
  border-color: #d33 !important;
}

.my-cancel-button {
  background-color: #3085d6 !important;
  color: var(--color-white) !important;
  font-family: var(--font-primary) !important;
  border: 0 !important;
  margin-right: 20px !important;
}

.swal2-html-container {
  font-family: var(--font-primary) !important;
}

.custom-date-class,
.custom-ir1-class {
  direction: ltr;
  text-align: right;
}

.jet-nav .menu-item:not(:has(.menu-item-link-top .fa-diamond))::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 1px;
  background-color: #eeeeef;
  justify-self: anchor-center;
}

.gep-menu .menu-item {
  cursor: pointer;
}

#pelak-output {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  margin: 0 auto;
  margin-top: 60px;
  width: 60%;
  padding: 10px;
  background-color: #f9f9f9;
  border: 2px solid var(--color-gray-300);
  border-radius: 5px;
  box-shadow: 0 2px 5px #8d8d8d8f;
  overflow: hidden;
  transition: top 0.5s ease-in-out;
  z-index: 9999;
}

#pelak-output.active {
  top: 0;
}

#pelak-output p {
  font-size: 1.2em;
  color: #333;
  margin: 5px 0;
}

.weather-box div img {
  border: none;
  border-radius: 0;
  box-shadow: none;
  height: 65px;
  max-width: unset !important;
  width: 65px !important;
}

.weather-svg {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 51px;
  height: 48px;
}

@media (max-width: 600px) {
  #pelak-output {
    font-size: 0.9em;
    padding: 8px;
  }
}

.invoice-table td {
  cursor: pointer;
}

.invoice-table,
#pelak-output {
  font-family: var(--font-primary);
}

.dwellers-table {
  font-family: var(--font-primary);
}

.dt-search {
  width: 30%;
  margin-bottom: 20px;
}

.dwellers-table .dt-paging {
  justify-self: left;
}

.weather-dbh3x svg {
  width: 22px;
  height: 22px;
}

.weather-temp {
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: center;
}

@media (max-width: 768px) {
  /* .weather-box {
        width: 128px;
    }

    .weather-box div img {
        width: 49px;
    }

    .weather-temp {
        font-size: 20px;
    }

    .weather-box div {
        flex-direction: row;
        justify-content: flex-end;

        height: 26px;

    }

    .weather-dbh3x svg {
        width: 16px;
        height: 16px;
    }

    .weather-dbh3x span {
        align-items: stretch;
    }

    .weather-dbh3x h3 {
        align-items: center !important;
        margin: 0;
        height: auto !important;
        text-wrap: nowrap;
        margin-top: 8px;
    } */

  .form-group {
    justify-self: center;
  }

  .cancel-reply-btn {
    font-size: 16px;
  }
}

.upload-form-wrapper {
  font-family: var(--font-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-gray-400);
  border-radius: 6px;
}

.upload-box {
  position: relative;
  border: 2px dashed var(--color-gray-400);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s;
  background-color: var(--color-white);
  width: 300px;
  align-content: center;
}

.upload-box:hover {
  border-color: #0073aa;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-label {
  font-size: 16px;
  color: #333;
}

.file-name {
  margin-top: 10px;
  font-size: 14px;
  color: #0073aa;
}

.form-group button {
  background-color: #2196f3;
  color: var(--color-white);
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.form-group button:hover,
.form-group button:focus {
  background-color: #2188f3;
}

#uploadResult {
  margin-top: 20px;
  text-align: center;
}

#remove-image {
  background-color: #dc3545;
  color: var(--color-white);
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

/* لودر دایره‌ای روی تصویر */
.image-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-base);
  display: none;
}

.image-loader::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 0px solid var(--color-white);
  border-top: 3px solid #e91e63;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toggle-password {
  all: unset !important;
  background: none !important;
  position: absolute !important;
  width: 10px !important;
  left: 20px !important;
  top: 35px !important;
}

#confirm_password::placeholder {
  color: #b8b8b8;
}

.form-group.password-field {
  max-width: 400px !important;
  position: relative !important;
}

#new_password,
#confirm_password {
  text-align: left;
  padding-left: 45px;
  font-family: sans-serif;
  direction: ltr;
}

.form-group button svg path {
  stroke: #818181;
}

#lakode-chat {
  border: 1px solid var(--color-gray-400);
  padding: 10px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border-radius: var(--border-radius-base);
  font-family: var(--font-primary);
  font-weight: 100;
  height: 87vh;
}

#messages {
  list-style: none;
  padding: 10px;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  background: white;
  overflow-x: hidden;
}

#messages li {
  max-width: 75%;
  width: fit-content;
  min-width: 100px;
  margin: 6px 0;
  border-radius: 20px;
  clear: both;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.3;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  padding: 8px 12px 8px 12px;
  font-family: var(--font-primary);
}

/* پیام‌های خودی (راست‌چین) */
#messages li.self {
  background-color: #dcf8c6;
  /* سبز روشن واتساپ */
  color: #000;
  margin-left: auto;
  text-align: right;
  border-bottom-right-radius: 3px;
}

/* پیام‌های دیگر (چپ‌چین) */
#messages li.other {
  background-color: var(--color-white);
  color: #000;
  margin-right: auto;
  text-align: left;
  border-bottom-left-radius: 3px;
  border: 1px solid var(--color-gray-300);
}

/* زمان پیام به صورت کوچک و کم رنگ */
#messages li .time {
  font-size: 10px;
  color: #999;
  display: block;
  margin-top: 4px;
}

#messages li.self .time {
  text-align: left;
}

#messages li.other .time {
  text-align: right;
}

#messages li .user {
  font-weight: 600;
  font-size: 10px;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

#input-area {
  position: relative;
  margin-top: 10px;
  display: flex;
  direction: ltr;
}

#chat-input {
  flex-grow: 1;
  padding: 10px 40px 10px 10px;
  font-size: 1rem;
  border: 1px solid var(--color-gray-400);
  border-radius: 15px 0 0 15px;
  outline: none;
  direction: rtl;
  box-sizing: border-box;
}

#send-btn {
  background-color: #0b93f6;
  color: var(--color-white);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 0 15px 15px 0;
}

#send-btn:disabled {
  background-color: #8ab4f8;
  cursor: not-allowed;
}

.audio-duration {
  font-size: 10px;
  color: #666;
  margin-left: 6px;
}

#record-btn,
#upload-btn {
  all: unset;
  padding: 10px;
  cursor: pointer;
}

#record-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50px !important;
  transform: translateY(-50%) !important;
  all: unset;
  cursor: pointer;
  font-size: 1.3rem;
  z-index: 10;
}

#messages li {
  position: relative;
  /* مهم برای جای‌گذاری مطلق دکمه */
}

#messages li .reply-btn {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translatey(-50%);

  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #d7d7d7;
  border: solid 1px;
  border-radius: 50%;
  height: 27px;
  width: 27px;
  justify-content: center;
  align-items: center;
  rotate: 15deg;
  font-size: 11px;
  padding: 0 !important;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

#messages li.self .reply-btn {
  left: -45px;
}

#messages li.other .reply-btn {
  right: -45px;
}

#messages li:hover .reply-btn {
  opacity: 1;
  visibility: visible;
}

.reply-pin-content {
  gap: 5px;
  display: flex;
  flex-direction: column;
  border-left: 3px solid rgb(11, 147, 246);
  padding: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.reply-pin-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(248 253 255);
  border: solid 1px #999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  z-index: 1;
}

.reply-pin-content {
  position: relative;
  z-index: 2;
}

.cancel-reply-btn {
  position: absolute;
  top: 4px;
  right: 10px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.reply-pin-content strong {
  font-weight: bold;
}

#messages li strong {
  font-weight: bold;
}

.reply-container {
  position: relative;
  width: 700px;
  padding: 11px 20px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 13px;
  color: rgb(51, 51, 51);
  cursor: default;
  position: absolute;
  bottom: 60px;
  left: 40px;
  overflow: hidden;
  box-shadow: 0px 12px 24px rgba(59, 78, 102, 0.08);
}

@media (max-width: 768px) {
  #lakode-chat {
    height: 80vh;
  }

  .reply-container {
    left: 7px;
    font-size: 12px;
    width: 96%;
  }

  #messages li audio {
    width: 200px !important;
  }

  #messages li .reply-btn {
    opacity: 1;
    visibility: visible;
  }

  #messages li.self .reply-btn {
    left: -35px;
  }

  #messages li.other .reply-btn {
    right: -35px;
  }

  #lakode-chat {
    border: unset !important;
    background: unset !important;
  }

  #messages {
    overflow-y: scroll;
  }

  li.self .dropdown-menu {
    right: -15px !important;
  }

  li.other .dropdown-menu {
    left: -15px !important;
  }
}

.reply-btn {
  margin-left: 8px;
}

.message-menu-container {
  display: inline-block;
  vertical-align: middle;
  position: absolute;
}

li.self .message-menu-container {
  left: 9px;
  top: 7px;
}

li.other .message-menu-container {
  right: 9px;
  top: 7px;
}

.ellipsis-btn {
  outline: none;
  padding: 0 !important;
  margin: 0 !important;
}

li.other .dropdown-menu {
  left: 0;
}

li.self .dropdown-menu {
  right: 0;
}

.elementor-element.elementor-element-173f9fb:has(#lakode-chat) {
  min-height: 83vh !important;
  margin-bottom: 0px !important;
}

.admin-msg {
  color: #999;
}

/*-----------POLLS--------------*/

#poll-builder-app {
  background: var(--color-white);
  border-radius: 10px;
  padding: 25px 35px;
  font-family: var(--font-primary);
  color: #505050;
}

#poll-builder-app h4 {
  margin-top: 31px;
  margin-bottom: 10px;
  font-weight: 900;
  font-size: 20px;
}

#poll-builder-app h2 {
  font-weight: 700;
  margin-bottom: 25px;
  color: #2c3e50;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}

#poll-builder-app label {
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
  color: #34495e;
}

#poll-builder-app input[type="text"],
#poll-builder-app input[type="date"],
#poll-builder-app select,
#poll-builder-app textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 7px;
  margin-bottom: 7px;
  border: 1.8px solid #d0d7de;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#poll-builder-app input[type="text"]:focus,
#poll-builder-app input[type="date"]:focus,
#poll-builder-app select:focus,
#poll-builder-app textarea:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 6px #74b9ff66;
}

.q-item .option-row {
  margin-bottom: 6px;
  gap: 7px;
}

.q-item .option-row input[type="text"] {
  width: 80%;
}

#poll-builder-app textarea {
  resize: vertical;
  min-height: 70px;
}

.samin-polls-req-qu {
  margin-top: 10px;
}

.poll-view {
  font-family: var(--font-primary);
}

.samin-polls {
  margin-bottom: 5px;
  margin-top: 10px;
}

.poll-menu-wrapper {
  position: absolute;
  left: 11px;
  top: 7px;
}

.poll-menu {
  position: absolute;
  background: var(--color-white);
  border: 1px solid var(--color-gray-400);
  padding: 5px;
  z-index: 100;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px;
  min-width: 120px;
  z-index: 1000;
  left: -5px;
  top: 18px;
}

.poll-menu a {
  display: inline-block;
  width: 100%;
}

#poll-builder-app p.samin-polls label input[type="checkbox"] {
  margin-left: 8px;
  transform: scale(1.15);
  vertical-align: middle;
  cursor: pointer;
}

#poll-builder-app p.samin-polls label {
  cursor: pointer;
  user-select: none;
}

.samin-polls-sub-buttons button,
.samin-polls button {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 22px;
  margin-right: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.5);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
}

.samin-polls-sub-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.samin-polls-sub-buttons button:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 5px 15px rgba(41, 128, 185, 0.7);
}

.samin-polls-sub-buttons button:active {
  transform: translateY(1px);
}

.poll-builder-app #questions {
  margin-top: 20px;
  margin-bottom: 25px;
}

.q-item {
  background: #f9faff;
  border: 1px solid #d6e0f0;
  border-radius: var(--border-radius-base);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 4px #dde8fc;
}

.q-item strong.q-title {
  font-size: 1.1rem;
  color: #2d3a54;
}

.q-item > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.q-item button.move-up,
.q-item button.move-down,
.q-item button.remove-q,
.q-item button.add-option {
  background-color: #5dade2;
  border: none;
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(93, 173, 226, 0.5);
  transition: background-color 0.3s ease;
}

.q-item button.move-up:hover,
.q-item button.move-down:hover,
.q-item button.remove-q:hover,
.q-item button.add-option:hover {
  background-color: #2874a6;
  box-shadow: 0 4px 12px rgba(40, 116, 166, 0.7);
}

.options-area label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #34495e;
}

.option-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.option-row input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  font-size: 1rem;
  border: 1.5px solid #a7b1c2;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.option-row input[type="text"]:focus {
  border-color: #2980b9;
  outline: none;
  box-shadow: 0 0 6px #74b9ff66;
}

.option-row button.remove-option {
  margin-left: 10px;
  background-color: #e74c3c;
  padding: 7px 14px;
  border-radius: 5px;
  border: none;
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}

.option-row button.remove-option:hover {
  background-color: #c0392b;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.7);
}

.poll-builder-app #builder-msg {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
}

.view-polls-created-date {
  color: #777;
  font-size: 0.9em;
}

.poll-response-form {
  font-family: var(--font-primary);
}

.poll-builder-app .poll-card {
  border: 1px solid var(--color-gray-300);
  padding: 15px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px;
}

.polls-loading {
  font-family: var(--font-primary);
}

.poll-card-view {
  position: relative;
  font-family: var(--font-primary);
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 200px;
}

.poll-card-view:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.poll-edit-btn {
  color: #444444;
  background-color: transparent;
  transition: var(--transition-base);
}

.poll-edit-btn:hover {
  color: #000000;

  background-color: #efefef;
}

.poll-delete-btn {
  color: #ff0055;
  background-color: transparent;
  transition: var(--transition-base);
}

.poll-delete-btn:hover {
  color: #ff0055;
  background-color: #ffdee9;
}

.poll-card-view h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 5px;
}

.poll-card-view .status-label {
  font-size: 0.85rem;
  color: #d33;
  margin-left: 8px;
}

.poll-card-view .date,
.poll-card-view .expiration {
  font-size: 0.9rem;
  color: #666;
  position: absolute;
  bottom: 5px;
  margin-bottom: 0;
}

.poll-card-view .date {
  left: 15px;
}

.poll-card-view .expiration {
  right: 15px;
}

.poll-card-view .poll-questions strong {
  display: block;
  margin-bottom: 5px;
  color: #6f6f6f;
  font-size: 14px;
}

.poll-card-view .poll-questions ul {
  padding-left: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  color: #555;
}

.poll-card {
  font-family: var(--font-primary);
}

.poll-question {
  margin-bottom: 10px;
}

/* پاپ‌آپ بک‌دراپ */
.poll-popup-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* محتوای پاپ‌آپ */
.poll-popup-content {
  background: var(--color-white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  color: #333;
  min-height: 250px;
}

/* دکمه بستن */
.poll-popup-close {
  all: unset;
  position: absolute;
  top: 12px;
  left: 15px;
  background: transparent;
  border: unset !important;
  font-size: 1.8rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.poll-popup-close:hover {
  background: transparent;
  box-shadow: unset !important;
  color: #333;
}

.poll-chart-area canvas {
  width: 100% !important;
  height: auto !important;
}

.poll-view .samin-review-res[type="button"] {
  all: unset;
  position: absolute;
  left: 33px;
  bottom: 45px;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.legend-item {
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.legend-item:hover {
  color: var(--color-primary-dark);
}

.poll-view .samin-review-res[type="button"]:hover {
  color: #2980b9;
}

.poll-response-form .poll-question label {
  display: inline-flex;
  vertical-align: middle;
  width: 100%;
  background: #f3f3f3e0;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  cursor: pointer;
  flex-direction: row;
  align-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.poll-response-form .poll-question label:hover {
  background: #e2e2e2e0;
}

.poll-status-active {
  background-color: #e6f7d4;
  /* سبز روشن */
}

.poll-status-expired {
  background-color: #f7d4d4;
  /* قرمز روشن */
}

.poll-status-inactive {
  background-color: #e0e0e0;
  /* طوسی */
}

/* Responsive */
@media (max-width: 640px) {
  #poll-builder-app {
    padding: 15px 20px;
  }

  .q-item {
    padding: 15px 16px;
  }

  .polls-button {
    padding: 10px 16px;
    margin-right: 8px;
    font-size: 0.95rem;
  }

  .option-row input[type="text"] {
    font-size: 0.95rem;
  }
}

/*--------------------------*/

.poll-results-wrap {
  max-width: 920px;
  margin: 18px auto;
}

.poll-main-title {
  text-align: center;
  margin-bottom: 18px;
}

.poll-card {
  background: var(--color-white);
  border-radius: 12px;
  /* box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); */
  /* padding: 18px; */
  margin-bottom: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.poll-meta {
  flex: 1 1 320px;
}

.poll-question {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #2a465e;
}

.poll-summary {
  color: #536270;
  font-size: 0.95rem;
}

.poll-chart-area {
  flex: 0 0 320px;
  width: 320px;
}

.poll-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: #404b55;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.poll-no-data {
  text-align: center;
  color: #777;
  padding: 18px;
}

#poll-popup-inner .poll-view h3 {
  font-family: var(--font-bakh);
}

@media (max-width: 740px) {
  .poll-chart-area {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

.poll-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}

.poll-comment-item {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poll-comment-header .user-info {
  display: flex;
  gap: 3px;
}

.poll-comment-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-name-date {
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.poll-candl {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  margin: 8px 0;
}

.poll-comment-user {
  font-weight: bold;
  font-size: 14px;
}

.poll-comment-date {
  font-size: 12px;
  color: #999;
}

.poll-comment-text {
  font-size: 14px;
  line-height: 1.4;
}

.poll-comment-actions {
  display: flex;
  align-items: center;
}

.poll-like-btn {
  border: unset !important;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  padding: 0 !important;
  margin: 0 !important;
  gap: 4px;
}

.poll-like-btn:hover,
.poll-like-btn:focus {
  background: unset;
  margin: 0;
  color: #000;
}

.poll-like-btn .like-icon {
  color: #e0245e;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.poll-like-btn .like-icon:hover {
  transform: scale(1.125);
}

.user-name-cm {
  width: 100%;
}

.voters-list,
#poll-votars-back,
#poll-popup-inner strong {
  font-family: var(--font-primary);
}

#poll-votars-back {
  margin-bottom: 10px;
  color: #6c6c6c;
}

.samin-polls-preview-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.samin-polls-preview-popup .popup-inner {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--border-radius-base);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: var(--font-primary);
}

body.no-scroll {
  overflow: hidden;
}

.gep-btn {
  all: unset;
  cursor: pointer;
  border: solid 1px #d6d6d6;
  padding: 3px 6px !important;
  border-radius: 5px;
  min-width: 45px;
  min-height: 23px;
  text-align: center;
  color: #367b8a !important;
}

.gep-btn:hover,
.gep-btn:focus {
  border-color: #367b8a;
  color: #007c97 !important;
  background-color: unset !important;
  text-decoration: unset !important;
}

.gep-btn:disabled,
.gep-btn.not {
  cursor: not-allowed;
  border-color: var(--color-gray-400);
  color: #aaa !important;
  background-color: #f5f5f5 !important;
  pointer-events: none;
  /* جلوگیری از کلیک */
}

.send-dew-key {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  width: 65px;
}

button.remove_dew_det.gep-btn {
  background: #fff4f4;
  border-color: #ffc9c9;
}

.color-green {
  color: green;
}

.color-red {
  color: red;
}

.close-ticke {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-primary);
  color: #999;
}

.receipt-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 101;
}

/* جعبه مودال */
.modal-box.modern-modal {
  background: var(--color-white);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: var(--font-primary);
}

.view-order-note-btn {
  width: 30px;
  height: 30px;
  padding: 0 !important;
  display: flex;
  flex-direction: row;
  align-content: center;
  align-items: center;
  justify-content: center;
}

/* هدر مودال */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
  font-weight: 600;
}

.resident-info {
  font-size: 14px;
  color: #555;
  font-weight: 400;
}

.close-modal {
  cursor: pointer;
  font-size: 22px;
  color: #888;
  transition: 0.2s;
}

.close-modal:hover {
  color: #e74c3c;
}

/* بدنه مودال */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receipt-preview-wrapper {
  width: 100%;
  min-height: 150px;
  border: 2px dashed var(--color-gray-400);
  border-radius: var(--border-radius-base);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.receipt-preview-wrapper img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

/* آپلودر سفارشی */
.custom-file-upload {
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
  cursor: pointer;
  color: var(--color-primary);
  text-align: center;
  transition: 0.2s;
}

.custom-file-upload:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.custom-file-upload input[type="file"] {
  display: none;
}

#transactionId,
#receiptNote,
#debit {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-gray-400);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

/* textarea */
#receiptNote {
  min-height: 70px;
  resize: vertical;
}

/* فوتر مودال */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: 0.2s;
  font-family: var(--font-primary);
  font-weight: lighter;
}

.btn-primary {
  background-color: #3498db;
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #eee;
  color: #333;
}

.btn-secondary:hover {
  background-color: var(--color-gray-400);
}

/* انیمیشن fade */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#balance span {
  unicode-bidi: plaintext;
}

.polls-count {
  background-color: #f76a6d;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -5px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: bold;
}

.polls-err {
  background: #ff980026;
  border-radius: 5px;
  padding: 10px;
  font-family: var(--font-primary);
  border: solid 1px #ffc876;
}

.polls-dec-s {
  font-size: 12px;
  color: #a9a9a9;
}

.myhome-card {
  direction: rtl;
  max-width: 980px;
  margin: 10px auto;

  font-family: var(--font-primary);
  color: #222;
}

.myhome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .myhome-grid {
    grid-template-columns: 1fr;
  }
}

.myhome-field {
  background: var(--color-white);
  border: 1px solid #e6e6e6;
  padding: 12px;
  border-radius: var(--border-radius-base);
}

.myhome-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.myhome-field input[type="text"],
.myhome-field input[type="number"],
.myhome-field textarea,
.myhome-field select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--color-gray-300);
}

.myhome-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.myhome-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.myhome-btn {
  padding: 10px 16px;
  border-radius: var(--border-radius-base);
  border: 0;
  cursor: pointer;
}

.myhome-btn.secondary {
  background: #f3f3f3;
  color: #333;
}

.myhome-note {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.myhome-success {
  padding: 10px;
  border-radius: var(--border-radius-base);
  background: #e6ffed;
  color: #1b7a3a;
  margin-bottom: 12px;
}

.myhome-error {
  padding: 10px;
  border-radius: var(--border-radius-base);
  background: #ffecec;
  color: #b02a2a;
  margin-bottom: 12px;
}

.myhome-media-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  flex-direction: row;
  width: 240px;
}

.myhome-media-preview img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-gray-300);
}

.myhome-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.myhome-checkbox-group label {
  background: #f7f9fc;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #eee;
  cursor: pointer;
}

.filepond--root {
  width: 400px;
}

.filepond--drop-label label {
  font-family: var(--font-primary);
}

.filepond--credits {
  display: none !important;
}

/* each thumbnail wrapper */
.myhome-media-preview .mh-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  /* aspect ratio 4:3 */
  overflow: hidden;
  border-radius: var(--border-radius-base);
  background: #f8f8f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.myhome-media-preview .mh-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.myhome-media-preview .mh-thumb .mh-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  border: none;
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

/* hover effect */
.myhome-media-preview .mh-thumb:hover {
  transform: translateY(-2px);
  transition: transform 0.12s ease;
}

/* empty placeholder */
.myhome-media-preview.empty {
  display: block;
  padding: 10px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 740px) {
  .myhome-media-preview {
    width: 100%;
    justify-content: space-evenly;
  }

  .filepond--root {
    width: 100%;
  }

  .bank-box {
    width: 100%;
    justify-content: space-between !important;
  }
}

.swal2-html-container:has(#swal-coupon-percent) input {
  margin: 0 !important;
  margin-bottom: 15px !important;
  height: 2rem !important;
}

.swal2-html-container:has(#swal-coupon-percent) label {
  margin-bottom: 5px !important;
}

.swal2-html-container:has(#swal-coupon-percent) {
  font-size: 14px !important;
}

.swal2-html-container:has(#swal-coupon-percent) #swal-coupon-title {
  width: 100% !important;
}

.bank-boxes {
  display: inline-flex;
  gap: 5px;
  align-items: flex-end;
  flex-wrap: nowrap;
  flex-direction: column;
  align-content: flex-end;
  font-family: var(--font-primary);
}

.bank-box {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  border-radius: var(--border-radius-base);
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  margin: 0;
  direction: ltr;
  font-family: inherit;
  vertical-align: middle;
  gap: 10px;
}

.bank-box.bank-des {
  text-align: right;
}

.bank-box span {
  margin: unset !important;
}

.bank-box .label {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  direction: rtl;
}

.bank-box .value {
  font-family: monospace, monospace;
  font-size: 14px;
  word-break: break-all;
  display: block;
  margin-bottom: 6px;
  direction: ltr;
}

.card-groups {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.card-groups span {
  padding: 4px 6px;
  border-radius: 6px;
  background: #f6f6f6;
  font-family: monospace;
  font-size: 13px;
}

.bank-copy-btn {
  padding: 3px 10px 3px 10px !important;
  margin-left: 15px;
  font-size: 12px !important;
}

.copy-toast {
  position: absolute;
  opacity: 0;
  transition: all 0.18s;
  pointer-events: none;
  color: green;
  background-color: var(--color-white);
  border-radius: 7px;
  padding: 8px;
}

/* container برای position relative به منظور نمایش toast در صورت نیاز */
.bank-box {
  position: relative;
}

.bank-boxes-wrap {
  display: flex !important;
  flex-direction: column;
  align-content: center;
  align-items: flex-end;
  gap: 5px;
  font-family: var(--font-primary);
}

.edit-user-grid,
.notice {
  font-family: var(--font-primary);
}

.lkd-checkout-review-order-table th.lkd-inv-desc {
  text-align: right;
}

.lkd-checkout__column-inner {
  font-family: var(--font-primary);
  padding: 15px;
}

.deactive-el {
  position: relative;
}

.deactive-el::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  cursor: not-allowed;
}

.ps-form {
  max-width: 640px;
  padding: 12px;
  font-family: var(--font-primary);

  direction: rtl;
}

.ps-form label {
  display: block;
  margin: 8px 0 4px;
}

.ps-form input,
.ps-form textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

.ps-success {
  background: #e6ffed;
  border: 1px solid #b6f0c0;
  padding: 10px;
  margin-top: 10px;
}

.ps-error {
  background: #ffe6e6;
  border: 1px solid #f0b6b6;
  padding: 10px;
  margin-top: 10px;
}

#ps-payment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-primary);
}

.ps_plan_months_item input {
  margin-top: 2px;
}

table.dataTable tr.expired-row > td {
  background-color: rgba(255, 0, 0, 0.1) !important;
  color: #999999 !important;
}

.costs-tabs {
  margin-bottom: 1rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.costs-tab {
  padding: 8px 12px;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  cursor: pointer;
  background: var(--color-white);
}

.costs-tab.active {
  background: #f0f0f0;
  border-color: #bbb;
  font-weight: 600;
}

.costs-tab-content {
  display: none;
  padding-top: 12px;
}

.costs-tab-content.active {
  display: block;
}

.dt-nowrap {
  white-space: nowrap;
}

.dt-wrap {
  white-space: normal;
  word-break: break-word;
  max-width: 400px;
}

/* ساده مودال */
.crs-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--font-primary);
}

.crs-modal .crs-modal-dialog {
  background: var(--color-white);
  margin: 6% auto;
  padding: 18px;
  width: 90%;
  max-width: 800px;
  border-radius: var(--border-radius-base);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.crs-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.crs-modal .modal-body textarea {
  width: 100%;
  min-height: 200px;
}

.crs-modal .modal-footer {
  margin-top: 12px;
  text-align: right;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-gray-400);
  cursor: pointer;
  background: var(--color-white);
}

.btn-primary {
  background: #0073aa;
  color: var(--color-white);
  border-color: #0073aa;
}

.btn-danger {
  background: #d63638;
  color: var(--color-white);
  border-color: #d63638;
}

.btn-small {
  padding: 6px 8px;
  font-size: 13px;
}

#crs-view-content p {
  display: block !important;
}

.jet-form-builder__field-wrap.radio-wrap.checkradio-wrap:has(.rowi) {
  width: auto !important;
}

.tanxah-form-wrap {
  max-width: 760px;
  margin: 20px auto;
  background: var(--color-white);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  font-family: var(--font-yekan-alt);
}

.tanxah-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tanxah-form-row {
  margin-bottom: 10px;
}

.tanxah-form-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.tanxah-form-wrap input[type="text"],
.tanxah-form-wrap input[type="datetime-local"],
.tanxah-form-wrap input[type="number"],
.tanxah-form-wrap select,
.tanxah-form-wrap textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.tanxah-submit {
  background: #0b74de;
  color: var(--color-white);
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.tanxah-message {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.tanxah-success {
  background: #e6ffef;
  border: 1px solid #b6f0d1;
  font-family: var(--font-yekan-alt);
}

.tanxah-error {
  background: #fff1f0;
  border: 1px solid #f1b0b0;
}

@media (max-width: 640px) {
  .tanxah-form-grid {
    grid-template-columns: 1fr;
  }
}

.tanxah-modal-overlay,
.tanxah-submit-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.tanxah-modal {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--border-radius-base);
  width: 90%;
  max-width: 720px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tanxah-close {
  float: right;
  cursor: pointer;
  font-weight: bold;
}

.tanxah-field {
  margin-bottom: 12px;
}

.tanxah-field label {
  display: block;
  margin-bottom: 6px;
}

.tanxah-modal-overlay,
.tanxah-submit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.tanxah-modal-overlay.active,
.tanxah-submit-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* --- جعبه مودال --- */
.tanxah-modal {
  background: var(--color-white);
  border-radius: 16px;
  padding: 25px 30px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-10px);
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- دکمه بستن (×) --- */
.tanxah-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tanxah-close:hover {
  color: #000;
}

/* --- عنوان مودال --- */
.tanxah-modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
  color: #222;
  font-weight: 600;
}

/* --- فیلدهای فرم --- */
.tanxah-field {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.tanxah-field label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.tanxah-field input,
.tanxah-field textarea {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius-base);
  padding: 10px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.tanxah-field input:focus,
.tanxah-field textarea:focus {
  border-color: #2f80ed;
  outline: none;
}

/* --- دکمه‌های پایین --- */
.tanxah-modal button[type="submit"] {
  background: #27ae60;
  color: var(--color-white);
  border: none;
  padding: 10px 16px;
  border-radius: var(--border-radius-base);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.tanxah-modal button[type="submit"]:hover {
  background: #1e8b4e;
}

.tanxah-modal button.tanxah-close {
  background: #eee;
  color: #333;
  border: none;
  margin-left: 10px;
  border-radius: var(--border-radius-base);
  padding: 10px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.tanxah-modal button.tanxah-close:hover {
  background: var(--color-gray-300);
}

/* چینش دکمه‌ها در یک خط */
.tanxah-modal form > div:last-child {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

#tanxah-view-only,
.tanxah-view-costs,
#tanxah-edit-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  text-align: right;
  font-family: var(--font-primary);
}

#tanxah-view-only span,
.tanxah-view-costs span {
  background: #fafafa;
  padding: 6px 10px;
  width: 100%;
  border-radius: 5px;
}

#tanxah-view-only strong,
.tanxah-view-costs strong {
  color: #444;
}

#tanxah-costs-wrapper {
  background: #e6e6e6;
  border-radius: var(--border-radius-base);
}

.tanxah-cost-view-btn1 {
  font-size: 10px !important;
}

@media (max-width: 768px) {
  #tanxah-costs-wrapper table {
    font-size: 13px;
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  #tanxah-costs-wrapper table {
    min-width: 500px;
    font-size: 12px;
  }

  #tanxah-costs-wrapper th,
  #tanxah-costs-wrapper td {
    padding: 8px 6px !important;
  }
}

/* Hover rows */
#tanxah-costs-wrapper tbody tr:hover {
  background-color: #f9fafb;
}

.tanxah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 10px 0;
}

.tanxah-card {
  font-family: var(--font-primary);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgb(249 249 255 / 95%)
  );
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border: 1px solid rgba(32, 32, 70, 0.04);
  overflow: hidden;
  cursor: pointer;
}

.tanxah-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tanxah-title {
  font-weight: 700;
  font-size: 15px;
  color: #1f2937;
}

.tanxah-amounts {
  text-align: left;
  font-size: 13px;
  color: #374151;
}

.tanxah-amounts .big {
  display: block;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
  color: #0f172a;
}

.tanxah-progress-wrap {
  width: 100%;
}

.tanxah-progress {
  position: relative;
  height: 18px;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.06),
    rgba(15, 23, 42, 0.04)
  );
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.tanxah-progress > .tanxah-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4 0%, #7c3aed 100%);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12) inset;
  transition: width 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.tanxah-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
  color: #374151;
}

.tanxah-percent-bubble {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.75)
  );
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(12, 18, 50, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.04);
  font-size: 13px;
}

/* مودال */
.tanxah-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 20, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.tanxah-modal1 {
  width: min(1100px, 96%);
  max-height: 90vh;
  overflow: auto;
  background: var(--color-white);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 40px 120px rgba(12, 18, 50, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.05);
  font-family: var(--font-primary);
}

.tanxah-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tanxah-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
}

/* grid سه ستونه برای جزئیات */
.tanxah-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tanxah-detail-item {
  background: #fafafa;
  border-radius: var(--border-radius-base);
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.tanxah-detail-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  display: block;
}

.tanxah-detail-value {
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
  font-size: 14px;
}

@media (max-width: 900px) {
  .tanxah-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .tanxah-details-grid {
    grid-template-columns: 1fr;
  }
}

.svg-icon {
  width: 28px !important;
  height: 28px !important;

  aspect-ratio: 1 / 1 !important;
}

.gep-menu a span {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: lighter !important;
}

.notif-bell .jet-dropbar__button-text {
  background-color: #f76a6d;
  width: 15px;
  height: 15px;
  border-radius: 50px;
  position: absolute;
  bottom: 16px;
  left: 12px;
  display: flex;
  flex-direction: row-reverse;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.notif-bell .jet-dropbar__button-text span {
  font-size: 12px;
  font-family: var(--font-b-yekan);
}
.menu-item.menu-item-type-custom.menu-item-object-custom.jet-nav__item {
  width: 100%;
}
