/* =====================================================================
   Yumdel — Premium Theme Override Layer
   ---------------------------------------------------------------------
   Light + brand-blue (#34558B) premium refresh.
   Loaded LAST in every layout so it cascades over the existing
   webcss stack (main.css / dashboard.css / admindash.css /
   super-admin.css / dore.*). Pure CSS, no markup changes required.

   Design tokens live in :root — change a value here and it propagates
   across forms, tables, search areas, cards, login & reset pages.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --pr-primary:        #34558B;
  --pr-primary-rgb:    52, 85, 139;
  --pr-primary-600:    #2c4878;
  --pr-primary-700:    #233a61;
  --pr-primary-soft:   rgba(52, 85, 139, 0.08);
  --pr-primary-soft-2: rgba(52, 85, 139, 0.14);

  /* Accents / status */
  --pr-success: #1f9d63;
  --pr-danger:  #d64550;
  --pr-warning: #e0a83b;
  --pr-info:    #3b86c4;

  /* Neutrals */
  --pr-bg:        #f4f6fb;   /* app canvas */
  --pr-surface:   #ffffff;   /* cards / panels */
  --pr-border:    #e6e9f0;
  --pr-border-2:  #eef1f6;
  --pr-text:      #1d2433;
  --pr-text-soft: #5b6577;
  --pr-text-mute: #8a93a6;

  /* Shape & depth */
  --pr-radius-sm: 8px;
  --pr-radius:    12px;
  --pr-radius-lg: 18px;
  --pr-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --pr-shadow:    0 4px 16px rgba(16, 24, 40, 0.06), 0 1px 4px rgba(16, 24, 40, 0.04);
  --pr-shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.12);
  --pr-ring:      0 0 0 3px rgba(var(--pr-primary-rgb), 0.18);

  --pr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pr-transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------
   1. Base typography & canvas
   ------------------------------------------------------------------- */
body,
#app-container {
  font-family: var(--pr-font) !important;
  color: var(--pr-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.main_content,
.main.default-transition,
main {
  background: transparent;
}

main {
  padding-top: 5.5rem !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#app-container { background: var(--pr-bg); }

h1, h2, h3, h4, h5, h6,
.card-title,
.table-title {
  font-family: var(--pr-font) !important;
  color: var(--pr-text);
  letter-spacing: -0.01em;
}

a { transition: color var(--pr-transition); }

/* ---------------------------------------------------------------------
   2. Top navbar
   ------------------------------------------------------------------- */
.navbar.navbarFixed,
.navbar.fixed-top {
  background: var(--pr-surface) !important;
  box-shadow: var(--pr-shadow-sm);
  border-bottom: 1px solid var(--pr-border);
  backdrop-filter: saturate(1.1);
}

.navbar .admin_link a {
  color: var(--pr-primary);
  font-weight: 600;
}

.navbar .header-icons .count,
.navbar .count {
  background: var(--pr-danger);
  color: #fff;
  border: 2px solid var(--pr-surface);
}

.navbar .headProfile img,
.icon_img img {
  border-radius: 50%;
  border: 2px solid var(--pr-border);
  object-fit: cover;
  transition: border-color var(--pr-transition);
}
.navbar .user:hover .headProfile img { border-color: var(--pr-primary); }

/* ---------------------------------------------------------------------
   3. Sidebar / menu
   ------------------------------------------------------------------- */
.menu .main-menu,
.menu .sideMenu {
  background: var(--pr-surface) !important;
  border-right: 1px solid var(--pr-border);
}

.menu .main-menu ul li a {
  color: var(--pr-text-soft);
  border-radius: var(--pr-radius-sm);
  margin: 2px 10px;
  transition: background var(--pr-transition), color var(--pr-transition);
}

.menu .main-menu ul li a .menu-title {
  font-weight: 500;
  font-size: 0.82rem;
}

.menu .main-menu ul li a:hover {
  background: var(--pr-primary-soft);
  color: var(--pr-primary);
}

.menu .main-menu ul li.active a,
.menu .main-menu ul li.active > .d-flex a {
  background: var(--pr-primary-soft-2);
  color: var(--pr-primary) !important;
}

.menu .main-menu ul li.active { border-left: 0; }

/* tint inline SVG icons on active/hover where the icon uses fill */
.menu .main-menu ul li.active a svg path[fill],
.menu .main-menu ul li a:hover svg path[fill] {
  fill: var(--pr-primary);
}

.menu .sub-menu {
  background: #fbfcfe !important;
  border-right: 1px solid var(--pr-border);
}
.menu .sub-menu ul li a { color: var(--pr-text-soft); border-radius: var(--pr-radius-sm); }
.menu .sub-menu ul li.active a,
.menu .sub-menu ul li a:hover { color: var(--pr-primary); }

/* ---------------------------------------------------------------------
   4. Cards / content panels
   ------------------------------------------------------------------- */
.card,
.contentWrapper,
.dashboard-card {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius) !important;
  box-shadow: var(--pr-shadow);
}

.card { transition: box-shadow var(--pr-transition), transform var(--pr-transition); }

.card-title.table-title,
.text_message h3 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pr-text);
}

