/* ============================================================
   SMMHipe Dashboard — brand tokens + shell (website theme)
   ============================================================ */

:root {
  --brand-green: #00c853;
  --brand-green-light: #33d470;
  --brand-green-soft: #e8f8ee;
  --brand-green-muted: #00a844;
  --brand-green-band: #d4f5e2;
  --brand-black: #000000;
  --brand-on-green: #000000;
  --brand-surface: #f8fafc;
  --brand-muted: #687064;
  --brand-muted-light: #7b8374;
  --brand-radius: 8px;
  --brand-border: rgba(0, 0, 0, 0.08);
  --brand-sidebar-width: 260px;
  --brand-header-height: 64px;
  --font-heading: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-black);
  background: var(--brand-surface);
  -webkit-font-smoothing: antialiased;
}

/* Thin brand scrollbars (keep ~6–8px thickness) */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand-green) 55%, #9ca3af) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand-green) 45%, #a3a3a3);
  border-radius: 999px;
  border: 0;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--brand-green);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body.hi-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, color-mix(in srgb, var(--brand-green) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, color-mix(in srgb, var(--brand-green) 12%, transparent), transparent 50%),
    linear-gradient(180deg, var(--brand-green-soft) 0%, var(--brand-surface) 55%);
}

body.hi-app {
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, color-mix(in srgb, var(--brand-green) 10%, transparent), transparent 50%),
    var(--brand-surface);
}

h1, h2, h3, h4, h5, h6,
.page-hero__title,
.auth-card__title,
.hi-panel__title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand-black);
}

a {
  color: var(--brand-green-muted);
}

a:hover,
a:focus {
  color: var(--brand-green);
}

/* ---- Bootstrap overrides ---- */

.btn {
  border-radius: var(--brand-radius);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--brand-on-green);
}

.btn-primary:hover,
.btn-primary:active:hover,
.btn-primary.active:hover {
  background-color: var(--brand-green-light);
  border-color: var(--brand-green-light);
  color: var(--brand-on-green);
}

.btn-default {
  background: #fff;
  border: 1px solid var(--brand-border);
  color: var(--brand-black);
}

.btn-default:hover {
  background: var(--brand-green-soft);
  border-color: color-mix(in srgb, var(--brand-green) 35%, transparent);
}

.btn-link {
  color: var(--brand-green-muted);
  font-weight: 600;
}

.form-control {
  height: 44px;
  border-radius: var(--brand-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
  font-size: 14px;
  color: var(--brand-black);
  background: #fff;
}

.form-control:focus {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 18%, transparent);
}

textarea.form-control {
  height: auto;
  min-height: 100px;
}

.control-label,
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-black);
  margin-bottom: 6px;
}

.well,
.well-float {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: none;
  padding: 20px 22px;
}

.alert-info {
  background: var(--brand-green-soft);
  border-color: color-mix(in srgb, var(--brand-green) 28%, transparent);
  color: var(--brand-green-muted);
}

.btn-xs {
  border-radius: 6px;
  font-weight: 600;
  padding: 4px 10px;
}

.table-bordered {
  border-color: var(--brand-border);
}

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td {
  border-color: var(--brand-border);
}

.api h2,
.api h4 {
  font-family: var(--font-heading);
}

.panel-border-top {
  border-top: 1px solid var(--brand-border);
  padding-top: 16px;
  margin-top: 12px;
}

.center-big-content-block {
  max-width: 100%;
}

.table {
  background: #fff;
}

.table > thead > tr > th {
  border-bottom: 1px solid var(--brand-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-green-muted);
  background: var(--brand-green-soft);
  padding: 12px 14px;
}

.table > tbody > tr > td {
  padding: 12px 14px;
  border-top: 1px solid var(--brand-border);
  vertical-align: middle;
  font-size: 14px;
}

.nav-pills > li > a {
  border-radius: var(--brand-radius);
  font-weight: 600;
  color: var(--brand-muted);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background: var(--brand-green);
  color: var(--brand-on-green);
}

.nav-pills > li > a:hover {
  background: var(--brand-green-soft);
  color: var(--brand-black);
}

.alert {
  border-radius: var(--brand-radius);
  border: 1px solid transparent;
}

.alert-success {
  background: var(--brand-green-soft);
  border-color: color-mix(in srgb, var(--brand-green) 30%, transparent);
  color: var(--brand-green-muted);
}

.alert-danger {
  background: #fff1f0;
  border-color: #ffccc7;
  color: #a8071a;
}

.dropdown-menu {
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > .active > a {
  background: var(--brand-green-soft);
  color: var(--brand-black);
}

.panel,
.panel-default {
  border-radius: var(--brand-radius);
  border-color: var(--brand-border);
  box-shadow: none;
}

.modal-content {
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

/* Center Bootstrap modals (PP description/loading included) */
.modal.in,
.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px !important;
}

.modal .modal-dialog {
  margin: 0 auto;
  width: calc(100% - 24px);
  max-width: 520px;
  transform: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
}

.modal.fade.in .modal-dialog,
.modal.fade.show .modal-dialog {
  transform: none;
  opacity: 1;
}

/* Hide Perfect Panel loading modal — open description content directly */
#loading-modal,
#loadingModal,
.modal.loading-modal,
.modal#loader,
.modal#Loader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Instant service description modal */
.hi-desc-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.hi-desc-modal[hidden] {
  display: none !important;
}

.hi-desc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.hi-desc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100dvh - 24px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hi-desc-modal.is-open .hi-desc-modal__backdrop {
  opacity: 1;
}

.hi-desc-modal.is-open .hi-desc-modal__dialog {
  transform: none;
  opacity: 1;
}

.hi-desc-modal__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 24px);
  min-height: 0;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hi-desc-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--brand-border);
}

.hi-desc-modal__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--brand-black);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hi-desc-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: -6px -8px 0 0;
  border: none;
  border-radius: var(--brand-radius);
  background: transparent;
  color: var(--brand-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hi-desc-modal__close:hover,
.hi-desc-modal__close:focus {
  background: var(--brand-green-soft);
  color: var(--brand-black);
  outline: none;
}

.hi-desc-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px;
  font-size: 14px !important;
  line-height: 1.5;
  color: var(--brand-black);
  -webkit-overflow-scrolling: touch;
}

