:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f9fbff;
  --text: #102033;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #ff7a18;
  --brand-2: #ffb703;
  --brand-3: #eab308;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #16a34a;
  --info: #f97316;
  --shadow: 0 20px 45px rgba(15, 23, 42, .08);
  --radius: 20px;
  --sidebar: #0f172a;
  --sidebar-soft: #1e293b;
  --sidebar-text: #e5e7eb;
  --input: #ffffff;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: #263449;
  --shadow: 0 22px 55px rgba(0, 0, 0, .35);
  --sidebar: #050816;
  --sidebar-soft: #121a2d;
  --input: #0f172a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, .16), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }

button { cursor: pointer; }

.hidden { display: none !important; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  padding: 42px;
  align-items: center;
}

.login-hero {
  min-height: calc(100vh - 84px);
  border-radius: 36px;
  padding: 44px;
  background:
    linear-gradient(135deg, #050505 0%, #111111 62%, #1b1b1b 100%),
    radial-gradient(circle at top right, rgba(255,183,3,.24), transparent 26%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.login-hero::after {
  content: "✦";
  position: absolute;
  right: -20px;
  top: 18%;
  font-size: 270px;
  color: rgba(255,255,255,.06);
  transform: rotate(18deg);
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
  letter-spacing: .2px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(255, 122, 24, .35);
}

.login-hero h1 {
  max-width: 740px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: .88;
  margin: 56px 0 20px;
  letter-spacing: -4px;
}

.login-hero p {
  max-width: 680px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.7;
}

.feature-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 700;
}

.login-card {
  width: min(100%, 470px);
  justify-self: center;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(24px);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .login-card {
  background: rgba(17,24,39,.72);
  border-color: rgba(148,163,184,.15);
}

.login-card h2 { margin: 0 0 8px; font-size: 31px; letter-spacing: -1px; }
.login-card .muted { margin: 0 0 28px; }

.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 800; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border .2s, box-shadow .2s, transform .2s;
}

textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(255,122,24,.65);
  box-shadow: 0 0 0 4px rgba(255,122,24,.14);
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 850;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s, box-shadow .2s, background .2s, border .2s;
  min-height: 42px;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(15,23,42,.08); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border-color: transparent; box-shadow: 0 14px 28px rgba(255,122,24,.24); }
.btn-dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-danger { background: rgba(239,68,68,.1); color: var(--danger); border-color: rgba(239,68,68,.25); }
.btn-success { background: rgba(22,163,74,.1); color: var(--success); border-color: rgba(22,163,74,.22); }
.btn-warning { background: rgba(245,158,11,.1); color: var(--warning); border-color: rgba(245,158,11,.25); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 34px; padding: 8px 10px; border-radius: 11px; font-size: 12px; }
.btn-full { width: 100%; }

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255,122,24,.13), transparent 28%),
    var(--sidebar);
  color: var(--sidebar-text);
  padding: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.08);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 22px;
}

.sidebar-title { font-weight: 900; font-size: 18px; letter-spacing: -.4px; }
.sidebar-subtitle { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.nav-section-title {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 20px 10px 8px;
}

.nav-list { display: grid; gap: 6px; }
.nav-btn {
  width: 100%;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid transparent;
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-weight: 800;
}
.nav-btn:hover { background: rgba(255,255,255,.06); color: white; }
.nav-btn.active {
  background: linear-gradient(135deg, rgba(255,122,24,.25), rgba(255,183,3,.18));
  color: white;
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.nav-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); }
.sidebar-footer {
  margin-top: 24px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}

.user-card { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: white;
  font-weight: 900;
}
.user-meta strong { display: block; font-size: 14px; }
.user-meta span { color: #94a3b8; font-size: 12px; }

.main {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.topbar h1 { margin: 0; font-size: 31px; letter-spacing: -1.2px; }
.topbar p { margin: 5px 0 0; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.mobile-menu { display: none; }

.grid { display: grid; gap: 18px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { grid-template-columns: 1.15fr .85fr; align-items: start; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(226,232,240,.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
[data-theme="dark"] .card { background: rgba(17,24,39,.83); border-color: rgba(148,163,184,.16); }
.card-pad { padding: 20px; }
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.card-title { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.35px; }
.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.kpi {
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.64));
  border: 1px solid rgba(226,232,240,.82);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .kpi { background: rgba(17,24,39,.8); border-color: rgba(148,163,184,.16); }
.kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -26px;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: rgba(255,122,24,.11);
}
.kpi-icon { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,122,24,.13); font-size: 20px; }
.kpi-label { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.kpi-value { font-size: 32px; font-weight: 950; letter-spacing: -1.5px; margin-top: 3px; }
.kpi-help { color: var(--muted); font-size: 12px; margin-top: 4px; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.toolbar-left, .toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 170px; }
.search-input { min-width: 270px !important; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--panel-2);
  user-select: none;
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--brand); }
tr:hover td { background: rgba(255,122,24,.035); }

.product-cell { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.product-emoji {
  width: 42px; height: 42px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,122,24,.18), rgba(245,158,11,.11));
  border: 1px solid var(--line);
  font-size: 21px;
}
.product-name { font-weight: 900; }
.product-sku { color: var(--muted); font-size: 12px; margin-top: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}
.badge.ok { color: var(--success); background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.16); }
.badge.warn { color: var(--warning); background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.18); }
.badge.danger { color: var(--danger); background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.16); }
.badge.info { color: var(--info); background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.16); }
.badge.neutral { color: var(--muted); background: var(--panel-2); border-color: var(--line); }