.text_message {
  background: transparent;
  border-left: 3px solid var(--pr-primary);
  padding-left: 12px;
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------- */
.btn {
  border-radius: var(--pr-radius-sm) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--pr-transition), box-shadow var(--pr-transition),
              transform var(--pr-transition), border-color var(--pr-transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary,
.btn-blue,
.superadminForm .btn-shadow {
  background: var(--pr-primary) !important;
  border: 1px solid var(--pr-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(var(--pr-primary-rgb), 0.25);
}
.btn-primary:hover,
.btn-blue:hover,
.superadminForm .btn-shadow:hover {
  background: var(--pr-primary-600) !important;
  border-color: var(--pr-primary-600) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(var(--pr-primary-rgb), 0.32);
}
.btn-primary:focus-visible,
.btn-blue:focus-visible { box-shadow: var(--pr-ring) !important; }

.grey-btn,
.btn-secondary {
  background: #eef1f6 !important;
  border: 1px solid var(--pr-border) !important;
  color: var(--pr-text-soft) !important;
}
.grey-btn:hover,
.btn-secondary:hover {
  background: #e4e8f0 !important;
  color: var(--pr-text) !important;
}

.btn-blue i.fa,
.grey-btn i.fa { margin-right: 0.4rem; }

.btn-shadow { box-shadow: 0 2px 8px rgba(var(--pr-primary-rgb), 0.25) !important; }

/* ---------------------------------------------------------------------
   6. Form controls
   ------------------------------------------------------------------- */
.form-control,
.superadminForm .inputIcon input,
.select2-container--default .select2-selection--single,
.select2-selection {
  border: 1px solid var(--pr-border) !important;
  border-radius: var(--pr-radius-sm) !important;
  background: var(--pr-surface) !important;
  color: var(--pr-text) !important;
  transition: border-color var(--pr-transition), box-shadow var(--pr-transition),
              background var(--pr-transition);
}

.form-control::placeholder,
.superadminForm .inputIcon input::placeholder { color: var(--pr-text-mute) !important; }

.form-control:focus,
.superadminForm .inputIcon input:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--pr-primary) !important;
  box-shadow: var(--pr-ring) !important;
  background: var(--pr-surface) !important;
  outline: none;
}

label,
.has-float-label > span,
.has-float-label > label {
  color: var(--pr-text-soft);
  font-weight: 500;
}

/* select2 selected / dropdown */
.select2-container--default .select2-selection--single { height: calc(2.5rem + 2px); display: flex; align-items: center; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--pr-primary) !important; }
.select2-dropdown { border-color: var(--pr-border) !important; border-radius: var(--pr-radius-sm); box-shadow: var(--pr-shadow); }

/* custom switches / checks */
.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background: var(--pr-primary) !important;
  border-color: var(--pr-primary) !important;
}

/* ---------------------------------------------------------------------
   7. Search areas
   ------------------------------------------------------------------- */
.search-sm,
.search,
.store_list .search,
form.search input,
input[type="search"] {
  border: 1px solid var(--pr-border) !important;
  border-radius: 999px !important;
  background: var(--pr-surface) !important;
  padding-left: 2.4rem !important;
}
.search-sm:focus,
input[type="search"]:focus { border-color: var(--pr-primary) !important; box-shadow: var(--pr-ring) !important; }

.store_list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------
   8. Tables
   ------------------------------------------------------------------- */
.contentWrapper {
  padding: 0.25rem;
  overflow-x: auto;
}

table.bgWhite.dashboard-table,
table.dashboard-table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  background: var(--pr-surface);
}

table.bgWhite.dashboard-table tr th,
.contentWrapper tr th {
  background: #f7f9fc !important;
  color: var(--pr-text-soft) !important;
  font-weight: 600 !important;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none !important;
  border-bottom: 1px solid var(--pr-border) !important;
  padding: 0.9rem 1rem !important;
}

table.bgWhite.dashboard-table tr td,
.contentWrapper tr td {
  color: var(--pr-text);
  font-size: 0.88rem;
  border: none !important;
  border-bottom: 1px solid var(--pr-border-2) !important;
  padding: 0.85rem 1rem !important;
  vertical-align: middle;
}

.contentWrapper tr:nth-child(odd) td,
.contentWrapper tr:nth-child(even) td { background: var(--pr-surface) !important; }

.contentWrapper tbody tr { transition: background var(--pr-transition); }
.contentWrapper tbody tr:hover td { background: var(--pr-primary-soft) !important; }

/* round the table's outer corners via first/last header & row cells */
table.bgWhite.dashboard-table tr th:first-child { border-top-left-radius: var(--pr-radius-sm); }
table.bgWhite.dashboard-table tr th:last-child  { border-top-right-radius: var(--pr-radius-sm); }

/* row action icons */
.action a,
.action button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--pr-radius-sm);
  border: 1px solid var(--pr-border);
  background: var(--pr-surface);
  color: var(--pr-text-soft);
  margin: 0 2px;
  transition: all var(--pr-transition);
}
.action a:hover { background: var(--pr-primary-soft); color: var(--pr-primary); border-color: var(--pr-primary); }
.action button:hover { background: rgba(214, 69, 80, 0.1); color: var(--pr-danger); border-color: var(--pr-danger); }
.action form { display: inline-block; margin: 0; }

/* empty state */
.emptyrecord {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--pr-text-mute);
}
.emptyrecord h1 { font-size: 1.1rem; font-weight: 600; color: var(--pr-text-soft); margin-bottom: 0.75rem; }
.emptyrecord svg path { fill: var(--pr-text-mute); }

/* DataTables wrapper controls */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--pr-border) !important;
  border-radius: var(--pr-radius-sm) !important;
  padding: 0.4rem 0.7rem !important;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--pr-primary) !important; box-shadow: var(--pr-ring) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--pr-primary) !important;
  border-color: var(--pr-primary) !important;
  color: #fff !important;
  border-radius: var(--pr-radius-sm);
}

/* ---------------------------------------------------------------------
   9. Pagination bar (custom blade)
   ------------------------------------------------------------------- */
