@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #0f7a4a;
  --primary-dark: #0b5c38;
  --primary-light: #e8f6ee;
  --secondary: #1aa05d;
  --background: #f4f7f5;
  --surface: #ffffff;
  --text: #1c2b33;
  --muted: #6b7c85;
  --border: #e3ebe6;
  --success: #0f7a4a;
  --warning: #c05621;
  --danger: #c53030;
  --info: #2b6cb0;
  --sidebar: #172333;
  --sidebar-hover: #1E2D3D;
  --shadow: 0 10px 30px rgba(15, 61, 41, 0.07);
  --shadow-sm: 0 4px 14px rgba(15, 61, 41, 0.05);
  --radius: 16px;
  --sidebar-w: 260px;
  --focus: 0 0 0 3px rgba(15, 122, 74, 0.22);
  --sidebar-bg: #172333;
  --sidebar-bg-secondary: #1E2D3D;
  --sidebar-border: #304252;
  --sidebar-text: #F4F7FA;
  --sidebar-muted: #A9B7C5;
  --sol-primary: #059669;
  --sol-dark: #047857;
  --sol-hover: #10B981;
  --sol-light: #ECFDF5;
  --sol-bg: #F5FBF8;
  --sol-border: #D1FAE5;
  --sol-focus: 0 0 0 3px rgba(5, 150, 105, 0.16);
  --sol-active: rgba(5, 150, 105, 0.22);
  --sol-accent: #34D399;
  --sabotay-primary: #0F8FA8;
  --sabotay-dark: #0B6475;
  --sabotay-hover: #087A91;
  --sabotay-light: #E6F7FA;
  --sabotay-bg: #F5FAFB;
  --sabotay-border: #D5EEF2;
  --sabotay-focus: 0 0 0 3px rgba(15, 143, 168, 0.16);
  --sabotay-active: rgba(15, 143, 168, 0.22);
  --sabotay-accent: #2BB3C7;
  --pawn-primary: #7C3AED;
  --pawn-dark: #5B21B6;
  --pawn-hover: #6D28D9;
  --pawn-light: #F3E8FF;
  --pawn-bg: #FAF7FF;
  --pawn-border: #E9D5FF;
  --pawn-focus: 0 0 0 3px rgba(124, 58, 237, 0.14);
  --pawn-active: rgba(124, 58, 237, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  font-size: 14.5px;
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; }