.hi-desc-modal__body,
.hi-desc-modal__body p,
.hi-desc-modal__body li,
.hi-desc-modal__body span,
.hi-desc-modal__body div,
.hi-desc-modal__body td,
.hi-desc-modal__body th,
.hi-desc-modal__body a,
.hi-desc-modal__body strong,
.hi-desc-modal__body b,
.hi-desc-modal__body em {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.hi-desc-modal__body h1,
.hi-desc-modal__body h2,
.hi-desc-modal__body h3,
.hi-desc-modal__body h4,
.hi-desc-modal__body h5,
.hi-desc-modal__body h6 {
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  margin: 0 0 8px;
}

.hi-desc-modal__body p {
  margin: 0 0 8px;
}

.hi-desc-modal__body p:last-child {
  margin-bottom: 0;
}

.hi-desc-modal__body ul,
.hi-desc-modal__body ol {
  margin: 0 0 8px;
  padding-left: 1.25em;
}

.hi-desc-modal__body li {
  margin: 0 0 4px;
}

.hi-desc-modal__footer {
  flex: 0 0 auto;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--brand-border);
  background: #fff;
}

.hi-desc-modal__order {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
}

body.hi-desc-modal-open {
  overflow: hidden !important;
}

/* Keep chat widgets behind modal while open */
body.hi-desc-modal-open iframe[src*="whatsapp"],
body.hi-desc-modal-open iframe[src*="telegram"],
body.hi-desc-modal-open [class*="whatsapp"],
body.hi-desc-modal-open [class*="telegram"],
body.hi-desc-modal-open [id*="whatsapp"],
body.hi-desc-modal-open [id*="telegram"],
body.hi-desc-modal-open a[href*="wa.me"],
body.hi-desc-modal-open a[href*="t.me"] {
  z-index: 1 !important;
  pointer-events: none !important;
}

@media (max-width: 575px) {
  .hi-desc-modal {
    padding: 10px;
    align-items: stretch;
  }

  .hi-desc-modal__dialog,
  .hi-desc-modal__card {
    max-height: calc(100dvh - 20px);
    height: auto;
    margin: auto 0;
  }
}

.input-group .form-control {
  height: 44px;
}

.input-group-btn .btn {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

.select2-container {
  width: 100% !important;
}

/* Real Select2 widgets only — not the New Order services search input */
.select2-container--default:not(.search-dropdown) .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 40px 0 14px !important;
  border-radius: var(--brand-radius) !important;
  border: 1px solid var(--brand-border) !important;
  background: #fff !important;
  overflow: hidden !important;
}

.select2-container--default.select2-container--focus:not(.search-dropdown) .select2-selection--single,
.select2-container--default.select2-container--open:not(.search-dropdown) .select2-selection--single {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 18%, transparent) !important;
}

/* Selected value: always a single line with ellipsis */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px;
  padding: 0 !important;
  line-height: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  color: var(--brand-black) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered > span {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.select2-container .select2-selection__icon,
.select2-container .select2-selection__id,
.select2-dropdown .select2-selection__icon,
.select2-dropdown .select2-selection__id {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-right: 0 !important;
  vertical-align: middle;
  line-height: 1 !important;
}

.select2-container .select2-selection__icon.btn-group-vertical {
  display: inline-flex !important;
  vertical-align: middle;
  margin-right: 0 !important;
}

.select2-container .select2-selection__icon img {
  max-width: 1.15em;
  max-height: 1.15em;
}

.select2-container .select2-selection__id.badge,
.select2-dropdown .select2-selection__id.badge {
  min-height: 22px;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #6b7280 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
}

/* Closed select: name + rate stay on one line */
.select2-container--default .select2-selection--single .select2-selection__text {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 46px !important;
  vertical-align: middle;
}

.select2-container--default .select2-selection--single .select2-selection__rate,
.select2-container--default .select2-selection--single .select2-selection__rendered .select2-selection__rate {
  display: inline !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 40% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 600;
  color: var(--brand-muted);
  line-height: 46px;
  order: 0;
}

/* Dropdown results: name can wrap; rate under name */
.select2-dropdown .select2-selection__text,
.select2-results__options .select2-selection__text {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
}

.select2-dropdown .select2-selection__rate,
.select2-results__options .select2-selection__rate,
.select2-dropdown .select2-selection__text > .select2-selection__rate {
  display: block !important;
  width: 100% !important;
  margin-top: 2px;
  white-space: normal !important;
  font-weight: 600;
  color: var(--brand-muted);
  line-height: 1.35;
}

.select2-dropdown .select2-selection__text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px;
}

.select2-dropdown .select2-selection__text > span {
  display: block !important;
  width: 100%;
  white-space: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  right: 10px !important;
  width: 28px !important;
  height: 48px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  border: 0 !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid var(--brand-muted) !important;
  border-bottom: 2px solid var(--brand-muted) !important;
  transform: translate(-50%, -65%) rotate(45deg);
  background: transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: translate(-50%, -25%) rotate(-135deg);
}

.select2-dropdown {
  z-index: 2000 !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--brand-radius) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
  margin-top: 4px;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}

.select2-container--default .select2-results__option {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px;
  padding: 10px 12px !important;
  margin: 2px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--brand-black) !important;
}