.pr-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0.25rem 0.5rem;
}
.pr-pagination-info {
  font-size: 0.8rem;
  color: var(--pr-text-soft);
  font-family: var(--pr-font);
}
.pr-pagination-info strong { color: var(--pr-text); font-weight: 600; }
.pr-pagination-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pr-perpage {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--pr-text-soft);
  font-family: var(--pr-font);
}
.pr-perpage-label { white-space: nowrap; }
.pr-perpage-select {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--pr-border);
  border-radius: 7px;
  font-size: 0.8rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-surface);
  cursor: pointer;
  outline: none;
  transition: border-color var(--pr-transition), box-shadow var(--pr-transition);
}
.pr-perpage-select:focus {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 2px rgba(52,85,139,.12);
}
.pagination { gap: 3px; flex-wrap: nowrap; }
.pagination .page-item .page-link,
.pagination .page-item span.page-link {
  border: 1px solid var(--pr-border);
  border-radius: 8px !important;
  color: var(--pr-text-soft);
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--pr-font);
  background: var(--pr-surface);
  transition: all var(--pr-transition);
  text-decoration: none;
  user-select: none;
  line-height: 1;
}
.pagination .page-item .page-link:hover {
  background: var(--pr-primary-soft);
  border-color: rgba(52,85,139,.30);
  color: var(--pr-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(52,85,139,.10);
}
.pagination .page-item.active .page-link,
.pagination .page-item.active span.page-link {
  background: var(--pr-primary) !important;
  border-color: var(--pr-primary) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(52,85,139,.32);
  transform: translateY(-1px);
}
.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled span.page-link {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------------------------------------------------------------------
   10. Alerts / badges
   ------------------------------------------------------------------- */
.alert {
  border: 1px solid transparent;
  border-radius: var(--pr-radius-sm);
  font-weight: 500;
}
.alert-success {
  background: rgba(31, 157, 99, 0.1) !important;
  border-color: rgba(31, 157, 99, 0.25);
  color: #157a4b;
}
.alert-danger {
  background: rgba(214, 69, 80, 0.1) !important;
  border-color: rgba(214, 69, 80, 0.25);
  color: #b02631;
}
.badge-primary { background: var(--pr-primary) !important; }

/* ---------------------------------------------------------------------
   11. Auth pages — login / reset / forgot
   ------------------------------------------------------------------- */
html.htmlSuperbg,
.htmlSuperbg { background: var(--pr-bg) !important; }

body.body-superbg,
body.background {
  background: var(--pr-bg) !important;
  min-height: 100vh;
}

/* gradient canvas behind the dore auth card */
body.background .fixed-background,
.fixed-background {
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(var(--pr-primary-rgb), 0.10), transparent 60%),
    radial-gradient(1000px 600px at 100% 100%, rgba(var(--pr-primary-rgb), 0.08), transparent 55%),
    var(--pr-bg) !important;
}

/* the standalone superadmin login card */
body.body-superbg .form-side {
  width: 30rem;
  max-width: 92vw;
  margin: 4rem auto;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-lg);
  box-shadow: var(--pr-shadow-lg);
  padding: 2.5rem 2.25rem;
}
.form-side h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; }

.superadminForm .inputIcon input {
  width: 100%;
  background: #f7f9fc !important;
  border: 1px solid var(--pr-border) !important;
  padding: 0.85rem 1rem 0.85rem 3rem !important;
  height: auto;
}
.superadminForm .inputIcon input:focus { background: var(--pr-surface) !important; }
.superadminForm .inputIcon span svg path { fill: var(--pr-primary); }

.superadminForm .btn-shadow {
  height: auto;
  padding: 0.85rem;
  font-size: 1.05rem;
  border-radius: var(--pr-radius-sm);
}

/* dore-based reset / forgot card */
.card.auth-card {
  border-radius: var(--pr-radius-lg) !important;
  box-shadow: var(--pr-shadow-lg);
  overflow: hidden;
  border: 1px solid var(--pr-border);
}
.card.auth-card .image-side {
  background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-primary-700) 100%) !important;
  color: #fff;
}
.card.auth-card .image-side .h2,
.card.auth-card .image-side p { color: #fff !important; }
.card.auth-card .form-side {
  box-shadow: none;
  border: none;
  margin: 0;
  width: 100%;
}
.backBtn a { color: var(--pr-primary) !important; }

/* float-label focus colour on auth inputs */
.has-float-label .form-control:focus ~ span,
.has-float-label .form-control:focus ~ label { color: var(--pr-primary); }

/* ---------------------------------------------------------------------
   12. Scrollbar polish (webkit)
   ------------------------------------------------------------------- */
.scroll::-webkit-scrollbar,
.contentWrapper::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll::-webkit-scrollbar-thumb,
.contentWrapper::-webkit-scrollbar-thumb {
  background: #cfd6e4;
  border-radius: 999px;
}
.scroll::-webkit-scrollbar-thumb:hover,
.contentWrapper::-webkit-scrollbar-thumb:hover { background: var(--pr-primary); }

/* =====================================================================
   13. Sidebar — Dark premium sidebar (Synto-style)
   =====================================================================
   DEFAULT  = collapsed, icon-only (64px)
   HOVER    = overlay-expand (240px, content does NOT shift — flyout)
   CLICK ☰  = permanent expand (sidebar-open class, content DOES shift)

   When permanently open a « close button appears inside the sidebar.
   Hover on any active item always keeps text visible (contrast safe).
   ===================================================================== */

/* ── 13a. Tokens (extend :root) ──────────────────────────────────────── */
:root {
  --sb-bg:          #1e2139;
  --sb-bg-hover:    rgba(255,255,255,0.07);
  --sb-bg-active:   rgba(255,255,255,0.12);
  --sb-text:        #a2a3b7;
  --sb-text-hover:  #ffffff;
  --sb-accent:      #7c9ed9;   /* brand-blue lightened for dark bg */
  --sb-w:           240px;
  --sb-w-sm:        64px;
  --sb-easing:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 13b. Neutralise Dore JS state-machine classes ───────────────────── */
#app-container.main-hidden .main-menu,
#app-container.main-hidden .main-menu.sideMenu,
#app-container.menu-default .main-menu,
#app-container.menu-sub-hidden .main-menu {
  transform: none !important;
  width: var(--sb-w-sm) !important;
}
#app-container.sidebar-open.main-hidden .main-menu,
#app-container.sidebar-open.main-hidden .main-menu.sideMenu {
  width: var(--sb-w) !important;
}
#app-container.main-hidden .menuIcon svg,
#app-container.menu-default .menuIcon svg { display: block !important; }

