:root {
  --bg: #f2f6f5;
  --dashboard-bg: url("/img/dashboard-background.jpg");
  --surface: #ffffff;
  --ink: #102a2e;
  --muted: #5d777c;
  --line: #dbe7e4;
  --brand: #0f766e;
  --brand-dark: #0b5a54;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --shadow: 0 18px 45px rgba(16, 42, 46, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(15, 118, 110, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(3, 105, 161, .12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Login */
.login-body { display: grid; place-items: center; padding: 32px 0; }
.login-card {
  width: min(430px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #0ea5a3);
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.login-brand { display: block; text-align: center; }
.login-logo {
  display: block; width: min(300px, 100%); height: auto;
  margin: 0 auto 10px; border-radius: 14px;
}
.login-brand .brand-sub { text-align: center; }
.login-card h1 { font-size: 24px; margin: 26px 0 4px; letter-spacing: -.02em; }
.login-card p.lead { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fbfdfc; color: var(--ink);
  font: inherit;
}
.field input:focus { outline: 3px solid rgba(15, 118, 110, .18); border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 11px 16px;
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn-ghost:hover { background: #eef7f5; }
.alert {
  border-radius: 10px; padding: 10px 13px; margin-bottom: 16px;
  font-size: 14px; border: 1px solid #f3c9c9; background: #fdf1f1; color: #8f1d1d;
}
.hint { color: var(--muted); font-size: 12.5px; margin-top: 18px; text-align: center; }

/* Sidebar layout */
.layout { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  width: 258px; flex: 0 0 258px; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #0b2b2f, #0a2428);
  color: #e7f3f1; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 24px;
  border-right: 1px solid #123c40;
}
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.sidebar .brand-name { color: #fff; font-size: 18px; }
.sidebar .brand-sub { color: #8fb3b3; font-size: 11.5px; }
.sidebar-brand { display: block; color: inherit; padding: 0 2px; }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-logo {
  display: block; width: 100%; max-width: 190px; height: auto;
}
.sidebar-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #7ea2a2; padding: 0 8px; margin-bottom: 8px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px; border: 1px solid transparent;
  color: #cfe2e0; font-size: 13.5px; font-weight: 650;
}
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.side-link.active { background: #fff; color: #0b2b2f; }
.side-accent { width: 4px; height: 18px; border-radius: 3px; flex: 0 0 4px; }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-dot {
  width: 7px; height: 7px; border-radius: 50%; margin-left: auto;
  background: #7c8f92; flex: 0 0 7px;
}
.side-dot.online { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .15); }
.side-dot.offline { background: #f87171; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 2px; }
.side-foot .user-chip {
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12);
  padding: 7px 10px 7px 7px;
}
.side-foot .user-name { color: #fff; }
.side-foot .user-role { color: #9dbaba; }
.side-foot .avatar { background: #134e4a; color: #a7f3d0; }
.btn-side { width: 100%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e7f3f1; }
.btn-side:hover { background: rgba(255, 255, 255, .16); }
.main { flex: 1; min-width: 0; }
.crumb {
  color: var(--muted); font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* Dashboard */
.topbar { padding: 22px 0 0; }
.topbar-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px 7px 7px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: #d9efec; color: var(--brand-dark);
}
.user-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.user-role { color: var(--muted); font-size: 11.5px; text-transform: capitalize; }
.headline { margin: 34px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.subline { color: var(--muted); margin: 0 0 24px; }
.subline strong { color: var(--ink); }

.section-title {
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 30px 0 12px;
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 17px 18px;
}
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 5px 0 2px; }
.kpi-sub { color: var(--muted); font-size: 12px; }
.kpi.warn .kpi-value { color: var(--warn); }
.kpi.bad .kpi-value { color: var(--bad); }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.module {
  position: relative; display: block;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 19px 20px; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.module:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow); border-color: #bcd7d3;
}
.module-top { display: flex; align-items: center; gap: 10px; }
.module-accent { width: 10px; height: 32px; border-radius: 6px; }
.module-name { font-weight: 800; font-size: 16px; }
.module-desc { color: var(--muted); font-size: 13px; margin: 8px 0 16px; min-height: 38px; }
.module-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa9ad; }
.status.online { color: var(--ok); }
.status.online .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(21, 128, 61, .14); }
.status.offline { color: var(--bad); }
.status.offline .dot { background: var(--bad); }
.open-link { font-weight: 700; font-size: 13px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px;
}
.flow { display: grid; gap: 10px; }
.flow-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid #eef4f2;
}
.flow-row:last-child { border-bottom: 0; }
.flow-label { font-weight: 650; font-size: 13.5px; }
.flow-detail { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.badge {
  display: inline-block; border-radius: 999px; padding: 2px 9px;
  font-size: 11.5px; font-weight: 700; background: #eef7f5; color: var(--brand-dark);
}
.panel-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; }
.db-name { font-family: Consolas, "SFMono-Regular", monospace; font-weight: 700; font-size: 14px; }
.foot { color: var(--muted); font-size: 12px; padding: 26px 0 34px; }

@media (max-width: 900px) {
  .layout { display: block; }
  .sidebar {
    position: static; width: auto; height: auto; flex: none; overflow: visible;
    border-right: 0; border-bottom: 1px solid #123c40;
  }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side-link { flex: 0 0 auto; white-space: nowrap; }
  .side-foot { flex-direction: row; align-items: center; margin-top: 0; }
  .side-foot form { margin-left: auto; }
  .btn-side { width: auto; }
}

@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .headline { font-size: 24px; }
  .topbar-inner { gap: 10px; }
}

/* Dashboard refresh */
.topbar {
  position: sticky; top: 0; z-index: 30; padding: 0;
  background: rgba(242, 246, 245, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 231, 228, .9);
}
.topbar-inner { padding: 13px 0; gap: 14px; }
.topbar-title { display: flex; flex-direction: column; gap: 1px; }
.topbar-date { color: var(--muted); font-size: 12px; font-weight: 600; }
.status-pill {
  display: inline-flex; align-items: center; padding: 5px 10px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.status-pill .status { font-size: 11.5px; }

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-top: 26px; padding: 30px 32px;
  border-radius: 24px; color: #fff;
  background-color: #0b3b3a;
  background-image:
    linear-gradient(110deg, rgba(6, 48, 47, .93) 0%, rgba(11, 90, 84, .82) 55%, rgba(13, 148, 136, .66) 100%),
    var(--dashboard-bg);
  background-size: cover, cover;
  background-position: center, center;
  box-shadow: 0 22px 50px rgba(11, 59, 58, .24);
}
.dashboard-body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(242, 246, 245, .9), rgba(242, 246, 245, .95)),
    var(--dashboard-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
}
.dashboard-body .kpi,
.dashboard-body .module,
.dashboard-body .panel {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(9px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px; right: -110px; top: -210px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, .035), 0 0 0 92px rgba(255, 255, 255, .025);
}
.hero::after {
  width: 190px; height: 190px; right: 210px; bottom: -145px;
  background: rgba(45, 212, 191, .22); filter: blur(2px);
}
.hero-copy { position: relative; z-index: 1; max-width: 640px; }
.hero-kicker {
  margin: 0 0 8px; color: #99f6e4; font-size: 11px;
  font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15; letter-spacing: -.035em;
}
.hero p { margin: 0; color: #c9ece8; font-size: 13.5px; max-width: 58ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn-light { background: #fff; color: #0b5a54; }
.btn-light:hover { background: #e6fffb; text-decoration: none; }
.btn-outline-light {
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.hero-side { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip {
  min-width: 108px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.hero-chip strong { display: block; font-size: 20px; line-height: 1.2; }
.hero-chip span {
  display: block; margin-top: 2px; color: #bce8e3; font-size: 10px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 30px 0 12px;
}
.section-head .section-title { margin: 0; }
.section-note { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 999px;
  background: #e8f7f1; border: 1px solid #c7eadf; color: var(--brand-dark);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.live-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .14);
}

.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi {
  position: relative; overflow: hidden; padding: 18px;
  border-radius: 18px; box-shadow: 0 8px 24px rgba(16, 42, 46, .055);
}
.kpi::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), #2dd4bf); opacity: .75;
}
.kpi.warn::before { background: linear-gradient(90deg, #b45309, #f59e0b); }
.kpi.bad::before { background: linear-gradient(90deg, #b91c1c, #f87171); }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  display: grid; place-items: center; background: #e7f5f2; color: var(--brand);
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi.warn .kpi-icon { background: #fdf1df; color: var(--warn); }
.kpi.bad .kpi-icon { background: #fdecec; color: var(--bad); }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.kpi-value { margin: 13px 0 3px; font-size: 27px; letter-spacing: -.035em; }
.kpi-sub { font-size: 11.5px; }

.modules { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.module {
  display: flex; flex-direction: column; padding: 18px;
  border-radius: 18px; box-shadow: 0 8px 24px rgba(16, 42, 46, .05);
}
.module-accent { width: 8px; height: 28px; }
.module-name { font-size: 15px; }
.module-desc { margin: 10px 0 12px; font-size: 12.5px; min-height: 38px; }
.module-metric {
  align-self: flex-start; margin-bottom: 15px; padding: 4px 9px;
  border-radius: 999px; background: #f4faf9; border: 1px solid #dcefeb;
  color: var(--brand-dark); font-size: 11px; font-weight: 750;
}
.module-foot { margin-top: auto; }
.open-link { color: var(--brand); }

.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
  gap: 14px; align-items: stretch;
}
.dash-grid.lower { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 14px; }
.panel { border-radius: 18px; box-shadow: 0 8px 24px rgba(16, 42, 46, .05); }
.panel-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.panel-title { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.015em; }
.panel-sub { margin: 2px 0 0; color: var(--muted); font-size: 11.5px; }
.panel-link { display: inline-flex; margin-top: 12px; font-size: 12.5px; font-weight: 750; }
.chart-total { text-align: right; }
.chart-total strong { display: block; font-size: 20px; letter-spacing: -.03em; }
.chart-total span {
  color: var(--muted); font-size: 10px; font-weight: 750;
  letter-spacing: .07em; text-transform: uppercase;
}
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: #e8f1ef; stroke-width: 1; }
.chart-area { fill: url(#salesGradient); }
.chart-line {
  fill: none; stroke: var(--brand); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.chart-dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.chart-axis { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 6px; text-align: center; }
.chart-axis span { color: var(--muted); font-size: 10px; font-weight: 700; }
.chart-axis b { display: block; margin-top: 1px; color: var(--ink); font-size: 11.5px; }
.chart-empty { display: grid; place-items: center; min-height: 180px; color: var(--muted); font-size: 13px; }

.order-row, .alert-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid #eef4f2;
}
.order-row:last-child, .alert-row:last-child { border-bottom: 0; }
.order-main { flex: 1; min-width: 0; }
.order-ref { display: block; font-size: 12.5px; font-weight: 750; }
.order-meta {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-size: 11px;
}
.order-right { flex: 0 0 auto; text-align: right; }
.order-total { display: block; font-size: 12.5px; font-weight: 800; }
.pill {
  display: inline-block; margin-top: 2px; padding: 1px 7px;
  border-radius: 999px; font-size: 10px; font-weight: 750;
}
.pill.completed { background: #e9f7ee; color: var(--ok); }
.pill.voided { background: #fdecec; color: var(--bad); }
.empty-state { padding: 20px 0; color: var(--muted); font-size: 12.5px; text-align: center; }

.alert-dot {
  width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 0 3px rgba(180, 83, 9, .12);
}
.alert-dot.out { background: var(--bad); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }
.alert-main { flex: 1; min-width: 0; }
.alert-name { display: block; font-size: 12.5px; font-weight: 700; }
.alert-sku { display: block; color: var(--muted); font-size: 10.5px; }
.alert-qty { flex: 0 0 auto; text-align: right; color: var(--muted); font-size: 10.5px; }
.alert-qty strong { display: block; color: var(--ink); font-size: 12.5px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-mini { padding: 12px 13px; border-radius: 13px; background: #f7fbfa; border: 1px solid var(--line); }
.metric-mini span {
  display: block; color: var(--muted); font-size: 10px;
  font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
}
.metric-mini strong { display: block; margin-top: 4px; font-size: 17px; letter-spacing: -.02em; }
.sync-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.panel-grid { gap: 14px; }
.foot { padding: 30px 0 36px; }

/* Customer account administration */
.admin-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.admin-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin: 34px 0 20px;
}
.admin-heading h1 { margin: 4px 0 5px; font-size: 30px; letter-spacing: -.035em; }
.admin-heading .subline { margin: 0; }
.admin-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px; align-items: start;
}
.notice {
  border-radius: 13px; padding: 12px 15px; margin-bottom: 16px;
  font-size: 13.5px; font-weight: 600; border: 1px solid;
}
.notice-ok { background: #e9f7ee; border-color: #bde5ca; color: #166534; }
.notice-bad { background: #fdf1f1; border-color: #f3c9c9; color: #8f1d1d; }
.customer-form { margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-wide { grid-column: 1 / -1; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.customer-form .btn { margin-top: 4px; }
.guide-panel { background: linear-gradient(170deg, #f3fbf9, #fff); }
.guide-list { margin: 16px 0 18px; padding: 0; list-style: none; counter-reset: guide; }
.guide-list li {
  counter-increment: guide; position: relative; padding: 0 0 16px 36px;
  border-bottom: 1px solid #e8f1ef;
}
.guide-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.guide-list li::before {
  content: counter(guide); position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
}
.guide-list strong { display: block; font-size: 13px; }
.guide-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.account-table-wrap { overflow-x: auto; }
.account-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.account-table th {
  padding: 9px 10px; text-align: left; color: var(--muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.account-table td { padding: 12px 10px; border-bottom: 1px solid #eef4f2; vertical-align: middle; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table strong { display: block; font-size: 12.5px; }
.account-email { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.account-table .empty-state { padding: 28px 0; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .admin-heading h1 { font-size: 25px; }
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .dash-grid.lower { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 26px; }
  .hero-side { width: 100%; }
  .hero-chip { flex: 1; min-width: 0; }
}
@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .topbar-date { display: none; }
  .status-pill { display: none; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr; }
  .hero { padding: 22px; border-radius: 20px; }
  .hero-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr; }
  .topbar-inner .btn-ghost { display: none; }
}

/* Product catalogue + modal dialogs */
.table-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-danger-ghost { color: var(--bad); border: 1px solid #f3c9c9; background: transparent; }
.btn-danger-ghost:hover { background: #fdf1f1; }
.pill.pending { background: #fdf3e3; color: var(--warn); }

.field select,
.field textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #fbfdfc; color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select:focus,
.field textarea:focus { outline: 3px solid rgba(15, 118, 110, .18); border-color: var(--brand); }

.modal {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(16, 42, 46, .28);
  overflow: hidden;
}
.modal.modal-sm { width: min(460px, calc(100vw - 32px)); }
.modal:not([open]) { display: none; }
.modal::backdrop { background: rgba(8, 26, 30, .55); }

.modal-card { display: flex; flex-direction: column; max-height: calc(100vh - 42px); margin: 0; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line);
}
.modal-head .crumb { margin: 0 0 4px; }
.modal-close {
  flex: 0 0 auto; padding: 2px 8px 6px; color: var(--muted);
  background: transparent; border: 0; border-radius: 8px;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--ink); background: #eef7f5; }
.modal-body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .form-grid { gap: 2px 14px; }
.modal-lead { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.modal-lead strong { color: var(--ink); }
.modal-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
  padding: 14px 22px 18px; border-top: 1px solid var(--line); background: #fbfdfc;
}

@media (max-width: 560px) {
  .modal-body { padding: 16px; }
  .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .modal-foot .btn { flex: 1; }
  .table-actions { flex-wrap: wrap; }
}

/* CRUD result notification (auto-opens after add / edit / delete) */

.notice-modal-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 18px;
}

.notice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 50%;
}

.notice-icon.success { color: var(--ok); background: #e9f7ee; }
.notice-icon.error { color: var(--bad); background: #fdecec; }

.notice-title {
  margin: 0 0 5px;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}

.notice-text {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .notice-modal-body { padding: 18px 16px 14px; }
}