/* Long service/category names wrap onto new lines inside the open dropdown */
.select2-dropdown .select2-selection__text,
.select2-dropdown .select2-results__option .select2-selection__text,
.select2-results__options .select2-selection__text {
  display: inline !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.select2-dropdown .select2-selection__icon,
.select2-dropdown .select2-selection__id {
  margin-top: 2px;
}

/* Inner <a> from Perfect Panel / Bootstrap dropdown-menu — never paint its own bg */
.select2-dropdown .select2-results__option a,
.select2-dropdown .select2-results__option a:hover,
.select2-dropdown .select2-results__option a:focus,
.select2-dropdown .select2-results__option a:active,
.select2-results__options.dropdown-menu > li > a,
.select2-results__options.dropdown-menu > li > a:hover,
.select2-results__options.dropdown-menu > li > a:focus,
.select2-results__options.dropdown-menu > .active > a,
.select2-results__options.dropdown-menu > .active > a:hover,
.select2-results__options.dropdown-menu > .active > a:focus,
.select2-results__options.dropdown-menu > .select2-results__option--highlighted > a,
.select2-results__options.dropdown-menu > .select2-results__option--highlighted > a:hover,
.select2-results__options.dropdown-menu > .select2-results__option--highlighted > a:focus,
body .select2-dropdown .dropdown-menu > .active > a,
body .select2-dropdown .dropdown-menu > .active > a:hover,
body .select2-dropdown .dropdown-menu > .active > a:focus {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  white-space: normal !important;
  flex-wrap: nowrap;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option.active,
.select2-results__options.dropdown-menu > .active {
  background: var(--brand-green-soft) !important;
  background-color: var(--brand-green-soft) !important;
  background-image: none !important;
  color: var(--brand-black) !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected="true"],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted.active,
.select2-results__options.dropdown-menu > .select2-results__option--highlighted,
.select2-results__options.dropdown-menu > .select2-results__option--highlighted.active {
  background: var(--brand-green-soft) !important;
  background-color: var(--brand-green-soft) !important;
  background-image: none !important;
  color: var(--brand-black) !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px 8px 4px;
  position: relative;
}

.select2-container--default .select2-search--dropdown.select2-search--hide {
  display: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-radius: var(--brand-radius) !important;
  border: 1px solid var(--brand-border) !important;
  padding: 8px 12px 8px 36px !important;
}

.select2-container--default .select2-search--dropdown::before {
  content: "\f002";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
  font-weight: 900;
  position: absolute;
  left: 18px;
  top: calc(50% - 2px);
  transform: translateY(-50%);
  color: var(--brand-muted);
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}

[dir="rtl"] .select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 8px 36px 8px 12px !important;
}

[dir="rtl"] .select2-container--default .select2-search--dropdown::before {
  left: auto;
  right: 18px;
}

/* New Order top search — PP Vue remounts this with Select2-looking classes */
#new-order-search.search-dropdown,
.search-dropdown#new-order-search {
  position: relative;
}

#new-order-search .input-wrapper,
.search-dropdown .input-wrapper {
  position: relative;
}

#new-order-search .input-wrapper__prepend,
#new-order-search .input-wrapper > button,
.search-dropdown .input-wrapper__prepend {
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  right: auto !important;
  z-index: 2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--brand-muted) !important;
  pointer-events: none;
  line-height: 1 !important;
}

#new-order-search .input-wrapper__prepend .fa-search,
#new-order-search .input-wrapper__prepend .fas,
#new-order-search .input-wrapper > button .fa-search,
#new-order-search .input-wrapper > button .fas,
.search-dropdown .input-wrapper__prepend .fas {
  color: var(--brand-muted) !important;
  font-size: 14px;
  line-height: 1;
}

#new-order-search .input-wrapper input,
#new-order-search input.select2-selection,
#new-order-search input.form-control,
.search-dropdown .input-wrapper input.select2-selection,
.search-dropdown .input-wrapper input.form-control {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  padding: 0 14px 0 42px !important;
  line-height: 48px !important;
  border-radius: var(--brand-radius) !important;
  border: 1px solid var(--brand-border) !important;
  background: #fff !important;
  color: var(--brand-black) !important;
  box-shadow: none !important;
}

#new-order-search .input-wrapper input:focus,
#new-order-search input.select2-selection:focus,
.search-dropdown .input-wrapper input:focus {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 18%, transparent) !important;
  outline: none !important;
}

[dir="rtl"] #new-order-search .input-wrapper__prepend,
[dir="rtl"] #new-order-search .input-wrapper > button,
[dir="rtl"] .search-dropdown .input-wrapper__prepend {
  left: auto !important;
  right: 14px !important;
}

[dir="rtl"] #new-order-search .input-wrapper input,
[dir="rtl"] #new-order-search input.select2-selection,
[dir="rtl"] .search-dropdown .input-wrapper input.form-control {
  padding: 0 42px 0 14px !important;
}

/* ============================================================
   App shell
   ============================================================ */

.hi-layout {
  display: flex;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.hi-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
}

.hi-layout.is-sidebar-open .hi-sidebar-overlay {
  display: block;
}

.hi-sidebar {
  width: var(--brand-sidebar-width);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.2s ease, width 0.2s ease;
}

.hi-sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 12px;
  overflow: hidden;
}

.hi-sidebar__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 40px 16px;
  text-align: center;
}

.hi-sidebar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  text-decoration: none;
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-align: center;
}

.hi-sidebar__logo img {
  max-height: 36px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.hi-sidebar__close {
  position: absolute;
  top: 4px;
  right: 8px;
  display: none;
  border: none;
  background: var(--brand-green-soft);
  width: 32px;
  height: 32px;
  border-radius: var(--brand-radius);
  cursor: pointer;
  color: var(--brand-black);
}

.rtl-navbar .hi-sidebar__close,
.hi-sidebar.rtl .hi-sidebar__close {
  right: auto;
  left: 8px;
}

.hi-sidebar__user {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 4px 16px;
  padding: 14px;
  border-radius: var(--brand-radius);
  background:
    radial-gradient(ellipse 120% 100% at 0% 0%, color-mix(in srgb, var(--brand-green) 22%, transparent), transparent 60%),
    var(--brand-green-soft);
  border: 1px solid color-mix(in srgb, var(--brand-green) 20%, transparent);
}

.hi-sidebar__user-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hi-sidebar__balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hi-sidebar__balance {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-green-muted);
}

.hi-sidebar__add-funds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand-green);
  color: var(--brand-on-green);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.hi-sidebar__add-funds:hover {
  background: var(--brand-green-light);
  color: var(--brand-on-green);
  text-decoration: none;
}

.hi-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hi-sidebar__nav-title {
  margin: 4px 6px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.hi-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hi-sidebar__group.is-empty {
  display: none;
}

.hi-sidebar__group-toggle,
.hi-sidebar__group-toggle:hover,
.hi-sidebar__group-toggle:focus,
.hi-sidebar__group-toggle:active,
.hi-sidebar__group-toggle:focus-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: var(--brand-radius);
  background: #f1f5f0;
  color: var(--brand-muted);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.hi-sidebar__group-toggle:hover {
  background: var(--brand-green-soft);
  color: var(--brand-black);
}

.hi-sidebar__group.is-open .hi-sidebar__group-toggle,
.hi-sidebar__group.is-current .hi-sidebar__group-toggle {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  color: var(--brand-on-green);
}

.hi-sidebar__group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hi-sidebar__group-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.75;
  flex-shrink: 0;
}