/* ── 13c. Sidebar shell ──────────────────────────────────────────────── */
/* Use #app-container ID to beat every Dore !important rule (background:#fff,
   flex-direction:column, transition:1s ease all come from dore CSS) */
#app-container .menu .main-menu.sideMenu,
#app-container .menu .sideMenu {
  position: fixed !important;
  top: 3.4rem !important;
  left: 0 !important;
  height: calc(100vh - 3.4rem) !important;
  width: var(--sb-w-sm) !important;   /* default: collapsed (icon-only) */
  overflow: hidden !important;
  background: var(--sb-bg) !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.28) !important;
  transition: width 250ms var(--sb-easing) !important;
  z-index: 1030 !important;
}

/* Hover = overlay flyout — only when NOT permanently open */
#app-container:not(.sidebar-open) .menu .main-menu.sideMenu:hover,
#app-container:not(.sidebar-open) .menu .sideMenu:hover {
  width: var(--sb-w) !important;
}

/* Permanently open (click hamburger toggle) */
#app-container.sidebar-open .menu .main-menu.sideMenu,
#app-container.sidebar-open .menu .sideMenu {
  width: var(--sb-w) !important;
}

/* ── 13d. Main content — only shifts on permanent open ───────────────── */
main.default-transition {
  margin-left: var(--sb-w-sm) !important;
  margin-top: 0;
  transition: margin-left 250ms var(--sb-easing) !important;
}
#app-container.sidebar-open main.default-transition {
  margin-left: var(--sb-w) !important;
}

/* ── 13e. Hide unused Dore sub-menu panel ────────────────────────────── */
.menu .sub-menu.subMenu { display: none !important; }

/* ── 13f. Sidebar close button (injected via JS) ─────────────────────── */
.sb-close-btn {
  display: none;                  /* hidden by default */
  align-items: center;
  justify-content: flex-end;
  padding: 0.6rem 0.75rem 0.6rem 0;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
}
.sb-close-btn svg { pointer-events: none; }

#app-container.sidebar-open .sb-close-btn { display: flex; }

/* ── 13g. Menu scroll container ─────────────────────────────────────── */
.menu .sideMenu .scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 0.5rem;
}
.menu .sideMenu .scroll::-webkit-scrollbar { width: 4px; }
.menu .sideMenu .scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}
.menu .sideMenu .scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ── 13h. Menu list ──────────────────────────────────────────────────── */
.menu .sideMenu ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}
.menu .sideMenu ul li { margin: 1px 0; }
.menu .sideMenu ul li > .d-flex { width: 100%; }

/* ── 13i. Menu item links ────────────────────────────────────────────── */
/* ID selector to beat Dore's flex-direction:column on .menu .main-menu ul li a */
#app-container .menu .sideMenu ul li a {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-width: unset !important;
  margin: 0 !important;
  padding: 0.95rem 0 !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  color: var(--sb-text) !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 160ms ease !important;
  overflow: visible !important;   /* sidebar shell clips, not the link */
}

/* ── Icon: fixed left indent + gap to text — always on same row ── */
#app-container .menu .sideMenu ul li a svg {
  display: block !important;
  flex-shrink: 0 !important;
  min-width: 1.35rem !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  margin: 0 0.875rem 0 1.25rem !important;  /* [indent] icon [gap] text */
}

/* Icons use stroke="currentColor" — they inherit from link color automatically.
   Keep this rule only for any legacy fill-based icons that remain. */
#app-container .menu .sideMenu ul li a svg {
  color: inherit;   /* ensures currentColor resolves to the link's color */
}
#app-container .menu .sideMenu ul li a svg path[fill]:not([fill="none"]) {
  fill: var(--sb-text) !important;
}

/* ── 13j. Hover state — background only, text colour unchanged ── */
#app-container .menu .sideMenu ul li a:hover {
  background: var(--sb-bg-hover) !important;
}

/* ── 13k. Active state ───────────────────────────────────────────────── */
#app-container .menu .main-menu ul li.active { background: transparent !important; }
#app-container .menu .main-menu ul li.active > .d-flex > a,
#app-container .menu .main-menu ul li.active a,
#app-container .menu .sideMenu ul li a.active {
  background: #34558B !important;
  color: #ffffff !important;
  border-left: 3px solid rgba(255,255,255,0.5) !important;
}
#app-container .menu .main-menu ul li.active a svg,
#app-container .menu .sideMenu ul li a.active svg {
  margin-left: calc(1.25rem - 3px) !important;
}
#app-container .menu .main-menu ul li.active a svg path[fill]:not([fill="none"]),
#app-container .menu .sideMenu ul li a.active svg path[fill]:not([fill="none"]) {
  fill: #ffffff !important;
}

