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

:root {
  --bg: #f3f5f7;
  --paper: #ffffff;
  --panel: #ffffff;
  --sidebar: #ffffff;
  --ink: #111827;
  --ink-2: #0f172a;
  --ink-soft: #6b7280;
  --muted: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #eef2f7;
  --primary: #0f172a;
  --primary-soft: #f1f5f9;
  --accent: #0f4c81;
  --accent-deep: #0b3b65;
  --accent-soft: #eaf3fb;
  --mint: var(--accent);
  --mint-dark: var(--accent-deep);
  --mint-soft: var(--accent-soft);
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #0f4c81;
  --green: #22c55e;
  --shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.cod-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.cod-ledger-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: #16a34a;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.cod-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
.cod-summary-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15,23,42,.07);
  display: grid;
  align-content: start;
  gap: 10px;
}
.cod-summary-card > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eaf3ff;
}
.cod-summary-card.green > span { background: #dcfce7; }
.cod-summary-card.red > span { background: #fee2e2; }
.cod-summary-card.clock > span { background: #eef2ff; }
.cod-summary-card small {
  color: var(--muted);
  font-weight: 900;
}
.cod-summary-card strong {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  direction: ltr;
}
.cod-summary-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.cod-workbench {
  display: grid;
  gap: 16px;
}
.cod-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.cod-filter-bar input {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  font: inherit;
  box-shadow: 0 12px 28px rgba(15,23,42,.05);
}
.cod-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.cod-tabs span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}
.cod-tabs span.active {
  background: var(--primary);
  color: #fff;
}
.cod-tabs b {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.cod-table-card {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(15,23,42,.07);
}
.cod-table-card table {
  margin: 0;
}

@media (max-width: 980px) {
  .cod-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cod-filter-bar { grid-template-columns: 1fr; }
  .cod-tabs { overflow-x: auto; }
}

@media (max-width: 620px) {
  .cod-hero { display: grid; }
  .cod-summary-grid { grid-template-columns: 1fr; }
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 82, 132, .38) transparent;
}

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

*::-webkit-scrollbar-thumb {
  background: rgba(15, 82, 132, .35);
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(15, 76, 129, .28) transparent; }
*::-webkit-scrollbar { width: 5px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(15, 76, 129, .24); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(15, 76, 129, .42); background-clip: content-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  line-height: 1.55;
}
body.lang-en {
  direction: ltr;
}
body.lang-en .main,
body.lang-en .topbar,
body.lang-en .table-actions {
  direction: ltr;
}
body.lang-en .sidebar nav a,
body.lang-en .brand,
body.lang-en .topbar-actions {
  justify-content: flex-start;
}
body.lang-en .sidebar-foot strong,
body.lang-en .brand div {
  text-align: left;
}
a { color: inherit; text-decoration: none; }
.ltr { direction: ltr; text-align: left; }
nav svg, .topbar-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.grain { display: none; }
.shell {
  width: min(1380px, calc(100vw - 28px));
  min-height: calc(100vh - 28px);
  height: calc(100vh - 28px);
  margin: 14px auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.dashboard-menu-button,
.dashboard-sidebar-overlay { display: none; }
.sidebar {
  background: var(--sidebar);
  padding: 28px 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 24px 22px; margin: 0; border: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
}
.brand-mark img {
  width: 29px;
  height: 29px;
  display: block;
  filter: invert(1);
}
.brand strong { display: block; font-size: 20px; color: var(--ink); line-height: 1.08; }
.brand small { display: none; }
nav { display: grid; gap: 2px; }
nav small {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 18px 28px 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 28px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  border-right: 4px solid transparent;
}
nav a svg { opacity: .82; }
nav a span { flex: 1; }
.nav-badge {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-family: "Outfit", sans-serif;
  line-height: 1;
}
nav a:hover, nav a.active {
  background: var(--primary);
  border-right-color: var(--primary);
  color: #ffffff;
}
.sidebar-foot {
  margin: auto 20px 0;
  border: 1px solid var(--line);
  background: var(--primary-soft);
  border-radius: 18px;
  padding: 14px;
  display: none;
}
.sidebar-foot strong { display: block; color: var(--ink); direction: ltr; text-align: right; font-size: 12px; }
.sidebar-foot small { color: var(--muted); font-size: 11px; }
.main {
  padding: 26px 28px;
  background: var(--bg);
  overflow: auto;
  min-height: 0;
}
.topbar {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.topbar strong { display: none; }
.eyebrow {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.topbar-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
}
.pos-offline-alert {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
  color: #7c2d12;
}
.pos-offline-alert b,
.pos-offline-alert span { display: block; }
.pos-offline-alert b { font-size: 16px; margin-bottom: 4px; }
.pos-offline-alert span { color: #9a3412; font-size: 12px; }
.pos-offline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.pos-offline-list article {
  border: 1px solid #fed7aa;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
}
.pos-offline-list strong,
.pos-offline-list small { display: block; }
.pos-offline-list small { margin-top: 5px; color: #9ca3af; font-size: 11px; direction: ltr; text-align: right; }
.topbar-search svg { color: var(--muted); }
.topbar-search input { width: 100%; border: 0; outline: 0; font: inherit; font-size: 12px; background: transparent; }
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.language-switcher {
  min-width: 72px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.topbar-icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.topbar-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar-icon-button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.status-pill {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.status-pill span { display: none; }
.dash-actions {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.dash-actions h1 { margin: 0 0 2px; font-size: 24px; line-height: 1.25; }
.dash-actions p { margin: 0; color: var(--muted); font-size: 13px; }
.smart-hero {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f8fbfd);
  box-shadow: var(--shadow);
}
.action-row { display: flex; gap: 9px; }
.button, button {
  border: 0;
  background: var(--mint);
  color: #fff;
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button svg,
button svg {
  width: 16px;
  height: 16px;
}
.button:disabled,
button:disabled {
  opacity: .7;
  cursor: wait;
}
.woo-sync-button.syncing svg {
  animation: spinSync .8s linear infinite;
}
.button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.ai-insights {
  margin-bottom: 16px;
  padding: 16px;
}
.insight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.insight {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
}
.insight b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}
.insight.good b { background: #ecfdf3; color: #16a34a; }
.insight.warn b { background: #fffbeb; color: #d97706; }
.insight.critical b { background: #fef2f2; color: #dc2626; }
.insight.idea b { background: var(--accent-soft); color: var(--accent); }
.insight strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.insight p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}
.target-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.target-head,
.target-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.target-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.target-head b {
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--target-color);
  background: var(--target-soft);
}
.target-card strong {
  display: block;
  margin: 10px 0;
  direction: ltr;
  text-align: right;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}
.target-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--line-soft);
}
.target-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--target-color), var(--target-color-2));
  box-shadow: 0 6px 18px var(--target-glow);
}
.target-meta {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}
.target-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.target-card.low,
.metric-bars article.low {
  --target-color: #ef4444;
  --target-color-2: #f97316;
  --target-soft: #fef2f2;
  --target-glow: rgba(239, 68, 68, .20);
}
.target-card.near,
.metric-bars article.near {
  --target-color: #f59e0b;
  --target-color-2: #facc15;
  --target-soft: #fffbeb;
  --target-glow: rgba(245, 158, 11, .22);
}
.target-card.met,
.metric-bars article.met {
  --target-color: #16a34a;
  --target-color-2: #22c55e;
  --target-soft: #ecfdf3;
  --target-glow: rgba(34, 197, 94, .22);
}
.target-card.over,
.metric-bars article.over {
  --target-color: #0f4c81;
  --target-color-2: #38bdf8;
  --target-soft: #eaf3fb;
  --target-glow: rgba(15, 76, 129, .22);
}
.smart-kpis {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: stretch;
}
.profit-kpis {
  margin-top: -2px;
}
.print-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 18px;
  align-items: start;
}
.print-settings-grid .wide {
  grid-column: 1 / -1;
}
.print-settings-form {
  display: grid;
  gap: 14px;
}
.print-settings-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}
.print-settings-form input,
.print-settings-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  outline: 0;
}
.print-settings-form textarea {
  direction: ltr;
  font-family: "Outfit", Consolas, monospace;
  resize: vertical;
}
.print-settings-help {
  display: grid;
  gap: 14px;
}
.grid.two.compact {
  gap: 12px;
}
.fixed-expenses-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.fixed-expenses-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.fixed-expenses-head span,
.fixed-expenses-grid span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}
.fixed-expenses-head h2 {
  margin: 4px 0 2px;
  font-size: 28px;
  line-height: 1.1;
  direction: ltr;
}
.fixed-expenses-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.fixed-expenses-head > strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
}
.fixed-expenses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fixed-expenses-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}
.fixed-expenses-grid strong {
  color: var(--ink);
  font-size: 18px;
  direction: ltr;
}
.fixed-expenses-grid small,
.fixed-expenses-note {
  color: var(--muted);
  font-size: 11px;
}
.fixed-expenses-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}
.fixed-expenses-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
}
.card, .panel, .login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.card {
  min-height: 82px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.card span { color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.card strong { display: block; font-size: 20px; margin-top: 2px; direction: ltr; text-align: right; }
.card small { display: block; color: var(--mint-dark); font-size: 10px; }
.card em {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--mint-soft);
  position: relative;
}
.card em::after { content: ""; position: absolute; inset: 6px; background: var(--mint); border-radius: 2px; }
.smart-card em {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
}
.smart-card em::after { display: none; }
.smart-card.up em { color: #16a34a; background: #ecfdf3; }
.smart-card.down em { color: #dc2626; background: #fef2f2; }
.smart-card.flat em { color: var(--accent); background: var(--accent-soft); }
.analytics-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  margin-bottom: 14px;
}
.smart-grid {
  grid-template-columns: .9fr 1.1fr;
}
.forecast-widget {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 14px;
  align-items: stretch;
}
.forecast-main {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background: var(--primary-soft);
}
.forecast-main span,
.forecast-meta span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}
.forecast-main strong {
  font-size: 24px;
  direction: ltr;
  text-align: right;
}
.forecast-main small.up { color: #16a34a; }
.forecast-main small.down { color: #dc2626; }
.forecast-bars {
  min-height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
}
.forecast-bars i {
  flex: 1;
  height: var(--h);
  min-height: 18px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent), #8ec5e8);
}
.forecast-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px;
  padding-top: 6px;
}
.forecast-meta b {
  direction: ltr;
  color: var(--ink);
}
.smart-line {
  height: 210px;
}
.smart-list {
  display: grid;
  gap: 9px;
}
.smart-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
}
.smart-list strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}
.smart-list small {
  color: var(--ink-soft);
  font-size: 11px;
}
.smart-list b {
  color: var(--accent);
  direction: ltr;
  white-space: nowrap;
}
.stock-alerts b {
  min-width: 38px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #dc2626;
  background: #fef2f2;
}
.smart-stage-two {
  margin-top: 14px;
}
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}
.segment-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.segment-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}
.segment-card strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
}
.segment-card small {
  color: var(--accent);
  direction: ltr;
  display: block;
}
.segment-card.vip { background: #ecfdf3; border-color: rgba(34,197,94,.18); }
.segment-card.risk { background: #fef2f2; border-color: rgba(239,68,68,.18); }
.movers-list article.up b {
  color: #16a34a;
}
.movers-list article.down b {
  color: #dc2626;
}
.weekday-bars {
  display: grid;
  gap: 10px;
}
.weekday-bars article {
  display: grid;
  grid-template-columns: 82px 1fr 86px;
  gap: 10px;
  align-items: center;
}
.weekday-bars span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.weekday-bars div {
  height: 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  overflow: hidden;
}
.weekday-bars i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8ec5e8);
}
.weekday-bars b {
  color: var(--ink-soft);
  direction: ltr;
  text-align: left;
  font-size: 11px;
}
.recommendation-list {
  display: grid;
  gap: 9px;
}
.recommendation-list article {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.recommendation-list article.good { background: #ecfdf3; }
.recommendation-list article.warn { background: #fffbeb; }
.recommendation-list article.critical { background: #fef2f2; }
.recommendation-list article.idea { background: var(--accent-soft); }
.recommendation-list strong {
  display: block;
  font-size: 13px;
}
.recommendation-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}
.smart-stage-three {
  margin-top: 14px;
}
.daily-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.daily-summary article {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}
.daily-summary span,
.summary-note strong {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}
.daily-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  direction: ltr;
  font-size: 16px;
}
.daily-summary small {
  color: var(--accent);
  font-size: 10px;
}
.summary-note {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--accent-soft);
}
.summary-note p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
}
.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.source-chips span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}
.alert-center {
  display: grid;
  gap: 9px;
}
.alert-center article {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
}
.alert-center b {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.alert-center .critical b { background: #dc2626; }
.alert-center .warn b { background: #d97706; }
.alert-center .opportunity b { background: #16a34a; }
.alert-center strong {
  display: block;
  font-size: 13px;
}
.alert-center p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}
.assistant-answers {
  display: grid;
  gap: 8px;
}
.assistant-answers details {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.assistant-answers summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.assistant-answers p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}
.action-plan {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: plan;
  display: grid;
  gap: 9px;
}
.action-plan li {
  counter-increment: plan;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.action-plan li::before {
  content: counter(plan);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.action-plan strong,
.action-plan span {
  grid-column: 2;
}
.action-plan strong {
  color: var(--ink);
  font-size: 13px;
}
.action-plan span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}
.grid.two {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
.panel { padding: 14px; overflow-x: auto; }
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.panel-title h2 { margin: 0; font-size: 15px; }
.panel-title a, .panel-title span { color: var(--mint-dark); font-size: 11px; font-weight: 800; }
.tiny { background: #fff; color: #334155; border: 1px solid var(--line); min-height: 24px; padding: 3px 8px; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.page-head h1 { margin: 0; font-size: 24px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px 9px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
th { color: var(--ink-soft); font-weight: 800; background: var(--primary-soft); }
tbody tr:hover { background: var(--accent-soft); }
.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
}
.link { color: var(--mint-dark); font-weight: 800; }
.table-actions { display: inline-flex; align-items: center; gap: 6px; }
.table-actions .link {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.table-actions .link.dark {
  background: var(--primary);
  color: #fff;
}
.ok { color: var(--mint-dark); font-weight: 800; }
.muted, .empty { color: var(--muted); }
.search { display: flex; gap: 10px; margin-bottom: 14px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 11px;
  font: inherit;
}
.user-form {
  display: grid;
  gap: 9px;
}
.inventory-settings {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.inventory-settings label { font-size: 12px; font-weight: 800; color: #405062; }
.inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto 110px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.inventory-toolbar label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}
.inventory-bulk-panel {
  display: grid;
  grid-template-columns: auto 140px 140px auto minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.inventory-bulk-panel strong {
  color: var(--ink);
  font-size: 13px;
}
.inventory-catalog .barcode-product-cell img,
.inventory-catalog .barcode-product-placeholder {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 14px;
}
.inventory-price-control {
  display: grid;
  grid-template-columns: 86px 86px auto;
  gap: 7px;
  align-items: end;
  min-width: 245px;
}
.inventory-price-control label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}
.inventory-price-control input {
  min-height: 31px;
  padding: 4px 7px;
  direction: ltr;
  text-align: center;
  font-weight: 800;
}
.inventory-stock-control {
  display: inline-grid;
  grid-template-columns: 78px auto;
  gap: 7px;
  align-items: center;
}
.inventory-stock-control input {
  min-height: 31px;
  padding: 4px 8px;
  text-align: center;
  direction: ltr;
  font-weight: 800;
}
.inventory-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 10px 4px;
}
.inventory-pagination a,
.inventory-pagination span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.inventory-pagination a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.badge.success { background: #ecfdf3; color: #16a34a; }
.badge.danger { background: #fef2f2; color: #ef4444; }
.inventory-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.inventory-modal[hidden] { display: none; }
.inventory-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .36);
  backdrop-filter: blur(5px);
}
.inventory-modal-sheet {
  position: relative;
  width: min(980px, 96vw);
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .20);
  padding: 24px;
}
.inventory-modal-sheet h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}
.variant-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.product-form-grid label,
.inventory-builder label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}
.product-form-grid .span-2 { grid-column: 1 / -1; }
.product-form-grid textarea,
.product-form-grid select[multiple] {
  min-height: 92px;
}
.product-image-picker {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
}
.main-image-box,
.gallery-image-box {
  min-height: 126px;
  place-content: center;
  text-align: center;
  border: 1px dashed var(--accent);
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--ink);
}
.gallery-image-box {
  min-height: 126px;
  background: #fff;
}
.main-image-box input,
.gallery-image-box input {
  margin-top: 10px;
}
.inventory-builder {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fafc;
}
.builder-rows {
  display: grid;
  gap: 10px;
}
.builder-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.3fr) auto auto;
  gap: 8px;
  align-items: center;
}
.variation-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(95px, 1fr)) 96px 92px 92px 82px minmax(108px, .9fr) auto;
  gap: 8px;
  align-items: center;
}
.variation-image-field {
  min-width: 0;
}
.variation-image-field input {
  max-width: 118px;
  padding-inline: 7px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.checkout-note {
  min-height: 0;
  color: var(--muted);
  font-size: 12px;
  border-radius: 12px;
  padding: 0;
}
.checkout-note:not(:empty) {
  margin-top: 12px;
  min-height: 34px;
  padding: 8px 10px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}
.checkout-note.ok { color: #16a34a; background: #ecfdf3; border-color: rgba(34,197,94,.18); }
.checkout-note.err { color: #ef4444; background: #fef2f2; border-color: rgba(239,68,68,.18); }
.barcode-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 90px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.barcode-tools .button { display: inline-grid; place-items: center; text-align: center; }
.barcode-selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.barcode-selection-bar strong {
  margin-left: auto;
  font-size: 13px;
}
.barcode-selection-bar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.barcode-table input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--mint);
}
.barcode-table tbody tr.selected td {
  background: var(--accent-soft);
}
.barcode-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}
.barcode-product-cell img,
.barcode-product-placeholder {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}
.barcode-product-placeholder {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.barcode-product-cell strong,
.barcode-product-cell small {
  display: block;
}
.barcode-product-cell strong {
  max-width: 360px;
  white-space: normal;
  line-height: 1.35;
}
.barcode-product-cell small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.barcode-variant {
  display: inline-flex;
  max-width: 220px;
  white-space: normal;
  line-height: 1.35;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 800;
}
.barcode-price {
  display: grid;
  gap: 2px;
  direction: ltr;
  text-align: left;
}
.barcode-price del {
  color: #94a3b8;
  font-family: Consolas, monospace;
  font-size: 11px;
}
.barcode-price b {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.barcode-price .discount {
  color: #dc2626;
}
.barcode-copy-input {
  width: 70px;
  min-height: 30px;
  text-align: center;
  direction: ltr;
  font-weight: 800;
}
.mono-code {
  direction: ltr;
  text-align: left;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 800;
  letter-spacing: .04em;
}
.barcode-confirm {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.42);
  backdrop-filter: blur(6px);
}
.barcode-confirm[hidden] {
  display: none;
}
.barcode-confirm-card {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(15,23,42,.24);
  padding: 26px;
  text-align: center;
  animation: riseIn .28s ease both;
}
.confirm-timer {
  position: absolute;
  top: 0;
  right: 0;
  height: 4px;
  width: 100%;
  background: var(--mint);
  animation: shrinkTimer 5s linear both;
}
.confirm-icon {
  width: 68px;
  height: 68px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}
.barcode-confirm h2 {
  margin: 0 0 4px;
  font-size: 21px;
}
.barcode-confirm p {
  margin: 0 0 16px;
  color: var(--muted);
}
.confirm-details {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--primary-soft);
}
.confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #dbe3e8;
  padding-bottom: 7px;
}
.confirm-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.confirm-details span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.confirm-details b {
  direction: ltr;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-actions .ghost {
  background: var(--primary-soft);
  color: var(--ink);
}
@keyframes shrinkTimer {
  from { width: 100%; }
  to { width: 0; }
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list span { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-dark); font-size: 12px; font-weight: 800; }
.attribute-list { display: grid; gap: 10px; }
.attribute-list div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.attribute-list strong, .attribute-list small { display: block; }
.attribute-list small { color: var(--muted); margin-top: 2px; }
tr.low-stock td { background: #fff7ed; }
.user-form label {
  font-size: 12px;
  font-weight: 800;
  color: #405062;
}
.user-form button {
  margin-top: 6px;
}
.inline-close {
  display: flex;
  gap: 6px;
  align-items: center;
}
.inline-close input {
  width: 110px;
  min-height: 28px;
  padding: 4px 7px;
}
.inline-close input.mini-input {
  width: 120px;
}
.inline-close button {
  min-height: 28px;
  padding: 4px 8px;
}
.inline-close button.ghost-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
.shifts-panel {
  grid-column: 1 / -1;
}
.shift-table-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}
.shift-table {
  min-width: 1180px;
}
.daily-shift-table {
  min-width: 1320px;
}
.shift-table th,
.shift-table td {
  white-space: nowrap;
}
.shift-table .mono {
  direction: ltr;
  text-align: right;
  font-family: "Outfit", Consolas, monospace;
}
.shift-day-cell {
  display: grid;
  gap: 4px;
  min-width: 190px;
  white-space: normal;
}
.shift-day-cell strong {
  color: var(--ink);
}
.shift-day-cell small {
  color: var(--muted);
}
.shift-day-cell b {
  color: var(--ink);
}
.duration-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--ink);
  direction: ltr;
  font-size: 12px;
}
.shift-status.open {
  color: #15803d;
  background: #dcfce7;
}
.shift-status.closed {
  color: #475569;
  background: #f1f5f9;
}
.line-chart, .bar-chart { height: 190px; border: 1px solid var(--line-soft); border-radius: 18px; background: #fff; padding: 8px; }
.line-chart svg { width: 100%; height: 100%; display: block; }
.line-chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.line-chart polyline { fill: none; stroke: var(--mint); stroke-width: 3; }
.line-chart .area { fill: rgba(15,76,129,.10); stroke: none; }
.accounting-calendar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.accounting-calendar div {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(246,250,249,.92));
}
.accounting-calendar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.accounting-calendar strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  direction: ltr;
}
.accounting-charts .wide {
  grid-column: span 2;
}
.metric-bars {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(66px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px 4px 2px;
}
.metric-bars.monthly {
  grid-template-columns: repeat(31, minmax(14px, 1fr));
  gap: 5px;
}
.metric-bars.weekly {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.metric-bars.hourly {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.metric-bars article {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 4px;
  text-align: center;
  height: 100%;
}
.metric-bars .bar-shell {
  position: relative;
  align-self: stretch;
  min-height: 110px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(2, 132, 199, .08), rgba(20, 184, 166, .10));
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, .08);
}
.metric-bars .bar-shell b {
  position: absolute;
  left: 8%;
  right: 8%;
  z-index: 2;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  opacity: .55;
  transform: translateY(1px);
}
.metric-bars .bar-shell i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--target-color, var(--mint)), var(--target-color-2, var(--blue)));
  box-shadow: 0 -10px 22px var(--target-glow, rgba(20, 184, 166, .18));
}
.metric-bars strong {
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric-bars span {
  direction: ltr;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 11px;
  color: var(--ink);
}
.metric-bars.monthly span,
.metric-bars.monthly small {
  display: none;
}
.metric-bars.monthly strong {
  min-height: 15px;
  font-size: 10px;
  color: var(--muted);
}
.metric-bars.weekly span,
.metric-bars.hourly span {
  font-size: 10px;
}
.metric-bars.weekly .bar-shell,
.metric-bars.hourly .bar-shell {
  min-height: 140px;
}
.metric-bars small {
  color: var(--muted);
  font-size: 10px;
}
.chart-target-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.chart-target-legend span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
  opacity: .55;
}
.bar-chart { display: flex; align-items: end; gap: 14px; padding: 18px; }
.bar-chart span { flex: 1; height: 100%; display: flex; align-items: end; gap: 3px; }
.bar-chart i, .bar-chart b { display: block; width: 50%; border-radius: 4px 4px 0 0; }
.bar-chart i { height: var(--h); background: var(--mint); }
.bar-chart b { height: calc(var(--h) - 12%); background: #0891b2; }
.alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.alerts li { position: relative; padding-right: 18px; font-size: 12px; color: #3e4854; }
.alerts li::before { content: ""; position: absolute; right: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.alerts .red::before { background: var(--red); }
.alerts .yellow::before { background: var(--yellow); }
.alerts .blue::before { background: var(--blue); }
.product-bars { display: grid; gap: 12px; padding: 10px 2px; }
.product-bars div { display: grid; gap: 5px; }
.product-bars span { font-size: 12px; color: #405062; }
.product-bars b { display: block; height: 18px; background: var(--mint); border-radius: 4px; }
footer { color: var(--muted); margin-top: 22px; font-size: 11px; }
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(14, 165, 233, .58), transparent 27%),
    radial-gradient(circle at 82% 16%, rgba(15, 76, 129, .38), transparent 28%),
    radial-gradient(circle at 22% 86%, rgba(34, 197, 94, .36), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(245, 158, 11, .20), transparent 24%),
    linear-gradient(135deg, #dff3fb 0%, #f7fbff 38%, #def4ea 100%);
}
.login-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-scene::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, transparent 0 24%, rgba(255,255,255,.78) 37%, transparent 52%),
    conic-gradient(from 120deg at 48% 50%, rgba(15,76,129,.28), rgba(14,165,233,.18), rgba(34,197,94,.24), rgba(255,255,255,.38), rgba(15,76,129,.28));
  filter: blur(4px);
  animation: loginAurora 4.8s ease-in-out infinite alternate;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 76, 129, .085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, .085) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 48%, #000 0 44%, transparent 78%);
  animation: gridDrift 10s linear infinite;
}
.login-sheen {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background: conic-gradient(from 80deg, rgba(255,255,255,0), rgba(255,255,255,.42), rgba(15,76,129,.10), rgba(255,255,255,0));
  filter: blur(18px);
  opacity: .95;
  animation: spinSync 9s linear infinite;
}
.login-orb {
  position: absolute;
  width: 34vmax;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .82;
  transform: translate3d(0,0,0);
}
.orb-one {
  right: 8%;
  top: 10%;
  background: rgba(15, 76, 129, .42);
  animation: floatOne 4.8s ease-in-out infinite alternate;
}
.orb-two {
  left: 10%;
  bottom: 8%;
  background: rgba(34, 197, 94, .34);
  animation: floatTwo 5.5s ease-in-out infinite alternate;
}
.orb-three {
  width: 24vmax;
  right: 38%;
  bottom: 14%;
  background: rgba(14, 165, 233, .24);
  animation: floatThree 4.5s ease-in-out infinite alternate;
}
.login-card {
  position: relative;
  z-index: 2;
  width: min(430px,100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .50);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.30), rgba(255,255,255,.11));
  box-shadow: 0 32px 95px rgba(15, 23, 42, .20), inset 0 1px 0 rgba(255,255,255,.55);
  backdrop-filter: blur(30px) saturate(1.55);
  -webkit-backdrop-filter: blur(30px) saturate(1.55);
  animation: riseIn .55s cubic-bezier(.2,.8,.2,1) both;
  transform-origin: 50% 52%;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255,255,255,.34);
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 42%);
  pointer-events: none;
}
.login-brand {
  margin: 0 0 18px;
  padding: 0;
  justify-content: center;
  text-align: right;
}
.login-brand .brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(15,23,42,.18);
}
.login-brand .brand-mark img {
  width: 34px;
  height: 34px;
}
.login-brand strong {
  font-size: 22px;
  letter-spacing: .02em;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  font-weight: 900;
}
.login-brand small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}
.login-title {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
  text-align: center;
}
.login-title span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.login-title b {
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  font-weight: 900;
}
.login-card label {
  display: block;
  margin: 12px 4px 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}