.hi-sidebar__group.is-open .hi-sidebar__group-chevron {
  transform: rotate(-135deg);
}

.hi-sidebar__group-body {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px 4px;
  margin-left: 8px;
  border-left: 2px solid color-mix(in srgb, var(--brand-green) 35%, transparent);
}

.hi-sidebar__group.is-open .hi-sidebar__group-body {
  display: flex;
}

.hi-sidebar__link,
.hi-sidebar__link:hover,
.hi-sidebar__link:focus,
.hi-sidebar__link:active,
.hi-sidebar__link:focus-visible,
.hi-sidebar__link.is-active,
.hi-sidebar__link.is-active:focus,
.hi-sidebar__link.is-active:active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--brand-radius);
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--brand-muted);
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hi-sidebar__link:hover {
  background: var(--brand-green-soft);
  color: var(--brand-black);
}

.hi-sidebar__link.is-active {
  background: var(--brand-green-soft);
  color: var(--brand-black);
  box-shadow: inset 3px 0 0 var(--brand-green) !important;
}

.hi-sidebar__link i {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.hi-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.hi-header {
  position: relative;
  z-index: 10050;
  height: var(--brand-header-height);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
}

.hi-header__left,
.hi-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hi-header__menu-btn {
  display: none;
  border: 1px solid var(--brand-border);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: var(--brand-radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.hi-header__menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--brand-black);
  border-radius: 1px;
}

.hi-header__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hi-header__balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--brand-radius);
  background: var(--brand-green-soft);
  border: 1px solid color-mix(in srgb, var(--brand-green) 25%, transparent);
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-black);
  text-decoration: none;
}

.hi-header__balance:hover {
  text-decoration: none;
  color: var(--brand-black);
  background: var(--brand-green-band);
}

.hi-header .dropdown > a,
.hi-header .dropdown > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  background: #fff;
  color: var(--brand-black);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.hi-header .dropdown > a:hover,
.hi-header .dropdown > .dropdown-toggle:hover {
  background: var(--brand-green-soft);
  text-decoration: none;
  color: var(--brand-black);
}

.hi-header .badge {
  background: var(--brand-green);
  color: var(--brand-on-green);
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 8px;
}

.hi-header__profile {
  position: relative;
  z-index: 10060;
}

.hi-header__profile-btn,
.hi-header__profile-btn:hover,
.hi-header__profile-btn:focus,
.hi-header__profile-btn:active,
.hi-header__profile-btn:focus-visible,
.hi-header__profile.is-open .hi-header__profile-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 4px 12px 4px 4px !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border: 1px solid var(--brand-border) !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: var(--brand-black) !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.hi-header__profile-btn:hover,
.hi-header__profile.is-open .hi-header__profile-btn {
  background: var(--brand-green-soft) !important;
  border-color: color-mix(in srgb, var(--brand-green) 35%, transparent) !important;
}

.hi-header__profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-on-green);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hi-header__profile-name {
  display: inline-block !important;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hi-header__profile-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid var(--brand-muted);
  border-bottom: 2px solid var(--brand-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.hi-header__profile.is-open .hi-header__profile-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.hi-header__profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 10070;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.hi-header__profile-menu[hidden] {
  display: none !important;
}

.hi-header__profile.is-open .hi-header__profile-menu {
  display: block !important;
}

.hi-header__profile-menu > li > a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--brand-black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hi-header__profile-menu > li > a:hover,
.hi-header__profile-menu > li > a:focus {
  background: var(--brand-green-soft);
  color: var(--brand-black);
  outline: none;
  text-decoration: none;
}

.hi-header__profile-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--brand-border);
  list-style: none;
}

.hi-header__profile-logout {
  color: #b42318 !important;
}

.hi-header__profile-logout:hover,
.hi-header__profile-logout:focus {
  background: #fef3f2 !important;
  color: #b42318 !important;
}

@media (max-width: 520px) {
  .hi-header__profile-name {
    max-width: 72px;
  }
}

.hi-content {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 40px;
}

.hi-content > .container,
.hi-content > .container-fluid {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.hi-content > .container-fluid {
  max-width: 1400px;
}

/* Collapsed desktop sidebar */
.hi-layout.is-sidebar-collapsed .hi-sidebar {
  width: 0;
  border-right: none;
  overflow: hidden;
}

.hi-layout.is-sidebar-collapsed .hi-sidebar__inner {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 991px) {
  .hi-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .hi-layout.is-sidebar-open .hi-sidebar {
    transform: translateX(0);
  }

  .hi-sidebar__close,
  .hi-header__menu-btn {
    display: inline-flex;
  }
}

/* Guest top bar (auth pages) */
.hi-guest-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.hi-guest-bar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.hi-guest-bar__logo img {
  max-height: 32px;
}

.hi-guest-bar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hi-guest-bar__nav a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: var(--brand-radius);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--brand-muted);
}

.hi-guest-bar__nav a:hover,
.hi-guest-bar__nav li.active a {
  background: var(--brand-green-soft);
  color: var(--brand-black);
}

/* ============================================================
   Page hero + panels
   ============================================================ */

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px 22px;
  border-radius: var(--brand-radius);
  border: 1px solid var(--brand-border);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, color-mix(in srgb, var(--brand-green) 26%, transparent), transparent 55%),
    radial-gradient(ellipse 60% 100% at 100% 100%, color-mix(in srgb, var(--brand-green) 12%, transparent), transparent 50%),
    linear-gradient(135deg, var(--brand-green-soft) 0%, #ffffff 55%);
}

.page-hero__title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.page-hero__subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-muted);
}

.hi-panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.hi-panel__title {
  margin: 0 0 16px;
  font-size: 18px;
}

/* GMF-structure dash sections (SMMHipe brand) */
.dash-stat-grid,
.neworder-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .dash-stat-grid,
  .neworder-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dash-stat-grid,
  .neworder-stats {
    grid-template-columns: 1fr;
  }
}

.dash-stat-card,
.neworder-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  min-width: 0;
}

.dash-stat-card__value,
.neworder-stat__value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-black);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-stat-card__label,
.neworder-stat__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.dash-panel__title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.dash-panel--prose,
.dash-panel--prose p,
.dash-panel--prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--brand-black);
}