/* Active item hover */
#app-container .menu .main-menu ul li.active a:hover,
#app-container .menu .sideMenu ul li a.active:hover {
  background: #3d6299 !important;
}

/* ── 13l. Menu title text ────────────────────────────────────────────── */
#app-container .menu .sideMenu ul li a .menu-title {
  white-space: nowrap;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  color: inherit !important;
  flex-shrink: 1;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

/* Show text when sidebar is hovered (flyout) or permanently open */
#app-container:not(.sidebar-open) .menu .sideMenu:hover ul li a .menu-title,
#app-container.sidebar-open .menu .sideMenu ul li a .menu-title {
  opacity: 1;
  pointer-events: auto;
}

/* ── 13m. Hamburger button — always shows ☰ (clean) ─────────────────── */
.navbar .menuIcon {
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 160ms ease;
}
.navbar .menuIcon:hover { background: rgba(0,0,0,0.06); }

/* Always show hamburger SVG; never show dore's close-icon via navbar */
.menuIcon .menu-close-icon  { display: none !important; }
.menuIcon > svg:first-of-type { display: block !important; }

/* ── 13n. Mobile: overlay sidebar ───────────────────────────────────── */
@media (max-width: 767px) {
  #app-container .menu .main-menu.sideMenu,
  #app-container .menu .sideMenu {
    width: 0 !important;
    box-shadow: none !important;
  }
  #app-container:not(.sidebar-open) .menu .main-menu.sideMenu:hover,
  #app-container:not(.sidebar-open) .menu .sideMenu:hover {
    width: 0 !important;
  }
  #app-container.sidebar-open .menu .main-menu.sideMenu,
  #app-container.sidebar-open .menu .sideMenu {
    width: var(--sb-w) !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3) !important;
  }
  main.default-transition                              { margin-left: 0 !important; }
  #app-container.sidebar-open main.default-transition  { margin-left: 0 !important; }
  #app-container.sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1029;
  }
}

/* =====================================================================
   14. Dashboard — stat cards & store table
   ===================================================================== */
.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--pr-surface);
  border-radius: var(--pr-radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--pr-shadow-sm);
  border: 1px solid var(--pr-border);
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.dash-stat-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.dash-stat-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--icon-bg, rgba(52,85,139,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-stat-icon svg { color: var(--icon-color, #34558B); }
.dash-stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--pr-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.25rem;
}
.dash-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pr-text);
  line-height: 1;
  margin: 0;
}

/* Section header above tables */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}
.dash-section-header h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pr-text);
  margin: 0;
}

/* Store table: smaller image, clean rows */
.dash-store-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.main_content { padding-top: 0; }

/* =====================================================================
   15. Status badges & action buttons (store table)
   ===================================================================== */
.pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.pr-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pr-badge-success {
  background: rgba(16,185,129,0.12);
  color: #10b981;
}
.pr-badge-danger {
  background: rgba(239,68,68,0.10);
  color: #ef4444;
}

/* Compact icon-row action buttons */
.pr-action-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.pr-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.03);
  color: #6b7280;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
  text-decoration: none !important;
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
}
.pr-action-btn:hover {
  background: rgba(52,85,139,0.10);
  color: var(--pr-primary);
  border-color: rgba(52,85,139,0.22);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(52,85,139,.12);
}
/* View (eye) — blue */
.pr-action-btn--view {
  color: #3b82f6;
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.18);
}
.pr-action-btn--view:hover {
  background: rgba(59,130,246,0.15);
  color: #2563eb;
  border-color: rgba(59,130,246,0.32);
  box-shadow: 0 2px 8px rgba(59,130,246,.18);
}
/* Edit (pencil) — amber */
.pr-action-btn--edit {
  color: #d97706;
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.18);
}
.pr-action-btn--edit:hover {
  background: rgba(245,158,11,0.15);
  color: #b45309;
  border-color: rgba(245,158,11,0.32);
  box-shadow: 0 2px 8px rgba(245,158,11,.18);
}
/* Delete (trash) — red */
.pr-action-btn--danger {
  color: #ef4444;
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.18);
}
.pr-action-btn--danger:hover {
  background: rgba(239,68,68,0.15);
  color: #dc2626;
  border-color: rgba(239,68,68,0.32);
  box-shadow: 0 2px 8px rgba(239,68,68,.18);
}

/* =====================================================================
   16. Additional badge variants
   ===================================================================== */
