@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2-variations"),
    url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --sidebar-bg: #0b1324;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #cbd5e1;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-2: #059669;
  --primary-soft: #ecfdf5;
  --accent: #d97706;
  --accent-soft: #fffbeb;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 10px -4px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.text-muted {
  color: var(--muted);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.text-primary {
  color: var(--primary);
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

/* App Shell tailored for 1366x768 condensed workspace */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 204px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0b1324 0%, #111c33 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 10px;
  border-right: 1px solid #0f172a;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sidebar-border);
  border-radius: 9px;
  padding: 8px 9px;
  margin-bottom: 10px;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.brand-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 8px 8px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}

.nav-link-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.nav-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding-top: 8px;
  font-size: 12px;
}

.wallet-mini {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 8px;
  padding: 8px 9px;
  margin-bottom: 6px;
}

.wallet-mini .amt {
  font-size: 14.5px;
  font-weight: 700;
  color: #34d399;
  margin-top: 1px;
}

.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 50px;
  background: linear-gradient(90deg, #e0f2fe 0%, #e0e7ff 52%, #ede9fe 100%);
  border-top: 1px solid #bae6fd;
  border-bottom: 2px solid #080545;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.10);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.topbar-clock-seg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #334155;
}

.topbar-clock-sep {
  color: #94a3b8;
  font-weight: 700;
}

.topbar-time-txt {
  color: #4338ca;
  font-weight: 700;
}

.topbar-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c7d2fe;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.08);
}

.topbar-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.topbar-user-role {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.content {
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.grid {
  display: grid;
  gap: 10px;
}

.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.span-3 {
  grid-column: span 3 / span 3;
}

.span-4 {
  grid-column: span 4 / span 4;
}

.span-5 {
  grid-column: span 5 / span 5;
}

.span-6 {
  grid-column: span 6 / span 6;
}

.span-7 {
  grid-column: span 7 / span 7;
}

.span-8 {
  grid-column: span 8 / span 8;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ki-teal {
  background: #ccfbf1;
  color: #0f766e;
}

.ki-green {
  background: #dcfce7;
  color: #15803d;
}

.ki-red {
  background: #fee2e2;
  color: #b91c1c;
}

.ki-amber {
  background: #fef3c7;
  color: #b45309;
}

.ki-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Soft Pastel Modern Dashboard KPI Variants */
.kpi-card.kpi-teal {
  background: linear-gradient(135deg, #ccfbf1 0%, #f0fdfa 100%);
  border: 1.5px solid #5eead4;
  border-left: 4px solid #0d9488;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(13, 148, 136, 0.10);
}

.kpi-card.kpi-green {
  background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.10);
}

.kpi-card.kpi-rose {
  background: linear-gradient(135deg, #ffe4e6 0%, #fff1f2 100%);
  border: 1.5px solid #fda4af;
  border-left: 4px solid #e11d48;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.10);
}

.kpi-card.kpi-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 1.5px solid #93c5fd;
  border-left: 4px solid #2563eb;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.10);
}

.kpi-card.kpi-amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1.5px solid #fcd34d;
  border-left: 4px solid #d97706;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.10);
}

.kpi-teal .kpi-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #99f6e4;
  color: #0f766e;
}

.kpi-green .kpi-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.kpi-rose .kpi-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fecdd3;
  color: #be123c;
}

.kpi-blue .kpi-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.kpi-amber .kpi-icon {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fde68a;
  color: #b45309;
}