.dash-panel--prose h1,
.dash-panel--prose h2,
.dash-panel--prose h3 {
  font-family: var(--font-heading);
  margin-top: 1.2em;
}

.dash-panel--flush {
  padding: 0;
  overflow: hidden;
}

.dash-panel--flush .table {
  margin-bottom: 0;
}

.dash-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--brand-muted);
}

.dash-empty__title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-black);
}

.dash-empty__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.dash-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .dash-overview {
    grid-template-columns: 1fr;
  }
}

.dash-overview__card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 20px 22px;
}

.dash-overview__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-overview__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--brand-border);
}

.dash-overview__meta li:last-child {
  border-bottom: none;
}

.dash-overview__meta span {
  color: var(--brand-muted);
}

.dash-overview__meta strong {
  color: var(--brand-black);
  font-weight: 700;
}

.neworder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

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

.neworder-panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 20px 22px;
  min-width: 0;
  position: relative;
}

/* Description sits beside the form on desktop; never overlays the form */
.neworder-details {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 20px 22px;
  min-width: 0;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - var(--brand-header-height, 64px) - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  align-self: start;
}

@media (max-width: 991px) {
  .hi-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .neworder-panel,
  .neworder-details {
    padding: 14px 12px;
  }

  .neworder-panel {
    order: 1;
  }

  .neworder-panel .form-control,
  .neworder-panel .select2-container,
  .neworder-panel .select2-container--default:not(.search-dropdown) .select2-selection--single,
  .neworder-panel #new-order-search,
  .neworder-panel .search-dropdown,
  .neworder-panel #fields,
  .neworder-panel #fields .form-group,
  .neworder-panel #fields .row,
  .neworder-panel #order_min .row,
  .neworder-panel #order_delay .row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .neworder-panel .select2-container--default:not(.search-dropdown) .select2-selection--single {
    padding-left: 12px !important;
    padding-right: 36px !important;
  }

  .neworder-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: nowrap !important;
    line-height: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .neworder-panel .select2-container--default .select2-selection--single .select2-selection__rendered > span {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    overflow: hidden !important;
  }

  .neworder-panel .select2-selection__text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    flex: 1 1 auto !important;
    line-height: 46px !important;
  }

  .neworder-panel .select2-selection__rate {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 40% !important;
    display: inline !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 0 !important;
  }

  /* Category / Service / search dropdown results — smaller on mobile */
  .select2-dropdown .select2-results__option,
  .select2-container--default .select2-results__option,
  .select2-dropdown .select2-selection__text,
  .select2-results__options .select2-selection__text,
  .search-dropdown .select2-results__option,
  body .select2-dropdown .select2-results__option {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .select2-dropdown {
    max-width: calc(100vw - 24px) !important;
  }

  .neworder-details {
    order: 2;
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

.neworder-details__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.neworder-details__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-black);
  word-break: break-word;
}

.neworder-details__body p:first-child {
  margin-top: 0;
}

.neworder-details__body p:last-child {
  margin-bottom: 0;
}

.neworder-details__empty {
  margin: 0;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.5;
}

.neworder-details__cms {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--brand-border);
}

/* Dynamic order fields (quantity min/max, delay, expiry) */
#fields .form-group {
  margin-bottom: 16px;
}

#fields .form-group .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

/* Bootstrap clearfix pseudos become flex gaps — kill them */
#fields .form-group .row::before,
#fields .form-group .row::after,
#order_min .row::before,
#order_min .row::after,
#order_delay .row::before,
#order_delay .row::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#fields .form-group .row > [class*="col-"] {
  float: none;
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  #fields .form-group .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Keep Min/Max inputs on one row; help text full-width under both */
#order_min .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 16px;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#order_min .row > [class*="col-"] {
  display: block !important;
  float: none !important;
  flex: 1 1 0 !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#order_min .row > [class*="col-"] > .form-control {
  display: block;
  width: 100% !important;
  height: 48px !important;
}

/* Help text under the full Min/Max row (JS moves it out of the Min column) */
#order_min > .help-block.min-max,
#order_min > .help-block,
#order_min .help-block.min-max,
#order_min .help-block {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.4;
}

#order_delay .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  gap: 16px;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#order_delay .row > [class*="col-"] {
  display: block !important;
  float: none !important;
  flex: 1 1 0 !important;
  max-width: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#order_delay label,
#order_delay .control-label,
#order_delay .col-md-6 > label {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-black);
  line-height: 1.3;
}

#order_delay select.form-control,
#order_delay .form-control,
#order_delay .input-group {
  margin-top: 0;
}

/* Delay (and other native selects in #fields) — match Select2 chevron */
#order_delay select.form-control,
#fields select.form-control,
#order-form select.form-control:not(.select2-hidden-accessible) {
  height: 48px;
  padding: 0 40px 0 14px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%236b7280' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 12px !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--brand-radius) !important;
  color: var(--brand-black) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  cursor: pointer;
  box-shadow: none !important;
}

#order_delay select.form-control:focus,
#fields select.form-control:focus,
#order-form select.form-control:not(.select2-hidden-accessible):focus {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 18%, transparent) !important;
  outline: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2300a844' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

#order_delay select.form-control::-ms-expand,
#fields select.form-control::-ms-expand,
#order-form select.form-control:not(.select2-hidden-accessible)::-ms-expand {
  display: none;
}

[dir="rtl"] #order_delay select.form-control,
[dir="rtl"] #fields select.form-control,
[dir="rtl"] #order-form select.form-control:not(.select2-hidden-accessible) {
  padding: 0 14px 0 40px !important;
  background-position: left 14px center !important;
}

/* Expiry clear (trash) — join cleanly with the date input */
#order_delay .input-group {
  display: flex;
  width: 100%;
  align-items: stretch;
}

#order_delay .input-group .form-control {
  height: 48px !important;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--brand-border) !important;
  border-right-width: 0 !important;
  border-radius: var(--brand-radius) 0 0 var(--brand-radius) !important;
  box-shadow: none !important;
}

#order_delay .input-group .form-control:focus {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent) !important;
  box-shadow: none !important;
  z-index: 2;
}

#order_delay .input-group-btn {
  display: flex !important;
  width: auto !important;
  font-size: 0;
  white-space: nowrap;
}