.login-card input {
  width: 100%;
  min-height: 52px;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 18px;
  background: rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 10px 25px rgba(15,23,42,.06);
}
.login-card input:focus {
  border-color: rgba(15,76,129,.42);
  background: rgba(255,255,255,.56);
  box-shadow: 0 0 0 4px rgba(15,76,129,.10), 0 14px 32px rgba(15,23,42,.08);
}
.login-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  font-family: "Outfit", "Cairo", Tahoma, Arial, sans-serif;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #0f4c81);
  box-shadow: 0 16px 34px rgba(15,76,129,.24);
  transition: transform .2s ease, opacity .2s ease, filter .2s ease;
}
.login-card button:disabled {
  cursor: wait;
  opacity: .78;
  filter: saturate(.85);
}
.login-foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--ink-soft);
  direction: ltr;
  font-size: 12px;
  font-weight: 800;
}
.login-welcoming .login-card {
  pointer-events: none;
  animation: cardCollapse .62s cubic-bezier(.2,.8,.2,1) forwards;
}
.login-welcoming .login-card::before {
  animation: glassFlash .5s ease forwards;
}
.welcome-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(.99);
  transition: opacity .42s ease .42s, transform .42s ease .42s;
}
.login-welcoming .welcome-stage {
  opacity: 1;
  transform: scale(1);
}
.welcome-glow {
  position: absolute;
  width: min(540px, 84vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.92), transparent 24%),
    radial-gradient(circle at 58% 62%, rgba(14,165,233,.32), transparent 36%),
    radial-gradient(circle at 40% 72%, rgba(34,197,94,.26), transparent 30%);
  filter: blur(22px);
  opacity: .72;
  animation: welcomeGlow 2.6s ease-in-out infinite alternate;
}
.welcome-copy {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(700px, 92vw);
  padding: 0 24px;
  text-align: center;
  overflow: hidden;
  transform: translateY(14px) scale(.98);
  opacity: 0;
}
.login-welcoming .welcome-copy {
  animation: welcomePanelIn .3s cubic-bezier(.2,.8,.2,1) .62s forwards;
}
.welcome-copy > * {
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
}
.login-welcoming .welcome-copy > * {
  animation: welcomeLine .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.welcome-copy span {
  color: var(--accent);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
}
.welcome-copy strong {
  color: var(--ink);
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}
.welcome-copy b {
  color: #0f4c81;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 900;
}
.welcome-copy small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.login-welcoming .welcome-copy span { animation-delay: .92s; }
.login-welcoming .welcome-copy strong { animation-delay: 1.92s; }
.login-welcoming .welcome-copy b { animation-delay: 2.92s; }
.login-welcoming .welcome-copy small { animation-delay: 3.72s; }
.login-welcoming .login-scene::before {
  animation-duration: 2.5s;
  filter: blur(2px) saturate(1.18);
}
.alert { background: rgba(255,241,242,.82); color: #be123c; padding: 10px; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(190,18,60,.12); }
.shift-periods { display: grid; gap: 8px; }
.shift-period-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 120px auto;
  gap: 8px;
  align-items: center;
}
.shift-period-row input[type="time"] { direction: ltr; text-align: center; }
.shift-period-row.new-period {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.security-settings-panel {
  margin-top: 18px;
}

.security-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.security-settings-grid label,
.security-settings-grid > div {
  display: grid;
  gap: 8px;
}

.security-settings-grid input[type="number"] {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.security-note {
  padding: 12px;
  border: 1px dashed #bdd7ea;
  border-radius: 16px;
  background: #f7fbff;
}

.security-note span {
  color: var(--muted);
  font-size: 12px;
}

.inline-pin-form {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.inline-pin-form input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
}

.inline-pin-form button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 900;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #405062;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.checkline input {
  width: auto;
  min-height: auto;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes glowMove {
  from { transform: translate3d(-10px,-8px,0); }
  to { transform: translate3d(10px,8px,0); }
}
@keyframes loginAurora {
  from { transform: translate3d(-4%, -2%, 0) rotate(-4deg) scale(1); }
  to { transform: translate3d(4%, 3%, 0) rotate(5deg) scale(1.05); }
}
@keyframes gridDrift {
  to { background-position: 44px 44px; }
}
@keyframes floatOne {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-7vw, 5vh, 0) scale(1.12); }
}
@keyframes floatTwo {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(7vw, -5vh, 0) scale(1.08); }
}
@keyframes floatThree {
  from { transform: translate3d(0,0,0) scale(.95); }
  to { transform: translate3d(3vw, -6vh, 0) scale(1.08); }
}
@keyframes spinSync {
  to { transform: rotate(360deg); }
}
@keyframes cardCollapse {
  0% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  45% { opacity: .78; transform: translateY(-4px) scale(.94); filter: blur(.5px); }
  100% { opacity: 0; transform: translateY(-10px) scale(.66); filter: blur(14px); }
}
@keyframes glassFlash {
  0% { opacity: 1; }
  55% { opacity: .58; box-shadow: inset 0 0 80px rgba(255,255,255,.62); }
  100% { opacity: 0; }
}
@keyframes welcomePanelIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes welcomeLine {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes welcomeGlow {
  from { transform: translate3d(-18px, -10px, 0) scale(.96); opacity: .72; }
  to { transform: translate3d(18px, 14px, 0) scale(1.06); opacity: .95; }
}
.integration-settings { display: grid; gap: 16px; }
.notice { border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 800; border: 1px solid var(--line); background: #fff; }
.notice.ok { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.notice.danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.user-form input[readonly] { color: var(--muted); background: rgba(255,255,255,.58); border-style: dashed; }
.user-form small { color: var(--muted); font-size: 11px; font-weight: 700; }
.quality-report { display: grid; gap: 18px; }
.quality-group { display: grid; gap: 12px; }
.quality-check { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); overflow: hidden; }
.quality-check summary { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.quality-check summary::-webkit-details-marker { display: none; }
.quality-check summary strong { color: var(--ink); }
.quality-check summary span, .quality-check summary b { border-radius: 999px; padding: 5px 10px; font-size: 12px; background: var(--muted-bg); }
.quality-check.ok summary span { color: #087f5b; background: #e6fcf5; }
.quality-check.warning summary span { color: #b7791f; background: #fff7db; }
.quality-check.critical summary span { color: #c92a2a; background: #ffe3e3; }
.quality-check > p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.quality-rows { display: grid; gap: 8px; padding: 0 16px 16px; }
.quality-rows article { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: 10px; }
.quality-rows span { display: inline-grid; gap: 2px; min-width: 120px; color: var(--ink); font-size: 12px; }
.quality-rows em { font-style: normal; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.approval-panel {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffaf4, #ffffff);
}
.approval-list {
  display: grid;
  gap: 10px;
}
.approval-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff;
}
.approval-list strong,
.approval-list small {
  display: block;
}
.approval-list strong {
  margin-top: 5px;
  color: var(--ink);
}
.approval-list small {
  color: var(--muted);
  font-size: 11px;
}
.approval-list b {
  direction: ltr;
  color: #c2410c;
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
}
.badge.good, .badge.ok { background: #dcfce7; color: #15803d; }
.badge.warn { background: #fff7ed; color: #c2410c; }
.badge.danger, .link.danger { background: #fee2e2; color: #b91c1c; }
button.link {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.adjustment-modal[hidden] { display: none; }
.adjustment-modal,
.adjustment-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(8px);
}
.adjustment-detail-modal[hidden] { display: none; }
.adjustment-card,
.adjustment-detail-card {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .22);
}
.adjustment-detail-card { width: min(860px, 96vw); }
.adjustment-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.adjustment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.adjustment-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}
.adjustment-tabs button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.adjustment-items {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.adjustment-line {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 92px minmax(100px, 130px) 130px 132px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--primary-soft);
}
.adjustment-line label:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.adjustment-line strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adjustment-line small {
  grid-column: 2;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}
.adjustment-line input,
.adjustment-line select,
.adjustment-card textarea,
.adjustment-card > select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 11px;
  background: #fff;
  font-family: inherit;
  font-weight: 800;
}
.adjustment-card textarea {
  resize: vertical;
  min-height: 82px;
  margin-bottom: 12px;
}
.form-label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 900;
  color: var(--ink);
}
.mini-check {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--ink-soft);
  font-weight: 800;
}
.mini-check input { width: auto; min-height: auto; }
.adjustment-note {
  padding: 16px;
  border-radius: 16px;
  background: #eff6ff;
  color: #0f4c81;
  font-weight: 900;
}
.adjustment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
}
.adjustment-summary strong {
  direction: ltr;
  font-family: "Outfit", monospace;
  font-size: 20px;
}
.adjustment-message {
  min-height: 28px;
  color: #15803d;
  font-weight: 900;
}
.adjustment-message.bad { color: #b91c1c; }
.adjustment-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--primary-soft);
  padding: 12px;
}
.detail-grid article.wide { grid-column: span 4; }
.detail-grid span,
.detail-grid strong {
  display: block;
}
.detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.detail-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}
.detail-items {
  display: grid;
  gap: 9px;
}
.detail-items article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  padding: 12px;
}
.detail-items strong,
.detail-items small {
  display: block;
}
.detail-items small {
  color: var(--muted);
  margin-top: 3px;
}
.detail-items span,
.detail-items b {
  direction: ltr;
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
}
.amendment-add-panel {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px dashed #bfd3e8;
  border-radius: 18px;
  background: #f8fbff;
}
.amendment-add-panel[hidden] { display: none; }
.amendment-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.amendment-search-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 800;
}
.amendment-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}
.amendment-search-results button {
  min-height: 64px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
}
.amendment-search-results button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.amendment-search-results strong,
.amendment-search-results small,
.amendment-new-line strong,
.amendment-new-line small {
  display: block;
}
.amendment-search-results small,
.amendment-new-line small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.amendment-new-items {
  display: grid;
  gap: 8px;
}
.amendment-new-line {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 80px 110px 110px auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.amendment-new-line input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 9px;
  font-family: inherit;
  font-weight: 800;
}
@media (max-width: 980px) {
  body { overflow-x: hidden; }
  body.dashboard-menu-open { overflow: hidden; }
  .shell {
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow: visible;
    box-shadow: none;
  }
  .dashboard-menu-button {
    position: fixed;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 95;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
    backdrop-filter: blur(12px);
  }
  .dashboard-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, opacity .22s ease;
  }
  body.dashboard-menu-open .dashboard-menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.dashboard-menu-open .dashboard-menu-button span:nth-child(2) { opacity: 0; }
  body.dashboard-menu-open .dashboard-menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .dashboard-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(15,23,42,.30);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  body.dashboard-menu-open .dashboard-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(86vw, 320px);
    height: auto;
    z-index: 90;
    display: flex;
    padding: 68px 0 20px;
    overflow-y: auto;
    border: 0;
    box-shadow: 0 28px 90px rgba(15,23,42,.24);
    transform: translateX(var(--sidebar-closed-transform));
    transition: transform .25s ease;
    will-change: transform;
  }
  html[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    --sidebar-closed-transform: 105%;
  }
  html[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    --sidebar-closed-transform: -105%;
  }
  body.dashboard-menu-open .sidebar { transform: translateX(0); }
  .brand { padding: 0 22px 18px; }
  nav small { padding: 14px 22px 5px; }
  nav a { min-height: 40px; padding: 8px 22px; font-size: 14px; }
  .sidebar-foot { margin: 18px 20px 0; }
  .main {
    padding: 72px 12px 24px;
    overflow: visible;
    min-height: 100vh;
  }
  .topbar, .dash-actions { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .topbar {
    gap: 10px;
    margin-bottom: 14px;
  }
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 44px 44px;
    gap: 8px;
  }
  .topbar-search { order: -1; width: 100%; }
  .language-switcher,
  .woo-sync-button,
  .topbar-icon-button,
  .status-pill { min-height: 42px; border-radius: 13px; }
  .topbar-actions { justify-content: stretch; }
  .woo-sync-button { flex: 1; }
  .pos-offline-alert {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 16px;
  }
  .pos-offline-list { grid-template-columns: 1fr; }
  .cards, .analytics-grid, .grid.two, .smart-kpis, .insight-list, .target-grid, .forecast-widget, .forecast-meta, .segment-grid, .weekday-bars article, .daily-summary, .accounting-calendar, .fixed-expenses-grid { grid-template-columns: 1fr; }
  .accounting-charts .wide { grid-column: auto; }
  .metric-bars { height: 220px; }
  .shift-period-row { grid-template-columns: 1fr; }
  .security-settings-grid { grid-template-columns: 1fr; }
  .barcode-tools { grid-template-columns: 1fr; }
  .inventory-toolbar,
  .inventory-bulk-panel,
  .inventory-price-control,
  .product-image-picker,
  .product-form-grid,
  .builder-row,
  .variation-row { grid-template-columns: 1fr; }
  .adjustment-line { grid-template-columns: 1fr; }
  .amendment-search-row,
  .amendment-new-line,
  .detail-grid,
  .detail-items article { grid-template-columns: 1fr; }
  .detail-grid article.wide { grid-column: auto; }
  .adjustment-actions { flex-direction: column; }
}