/* Soft Pastel Card Banner Headers & Matching Block Borders */
.card-flush {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.card:has(> .cb-indigo) {
  border: 1.5px solid #a5b4fc;
  box-shadow: 0 4px 14px rgba(55, 48, 163, 0.08);
}

.card:has(> .cb-teal) {
  border: 1.5px solid #5eead4;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}

.card:has(> .cb-amber) {
  border: 1.5px solid #fcd34d;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.card-banner {
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-banner .card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card-banner .btn-sm {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.card-banner .btn-sm:hover {
  background: #f8fafc;
}

.cb-teal {
  background: linear-gradient(90deg, #ecfdf5 0%, #e6fffa 100%);
  border-bottom: 1.5px solid #99f6e4;
}

.cb-teal .card-title {
  color: #0f766e;
}

.cb-indigo {
  background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%);
  border-bottom: 1.5px solid #c7d2fe;
}

.cb-indigo .card-title {
  color: #3730a3;
}

.cb-amber {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1.5px solid #fde68a;
}

.cb-amber .card-title {
  color: #92400e;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border-color: #0f766e;
  color: #fff;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  border-color: #0d9488;
}

.btn-amber {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #b45309;
}

.btn-amber:hover {
  background: #fef3c7;
}

.btn-reset {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fda4af;
  color: #be123c;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(190, 18, 60, 0.08);
}

.btn-reset:hover {
  background: #ffe4e6;
  border-color: #fb7185;
  color: #9f1239;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(190, 18, 60, 0.14);
}

.ord-act-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.act-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.act-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
}

.act-pill-receive {
  background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
}

.act-pill-edit {
  background: #eef2ff;
  color: #3730a3;
  border-color: #a5b4fc;
}

.act-pill-edit:hover {
  background: #e0e7ff;
  border-color: #818cf8;
}

.act-pill-bill {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
}

.act-pill-bill:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 3px 8px;
  font-size: 11.5px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
  padding: 8px 12px;
}

/* Forms (condensed modern) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.col-full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 3px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  font-family: inherit;
  transition: border-color 0.14s, box-shadow 0.14s;
}

textarea.input {
  height: auto;
  min-height: 60px;
  padding: 6px 9px;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-leading {
  position: absolute;
  left: 10px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
}

.input-icon-wrap .input {
  padding-left: 32px;
}

/* Tables (condensed 35px rows) */
.table-wrap {
  overflow-x: auto;
}

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.tbl thead tr {
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
}

.tbl th {
  text-align: left;
  padding: 7.5px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.tbl th:last-child {
  border-right: none;
}

.tbl th.text-center {
  text-align: center;
}

.tbl th.text-right {
  text-align: right;
}

.tbl td {
  padding: 6.5px 9px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.tbl tbody tr:hover {
  background: #f8fafc;
}

/* Grid-lined Table with Continuous Horizontal Gradient Header */
table.tbl.tbl-grid thead tr {
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
}

table.tbl.tbl-grid thead th {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7.5px 9px;
}

table.tbl.tbl-grid tbody td {
  border: 1px solid #e2e8f0;
  padding: 6px 9px;
}

table.tbl.tbl-grid tbody tr:nth-child(even) {
  background: #fafafa;
}

table.tbl.tbl-grid tbody tr:hover {
  background: #eff6ff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
}

/* Flash & Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: #bbf7d0;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #fecaca;
}

/* Modern Floating Auto-Hide Flash Toast */
.flash-toast-wrap {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 390px;
  width: calc(100% - 32px);
  pointer-events: none;
}

.flash-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px 13px;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 35px -8px rgba(15, 23, 42, 0.38), 0 4px 12px -2px rgba(15, 23, 42, 0.22);
  animation: toastSlideIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-toast.hiding {
  opacity: 0;
  transform: translateX(18px);
}

.flash-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.flash-toast-success .flash-toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.flash-toast-error .flash-toast-icon {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.flash-toast-body {
  flex: 1;
  min-width: 0;
}

.flash-toast-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.flash-toast-msg {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.35;
}

.flash-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
}

.flash-toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.flash-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  animation: toastProgress 4s linear forwards;
}

.flash-toast-success .flash-toast-progress {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.flash-toast-error .flash-toast-progress {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.flash-toast:hover .flash-toast-progress {
  animation-play-state: paused;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Menu Checklist inside 1366x768 Order Builder */
.menu-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 345px;
  overflow-y: auto;
  padding-right: 2px;
}

.menu-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.14s ease;
}

.menu-chip:hover {
  border-color: #94a3b8;
  background: #fff;
}

.menu-chip:has(input:checked) {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.12);
}

.menu-chip input {
  accent-color: var(--primary);
  margin: 0;
}

.menu-cat-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-chip:has(input:checked) .menu-cat-icon {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

.menu-chip .item-name {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
}

.menu-chip .item-cat {
  font-size: 10.5px;
  color: var(--muted);
}

/* Summary highlight boxes */
.summary-box {
  padding: 9px 11px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow-md);
}

/* Login Split Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 148, 136, 0.14), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(245, 158, 11, 0.14), transparent 42%),
    #0f172a;
}

.login-shell {
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

.login-brand-side {
  background: linear-gradient(155deg, #0b1324 0%, #0f2933 55%, #115e59 100%);
  color: #fff;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-form-side {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 780px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-side {
    display: none;
  }
}

@media (max-width: 1080px) {
  .cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-12 {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 1 / span 1;
  }
}

@media print {

  .sidebar,
  .topbar,
  .no-print {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app-shell,
  .main-col,
  .content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .card,
  .card-flush {
    border: 1px solid #ccc;
    box-shadow: none;
    overflow: visible !important;
  }

  .table-wrap {
    overflow: visible !important;
  }

  .tbl thead tr {
    background: #f1f5f9 !important;
  }

  .tbl th {
    color: #0f172a !important;
    border: 1px solid #ccc !important;
  }
}