.pr-badge-warning { background: rgba(245,158,11,0.12); color: #d97706; }
.pr-badge-neutral { background: rgba(156,163,175,0.12); color: #6b7280; }
.pr-badge-primary { background: rgba(52,85,139,0.12); color: #34558B; }
.pr-badge-info    { background: rgba(59,134,196,0.12); color: #3b86c4; }

/* =====================================================================
   17. Toggle switch component (app version pages)
   ===================================================================== */
.pr-toggle {
  position: relative; display: inline-block;
  width: 52px; height: 28px; vertical-align: middle;
}
.pr-toggle input { opacity: 0; width: 0; height: 0; }
.pr-toggle-track {
  position: absolute; cursor: pointer; inset: 0;
  background: #d1d5db; border-radius: 999px;
  transition: background 200ms ease;
}
.pr-toggle-track:before {
  content: ""; position: absolute;
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background: #fff; border-radius: 50%;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.pr-toggle input:checked + .pr-toggle-track { background: var(--pr-primary); }
.pr-toggle input:checked + .pr-toggle-track:before { transform: translateX(24px); }

/* =====================================================================
   18. Layout compatibility — legacy page wrappers
   ===================================================================== */
/* Kill the inline <style> margin hacks on old pages with !important to win */
section.secWrapper.mainSection.upperSection { margin-top: 0 !important; }

/* content-wrapper / page-wrapper — let main's padding-top handle spacing */
.content-wrapper,
.page-wrapper { padding-top: 0 !important; }

/* Null out secWrapper's default top spacing so old pages don't double-pad */
.secWrapper { margin-top: 0 !important; }

/* =====================================================================
   19. Revenue dashboard stat cards
   ===================================================================== */
.rev-stat-card {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--pr-shadow-sm);
  height: 100%;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.rev-stat-card:hover { box-shadow: var(--pr-shadow); transform: translateY(-1px); }
.rev-stat-card small {
  font-size: 0.73rem; font-weight: 600;
  color: var(--pr-text-soft); text-transform: uppercase;
  letter-spacing: 0.07em; display: block; margin-bottom: 0.3rem;
}
.rev-stat-card strong {
  font-size: 1.5rem; font-weight: 700; color: var(--pr-text);
}

/* =====================================================================
   20. Order status / modal styles (account management)
   ===================================================================== */
#tblOrderInfo tr { border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; }
#tblOrderInfo .border_none,
#tblOrderInfo .border_none_subitem { border: none; }
#tblOrderInfo .border_none td,
#tblOrderInfo .border_none_subitem td { padding: 0.2rem 0; }
#tblOrderInfo thead tr { border: none; }
#tblOrderInfo thead tr th { font-size: 14px; }
#tblOrderInfo tr td { padding: 0.7rem 0; }
.order_header {
  display: flex; align-items: center; justify-content: space-between;
  color: #000; font-size: 28px; font-weight: bold; margin-bottom: 20px;
}
.order_header .modal-title { font-weight: bold; }
.order_header p { margin-bottom: 0; font-size: 14px; font-weight: bold; }
.order_header_sec { display: flex; align-items: center; }
.order_header_sec p:nth-child(1) { max-width: 40%; width: 100%; }
span.ord_info { color: #c43d4b; }
span.dateOrder, span.orderTip { color: #000; font-weight: bold; }
td.price_order_end, th.price_order_end_head { text-align: end; }
.modal .modal-content { padding: 1rem; }
.modal .modal-body, .modal .modal-footer, .modal .modal-header { padding: 0; }
.price-footer-row td[style*="fed45a"] {
  background: rgba(52,85,139,0.08) !important;
  color: var(--pr-text);
  font-weight: 700;
}

/* =====================================================================
   21. Store form — sectioned layout
   ===================================================================== */
.pr-form-wrap { max-width: 900px; }
.pr-form-section {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--pr-shadow-sm);
}
.pr-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pr-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--pr-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pr-section-title svg { flex-shrink: 0; }
.pr-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 640px) { .pr-form-grid-2 { grid-template-columns: 1fr; } }
.pr-field {
  margin-bottom: 1.1rem;
}
.pr-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pr-text-soft);
  margin-bottom: 0.4rem;
  font-family: var(--pr-font);
}
.pr-field .form-control,
.pr-field select.form-control,
.pr-field textarea.form-control {
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-sm);
  font-size: 0.875rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-surface);
  padding: 0.55rem 0.85rem;
  height: auto;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.pr-field .form-control:focus,
.pr-field select.form-control:focus,
.pr-field textarea.form-control:focus {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 3px rgba(52,85,139,.12);
  outline: none;
}
.pr-field .form-control[readonly],
.pr-field select.form-control[readonly] {
  background: var(--pr-bg);
  color: var(--pr-text-soft);
}
.pr-field-error {
  font-size: 0.75rem;
  color: var(--pr-danger);
  margin-top: 0.25rem;
  display: block;
}
/* Image upload card */
.pr-upload-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.pr-upload-card {
  flex: 1;
  min-width: 140px;
  border: 2px dashed var(--pr-border);
  border-radius: var(--pr-radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  background: var(--pr-bg);
}
.pr-upload-card:hover { border-color: var(--pr-primary); background: var(--pr-primary-soft); }
.pr-upload-card .pr-upload-icon {
  width: 36px; height: 36px;
  background: var(--pr-primary-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--pr-primary);
}
.pr-upload-card .pr-upload-label {
  font-size: 0.78rem; font-weight: 600; color: var(--pr-text-soft);
  display: block; cursor: pointer;
}
.pr-upload-preview { margin-top: 0.5rem; }
.pr-upload-preview img { border-radius: 6px; max-width: 100%; }
/* URL strip */
.pr-url-strip {
  display: flex; align-items: center; gap: 0; overflow: hidden;
  border: 1px solid var(--pr-border); border-radius: var(--pr-radius-sm);
}
.pr-url-strip .pr-url-part {
  padding: 0.55rem 0.85rem; font-size: 0.875rem;
  background: var(--pr-bg); color: var(--pr-text-soft);
  font-family: var(--pr-font); white-space: nowrap; border: none; outline: none;
}
.pr-url-strip .pr-url-main {
  flex: 1; border: none; outline: none; padding: 0.55rem 0.85rem;
  font-size: 0.875rem; font-family: var(--pr-font); color: var(--pr-text);
  background: var(--pr-surface);
}
.pr-url-strip .pr-url-main:focus { box-shadow: none; }
.pr-url-strip .pr-url-part + .pr-url-main,
.pr-url-strip .pr-url-main + .pr-url-part { border-left: 1px solid var(--pr-border); }
/* Inline sub-links */
.pr-sublink { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.pr-sublink-label {
  font-size: 0.75rem; font-weight: 600; color: var(--pr-text-mute);
  white-space: nowrap; min-width: 100px;
}
.pr-check-row { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 0.5rem 0; }
.pr-check-row .form-check { display: flex; align-items: center; gap: 0.4rem; padding: 0; margin: 0; }
.pr-check-row .form-check-input { margin: 0; width: 16px; height: 16px; cursor: pointer; accent-color: var(--pr-primary); }
.pr-check-row .form-check-label { font-size: 0.85rem; color: var(--pr-text); font-family: var(--pr-font); cursor: pointer; margin: 0; }
/* Subscription date row */
.pr-date-row { display: flex; align-items: center; gap: 0.75rem; }
.pr-date-row .pr-date-badge {
  font-size: 0.72rem; font-weight: 700; color: var(--pr-text-soft);
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}

/* =====================================================================
   22. Login page redesign
   ===================================================================== */
.pr-login-shell {
  min-height: 100vh;
  display: flex;
  background: var(--pr-bg);
}
.pr-login-brand {
  width: 42%;
  background: linear-gradient(145deg, var(--pr-primary) 0%, #1d3460 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.pr-login-brand::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.pr-login-brand::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.pr-login-brand-logo { margin-bottom: 2.5rem; z-index: 1; }
.pr-login-brand-logo img,
.pr-login-brand-logo svg { max-width: 200px; filter: brightness(0) invert(1); opacity: .95; }
.pr-login-brand-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
  margin-bottom: 0.75rem;
}
.pr-login-brand h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  z-index: 1;
  margin-bottom: 1rem;
}
.pr-login-brand-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  z-index: 1;
  max-width: 320px;
}
.pr-login-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.pr-login-card {
  width: 100%;
  max-width: 420px;
}
.pr-login-card h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--pr-text);
  margin-bottom: 0.4rem;
}
.pr-login-card .pr-login-sub {
  font-size: 0.88rem;
  color: var(--pr-text-soft);
  margin-bottom: 2rem;
}
.pr-input-group {
  margin-bottom: 1.25rem;
}
.pr-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pr-text-soft);
  margin-bottom: 0.4rem;
  font-family: var(--pr-font);
}
.pr-input-wrap {
  position: relative;
}
.pr-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pr-text-mute);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.pr-login-input {
  box-sizing: border-box !important;
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.75rem;
  border: 1.5px solid var(--pr-border);
  border-radius: var(--pr-radius-sm);
  font-size: 0.9rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  outline: none;
}
.pr-login-input:focus {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 3px rgba(52,85,139,.14);
}
.pr-login-input--has-toggle { padding-right: 2.75rem; }
.pr-input-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pr-text-mute);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 140ms ease;
}
.pr-input-toggle:hover { color: var(--pr-primary); }
.pr-login-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--pr-primary);
  color: #fff;
  border: none;
  border-radius: var(--pr-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--pr-font);
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 100ms ease;
  margin-top: 0.5rem;
}
.pr-login-submit:hover {
  background: var(--pr-primary-600);
  box-shadow: 0 4px 14px rgba(52,85,139,.35);
  transform: translateY(-1px);
}
.pr-login-submit:active { transform: translateY(0); }
.pr-field-error-msg {
  font-size: 0.75rem;
  color: var(--pr-danger);
  margin-top: 0.3rem;
  display: none;
}
@media (max-width: 768px) {
  .pr-login-brand { display: none; }
  .pr-login-form-side { padding: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   §14 — Inner settings page navigation panel
═══════════════════════════════════════════════════════ */
.ss-settings-layout {
  display: flex;
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  overflow: hidden;
  min-height: 480px;
}
.ss-settings-nav {
  width: 230px;
  flex-shrink: 0;
  border-right: 1px solid var(--pr-border);
  background: var(--pr-bg);
  display: flex;
  flex-direction: column;
}
.ss-nav-search-wrap {
  padding: 1rem 1rem .75rem;
  border-bottom: 1px solid var(--pr-border);
}
.ss-nav-search-input {
  width: 100%;
  padding: .5rem .75rem .5rem 2rem;
  border: 1.5px solid var(--pr-border);
  border-radius: 8px;
  font-size: .825rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-surface);
  outline: none;
  transition: border-color 150ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .6rem center;
  box-sizing: border-box;
}
.ss-nav-search-input:focus { border-color: var(--pr-primary); }
.ss-nav-list {
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  flex: 1;
}
.ss-nav-item a {
  display: block;
  padding: .65rem 1.25rem;
  font-size: .875rem;
  font-family: var(--pr-font);
  font-weight: 500;
  color: var(--pr-text-soft);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-nav-item a:hover {
  background: rgba(52,85,139,.05);
  color: var(--pr-text);
  text-decoration: none;
}
.ss-nav-item.active a {
  background: rgba(52,85,139,.08);
  color: var(--pr-primary);
  border-left-color: var(--pr-primary);
  font-weight: 600;
}
.ss-nav-item.disabled a {
  color: var(--pr-text-mute);
  cursor: default;
  pointer-events: none;
}
.ss-nav-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--pr-text-mute);
  background: var(--pr-border);
  border-radius: 999px;
  padding: .1rem .45rem;
  margin-left: .4rem;
  vertical-align: middle;
}
.ss-settings-content {
  flex: 1;
  padding: 1.75rem 2rem;
  min-width: 0;
  overflow: auto;
}
.ss-content-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pr-text);
  margin: 0 0 .3rem;
}
.ss-content-sub {
  font-size: .85rem;
  color: var(--pr-text-mute);
  margin: 0 0 1.5rem;
}
.ss-divider {
  height: 1px;
  background: var(--pr-border);
  margin: 1.5rem 0;
}
.ss-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pr-text-mute);
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .ss-settings-layout { flex-direction: column; }
  .ss-settings-nav { width: 100%; border-right: none; border-bottom: 1px solid var(--pr-border); }
  .ss-nav-list { display: flex; flex-wrap: wrap; gap: .25rem; padding: .5rem .75rem; }
  .ss-nav-item a { border-left: none; border-bottom: 2px solid transparent; border-radius: 6px; padding: .4rem .75rem; font-size: .8rem; }
  .ss-nav-item.active a { border-bottom-color: var(--pr-primary); border-left: none; }
}