#order_delay .input-group-btn .btn,
#order_delay .input-group-btn .btn.clear-datetime {
  height: 48px !important;
  min-width: 48px;
  margin: 0 !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border) !important;
  border-radius: 0 var(--brand-radius) var(--brand-radius) 0 !important;
  background: #fff !important;
  color: var(--brand-muted) !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

#order_delay .input-group-btn .btn:hover,
#order_delay .input-group-btn .btn:focus {
  background: var(--brand-green-soft) !important;
  border-color: color-mix(in srgb, var(--brand-green) 35%, transparent) !important;
  color: var(--brand-black) !important;
}

#order_delay .input-group:focus-within .form-control,
#order_delay .input-group:focus-within .input-group-btn .btn {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent) !important;
}

@media (max-width: 575px) {
  #order_min .row,
  #order_delay .row {
    flex-wrap: wrap !important;
  }

  #order_min .row > [class*="col-"],
  #order_delay .row > [class*="col-"] {
    flex: 1 1 100% !important;
  }
}

#order-form .form-group:has(#charge) {
  display: block !important;
  visibility: visible !important;
}
#order-form #service_description {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


.services-table-card,
.table-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

.services-table-card .table,
.table-card .table {
  margin-bottom: 0;
  width: 100%;
}

.services-table-card .table {
  min-width: 720px;
}

.services-table-card.is-search-empty .table {
  display: none;
}

.hi-services-empty {
  display: block;
}

.hi-services-empty[hidden] {
  display: none !important;
}

.services-table-card .table th,
.services-table-card .table td {
  white-space: nowrap;
}

.services-table-card .table td.service-name,
.services-table-card .table th.width-service-name {
  white-space: normal;
  min-width: 220px;
  max-width: 360px;
  word-break: break-word;
}

.services-table-card .table tr[data-filter-table-category-id] > td[colspan] {
  white-space: normal;
}

.services-catalog.is-search-empty .services-view--list,
.services-catalog.is-search-empty .services-view--grid {
  display: none !important;
}

.services-catalog.is-search-empty .hi-services-empty {
  display: block;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
}

.hi-toolbar__end {
  float: none !important;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.hi-toolbar__end-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.hi-toolbar__search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 360px;
}

.hi-toolbar__search .input-group {
  display: flex;
  width: 100%;
}

.services-view-toggle {
  flex: 0 0 auto;
}

.services-view-toggle__group {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
}

.services-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.services-view-toggle__btn:hover {
  color: var(--brand-black);
  background: color-mix(in srgb, var(--brand-green-soft) 65%, #fff);
}

.services-view-toggle__btn.is-active {
  color: var(--brand-black);
  background: var(--brand-green-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-green) 25%, transparent);
}

.services-view-toggle__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.services-view-toggle__icon--list {
  background:
    linear-gradient(var(--brand-black) 0 0) 0 2px / 16px 2px no-repeat,
    linear-gradient(var(--brand-black) 0 0) 0 7px / 16px 2px no-repeat,
    linear-gradient(var(--brand-black) 0 0) 0 12px / 16px 2px no-repeat;
}

.services-view-toggle__icon--grid {
  background:
    linear-gradient(var(--brand-black) 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--brand-black) 0 0) 9px 0 / 7px 7px no-repeat,
    linear-gradient(var(--brand-black) 0 0) 0 9px / 7px 7px no-repeat,
    linear-gradient(var(--brand-black) 0 0) 9px 9px / 7px 7px no-repeat;
}

@media (min-width: 768px) {
  .services-view-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .services-view-toggle__btn {
    padding: 0;
  }
}

.services-view--grid {
  margin-bottom: 16px;
}

.services-grid__category {
  margin-bottom: 22px;
}

.services-grid__category:last-child {
  margin-bottom: 0;
}

.services-grid__category-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.services-grid__category-icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.services-grid__category-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.services-grid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--brand-green) 35%, var(--brand-border));
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-card__favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #c4c9d0;
  cursor: pointer;
}

.service-card__favorite.favorite-active,
.service-card__favorite:hover {
  color: #f5b301;
}

.service-card__id {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-muted);
  letter-spacing: 0.02em;
}

.service-card__name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand-black);
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.service-card__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 4px;
  padding: 12px 0 10px;
  border-top: 1px solid color-mix(in srgb, var(--brand-border) 80%, transparent);
}

.service-card__price-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand-muted);
}

.service-card__price-value {
  margin: 0;
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.6vw, 1.625rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--brand-black);
  white-space: nowrap;
}

.service-card__price-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font: inherit;
  color: inherit;
}

.service-card__price-currency {
  margin-right: 2px;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--brand-black);
}

.service-card__price-amount {
  font: inherit;
  color: inherit;
}

.service-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--brand-surface) 85%, #fff);
  border-radius: 10px;
}

.service-card__meta-row {
  display: contents;
}

.service-card__meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-muted);
}

.service-card__meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-black);
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.service-card__actions .btn-primary {
  margin-left: auto;
}

.hi-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
}

.hi-toolbar .nav-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.hi-toolbar .nav-pills > li {
  float: none;
  display: block;
  margin: 0;
}

.hi-toolbar .nav-pills > li > .dropdown {
  display: block;
}

.hi-toolbar .nav-pills > li > .dropdown > .btn,
.hi-toolbar .nav-pills > li > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.hi-toolbar .nav-pills > li > .dropdown > .btn > [data-filter-active-category] {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.hi-toolbar .nav-pills > li > .dropdown > .btn > .caret {
  margin-left: 2px;
  flex-shrink: 0;
}

.hi-toolbar .search,
.hi-toolbar .nav-pills > li.pull-right.search,
.hi-toolbar .nav-pills > li.search,
.hi-toolbar__search {
  float: none !important;
}

.hi-toolbar .search .input-group,
.hi-toolbar__search .input-group {
  display: flex;
  width: 100%;
}

.hi-toolbar .search .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
}

.hi-toolbar .search .input-group-btn {
  width: auto;
  display: flex;
}

.hi-toolbar .search .input-group-btn .btn {
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 var(--brand-radius) var(--brand-radius) 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  background: #fff;
  box-shadow: none;
}

.hi-toolbar .search .form-control {
  border-radius: var(--brand-radius) 0 0 var(--brand-radius);
}

.hi-toolbar .search .form-control:focus {
  z-index: 2;
}

