:root {
  --bg: #f4efe6;
  --surface: #fffdf8;
  --ink: #1c1915;
  --muted: #6b6358;
  --line: #d9d0c3;
  --navy: #1e3a4c;
  --navy-deep: #152a38;
  --barn: #8b2e1f;
  --ok: #2f6b4f;
  --warn: #9a6b24;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button:not(:disabled), [role="button"] { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
input, select, textarea, button { font: inherit; }
header.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy); color: var(--surface);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 20px;
}
header.top nav { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.hero { background: var(--navy); color: var(--surface); padding: 56px 20px 48px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; margin: 8px 0 12px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.price { font-family: var(--display); font-size: 1.4rem; color: var(--barn); }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 8px; align-items: center; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--barn); color: var(--surface); font-weight: 600;
}
.btn-navy { background: var(--navy); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.qty {
  display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; height: 44px;
}
.qty button { width: 44px; height: 44px; border: 0; background: transparent; }
label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0; }
label input, label select, label textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 8px 10px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; background: var(--navy); color: var(--surface); padding: 8px 10px; font-weight: 600; }
td { padding: 8px 10px; border-top: 1px solid var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tabs button { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; }
.tabs button.on { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.alert { background: #8b2e1f18; color: var(--barn); padding: 10px 12px; border-radius: 8px; }
.ok { background: #2f6b4f18; color: var(--ok); padding: 10px 12px; border-radius: 8px; }
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(142, 115, 78, 0.18), transparent 22%),
    linear-gradient(180deg, #efe8dc 0%, #f8f5f1 42%, #f3eee7 100%);
  color: var(--ink);
}

.admin-shell {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 20px 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid rgba(29, 53, 71, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(23, 31, 36, 0.08);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #244d62 100%);
  color: #fff;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  object-fit: contain;
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(30, 58, 76, 0.08);
  color: var(--navy);
  font-weight: 600;
}

.btn-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.admin-main {
  margin-top: 22px;
  padding: 24px 16px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(29, 53, 71, 0.08);
  box-shadow: 0 18px 40px rgba(25, 34, 39, 0.06);
}

.admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 8px 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--barn);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-intro h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 12px;
  min-width: 360px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30, 58, 76, 0.96), rgba(57, 90, 105, 0.96));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.stat-card span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.stat-card strong {
  font-size: 1.12rem;
}

.page-center { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 24px; }
.badge { border-radius: 999px; padding: 2px 8px; font-size: 11px; text-transform: uppercase; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; }
footer { background: var(--navy-deep); color: #fff9; text-align: center; padding: 20px; font-size: 14px; }
@media (max-width: 640px) {
  .admin-shell { padding: 0 14px 20px; }
  .admin-topbar, .admin-intro { flex-direction: column; align-items: stretch; }
  .admin-nav { justify-content: space-between; }
  .mini-stats { min-width: auto; width: 100%; }
  .hide-sm { display: none; }
}

/* AdminLTE dashboard overrides */
body.layout-fixed {
  background: #f4f6f9;
  color: #243044;
}
.layout-fixed .app-sidebar {
  --lte-sidebar-width: 252px;
  background: #172333 !important;
}
.layout-fixed .sidebar-brand {
  justify-content: flex-start;
  padding-left: 1.25rem;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.layout-fixed .brand-link { color: #fff; }
.layout-fixed .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin-right: 10px;
  background: #d96a3b;
  font-family: var(--display);
  font-size: 1.15rem;
}
.layout-fixed .brand-text { font-size: 1.05rem; }
.layout-fixed .sidebar-menu .nav-link {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.72);
}
.layout-fixed .sidebar-menu .nav-link:hover,
.layout-fixed .sidebar-menu .nav-link.active {
  color: #fff;
  background: rgba(217, 106, 59, 0.18);
}
.layout-fixed .sidebar-menu .nav-link.active { box-shadow: inset 3px 0 #d96a3b; }
.layout-fixed .sidebar-menu .nav-header {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.layout-fixed .app-header { min-height: 3.5rem; background: transparent !important; border-bottom: 1px solid rgba(23, 35, 51, 0.12); box-shadow: none; }
.layout-fixed .app-header .navbar-brand {
  color: #243044;
  font-size: 1rem;
  font-weight: 600;
}
.layout-fixed .app-main { background: #f4f6f9; }
.layout-fixed .app-content-header { padding-top: 1.5rem; }
.layout-fixed .app-content-header h1 {
  color: #172333;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.layout-fixed .app-content { padding-bottom: 1.5rem; }
.layout-fixed .info-box {
  border: 1px solid rgba(36, 48, 68, 0.08);
  box-shadow: 0 3px 12px rgba(36, 48, 68, 0.05);
}
.layout-fixed .info-box-icon { width: 58px; font-size: 1.25rem; }
.layout-fixed .card {
  padding: 0;
  border-radius: 0.5rem;
  border-color: rgba(36, 48, 68, 0.1);
  box-shadow: 0 3px 12px rgba(36, 48, 68, 0.05);
}
.layout-fixed .card-header { padding: 1rem 1.25rem; }
.layout-fixed .card-body { padding: 1.25rem; }
.layout-fixed #tabs { gap: 0.25rem; }
.layout-fixed #tabs button {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #667085;
  font-size: 0.875rem;
  font-weight: 600;
}
.layout-fixed #tabs button:hover,
.layout-fixed #tabs button.on {
  background: #e8eef6;
  color: #1f5f9b;
}
.layout-fixed #panel > .row { margin-bottom: 1rem; }
.layout-fixed #panel > .row h2 {
  margin: 0;
  color: #172333;
  font-family: var(--display);
  font-size: 1.45rem;
}
.layout-fixed #panel > .card,
.layout-fixed #panel > article.card { box-shadow: none; }
.layout-fixed #panel .icon-btn {
  width: auto;
  height: auto;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid #d9e0e8;
  border-radius: 0.375rem;
  color: #34526e;
  background: #fff;
  font-size: 0.875rem;
}
.layout-fixed #panel .icon-btn:hover { background: #f1f5f9; }
.layout-fixed #panel .btn { border-radius: 0.375rem; }
.layout-fixed #panel label { color: #344054; }
.layout-fixed #panel label input,
.layout-fixed #panel label select,
.layout-fixed #panel label textarea {
  background: #fff;
  border-color: #d9e0e8;
}
.layout-fixed #panel > .card { border: 0; box-shadow: none; }
.layout-fixed #panel > .card table { margin-bottom: 0; }
.layout-fixed #panel > .card table th { background: #f8fafc; color: #526173; border-bottom: 1px solid #e4e7ec; }
.layout-fixed #panel > .card table td { vertical-align: middle; border-top-color: #eef1f4; }
.module-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.module-heading h2 { margin: 0.2rem 0 0.35rem; color: #172333; font-family: var(--display); font-size: 1.65rem; }
.module-heading p { margin: 0; color: #667085; font-size: 0.88rem; }
.module-heading .btn { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0 0.85rem; }
.table-count { color: #667085; font-size: 0.83rem; font-weight: 600; }
.search-field { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #344054; font-size: 0.84rem; font-weight: 600; }
.search-field input { width: 220px; min-height: 2.35rem; padding: 0.4rem 0.7rem; border: 1px solid #d9e0e8; border-radius: 0.35rem; background: #fff; }
.product-table th { white-space: nowrap; }
.product-table td { padding-top: 0.8rem; padding-bottom: 0.8rem; }
.table-subtext { display: block; margin-top: 0.12rem; color: #98a2b3; font-size: 0.72rem; }
.stock-pill { display: inline-flex; align-items: center; padding: 0.28rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.stock-pill-ok { color: #16704a; background: #e7f6ee; }
.stock-pill-danger { color: #b42318; background: #feeceb; }
.status-pill, .role-pill { display: inline-flex; align-items: center; padding: 0.28rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status-active, .status-pickup { color: #16704a; background: #e7f6ee; }
.status-maintenance, .status-delivery { color: #9a6700; background: #fff4d6; }
.status-idle { color: #667085; background: #eef1f4; }
.role-pill { color: #1f5f9b; background: #e8f1fb; text-transform: none; }
.table-note { max-width: 260px; overflow: hidden; color: #667085; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { display: flex; justify-content: flex-end; gap: 0.35rem; }
.table-action { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 0.3rem; color: #fff; }
.action-view { background: #4caf50; }
.action-edit { background: #2878b9; }
.action-delete { background: #df4b4b; }
.table-action:hover { filter: brightness(0.92); }
.kpi-card { min-height: 126px; padding: 1.15rem 1.25rem; border-radius: 0.55rem; color: #fff; box-shadow: 0 4px 14px rgba(36, 48, 68, 0.1); }
.kpi-blue { background: linear-gradient(135deg, #246aa3, #3787c0); }
.kpi-green { background: linear-gradient(135deg, #248866, #35a77d); }
.kpi-orange { background: linear-gradient(135deg, #c47a27, #e4a14b); }
.kpi-red { background: linear-gradient(135deg, #bd4a4a, #de6b63); }
.kpi-label { display: block; color: rgba(255, 255, 255, 0.74); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.kpi-card strong { display: block; margin: 0.35rem 0; font-size: 1.65rem; }
.kpi-card small { color: rgba(255, 255, 255, 0.82); }
.analytics-card { height: 100%; padding: 1.25rem; border: 1px solid rgba(36, 48, 68, 0.09); border-radius: 0.55rem; background: #fff; box-shadow: 0 3px 12px rgba(36, 48, 68, 0.05); }
.analytics-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.analytics-heading h2 { margin: 0.2rem 0 0; color: #172333; font-family: var(--display); font-size: 1.3rem; }
.analytics-heading .eyebrow { margin: 0; color: #1f5f9b; font-size: 0.68rem; }
.analytics-table { margin: 0; font-size: 0.84rem; }
.analytics-table th { padding: 0.55rem 0.45rem; color: #667085; background: transparent; font-size: 0.72rem; text-transform: uppercase; }
.analytics-table td { padding: 0.7rem 0.45rem; }
.stock-watch { display: grid; gap: 0.7rem; }
.stock-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid #eef1f4; }
.stock-row:last-child { padding-bottom: 0; border-bottom: 0; }
.stock-row span { min-width: 0; }
.stock-row strong, .stock-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-row strong { color: #344054; font-size: 0.84rem; }
.stock-row small { margin-top: 0.15rem; color: #98a2b3; font-size: 0.72rem; }
.stock-row b { font-size: 0.95rem; }
.stock-danger { color: #b42318; }
.stock-ok { color: #16704a; }
.empty-state { padding: 2rem 1rem; color: #98a2b3; text-align: center; }
.empty-state i { display: block; margin-bottom: 0.5rem; font-size: 2rem; }
.empty-state p { margin: 0; color: #667085; font-weight: 600; }
.empty-state small { display: block; margin-top: 0.25rem; }
.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 170px;
  padding: 1.75rem 2rem;
  overflow: hidden;
  border-radius: 0.6rem;
  color: #fff;
  background: linear-gradient(120deg, #1f5f9b, #1f7a73);
}
.dashboard-welcome h2 { margin: 0.35rem 0 0.5rem; color: #fff; font-family: var(--display); font-size: 2rem; }
.dashboard-welcome p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.dashboard-welcome > i { margin-right: 2rem; color: rgba(255, 255, 255, 0.24); font-size: 6rem; }
.dashboard-welcome .eyebrow { color: #f1b36b; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; background: rgba(15, 23, 42, 0.55); }
.modal.show { display: block; }
.modal-dialog { display: flex; align-items: center; min-height: calc(100% - 2rem); max-width: 540px; margin: 1rem auto; padding: 0 1rem; }
.modal-content { width: 100%; overflow: hidden; border: 0; border-radius: 0.6rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.22); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #eaecf0; }
.modal-title { margin: 0; color: #172333; font-family: var(--display); font-size: 1.3rem; }
.modal-body { padding: 1.25rem; }
.modal-body .form-label { display: block; margin: 0 0 1rem; color: #344054; font-size: 0.86rem; font-weight: 600; }
.modal-body .form-control, .modal-body .form-select { margin-top: 0.35rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; padding-top: 0.5rem; }
.modal-open { overflow: hidden; }
.modal-backdrop { display: none; }
@media (max-width: 991.98px) {
  .layout-fixed .app-content-header { padding-top: 1rem; }
  .layout-fixed .app-content-header h1 { font-size: 1.7rem; }
}

/* Staff login */
.cabcor-login {
  min-height: 100vh;
  padding: 1.5rem;
  background: #eef2f5;
}
.login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  width: min(1080px, 100%);
  min-height: min(700px, calc(100vh - 3rem));
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(23, 35, 51, 0.14);
}
.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.5rem;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(23, 35, 51, 0.98), rgba(31, 73, 83, 0.96)),
    #172333;
}
.login-aside::before,
.login-aside::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}
.login-aside::before { width: 360px; height: 360px; right: -180px; bottom: -130px; }
.login-aside::after { width: 240px; height: 240px; right: -95px; bottom: -70px; }
.login-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: #fff;
  text-decoration: none;
}
.login-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.login-brand strong { font-size: 1.1rem; letter-spacing: 0.02em; }
.login-brand small { margin-top: 0.2rem; color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; }
.login-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.12rem;
  border-radius: 0.7rem;
  color: #172333;
  background: #f1b36b;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  object-fit: contain;
}
.login-aside-copy { position: relative; z-index: 1; max-width: 25rem; margin: auto 0 0; }
.login-kicker {
  margin: 0 0 0.8rem;
  color: #f1b36b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login-aside h1 {
  max-width: 10ch;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1.02;
}
.login-aside-copy > p:last-child { max-width: 24rem; margin: 0; color: rgba(255, 255, 255, 0.7); }
.login-aside-art { position: relative; z-index: 1; height: 9rem; margin-top: 1rem; color: #f1b36b; }
.login-aside-art > i { position: absolute; left: 1.5rem; bottom: 1.5rem; font-size: 5rem; transform: rotate(-12deg); }
.art-line { position: absolute; display: block; height: 1px; background: rgba(241, 179, 107, 0.5); transform-origin: left; }
.art-line-one { width: 11rem; left: 5rem; bottom: 5.4rem; transform: rotate(-14deg); }
.art-line-two { width: 8rem; left: 6.5rem; bottom: 3.4rem; transform: rotate(19deg); }
.art-dot { position: absolute; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #f1b36b; }
.art-dot-one { left: 15rem; bottom: 6rem; }
.art-dot-two { left: 13rem; bottom: 2rem; }
.login-aside-foot { position: relative; z-index: 1; margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 0.78rem; }
.login-aside-foot i { margin-right: 0.35rem; color: #8ed1b3; }
.login-form-pane { display: grid; place-items: center; padding: 2rem clamp(1.25rem, 5vw, 5rem); background: #fff; }
.login-form-pane .login-box { width: min(390px, 100%); }
.login-form-pane .card { padding: 0; border: 0; box-shadow: none !important; }
.login-card-body { padding: 0; }
.login-welcome { margin: 0 0 0.4rem; color: #d96a3b; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.login-title { margin: 0; color: #172333; font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; }
.login-subtitle { margin: 0.55rem 0 2rem; color: #667085; }
.login-form-pane .form-label { color: #344054; font-size: 0.86rem; font-weight: 600; }
.login-form-pane .input-group-text { color: #667085; background: #f8fafc; border-color: #d9e0e8; }
.login-form-pane .form-control { min-height: 2.75rem; border-color: #d9e0e8; }
.login-form-pane .form-control:focus { border-color: #6b9dc8; box-shadow: 0 0 0 0.2rem rgba(31, 95, 155, 0.12); }
.login-form-pane .input-group .btn { border-color: #d9e0e8 !important; color: #667085; }
.login-submit { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; background: #1f5f9b; border-color: #1f5f9b; }
.login-submit:hover { background: #174b7b; border-color: #174b7b; }
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 2rem 0 1.15rem; color: #98a2b3; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.login-divider::before, .login-divider::after { flex: 1; height: 1px; content: ""; background: #eaecf0; }
.login-back { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: #526173; font-size: 0.86rem; text-decoration: none; }
.login-back:hover { color: #1f5f9b; }
.login-legal { margin: 1.25rem 0 0; color: #98a2b3; font-size: 0.75rem; text-align: center; }
.cabcor-login .alert { border: 0; }
@media (max-width: 767.98px) {
  .cabcor-login { padding: 0; }
  .login-shell { display: block; min-height: 100vh; border-radius: 0; }
  .login-aside { min-height: 17rem; padding: 1.5rem; }
  .login-aside-copy { margin-top: 2rem; }
  .login-aside h1 { font-size: 2rem; }
  .login-aside-copy > p:last-child, .login-aside-art, .login-aside-foot { display: none; }
  .login-form-pane { min-height: calc(100vh - 17rem); padding: 2.5rem 1.5rem; }
  .login-form-pane .login-logo { margin-bottom: 1.5rem; font-size: 1.4rem; text-align: left; }
  .login-form-pane .login-logo a { color: #172333; text-decoration: none; }
}
@media (max-width: 575.98px) {
  .module-heading, .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { justify-content: space-between; }
  .search-field input { flex: 1; width: auto; }
  .analytics-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-welcome { min-height: 150px; padding: 1.25rem; }
  .dashboard-welcome h2 { font-size: 1.55rem; }
  .dashboard-welcome > i { margin-right: 0; font-size: 4rem; }
  .modal-dialog { min-height: calc(100% - 1rem); margin: 0.5rem auto; }
}

/* POS storefront */
.pos-body { min-height: 100vh; color: #243044; background: #eef2f5; }
.sidebar-menu .nav-treeview[hidden] { display: none !important; }
.admin-profile-icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; color: #667085; background: transparent; font-size: 1.35rem; }
.admin-profile-icon:hover, .admin-profile-icon:focus-visible { color: #1f5f9b; background: #f2f4f7; outline: 0; }
.admin-profile-menu { position: relative; }
.admin-profile-dropdown { position: absolute; z-index: 40; top: calc(100% + 0.55rem); right: 0; width: 13rem; overflow: hidden; border: 1px solid #dfe5eb; border-radius: 0.65rem; background: #fff; box-shadow: 0 0.75rem 1.75rem rgba(23, 35, 51, 0.16); }
.admin-profile-heading { display: grid; gap: 0.15rem; padding: 0.8rem 0.95rem; border-bottom: 1px solid #eaecf0; }
.admin-profile-heading strong { color: #172333; font-size: 0.82rem; }
.admin-profile-heading small { color: #98a2b3; font-size: 0.7rem; }
.admin-profile-action { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.7rem 0.95rem; border: 0; color: #16704a; background: #fff; font-size: 0.78rem; text-align: left; }
.admin-profile-action:hover { background: #f0faf5; }
.admin-profile-logout { display: flex; align-items: center; gap: 0.45rem; width: 100%; padding: 0.7rem 0.95rem; border: 0; color: #b42318; background: #fff; font-size: 0.78rem; text-align: left; }
.admin-profile-logout:hover { background: #fff4f2; }
.pos-auth-gate { display: grid; place-items: center; width: 100%; min-height: 100vh; padding: 2rem; background: radial-gradient(circle at top left, rgba(31, 95, 155, 0.12), transparent 30%), #f4f6f9; }
.pos-auth-card { display: block; width: min(420px, calc(100vw - 2rem)); padding: 2.5rem; border: 1px solid #e1e6eb; border-radius: 0.8rem; background: #fff; box-shadow: 0 1rem 3rem rgba(23, 35, 51, 0.1); text-align: center; }
.pos-auth-card .pos-brand-mark { margin: 0 auto 1.25rem; }
.pos-auth-card .eyebrow { margin: 0; color: #1f5f9b; }
.pos-auth-card h1 { margin: 0.45rem 0 0.65rem; color: #172333; font-family: var(--display); font-size: 2rem; }
.pos-auth-card p:not(.eyebrow) { margin: 0 0 1.5rem; color: #667085; }
.pos-auth-card .pos-checkout-btn { text-decoration: none; }
.pos-shell { min-height: 100vh; }
.pos-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 4.4rem; padding: 0 clamp(1rem, 3vw, 2.75rem); border-bottom: 1px solid #dfe5eb; background: rgba(255, 255, 255, 0.96); box-shadow: 0 2px 12px rgba(23, 35, 51, 0.05); }
.pos-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #172333; text-decoration: none; }
.pos-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.pos-brand strong { font-size: 1.05rem; }
.pos-brand small { margin-top: 0.25rem; color: #98a2b3; font-size: 0.7rem; }
.pos-brand-mark { display: block; width: 2.2rem; height: 2.2rem; padding: 0.12rem; border-radius: 0.55rem; object-fit: contain; background: #fff; }
.pos-header-meta { display: flex; align-items: center; gap: 1.25rem; }
.pos-staff-name { max-width: 10rem; overflow: hidden; color: #667085; font-size: 0.78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pos-status { color: #16704a; font-size: 0.78rem; font-weight: 700; }
.pos-status i { margin-right: 0.3rem; font-size: 0.5rem; }
.pos-preorder-menu { position: relative; }
.pos-notification { position: relative; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid transparent; border-radius: 0.4rem; color: #526173; background: transparent; font-size: 1.05rem; }
.pos-notification:hover, .pos-notification[aria-expanded="true"] { border-color: #d9e0e8; background: #f8fafc; color: #1f5f9b; }
.pos-notification-count { position: absolute; top: -0.2rem; right: -0.2rem; min-width: 1rem; height: 1rem; padding: 0 0.2rem; border-radius: 999px; color: #fff; background: #d96a3b; font-size: 0.6rem; font-weight: 700; line-height: 1rem; }
.pos-preorder-dropdown { position: absolute; z-index: 20; top: 2.75rem; right: 0; width: min(340px, calc(100vw - 2rem)); padding: 0.8rem; border: 1px solid #e1e6eb; border-radius: 0.55rem; background: #fff; box-shadow: 0 0.75rem 2rem rgba(23, 35, 51, 0.16); }
.pos-preorder-dropdown .pos-preorder-list { max-height: 18rem; margin-top: 0.6rem; }
.swal-preorder-summary { display: grid; gap: 0.55rem; margin-top: 0.4rem; text-align: left; }
.swal-preorder-summary p { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.65rem 0.75rem; border: 1px solid #e8edf2; border-radius: 0.4rem; background: #f8fafc; color: #667085; font-size: 0.82rem; }
.swal-preorder-summary strong { color: #172333; font-weight: 700; text-align: right; }
.pos-staff-link { color: #526173; font-size: 0.82rem; text-decoration: none; }
.pos-staff-link:hover { color: #1f5f9b; }
.pos-staff-link i { margin-right: 0.25rem; }
.pos-logout { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.4rem 0.65rem; border: 1px solid #d9e0e8; border-radius: 0.35rem; color: #526173; background: #fff; font-size: 0.78rem; font-weight: 600; }
.pos-logout:hover { border-color: #b42318; color: #b42318; }
.pos-main { display: grid; grid-template-columns: minmax(0, 1fr) 410px; min-height: calc(100vh - 4.4rem); }
.pos-catalog { min-width: 0; padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 3.5rem); background: linear-gradient(135deg, #f7f9fb 0%, #eef3f7 100%); }
.pos-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.pos-page-heading h1 { max-width: 42rem; margin: 0.35rem 0 0.5rem; color: #172333; font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -0.02em; }
.pos-page-heading p { margin: 0; }
.pos-clock { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.75rem; color: #526173; border: 1px solid #d9e0e8; border-radius: 0.4rem; background: #fff; font-size: 0.78rem; white-space: nowrap; }
.pos-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding: 0.8rem 0.9rem; border: 1px solid #dfe5eb; border-radius: 0.55rem; background: rgba(255, 255, 255, 0.72); }
.pos-section-title { display: flex; align-items: baseline; gap: 0.55rem; color: #172333; font-size: 1.15rem; font-weight: 700; }
.pos-section-title small { color: #98a2b3; font-size: 0.76rem; font-weight: 600; }
.pos-search { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: #98a2b3; }
.pos-search input { width: min(320px, 35vw); min-height: 2.5rem; padding: 0.45rem 0.8rem; border: 1px solid #d9e0e8; border-radius: 0.4rem; outline: 0; background: #fff; }
.pos-search input:focus { border-color: #6b9dc8; box-shadow: 0 0 0 0.2rem rgba(31, 95, 155, 0.12); }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; padding-top: 1rem; }
.pos-product { display: flex; flex-direction: column; min-height: 198px; padding: 1.1rem; border: 1px solid #dfe5eb; border-radius: 0.65rem; background: #fff; box-shadow: 0 4px 14px rgba(36, 48, 68, 0.05); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.pos-product:hover { border-color: #a9c7e1; box-shadow: 0 7px 18px rgba(36, 48, 68, 0.08); transform: translateY(-2px); }
.pos-product-disabled { opacity: 0.6; }
.pos-product-top, .pos-product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pos-product-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 0.55rem; color: #1f5f9b; background: #e8f1fb; font-size: 1.1rem; }
.pos-stock { color: #16704a; font-size: 0.7rem; font-weight: 700; }
.pos-stock i { font-size: 0.42rem; }
.pos-stock-empty { color: #b42318; }
.pos-product-body { flex: 1; padding: 1.15rem 0; }
.pos-product-body h3 { margin: 0 0 0.35rem; color: #344054; font-family: var(--font); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; }
.pos-product-body p { margin: 0; overflow: hidden; color: #98a2b3; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.pos-product-body p i { margin-right: 0.2rem; color: #8aa0b5; }
.pos-price-label { display: block; margin-bottom: 0.1rem; color: #98a2b3; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pos-product-footer strong { color: #172333; font-size: 1.05rem; }
.pos-add { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.1rem; padding: 0.35rem 0.65rem; border: 0; border-radius: 0.35rem; color: #fff; background: #1f5f9b; font-size: 0.78rem; font-weight: 700; }
.pos-add:hover { background: #174b7b; }
.pos-add:disabled { cursor: default; opacity: 0.55; }
.pos-cart { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid #dfe4ea; background: #fff; box-shadow: -8px 0 24px rgba(36, 48, 68, 0.06); }
.pos-cart-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.7rem 1.6rem 1.2rem; border-bottom: 1px solid #eaecf0; background: #fff; }
.pos-cart-header h2 { margin: 0.25rem 0 0; color: #172333; font-family: var(--display); font-size: 1.5rem; }
.pos-cart-header .eyebrow { margin: 0; color: #1f5f9b; }
.ticket-count { padding: 0.3rem 0.55rem; border-radius: 999px; color: #1f5f9b; background: #e8f1fb; font-size: 0.72rem; font-weight: 700; }
.pos-cart-content { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.6rem 1.6rem; overflow-y: auto; }
.pos-cart-empty { display: grid; place-items: center; flex: 1; min-height: 260px; color: #98a2b3; text-align: center; }
.pos-cart-empty i { margin-bottom: 0.7rem; font-size: 2.5rem; }
.pos-cart-empty p { margin: 0; color: #667085; font-weight: 700; }
.pos-cart-empty small { margin-top: 0.3rem; }
.pos-preorders { padding: 0.85rem 1.5rem 0; }
.pos-preorder-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: #344054; font-size: 0.78rem; font-weight: 700; }
.pos-preorder-heading i { margin-right: 0.25rem; color: #d96a3b; }
.pos-preorder-heading small, .pos-preorder-empty { color: #98a2b3; font-size: 0.7rem; }
.pos-preorder-list { display: grid; gap: 0.4rem; margin-top: 0.55rem; max-height: 10rem; overflow-y: auto; }
.pos-preorder { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%; padding: 0.55rem 0.65rem; border: 1px solid #f0d7c9; border-radius: 0.35rem; color: #344054; background: #fffaf7; text-align: left; }
.pos-preorder:hover { border-color: #d96a3b; background: #fff4ed; }
.pos-preorder span { display: flex; flex-direction: column; min-width: 0; }
.pos-preorder strong { overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.pos-preorder small { margin-top: 0.2rem; color: #98a2b3; font-size: 0.65rem; }
.pos-preorder b { color: #172333; font-size: 0.75rem; white-space: nowrap; }
.pos-line-items { display: grid; gap: 0.2rem; }
.pos-line-item { display: grid; gap: 0.65rem; padding: 0.9rem 0; border-bottom: 1px solid #eef1f4; }
.pos-line-main { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.pos-line-main strong { color: #344054; font-size: 0.82rem; }
.pos-line-main small { color: #98a2b3; font-size: 0.7rem; }
.pos-unit-price { display: inline-flex; align-items: center; gap: 0.35rem; color: #98a2b3; font-size: 0.68rem; font-weight: 700; }
.pos-unit-price input { width: 5.5rem; padding: 0.25rem 0.35rem; border: 1px solid #d9e0e8; border-radius: 0.25rem; color: #344054; font: inherit; font-size: 0.75rem; font-weight: 600; }
.pos-line-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.pos-line-actions > strong { margin-left: auto; color: #172333; font-size: 0.82rem; }
.pos-mini-qty { display: inline-flex; align-items: center; border: 1px solid #d9e0e8; border-radius: 0.3rem; }
.pos-mini-qty button { width: 1.65rem; height: 1.65rem; border: 0; color: #526173; background: #f8fafc; }
.pos-mini-qty span { min-width: 1.5rem; text-align: center; font-size: 0.75rem; font-weight: 700; }
.pos-remove { width: 1.6rem; height: 1.6rem; border: 0; border-radius: 0.25rem; color: #b42318; background: #feeceb; }
.pos-total { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0; padding-top: 1rem; border-top: 2px solid #172333; color: #344054; font-size: 0.85rem; font-weight: 700; }
.pos-total strong { color: #172333; font-size: 1.35rem; }
.pos-checkout { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #eaecf0; }
.pos-totals { display: grid; gap: 0.45rem; margin-top: 1rem; }
.pos-totals > div:not(.pos-total) { display: flex; justify-content: space-between; color: #667085; font-size: 0.78rem; }
.pos-discount-line { color: #16704a !important; }
.pos-discount-panel { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0.55rem; }
.pos-payment-panel { display: grid; gap: 0.55rem; margin: 0 0 0.9rem; padding: 0.8rem; border: 1px solid #e5eaf0; border-radius: 0.45rem; background: #f8fafc; }
.pos-payment-heading { display: flex; justify-content: space-between; color: #344054; font-size: 0.76rem; font-weight: 700; }
.pos-payment-heading small { color: #98a2b3; font-weight: 600; }
.pos-payment-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 1.7rem; gap: 0.4rem; }
.pos-payment-row select, .pos-payment-row input { width: 100%; margin: 0; padding: 0.45rem; border: 1px solid #d9e0e8; border-radius: 0.3rem; background: #fff; font: inherit; font-size: 0.75rem; }
.pos-payment-remove { border: 0; border-radius: 0.25rem; color: #b42318; background: #feeceb; }
.pos-split-add { justify-self: start; border: 0; color: #1f5f9b; background: transparent; font-size: 0.72rem; font-weight: 700; }
.pos-checkout label { display: block; margin: 0 0 0.85rem; color: #344054; font-size: 0.78rem; font-weight: 700; }
.pos-checkout input, .pos-checkout select, .pos-checkout textarea { display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.65rem; border: 1px solid #d9e0e8; border-radius: 0.35rem; outline: 0; background: #fff; font: inherit; font-size: 0.8rem; }
.pos-checkout input:focus, .pos-checkout select:focus, .pos-checkout textarea:focus { border-color: #6b9dc8; box-shadow: 0 0 0 0.2rem rgba(31, 95, 155, 0.12); }
.pos-checkout-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; width: 100%; min-height: 2.8rem; margin-top: 0.25rem; border: 0; border-radius: 0.4rem; color: #fff; background: #d96a3b; font-weight: 700; }
.pos-checkout-btn:hover { background: #b9532b; }
.pos-checkout-btn:disabled { opacity: 0.55; }
.pos-empty { grid-column: 1 / -1; padding: 3rem; color: #98a2b3; text-align: center; }
.pos-empty i { font-size: 2rem; }
.pos-empty p { margin: 0.5rem 0 0; color: #667085; font-weight: 700; }
@media (max-width: 900px) {
  .pos-main { grid-template-columns: 1fr; }
  .pos-cart { min-height: 520px; border-top: 1px solid #dfe4ea; border-left: 0; }
  .pos-cart-content { overflow: visible; }
}
@media (max-width: 575.98px) {
  .pos-header { padding: 0 1rem; }
  .pos-header-meta { gap: 0.6rem; }
  .pos-staff-name { display: none; }
  .pos-status { display: none; }
  .pos-catalog { padding: 1.25rem 1rem; }
  .pos-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 1.25rem; }
  .pos-clock { align-self: stretch; justify-content: center; }
  .pos-toolbar { align-items: stretch; flex-direction: column; }
  .pos-search input { width: 100%; }
  .pos-search { width: 100%; }
  .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .pos-product { min-height: 175px; padding: 0.75rem; }
  .pos-cart-header, .pos-cart-content { padding-left: 1rem; padding-right: 1rem; }
  .pos-preorder-dropdown { position: fixed; top: 4rem; right: 0.75rem; }
  .pos-logout span { display: none; }
}

/* Fix maintenance submenu visibility */
#maintenanceNav.menu-open .nav-treeview[hidden] {
  display: block !important;
}
/* Arrow rotation */
#maintenanceNav.menu-open .nav-arrow {
  transform: rotate(90deg);
  transition: transform 0.15s ease;
}
/* Ensure submenu items are visible and styled properly */
#maintenanceSubmenu {
  padding-left: 0;
  list-style: none;
}
#maintenanceSubmenu .nav-link {
  padding: 0.5rem 1rem 0.5rem 2.5rem !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}
#maintenanceSubmenu .nav-link:hover,
#maintenanceSubmenu .nav-link.active {
  color: #fff;
  background: rgba(217, 106, 59, 0.18);
}
#maintenanceSubmenu .nav-link.active {
  box-shadow: inset 3px 0 #d96a3b;
}
#maintenanceSubmenu .nav-icon {
  margin-right: 0.5rem;
}