/* ═══════════════════════════════════════════════════════
   §15 — Site Settings form page
═══════════════════════════════════════════════════════ */
.ss-page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.ss-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--pr-border);
  color: var(--pr-text-soft);
  background: var(--pr-surface);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.ss-back-btn:hover {
  background: var(--pr-bg);
  border-color: #c8cee0;
  color: var(--pr-text);
  text-decoration: none;
}
.ss-btn-cancel {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.4rem;
  background: transparent;
  color: var(--pr-text-soft);
  border: 1.5px solid var(--pr-border);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--pr-font);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.ss-btn-cancel:hover {
  background: var(--pr-bg);
  border-color: #c8cee0;
  color: var(--pr-text);
  text-decoration: none;
}
.ss-page-header__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(52,85,139,.10);
  border: 1px solid rgba(52,85,139,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pr-primary);
  flex-shrink: 0;
}
.ss-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pr-text);
  margin: 0 0 .15rem;
  line-height: 1.2;
}
.ss-page-sub {
  font-size: .85rem;
  color: var(--pr-text-mute);
  margin: 0;
}
.ss-card {
  background: var(--pr-surface);
  border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ss-card-header {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pr-border);
  background: var(--pr-bg);
}
.ss-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(52,85,139,.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pr-primary);
  flex-shrink: 0;
}
.ss-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pr-text);
  margin: 0 0 .2rem;
}
.ss-section-sub {
  font-size: .8rem;
  color: var(--pr-text-mute);
  margin: 0;
}
.ss-card-body {
  padding: 1.5rem;
}
.ss-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.ss-field--full {
  grid-column: 1 / -1;
}
.ss-label {
  display: block;
  font-size: .825rem;
  font-weight: 600;
  color: var(--pr-text-soft);
  margin-bottom: .45rem;
  letter-spacing: .01em;
}
.ss-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--pr-border);
  border-radius: 9px;
  font-size: .875rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: var(--pr-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: none;
  box-sizing: border-box;
}
.ss-input:focus {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 3px rgba(52,85,139,.12);
}
.ss-upload-area {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.ss-img-preview {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--pr-bg);
  border: 1px solid var(--pr-border);
  border-radius: 9px;
  padding: .5rem .75rem;
}
.ss-img-preview img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 5px;
}
.ss-img-badge {
  font-size: .7rem;
  font-weight: 600;
  color: var(--pr-primary);
  background: rgba(52,85,139,.09);
  padding: .2rem .55rem;
  border-radius: 999px;
}
.ss-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.ss-file-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border: 1.5px dashed var(--pr-border);
  border-radius: 9px;
  font-size: .825rem;
  font-weight: 500;
  color: var(--pr-text-soft);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  width: 100%;
  justify-content: center;
}
.ss-file-label:hover {
  border-color: var(--pr-primary);
  background: rgba(52,85,139,.04);
  color: var(--pr-primary);
}
.ss-file-label.ss-has-file {
  border-style: solid;
  border-color: var(--pr-primary);
  background: rgba(52,85,139,.05);
  color: var(--pr-primary);
}
.ss-hint {
  font-size: .75rem;
  color: var(--pr-text-mute);
  margin: 0;
}
.ss-search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--pr-surface);
  border: 1.5px solid var(--pr-border);
  border-radius: 10px;
  padding: .4rem .75rem;
  max-width: 420px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ss-search-bar:focus-within {
  border-color: var(--pr-primary);
  box-shadow: 0 0 0 3px rgba(52,85,139,.10);
}
.ss-search-icon { color: var(--pr-text-mute); flex-shrink: 0; }
.ss-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .875rem;
  font-family: var(--pr-font);
  color: var(--pr-text);
  background: transparent;
  min-width: 0;
}
.ss-search-input::placeholder { color: var(--pr-text-mute); }
.ss-search-clear {
  display: flex;
  align-items: center;
  color: var(--pr-text-mute);
  transition: color 140ms ease;
  flex-shrink: 0;
}
.ss-search-clear:hover { color: var(--pr-danger, #ef4444); }
.ss-search-btn {
  flex-shrink: 0;
  padding: .25rem .8rem;
  background: var(--pr-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--pr-font);
  cursor: pointer;
  transition: background 140ms ease;
}
.ss-search-btn:hover { background: var(--pr-primary-600); }
.ss-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: .5rem;
}
.ss-btn-save {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  background: var(--pr-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--pr-font);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(52,85,139,.28);
  transition: background 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}
.ss-btn-save:hover {
  background: var(--pr-primary-600);
  box-shadow: 0 4px 16px rgba(52,85,139,.36);
  transform: translateY(-1px);
}
.ss-btn-save:active { transform: translateY(0); }
@media (max-width: 640px) {
  .ss-field-grid { grid-template-columns: 1fr; }
  .ss-field--full { grid-column: auto; }
  .ss-actions { justify-content: stretch; }
  .ss-btn-save { width: 100%; justify-content: center; }
}