.hi-toolbar .search .input-group:focus-within .input-group-btn .btn {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent);
}

.hi-toolbar .dropdown-menu {
  max-width: min(100vw - 48px, 360px);
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

@media (max-width: 767px) {
  .hi-toolbar {
    padding: 10px;
    gap: 8px;
  }

  .hi-toolbar .nav-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hi-toolbar .nav-pills > li {
    width: 100%;
  }

  .hi-toolbar .nav-pills > li > .dropdown,
  .hi-toolbar .nav-pills > li > .dropdown > .btn,
  .hi-toolbar .nav-pills > li > .btn {
    width: 100%;
  }

  .hi-toolbar .nav-pills > li > .dropdown > .btn {
    justify-content: flex-start;
  }

  .hi-toolbar .nav-pills > li > .dropdown > .btn > [data-filter-active-category] {
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
  }

  .hi-toolbar .nav-pills > li > .dropdown > .btn > .caret {
    margin-left: auto;
  }

  .hi-toolbar .search,
  .hi-toolbar .nav-pills > li.pull-right.search,
  .hi-toolbar .nav-pills > li.search,
  .hi-toolbar__end,
  .hi-toolbar__search {
    width: 100%;
    max-width: none;
    flex: none;
    margin-left: 0;
  }

  .hi-toolbar .search .input-group,
  .hi-toolbar__search .input-group {
    width: 100%;
  }

  .hi-toolbar .dropdown-menu {
    width: 100%;
    max-width: none;
    font-size: 14px;
  }

  .hi-toolbar .dropdown-menu > li > a {
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
  }

  .hi-toolbar__end {
    width: 100%;
    margin-left: 0;
  }

  .hi-toolbar__end-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hi-toolbar__search {
    max-width: none;
    width: 100%;
  }

  .services-view-toggle__group {
    display: flex;
    width: 100%;
  }

  .services-view-toggle__btn {
    flex: 1 1 50%;
  }

  .services-grid__cards {
    grid-template-columns: 1fr;
  }

  .services-table-card {
    margin-left: 0;
    margin-right: 0;
  }

  .services-table-card .table td.service-name,
  .services-table-card .table th.width-service-name {
    min-width: 0;
    max-width: none;
    white-space: normal;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.35;
  }
}

/* ============================================================
   Auth cards
   ============================================================ */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 0 auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  box-sizing: border-box;
}

.auth-page-extra {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px 40px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.auth-card--wide {
  max-width: 520px;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  text-decoration: none;
  color: var(--brand-black);
}

.auth-card__logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.auth-card__logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-card__header {
  margin-bottom: 22px;
  text-align: center;
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.auth-card__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-muted);
}

.auth-card__form .form-group {
  margin-bottom: 14px;
}

.auth-card__submit,
.auth-card .btn-primary {
  width: 100%;
  margin-top: 4px;
  padding: 12px 18px;
}

.auth-card__footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--brand-muted);
}

.auth-card__footer a {
  font-weight: 700;
}

.auth-field__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.auth-field__forgot {
  font-size: 13px;
  font-weight: 600;
}

.auth-card__fields--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.auth-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .auth-card__fields--grid {
    grid-template-columns: 1fr;
  }
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-card__divider-line {
  flex: 1;
  height: 1px;
  background: var(--brand-border);
}

.form-group__password {
  position: relative;
}

.forgot-password {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Misc */

#notify-wrapper {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  max-width: 360px;
}

.border-solid.border-rounded {
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 12px 14px;
  background: var(--brand-surface);
}

.width-service-name,
.width-40 {
  max-width: 280px;
  word-break: break-word;
}

/* Ticket conversation */
.ticket-message {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  padding: 14px 16px;
  margin-bottom: 6px;
}

.ticket-message-right .ticket-message {
  background: var(--brand-green-soft);
  border-color: color-mix(in srgb, var(--brand-green) 25%, transparent);
}

.titcket-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: var(--brand-radius) !important;
  color: var(--brand-muted);
  border-color: var(--brand-border);
}

.pagination > .active > a,
.pagination > .active > span {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--brand-on-green);
}

/* ============================================================
   Select2 service hover — final overrides (load-order safety)
   Perfect Panel appends .dropdown-menu; Bootstrap paints .active > a blue.
   ============================================================ */
body .select2-dropdown .select2-results__option {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--brand-black) !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  align-items: flex-start !important;
}

body .select2-dropdown .select2-results__option .select2-selection__text,
body .select2-dropdown .select2-selection__text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
}

body .select2-dropdown .select2-results__option a,
body .select2-dropdown .select2-results__option a:hover,
body .select2-dropdown .select2-results__option a:focus,
body .select2-dropdown .select2-results__option a:active,
body .select2-dropdown .dropdown-menu > .active > a,
body .select2-dropdown .dropdown-menu > .active > a:hover,
body .select2-dropdown .dropdown-menu > .active > a:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  padding: 0 !important;
}

body .select2-dropdown .select2-results__option--highlighted,
body .select2-dropdown .select2-results__option--highlighted.active,
body .select2-dropdown .select2-results__option[aria-selected="true"],
body .select2-dropdown .select2-results__option.active {
  background: var(--brand-green-soft) !important;
  background-color: var(--brand-green-soft) !important;
  color: var(--brand-black) !important;
}

/* ============================================================
   Payment method tiles
   ============================================================ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 991px) {
  .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.method-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 96px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  color: var(--brand-black);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.method-tile:hover {
  border-color: color-mix(in srgb, var(--brand-green) 45%, transparent);
  transform: translateY(-1px);
}

.method-tile:focus {
  outline: none;
}

.method-tile:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 30%, transparent);
}

.method-tile.is-active {
  border-color: var(--brand-green);
  background: var(--brand-green-soft);
  box-shadow: 0 0 0 1px var(--brand-green) inset;
}

.method-tile__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}

.method-tile__logo img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
}

.method-tile__logo--compact img {
  max-width: 70%;
  max-height: 26px;
}

.method-tile__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-green-soft);
  color: var(--brand-green-muted);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.method-tile.is-active .method-tile__initial {
  background: #fff;
}

.method-tile__name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.method-tile__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-green);
}

.method-tile__check::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid var(--brand-on-green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.method-tile.is-active .method-tile__check {
  display: block;
}

[dir="rtl"] .method-tile__check {
  right: auto;
  left: 8px;
}

/* ============================================================
   Dash tabs
   ============================================================ */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin: -4px 0 18px;
  box-shadow: inset 0 -1px 0 var(--brand-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tabs__btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--brand-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dash-tabs__btn:hover {
  color: var(--brand-black);
}

.dash-tabs__btn:focus {
  outline: none;
}

.dash-tabs__btn:focus-visible {
  border-radius: var(--brand-radius) var(--brand-radius) 0 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 25%, transparent);
}