.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 18px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 30;
  border-right: 1px solid var(--sidebar-border);
  scrollbar-width: thin;
  scrollbar-color: #526576 transparent;
}
.sidebar::-webkit-scrollbar,
.sidebar .nav::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track,
.sidebar .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb,
.sidebar .nav::-webkit-scrollbar-thumb { background: #526576; border-radius: 99px; }
.sidebar::-webkit-scrollbar-thumb:hover,
.sidebar .nav::-webkit-scrollbar-thumb:hover { background: #6C8092; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.sidebar .brand { padding: 6px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--sidebar-border); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: #1aa05d;
  color: #fff; display: grid; place-items: center; font-weight: 800;
  box-shadow: 0 8px 16px rgba(0,0,0,.18);
}
.sidebar .brand-mark { background: var(--sol-primary); }
.sidebar-brand-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}
.sidebar-brand-logo--fallback {
  display: grid; place-items: center;
  background: var(--sol-primary); color: #fff;
  font-weight: 800; font-size: 14px;
  padding: 0;
}
.sidebar .brand strong { display: block; font-size: 15px; color: var(--sidebar-text); font-weight: 700; }
.sidebar .brand small { color: var(--sidebar-muted); font-size: 12px; }
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #526576 transparent;
}
.nav-label {
  margin: 14px 8px 6px; padding: 12px 4px 0;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8FA1B2;
  flex-shrink: 0;
  border-top: 1px solid var(--sidebar-border);
}
.nav-label:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.nav-label-global { color: #8193A4; }
.nav-module { flex-shrink: 0; }
.nav-module[open] > summary { margin-bottom: 6px; }
.nav a, .nav details summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 12px; border-radius: 12px;
  color: #E7EDF2; cursor: pointer; list-style: none; font-weight: 500;
  font-size: 14.5px;
  line-height: 1.35; overflow: visible; flex-shrink: 0;
}
.nav details summary { font-size: 15px; font-weight: 600; }
.nav details summary::-webkit-details-marker { display: none; }
.nav details summary { position: relative; }
.nav details summary::after {
  content: "";
  width: 8px; height: 8px; margin-left: auto; flex-shrink: 0;
  border-right: 2px solid #A9B7C5;
  border-bottom: 2px solid #A9B7C5;
  transform: rotate(-45deg); transition: .15s;
}
.nav details[open] summary::after { transform: rotate(45deg); }
.nav a:hover, .nav details summary:hover { background: var(--sidebar-bg-secondary); color: #fff; }
.nav a.active {
  background: #263746; color: #fff; font-weight: 700;
  box-shadow: inset 3px 0 0 #8193A4;
}
.nav details a { padding-left: 36px; font-size: 14px; color: #C7D2DC; }
.nav details a.active { color: #fff; }
.nav-ico { width: 1.25em; flex-shrink: 0; text-align: center; font-size: 14px; line-height: 1; color: #C3CFD9; }
.nav a:hover .nav-ico, .nav a.active .nav-ico { color: #fff; }
.nav-link-clients { color: #E7EDF2; }
.nav-link-clients .nav-ico { color: #C3CFD9; }
.nav-global { display: flex; flex-direction: column; gap: 2px; }
.nav-global a { color: #C7D2DC; }
.nav-global a .nav-ico { color: #9BAABA; }
.nav-global a:hover { background: var(--sidebar-bg-secondary); color: #fff; }
.nav-global a:hover .nav-ico { color: #fff; }
.nav-global a.active { background: #263746; color: #fff; box-shadow: inset 3px 0 0 #8193A4; }
.sidebar-foot {
  margin-top: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  background: var(--sidebar-bg-secondary);
  border: 1px solid var(--sidebar-border);
  border-radius: 12px;
  color: var(--sidebar-muted);
  font-size: 12px; font-weight: 500;
}
.sidebar-foot .icon { color: #35C58A; width: 16px; height: 16px; }

.sidebar .nav-module-sol > summary { color: var(--sol-accent); }
.sidebar .nav-module-sol > summary::after { border-right-color: var(--sol-accent); border-bottom-color: var(--sol-accent); }
.sidebar .nav-module-sol > summary .nav-module-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--sol-accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.28);
}
.sidebar .nav-module-sol[open] > summary,
.sidebar .nav-module-sol.is-current > summary {
  background: linear-gradient(135deg, var(--sol-primary), var(--sol-dark));
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
}
.sidebar .nav-module-sol[open] > summary:hover,
.sidebar .nav-module-sol.is-current > summary:hover {
  background: var(--sol-hover);
  color: #fff;
}
.sidebar .nav-module-sol a { color: #C7D2DC; }
.sidebar .nav-module-sol a .nav-ico { color: #8FA5B5; display: inline-grid; place-items: center; }
.sidebar .nav-module-sol a .nav-ico .icon { width: 16px; height: 16px; }
.sidebar .nav-module-sol a:hover { background: var(--sidebar-bg-secondary); color: #fff; border-radius: 10px; }
.sidebar .nav-module-sol a:hover .nav-ico { color: #D1FAE5; }
.sidebar .nav-module-sol a.active,
.sidebar .nav-module-sol a.active:hover {
  background: var(--sol-primary);
  color: #fff;
  border-radius: 12px;
  box-shadow: none;
}
.sidebar .nav-module-sol a.active .nav-ico { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #F5F8F9; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; gap: 14px; position: sticky; top: 0; z-index: 20;
}
.topbar-spacer { flex: 1; min-width: 8px; }
.top-search { position: relative; }
.top-search__panel {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(420px, calc(100vw - 24px));
  align-items: center; gap: 8px;
  padding: 8px 8px 8px 12px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); z-index: 45;
}
.top-search.is-open .top-search__panel { display: flex; }
.top-search__panel .icon { color: var(--muted); flex-shrink: 0; }
.top-search__panel input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 8px 4px; font: inherit; color: inherit;
}
.top-search__panel input:focus { outline: none; }
.top-search__go {
  flex-shrink: 0; width: 36px; height: 36px; border: 0; background: var(--primary); color: #fff;
  border-radius: 10px; display: grid; place-items: center; cursor: pointer;
}
.top-search__go .icon { color: #fff; }
.top-search__go:hover { background: var(--primary-dark); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; background: var(--danger);
  border-radius: 50%; border: 2px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 40;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  padding: 9px 10px; border: 0; background: none; border-radius: 10px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-light); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.drop-title { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.notif-item { align-items: flex-start !important; }
.notif-item strong { display: block; font-size: 13px; }
.notif-item span { color: var(--muted); font-size: 12px; }
.notif-unread { background: var(--primary-light); }

.content { padding: 20px 24px; flex: 1; }
.page-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.settings-nav a {
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600;
}
.settings-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.settings-section { scroll-margin-top: 16px; }
.settings-section + .settings-section, .settings-section h3 { margin-top: 22px; }
.settings-section:first-child h3 { margin-top: 0; }
.profile-layout { grid-template-columns: 280px minmax(0, 1fr); }
.profile-password-card { max-width: 520px; }
.pw-meter { margin-top: 8px; }
.pw-meter-bar {
  height: 6px; border-radius: 99px; background: #e7efe8; overflow: hidden;
}
.pw-meter-bar span {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: #c0392b; transition: width .2s ease, background .2s ease;
}
.pw-meter.is-weak .pw-meter-bar span { width: 33%; background: #c0392b; }
.pw-meter.is-medium .pw-meter-bar span { width: 66%; background: #d68910; }
.pw-meter.is-strong .pw-meter-bar span { width: 100%; background: var(--primary); }
.pw-meter-label { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.page-toolbar {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.page-toolbar.is-start { justify-content: space-between; }
.toolbar-title { margin: 0; font-size: 15px; font-weight: 700; min-width: 0; }
.toolbar-title small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.dash-head h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.page-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--primary-light);
  color: var(--primary-dark); display: grid; place-items: center; flex-shrink: 0;
}
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }

.card, .kpi-card, .kpi {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px; border: 1px solid var(--border);
}
.card h3, .section-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.kpi-card, .kpi { display: flex; flex-direction: column; gap: 8px; min-height: 118px; }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary-light);
  color: var(--primary-dark); display: grid; place-items: center;
}
.kpi-card span, .kpi span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi-card strong, .kpi strong { font-size: 24px; color: var(--text); letter-spacing: -.03em; font-weight: 800; }
.kpi-card small { color: var(--muted); font-size: 12px; }

.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0;
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: 11px; cursor: pointer; font: inherit; font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 122, 74, .18);
}
.btn:hover, .btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible, .btn-outline:focus-visible {
  outline: none; box-shadow: var(--focus);
}
.btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: none;
  padding: 10px 16px; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 600;
}
.btn-secondary:hover, .btn-outline:hover { background: var(--background); color: var(--text); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  background: var(--danger); color: #fff; padding: 10px 16px; border-radius: 11px;
}
.btn-danger:hover { background: #9b2c2c; color: #fff; }
.btn-sm { padding: 7px 10px; font-size: 13px; border-radius: 9px; }
.btn:disabled, .btn.is-loading { opacity: .65; pointer-events: none; }

.form-control, select, textarea, input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], input[type="tel"], input[type="file"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: 11px; background: #fff; font: inherit; color: inherit;
  appearance: none; -webkit-appearance: none; min-height: 44px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7c85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea { min-height: 90px; resize: vertical; }
.form-control:focus, select:focus, textarea:focus, input:focus {
  outline: none; border-color: var(--primary); box-shadow: var(--focus);
}
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control, .input-icon input, .input-icon select { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; color: var(--text); font-weight: 650; }
label .req { color: var(--danger); }
.hint { color: var(--muted); font-size: 12px; }
.error { color: var(--danger); font-size: 12px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.section-block h4 { margin: 0 0 4px; font-size: 14px; }
.section-block p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }

.table-container, .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13.5px; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: #f8fbf9; }
.table tbody tr:hover { background: #f7fbf8; }
.person { display: flex; align-items: center; gap: 10px; }

.badge, .badge-success, .badge-warning, .badge-danger, .badge-neutral,
.badge-active, .badge-paid, .badge-completed, .badge-current, .badge-regularized,
.badge-draft, .badge-upcoming, .badge-open, .badge-late, .badge-partial, .badge-applied,
.badge-cancelled, .badge-inactive, .badge-default, .badge-suspended, .badge-withdrawn, .badge-unpaid {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #edf2f7; color: #2d3748;
}
.badge-success, .badge-active, .badge-paid, .badge-completed, .badge-current, .badge-regularized { background: var(--primary-light); color: var(--primary-dark); }
.badge-warning, .badge-late, .badge-partial, .badge-applied, .badge-open, .badge-upcoming { background: #feebc8; color: #7b341e; }
.badge-danger, .badge-cancelled, .badge-inactive, .badge-default, .badge-suspended, .badge-withdrawn, .badge-unpaid { background: #fed7d7; color: #822727; }
.badge-neutral, .badge-draft { background: #edf2f7; color: #2d3748; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); }
.alert-error { background: #fed7d7; color: #822727; }
.alert-warning { background: #feebc8; color: #7b341e; }

.wizard-steps, .stepper { display: flex; gap: 0; margin-bottom: 18px; overflow-x: auto; }
.wizard-steps button, .stepper button {
  flex: 1; min-width: 130px; background: none; border: 0; border-bottom: 2px solid var(--border);
  padding: 10px 8px 12px; cursor: pointer; color: var(--muted); font: inherit; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.stepper button .n, .wizard-steps button .n {
  width: 22px; height: 22px; border-radius: 50%; background: #edf2f7; color: var(--muted);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.wizard-steps button.active, .stepper button.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.wizard-steps button.active .n, .stepper button.active .n { background: var(--primary); color: #fff; }
.wizard-steps button.done, .stepper button.done { color: var(--primary); }
.wizard-steps button.done .n, .stepper button.done .n { background: var(--primary-light); color: var(--primary-dark); }
.step { display: none; }
.step.active { display: block; }

.photo-card { text-align: center; }
.photo-preview {
  width: 120px; height: 120px; border-radius: 50%; margin: 8px auto 14px;
  background: #eef5f0; display: grid; place-items: center; overflow: hidden; color: var(--muted);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.info-card { background: var(--primary-light); border: 0; }
.info-card h3 { color: var(--primary-dark); display: flex; gap: 8px; align-items: center; }
.tips-card { background: #eef5ff; border-color: #d6e6fb; }
.tips-card ul { margin: 0; padding-left: 18px; color: #2b4c6f; }

.progress { height: 8px; background: #e8eee9; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pagination a.is-current { background: var(--primary); color: #fff; border-color: var(--primary); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.toolbar .form-group { min-width: 160px; flex: 1; }
.toolbar > .btn, .toolbar > .btn-secondary, .toolbar > .page-actions { align-self: end; }

.member-action-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.member-action-form input, .member-action-form select { min-width: 110px; min-height: 38px; padding: 7px 10px; }
.confirm-box { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15, 30, 24, .45);
  z-index: 80; place-items: center; padding: 18px;
}
.modal-overlay.open { display: grid; }
.modal {
  width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 8px; }
.modal p { margin: 0 0 16px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

.sidebar-backdrop { display: none; }
.mobile-toggle { display: none; }

.auth-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: #F4F7F9; padding: 24px;
}
.auth-card {
  width: min(440px, 92vw); background: #fff; padding: 36px 32px;
  border-radius: 20px; box-shadow: var(--shadow);
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { margin: 8px 0 6px; font-size: 26px; color: var(--primary-dark); }
.auth-brand p { margin: 0; color: var(--muted); }
.auth-brand .login-logo { margin: 0 auto 8px; }
.login-page {
  position: relative; min-height: 100vh; overflow-x: hidden;
  background: #F7FBFA; color: #19324A;
}
.login-background {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 420px 320px at 10% 8%, rgba(22, 163, 106, 0.04), transparent 70%),
    radial-gradient(ellipse 380px 300px at 90% 92%, rgba(23, 107, 135, 0.025), transparent 70%);
}
.login-background::before,
.login-background::after {
  content: ""; position: absolute; border-radius: 50%;
}
.login-background::before {
  width: 560px; height: 420px; top: -180px; left: -200px;
  background: rgba(22, 163, 106, 0.04);
}
.login-background::after {
  width: 520px; height: 480px; right: -220px; bottom: -200px;
  background: rgba(23, 107, 135, 0.025);
}
.login-shell {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px 22px; gap: 16px;
}
.login-brand { text-align: center; max-width: 640px; }
.login-brand-logo, .login-logo {
  width: auto; height: auto; max-width: 72px; max-height: 64px;
  object-fit: contain; margin: 0 auto 12px; display: block;
  border-radius: 16px;
}
.login-brand-logo--fallback, .login-logo--fallback {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #087A50; color: #fff;
  font-size: 26px; font-weight: 800;
}
.login-brand-name {
  margin: 0; font-size: 30px; font-weight: 800;
  letter-spacing: -.03em; color: #19324A;
}
.login-hero {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 12px 0 0; color: #718096; font-size: 14px; font-weight: 500;
}
.login-hero::before, .login-hero::after {
  content: ""; height: 1px; width: 64px; background: #16A36A; opacity: .45;
  flex-shrink: 0;
}
.login-hero span { text-align: center; line-height: 1.4; }
.login-card {
  width: min(100% - 32px, 640px);
  max-width: 760px;
  background: #FFFFFF;
  border: 1px solid #DDE8E5;
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(25, 50, 72, 0.08);
  padding: 48px 52px 36px;
}
.login-title {
  margin: 0; text-align: center;
  font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: #19324A;
}
.login-subtitle {
  margin: 8px 0 24px; text-align: center;
  color: #718096; font-size: 15.5px; line-height: 1.45;
}
.login-alert {
  display: flex; align-items: flex-start; gap: 8px;
  background: #FFF5F5; color: #9B2C2C;
  border: 1px solid #FED7D7;
}
.login-form { display: grid; gap: 16px; }
.login-field { gap: 8px; }
.login-field label { display: block; margin: 0; font-weight: 600; color: #19324A; font-size: 13.5px; }
.login-control {
  display: flex; align-items: stretch;
  height: 58px; min-height: 58px;
  border: 1px solid #D8E3E8; border-radius: 13px; background: #FFFFFF;
  overflow: hidden;
}
.login-control:focus-within {
  border-color: #16A36A;
  box-shadow: 0 0 0 3px rgba(22, 163, 106, 0.10);
}
.login-control-ico {
  width: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #8AA0AB; pointer-events: none;
  border-right: 1px solid #E6EEF0;
}
.login-control-ico .icon { width: 18px; height: 18px; }
.login-page .login-control .login-input,
.login-page .login-control .form-control,
.login-page .login-control input[type="text"],
.login-page .login-control input[type="password"] {
  flex: 1 1 auto; width: auto; min-width: 0;
  height: auto; min-height: 0;
  border: 0; border-radius: 0; box-shadow: none;
  padding: 0 14px; background: transparent;
}
.login-page .login-control .login-input:focus,
.login-page .login-control .form-control:focus,
.login-page .login-control input:focus {
  border: 0; box-shadow: none; outline: none;
}
.login-page .login-password .password-toggle {
  position: static; transform: none;
  flex-shrink: 0; align-self: center;
  margin-right: 8px; color: #8AA0AB;
}
.login-page .password-field .form-control { padding-right: 14px; }
.login-submit {
  width: 100%; justify-content: center; margin-top: 4px;
  height: 56px; min-height: 56px; padding: 0 16px; border-radius: 14px;
  background: linear-gradient(135deg, #087A50, #1BAA78);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(8, 122, 80, 0.18);
  font-size: 16px; font-weight: 700;
}
.login-submit .icon { width: 18px; height: 18px; }
.login-page .login-submit:hover {
  background: linear-gradient(135deg, #066643, #159568);
  color: #FFFFFF;
}
.login-page .login-submit:active { transform: translateY(1px); }
.login-page .login-submit:focus-visible {
  outline: none;
  box-shadow: 0 8px 20px rgba(8, 122, 80, 0.18), 0 0 0 3px rgba(22, 163, 106, 0.18);
}
.login-submit.is-loading { opacity: .85; pointer-events: none; }
.login-submit.is-loading > .icon { display: none; }
.login-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  display: none;
}
.login-submit.is-loading .login-spinner { display: inline-block; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-security { margin-top: 22px; text-align: center; color: #718096; }
.login-security-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8AA0AB;
}
.login-security-title::before, .login-security-title::after {
  content: ""; height: 1px; width: 72px; background: #DDE8E5;
}
.login-security p { margin: 0; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #718096; }
.login-security .icon { width: 16px; height: 16px; color: #16A36A; }
.login-footer { text-align: center; color: #718096; }
.login-footer-tag {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #718096;
}
.login-footer-tag .icon { width: 15px; height: 15px; color: #16A36A; }
.login-footer-copy { margin: 6px 0 0; font-size: 12.5px; color: #8AA0AB; }
.company-logo-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; margin: 0 0 18px; text-align: center;
}
.company-logo-title { margin: 0 0 12px; font-weight: 700; text-align: left; }
.company-logo-preview-wrap { display: grid; place-items: center; min-height: 140px; }
.company-logo {
  max-width: 180px; max-height: 140px; width: auto; height: auto; object-fit: contain;
}
.company-logo--fallback {
  width: 88px; height: 88px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 28px; font-weight: 800;
}
.company-logo-empty { margin: 8px 0 0; }
.company-logo-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.company-logo-choose { cursor: pointer; }
@media (max-width: 860px) {
  .login-shell { padding: 20px 12px 16px; gap: 14px; }
  .login-brand-name { font-size: 24px; }
  .login-title { font-size: 26px; }
  .login-card { width: min(100% - 24px, 760px); padding: 24px 20px; }
  .login-hero::before, .login-hero::after { width: 24px; }
  .login-brand-logo, .login-logo { max-height: 52px; }
  .login-brand-logo--fallback, .login-logo--fallback { width: 52px; height: 52px; font-size: 22px; }
}
.lang-switch { position: relative; }
.lang-switch__btn {
  height: 36px; min-width: 0; padding: 0 8px 0 9px; gap: 6px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text);
  font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; line-height: 1;
}
.lang-switch__btn .icon { width: 15px; height: 15px; color: var(--muted); }
.lang-switch__chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .18s ease; }
.lang-switch__btn:hover {
  background: var(--primary-light); border-color: #c5ddcf; color: var(--primary-dark);
}
.lang-switch__btn:hover .icon,
.lang-switch__btn:hover .lang-switch__chevron { color: var(--primary-dark); }
.lang-switch__btn:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--primary); }
.lang-switch.is-open .lang-switch__btn {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
}
.lang-switch.is-open .lang-switch__btn .icon,
.lang-switch.is-open .lang-switch__btn .lang-switch__chevron { color: var(--primary-dark); }
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 220px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 45;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.lang-switch.is-open .lang-switch__menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.lang-switch__head {
  padding: 6px 10px 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.lang-switch__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 18px;
  align-items: center; gap: 10px;
  min-height: 54px; padding: 8px 10px; border-radius: 10px;
  color: var(--text); text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__item:hover { background: var(--primary-light); color: var(--text); }
.lang-switch__item:focus { outline: none; }
.lang-switch__item:focus-visible { box-shadow: var(--focus); background: var(--primary-light); }
.lang-switch__item.is-active {
  background: var(--primary-light); color: var(--primary-dark);
}
.lang-switch__badge {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f3f7f5; color: var(--text);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.lang-switch__item.is-active .lang-switch__badge {
  background: var(--primary); color: #fff;
}
.lang-switch__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lang-switch__text strong { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.lang-switch__text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.lang-switch__item.is-active .lang-switch__text small { color: #3d7a5c; }
.lang-switch__check { display: grid; place-items: center; color: var(--primary); }
.lang-switch__check .icon { width: 16px; height: 16px; }
.report-link { display: block; color: inherit; transition: .15s transform, .15s box-shadow; }
.report-link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.report-link .page-icon { margin-bottom: 10px; }
input[type="checkbox"], input[type="radio"] {
  width: auto; min-height: auto; padding: 0; appearance: auto; -webkit-appearance: auto;
  box-shadow: none; display: inline-block;
}
.password-field { position: relative; }
.password-field .form-control { padding-right: 92px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--primary); font-weight: 600; cursor: pointer; font-size: 13px;
}
.password-field:has([data-icon-only]) .form-control { padding-right: 44px; }
.password-toggle[data-icon-only] { width: 36px; height: 36px; font-size: 16px; }
.password-toggle:focus-visible {
  outline: none; border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(22, 138, 97, 0.12);
}

.encaissement { display: grid; gap: 14px; }
.enc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.enc-toolbar-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--text);
}
.enc-toolbar-title .icon { color: var(--primary); }
.enc-toolbar-help { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.enc-search-card { padding: 14px 16px; }
.enc-search-top { display: flex; gap: 10px; align-items: center; }
.enc-search-top .enc-search { flex: 1; }
.enc-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 18px; background: #fff;
  padding: 4px 16px; box-shadow: var(--shadow-sm);
}
.enc-search .icon { color: var(--muted); }
.enc-search input {
  flex: 1; border: 0; background: transparent; font: inherit;
  font-size: 16px; font-weight: 600; padding: 12px 0; outline: none; color: inherit;
}
.enc-search-btn { min-height: 48px; border-radius: 14px; padding: 0 18px; }
.enc-search-help { margin: 8px 4px 0; font-size: 12.5px; }
.enc-empty {
  display: grid; place-items: center; text-align: center; gap: 6px;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 36px 20px; color: var(--muted);
}
.enc-empty-ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); display: grid; place-items: center; margin-bottom: 4px;
}
.enc-empty strong { color: var(--text); font-size: 16px; }
.enc-empty p { margin: 0; max-width: 360px; }

.encaissement[data-encaissement] { gap: 16px; }
.encaissement[data-encaissement] .enc-toolbar-title { font-size: 22px; }
.encaissement[data-encaissement] .enc-toolbar-help { font-size: 13.5px; }
.encaissement[data-encaissement] .enc-search-card {
  padding: 22px 24px; border-radius: 20px; border: 1px solid #e8f0eb;
  box-shadow: 0 8px 24px rgba(15, 61, 41, 0.045);
}
.encaissement[data-encaissement] .enc-search-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.encaissement[data-encaissement] .enc-search-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 16px; font-weight: 700; color: var(--text);
}
.encaissement[data-encaissement] .enc-search-title .icon { color: var(--primary); width: 20px; height: 20px; }
.encaissement[data-encaissement] .enc-search-help {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.encaissement[data-encaissement] .enc-search-help .icon { width: 15px; height: 15px; color: #8aa196; }
.encaissement[data-encaissement] .enc-search-row { display: flex; gap: 12px; align-items: center; }
.encaissement[data-encaissement] .enc-search {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
  min-height: 60px; padding: 6px 10px 6px 8px;
  border: 1px solid #dfeee7; border-radius: 16px; background: #fff;
  box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.encaissement[data-encaissement] .enc-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 122, 74, 0.12);
}
.encaissement[data-encaissement] .enc-search:focus-within .enc-search-avatar { color: var(--primary); }
.encaissement[data-encaissement] .enc-search-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center;
}
.encaissement[data-encaissement] .enc-search-avatar .icon { width: 18px; height: 18px; }
.encaissement[data-encaissement] .enc-search input,
.encaissement[data-encaissement] .enc-search input[type="search"] {
  flex: 1; min-width: 0; width: auto; min-height: 0;
  border: 0; background: transparent; box-shadow: none; border-radius: 0;
  font: inherit; font-size: 15.5px; font-weight: 500; padding: 10px 0;
  outline: none; color: inherit;
}
.encaissement[data-encaissement] .enc-search input::placeholder { color: #93a39a; font-weight: 400; }
.encaissement[data-encaissement] .enc-search input[type="search"]::-webkit-search-cancel-button { appearance: none; display: none; }
.encaissement[data-encaissement] .enc-search-clear {
  width: 32px; height: 32px; border: 0; padding: 0; flex-shrink: 0;
  border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.encaissement[data-encaissement] .enc-search-clear[hidden] { display: none; }
.enc-desk[hidden],
.encaissement [hidden] { display: none; }
.encaissement[data-encaissement] .enc-search-clear:hover { background: #f2f6f3; color: var(--text); }
.encaissement[data-encaissement] .enc-search-clear:focus-visible { outline: none; box-shadow: var(--focus); }
.encaissement[data-encaissement] .enc-search-btn {
  min-height: 60px; height: 60px; border-radius: 16px;
  padding: 0 28px; font-weight: 600; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(15, 122, 74, 0.16);
}
.encaissement[data-encaissement] .enc-search-btn:active { transform: translateY(1px); }
.encaissement[data-encaissement] .enc-empty {
  gap: 8px; border: 1px dashed #d7e6dc; border-radius: 20px; padding: 48px 24px;
}
.encaissement[data-encaissement] .enc-empty-ico { width: 56px; height: 56px; }
.encaissement[data-encaissement] .enc-empty strong { font-weight: 700; }
.encaissement[data-encaissement] .enc-empty p { max-width: 420px; line-height: 1.55; }

[data-sabotay-desk="deposit"] { gap: 16px; }
[data-sabotay-desk="deposit"] .enc-toolbar-title { font-size: 22px; }
[data-sabotay-desk="deposit"] .enc-toolbar-help { font-size: 13.5px; }
[data-sabotay-desk="deposit"] .sabotay-encaissement-search {
  padding: 22px 24px; border-radius: 20px; border: 1px solid #e8f0eb;
  box-shadow: 0 8px 24px rgba(15, 61, 41, 0.045);
}
[data-sabotay-desk="deposit"] .sabotay-search-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
[data-sabotay-desk="deposit"] .sabotay-search-title {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 16px; font-weight: 700; color: var(--text);
}
[data-sabotay-desk="deposit"] .sabotay-search-title .icon { color: var(--sabotay-primary); width: 20px; height: 20px; }
[data-sabotay-desk="deposit"] .sabotay-search-help {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
[data-sabotay-desk="deposit"] .sabotay-search-help .icon { width: 15px; height: 15px; color: #8aa196; }
[data-sabotay-desk="deposit"] .sabotay-search-row { display: flex; gap: 12px; align-items: center; }
[data-sabotay-desk="deposit"] .sabotay-search-box {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
  min-height: 60px; padding: 6px 10px 6px 8px;
  border: 1px solid #dfeee7; border-radius: 16px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
[data-sabotay-desk="deposit"] .sabotay-search-box:focus-within {
  border-color: var(--sabotay-primary);
  box-shadow: var(--sabotay-focus);
}
[data-sabotay-desk="deposit"] .sabotay-search-box:focus-within .sabotay-search-avatar { color: var(--sabotay-primary); }
[data-sabotay-desk="deposit"] .sabotay-search-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--sabotay-light); color: var(--sabotay-primary);
  display: grid; place-items: center;
}
[data-sabotay-desk="deposit"] .sabotay-search-avatar .icon { width: 18px; height: 18px; }
[data-sabotay-desk="deposit"] .sabotay-search-input,
[data-sabotay-desk="deposit"] .sabotay-search-input[type="search"] {
  flex: 1; min-width: 0; width: auto; min-height: 0;
  border: 0; background: transparent; box-shadow: none; border-radius: 0;
  font: inherit; font-size: 15.5px; font-weight: 500; padding: 10px 0;
  outline: none; color: inherit;
}
[data-sabotay-desk="deposit"] .sabotay-search-input::placeholder { color: #93a39a; font-weight: 400; }
[data-sabotay-desk="deposit"] .sabotay-search-input[type="search"]::-webkit-search-cancel-button { appearance: none; display: none; }
[data-sabotay-desk="deposit"] .sabotay-search-clear {
  width: 32px; height: 32px; border: 0; padding: 0; flex-shrink: 0;
  border-radius: 50%; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
[data-sabotay-desk="deposit"] .sabotay-search-clear[hidden] { display: none; }
[data-sabotay-desk="deposit"] .sabotay-search-clear:hover { background: var(--sabotay-light); color: var(--sabotay-dark); }
[data-sabotay-desk="deposit"] .sabotay-search-clear:focus-visible { outline: none; box-shadow: var(--sabotay-focus); }
[data-sabotay-desk="deposit"] .sabotay-search-button {
  min-height: 60px; height: 60px; border-radius: 16px;
  padding: 0 28px; font-weight: 600; flex-shrink: 0;
  background: var(--sabotay-primary);
  box-shadow: 0 8px 18px rgba(23, 107, 135, 0.16);
}
[data-sabotay-desk="deposit"] .sabotay-search-button:hover { background: var(--sabotay-hover); }
[data-sabotay-desk="deposit"] .sabotay-search-button:active { transform: translateY(1px); }
[data-sabotay-desk="deposit"] .sabotay-search-empty {
  gap: 8px; border: 1px dashed var(--sabotay-border); border-radius: 20px; padding: 48px 24px;
}
[data-sabotay-desk="deposit"] .sabotay-search-empty .enc-empty-ico {
  background: var(--sabotay-light); color: var(--sabotay-primary);
}
[data-sabotay-desk="deposit"] .sabotay-search-empty .enc-empty-ico { width: 56px; height: 56px; }
[data-sabotay-desk="deposit"] .sabotay-search-empty strong { font-weight: 700; }
[data-sabotay-desk="deposit"] .sabotay-search-empty p { max-width: 420px; line-height: 1.55; }
.enc-desk {
  display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(300px, 360px);
  gap: 14px; align-items: start;
}
.enc-col-results, .enc-col-pay .card, .enc-col-client .card { min-width: 0; }
.enc-count {
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 12px; font-weight: 800; display: inline-grid; place-items: center;
}
.enc-results { display: grid; gap: 6px; max-height: calc(100vh - 260px); overflow: auto; }
.client-hit {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center;
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font: inherit; color: inherit; cursor: pointer;
}
.client-hit:hover { border-color: var(--primary); background: var(--primary-light); }
.client-hit.is-selected {
  background: var(--primary-light); border-color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
}
.client-hit .enc-hit-name { display: block; font-weight: 700; }
.client-hit .enc-hit-no { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.client-hit .enc-hit-phone { display: block; font-size: 12px; color: var(--muted); }
.client-hit .enc-hit-arrow { color: var(--muted); font-size: 18px; }
.sol-choice {
  width: 100%; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; margin-bottom: 8px;
}
.sol-choice:hover { border-color: var(--primary); background: var(--primary-light); }
.sol-choice.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow-sm); }
.sol-radio {
  width: 16px; height: 16px; margin-top: 3px; border: 2px solid #c5d5cc; border-radius: 50%;
  display: grid; place-items: center;
}
.sol-choice.selected .sol-radio { border-color: var(--primary); }
.sol-choice.selected .sol-radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.sol-choice-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sol-choice-top strong { display: block; font-size: 15px; }
.sol-choice-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.enc-person { align-items: flex-start; }
.enc-person h3 { margin: 0 0 4px; font-size: 20px; }
.enc-person p { margin: 0; }
.enc-person-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; width: 100%; }
.enc-person-meta { display: grid; gap: 3px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.enc-mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.enc-mini-kpis .kpi-card { min-height: 0; padding: 12px; }
.enc-mini-kpis .kpi-card strong { font-size: 22px; }
.enc-sols-card { margin-top: 0; }
.enc-view-all { font-size: 13px; font-weight: 700; }
.enc-pay, .enc-pay-placeholder { position: sticky; top: 84px; }
.enc-pay-sol { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.enc-due-list { display: grid; gap: 8px; margin-bottom: 14px; }
.enc-due-list div { display: flex; justify-content: space-between; gap: 12px; }
.enc-due-list span { color: var(--muted); }
.enc-due-list .is-remain { padding: 8px 10px; border-radius: 10px; background: var(--primary-light); }
.enc-due-list .is-remain strong { color: var(--primary-dark); font-size: 16px; }
.amount-xl { font-size: 22px !important; color: var(--primary-dark); }
.amount-input { font-size: 26px; font-weight: 800; letter-spacing: -.03em; min-height: 56px; border: 0; box-shadow: none; padding: 0; }
.enc-amount-wrap { margin: 4px 0 14px; }
.enc-amount-box {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; background: #fff;
}
.enc-amount-box:focus-within { box-shadow: var(--focus); border-color: var(--primary); }
.enc-amount-box span { color: var(--muted); font-weight: 800; }
.enc-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.enc-method {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 68px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.enc-method:hover { background: var(--primary-light); border-color: #c5ddcf; }
.enc-method.is-active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.enc-totals { display: grid; gap: 6px; margin: 12px 0 14px; }
.enc-totals div { display: flex; justify-content: space-between; align-items: baseline; }
.enc-totals span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.enc-confirm { width: 100%; min-height: 48px; font-size: 16px; }
.enc-success { margin-bottom: 4px; }
.enc-receipt-no { margin: 0 0 12px; font-size: 15px; }
.sab-enc-success { padding: 16px 18px; }
.sab-enc-success .enc-receipt-no { margin: 0 0 6px; }
.sab-client-card { margin-bottom: 10px; }
.sab-carnet-list { margin-top: 0; padding: 10px; }
.sab-pay { position: sticky; top: 84px; }
.sab-id {
  display: grid; gap: 10px; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.sab-id-block { display: grid; gap: 2px; }
.sab-id-block label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted);
}
.sab-id-block strong { font-size: 15px; line-height: 1.3; }
.sab-id-block span { color: var(--muted); font-size: 13px; }
.sab-mini {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin: 0 0 8px; font-size: 12.5px; color: var(--muted);
}
.sab-mini strong { color: var(--text); }
.sab-pay .enc-view-all { display: inline-block; margin-bottom: 12px; }
.sab-ref { margin-bottom: 12px; }
.sab-ref .form-control { min-height: 40px; }
.access-panel { margin-top: 22px; }
.access-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.access-panel-head h3 { margin: 0; font-size: 16px; }
.access-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.access-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 10px; background: #fff;
}
.access-card.is-required { background: var(--primary-light); border-color: #c5ddcf; }
.access-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.access-card-head label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.access-help { margin: 8px 0 0; font-size: 12.5px; }
.access-perms { display: grid; gap: 6px; margin-top: 12px; }
.access-perm { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.access-tags { color: var(--muted); font-size: 13px; font-weight: 600; }
@media (max-width: 700px) {
  .access-panel-head { flex-direction: column; align-items: flex-start; }
}
.today-cash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1200px) {
  .enc-desk { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
  .enc-col-results { grid-column: 1 / -1; }
  .enc-results { max-height: 220px; }
}
@media (max-width: 1100px) {
  .enc-desk { grid-template-columns: 1fr; }
  .enc-pay, .enc-pay-placeholder { position: static; }
  .enc-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-cash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enc-mini-kpis { grid-template-columns: 1fr; }
}

.member-picker-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.member-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; margin: 12px 0; }
.member-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.member-row:hover { background: var(--primary-light); }
.member-row.is-locked { background: #f7fbf8; cursor: default; }
.member-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.member-name { font-weight: 600; }
.member-pos { color: var(--muted); font-size: 13px; font-weight: 600; }
.member-row.is-checked { border-color: var(--primary); background: var(--primary-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.member-new summary { cursor: pointer; color: var(--primary-dark); font-weight: 600; }

.muted { color: var(--muted); }
.summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.summary-list div { background: #f7fbf8; border-radius: 12px; padding: 10px 12px; }
.summary-list span { display: block; color: var(--muted); font-size: 12px; }

.print-receipt { max-width: 800px; margin: 20px auto; background: #fff; padding: 28px; }

@media (max-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-form, .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .encaissement[data-encaissement] .enc-search-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .encaissement[data-encaissement] .enc-search-row { flex-direction: column; align-items: stretch; }
  .encaissement[data-encaissement] .enc-search-btn { width: 100%; height: 56px; min-height: 56px; }
  .encaissement[data-encaissement] .enc-search-card { padding: 18px 16px; }
  [data-sabotay-desk="deposit"] .sabotay-search-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  [data-sabotay-desk="deposit"] .sabotay-search-row { flex-direction: column; align-items: stretch; }
  [data-sabotay-desk="deposit"] .sabotay-search-button { width: 100%; height: 56px; min-height: 56px; }
  [data-sabotay-desk="deposit"] .sabotay-encaissement-search { padding: 18px 16px; }
}
/* ——— SABOTAY petroleum on dark sidebar (content theme stays below) ——— */
.sidebar .nav-module-sabotay > summary {
  color: var(--sabotay-accent);
}
.sidebar .nav-module-sabotay > summary::after {
  border-right-color: var(--sabotay-accent);
  border-bottom-color: var(--sabotay-accent);
}
.sidebar .nav-module-sabotay > summary .nav-module-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--sabotay-accent);
  box-shadow: 0 0 0 3px rgba(15, 143, 168, 0.28);
}
.sidebar .nav-module-sabotay.is-current > summary {
  background: linear-gradient(135deg, var(--sabotay-primary), var(--sabotay-hover));
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
}
.sidebar .nav-module-sabotay[open] > summary:hover,
.sidebar .nav-module-sabotay.is-current > summary:hover {
  background: var(--sabotay-hover);
  color: #fff;
}
.sidebar .nav-module-sabotay a {
  color: #C7D2DC; border-radius: 10px;
  margin: 4px 6px; padding-top: 9px; padding-bottom: 9px;
}
.sidebar .nav-module-sabotay a .nav-ico { color: #8FA5B5; display: inline-grid; place-items: center; }
.sidebar .nav-module-sabotay a .nav-ico .icon { width: 16px; height: 16px; }
.sidebar .nav-module-sabotay a:hover {
  background: rgba(15, 143, 168, 0.16);
  color: #fff;
}
.sidebar .nav-module-sabotay a:hover .nav-ico { color: #D7F4F8; }
.sidebar .nav-module-sabotay a.active,
.sidebar .nav-module-sabotay a.active:hover {
  background: var(--sabotay-primary);
  color: #fff;
  box-shadow: none;
  border-radius: 10px;
}
.sidebar .nav-module-sabotay a.active .nav-ico { color: #fff; }

body.is-sabotay .content {
  --primary: var(--sabotay-primary);
  --primary-dark: var(--sabotay-dark);
  --primary-light: var(--sabotay-light);
  --focus: var(--sabotay-focus);
}
body.is-sabotay .content .btn,
body.is-sabotay .content .btn-primary {
  background: var(--sabotay-primary);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(23, 107, 135, 0.18);
}
body.is-sabotay .content .btn:hover,
body.is-sabotay .content .btn-primary:hover { background: var(--sabotay-hover); }
body.is-sabotay .content .btn-secondary,
body.is-sabotay .content .btn-outline,
body.is-sabotay .content .btn-danger { background: #fff; box-shadow: none; }
body.is-sabotay .content .btn-secondary:hover,
body.is-sabotay .content .btn-outline:hover {
  background: var(--sabotay-light);
  color: var(--sabotay-dark);
  border-color: var(--sabotay-border);
}
body.is-sabotay .content .card,
body.is-sabotay .content .encaissement .card {
  border-color: var(--sabotay-border);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(15, 76, 92, 0.05);
}
body.is-sabotay .content .page-label { color: var(--sabotay-primary); }
body.is-sabotay .content .page-icon {
  background: var(--sabotay-light);
  color: var(--sabotay-primary);
}
body.is-sabotay .content .kpi-card,
body.is-sabotay .content .stat-card {
  border-color: var(--sabotay-border);
  border-top: 3px solid var(--sabotay-primary);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(15, 76, 92, 0.05);
}
body.is-sabotay .content .kpi-card strong,
body.is-sabotay .content .stat-card strong { color: var(--sabotay-dark); }
body.is-sabotay .content .kpi-card .kpi-ico,
body.is-sabotay .content .stat-card .kpi-ico,
body.is-sabotay .content .enc-empty-ico {
  background: var(--sabotay-light);
  color: var(--sabotay-primary);
}
body.is-sabotay .content .form-control:focus,
body.is-sabotay .content select:focus,
body.is-sabotay .content textarea:focus,
body.is-sabotay .content input:focus {
  border-color: var(--sabotay-primary);
  box-shadow: var(--sabotay-focus);
}
body.is-sabotay .content .enc-search:focus-within,
body.is-sabotay .content .enc-amount-box:focus-within {
  border-color: var(--sabotay-primary);
  box-shadow: var(--sabotay-focus);
}
body.is-sabotay .content .enc-search-btn,
body.is-sabotay .content .btn-primary {
  background: var(--sabotay-primary);
}
body.is-sabotay .content .enc-search-btn:hover { background: var(--sabotay-hover); }
body.is-sabotay .content .badge-success,
body.is-sabotay .content .badge-paid,
body.is-sabotay .content .badge-active {
  background: var(--sabotay-light);
  color: var(--sabotay-dark);
  border-color: var(--sabotay-border);
}
body.is-sabotay .content .alert-success {
  background: var(--sabotay-light);
  color: var(--sabotay-dark);
  border-color: var(--sabotay-border);
}
body.is-sabotay .content .table th { background: var(--sabotay-bg); color: var(--sabotay-dark); }
body.is-sabotay .content .table tbody tr:hover { background: var(--sabotay-bg); }
body.is-sabotay .content .settings-nav a:hover,
body.is-sabotay .content .settings-nav a:focus,
body.is-sabotay .content .settings-nav a.is-active {
  background: var(--sabotay-light);
  color: var(--sabotay-primary);
  border-color: var(--sabotay-border);
}
body.is-sabotay .content .sol-choice.selected,
body.is-sabotay .content .client-hit.is-selected,
body.is-sabotay .content .client-hit:hover {
  background: var(--sabotay-light);
  border-color: var(--sabotay-primary);
}
body.is-sabotay .content .enc-method:hover,
body.is-sabotay .content .enc-method.is-active {
  border-color: var(--sabotay-primary);
  background: var(--sabotay-light);
  color: var(--sabotay-dark);
}
body.is-sabotay .content .money-accent,
body.is-sabotay .content .wd-commission,
body.is-sabotay .content .commission-value,
body.is-sabotay .content [data-pv-commission] {
  color: var(--sabotay-primary);
}
body.is-sabotay .content a:not(.btn):not(.btn-secondary):not(.btn-outline):not(.btn-danger) {
  color: var(--sabotay-primary);
}
body.is-sabotay .main { background: var(--sabotay-bg); }
body.is-sabotay .content {
  background: var(--sabotay-bg);
  padding: 22px 28px 36px;
}
body.is-sabotay .content .card,
body.is-sabotay .content .kpi-card {
  border: 1px solid var(--sabotay-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 100, 117, 0.045);
}
body.is-sabotay .content .form-control {
  min-height: 42px; border-radius: 12px;
}
body.is-sabotay .content .btn { min-height: 42px; border-radius: 14px; }
body.is-sabotay .content .btn:hover { transform: translateY(-1px); }
body.is-sabotay [hidden] { display: none !important; }
.sab-page-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0 0 16px;
}
.sab-page-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sab-page-ico {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--sabotay-light); color: var(--sabotay-primary);
  box-shadow: inset 0 0 0 1px var(--sabotay-border);
}
.sab-page-ico .icon { width: 20px; height: 20px; }
.sab-page-head h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: #12343A; }
.sab-page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.sab-create-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 20px; align-items: start;
}
.sab-create-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.sab-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.sab-card-head h3 { margin: 0; font-size: 16px; }
.sab-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.sab-card-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sabotay-light); color: var(--sabotay-primary);
}
.sab-card-ico .icon { width: 16px; height: 16px; }
.sab-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.sab-search-wrap {
  position: relative;
}
.sab-search-wrap .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--sabotay-primary); pointer-events: none;
}
.sab-search-wrap .form-control { padding-left: 38px; }
.sab-client-chosen, .sab-plan-facts, .sab-summary, .sab-quote {
  display: grid; gap: 10px;
}
.sab-client-chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #F7FCFD, #EEF8FA);
  border: 1px solid var(--sabotay-border);
  box-shadow: inset 4px 0 0 var(--sabotay-primary);
}
.sab-client-id {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800;
  background: var(--sabotay-primary); color: #fff;
}
.sab-client-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.sab-plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sab-chip, .sab-finance-box {
  padding: 10px 12px; border-radius: 14px;
  background: #F7FCFD; border: 1px solid var(--sabotay-border);
}
.sab-chip { display: grid; gap: 2px; }
.sab-chip-wide { grid-column: 1 / -1; }
.sab-chip span, .sab-finance-box span, .sab-summary span { color: var(--muted); font-size: 12px; }
.sab-chip strong, .sab-finance-box strong { font-size: 14px; color: #12343A; }
.sab-summary { gap: 8px; }
.sab-summary div, .sab-quote div {
  display: flex; justify-content: space-between; gap: 12px; font-size: 13px;
}
.sab-summary-soft { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--sabotay-border); }
.sab-summary .is-total, .sab-quote .is-total { padding-top: 8px; border-top: 1px solid var(--sabotay-border); }
.sab-summary .is-total strong, .sab-quote .is-net strong { color: var(--sabotay-primary); font-size: 16px; }
.sab-finance-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sab-finance-box.is-net { background: var(--sabotay-light); border-color: #BFE6ED; }
.sab-finance-box.is-net strong { color: var(--sabotay-dark); font-size: 18px; }
.sab-commission-value {
  margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--sabotay-dark);
}
.sab-important { background: #F7FCFD; }
.sab-important ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sab-important li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #35555B; }
.sab-important li::before { content: "✓"; color: #16A34A; font-weight: 800; }
.sab-actions-card { padding: 14px 16px; }
.sab-actions-bar { display: flex; justify-content: flex-end; gap: 10px; margin: 0; }
.sab-dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sab-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sab-show-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sab-show-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sab-show-kicker {
  margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sabotay-primary);
}
.sab-section { margin-bottom: 14px; }
body.is-sabotay .content .card.sab-section { padding: 16px 18px; }
.sab-toolbar { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sab-toolbar .form-control { min-width: 0; flex: 1 1 160px; }
.sab-plan-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.2fr); gap: 16px; }
.sab-plan-card {
  background: #fff; border: 1px solid var(--sabotay-border); border-radius: 16px; padding: 16px;
}
.sab-quote-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sab-quote-box {
  padding: 12px 14px; border-radius: 14px; background: #F7FCFD; border: 1px solid var(--sabotay-border);
}
.sab-quote-box span { display: block; color: var(--muted); font-size: 12px; }
.sab-quote-box strong { display: block; margin-top: 4px; }
.sab-quote-box.is-net { background: var(--sabotay-light); }
body.is-sabotay .content .table-wrap { overflow-x: auto; }
[data-sabotay-create] .enc-results { max-height: 220px; margin-top: 8px; }
body.is-sabotay .content .badge-success { background: #E8F8EE; color: #166534; }
body.is-sabotay .content .badge-warning { background: #FFF7E8; color: #B45309; }
body.is-sabotay .content .badge-danger { background: #FEF2F2; color: #B91C1C; }
body.is-sabotay .content .badge-neutral { background: #EEF4F6; color: #0B6475; }
@media (max-width: 1100px) {
  .sab-kpi-grid, .sab-show-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sab-create-layout { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
}
@media (max-width: 920px) {
  .sab-create-layout, .sab-dates-row, .sab-plan-grid, .sab-quote-row, .sab-plan-facts { grid-template-columns: 1fr; }
  .sab-create-side { position: static; }
  .sab-client-chosen, .sab-show-hero { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .sab-page-head { flex-direction: column; }
  .sab-actions-bar { flex-direction: column-reverse; }
  .sab-actions-bar .btn, .sab-actions-bar .btn-secondary { width: 100%; min-height: 44px; }
}

.sidebar .nav-module-pawn > summary {
  color: #EDE9FE;
  gap: 10px;
}
.sidebar .nav-module-pawn > summary::after {
  border-right-color: #E5E7EB;
  border-bottom-color: #E5E7EB;
}
.sidebar .nav-module-pawn > summary .nav-module-dot {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  display: inline-grid; place-items: center;
  color: #fff;
}
.sidebar .nav-module-pawn > summary .nav-module-dot .icon {
  width: 18px; height: 18px; color: #fff;
}
.sidebar .nav-module-pawn[open] > summary,
.sidebar .nav-module-pawn.is-current > summary {
  background: #7C3AED;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
}
.sidebar .nav-module-pawn[open] > summary .nav-module-dot,
.sidebar .nav-module-pawn.is-current > summary .nav-module-dot {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.sidebar .nav-module-pawn[open] > summary .nav-module-dot .icon,
.sidebar .nav-module-pawn.is-current > summary .nav-module-dot .icon {
  color: #fff;
}
.sidebar .nav-module-pawn[open] > summary:hover,
.sidebar .nav-module-pawn.is-current > summary:hover {
  background: #6D28D9;
  color: #fff;
}
.sidebar .nav-module-pawn a {
  display: flex; align-items: center; gap: 10px;
  color: #E5E7EB; border-radius: 12px;
  margin: 3px 6px; padding: 4px 10px 4px 8px;
  transition: background 180ms ease;
}
.sidebar .nav-module-pawn a .nav-ico {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #E5E7EB;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar .nav-module-pawn a .nav-ico .icon {
  width: 20px; height: 20px; color: #E5E7EB;
}
.sidebar .nav-module-pawn a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.sidebar .nav-module-pawn a:hover .nav-ico,
.sidebar .nav-module-pawn a:hover .nav-ico .icon {
  color: #fff;
}
.sidebar .nav-module-pawn a.active,
.sidebar .nav-module-pawn a.active:hover {
  background: rgba(124, 58, 237, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 #E5E7EB;
  border-radius: 12px;
}
.sidebar .nav-module-pawn a.active .nav-ico,
.sidebar .nav-module-pawn a.active .nav-ico .icon {
  color: #fff;
}

body.is-pawn .main { background: var(--pawn-bg); }
body.is-pawn .topbar {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
body.is-pawn .top-search__go { background: var(--pawn-primary); }
body.is-pawn .top-search__go:hover { background: var(--pawn-dark); }
body.is-pawn .content {
  --primary: var(--pawn-primary);
  --primary-dark: var(--pawn-dark);
  --primary-light: var(--pawn-light);
  --focus: var(--pawn-focus);
  background: var(--pawn-bg);
  padding: 22px 28px 36px;
}
body.is-pawn .content .btn,
body.is-pawn .content .btn-primary {
  background: var(--pawn-primary);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
}
body.is-pawn .content .btn:hover,
body.is-pawn .content .btn-primary:hover { background: var(--pawn-hover); }
body.is-pawn .content .btn:disabled,
body.is-pawn .content .btn-primary:disabled {
  opacity: .45; cursor: not-allowed; box-shadow: none;
}
body.is-pawn .content .btn-secondary,
body.is-pawn .content .btn-outline,
body.is-pawn .content .btn-danger { background: #fff; box-shadow: none; }
body.is-pawn .content .btn-secondary:hover,
body.is-pawn .content .btn-outline:hover {
  background: var(--pawn-light);
  color: var(--pawn-dark);
  border-color: var(--pawn-border);
}
body.is-pawn .content .card,
body.is-pawn .content .kpi-card {
  border-color: var(--pawn-border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.045);
}
body.is-pawn .content .page-label { color: var(--pawn-primary); }
body.is-pawn .content .badge-success { background: #ECFDF3; color: #067647; }
body.is-pawn .content .badge-warning { background: #FFF6E8; color: #B54708; }
body.is-pawn .content .badge-danger { background: #FEF3F2; color: #B42318; }
body.is-pawn .content .badge-neutral { background: #F4F3FF; color: #5B21B6; }
body.is-pawn .content .form-control {
  min-height: 42px; border-radius: 12px;
}
body.is-pawn .content .form-control:focus {
  border-color: var(--pawn-primary);
  box-shadow: var(--pawn-focus);
}
body.is-pawn .content .btn { min-height: 42px; }
.pawn-page-head {
  display: flex; align-items: flex-start; gap: 16px;
  margin: 0 0 16px;
}
.pawn-page-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pawn-page-ico {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #F5E8FF, #EDE4FF);
  color: var(--pawn-primary);
  box-shadow: inset 0 0 0 1px var(--pawn-border);
}
.pawn-page-ico .icon { width: 20px; height: 20px; }
.pawn-page-head h1 {
  margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: #1F1635;
}
.pawn-page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pawn-create-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 20px; align-items: start;
}
.pawn-create-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.pawn-card-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.pawn-card-head h3 { margin: 0; font-size: 16px; }
.pawn-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.pawn-card-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--pawn-light); color: var(--pawn-primary);
}
.pawn-card-ico .icon { width: 16px; height: 16px; }
.pawn-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.pawn-money, .pawn-suffix {
  position: relative;
}
.pawn-money .form-control, .pawn-suffix .form-control { padding-right: 52px; }
.pawn-money span, .pawn-suffix span {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #7A7194; font-size: 12px; font-weight: 700;
}
.pawn-guarantee-split {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(180px, .65fr); gap: 16px; align-items: stretch;
}
.pawn-values-card .pawn-values { margin-top: 0; padding-top: 0; border-top: 0; }
.pawn-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pawn-photo.has-preview { padding: 8px; }
.pawn-photo img {
  display: none; width: 100%; height: 168px; object-fit: cover; border-radius: 12px;
}
.pawn-photo.has-preview img { display: block; }
.pawn-photo.has-preview .pawn-photo-empty { display: none; }
.pawn-client-chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: #FCFAFF; border: 1px solid var(--pawn-border);
}
.pawn-client-id {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800;
  background: var(--pawn-light); color: var(--pawn-primary);
}
.pawn-client-chosen-body { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pawn-client-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; }
.pawn-client-facts span { color: var(--muted); font-size: 12.5px; }
.pawn-photo {
  border: 1.5px dashed var(--pawn-border); border-radius: 16px; background: #FCFAFF;
  min-height: 148px; display: grid; place-items: center; text-align: center; padding: 16px; cursor: pointer;
}
.pawn-photo:hover, .pawn-photo.is-over { border-color: var(--pawn-primary); background: var(--pawn-light); }
.pawn-photo input { position: absolute; opacity: 0; pointer-events: none; }
.pawn-photo-box { position: relative; }
.pawn-photo strong { display: block; color: var(--pawn-dark); }
.pawn-photo small { color: var(--muted); }
.pawn-photo .icon { width: 28px; height: 28px; color: var(--pawn-primary); margin-bottom: 6px; }
.pawn-photo-empty { display: grid; place-items: center; gap: 2px; }
.pawn-photo-empty em { display: none; }
.pawn-photo-box, .pawn-photo-box .pawn-photo { height: 100%; min-height: 220px; }
.pawn-amount-extras {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #F1E9FF;
}
.pawn-amount-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pawn-ltv-card.pawn-ltv,
.pawn-ltv-card {
  margin-top: 0; background: #fff; padding: 18px;
  border: 1px solid var(--pawn-border); border-radius: 18px;
}
.pawn-show-hero {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.pawn-show-hero-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: 1; }
.pawn-show-hero h2 { margin: 2px 0 6px; font-size: 22px; letter-spacing: -.03em; }
.pawn-show-kicker {
  margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pawn-primary);
}
.pawn-show-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pawn-inline-action { margin: 14px 0 0; }
.pawn-ltv-card .pawn-ltv-metrics { grid-template-columns: 1fr 1fr; }
.pawn-ltv-bar {
  height: 10px; border-radius: 99px; background: #EEE7FA; overflow: hidden; margin: 12px 0 14px;
}
.pawn-ltv-bar span {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #8B5CF6, var(--pawn-primary));
  transition: width .2s ease, background .2s ease;
}
.pawn-ltv.is-ok .pawn-ltv-bar span { background: linear-gradient(90deg, #12B76A, #039855); }
.pawn-ltv.is-limit .pawn-ltv-bar span { background: linear-gradient(90deg, #F79009, #DC6803); }
.pawn-ltv.is-over .pawn-ltv-bar span { background: linear-gradient(90deg, #F97066, #D92D20); }
.pawn-ltv-extra { display: grid; gap: 8px; margin: 0; }
.pawn-ltv-extra div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pawn-ltv-extra dt { color: var(--muted); font-weight: 600; }
.pawn-ltv-extra dd { margin: 0; font-weight: 700; }
.pawn-ltv.is-limit .pawn-ltv-state { color: #B54708; }
.pawn-summary { display: grid; gap: 10px; }
.pawn-summary div { display: flex; justify-content: space-between; gap: 12px; }
.pawn-summary span { color: var(--muted); font-size: 13px; }
.pawn-summary strong { font-size: 14px; }
.pawn-summary .is-total { padding-top: 8px; border-top: 1px solid #F1E9FF; }
.pawn-summary .is-total strong { color: var(--pawn-primary); font-size: 16px; }
.pawn-important { background: #FFFCF5; border-color: #F7E3B8; }
.pawn-important h3 { color: #B54708; }
.pawn-important ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pawn-important li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #4A4338; }
.pawn-important li::before { content: "✓"; color: #12B76A; font-weight: 800; }
.pawn-actions-bar {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px;
}
.pawn-dates-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; }
.pawn-redeem-wrap { max-width: 520px; margin: 0 auto; }
.pawn-redeem-card { padding: 28px 28px 24px; }
.pawn-redeem-head { margin-bottom: 8px; }
.pawn-redeem-head h2 {
  margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #1F1635;
}
.pawn-redeem-head p { margin: 0 0 4px; color: #3F3F46; font-size: 14px; }
.pawn-redeem-head strong { font-weight: 750; color: #1F1635; }
.pawn-redeem-lines { margin: 18px 0 8px; display: grid; gap: 8px; }
.pawn-redeem-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pawn-redeem-lines dt { margin: 0; color: #5B5670; font-size: 14px; font-weight: 600; }
.pawn-redeem-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pawn-redeem-lines .is-total,
.pawn-redeem-lines .is-balance {
  margin-top: 6px; padding-top: 10px; border-top: 1px solid #E9D5FF;
}
.pawn-redeem-lines .is-total dt,
.pawn-redeem-lines .is-balance dt {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #1F1635;
}
.pawn-redeem-lines .is-total dd { color: #1F1635; font-size: 15px; }
.pawn-redeem-lines .is-balance dt,
.pawn-redeem-lines .is-balance dd { color: var(--pawn-primary, #7C3AED); }
.pawn-redeem-lines .is-balance dd { font-size: 16px; }
.pawn-redeem-form { display: grid; gap: 14px; margin-top: 18px; }
.pawn-redeem-form .pawn-actions-bar { margin-top: 4px; }
.pawn-forfeit-note {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #FFF6E8; border: 1px solid #F7E3B8; color: #7A4100; font-size: 13.5px; line-height: 1.5;
}
.pawn-sale-result { margin: 0; font-weight: 750; color: var(--pawn-primary, #7C3AED); }
.btn-pawn-warn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: #B54708; color: #fff; padding: 10px 16px; border-radius: 11px; text-decoration: none;
}
.btn-pawn-warn:hover { background: #93370D; color: #fff; }
body.is-pawn .content .btn-pawn-warn {
  background: #B54708; color: #fff; box-shadow: 0 8px 18px rgba(181, 71, 8, 0.18);
}
body.is-pawn .content .btn-pawn-warn:hover { background: #93370D; color: #fff; }
.pawn-select-empty {
  border: 1px dashed var(--pawn-border); border-radius: 16px; padding: 18px; text-align: center; color: var(--muted);
}
.pawn-client-meta-grid { display: grid; gap: 2px; }
.pawn-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.pawn-kpi {
  position: relative; overflow: hidden;
}
.pawn-kpi::after {
  content: ""; position: absolute; inset: auto -20px -24px auto; width: 88px; height: 88px;
  border-radius: 50%; background: linear-gradient(135deg, rgba(124,58,237,.08), transparent);
}
.pawn-table .table { margin: 0; }
body.is-pawn .content .table th {
  background: #F8F3FF; color: #5B21B6; font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
}
body.is-pawn .content .table td { padding: 13px 12px; }
body.is-pawn .content .table tbody tr:hover { background: #FCFAFF; }
.pawn-cat-card { margin-top: 16px; }
.pawn-cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pawn-cat-head h3 { margin: 0 0 4px; }
.pawn-cat-head .muted { margin: 0; }
.pawn-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pawn-cat-item {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--pawn-border, #E9D5FF); border-radius: 16px; padding: 12px 14px;
}
.pawn-cat-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--pawn-light, #F3E8FF); color: var(--pawn-primary, #7C3AED);
}
.pawn-cat-ico .icon { width: 20px; height: 20px; }
.pawn-cat-meta { min-width: 0; }
.pawn-cat-meta strong { display: block; }
.pawn-cat-meta small { color: var(--muted); }
.pawn-cat-item .dropdown-menu { min-width: 180px; }
body.is-pawn .content .table th { background: #F3E8FF; color: #5B21B6; }
body.is-pawn .content .table tbody tr:hover { background: #FAF7FF; }
.pawn-section { margin-bottom: 16px; }
.pawn-section h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.pawn-section h4 { margin: 16px 0 8px; font-size: 14px; }
.pawn-toolbar { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pawn-toolbar .form-control { min-width: 0; flex: 1 1 180px; }
.pawn-lead { margin: 0 0 4px; }
.pawn-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.pawn-dl dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pawn-dl dd { margin: 2px 0 0; font-weight: 600; }
.pawn-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pawn-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--pawn-border, #E9D5FF); }
.pawn-actions-card .page-actions { margin-bottom: 12px; }
.pawn-inline-form, .pawn-repay-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.pawn-inline-form .form-control { min-width: 140px; }
.pawn-client-hits { display: grid; gap: 8px; margin-top: 8px; }
.pawn-client-hit {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--pawn-border, #E9D5FF); border-radius: 14px; padding: 10px 12px;
}
.pawn-client-hit-info { min-width: 0; display: grid; gap: 2px; }
.pawn-client-hit-info strong { display: block; }
.pawn-client-empty { margin: 8px 0 0; }
.pawn-client-chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 4px; padding: 14px 16px; border-radius: 16px;
  background: #FCFAFF; border: 1px solid var(--pawn-border, #E9D5FF);
}
.pawn-client-chosen-kicker {
  margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pawn-primary, #7C3AED);
}
.pawn-client-chosen-body strong { display: block; }
.pawn-client-chosen-body .muted { margin: 2px 0 0; }
.pawn-client-error { margin: 10px 0 0; color: #B42318; font-weight: 600; }
body.is-pawn [hidden] { display: none !important; }
.pawn-retained-field { grid-column: auto; }
.pawn-ltv {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--pawn-light, #F3E8FF); border: 1px solid var(--pawn-border, #E9D5FF);
}
.pawn-ltv-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px;
}
.pawn-ltv-metrics span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--pawn-primary, #7C3AED);
}
.pawn-ltv-metrics strong { display: block; margin-top: 2px; font-size: 16px; }
.pawn-ltv-state { margin: 10px 0 0; font-weight: 700; }
.pawn-ltv.is-ok .pawn-ltv-state { color: #067647; }
.pawn-ltv.is-over {
  background: #FEF3F2; border-color: #FECACA;
}
.pawn-ltv.is-over .pawn-ltv-metrics span { color: #B42318; }
.pawn-ltv.is-over .pawn-ltv-state { color: #B42318; }
.pawn-ltv.is-wait .pawn-ltv-state { color: var(--muted); font-weight: 600; }
.table-actions { white-space: nowrap; }
.table-actions .btn-secondary { padding: 6px 10px; font-size: 12px; }
.empty-state {
  text-align: center; padding: 36px 16px; color: var(--muted);
}
.empty-state strong { display: block; color: #3F3F46; font-size: 15px; }
.pawn-dash-lists { margin-top: 16px; }

@media (max-width: 1100px) {
  body.is-pawn .kpi-grid,
  .pawn-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pawn-show-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pawn-create-layout { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
}
@media (max-width: 920px) {
  .pawn-create-layout,
  .pawn-dates-row,
  .pawn-values,
  .pawn-guarantee-split,
  .pawn-amount-primary { grid-template-columns: 1fr; }
  .pawn-create-side { position: static; }
  .pawn-show-hero,
  .pawn-show-hero-main,
  .pawn-client-chosen { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .pawn-dl { grid-template-columns: 1fr; }
  .pawn-ltv-metrics { grid-template-columns: 1fr; }
  .pawn-show-kpis { grid-template-columns: 1fr 1fr; }
  .pawn-cat-head { flex-direction: column; }
  .pawn-cat-item { grid-template-columns: 40px minmax(0,1fr) auto; }
  .pawn-page-head { flex-direction: column; }
  .pawn-actions-bar { flex-direction: column-reverse; }
  .pawn-actions-bar .btn,
  .pawn-actions-bar .btn-secondary { width: 100%; min-height: 44px; }
  .pawn-redeem-card { padding: 22px 16px 18px; }
  .modal { width: min(100%, 460px); max-height: calc(100vh - 36px); overflow: auto; }
}

body.is-sol .content {
  --primary: var(--sol-primary);
  --primary-dark: var(--sol-dark);
  --primary-light: var(--sol-light);
  --focus: var(--sol-focus);
  background: var(--sol-bg);
  padding: 22px 28px 36px;
}
body.is-sol .main { background: var(--sol-bg); }
body.is-sol .content .btn,
body.is-sol .content .btn-primary {
  background: var(--sol-primary);
  color: #fff;
  border-color: var(--sol-primary);
}
body.is-sol .content .btn:hover,
body.is-sol .content .btn-primary:hover { background: var(--sol-hover); transform: translateY(-1px); }
body.is-sol .content .btn-secondary,
body.is-sol .content .btn-outline { background: #fff; box-shadow: none; }
body.is-sol .content .btn-secondary:hover,
body.is-sol .content .btn-outline:hover {
  background: var(--sol-light);
  color: var(--sol-dark);
  border-color: var(--sol-border);
}
body.is-sol .content .card,
body.is-sol .content .kpi-card,
body.is-sol .content .stat-card {
  border: 1px solid var(--sol-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.045);
}
body.is-sol .content .form-control,
body.is-sol .content select,
body.is-sol .content textarea {
  min-height: 42px; border-radius: 12px;
}
body.is-sol .content .form-control:focus,
body.is-sol .content select:focus,
body.is-sol .content textarea:focus,
body.is-sol .content input:focus {
  border-color: var(--sol-primary);
  box-shadow: var(--sol-focus);
}
body.is-sol .content .btn { min-height: 42px; border-radius: 12px; }
body.is-sol .content .page-label { color: var(--sol-primary); }
body.is-sol .content .kpi-card { border-top: 3px solid var(--sol-primary); }
body.is-sol .content .kpi-card strong,
body.is-sol .content .stat-card strong { color: var(--sol-dark); }
body.is-sol .content .kpi-ico { background: var(--sol-light); color: var(--sol-primary); }
body.is-sol .content .table th { background: var(--sol-bg); color: var(--sol-dark); }
body.is-sol .content .table tbody tr:hover { background: var(--sol-bg); }
body.is-sol .content .table-wrap,
body.is-sol .content .table-container { overflow-x: auto; }
body.is-sol .content .badge-success { background: #E8F8EE; color: #166534; }
body.is-sol .content .badge-warning { background: #FFF7E8; color: #B45309; }
body.is-sol .content .badge-danger { background: #FEF2F2; color: #B91C1C; }
body.is-sol .content .badge-neutral { background: #F0FDF4; color: #047857; }
body.is-sol [hidden] { display: none !important; }
body.is-sol .stepper,
body.is-sol .wizard-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 20px;
  padding: 14px 10px 10px;
  background: #fff;
  border: 1px solid var(--sol-border);
  border-radius: 16px;
  overflow-x: auto;
}
body.is-sol .stepper button,
body.is-sol .wizard-steps button {
  min-width: 0; flex-direction: column; gap: 6px; border: 0; border-bottom: 0;
  padding: 6px 4px; position: relative; font-size: 12px; font-weight: 600;
}
body.is-sol .stepper button:not(:last-child)::after,
body.is-sol .wizard-steps button:not(:last-child)::after {
  content: "";
  position: absolute; top: 16px; left: calc(50% + 16px); right: -50%;
  height: 2px; background: #E5E7EB; z-index: 0;
}
body.is-sol .stepper button.done:not(:last-child)::after,
body.is-sol .stepper button.active:not(:last-child)::after,
body.is-sol .wizard-steps button.done:not(:last-child)::after,
body.is-sol .wizard-steps button.active:not(:last-child)::after {
  background: var(--sol-primary);
}
body.is-sol .stepper button .n,
body.is-sol .wizard-steps button .n {
  width: 28px; height: 28px; position: relative; z-index: 1;
  background: #F3F4F6; color: #9CA3AF;
}
body.is-sol .stepper button.active,
body.is-sol .wizard-steps button.active { color: var(--sol-primary); }
body.is-sol .stepper button.active .n,
body.is-sol .wizard-steps button.active .n { background: var(--sol-primary); color: #fff; }
body.is-sol .stepper button.done,
body.is-sol .wizard-steps button.done { color: var(--sol-dark); }
body.is-sol .stepper button.done .n,
body.is-sol .wizard-steps button.done .n {
  background: var(--sol-primary); color: #fff; font-size: 0;
}
body.is-sol .stepper button.done .n::after,
body.is-sol .wizard-steps button.done .n::after {
  content: "✓"; font-size: 13px; font-weight: 800;
}
.sol-page-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin: 0 0 16px;
}
.sol-page-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sol-page-ico {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--sol-light); color: var(--sol-primary);
  box-shadow: inset 0 0 0 1px var(--sol-border);
}
.sol-page-ico .icon { width: 20px; height: 20px; }
.sol-page-head h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: #14532D; }
.sol-page-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.sol-hero-tag {
  display: none; text-align: right; color: var(--sol-primary); font-weight: 700;
  font-size: 13px; line-height: 1.25; max-width: 180px;
}
@media (min-width: 1100px) { .sol-hero-tag { display: block; } }
.sol-create-layout {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 20px; align-items: start;
}
.sol-create-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.sol-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.sol-card-head h3 { margin: 0; font-size: 16px; }
.sol-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.sol-card-ico {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sol-light); color: var(--sol-primary);
}
.sol-card-ico .icon { width: 16px; height: 16px; }
.sol-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.sol-section { margin-bottom: 14px; }
body.is-sol .content .card.sol-section { padding: 16px 18px; }
.sol-summary { display: grid; gap: 8px; }
.sol-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.sol-summary span { color: var(--muted); }
.sol-important { background: #F7FDF9; }
.sol-important ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sol-important li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #355B45; }
.sol-important li::before { content: "✓"; color: #16A34A; font-weight: 800; }
.sol-info-box {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px; margin-top: 8px;
  background: var(--sol-light); border: 1px solid var(--sol-border); color: #14532D; font-size: 13px;
}
.sol-actions-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.sol-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sol-show-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sol-show-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sol-show-kicker {
  margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sol-primary);
}
.sol-toolbar { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.sol-toolbar .form-control, .sol-toolbar select { min-width: 0; flex: 1 1 140px; }
.sol-dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sol-confirm { display: grid; gap: 10px; }
.sol-confirm-lead {
  padding: 12px 14px; border-radius: 14px; background: var(--sol-light);
  border: 1px solid var(--sol-border); color: #14532D; font-weight: 600;
}
body.is-sol .member-picker { border-color: var(--sol-border); }
body.is-sol .member-row {
  display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) auto;
  align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--sol-border); border-radius: 12px; margin-bottom: 6px;
}
body.is-sol .member-row:hover { background: var(--sol-light); }
@media (max-width: 1100px) {
  .sol-kpi-grid, .sol-show-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-create-layout { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
  body.is-sol .stepper, body.is-sol .wizard-steps { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
}
@media (max-width: 920px) {
  .sol-create-layout, .sol-dates-row { grid-template-columns: 1fr; }
  .sol-create-side { position: static; }
  .sol-show-hero { flex-direction: column; }
}
@media (max-width: 720px) {
  .sol-page-head { flex-direction: column; }
  .sol-actions-bar { flex-direction: column-reverse; }
  .sol-actions-bar .btn, .sol-actions-bar .btn-secondary { width: 100%; min-height: 44px; }
  body.is-sol .stepper, body.is-sol .wizard-steps { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  body.is-sol .member-row { grid-template-columns: auto 1fr; }
}

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  .sidebar {
    position: fixed; z-index: 40; transform: translateX(-110%); transition: .2s;
    width: min(var(--sidebar-w), 86vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .mobile-toggle { display: inline-grid; }
  .grid-6, .grid-4, .grid-3, .grid-2, .form-grid, .summary-list, .kpi-grid { grid-template-columns: 1fr; }
  .dash-head, .page-toolbar { flex-direction: column; align-items: flex-start; }
  .topbar {
    flex-wrap: nowrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .top-actions { margin-left: auto; }
  .top-search.is-open .top-search__panel {
    position: fixed; left: 12px; right: 12px; top: 8px; width: auto;
  }
  .content,
  body.is-sol .content,
  body.is-sabotay .content,
  body.is-pawn .content { padding: 14px 12px 24px; }
  body.is-pawn .topbar,
  body.is-sol .topbar,
  body.is-sabotay .topbar { padding: 10px 12px; }
  .layout-form, .profile-layout { grid-template-columns: 1fr; }
  .wizard-steps button, .stepper button { min-width: 110px; min-height: 44px; }
  .lang-switch__btn, .btn-sm, .table-actions .btn-secondary, .settings-nav a {
    min-height: 40px;
  }
  .card:has(> table.table),
  .card:has(> .table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 560px; }
  .modal { width: min(100%, 460px); max-height: calc(100dvh - 24px); overflow: auto; }
  .form-actions .btn, .form-actions .btn-secondary, .form-actions .btn-outline {
    min-height: 44px;
  }
}
@media print {
  .no-print, .sidebar, .topbar { display: none !important; }
  body { background: #fff; }
}