.progress-shell {
  height: 9px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
  border: 1px solid var(--line);
  min-width: 110px;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.progress-bar.warn { background: linear-gradient(90deg, var(--warning), #fde68a); }
.progress-bar.danger { background: linear-gradient(90deg, var(--danger), #fb7185); }

.action-row { display: flex; gap: 7px; align-items: center; flex-wrap: nowrap; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 16px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
  display: grid;
  gap: 13px;
}
.product-card-top { display: flex; gap: 13px; align-items: flex-start; justify-content: space-between; }
.product-card h3 { margin: 0; font-size: 17px; }
.product-card-meta { color: var(--muted); font-size: 12px; display: grid; gap: 6px; }

.alert-list { display: grid; gap: 12px; }
.alert-item {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.alert-item strong { display: block; }
.alert-item span { color: var(--muted); font-size: 12px; }

.chart-box { height: 270px; display: grid; place-items: center; padding: 18px; }
.chart-box canvas { width: 100%; max-width: 100%; height: 240px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.58);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(980px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--panel);
  color: var(--text);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
  border: 1px solid var(--line);
}
.modal.small { width: min(560px, 100%); }
.modal-header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.modal-header h2 { margin: 0; letter-spacing: -.6px; }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-columns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.empty-state {
  padding: 50px 22px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 40px; margin-bottom: 10px; }

.report-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.summary-tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 15px; }
.summary-tile strong { display: block; font-size: 23px; letter-spacing: -.5px; }
.summary-tile span { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.warning-box {
  border-radius: 18px;
  padding: 16px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.22);
  color: var(--text);
}
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.bold { font-weight: 900; }

#toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 100;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 17px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toastIn .25s ease-out;
}
.toast-icon { font-size: 18px; }
.toast strong { display: block; font-size: 14px; }
.toast span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 1120px) {
  .login-page { grid-template-columns: 1fr; padding: 22px; }
  .login-hero { min-height: auto; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 40;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-menu { display: inline-flex; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col, .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .kpi-grid, .three-col, .report-summary { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar-left, .toolbar-right, .toolbar input, .toolbar select, .search-input { width: 100% !important; min-width: 0 !important; }
  .form-columns, .form-columns.three { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .login-hero h1 { letter-spacing: -2px; }
  .login-card { padding: 24px; }
}

@media print {
  .sidebar, .topbar-actions, .toolbar, .btn, .mobile-menu { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}


.sales-terminal {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, .22);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(59, 7, 100, .16);
}
.sales-header {
  min-height: 84px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #050505 0%, #111111 60%, #1c140c 100%);
  color: #fff;
}
.sales-title {
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.9px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sales-title span { font-size: 32px; }
.sales-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.sales-header-btn {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(15,23,42,.18);
}
.sales-header-btn.light { background: #f5f5f5; color: #111111; }
.sales-header-btn.dark { background: rgba(15, 23, 42, .28); color: #fff; }
.sales-header-btn.warn { background: linear-gradient(135deg, #ffb703, #fb8500); color: #fff; }
.sales-header-btn.danger { background: linear-gradient(135deg, #ff5a5f, #ef4444); color: #fff; }
.sales-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  min-height: 720px;
  background: #fff;
}
[data-theme="dark"] .sales-body { background: var(--panel); }
.sales-catalog { padding: 28px 32px 26px; border-right: 1px solid var(--line); }
.sales-search-wrap {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--input);
  color: var(--muted);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
}
.sales-search-wrap input { border: 0; box-shadow: none; padding: 0; border-radius: 0; min-height: auto; }
.sales-search-wrap input:focus { border: 0; box-shadow: none; }
.sales-category-row {
  margin-top: 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sales-category-pill {
  min-width: 92px;
  min-height: 45px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.sales-category-pill.active {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(79, 70, 229, .28);
}
.sales-product-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
}
.sales-product-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px 14px;
  color: var(--text);
  text-align: center;
}
.sales-product-card:hover { transform: translateY(-2px); border-color: rgba(249,115,22,.38); box-shadow: 0 16px 35px rgba(15,23,42,.1); }
.sales-product-emoji {
  min-height: 82px;
  display: grid;
  place-items: center;
  font-size: 58px;
  filter: drop-shadow(0 8px 8px rgba(15,23,42,.12));
}
.sales-product-card strong { font-size: 16px; line-height: 1.15; }
.sales-price { color: var(--brand); font-weight: 950; font-size: 22px; line-height: 1; }
.sales-stock { color: var(--muted); font-size: 13px; }
.sales-order-panel {
  padding: 32px 28px;
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sales-order-panel h2 { margin: 0; font-size: 28px; letter-spacing: -.8px; }
.sales-order-panel select { height: 48px; background: var(--input); }
.sales-cart-list { display: grid; gap: 12px; min-height: 310px; align-content: start; }
.sales-cart-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 36px 28px 36px 36px;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}
.sales-cart-emoji { font-size: 32px; text-align: center; }
.sales-cart-meta { display: grid; gap: 4px; min-width: 0; }
.sales-cart-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sales-cart-meta span { color: var(--muted); font-size: 13px; }
.cart-btn, .cart-delete {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
}
.cart-btn { background: linear-gradient(135deg, #f97316, #f59e0b); }
.cart-delete { background: linear-gradient(135deg, #ff5a5f, #ef4444); font-size: 14px; }
.cart-qty { text-align: center; font-size: 18px; }
.sales-empty-cart {
  border: 1px dashed var(--line);
  border-radius: 16px;
  min-height: 190px;
  color: var(--muted);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
}
.sales-empty-cart strong { color: var(--text); }
.sales-summary-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
}
.sales-summary-box div { display: flex; justify-content: space-between; gap: 14px; }
.sales-summary-box hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 2px 0; }
.sales-total { font-size: 27px; font-weight: 950; letter-spacing: -.8px; }
.sales-checkout {
  min-height: 62px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(5, 150, 105, .24);
}
.sales-compliance-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 1320px) {
  .sales-body { grid-template-columns: 1fr; }
  .sales-catalog { border-right: 0; border-bottom: 1px solid var(--line); }
  .sales-order-panel { min-height: auto; }
}
@media (max-width: 760px) {
  .sales-header { align-items: flex-start; flex-direction: column; padding: 18px; }
  .sales-actions { justify-content: stretch; width: 100%; }
  .sales-header-btn { flex: 1 1 140px; }
  .sales-catalog, .sales-order-panel { padding: 18px; }
  .sales-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sales-product-card { min-height: 180px; }
  .sales-cart-item { grid-template-columns: 42px minmax(0, 1fr) 32px 24px 32px 32px; gap: 8px; padding: 12px; }
}


.db-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
}
.db-status.ok {
  background: rgba(22, 163, 74, .12);
  border-color: rgba(22, 163, 74, .28);
  color: #15803d;
}
.db-status.danger {
  background: rgba(239, 68, 68, .10);
  border-color: rgba(239, 68, 68, .25);
  color: #b91c1c;
}
.db-status.local {
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .22);
  color: #1d4ed8;
}
.quick-product-modal {
  max-width: 860px;
}
.modal-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.quick-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quick-product-grid .span-2 {
  grid-column: span 2;
}
.advanced-details {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  overflow: hidden;
}
.advanced-details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--text);
}
.advanced-details summary::-webkit-details-marker {
  display: none;
}
.advanced-details summary::after {
  content: '＋';
  float: right;
  color: var(--muted);
}
.advanced-details[open] summary::after {
  content: '－';
}
.advanced-grid {
  padding: 0 16px 16px;
}
.warning-box.compact {
  margin-top: 14px;
  padding: 12px 14px;
}
@media (max-width: 720px) {
  .quick-product-grid {
    grid-template-columns: 1fr;
  }
  .quick-product-grid .span-2 {
    grid-column: span 1;
  }
}


[data-theme="dark"] {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --line: #333333;
  --brand: #f97316;
  --brand-2: #f59e0b;
  --brand-3: #eab308;
  --danger: #ff4d4f;
  --warning: #fbbf24;
  --success: #22c55e;
  --info: #f97316;
  --shadow: 0 22px 55px rgba(0, 0, 0, .65);
  --sidebar: #000000;
  --sidebar-soft: #111111;
  --sidebar-text: #f5f5f5;
  --input: #050505;
}

[data-theme="dark"] body,
body:has([data-theme="dark"]) {
  background: #050505;
}

[data-theme="dark"] .login-hero {
  background: linear-gradient(135deg, #000 0%, #111 62%, #1a1a1a 100%);
  border: 1px solid #2f2f2f;
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(249, 115, 22, .16), transparent 26%), #000;
  border-right: 1px solid #2a2a2a;
}

[data-theme="dark"] .nav-btn.active,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .logo-mark {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  border-color: transparent;
}

[data-theme="dark"] .card,
[data-theme="dark"] .kpi,
[data-theme="dark"] .modal,
[data-theme="dark"] .login-card,
[data-theme="dark"] .sales-terminal,
[data-theme="dark"] .sales-product-card,
[data-theme="dark"] .sales-cart-item,
[data-theme="dark"] .sales-summary-box {
  background: #101010;
  border-color: #333;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .sales-search-wrap {
  background: #050505;
  border-color: #3a3a3a;
  color: #f5f5f5;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .18);
}

[data-theme="dark"] .sales-terminal {
  border-color: #333;
  box-shadow: 0 28px 80px rgba(0,0,0,.7);
}

[data-theme="dark"] .sales-header {
  background: linear-gradient(135deg, #000 0%, #111 58%, #1c1c1c 100%);
  border-bottom: 1px solid #333;
}

[data-theme="dark"] .sales-header-btn.light {
  background: #f5f5f5;
  color: #111;
}

[data-theme="dark"] .sales-header-btn.dark {
  background: #252525;
  color: #fff;
  border: 1px solid #444;
}

[data-theme="dark"] .sales-body,
[data-theme="dark"] .sales-order-panel {
  background: #050505;
}

[data-theme="dark"] .sales-category-pill.active,
[data-theme="dark"] .cart-btn {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, .22);
}

[data-theme="dark"] .sales-price,
[data-theme="dark"] .sales-total,
[data-theme="dark"] .card-title,
[data-theme="dark"] .kpi-value {
  color: #fbbf24;
}

[data-theme="dark"] table th {
  background: #050505;
  color: #f5f5f5;
}

[data-theme="dark"] tr:hover td {
  background: #181818;
}

.simple-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}



.product-media-img,
.product-emoji.product-media-img,
.sales-product-emoji.product-media-img,
.sales-cart-emoji.product-media-img,
.product-detail-media.product-media-img {
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.product-emoji.product-media-img { display: block; width: 42px; height: 42px; padding: 0; font-size: 0; }
.sales-product-emoji.product-media-img { display: block; width: 96px; height: 82px; min-height: 82px; margin: 0 auto; border-radius: 18px; padding: 0; font-size: 0; filter: none; }
.sales-cart-emoji.product-media-img { display: block; width: 48px; height: 48px; border-radius: 14px; padding: 0; font-size: 0; }
.visual-field { align-self: stretch; }
.visual-picker { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-2); }
.product-media-preview { min-height: 112px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); background: var(--panel); }
.product-media-preview span { font-size: 48px; }
.product-media-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-controls { display: grid; gap: 10px; }
.visual-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.visual-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.field-help { display: block; color: var(--muted); margin-top: 8px; font-size: 12px; font-weight: 700; }
.product-detail-header { align-items: center; }
.product-detail-title { display: flex; align-items: center; gap: 14px; }
.product-detail-media { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-size: 36px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.product-detail-media.product-media-img { width: 70px; height: 70px; display: block; padding: 0; font-size: 0; }
.db-help { margin-top: 6px; max-width: 720px; color: var(--danger); font-size: 12px; font-weight: 750; line-height: 1.35; }
[data-theme="dark"] .db-help { color: #ff9a9a; }
[data-theme="dark"] .db-status.danger { background: rgba(255,77,79,.15); border-color: rgba(255,77,79,.45); color: #ff9a9a; }
[data-theme="dark"] .visual-picker,
[data-theme="dark"] .product-media-preview { background: #050505; border-color: #333; }
@media (max-width: 720px) { .visual-picker { grid-template-columns: 1fr; } .visual-row { grid-template-columns: 1fr; } }


.sales-terminal {
  border-color: rgba(249, 115, 22, .32);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.sales-header,
.sales-header.sales-header-compact {
  min-height: 68px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #050505 0%, #111 70%, #1c140c 100%);
  border-bottom: 1px solid #30251d;
}
.sales-title { font-size: clamp(22px, 2vw, 30px); }
.sales-title span { font-size: 30px; }
.sales-header-btn { min-height: 42px; padding: 10px 14px; border-radius: 10px; }
.sales-header-btn.light { background: #f5f5f5; color: #111; }
.sales-header-btn.dark { background: #222; color: #fff; border: 1px solid #3a3a3a; }
.sales-header-btn.warn { background: linear-gradient(135deg, #f97316, #f59e0b); color: #fff; }
.sales-header-btn.danger { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; }
.sales-body { min-height: 620px; }
.sales-catalog { padding: 22px 24px; }
.sales-category-row { margin-top: 14px; gap: 10px; }
.sales-category-pill { min-height: 38px; min-width: auto; padding: 8px 14px; border-radius: 999px; }
.sales-category-pill.active {
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, .22);
}
.sales-product-grid { margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
.sales-product-card { min-height: 166px; padding: 14px 10px; gap: 7px; border-radius: 14px; }
.sales-product-emoji { min-height: 56px; font-size: 44px; }
.sales-product-card strong { font-size: 14px; }
.sales-price { color: #f97316; font-size: 19px; }
.sales-stock { display: none; }
.sales-stock.low {
  display: inline-flex;
  color: #fef3c7;
  background: rgba(245, 158, 11, .22);
  border: 1px solid rgba(245, 158, 11, .42);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
}
.sales-order-panel.sales-order-compact { padding: 22px; gap: 12px; }
.sales-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sales-order-panel h2 { font-size: 24px; }
.sales-mini-link {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 9px;
  font-weight: 900;
}
.sales-optional {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 10px 12px;
}
.sales-optional summary { cursor: pointer; color: var(--muted); font-weight: 900; }
.sales-optional label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.sales-cart-list { min-height: 230px; gap: 9px; }
.sales-cart-item { padding: 10px; grid-template-columns: 42px minmax(0, 1fr) 32px 24px 32px 32px; }
.sales-cart-emoji { font-size: 28px; }
.cart-btn, .cart-delete { width: 32px; height: 32px; }
.cart-btn { background: linear-gradient(135deg, #f97316, #f59e0b); }
.sales-summary-box { padding: 16px; gap: 9px; }
.sales-total { font-size: 24px; color: #f97316; }
.sales-checkout { min-height: 56px; font-size: 22px; }
.sales-compliance-note { display: none; }
.sales-product-emoji.product-media-img { width: 72px; height: 58px; min-height: 58px; border-radius: 14px; }
.sales-cart-emoji.product-media-img { width: 42px; height: 42px; }
.diagnostic-list { display: grid; gap: 10px; }
.diagnostic-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.diagnostic-row span, .diagnostic-row small { color: var(--muted); }
.diagnostic-row.ok { border-color: rgba(34,197,94,.36); background: rgba(34,197,94,.08); }
.diagnostic-row.warn { border-color: rgba(245,158,11,.42); background: rgba(245,158,11,.10); }
.diagnostic-row.danger { border-color: rgba(239,68,68,.44); background: rgba(239,68,68,.10); }
.loading-line { padding: 18px; color: var(--muted); }
[data-theme="dark"] .sales-terminal,
[data-theme="dark"] .sales-product-card,
[data-theme="dark"] .sales-cart-item,
[data-theme="dark"] .sales-summary-box,
[data-theme="dark"] .sales-optional,
[data-theme="dark"] .sales-mini-link {
  background: #101010;
  border-color: #333;
}
[data-theme="dark"] .sales-body,
[data-theme="dark"] .sales-order-panel { background: #050505; }
[data-theme="dark"] .sales-price,
[data-theme="dark"] .sales-total { color: #fb923c; }


.clean-login-page {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
  background: radial-gradient(circle at top, rgba(249,115,22,.14), transparent 28%), #050505;
}
.clean-login-hero {
  display: none;
}
.clean-login-card {
  background: #101010;
  border: 1px solid #2b2b2b;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.clean-login-card h2 {
  color: #f5f5f5;
}
.sales-only-main {
  min-height: 100vh;
  padding: 24px;
  background: #050505;
}
.sales-clean-topbar {
  margin-bottom: 18px;
  border: 1px solid #272727;
  background: #101010;
  border-radius: 22px;
}
.sales-clean-topbar h1 {
  color: #f5f5f5;
}
.sales-clean-topbar p {
  color: #b5b5b5;
}
.sales-terminal-clean {
  min-height: calc(100vh - 132px);
}
.sales-terminal-clean .sales-header {
  background: linear-gradient(135deg, #050505 0%, #111111 70%, #1c140c 100%);
  border-bottom: 1px solid #30251d;
}
.sales-terminal-clean .sales-title {
  font-size: 26px;
}
.sales-terminal-clean .sales-product-card {
  min-height: 158px;
  align-content: center;
}
.sales-terminal-clean .sales-product-card strong {
  font-size: 16px;
}
.sales-terminal-clean .sales-product-card .sales-price {
  font-size: 22px;
  margin-top: 2px;
}
.sales-summary-simple {
  padding: 20px;
}
.sales-summary-simple .sales-total {
  border: 0;
  padding: 0;
}
.sales-summary-simple .sales-total strong {
  font-size: 34px;
}
.sales-terminal-clean .sales-checkout {
  font-size: 21px;
  min-height: 64px;
}
.sales-terminal-clean .sales-order-head {
  margin-bottom: 14px;
}
.sales-terminal-clean .sales-cart-meta span {
  color: #f97316;
  font-weight: 800;
}
.sales-terminal-clean .sales-empty-cart span,
.sales-terminal-clean .empty-state p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .sales-only-main { padding: 12px; }
  .sales-clean-topbar { flex-direction: column; align-items: stretch; }
}
.camp-login-page {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(249,115,22,.12), transparent 30%), #050505;
}
.camp-login-page::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38vh;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  z-index: 1;
}
.camp-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.camp-sky .star-static {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}
@keyframes twinkle {
  0% { opacity: .25; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1.15); }
}
.camp-sky .firework {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: explode 3.2s infinite ease-out;
  opacity: 0;
}
@keyframes explode {
  0% { transform: translateY(50vh); opacity: 0; box-shadow: 0 0 0 var(--c); }
  30% { transform: translateY(0); opacity: 1; box-shadow: 0 0 0 var(--c); }
  42% { opacity: 1; box-shadow: -40px -40px 0 0 var(--c), 40px -40px 0 0 var(--c), -40px 40px 0 0 var(--c), 40px 40px 0 0 var(--c), 0 -55px 0 0 var(--c), 0 55px 0 0 var(--c), -55px 0 0 0 var(--c), 55px 0 0 0 var(--c); }
  100% { opacity: 0; box-shadow: -80px -80px 0 -2px var(--c), 80px -80px 0 -2px var(--c), -80px 80px 0 -2px var(--c), 80px 80px 0 -2px var(--c), 0 -100px 0 -2px var(--c), 0 100px 0 -2px var(--c), -100px 0 0 -2px var(--c), 100px 0 0 -2px var(--c); }
}
.camp-login-card {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(90vw, 390px);
  padding: 34px;
  background: rgba(13, 13, 13, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 26px 80px rgba(0,0,0,.6);
}
.camp-login-card .muted { margin-bottom: 24px; }
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #f5f5f5;
  background: rgba(255,255,255,.05);
}
.login-brand span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316, #facc15);
}
.camp-scene-wrapper {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  transform: translateX(-50%) scale(1.18);
  transform-origin: bottom center;
  width: 400px;
  height: 300px;
  z-index: 2;
  pointer-events: none;
}
@keyframes hotPan { 0%, 90% { background-color: #74667e; } 50%, 75% { background-color: #b2241c; } }
@keyframes heat { 0%, 90% { box-shadow: inset 0 0 0 0 rgba(255,255,255,.3); } 50%, 75% { box-shadow: inset 0 -2px 0 0 #fff; } }
@keyframes smoke { 0%, 50%, 90%, 100% { opacity: 0; } 50%, 75% { opacity: .7; } }
@keyframes fire { 0%, 90%, 100% { opacity: .8; } 50%, 75% { opacity: 1; } }
@keyframes treeShake { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes fireParticles { 0% { height: 30%; opacity: 1; top: 75%; } 50% { height: 15%; opacity: .6; top: 20%; } 100% { height: 5%; opacity: 0; top: 0; } }
@keyframes fireLines { 0%, 100% { bottom: 0; } 50% { bottom: 5%; } }
.camp-login-page .scene { display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 100%; position: relative; }
.camp-login-page .forest { display: flex; width: 75%; height: 90%; position: relative; }
.camp-login-page .tree { display: block; width: 50%; position: absolute; bottom: 0; opacity: .42; filter: brightness(.48); }
.camp-login-page .tree .branch { width: 80%; height: 0; margin: 0 auto; padding-left: 40%; padding-bottom: 50%; overflow: hidden; }
.camp-login-page .tree .branch:before { content: ""; display: block; width: 0; height: 0; margin-left: -600px; border-left: 600px solid transparent; border-right: 600px solid transparent; border-bottom: 950px solid #000; }
.camp-login-page .tree .branch.branch-top { transform-origin: 50% 100%; animation: treeShake 3s linear infinite; }
.camp-login-page .tree .branch.branch-middle { width: 90%; padding-left: 45%; padding-bottom: 65%; margin: -25% auto 0; }
.camp-login-page .tree .branch.branch-bottom { width: 100%; padding-left: 50%; padding-bottom: 80%; margin: -40% auto 0; }
.camp-login-page .tree1 { width: 31%; }
.camp-login-page .tree2 { width: 39%; left: 9%; }
.camp-login-page .tree3 { width: 32%; left: 24%; }
.camp-login-page .tree4 { width: 37%; left: 34%; }
.camp-login-page .tree5 { width: 44%; left: 44%; }
.camp-login-page .tree6 { width: 34%; left: 61%; }
.camp-login-page .tree7 { width: 24%; left: 76%; }
.camp-login-page .tent { width: 58%; height: 25%; position: absolute; bottom: 1.5%; right: 19%; z-index: 1; text-align: right; }
.camp-login-page .roof { display: inline-block; width: 45%; height: 100%; margin-right: 10%; position: relative; z-index: 1; border-top: 4px solid #1f1b22; border-right: 4px solid #1f1b22; border-left: 4px solid #1f1b22; border-top-right-radius: 6px; transform: skew(30deg); background: #f6d484; filter: brightness(.82); }
.camp-login-page .roof:before { content: ""; width: 70%; height: 70%; position: absolute; top: 15%; left: 15%; z-index: 0; border-radius: 10%; background-color: #E78C20; }
.camp-login-page .roof:after { content: ""; height: 75%; width: 100%; position: absolute; bottom: 0; right: 0; z-index: 1; background: linear-gradient(to bottom, rgba(231,140,32,.4) 0%, rgba(231,140,32,.4) 64%, rgba(231,140,32,.8) 65%, rgba(231,140,32,.8) 100%); }
.camp-login-page .roof-border-left { display: flex; justify-content: space-between; flex-direction: column; width: 1%; height: 125%; position: absolute; top: 0; left: 35.7%; z-index: 1; transform-origin: 50% 0%; transform: rotate(35deg); }
.camp-login-page .roof-border-left .roof-border { display: block; width: 100%; border-radius: 2px; border: 2px solid #1f1b22; }
.camp-login-page .roof-border-left .roof-border1 { height: 40%; }
.camp-login-page .roof-border-left .roof-border2 { height: 10%; }
.camp-login-page .roof-border-left .roof-border3 { height: 40%; }
.camp-login-page .door { width: 55px; height: 92px; position: absolute; bottom: 2%; overflow: hidden; z-index: 0; transform-origin: 0 105%; filter: brightness(.82); }
.camp-login-page .left-door { transform: rotate(35deg); position: absolute; left: 13.5%; bottom: -3%; z-index: 0; }
.camp-login-page .left-door .left-door-inner { width: 100%; height: 100%; transform-origin: 0 105%; transform: rotate(-35deg); position: absolute; top: 0; overflow: hidden; background-color: #EDDDC2; }
.camp-login-page .left-door .left-door-inner:before { content: ""; width: 15%; height: 100%; position: absolute; top: 0; right: 0; background: repeating-linear-gradient(#D4BC8B, #D4BC8B 4%, #E0D2A8 5%, #E0D2A8 10%); }
.camp-login-page .left-door .left-door-inner:after { content: ""; width: 50%; height: 100%; position: absolute; top: 15%; left: 10%; transform: rotate(25deg); background-color: #fff; }
.camp-login-page .right-door { height: 89px; right: 21%; transform-origin: 0 105%; transform: rotate(-30deg) scaleX(-1); position: absolute; bottom: -3%; z-index: 0; }
.camp-login-page .right-door .right-door-inner { width: 100%; height: 100%; transform-origin: 0 120%; transform: rotate(-30deg); position: absolute; bottom: 0; overflow: hidden; background-color: #EFE7CF; }
.camp-login-page .right-door .right-door-inner:before { content: ""; width: 50%; height: 100%; position: absolute; top: 15%; right: -28%; z-index: 1; transform: rotate(15deg); background-color: #524A5A; }
.camp-login-page .right-door .right-door-inner:after { content: ""; width: 50%; height: 100%; position: absolute; top: 15%; right: -20%; transform: rotate(20deg); background-color: #fff; }
.camp-login-page .floor { width: 80%; position: absolute; right: 10%; bottom: 0; z-index: 1; }
.camp-login-page .floor .ground { position: absolute; border-radius: 2px; border: 2px solid #1f1b22; }
.camp-login-page .floor .ground.ground1 { width: 65%; left: 0; }
.camp-login-page .floor .ground.ground2 { width: 30%; right: 0; }
.camp-login-page .fireplace { display: block; width: 24%; height: 20%; position: absolute; left: 5%; bottom: 3%; }
.camp-login-page .fireplace:before { content: ""; display: block; width: 8%; position: absolute; bottom: -4px; left: 2%; border-radius: 2px; border: 2px solid #1f1b22; background: #1f1b22; }
.camp-login-page .fireplace .support { display: block; height: 105%; width: 2px; position: absolute; bottom: -5%; left: 10%; border: 2px solid #1f1b22; }
.camp-login-page .fireplace .support:before { content: ""; width: 100%; height: 15%; position: absolute; top: -18%; left: -4px; border-radius: 2px; border: 2px solid #1f1b22; transform-origin: 100% 100%; transform: rotate(45deg); }
.camp-login-page .fireplace .support:after { content: ""; width: 100%; height: 15%; position: absolute; top: -18%; left: 0; border-radius: 2px; border: 2px solid #1f1b22; transform-origin: 0 100%; transform: rotate(-45deg); }
.camp-login-page .fireplace .support:nth-child(1) { left: 85%; }
.camp-login-page .fireplace .bar { width: 100%; height: 2px; border-radius: 2px; border: 2px solid #1f1b22; }
.camp-login-page .fireplace .hanger { display: block; width: 2px; height: 25%; margin-left: -4px; position: absolute; left: 50%; border: 2px solid #1f1b22; }
.camp-login-page .fireplace .pan { display: block; width: 25%; height: 50%; border-radius: 50%; border: 4px solid #1f1b22; position: absolute; top: 25%; left: 35%; overflow: hidden; animation: heat 5s linear infinite; }
.camp-login-page .fireplace .pan:before { content: ""; display: block; height: 53%; width: 100%; position: absolute; bottom: 0; z-index: -1; border-top: 4px solid #1f1b22; background-color: #74667e; animation: hotPan 5s linear infinite; }
.camp-login-page .fireplace .smoke { display: block; width: 20%; height: 25%; position: absolute; top: 25%; left: 37%; background-color: #fff; filter: blur(5px); animation: smoke 5s linear infinite; }
.camp-login-page .fireplace .fire { display: block; width: 25%; height: 120%; position: absolute; bottom: 0; left: 33%; z-index: 1; animation: fire 2s linear infinite; }
.camp-login-page .fireplace .fire:before { content: ""; display: block; width: 100%; height: 2px; position: absolute; bottom: -4px; z-index: 1; border-radius: 2px; border: 1px solid #efb54a; background-color: #efb54a; }
.camp-login-page .fireplace .fire .line { display: block; width: 2px; height: 100%; position: absolute; bottom: 0; animation: fireLines 1s linear infinite; }
.camp-login-page .fireplace .fire .line2 { left: 50%; margin-left: -1px; animation-delay: .3s; }
.camp-login-page .fireplace .fire .line3 { right: 0; animation-delay: .5s; }
.camp-login-page .fireplace .fire .line .particle { height: 10%; position: absolute; top: 100%; z-index: 1; border-radius: 2px; border: 2px solid #efb54a; animation: fireParticles .5s linear infinite; }
.camp-login-page .fireplace .fire .line .particle1 { animation-delay: .1s; }
.camp-login-page .fireplace .fire .line .particle2 { animation-delay: .3s; }
.camp-login-page .fireplace .fire .line .particle3 { animation-delay: .6s; }
.camp-login-page .fireplace .fire .line .particle4 { animation-delay: .9s; }
@media (max-width: 760px) {
  .camp-login-card { top: 38%; width: min(92vw, 360px); padding: 26px; }
  .camp-scene-wrapper { bottom: 4vh; transform: translateX(-50%) scale(.86); }
}
@media (prefers-reduced-motion: reduce) {
  .camp-login-page *, .camp-login-page *::before, .camp-login-page *::after { animation: none !important; transition: none !important; }
}



.sales-help-line {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.sales-product-grid-compact {
  max-height: calc(100vh - 310px);
  overflow: auto;
  padding-right: 4px;
}
.sales-product-card.disabled,
.sales-product-card:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.35);
  transform: none !important;
  box-shadow: none;
}
.sales-stock.soldout {
  display: inline-flex;
  color: #fecaca;
  background: rgba(220, 38, 38, .18);
  border: 1px solid rgba(239, 68, 68, .42);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 950;
}
.cash-field {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 7px !important;
  color: var(--muted);
  font-weight: 900;
}
.cash-field input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  text-align: right;
  font-size: 22px;
  font-weight: 950;
}
.change-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
}
.change-line strong { color: #22c55e; }
.change-line.danger strong { color: #ef4444; }
.settings-grid-simple { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); }
@media (max-width: 900px) {
  .settings-grid-simple { grid-template-columns: 1fr; }
  .sales-product-grid-compact { max-height: none; }
}


.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 0 20px rgba(249,115,22,.28), inset 0 0 0 1px rgba(255,255,255,.28);
  overflow: hidden;
}
.brand-mark.small { width: 34px; height: 34px; min-width: 34px; }
.brand-mark i {
  position: absolute;
  bottom: 7px;
  width: 22px;
  height: 15px;
  background: #111;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.brand-mark i::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 0;
  width: 4px;
  height: 10px;
  background: #fef3c7;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.brand-mark::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff7ed;
  box-shadow: 0 -7px 0 #fff7ed, 7px 0 0 #fff7ed, -7px 0 0 #fff7ed, 5px 5px 0 #ffedd5, -5px 5px 0 #ffedd5;
  transform: translateX(-50%);
}
.login-brand em {
  font-style: normal;
  color: #f97316;
}
.logo-mark.brand-mark {
  font-size: 0;
}
.camp-sky .ember {
  position: absolute;
  bottom: -18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 12px rgba(251,146,60,.8);
  animation: emberFloat 7s linear infinite;
  opacity: 0;
}
@keyframes emberFloat {
  0% { transform: translateY(0) translateX(0) scale(.6); opacity: 0; }
  15% { opacity: .85; }
  100% { transform: translateY(-78vh) translateX(36px) scale(1.1); opacity: 0; }
}
.camp-sky .firework.big { transform: scale(1.25); }
.camp-sky .firework.soft { filter: blur(.2px); opacity: .75; }
.camp-login-card {
  background: radial-gradient(circle at 50% 0%, rgba(249,115,22,.12), transparent 42%), rgba(8,8,8,.78);
  box-shadow: 0 26px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(251,146,60,.13), inset 0 1px 0 rgba(255,255,255,.06);
}
.login-brand {
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.sleep-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  display: block;
  min-height: 100vh;
  animation: sleepFadeIn .45s ease both;
}
@keyframes sleepFadeIn { from { opacity: 0; } to { opacity: 1; } }
.sleep-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 35%, rgba(251,146,60,.12), transparent 34%), linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.46));
  pointer-events: none;
}
.sleep-content {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  padding-top: clamp(80px, 12vh, 140px);
  text-align: center;
  color: #fff;
}
.sleep-content h1 {
  margin: 34px 0 10px;
  font-size: clamp(52px, 9vw, 104px);
  line-height: .95;
  letter-spacing: -.06em;
  color: #fff7ed;
  text-shadow: 0 0 24px rgba(251,146,60,.24);
}
.sleep-content p {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 30px);
  color: rgba(255,247,237,.78);
  font-weight: 700;
}
.sleep-content small {
  color: rgba(251,146,60,.58);
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 700;
}
.sleep-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0;
  color: #f97316;
}
.sleep-divider span {
  width: min(180px, 24vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,146,60,.65), transparent);
}
.sleep-overlay .camp-scene-wrapper {
  bottom: 5vh;
  transform: translateX(-50%) scale(1.55);
  opacity: .95;
}
.sales-title .brand-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-right: 6px;
  vertical-align: middle;
}
.sales-opening-pill {
  display: inline-flex;
  margin-left: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(251,146,60,.35);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249,115,22,.1);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}
.cash-open-modal .modal-header p { max-width: 560px; }
.daily-cut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.daily-cut-grid .kpi {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.daily-cut-grid .kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.daily-cut-grid .kpi strong {
  font-size: 24px;
  color: var(--text);
}
.daily-cut-tables { padding: 0 18px 18px; }
.close-cash-form { padding: 0 18px 18px; }
@media (max-width: 900px) {
  .daily-cut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sleep-overlay .camp-scene-wrapper { transform: translateX(-50%) scale(1.05); bottom: 3vh; }
}
@media (max-width: 620px) {
  .daily-cut-grid { grid-template-columns: 1fr; }
  .sleep-content { padding-top: 72px; }
  .sleep-content h1 { font-size: 54px; }
}

.login-language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 14px auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.login-language-switch button {
  border: 0;
  min-width: 50px;
  min-height: 34px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-weight: 950;
}
.login-language-switch button.active {
  color: #111;
  background: linear-gradient(135deg, #ff7a18, #ffb703);
  box-shadow: 0 10px 24px rgba(249, 115, 22, .24);
}
.clean-subtitle {
  color: rgba(255, 255, 255, .64) !important;
  letter-spacing: .02em;
}
.selene-login-card h2 { margin-top: 2px; }
.sales-product-card-mini {
  align-content: start;
  justify-items: stretch;
  min-height: 188px;
  cursor: default;
}
.sales-product-card-mini .sales-product-emoji,
.sales-product-card-mini .sales-price,
.sales-product-card-mini > strong,
.sales-product-card-mini .sales-stock,
.sales-product-card-mini .mini-max-note { justify-self: center; }
.sales-product-card-mini > strong {
  width: 100%;
  min-height: 34px;
  display: grid;
  place-items: center;
}
.sales-stock.ok {
  display: inline-flex;
  color: #fed7aa;
  background: rgba(249, 115, 22, .12);
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 950;
}
.product-mini-card {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: center;
  padding: 7px;
  margin-top: 2px;
  border-radius: 14px;
  background: rgba(249, 115, 22, .07);
  border: 1px solid rgba(249, 115, 22, .18);
}
.mini-qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(249, 115, 22, .28);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #27272a, #18181b);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}
.mini-qty-btn.add {
  color: #111;
  background: linear-gradient(135deg, #ff7a18, #ffb703);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(249, 115, 22, .22);
}
.mini-qty-btn:disabled {
  cursor: not-allowed;
  opacity: .38;
  box-shadow: none;
  filter: grayscale(.35);
}
.mini-qty-value {
  min-width: 0;
  display: grid;
  justify-items: center;
  line-height: 1;
}
.mini-qty-value b {
  font-size: 18px;
  font-weight: 950;
  color: var(--text);
}
.mini-qty-value small {
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mini-max-note {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}
[data-theme="dark"] .product-mini-card {
  background: rgba(249, 115, 22, .10);
  border-color: rgba(249, 115, 22, .22);
}
[data-theme="dark"] .mini-qty-value b { color: #fff; }
@media (max-width: 760px) {
  .sales-product-card-mini { min-height: 176px; }
  .product-mini-card { grid-template-columns: 34px minmax(0, 1fr) 34px; padding: 6px; }
  .mini-qty-btn { width: 34px; height: 34px; }
}