.dash-tabs__btn.is-active {
  color: var(--brand-black);
  border-bottom-color: var(--brand-green);
}

.dash-tabs__icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--tab-icon) center / contain no-repeat;
  mask: var(--tab-icon) center / contain no-repeat;
}

.dash-tabs__btn.is-active .dash-tabs__icon {
  color: var(--brand-green-muted);
}

.dash-tabs__icon--wallet {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
}

.dash-tabs__icon--history {
  --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E");
}

.dash-tab-pane {
  display: none;
}

.dash-tab-pane.is-active {
  display: block;
}

.dash-tab-pane .table-card {
  margin-bottom: 0;
}

.dash-tab-pane .pagination {
  margin: 16px 0 0;
}

/* ============================================================
   Logo select (custom dropdown over a hidden native select)
   ============================================================ */
.logo-select {
  position: relative;
}

.logo-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.logo-select__trigger.form-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.logo-select__value {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-select__chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23687064' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}

.logo-select.is-open .logo-select__chevron {
  transform: rotate(180deg);
}

.logo-select.is-open .logo-select__trigger.form-control {
  border-color: color-mix(in srgb, var(--brand-green) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-green) 18%, transparent);
}

.logo-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: 320px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--brand-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.logo-select__menu[hidden] {
  display: none;
}

.logo-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-black);
  cursor: pointer;
  outline: none;
}

.logo-select__option + .logo-select__option {
  margin-top: 2px;
}

.logo-select__option:hover,
.logo-select__option:focus {
  background: var(--brand-green-soft);
}

.logo-select__option[aria-selected="true"] {
  background: var(--brand-green);
  color: var(--brand-on-green);
  font-weight: 600;
}

.logo-select__logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 22px;
}

.logo-select__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-select__logo--compact img {
  max-width: 75%;
  max-height: 65%;
}

.logo-select__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green-soft);
  color: var(--brand-green-muted);
  font-size: 12px;
  font-weight: 700;
}

.logo-select__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-select__menu .logo-select__label {
  white-space: normal;
}

[dir="rtl"] .logo-select__trigger.form-control {
  text-align: right;
}

/* ============================================================
   Tickets layout
   ============================================================ */
.tickets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}

.tickets-grid > .dash-panel {
  min-width: 0;
  margin-bottom: 0;
}

.tickets-grid__form {
  position: sticky;
  top: 16px;
}

.tickets-grid__list {
  min-width: 0;
}

.tickets-grid__search {
  margin-bottom: 14px;
}

.tickets-grid__search-form {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.tickets-grid__search .input-group {
  display: flex;
  width: 100%;
}

.tickets-grid__list .pagination {
  margin-top: 16px;
}

[dir="rtl"] .tickets-grid__search-form {
  margin-left: 0;
  margin-right: auto;
}

/* ============================================================
   Add funds layout
   ============================================================ */
.addfunds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.addfunds-grid > .dash-panel {
  min-width: 0;
  margin-bottom: 0;
}

.addfunds-info {
  position: sticky;
  top: 16px;
  padding: 0;
  overflow: hidden;
}

.addfunds-info__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--brand-border);
  background: var(--brand-green-soft);
}

.addfunds-info__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--brand-radius);
  background: var(--brand-green);
  color: var(--brand-on-green);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
}

.addfunds-info__title {
  margin: 0;
  font-size: 16px;
}

.addfunds-info__body {
  padding: 18px 22px;
  max-height: calc(100dvh - var(--brand-header-height, 64px) - 120px);
  overflow-y: auto;
}

.addfunds-info__body > .dash-panel--prose > :first-child {
  margin-top: 0;
}

.addfunds-info__cms {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}

.addfunds-main [id^="instruction_"] {
  margin-top: 20px;
}

.addfunds-instructions {
  width: 100%;
  text-align: left;
}

.addfunds-instructions .smh-pay[data-smh-pay],
.addfunds-main .smh-pay[data-smh-pay],
.addfunds-info .smh-pay[data-smh-pay],
.form-group .smh-pay[data-smh-pay],
#amount-fields .smh-pay[data-smh-pay] {
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}

.addfunds-instructions .smh-pay[data-smh-pay] .smh-pay__steps,
.addfunds-main .smh-pay[data-smh-pay] .smh-pay__steps,
.form-group .smh-pay[data-smh-pay] .smh-pay__steps {
  text-align: left;
}

.addfunds-instructions .smh-pay[data-smh-pay] .smh-pay__steps li,
.addfunds-main .smh-pay[data-smh-pay] .smh-pay__steps li,
.form-group .smh-pay[data-smh-pay] .smh-pay__steps li {
  text-align: left;
}

.addfunds-info__help {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed color-mix(in srgb, var(--brand-green) 45%, transparent);
  border-radius: var(--brand-radius);
  background: color-mix(in srgb, var(--brand-green-soft) 60%, #fff);
}

.addfunds-info__help-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.addfunds-info__help-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-muted);
}

/* ============================================================
   Steps + check list
   ============================================================ */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 13px;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--brand-green) 30%, transparent);
}

.steps__num {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-on-green);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

.steps__content {
  min-width: 0;
  padding-top: 3px;
}

.steps__title {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-black);
}

.steps__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-muted);
}

[dir="rtl"] .steps__item:not(:last-child)::before {
  left: auto;
  right: 13px;
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-black);
}

.check-list li + li {
  margin-top: 8px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-green-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--brand-green-muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 26px;
}

[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .check-list li::after {
  left: auto;
  right: 6px;
}

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

  .tickets-grid__form {
    position: static;
  }

  .tickets-grid__search-form {
    max-width: none;
    margin-left: 0;
  }

  .addfunds-grid {
    grid-template-columns: 1fr;
  }

  .addfunds-info {
    position: static;
  }

  .addfunds-info__body {
    max-height: none;
  }
}
