*{
  box-sizing: border-box;
}

:root{










}







body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:none;
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  background-image: url("/Frame 1.png?v=20260703-brand");
  background-repeat: no-repeat;
  background-position: 62% 52%;
  background-size: min(52vw, 620px);
  filter: grayscale(0.15) drop-shadow(0 0 55px rgba(56, 189, 248, 0.2));
}



.mobile-menu-btn{
  display: none;
}.mobile-sidebar-backdrop{
  display: none;
}



.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.brand-mark{
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
}

.logo-img{
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 70px;
}

.brand-mark .logo-img{
  width: 100%;
  height: 100%;
}

.brand h1{
  margin: 0;
  font-size: 18px;
}

.brand p{
  margin: 3px 0 0;
  color: var(--muted);
  font-size:14px;
}

.nav-btn{
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}.logout-btn{
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.nav-btn.active{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-primary);
  border: none;
}.nav-btn:hover{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-primary);
  border: none;
}

.nav-group{
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
  overflow: hidden;
}

.nav-group[open]{
  border-color: var(--border);
}

.nav-group:has(.nav-btn.active){
  box-shadow:var(--shadow);
}

.nav-group-toggle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.nav-group-toggle::-webkit-details-marker{
  display: none;
}

.nav-group-caret{
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: var(--accent);
  background:var(--surface);
  transition: transform 160ms ease;
}

.nav-group[open] .nav-group-caret{
  transform: rotate(180deg);
}

.nav-submenu{
  display: grid;
  gap: 8px;
  padding: 0 10px 10px 18px;
}

.nav-sub-btn{
  position: relative;
  margin-bottom: 0;
  padding-left: 24px;
  border-radius: 12px;
  font-size:14px;
  background:var(--surface);
}

.nav-sub-btn::before{
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.85;
}

.logout-btn{
  margin-top: 20px;
  background:var(--surface);
}



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

.topbar h2{
  margin: 0;
}.section-head h2{
  margin: 0;
}

.live-pill{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--success);
  color: var(--success);
  background:var(--surface);
}

.staff-top-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.staff-task-alert{
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 8px 13px 8px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background:var(--surface);
  box-shadow:var(--shadow);
  cursor: pointer;
  text-align: left;
}

.staff-task-alert:hover{
  border-color: var(--border);
  transform: translateY(-1px);
}

.staff-task-alert-icon{
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 1000;
}

.staff-task-alert span:last-child{
  display: grid;
  gap: 2px;
}

.staff-task-alert strong{
  color: var(--text-primary);
  font-size:14px;
}

.staff-task-alert small{
  color: var(--muted);
  font-size:14px;
  font-weight: 900;
}

.staff-task-alert.has-overdue{
  border-color: var(--border);
  background:var(--danger-bg);
}

.staff-task-alert.has-overdue .staff-task-alert-icon{
  color: var(--danger);
  background:var(--danger-bg);
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow:var(--shadow);
}

.metric-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-action-row{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quick-pill{
  border: 1px solid var(--border);
  border-radius: 999px;
  background:var(--surface);
  color: var(--text);
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
}

.quick-pill:hover{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-primary);
}

.home-command-hero{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:var(--hero-bg);
  box-shadow:var(--shadow);
color:var(--nav-text);}.staff-mission-hero{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:var(--hero-bg);
  box-shadow:var(--shadow);
color:var(--nav-text);}

.home-command-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:none;
  background-size: 36px 36px;
}.staff-mission-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:none;
  background-size: 36px 36px;
}

.home-command-copy{
  position: relative;
  z-index: 1;
}.home-command-orb{
  position: relative;
  z-index: 1;
}.staff-mission-copy{
  position: relative;
  z-index: 1;
}.staff-mission-scan{
  position: relative;
  z-index: 1;
}

.home-command-copy h1{
  margin: 6px 0 8px;
  color: var(--text-primary);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}.staff-mission-copy h1{
  margin: 6px 0 8px;
  color: var(--text-primary);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-command-copy p{
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-weight: 800;
  line-height: 1.45;
}.staff-mission-copy p{
  margin: 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-weight: 800;
  line-height: 1.45;
}

.home-command-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-command-orb{
  width: 190px;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:var(--hero-bg);
  border: 1px solid var(--border);
color:var(--nav-text);}

.home-command-orb img{
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.35));
}

.home-command-orb span{
  color: var(--nav-text);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-ring{
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px dashed var(--border);
  animation: commandSpin 18s linear infinite;
}

@keyframes commandSpin {
  to{ transform: rotate(360deg); }
}

.command-pill{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
}

.command-pill span{
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 9px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 1000;
}

.command-status-grid .command-status-card{
  border-color: var(--border);
  background:var(--surface);
}.command-chart-card{
  border-color: var(--border);
  background:var(--surface);
}

.command-status-card span{
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size:14px;
  font-weight: 900;
}

.command-insight-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.command-insight-card{
  position: relative;
  overflow: hidden;
  min-height: 118px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background:var(--surface);
  cursor: pointer;
  box-shadow:var(--shadow);
}

.command-insight-card::after{
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -54px;
  top: -54px;
  border-radius: 50%;
  background:var(--surface);
}

.command-insight-card:hover{
  transform: translateY(-1px);
  border-color: var(--border);
}

.command-insight-card span{
  color: var(--muted);
  font-weight: 900;
}.command-insight-card small{
  color: var(--muted);
  font-weight: 900;
}

.command-insight-card span{
  color: var(--text-primary);
  font-size:14px;
  text-transform: uppercase;
}

.command-insight-card strong{
  color: var(--text-primary);
  font-size: 23px;
  overflow-wrap: anywhere;
}

.command-insight-card.danger-signal{
  border-color: var(--border);
  background:var(--danger-bg);
}

.pipeline-card p{
  color: var(--text-secondary);
  font-size: 0;
}

.pipeline-card p::after{
  content: "RFQ to Approval to Invoice to Payment";
  font-size: 15px;
  font-weight: 900;
}

.staff-mission-hero{
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
}

.staff-mission-copy span{
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 1000;
}

.staff-mission-scan{
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text-primary);
  background:var(--surface);
  box-shadow:var(--shadow);
  cursor: pointer;
}

.staff-mission-scan span{
  font-weight: 900;
  text-transform: uppercase;
  font-size:14px;
}

.staff-mission-scan strong{
  font-size: 25px;
}

.staff-mission-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.staff-mission-tile{
  min-width: 0;
  min-height: 132px;
  display: grid;
  gap: 8px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background:var(--surface);
  cursor: pointer;
}

.staff-mission-tile:hover{
  border-color: var(--border);
  transform: translateY(-1px);
}

.staff-mission-tile span{
  color: var(--muted);
  font-weight: 900;
}.staff-mission-tile small{
  color: var(--muted);
  font-weight: 900;
}

.staff-mission-tile strong{
  color: var(--text-primary);
  font-size: 28px;
  overflow-wrap: anywhere;
}

.staff-mission-tile.danger-tile{
  background:var(--danger-bg);
  border-color: var(--border);
}

.staff-shift-console{
  background:var(--surface);
}

.cell-subtext{
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size:14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.time-pair{
  display: grid;
  gap: 6px;
}

.time-pair span{
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background:var(--surface);
  font-size:14px;
  font-weight: 800;
}

.table-action-stack{
  display: grid;
  gap: 8px;
  min-width: 86px;
}

.staff-action-hub{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.staff-action-card{
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow:var(--shadow);
}

.staff-action-card:hover{
  border-color: var(--border);
  transform: translateY(-1px);
}

.staff-action-card span{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-action-card strong{
  font-size: 20px;
}

.staff-action-card small{
  color: var(--muted);
  font-size:14px;
  font-weight: 700;
  line-height: 1.35;
}

.staff-home-metrics{
  grid-template-columns: minmax(260px, 420px);
}

.staff-sidebar-profile{
  display: none;
}

.staff-profile-shell{
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.staff-profile-hero{
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:var(--hero-bg);
color:var(--nav-text);}

.staff-avatar{
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  background:var(--surface);
  box-shadow:var(--shadow);
  font-size: 42px;
  font-weight: 900;
}

.staff-avatar.small{
  width: 74px;
  height: 74px;
  font-size: 26px;
}

.staff-profile-hero h2{
  margin: 0;
  font-size: 30px;
}

.staff-role-pill{
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background:var(--surface);
  font-weight: 900;
}

.profile-block h3{
  margin: 0 0 12px;
  color: var(--muted);
  font-size:14px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.profile-list{
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background:var(--surface);
}

.profile-row{
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}.profile-action{
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.profile-row:last-child{
  border-bottom: 0;
}.profile-action:last-child{
  border-bottom: 0;
}

.profile-row span{
  color: var(--muted);
  font-weight: 800;
}.profile-action span{
  color: var(--muted);
  font-weight: 800;
}

.profile-row strong{
  overflow-wrap: anywhere;
}.profile-action strong{
  overflow-wrap: anywhere;
}

.profile-action{
  cursor: pointer;
}

.profile-action:hover{
  background:var(--surface-muted);
}

.profile-action strong::after{
  content: ">";
  float: right;
  color: var(--accent);
}

.danger-link span{
  color: var(--danger);
}.danger-link strong{
  color: var(--danger);
}

.dashboard-kpis .card{
  min-height: 132px;
}

.dashboard-kpis p{
  margin: 14px 0 6px;
  font-size: 24px;
}

.dashboard-kpis span{
  color: var(--muted);
  font-size:14px;
}.rank-list span{
  color: var(--muted);
  font-size:14px;
}

.kpi-teal{
  background:var(--surface);
}

.kpi-blue{
  background:var(--surface);
}

.kpi-green{
  background:var(--surface);
}

.rank-list{
  display: grid;
  gap: 10px;
}

.rank-item{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:var(--surface);
}

.invoice-item-row{
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(120px, 0.6fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.invoice-item-row label{
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.invoice-item-row input{
  margin-bottom: 0;
}

.invoice-remove-btn{
  margin-top: 24px;
}

.manual-invoice-dialog{
  width: min(1160px, calc(100vw - 32px));
}

.manual-invoice-dialog .stock-dialog-grid{
  grid-template-columns: minmax(290px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.manual-invoice-dialog .dialog-card{
  min-width: 0;
}

.manual-invoice-dialog .invoice-item-row{
  grid-template-columns: minmax(260px, 1fr) minmax(92px, 0.35fr) minmax(132px, 0.45fr) 96px;
  align-items: end;
}

.manual-invoice-dialog .invoice-remove-btn{
  width: 100%;
  min-height: 42px;
  margin-top: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.gst-control-panel{
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.gst-control-panel.gst-off{
  border-color: var(--border);
  background:var(--surface);
}

.gst-control-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gst-control-head div{
  display: grid;
  gap: 4px;
}

.gst-control-head strong{
  color: var(--text-primary);
  font-size: 14px;
}

.gst-control-head span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}.gst-rate-field span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}.manual-invoice-summary span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.gst-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gst-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gst-toggle-track{
  position: relative;
  width: 46px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:var(--track);
  box-shadow:var(--shadow);
}

.gst-toggle-track::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background:var(--track);
  transition: transform 0.18s ease, background 0.18s ease;
}

.gst-toggle input:checked + .gst-toggle-track::after{
  transform: translateX(22px);
  background:var(--track);
}

.gst-toggle b{
  color: var(--text-primary);
  font-size:14px;
}

.gst-rate-field{
  display: grid;
  gap: 7px;
}

.gst-rate-field input:disabled{
  color: var(--text-primary);
  border-color: var(--control-border);
  background:var(--surface);
}

.manual-invoice-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.manual-invoice-summary div{
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.manual-invoice-summary strong{
  color: var(--text-primary);
  font-size: 18px;
}

.manual-invoice-summary .manual-invoice-total{
  border-color: var(--border);
  background:var(--surface);
}

.expense-dialog-panel{
  width: min(1120px, calc(100vw - 32px));
}

.expense-dialog-shell{
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.expense-dialog-shell .dialog-card{
  min-width: 0;
}

.expense-money-card{
  position: relative;
  overflow: hidden;
}

.expense-money-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:var(--surface);
}

.expense-money-card > *{
  position: relative;
  z-index: 1;
}

.expense-card-head{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.expense-card-head h4{
  margin-bottom: 4px;
}

.expense-card-head p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.4;
}

.expense-status-chip{
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface-muted);
  font-size:14px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.expense-summary-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.expense-summary-strip div{
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.expense-summary-strip span{
  color: var(--muted);
  font-size:14px;
  font-weight: 1000;
}

.expense-summary-strip strong{
  color: var(--text-primary);
  font-size: 17px;
}

.expense-upload-note{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.expense-upload-note strong{
  color: var(--text-secondary);
  white-space: nowrap;
}

.expense-upload-note span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.4;
}

.customer-suggestion-list{
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin: 10px 0 12px;
  overflow-y: auto;
}

.customer-suggestion-btn{
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background:var(--surface);
  text-align: left;
}.selected-customer-card{
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  color: var(--text);
  background:var(--surface);
  text-align: left;
}

.customer-suggestion-btn{
  cursor: pointer;
}

.customer-suggestion-btn:hover{
  border-color: var(--border);
  background:var(--surface-muted);
}

.customer-suggestion-btn strong{
  color: var(--text-primary);
  font-size: 14px;
}

.customer-suggestion-btn span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
}.customer-suggestion-btn small{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
}.selected-customer-card span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
}.selected-customer-card small{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
}

.selected-customer-card{
  border-color: var(--control-border);
  background:var(--surface);
}

.customer-search-empty{
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background:var(--surface);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
}

.rank-no{
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background:var(--surface);
  color: var(--accent);
  font-weight: 900;
}

.form-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

input{
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  outline: none;
}select{
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  outline: none;
}textarea{
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  outline: none;
}

textarea{
  min-height: 96px;
  resize: vertical;
  grid-column: 1 / -1;
}

.primary-btn{
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
}.small-btn{
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
}.secondary-btn{
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
}.danger-btn{
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  border: none;
}

.primary-btn{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-primary);
}.small-btn{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-secondary);
}

.secondary-btn{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

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

.table-wrap{
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th{
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-primary);
}td{
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-primary);
}

th{
  color: var(--accent);
  text-transform: uppercase;
  font-size:14px;
}

.hidden-section{
  display: none !important;
}

.page-section{
  display: block;
  min-width: 0;
}

.mobile-card{
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  background:var(--surface);
}

.card-list{
  display: grid;
  gap: 16px;
}

.roster-card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.roster-generator-card{
  display: grid;
  gap: 18px;
}

.roster-generator-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.roster-generator-grid label{
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-generator-grid select[multiple]{
  min-height: 96px;
}

.roster-generate-btn{
  min-height: 48px;
}

.roster-shift-card{
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.roster-date-block{
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.roster-date-block strong{
  font-size: 18px;
  line-height: 1.15;
}

.roster-date-block span{
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-shift-main{
  min-width: 0;
}

.roster-shift-main h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.roster-shift-main p{
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}.roster-shift-main small{
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.roster-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  background:var(--surface);
  border: 1px solid var(--border);
  line-height: 1.35;
}

.compact-head{
  margin-bottom: 14px;
}

.card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background:var(--danger-bg);
  color: var(--accent);
  border: 1px solid var(--border);
}

.active-badge{
  background:var(--primary);
  color:var(--on-primary);
}

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

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

.money-positive{
  color: var(--success);
  font-weight: 900;
}

.money-danger{
  color: var(--danger);
  font-weight: 900;
}

.empty-state{
  color: var(--muted);
  font-weight: 800;
}.status-note{
  color: var(--muted);
  font-weight: 800;
}

.toast{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background:var(--surface);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
  z-index: 9999;
}

.app-notification-banner{
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 13000;
  width: min(520px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text-primary);
  background:var(--surface);
  box-shadow:var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-notification-banner.show{
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.app-notification-banner.success{
  border-color: var(--border);
  background:var(--success-bg);
}

.app-notification-icon{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 1000;
  box-shadow:var(--shadow);
}

.app-notification-copy{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.app-notification-copy strong{
  overflow: hidden;
  text-overflow: ellipsis;
}.app-notification-copy span{
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-notification-copy strong{
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.app-notification-copy span{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.global-qr-button{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--control-border);
  background:var(--surface);
  color: var(--text-primary);
  box-shadow:var(--shadow);
  font-weight: 1000;
  cursor: pointer;
}

.global-qr-backdrop{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 16px;
  background:var(--scrim);
  backdrop-filter: blur(12px);
}

.global-qr-backdrop.active{
  display: grid;
}

.global-qr-panel{
  width: min(430px, 100%);
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background:var(--surface);
  box-shadow:var(--shadow);
  text-align: center;
}

.global-qr-panel h3{
  margin: 0 0 8px;
}

.global-qr-panel p{
  color: var(--muted);
}

.global-qr-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  cursor: pointer;
}

.branded-qr-frame{
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 20px;
  padding: 16px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.branded-qr-frame > img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.branded-qr-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:var(--surface);
  border: 3px solid var(--border);
  box-shadow:var(--shadow);
  overflow: hidden;
}

.branded-qr-logo img{
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.global-qr-url{
  word-break: break-word;
  font-size:14px;
}

.qr-brand-strip{
  width: min(260px, 100%);
  margin: -6px auto 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:var(--surface);
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
  letter-spacing: 0;
}

.qr-brand-strip img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.settings-qr-frame{
  width: 150px;
  margin: 0;
}

.settings-qr-frame .branded-qr-logo{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border-width: 2px;
}

.settings-qr-frame .branded-qr-logo img{
  width: 20px;
  height: 20px;
}

.chart-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.chart-grid .card{
  min-height: 410px;
  overflow: hidden;
}

.command-chart-card{
  position: relative;
  border-radius: 18px;
  padding: 18px;
  background:var(--surface);
  border-color: var(--border);
  box-shadow:var(--shadow);
}

.command-chart-card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:none;
  background-size: 28px 28px;
  opacity:1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
}

.command-chart-card::after{
  content: "";
  position: absolute;
  inset: auto 18px 14px;
  height: 1px;
  background:var(--surface);
  pointer-events: none;
}

.chart-grid canvas{
  width: 100% !important;
  height: 320px !important;
  max-height: 320px !important;
  position: relative;
  z-index: 1;
}

.expense-chart-grid .card{
  min-height: 360px;
}

.finance-chart-card{
  min-height: 360px;
}

.supplier-intelligence-card{
  margin-top: 22px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.supplier-intelligence-card .secondary-btn{
  white-space: nowrap;
}

.supplier-intelligence-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:none;
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

.supplier-intelligence-head{
  position: relative;
  z-index: 1;
}.supplier-intelligence-grid{
  position: relative;
  z-index: 1;
}.supplier-exposure-strip{
  position: relative;
  z-index: 1;
}

.supplier-intelligence-head{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.supplier-head-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supplier-head-actions span{
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
  font-size:14px;
  font-weight: 900;
}

.supplier-intelligence-head h3{
  margin: 4px 0 6px;
  font-size: 26px;
}

.supplier-intelligence-head p{
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.45;
}

.panel-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-kicker::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.supplier-intelligence-grid{
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.12fr) minmax(280px, 1fr);
  gap: 18px;
}

.supplier-orbit-card{
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}.supplier-flow-card{
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}.supplier-queue-card{
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.supplier-orbit-canvas{
  height: 232px;
  position: relative;
  display: grid;
  place-items: center;
}

.supplier-orbit-canvas canvas{
  width: 100% !important;
  height: 226px !important;
}

.supplier-orbit-core{
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.supplier-orbit-core span{
  color: var(--muted);
}.supplier-orbit-core small{
  color: var(--muted);
}.supplier-orbit-stats span{
  color: var(--muted);
}.supplier-flow-label span{
  color: var(--muted);
}.supplier-flow-money span{
  color: var(--muted);
}.supplier-upcoming-item span{
  color: var(--muted);
}.supplier-exposure-card span{
  color: var(--muted);
}.supplier-exposure-card small{
  color: var(--muted);
}.mini-head span{
  color: var(--muted);
}

.supplier-orbit-core strong{
  margin: 7px 0 4px;
  color: var(--text-primary);
  font-size: 18px;
}

.supplier-orbit-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.supplier-orbit-stats div{
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.supplier-orbit-stats strong{
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.mini-head{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.mini-head h3{
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  letter-spacing: 0;
}.mini-head h4{
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  letter-spacing: 0;
}

.mini-head span{
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:var(--surface);
  font-size:14px;
  font-weight: 900;
}

.supplier-flow-list{
  display: grid;
  gap: 12px;
}.supplier-upcoming-list{
  display: grid;
  gap: 12px;
}

.supplier-flow-row{
  display: grid;
  grid-template-columns: minmax(104px, 0.78fr) minmax(120px, 1fr) minmax(100px, 0.66fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.supplier-flow-label strong{
  display: block;
}.supplier-flow-label span{
  display: block;
}.supplier-flow-money span{
  display: block;
}.supplier-flow-money strong{
  display: block;
}

.supplier-flow-label span{
  margin-top: 4px;
  font-size:14px;
}.supplier-flow-money span{
  margin-top: 4px;
  font-size:14px;
}

.supplier-flow-money{
  text-align: right;
}

.supplier-flow-money strong{
  margin-top: 4px;
  color: var(--text-primary);
}

.supplier-flow-track{
  height: 13px;
  border-radius: 999px;
  overflow: hidden;
  background:var(--track);
  border: 1px solid var(--border);
}

.supplier-flow-fill{
  display: block;
  height: 100%;
  border-radius: inherit;
  background:var(--series-1);
  box-shadow:var(--shadow);
  position: relative;
}

.supplier-flow-fill i{
  position: absolute;
  inset: 0 0 0 auto;
  display: block;
  background:var(--series-1);
}

.supplier-upcoming-item{
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background:var(--surface);
}

.supplier-payment-rank{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-primary) !important;
  font-weight: 900;
  background:var(--surface);
}

.finance-risk-queue{ grid-column: 1 / -1; }
.finance-risk-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}
.finance-risk-item > div:first-child{ display: grid; gap: 6px; }
.finance-risk-item small{ color: var(--muted, #94a3b8); }
.finance-risk-banner{
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:var(--surface);
}
.finance-risk-banner.high{ border-color: var(--border); background:var(--surface); }
.finance-risk-banner span{ color: var(--muted, #cbd5e1); }
.finance-bank-summary{ display: grid; gap: 8px; }
.finance-bank-summary strong{ font-size: 1.25rem; letter-spacing: .04em; }
.finance-bank-summary button{ justify-self: start; }

@media (max-width: 720px) {
  .finance-risk-item{ align-items: stretch; flex-direction: column; }
  .finance-risk-item .finance-row-actions{ width: 100%; }
  .finance-risk-item .finance-row-actions button{ flex: 1; }
}

.supplier-upcoming-item strong{
  display: block;
}.supplier-upcoming-item span{
  display: block;
}

.supplier-upcoming-item > div:last-child{
  text-align: right;
}

.supplier-upcoming-item > div:last-child strong{
  color: var(--text-primary);
}

.supplier-exposure-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.supplier-exposure-card{
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:var(--surface);
}

.supplier-exposure-card strong{
  display: block;
}.supplier-exposure-card small{
  display: block;
}

.supplier-exposure-card strong{
  margin: 7px 0 5px;
  color: var(--text-primary);
  font-size: 18px;
}

.compact-empty{
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background:var(--surface);
}

.compact-head{
  margin-bottom: 12px;
  align-items: center;
}

.compact-head h3{
  margin: 0 0 4px;
}

.compact-head p{
  margin: 0;
}

.register-control-panel{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 10px 0 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.register-control-panel strong{
  display: block;
  color: var(--text);
  font-size:14px;
  letter-spacing: 0;
}

.register-control-panel span{
  color: var(--muted);
  font-size:14px;
}

.register-control-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.register-control-actions label{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size:14px;
}

.register-control-actions select{
  width: auto;
  min-width: 86px;
  height: 38px;
  padding: 0 12px;
}

.register-control-actions button{
  min-height: 38px;
}

.login-page{
  display: grid;
  place-items: center;
  height: 100vh;
}

.login-shell{
  width: 100%;
  display: grid;
  place-items: center;
}

.login-card{
  width: 420px;
  max-width: 92vw;
  padding: 32px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  text-align: center;
}

.login-logo-box{
  width: 176px;
  height: 176px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.login-logo{
  width: 176px !important;
  max-width: 176px !important;
  height: auto !important;
  max-height: 176px !important;
  object-fit: contain !important;
}

.login-card label{
  display: block;
  text-align: left;
  margin: 10px 0 6px;
  font-weight: 800;
  font-size:14px;
}

.login-card input{
  margin-bottom: 12px;
}

.register-privacy{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin: 8px 0 6px;
  color: var(--muted);
  font-size:14px;
  line-height: 1.35;
}

.register-privacy input{
  width: auto;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.login-btn{
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-primary);
  font-weight: 900;
  cursor: pointer;
}

.status{
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}

tr:hover td{
  background:var(--surface-muted);
}

.muted-text{
  color: var(--muted);
  font-size:14px;
}

.success-text{
  color: var(--success);
  font-size:14px;
}

.stock-toolbar{
  max-width: 280px;
  margin-bottom: 20px;
}

.stock-table-card{
  border-color: var(--border);
}

.stock-table-card td{
  vertical-align: top;
}.stock-table-card th{
  vertical-align: top;
}

.icon-btn{
  min-width: 62px;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  margin: 2px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 900;
  background:var(--surface);
}

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

.file-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.expense-file-list{
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}

.expense-file-row{
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:var(--surface);
}

.file-action-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.file-badge-btn{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent);
  background:var(--surface-muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.file-badge-btn:hover{
  border-color: var(--border);
  background:var(--surface-muted);
}

.file-row a{
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.file-row small{
  display: block;
}

.mini-danger{
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 8px;
  background:var(--danger-bg);
  color: var(--danger);
  font-size:14px;
  font-weight: 900;
  cursor: pointer;
}

.access-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.access-check{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:var(--surface);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.access-check:hover{
  border-color: var(--border);
  background:var(--surface-muted);
}.access-toggle-row:hover{
  border-color: var(--border);
  background:var(--surface-muted);
}

.access-switch-card .access-switch-copy{
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.access-switch-control{
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 30px;
  flex: 0 0 54px;
  align-items: center;
}

.access-switch-input{
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.access-switch-ui{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.access-switch-ui > span{
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:var(--surface);
  box-shadow:var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}

.access-switch-input:checked + .access-switch-ui{
  border-color: var(--control-border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.access-switch-input:checked + .access-switch-ui > span{
  transform: translateX(24px);
  background:var(--surface);
}

.access-switch-input:focus-visible + .access-switch-ui{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.stock-dialog-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.single-dialog-grid{
  grid-template-columns: 1fr;
}

.payment-summary-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.payment-summary-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:var(--surface);
}

.payment-summary-card span{
  display: block;
  color: var(--muted);
  font-size:14px;
  font-weight: 900;
  margin-bottom: 7px;
}.field-label{
  display: block;
  color: var(--muted);
  font-size:14px;
  font-weight: 900;
  margin-bottom: 7px;
}

.payment-summary-card strong{
  display: block;
  font-size: clamp(20px, 2.2vw, 28px);
}

.payment-dialog-grid{
  grid-template-columns: minmax(300px, 0.75fr) minmax(460px, 1.25fr);
}

.mini-table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mini-table-wrap table{
  min-width: 680px;
}

.statement-search-bar{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0;
}

.statement-results{
  display: grid;
  gap: 12px;
}

.statement-result-card{
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:var(--surface);
}

.statement-result-card strong{
  display: block;
}.statement-result-card span{
  display: block;
}

.statement-result-card > div:first-child span{
  color: var(--muted);
  margin-top: 4px;
  font-size:14px;
}

.statement-result-metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.statement-result-metrics span{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px;
  background:var(--surface);
  font-size:14px;
  font-weight: 900;
}

.dialog-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:var(--surface);
}

.dialog-card h4{
  margin: 0 0 12px;
}

.dialog-card input{
  margin-bottom: 12px;
}.dialog-card select{
  margin-bottom: 12px;
}.dialog-card textarea{
  margin-bottom: 12px;
}

.dialog-card textarea{
  min-height: 96px;
  resize: vertical;
}

.form-field{
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-field span{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.form-field input{
  margin-bottom: 0;
}.form-field select{
  margin-bottom: 0;
}.form-field textarea{
  margin-bottom: 0;
}.dialog-card .form-field input{
  margin-bottom: 0;
}

.labelled-grid{
  align-items: end;
  margin-bottom: 12px;
}

.material-live-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.material-live-summary div{
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:var(--surface);
}

.material-live-summary span{
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.25;
}

.material-live-summary strong{
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

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

.split-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portal-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}.public-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.portal-links a{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}.secondary-link{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}.privacy-check a{
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.portal-links a:hover{
  text-decoration: underline;
}.secondary-link:hover{
  text-decoration: underline;
}.privacy-check a:hover{
  text-decoration: underline;
}

.public-shell{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 44px 0;
}

.public-hero{
  min-height: 34vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 22px 0 28px;
}

.public-logo{
  width: 196px;
  max-width: 100%;
  height: auto;
}

.eyebrow{
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-hero h1{
  max-width: 720px;
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.public-hero p:not(.eyebrow){
  max-width: 680px;
  color: var(--nav-text);
  font-size: 16px;
}

.public-card h2{
  margin-top: 0;
}

.privacy-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  color: var(--text-primary);
  font-weight: 800;
}

.privacy-check input{
  width: auto;
  margin-top: 2px;
}

.dialog-backdrop{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background:var(--scrim);
  z-index: 13000;
}

.dialog-backdrop.active{
  display: grid;
}

.dialog-panel{
  width: min(560px, 100%);
  background:var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow:var(--shadow);
}

body.staff-dialog-open .mobile-menu-btn{
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.92);
}

.dialog-panel.wide-dialog{
  width: min(1120px, calc(100vw - 32px));
  max-height: 90vh;
  overflow-y: auto;
}

.dialog-panel.material-dialog{
  width: min(1320px, calc(100vw - 32px));
}

.dialog-panel.supplier-dialog{
  width: min(980px, calc(100vw - 32px));
}

.dialog-panel.supplier-dialog .stock-dialog-grid{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.dialog-panel.supplier-dialog .dialog-card{
  padding: 20px;
}

.dialog-panel.supplier-dialog input{
  min-height: 46px;
}.dialog-panel.supplier-dialog select{
  min-height: 46px;
}.dialog-panel.supplier-dialog textarea{
  min-height: 46px;
}

.dialog-panel.supplier-dialog textarea{
  min-height: 120px;
}

.dialog-panel.compliance-dialog{
  width: min(1180px, calc(100vw - 32px));
}

.compliance-dialog-grid{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

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

.dialog-panel h3{
  margin: 0 0 14px;
}

.dialog-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.settings-grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.system-action-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.system-action{
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.compact-head{
  margin-bottom: 12px;
}

.compliance-register{
  display: grid;
  gap: 18px;
}

.compliance-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compliance-card{
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.compliance-card-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compliance-card h4{
  margin: 0 0 4px;
}

.compliance-card p{
  margin: 0;
}

.status-chip{
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background:var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
}

.compliance-meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size:14px;
}

.warning-strip{
  padding: 9px 11px;
  border-radius: 10px;
  background:var(--warning-bg);
  border: 1px solid var(--border);
  color: var(--warning);
  font-size:14px;
  font-weight: 900;
}

.compliance-files{
  display: grid;
  gap: 4px;
}

.inline-actions{
  justify-content: flex-start;
  margin-top: 4px;
}

.forms-library{
  display: grid;
  gap: 18px;
}

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

.form-card{
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.form-card.chart-form-card{
  border-color: var(--border);
  background:var(--surface);
}

.form-visual{
  position: relative;
  display: grid;
  min-height: 126px;
  margin-bottom: 2px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.form-visual::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:none;
  background-size: 20px 20px;
  opacity: 0.46;
}

.form-visual::after{
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 104px;
  height: 104px;
  border: 16px solid var(--border);
  border-radius: 50%;
}

.form-visual-screen{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  width: min(156px, 72%);
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.form-visual-screen span{
  display: block;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow:var(--shadow);
}

.form-visual-screen span:nth-child(1){
  height: 44%;
}

.form-visual-screen span:nth-child(2){
  height: 78%;
}

.form-visual-screen span:nth-child(3){
  height: 58%;
}

.form-visual-badge{
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-visual-hygiene .form-visual-screen{
  width: min(180px, 78%);
}.form-visual-ppe .form-visual-screen{
  width: min(180px, 78%);
}.form-visual-machinery-chart .form-visual-screen{
  width: min(180px, 78%);
}.form-visual-hazard-chart .form-visual-screen{
  width: min(180px, 78%);
}

.form-visual-hygiene .form-visual-screen span{
  border-radius: 8px;
}

.form-visual-hygiene .form-visual-screen span:nth-child(1){
  height: 54%;
  background:var(--surface);
}.form-visual-hygiene .form-visual-screen span:nth-child(3){
  height: 54%;
  background:var(--surface);
}

.form-visual-ppe .form-visual-screen{
  grid-template-columns: 1fr 1fr;
}

.form-visual-ppe .form-visual-screen span{
  height: 54px;
  border-radius: 50% 50% 14px 14px;
  background:var(--surface);
}

.form-visual-ppe .form-visual-screen span:nth-child(3){
  grid-column: 1 / -1;
  height: 18px;
  border-radius: 999px;
  background:var(--surface);
}

.form-visual-machinery-chart .form-visual-screen{
  grid-template-columns: repeat(4, 1fr);
}

.form-visual-machinery-chart .form-visual-screen span{
  height: 34px;
  border-radius: 8px;
  background:var(--surface);
}

.form-visual-machinery-chart .form-visual-screen span:nth-child(2){
  height: 66px;
}

.form-visual-hazard-chart{
  border-color: var(--border);
}

.form-visual-hazard-chart .form-visual-screen{
  grid-template-columns: 1fr;
  place-items: center;
}

.form-visual-hazard-chart .form-visual-screen span{
  width: 62px;
  height: 62px;
  clip-path: polygon(50% 0, 100% 90%, 0 90%);
  border-radius: 0;
  background:var(--surface);
}

.form-visual-hazard-chart .form-visual-screen span:nth-child(2){
  display: none;
}.form-visual-hazard-chart .form-visual-screen span:nth-child(3){
  display: none;
}

.form-visual-safety .form-visual-screen span{
  background:var(--surface);
}.form-visual-incident .form-visual-screen span{
  background:var(--surface);
}.form-visual-risk .form-visual-screen span{
  background:var(--surface);
}.form-visual-visitor .form-visual-screen span{
  background:var(--surface);
}

.form-visual-dispatch .form-visual-screen span{
  border-radius: 7px;
  background:var(--surface);
}.form-visual-client .form-visual-screen span{
  border-radius: 7px;
  background:var(--surface);
}.form-visual-contract .form-visual-screen span{
  border-radius: 7px;
  background:var(--surface);
}.form-visual-staff .form-visual-screen span{
  border-radius: 7px;
  background:var(--surface);
}

.form-card h4{
  margin: 0;
}

.form-card p{
  margin: 0;
  color: var(--muted);
  font-size:14px;
  line-height: 1.45;
}

.competitor-card-grid{
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.competitor-card{
  align-content: stretch;
  min-height: 0;
  gap: 14px;
}

.competitor-card-head{
  display: grid;
  gap: 10px;
}

.competitor-card h4{
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.25;
}

.competitor-info-grid{
  display: grid;
  gap: 8px;
}

.competitor-info-row{
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:var(--surface);
}

.competitor-info-row span{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.competitor-info-row strong{
  min-width: 0;
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.competitor-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  align-self: end;
  margin-top: 4px;
}

.competitor-actions button{
  width: 100%;
  min-height: 38px;
  margin: 0;
}

.system-action strong{
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
}

.qr-tool-card{
  border-color: var(--border);
}

.qr-preview-panel{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.qr-preview-panel img{
  width: 180px;
  height: 180px;
  padding: 10px;
  border-radius: 14px;
  background:var(--surface);
}

.qr-preview-panel strong{
  display: block;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 8px;
}

.qr-preview-panel p{
  margin: 0;
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.system-action span{
  color: var(--muted);
  font-size:14px;
}

.shift-modal .dialog-panel{
  width: min(520px, 100%);
  text-align: center;
}

.shift-quote{
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-primary);
}

.shift-subtext{
  color: var(--muted);
  font-weight: 800;
}

.timesheet-group-list{
  display: grid;
  gap: 16px;
}

.timesheet-group{
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
  overflow: hidden;
}

.timesheet-group-head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background:var(--surface);
}

.timesheet-group-head h3{
  margin: 0;
  font-size: 16px;
}

.timesheet-group-head p{
  margin: 4px 0 0;
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.timesheet-total{
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {






  .mobile-menu-btn{
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 10001;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .mobile-menu-btn span{
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }

  .mobile-sidebar-backdrop{
    position: fixed;
    inset: 0;
    z-index: 9998;
    background:var(--scrim);
    backdrop-filter: blur(5px);
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    display: block;
  }





  .brand{
    margin-bottom: 24px;
  }

  .staff-portal .brand{
    display: none;
  }

  .staff-sidebar-profile{
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin: 0 -18px 22px;
    padding: 20px 18px 22px;
    border-bottom: 1px solid var(--border);
    background:var(--nav-bg);
  color:var(--nav-text);}

  .staff-sidebar-profile strong{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.staff-sidebar-profile span{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.staff-sidebar-profile small{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-sidebar-profile strong{
    font-size: 18px;
  }

  .staff-sidebar-profile span{
    margin-top: 4px;
    color: var(--muted);
    font-weight: 800;
  }

  .staff-sidebar-profile small{
    width: fit-content;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--nav-text);
    background: var(--accent);
    font-weight: 900;
  }



  .staff-portal .main{
    padding: calc(64px + env(safe-area-inset-top, 0px)) 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .metric-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.chart-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.command-insight-strip{
    grid-template-columns: 1fr;
    gap: 12px;
  }.supplier-intelligence-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.form-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.settings-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.system-action-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }.invoice-item-row{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head{
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .topbar h2{
    font-size: 22px;
    line-height: 1.2;
  }.section-head h2{
    font-size: 22px;
    line-height: 1.2;
  }

  .topbar p{
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
  }.section-head p{
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
  }



  .staff-portal .topbar{
    min-height: 118px;
    justify-content: flex-end;
    padding: 18px 16px;
    background:var(--surface);
  }

  .staff-portal .topbar h2{
    font-size: 24px;
  }

  .staff-top-actions{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .staff-task-alert{
    flex: 1 1 240px;
    border-radius: 16px;
  }

  .staff-portal .topbar .live-pill{
    display: inline-flex;
    font-size:14px;
    padding: 8px 11px;
  }

  .live-pill{
    align-self: flex-start;
  }

  .dashboard-action-row{
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin-left: -2px;
    margin-right: -2px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-pill{
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size:14px;
    white-space: nowrap;
  }

  .card{
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    background:var(--surface);
    border-color: var(--border);
  }

  .staff-action-hub{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .staff-action-card{
    min-height: 104px;
    border-radius: 18px;
    padding: 16px;
  }

  .roster-card-grid{
    grid-template-columns: 1fr;
  }

  .roster-generator-grid{
    grid-template-columns: 1fr;
  }

  .roster-shift-card{
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 14px;
  }

  .roster-date-block{
    min-height: auto;
  }

  .manual-invoice-dialog .stock-dialog-grid{
    grid-template-columns: 1fr;
  }.manual-invoice-dialog .invoice-item-row{
    grid-template-columns: 1fr;
  }.expense-dialog-shell{
    grid-template-columns: 1fr;
  }

  .manual-invoice-summary{
    grid-template-columns: 1fr;
  }

  .expense-summary-strip{
    grid-template-columns: 1fr;
  }

  .expense-upload-note{
    align-items: flex-start;
    flex-direction: column;
  }

  .gst-control-head{
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-invoice-dialog .invoice-remove-btn{
    margin-top: 0;
  }

  .staff-profile-shell{
    max-width: none;
    gap: 18px;
  }

  .staff-profile-hero{
    margin-top: -4px;
    padding: 30px 16px 28px;
    border-radius: 22px;
    background:var(--hero-bg);
  color:var(--nav-text);}

  .staff-avatar{
    width: 112px;
    height: 112px;
    font-size: 40px;
  }

  .staff-profile-hero h2{
    font-size: 28px;
    text-align: center;
  }

  .profile-block h3{
    margin-left: 2px;
    font-size:14px;
    letter-spacing: 4px;
  }

  .profile-list{
    border-radius: 20px;
  }

  .profile-row{
    min-height: 64px;
    padding: 16px;
    grid-template-columns: minmax(98px, 0.62fr) minmax(0, 1fr);
  }.profile-action{
    min-height: 64px;
    padding: 16px;
    grid-template-columns: minmax(98px, 0.62fr) minmax(0, 1fr);
  }

  .card h3{
    font-size: 18px;
    line-height: 1.25;
  }

  .dashboard-kpis p{
    font-size: 22px;
  }

  .supplier-intelligence-head{
    flex-direction: column;
  }

  .supplier-intelligence-head .secondary-btn{
    width: 100%;
  }.supplier-head-actions{
    width: 100%;
  }

  .supplier-head-actions{
    justify-content: stretch;
  }

  .supplier-head-actions span{
    flex: 1 1 auto;
    justify-content: center;
  }

  .supplier-flow-row{
    grid-template-columns: 1fr;
  }

  .supplier-flow-money{
    text-align: left;
  }.supplier-upcoming-item > div:last-child{
    text-align: left;
  }

  .supplier-orbit-stats{
    grid-template-columns: 1fr;
  }

  .command-insight-card{
    min-height: 104px;
  }

  .form-grid{
    width: 100%;
  }

  input{
    min-width: 0;
    padding: 12px;
    font-size: 16px;
  }select{
    min-width: 0;
    padding: 12px;
    font-size: 16px;
  }textarea{
    min-width: 0;
    padding: 12px;
    font-size: 16px;
  }

  .primary-btn{
    min-height: 44px;
  }.small-btn{
    min-height: 44px;
  }.secondary-btn{
    min-height: 44px;
  }.danger-btn{
    min-height: 44px;
  }.logout-btn{
    min-height: 44px;
  }.nav-btn{
    min-height: 44px;
  }

  .section-head .primary-btn{
    width: 100%;
  }.section-head .secondary-btn{
    width: 100%;
  }.section-head .danger-btn{
    width: 100%;
  }

  .table-wrap{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 6px;
    overflow: visible;
  }

  table{
    min-width: 0;
  }

  th{
    padding: 10px;
    font-size:14px;
  }td{
    padding: 10px;
    font-size:14px;
  }

  .stock-table-card table{
    min-width: 0;
  }.stock-table-card{
    min-width: 0;
  }

  table.responsive-table{
    display: block;
  }

  table.responsive-table thead{
    display: none;
  }

  table.responsive-table tbody{
    display: grid;
    gap: 12px;
  }

  table.responsive-table tr{
    display: grid;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:var(--surface-muted);
    box-shadow:var(--shadow);
  }

  table.responsive-table td{
    display: grid;
    grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 36px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    word-break: break-word;
  }

  table.responsive-table td:last-child{
    border-bottom: 0;
  }

  table.responsive-table td::before{
    content: attr(data-label);
    color: var(--accent);
    font-size:14px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
  }

  table.responsive-table td:empty::after{
    content: "-";
    color: var(--muted);
  }

  table.responsive-table td button{
    width: 100%;
    margin: 3px 0;
  }table.responsive-table td .small-btn{
    width: 100%;
    margin: 3px 0;
  }table.responsive-table td .danger-btn{
    width: 100%;
    margin: 3px 0;
  }table.responsive-table td .secondary-btn{
    width: 100%;
    margin: 3px 0;
  }table.responsive-table td .icon-btn{
    width: 100%;
    margin: 3px 0;
  }

  .chart-grid .card{
    height: auto;
    min-height: 380px;
    overflow: visible;
  }

  .chart-grid canvas{
    width: 100% !important;
    height: 285px !important;
    max-height: 285px !important;
  }

  .expense-chart-grid .card{
    min-height: 320px;
    overflow: visible;
  }

  .expense-chart-grid canvas{
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
  }

  .stock-dialog-grid{
    grid-template-columns: 1fr;
  }.payment-summary-grid{
    grid-template-columns: 1fr;
  }.payment-dialog-grid{
    grid-template-columns: 1fr;
  }.statement-search-bar{
    grid-template-columns: 1fr;
  }.statement-result-card{
    grid-template-columns: 1fr;
  }.statement-result-metrics{
    grid-template-columns: 1fr;
  }.split-grid{
    grid-template-columns: 1fr;
  }.access-grid{
    grid-template-columns: 1fr;
  }.material-live-summary{
    grid-template-columns: 1fr;
  }

  .register-control-panel{
    align-items: stretch;
    flex-direction: column;
  }

  .register-control-actions{
    justify-content: stretch;
  }

  .register-control-actions label{
    width: 100%;
  }.register-control-actions select{
    width: 100%;
  }.register-control-actions button{
    width: 100%;
  }

  .invoice-item-row{
    margin-bottom: 14px;
  }

  .invoice-remove-btn{
    width: 100%;
    margin-top: 0;
  }

  .dialog-backdrop{
    align-items: start;
    padding: 10px;
    overflow-y: auto;
  }

  .dialog-panel{
    width: 100%;
    max-width: 100%;
    max-height: none;
    padding: 16px;
    border-radius: 14px;
  }.dialog-panel.wide-dialog{
    width: 100%;
    max-width: 100%;
    max-height: none;
    padding: 16px;
    border-radius: 14px;
  }

  .dialog-card{
    padding: 12px;
  }

  .dialog-panel.supplier-dialog .stock-dialog-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dialog-panel.supplier-dialog .dialog-card{
    padding: 14px;
  }

  .compliance-grid{
    grid-template-columns: 1fr;
  }.form-card-grid{
    grid-template-columns: 1fr;
  }.compliance-dialog-grid{
    grid-template-columns: 1fr;
  }.compliance-meta{
    grid-template-columns: 1fr;
  }

  .compliance-card-top{
    display: grid;
  }

  .stock-toolbar{
    max-width: none;
  }

  .card-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-actions button{
    width: 100%;
  }

  .dialog-actions{
    flex-direction: column-reverse;
  }

  .dialog-actions button{
    width: 100%;
  }

  .rank-item{
    grid-template-columns: 1fr;
    align-items: start;
  }.timesheet-group-head{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .timesheet-group-head{
    flex-direction: column;
  }

  .toast{
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }

  .public-hero{
    grid-template-columns: 1fr;
  }

  .public-hero h1{
    font-size: 32px;
  }
}

@media (max-width: 520px) {
  .home-command-hero{
    padding: 14px;
    border-radius: 18px;
  }

  .home-command-copy h1{
    font-size: 30px;
  }

  .home-command-actions{
    gap: 8px;
  }

  .command-pill{
    min-height: 40px;
    gap: 7px;
  }

  .command-pill span{
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .command-insight-strip{
    grid-template-columns: 1fr;
  }

  .command-insight-card{
    min-height: 92px;
    padding: 14px;
    border-radius: 16px;
  }

  .command-insight-card strong{
    font-size: 20px;
  }

  .chart-grid{
    gap: 14px;
  }

  .chart-grid .card{
    min-height: 360px;
    padding: 14px;
    border-radius: 18px;
  }

  .chart-grid canvas{
    height: 266px !important;
    max-height: 266px !important;
  }

  .mini-head{
    align-items: flex-start;
    gap: 8px;
  }

  .mini-head h3{
    font-size: 16px;
  }.mini-head h4{
    font-size: 16px;
  }

  .mini-head span{
    padding: 5px 8px;
    font-size:14px;
  }

  .command-status-grid .command-status-card{
    min-height: 112px;
  }

  .supplier-intelligence-card{
    border-radius: 18px;
  }

  .supplier-intelligence-head h3{
    font-size: 20px;
  }

  .supplier-intelligence-head p{
    font-size:14px;
  }

  .supplier-orbit-stats{
    grid-template-columns: repeat(3, 1fr);
  }

  .supplier-orbit-stats div{
    padding: 8px;
  }

  .supplier-orbit-stats strong{
    font-size:14px;
  }

  .supplier-exposure-strip{
    grid-template-columns: 1fr;
  }

  .mobile-menu-btn{
    top: 10px;
    left: 10px;
  }



  .brand h1{
    font-size: 16px;
  }

  .logo-img{
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .metric-grid{
    gap: 12px;
  }

  .staff-portal .metric-grid{
    grid-template-columns: 1fr 1fr;
  }

  .staff-portal .metric-grid .card{
    min-height: 104px;
  }

  .staff-portal .metric-grid .card h3{
    font-size:14px;
  }

  .staff-portal .metric-grid .card p{
    margin: 8px 0 0;
  }

  .staff-portal .metric-grid .card strong{
    font-size: 22px;
  }

  .staff-portal .metric-grid .card:nth-child(3){
    grid-column: 1 / -1;
  }

  .dashboard-action-row{
    margin-bottom: 12px;
  }

  .card{
    padding: 12px;
  }

  .command-insight-strip{
    grid-template-columns: 1fr;
  }

  .supplier-intelligence-card{
    margin-top: 16px;
    padding: 16px;
  }

  .supplier-intelligence-head h3{
    font-size: 22px;
  }

  .supplier-orbit-card{
    padding: 14px;
  }.supplier-flow-card{
    padding: 14px;
  }.supplier-queue-card{
    padding: 14px;
  }

  .supplier-orbit-canvas{
    height: 210px;
  }

  .supplier-orbit-canvas canvas{
    height: 206px !important;
  }

  .supplier-orbit-core{
    width: 126px;
    height: 126px;
  }

  .supplier-upcoming-item{
    grid-template-columns: 32px 1fr;
  }

  .supplier-upcoming-item > div:last-child{
    grid-column: 2;
  }

  table.responsive-table td{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }.profile-action{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topbar h2{
    font-size: 20px;
  }.section-head h2{
    font-size: 20px;
  }

  .live-pill{
    font-size:14px;
  }.badge{
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  :root{
    --mobile-card-radius: 22px;
  }



  body::before{
    background-size: 30px 30px;
    opacity: 0.65;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  }

  body::after{
    opacity: 0.045;
    background-position: 50% 32%;
    background-size: min(86vw, 360px);
  }

  .mobile-menu-btn{
    top: max(12px, env(safe-area-inset-top, 0px));
    left: 12px;
    width: 52px;
    height: 52px;
    gap: 6px;
    padding: 13px;
    border-radius: 17px;
    background:var(--surface);
    border-color: var(--border);
    box-shadow:var(--shadow);
  }

  .mobile-menu-btn span{
    height: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.mobile-menu-open .mobile-menu-btn{
    background:var(--page);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(2){
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-sidebar-backdrop{
    background:var(--scrim);
    backdrop-filter: blur(8px);
  }



  .brand{
    margin: 0 2px 18px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:var(--surface);
  }

  .brand h1{
    font-size: 17px;
  }

  .nav-btn{
    border-radius: 17px;
  }.logout-btn{
    border-radius: 17px;
  }.nav-group{
    border-radius: 17px;
  }

  .nav-btn{
    min-height: 50px;
    margin-bottom: 9px;
    padding: 13px 14px;
    background:var(--surface);
    border-color: var(--border);
  }.logout-btn{
    min-height: 50px;
    margin-bottom: 9px;
    padding: 13px 14px;
    background:var(--surface);
    border-color: var(--border);
  }

  .nav-btn.active{
    border-color: transparent;
    box-shadow:var(--shadow);
  }.nav-btn:hover{
    border-color: transparent;
    box-shadow:var(--shadow);
  }

  .nav-group{
    background:var(--surface);
  }

  .nav-group-toggle{
    min-height: 52px;
    padding: 14px;
  }

  .nav-submenu{
    padding: 0 10px 10px;
  }

  .nav-sub-btn{
    padding-left: 26px;
    border-radius: 14px;
  }

  .logout-btn{
    margin-top: 22px;
    background:var(--surface);
  }





  .topbar h2{
    font-size: 23px;
  }.section-head h2{
    font-size: 23px;
  }

  .topbar p{
    color: var(--text-secondary);
  }.section-head p{
    color: var(--text-secondary);
  }

  .live-pill{
    padding: 9px 12px;
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .dashboard-action-row{
    padding: 2px 2px 8px;
    scrollbar-width: none;
  }

  .dashboard-action-row::-webkit-scrollbar{
    display: none;
  }

  .quick-pill{
    min-height: 42px;
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.mobile-card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.form-card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.compliance-card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.staff-action-card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.profile-list{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }.dialog-card{
    border-radius: var(--mobile-card-radius);
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .metric-grid .card{
    min-height: 112px;
  }

  .card h3{
    font-size: 17px;
  }

  .card p{
    line-height: 1.42;
  }

  .staff-portal .topbar{
    min-height: 132px;
    border-radius: 0 0 28px 28px;
    margin: calc(-78px - env(safe-area-inset-top, 0px)) -14px 18px;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 18px 20px;
    background:var(--surface);
  }

  .staff-portal .main{
    padding-top: calc(78px + env(safe-area-inset-top, 0px));
  }

  .staff-action-hub{
    grid-template-columns: 1fr;
  }

  .staff-action-card{
    min-height: 112px;
  }

  .staff-profile-hero{
    border-radius: 26px;
    background:var(--hero-bg);
  color:var(--nav-text);}

  .staff-avatar{
    background:var(--surface);
    color: var(--text-primary);
  }

  .profile-row{
    min-height: 68px;
  }.profile-action{
    min-height: 68px;
  }

  table.responsive-table tbody{
    gap: 14px;
  }

  table.responsive-table tr{
    padding: 14px;
    border-radius: 20px;
    border-color: var(--border);
    background:var(--surface-muted);
    box-shadow:var(--shadow);
  }

  table.responsive-table td{
    grid-template-columns: minmax(118px, 36%) minmax(0, 1fr);
    min-height: 40px;
    padding: 10px 0;
  }

  table.responsive-table td::before{
    color: var(--text-primary);
  }

  table.responsive-table td button{
    min-height: 42px;
    border-radius: 14px;
  }table.responsive-table td .small-btn{
    min-height: 42px;
    border-radius: 14px;
  }table.responsive-table td .danger-btn{
    min-height: 42px;
    border-radius: 14px;
  }table.responsive-table td .secondary-btn{
    min-height: 42px;
    border-radius: 14px;
  }table.responsive-table td .icon-btn{
    min-height: 42px;
    border-radius: 14px;
  }

  .dialog-backdrop{
    padding: 12px;
  }

  .dialog-panel{
    padding: 18px;
    border-radius: 24px;
    background:var(--surface);
    box-shadow:var(--shadow);
  }.dialog-panel.wide-dialog{
    padding: 18px;
    border-radius: 24px;
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .dialog-panel h3{
    font-size: 21px;
  }

  .dialog-actions{
    gap: 10px;
    padding-top: 6px;
  }

  .dialog-actions button{
    min-height: 48px;
    border-radius: 15px;
  }

  .qr-preview-panel{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  input{
    border-radius: 15px;
    border-color: var(--control-border);
    background:var(--surface);
  }select{
    border-radius: 15px;
    border-color: var(--control-border);
    background:var(--surface);
  }textarea{
    border-radius: 15px;
    border-color: var(--control-border);
    background:var(--surface);
  }

  input:focus{
    outline: 2px solid var(--focus);
    border-color: var(--focus);
  }select:focus{
    outline: 2px solid var(--focus);
    border-color: var(--focus);
  }textarea:focus{
    outline: 2px solid var(--focus);
    border-color: var(--focus);
  }
}

@media (max-width: 520px) {
  .mobile-menu-btn{
    width: 50px;
    height: 50px;
  }





  .topbar h2{
    font-size: 21px;
  }.section-head h2{
    font-size: 21px;
  }

  .metric-grid{
    grid-template-columns: 1fr;
  }

  .staff-portal .metric-grid{
    grid-template-columns: 1fr 1fr;
  }

  .card{
    border-radius: 20px;
  }.mobile-card{
    border-radius: 20px;
  }.form-card{
    border-radius: 20px;
  }.compliance-card{
    border-radius: 20px;
  }.staff-action-card{
    border-radius: 20px;
  }.profile-list{
    border-radius: 20px;
  }.dialog-card{
    border-radius: 20px;
  }

  table.responsive-table td{
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .competitor-card-grid{
    grid-template-columns: 1fr;
  }

  .competitor-info-row{
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 900px) {


  .mobile-sidebar-backdrop{
    z-index: 9000;
    background:var(--scrim);
    backdrop-filter: blur(9px);
  }

  .mobile-menu-btn{
    z-index: 12000;
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 14px;
    border-color: var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }





  .sidebar::before{
    display: none;
  }

  .sidebar::-webkit-scrollbar{
    width: 6px;
  }

  .sidebar::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background:var(--nav-bg);
  color:var(--nav-text);}

  .sidebar .brand{
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background:var(--nav-bg);
    box-shadow:var(--shadow);
  color:var(--nav-text);}.staff-sidebar-profile{
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background:var(--nav-bg);
    box-shadow:var(--shadow);
  color:var(--nav-text);}

  .staff-portal .brand{
    display: none;
  }

  .sidebar .logo-img{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.26));
  }.staff-avatar.small{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.26));
  }

  .sidebar .brand h1{
    color: var(--nav-text);
    font-size:14px;
    line-height: 1.1;
  }.staff-sidebar-profile strong{
    color: var(--nav-text);
    font-size:14px;
    line-height: 1.1;
  }

  .sidebar .brand p{
    color: var(--nav-text);
    font-size:14px;
    font-weight: 800;
  }.staff-sidebar-profile span{
    color: var(--nav-text);
    font-size:14px;
    font-weight: 800;
  }.staff-sidebar-profile small{
    color: var(--nav-text);
    font-size:14px;
    font-weight: 800;
  }

  .staff-sidebar-profile small{
    width: fit-content;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    color:var(--nav-text);
    background:var(--nav-bg);
    font-size:14px;
  }

  .nav-btn{
    width: 100%;
    border-radius: 12px;
  }.logout-btn{
    width: 100%;
    border-radius: 12px;
  }.nav-group{
    width: 100%;
    border-radius: 12px;
  }

  .nav-btn{
    min-height: 36px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    background:var(--surface);
    border-color: var(--border);
    box-shadow:var(--shadow);
    font-size:14px;
    letter-spacing: 0;
  }.logout-btn{
    min-height: 36px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    background:var(--surface);
    border-color: var(--border);
    box-shadow:var(--shadow);
    font-size:14px;
    letter-spacing: 0;
  }.nav-group-toggle{
    min-height: 36px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    background:var(--surface);
    border-color: var(--border);
    box-shadow:var(--shadow);
    font-size:14px;
    letter-spacing: 0;
  }

  .nav-btn.active{
    color:var(--on-primary);
    background:var(--primary);
    border-color: transparent;
    box-shadow:var(--shadow);
  }.nav-btn:hover{
    color: var(--text-primary);
    background:var(--surface-muted);
    border-color: transparent;
    box-shadow:var(--shadow);
  }.nav-group:has(.nav-btn.active) > .nav-group-toggle{
    color:var(--on-primary);
    background:var(--primary);
    border-color: transparent;
    box-shadow:var(--shadow);
  }

  .nav-group{
    padding: 5px;
    background:var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 7px;
  }

  .nav-submenu{
    padding: 4px 1px 0;
  }

  .nav-sub-btn{
    min-height: 33px;
    padding-left: 12px;
    font-size:14px;
    background:var(--surface);
    border-color: var(--border);
  }

  .logout-btn{
    position: sticky;
    bottom: 0;
    margin-top: 8px;
    min-height: 38px;
    background:var(--surface);
    border-color: var(--border);
    box-shadow:var(--shadow);
  }
}

.shift-action-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}.compact-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shift-qr-console{
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.shift-qr-card{
  min-height: 100%;
}.shift-qr-instructions{
  min-height: 100%;
}

.shift-qr-card{
  display: grid;
  justify-items: center;
  text-align: center;
}

.qr-command-head{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}.shift-scan-statusbar{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.qr-command-head h3{
  margin: 0;
}

.scan-live-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background:var(--surface);
  box-shadow:var(--shadow);
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%{
    transform: scale(0.92);
    opacity: 0.72;
  }100%{
    transform: scale(0.92);
    opacity: 0.72;
  }

  50%{
    transform: scale(1.12);
    opacity: 1;
  }
}

.shift-qr-frame{
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 14px auto;
  padding: 14px;
  border-radius: 28px;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.shift-qr-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.shift-qr-countdown{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
}

.shift-qr-countdown strong{
  color: var(--text-primary);
}

.shift-token-text{
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size:14px;
}

.settings-toggle-row{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background:var(--surface);
  border: 1px solid var(--border);
}.access-toggle-row{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.settings-toggle-row span{
  display: grid;
  gap: 4px;
}.access-toggle-row span{
  display: grid;
  gap: 4px;
}

.settings-toggle-row small{
  color: var(--text-secondary);
}.access-toggle-row small{
  color: var(--text-secondary);
}

.settings-toggle-row input[type="checkbox"]{
  width: 54px;
  height: 28px;
  flex: 0 0 auto;
  accent-color: #22d3ee;
}.access-toggle-row input[type="checkbox"]{
  width: 54px;
  height: 28px;
  flex: 0 0 auto;
  accent-color: #22d3ee;
}

.access-toggle-row strong{
  color: var(--text-primary);
}

.access-toggle-row .access-switch-control{
  display: inline-flex;
  width: 54px;
  height: 30px;
  flex: 0 0 54px;
}

.access-toggle-row .access-switch-ui{
  display: block;
}

.access-toggle-row .access-switch-ui > span{
  display: block;
}

.shift-scan-panel{
  display: grid;
  gap: 12px;
}

.shift-scan-statusbar{
  justify-content: flex-start;
  width: 100%;
  border-radius: 18px;
}

.shift-scan-statusbar strong{
  color: var(--text-primary);
}

.shift-scan-statusbar small{
  margin-left: auto;
  color: var(--text-secondary);
  font-weight: 800;
}

.shift-scan-camera{
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.shift-scan-camera video{
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  object-fit: cover;
}

.shift-scan-reticle{
  position: absolute;
  inset: 13%;
  border-radius: 24px;
  border: 2px solid var(--border);
  box-shadow:var(--shadow);
  pointer-events: none;
}

.shift-scan-reticle::before{
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background:var(--surface);
  box-shadow:var(--shadow);
}.shift-scan-reticle::after{
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.shift-scan-reticle::before{
  top: 28%;
}

.shift-scan-reticle::after{
  bottom: 28%;
}

.shift-manual-panel{
  padding: 10px;
  border-radius: 16px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.shift-manual-panel summary{
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 900;
  list-style: none;
}

.shift-manual-panel summary::-webkit-details-marker{
  display: none;
}

.shift-manual-panel input{
  margin-top: 10px;
}

.shift-manual-panel .compact-actions{
  margin-top: 10px;
}

.shift-manual-panel .secondary-btn{
  width: 100%;
  color: var(--text-primary);
  background:var(--surface-muted);
  border-color: var(--border);
}

.shift-camera-actions{
  display: grid;
  gap: 8px;
}

.shift-camera-actions button{
  width: 100%;
}

.shift-qr-dialog-backdrop{
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  align-items: start;
  overflow-y: auto;
}

.shift-qr-dialog-panel{
  width: min(430px, 100%);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 22px;
}

.shift-qr-dialog-panel h3{
  margin-bottom: 12px;
  padding-left: 0;
  font-size: 24px;
  line-height: 1.15;
}

.shift-qr-dialog-panel .dialog-actions{
  margin-top: 12px;
}

.shift-qr-dialog-backdrop{
  align-items: center;
  padding: max(8px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  background:var(--scrim);
  backdrop-filter: blur(12px);
}

.shift-qr-dialog-panel{
  width: min(460px, 100%);
  max-height: calc(100dvh - 18px);
  padding: 18px;
  border-radius: 28px;
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.shift-qr-dialog-panel h3{
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: 0;
}

.shift-scan-panel{
  gap: 10px;
}

.shift-scan-statusbar{
  padding: 13px 14px;
  border-radius: 18px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.shift-scan-statusbar strong{
  display: block;
}.shift-scan-statusbar small{
  display: block;
}

.shift-scan-statusbar strong{
  font-size: 17px;
}

.shift-scan-statusbar small{
  margin: 3px 0 0;
}

.shift-scan-statusbar em{
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.shift-scan-camera{
  min-height: 260px;
  border-radius: 28px;
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.shift-scan-camera video{
  min-height: 260px;
}

.shift-scan-reticle{
  inset: 18% 16%;
  border-radius: 26px;
  box-shadow:var(--shadow);
}

.shift-scan-reticle::before{
  left: 12%;
  right: 12%;
}.shift-scan-reticle::after{
  left: 12%;
  right: 12%;
}

.shift-scan-corners{
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 22px;
  background:var(--surface);
  opacity: 0.68;
}

.shift-qr-dialog-panel #shiftQrScanStatus{
  margin: 2px 0 0;
  padding: 10px 2px;
  color: var(--text-primary);
  font-size: 16px;
}

.shift-qr-dialog-panel .dialog-actions{
  margin-top: 10px;
}

.shift-qr-dialog-panel .dialog-actions .secondary-btn{
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  border-color: var(--border);
  background:var(--surface-muted);
}

.field-label{
  color: var(--text-secondary);
  font-weight: 800;
  font-size:14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  .home-command-hero{
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }.staff-mission-hero{
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }

  .home-command-orb{
    width: 132px;
    min-height: 132px;
    justify-self: center;
  }

  .home-command-orb img{
    width: 68px;
    height: 68px;
  }

  .home-command-actions > button{
    width: 100%;
  }.staff-mission-scan{
    width: 100%;
  }

  .staff-mission-grid{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .staff-mission-tile{
    min-height: 112px;
    padding: 14px;
    border-radius: 16px;
  }

  .staff-mission-tile strong{
    font-size: 22px;
  }

  .shift-qr-console{
    grid-template-columns: 1fr;
  }

  .shift-qr-frame{
    width: min(100%, 230px);
    border-radius: 22px;
  }

  .settings-toggle-row{
    align-items: flex-start;
    flex-direction: column;
  }.access-toggle-row{
    align-items: flex-start;
    flex-direction: column;
  }

  .shift-scan-camera{
    min-height: 240px;
  }.shift-scan-camera video{
    min-height: 240px;
  }

  .shift-scan-statusbar{
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shift-scan-statusbar small{
    margin-left: 0;
  }

  .compact-actions > button{
    width: 100%;
  }.shift-action-row > button{
    width: 100%;
  }
}

@media (max-width: 480px) {
  .shift-qr-dialog-backdrop{
    place-items: start center;
    padding: max(6px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
  }

  .shift-qr-dialog-panel{
    width: 100%;
    max-height: calc(100dvh - 14px);
    padding: 12px;
    border-radius: 22px;
  }

  .shift-qr-dialog-panel h3{
    font-size: 20px;
    margin-bottom: 10px;
  }

  .shift-scan-panel{
    gap: 9px;
  }

  .shift-scan-statusbar{
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding: 10px;
    border-radius: 16px;
  }

  .shift-scan-statusbar strong{
    font-size: 15px;
  }

  .shift-scan-statusbar small{
    font-size:14px;
  }

  .shift-scan-statusbar em{
    padding: 6px 8px;
    font-size:14px;
  }

  .shift-scan-camera{
    min-height: 210px;
    max-height: 30dvh;
  }.shift-scan-camera video{
    min-height: 210px;
    max-height: 30dvh;
  }

  .shift-scan-camera{
    border-radius: 20px;
  }

  .shift-scan-reticle{
    inset: 18% 14%;
    border-radius: 18px;
  }

  .shift-scan-corners{
    inset: 8px;
    border-radius: 18px;
  }

  .shift-manual-panel{
    padding: 8px;
    border-radius: 14px;
  }

  .shift-manual-panel summary{
    font-size: 14px;
  }

  .shift-manual-panel input{
    min-height: 42px;
    margin-top: 8px;
  }

  .shift-qr-dialog-panel .dialog-actions{
    position: sticky;
    bottom: -12px;
    margin: 8px -12px -12px;
    padding: 10px 12px 12px;
    background:var(--surface);
  }
}

@media (max-width: 900px) {




  .mobile-sidebar-backdrop{
    position: fixed;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    z-index: 9000;
    background:var(--scrim);
    backdrop-filter: blur(7px);
    transition: opacity 0.22s ease;
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-btn{
    width: 44px;
    height: 44px;
    z-index: 12000;
    border-radius: 16px;
  }

  body.mobile-menu-open .mobile-menu-btn{
    left: 16px;
    top: calc(10px + env(safe-area-inset-top, 0px));
  }



  .sidebar::-webkit-scrollbar{
    width: 0;
    height: 0;
  }



  .sidebar .brand{
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 66px;
    margin: 0 0 12px;
    padding: 9px 10px;
    border-radius: 18px;
  }.staff-sidebar-profile{
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 66px;
    margin: 0 0 12px;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .sidebar .logo-img{
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }.staff-avatar.small{
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .sidebar .brand h1{
    font-size: 16px;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.staff-sidebar-profile strong{
    font-size: 16px;
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar .brand p{
    font-size:14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.staff-sidebar-profile span{
    font-size:14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.staff-sidebar-profile small{
    font-size:14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-btn{
    min-height: 44px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.15;
  }.nav-group-toggle{
    min-height: 44px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.15;
  }.logout-btn{
    min-height: 44px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.15;
  }

  .nav-group{
    margin: 0 0 8px;
    padding: 6px;
    border-radius: 18px;
  }

  .nav-submenu{
    display: grid;
    gap: 7px;
    padding: 2px 0 0;
  }

  .nav-sub-btn{
    min-height: 38px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 13px;
    font-size:14px;
  }

  .nav-sub-btn::before{
    width: 5px;
    height: 5px;
    margin-right: 6px;
  }

  .logout-btn{
    position: static;
    margin-top: 10px;
    margin-bottom: 0;
    background:var(--surface);
    box-shadow:var(--shadow);
  }
}

@media (max-width: 420px) {


  .nav-btn{
    min-height: 42px;
    font-size:14px;
  }.nav-group-toggle{
    min-height: 42px;
    font-size:14px;
  }.logout-btn{
    min-height: 42px;
    font-size:14px;
  }

  .sidebar .brand h1{
    font-size: 15px;
  }.staff-sidebar-profile strong{
    font-size: 15px;
  }
}

/* Standalone shift QR terminal */
.shift-terminal-page{
  min-height: 100dvh;
  margin: 0;
  color: var(--text-primary);
  background:var(--surface);
  overflow-x: hidden;
}

.shift-terminal-page::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:none;
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.92), rgba(0,0,0,0.42));
}

.shift-terminal-shell{
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(18px, 3vw, 34px);
}

.shift-terminal-hero{
  border: 1px solid var(--border);
  background:var(--hero-bg);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
color:var(--nav-text);}.shift-terminal-grid{
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
}.terminal-command-panel{
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
}.terminal-qr-stage{
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
}

.shift-terminal-hero{
  min-height: 108px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.terminal-brand-lockup{
  display: flex;
  align-items: center;
  gap: 16px;
}

.terminal-brand-lockup img{
  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow:var(--shadow);
}

.terminal-brand-lockup span{
  display: block;
  color: var(--text-primary);
  font-size:14px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}.terminal-eyebrow{
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal-brand-lockup strong{
  display: block;
  margin-top: 3px;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1;
}

.terminal-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.shift-terminal-grid{
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.terminal-qr-stage{
  position: relative;
  min-height: clamp(480px, 60vh, 760px);
  border-radius: 34px;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 50px);
  overflow: hidden;
}

.terminal-qr-orbit{
  position: absolute;
  width: min(80%, 640px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px dashed var(--border);
  box-shadow:var(--shadow);
}

.terminal-qr-orbit::before{
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 11%;
  border: 1px solid var(--border);
}.terminal-qr-orbit::after{
  content: "";
  position: absolute;
  border-radius: inherit;
  inset: 11%;
  border: 1px solid var(--border);
}

.terminal-qr-orbit::after{
  inset: 25%;
  border-style: dashed;
}

.terminal-qr-frame{
  position: relative;
  z-index: 1;
  width: min(72vw, 430px);
  aspect-ratio: 1;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 36px;
  background:var(--surface);
  border: 10px solid var(--border);
  box-shadow:var(--shadow);
}

.terminal-qr-frame img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 20px;
}

.terminal-countdown-ring{
  position: absolute;
  z-index: 2;
  right: clamp(18px, 3vw, 38px);
  bottom: clamp(18px, 3vw, 38px);
  min-width: 118px;
  min-height: 118px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.terminal-countdown-ring span{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-countdown-ring strong{
  color: var(--text-primary);
  font-size: 28px;
}

.terminal-command-panel{
  border-radius: 34px;
  padding: clamp(24px, 4vw, 54px);
  display: grid;
  align-content: center;
  gap: 18px;
}

.terminal-command-panel h1{
  margin: 0;
  max-width: 700px;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 0.95;
}

.terminal-command-panel p{
  max-width: 720px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55;
}

.terminal-signal-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.terminal-signal-grid div{
  padding: 16px;
  border-radius: 18px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.terminal-signal-grid strong{
  display: block;
}.terminal-signal-grid span{
  display: block;
}

.terminal-signal-grid strong{
  font-size: 22px;
  color: var(--text-primary);
}

.terminal-signal-grid span{
  color: var(--text-primary);
  font-size:14px;
}.terminal-token-state{
  color: var(--text-primary);
  font-size:14px;
}

.terminal-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.terminal-actions button{
  min-height: 48px;
}

/* Staff QR scanner polish */
.pro-shift-scanner .shift-scan-camera{
  min-height: 320px;
  isolation: isolate;
}

.shift-camera-glass{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:var(--surface);
}

.shift-scanline{
  position: absolute;
  z-index: 4;
  left: 18%;
  right: 18%;
  top: 24%;
  height: 2px;
  border-radius: 999px;
  background:var(--surface);
  box-shadow:var(--shadow);
  animation: shiftScannerSweep 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shiftScannerSweep {
  0%{ transform: translateY(0); opacity: 0.55; }100%{ transform: translateY(0); opacity: 0.55; }
  50%{ transform: translateY(150px); opacity: 1; }
}

.shift-scan-hint{
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
  font-size:14px;
  font-weight: 900;
  white-space: nowrap;
}

.shift-scan-feedback{
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background:var(--surface);
  border: 1px solid var(--border);
}

.shift-scan-feedback strong{
  color: var(--text-primary);
}

.shift-scan-feedback span{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
}

.pro-shift-scanner .shift-scan-reticle{
  z-index: 3;
}.pro-shift-scanner .shift-scan-corners{
  z-index: 3;
}.pro-shift-scanner .shift-scanline{
  z-index: 3;
}.pro-shift-scanner .shift-scan-hint{
  z-index: 3;
}

@media (max-width: 980px) {
  .shift-terminal-grid{
    grid-template-columns: 1fr;
  }

  .terminal-qr-stage{
    min-height: 520px;
  }

  .terminal-command-panel{
    align-content: start;
  }
}

@media (max-width: 620px) {
  .shift-terminal-shell{
    padding: 12px;
  }

  .shift-terminal-hero{
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
  }

  .terminal-status-pill{
    width: 100%;
    justify-content: center;
  }

  .shift-terminal-grid{
    border-radius: 24px;
  }.terminal-command-panel{
    border-radius: 24px;
  }.terminal-qr-stage{
    border-radius: 24px;
  }

  .terminal-qr-stage{
    min-height: 380px;
    padding: 18px;
  }

  .terminal-qr-frame{
    width: min(84vw, 300px);
    border-width: 7px;
    border-radius: 28px;
  }

  .terminal-countdown-ring{
    position: static;
    min-width: auto;
    min-height: auto;
    margin-top: 14px;
    padding: 10px 16px;
    display: inline-flex;
  }

  .terminal-signal-grid{
    grid-template-columns: 1fr;
  }

  .terminal-actions button{
    width: 100%;
  }

  .pro-shift-scanner .shift-scan-camera{
    min-height: 260px;
    max-height: 42dvh;
  }.pro-shift-scanner .shift-scan-camera video{
    min-height: 260px;
    max-height: 42dvh;
  }
}

/* 2026-06-30 mobile navigation refinement */
@media (max-width: 900px) {


  .mobile-menu-btn{
    top: max(10px, env(safe-area-inset-top, 0px));
    left: 10px;
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 15px;
    z-index: 14000;
    background:var(--surface);
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
  }

  body.mobile-menu-open .mobile-menu-btn{
    left: min(calc(78vw - 58px), 236px);
    background:var(--page);
  }

  .mobile-menu-btn span{
    height: 2px;
    background:var(--surface);
  }

  .mobile-sidebar-backdrop{
    display: block;
    opacity: 0;
    pointer-events: none;
    z-index: 12998;
    background:var(--scrim);
    backdrop-filter: blur(8px);
    transition: opacity 180ms ease;
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }





  .sidebar::-webkit-scrollbar{
    width: 5px;
  }

  .sidebar::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background:var(--nav-bg);
  color:var(--nav-text);}

  .sidebar .brand{
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 56px;
    margin: 0 0 8px;
    padding: 8px;
    border-radius: 15px;
    background:var(--nav-bg);
    border: 1px solid var(--border);
  color:var(--nav-text);}.staff-sidebar-profile{
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 56px;
    margin: 0 0 8px;
    padding: 8px;
    border-radius: 15px;
    background:var(--nav-bg);
    border: 1px solid var(--border);
  color:var(--nav-text);}

  .sidebar .logo-img{
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
    object-fit: contain;
  }.staff-avatar.small{
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
    object-fit: contain;
  }

  .sidebar .brand h1{
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }.staff-sidebar-profile strong{
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar .brand p{
    font-size:14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }.staff-sidebar-profile span{
    font-size:14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }.staff-sidebar-profile small{
    font-size:14px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-btn{
    min-height: 38px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.18;
    letter-spacing: 0;
  }.nav-group-toggle{
    min-height: 38px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.18;
    letter-spacing: 0;
  }.logout-btn{
    min-height: 38px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.18;
    letter-spacing: 0;
  }

  .nav-group{
    margin: 0 0 7px;
    padding: 5px;
    border-radius: 15px;
  }

  .nav-submenu{
    gap: 5px;
    padding: 0 5px 5px 9px;
  }

  .nav-sub-btn{
    min-height: 34px;
    margin-bottom: 0;
    padding: 7px 9px;
    font-size:14px;
  }

  .nav-group-caret{
    width: 20px;
    height: 20px;
    border-radius: 7px;
    flex: 0 0 auto;
  }

  .logout-btn{
    position: static;
    margin-top: auto;
    margin-bottom: 0;
    min-height: 40px;
    background:var(--surface);
    box-shadow:var(--shadow);
  }
}

@media (max-width: 420px) {
  body.mobile-menu-open .mobile-menu-btn{
    left: min(calc(82vw - 58px), 224px);
  }



  .nav-btn{
    min-height: 36px;
    font-size:14px;
  }.nav-group-toggle{
    min-height: 36px;
    font-size:14px;
  }.logout-btn{
    min-height: 36px;
    font-size:14px;
  }

  .nav-sub-btn{
    min-height: 32px;
    font-size:14px;
  }
}

/* 2026-07-01 precision mobile app shell */
@media (max-width: 900px) {










  .mobile-menu-btn{
    display: grid;
    place-items: center;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 16px;
    z-index: 22000;
    border: 1px solid var(--border);
    background:var(--surface);
    box-shadow:var(--shadow);
  }

  .mobile-menu-btn span{
    display: block;
    width: 21px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background:var(--surface);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.mobile-menu-open .mobile-menu-btn{
    left: clamp(218px, calc(74vw - 56px), 246px);
    background:var(--page);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(2){
    opacity: 0;
  }

  body.mobile-menu-open .mobile-menu-btn span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-sidebar-backdrop{
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20900;
    opacity: 0;
    pointer-events: none;
    background:var(--scrim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 180ms ease;
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }





  .sidebar::-webkit-scrollbar{
    width: 4px;
  }

  .sidebar::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background:var(--nav-bg);
  color:var(--nav-text);}

  .sidebar .brand{
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    min-height: 50px;
    margin: 0 0 8px;
    padding: 7px;
    border-radius: 14px;
    background:var(--nav-bg);
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
  color:var(--nav-text);}.staff-sidebar-profile{
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    min-height: 50px;
    margin: 0 0 8px;
    padding: 7px;
    border-radius: 14px;
    background:var(--nav-bg);
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
  color:var(--nav-text);}

  .sidebar .logo-img{
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
    object-fit: contain;
  }.staff-avatar.small{
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
    object-fit: contain;
  }

  .sidebar .brand h1{
    font-size:14px;
    line-height: 1.08;
    letter-spacing: 0;
  }.staff-sidebar-profile strong{
    font-size:14px;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .sidebar .brand p{
    font-size:14px;
    line-height: 1.2;
    opacity: 0.82;
  }.staff-sidebar-profile span{
    font-size:14px;
    line-height: 1.2;
    opacity: 0.82;
  }.staff-sidebar-profile small{
    font-size:14px;
    line-height: 1.2;
    opacity: 0.82;
  }

  .nav-btn{
    min-height: 33px;
    width: 100%;
    margin: 0 0 5px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size:14px;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: left;
    box-shadow:var(--shadow);
  }.nav-group-toggle{
    min-height: 33px;
    width: 100%;
    margin: 0 0 5px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size:14px;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: left;
    box-shadow:var(--shadow);
  }.logout-btn{
    min-height: 33px;
    width: 100%;
    margin: 0 0 5px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size:14px;
    line-height: 1.12;
    letter-spacing: 0;
    text-align: left;
    box-shadow:var(--shadow);
  }

  .nav-btn::before{
    left: 9px;
    width: 4px;
    height: 4px;
  }

  .nav-btn.nav-sub-btn{
    padding-left: 18px;
  }

  .nav-group{
    margin: 0 0 6px;
    padding: 5px;
    border-radius: 14px;
    background:var(--surface);
    border: 1px solid var(--border);
  }

  .nav-group-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    background: transparent;
    border-color: transparent;
  }

  .nav-submenu{
    display: grid;
    gap: 4px;
    padding: 0;
  }

  .nav-sub-btn{
    min-height: 31px;
    margin: 0;
    font-size:14px;
    border-radius: 10px;
  }

  .nav-group-caret{
    width: 18px;
    height: 18px;
    border-radius: 7px;
    font-size:14px;
  }

  .sidebar .hidden-section{
    display: none !important;
  }.sidebar details.hidden-section{
    display: none !important;
  }.sidebar button.hidden-section{
    display: none !important;
  }

  .logout-btn{
    position: relative;
    inset: auto;
    margin: 8px 0 0;
    min-height: 36px;
    text-align: center;
    background:var(--surface);
  }

  .section-head{
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .topbar h2{
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.08;
  }.section-head h2{
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.08;
  }

  .topbar p{
    font-size:14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }.section-head p{
    font-size:14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .live-pill{
    justify-self: start;
    min-height: 36px;
    padding: 7px 10px;
    font-size:14px;
  }.staff-task-alert{
    justify-self: start;
    min-height: 36px;
    padding: 7px 10px;
    font-size:14px;
  }

  .metric-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.dashboard-kpis{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.chart-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.command-status-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.expense-chart-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.supplier-intelligence-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.staff-dashboard-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.roster-card-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.customer-form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.material-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.supplier-form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }.expense-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .dashboard-action-row{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }.home-command-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }.staff-top-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }.card-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }.section-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }.terminal-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .quick-pill{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.primary-btn{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.secondary-btn{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.danger-btn{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.success-btn{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.ghost-btn{
    min-height: 38px;
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .card{
    border-radius: 16px;
    padding: 14px;
  }.command-status-card{
    border-radius: 16px;
    padding: 14px;
  }.command-insight-card{
    border-radius: 16px;
    padding: 14px;
  }.command-chart-card{
    border-radius: 16px;
    padding: 14px;
  }.supplier-intelligence-card{
    border-radius: 16px;
    padding: 14px;
  }.dialog-panel{
    border-radius: 16px;
    padding: 14px;
  }.dialog-card{
    border-radius: 16px;
    padding: 14px;
  }.staff-action-card{
    border-radius: 16px;
    padding: 14px;
  }.profile-block{
    border-radius: 16px;
    padding: 14px;
  }.staff-profile-hero{
    border-radius: 16px;
    padding: 14px;
  }.shift-card{
    border-radius: 16px;
    padding: 14px;
  }.stock-table-card{
    border-radius: 16px;
    padding: 14px;
  }

  .home-command-hero{
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 18px;
  }.staff-mission-hero{
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 18px;
  }

  .home-command-copy h1{
    font-size: clamp(28px, 10vw, 40px);
    line-height: 1;
  }.staff-mission-copy h1{
    font-size: clamp(28px, 10vw, 40px);
    line-height: 1;
  }

  .home-command-orb{
    display: none;
  }

  .chart-grid .card{
    min-height: 300px;
  }.command-chart-card{
    min-height: 300px;
  }.finance-chart-card{
    min-height: 300px;
  }.expense-chart-grid .card{
    min-height: 300px;
  }

  .chart-grid canvas{
    height: 240px !important;
    max-height: 240px !important;
  }.command-chart-card canvas{
    height: 240px !important;
    max-height: 240px !important;
  }.finance-chart-card canvas{
    height: 240px !important;
    max-height: 240px !important;
  }

  .table-wrap{
    margin-inline: -2px;
    border-radius: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }.mini-table-wrap{
    margin-inline: -2px;
    border-radius: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table{
    min-width: 680px;
  }

  th{
    padding: 10px 9px;
    font-size:14px;
    line-height: 1.18;
  }td{
    padding: 10px 9px;
    font-size:14px;
    line-height: 1.18;
  }

  input{
    font-size: 16px;
  }select{
    font-size: 16px;
  }textarea{
    font-size: 16px;
  }button{
    font-size: 16px;
  }

  .dialog-backdrop{
    align-items: flex-start;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }.modal-backdrop{
    align-items: flex-start;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }

  .dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 22px);
    overflow-y: auto;
  }.dialog-panel.wide-dialog{
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 22px);
    overflow-y: auto;
  }.dialog-panel.material-dialog{
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 22px);
    overflow-y: auto;
  }.expense-dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 22px);
    overflow-y: auto;
  }.manual-invoice-dialog .dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 22px);
    overflow-y: auto;
  }

  .global-qr-floating{
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }.global-qr-button{
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

@media (max-width: 430px) {




  body.mobile-menu-open .mobile-menu-btn{
    left: clamp(198px, calc(72vw - 52px), 220px);
  }

  .nav-btn{
    min-height: 31px;
    padding: 6px 8px;
    font-size:14px;
  }.nav-group-toggle{
    min-height: 31px;
    padding: 6px 8px;
    font-size:14px;
  }.logout-btn{
    min-height: 31px;
    padding: 6px 8px;
    font-size:14px;
  }

  .nav-sub-btn{
    min-height: 29px;
    font-size:14px;
  }

  .sidebar .brand{
    min-height: 46px;
    padding: 6px;
  }.staff-sidebar-profile{
    min-height: 46px;
    padding: 6px;
  }

  .sidebar .logo-img{
    width: 31px;
    height: 31px;
  }.staff-avatar.small{
    width: 31px;
    height: 31px;
  }
}

/* Premium admin operations shell - 20260701 */
:root{
  --shell-sidebar: 238px;
  --shell-topbar: 76px;






}









.shell-brand{
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.shell-brand .logo-img{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.shell-brand h1{
  font-size: 0.94rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.shell-brand p{
  font-size:14px;
  color: var(--shell-text-soft);
}

.sidebar-nav{
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 213, 225, 0.55) transparent;
}

.sidebar-nav::-webkit-scrollbar{ width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb{ background:var(--nav-bg); border-radius: 99px; color:var(--nav-text);}

.nav-section-label{
  display: block;
  margin: 14px 8px 7px;
  color: var(--text-secondary);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar .nav-btn{
  min-height: 38px;
  border-radius: 12px;
  font-size:14px;
  line-height: 1.15;
  letter-spacing: 0;
}.sidebar .nav-group-toggle{
  min-height: 38px;
  border-radius: 12px;
  font-size:14px;
  line-height: 1.15;
  letter-spacing: 0;
}.sidebar .logout-btn{
  min-height: 38px;
  border-radius: 12px;
  font-size:14px;
  line-height: 1.15;
  letter-spacing: 0;
}

.sidebar .nav-btn{
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0 0 6px;
  padding: 9px 10px;
  color:var(--nav-text);
  background:var(--nav-bg);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar .nav-btn::before{
  content: attr(data-icon);
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: var(--nav-text);
  font-size:14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--shell-cyan), var(--shell-blue));
  box-shadow:var(--shadow);
}.sidebar .nav-group-toggle::before{
  content: attr(data-icon);
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 9px;
  color: var(--nav-text);
  font-size:14px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--shell-cyan), var(--shell-blue));
  box-shadow:var(--shadow);
}

.sidebar .nav-btn:hover{
  transform: translateX(2px);
  border-color: var(--border);
  background:var(--nav-bg);
color:var(--nav-text);}.sidebar .nav-group-toggle:hover{
  transform: translateX(2px);
  border-color: var(--border);
  background:var(--nav-bg);
color:var(--nav-text);}

.sidebar .nav-btn.active{
  color:var(--on-primary);
  font-weight: 900;
  background:var(--primary);
  box-shadow:var(--shadow);
}

.sidebar .nav-btn.active::before{
  background:var(--primary);
color:var(--on-primary);}

.nav-group{
  margin: 0 0 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.nav-group-toggle{
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  cursor: pointer;
}

.nav-group-toggle span:first-of-type{
  flex: 1;
}

.nav-group-caret{
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 8px;
  color: var(--shell-cyan);
  background:var(--surface);
}

.nav-submenu{
  display: grid;
  gap: 4px;
  padding: 6px 0 0 6px;
}

.sidebar .nav-sub-btn{
  min-height: 34px;
  margin-bottom: 0;
  padding: 7px 9px;
  font-size:14px;
}

.sidebar .nav-sub-btn::before{
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 7px;
  font-size:14px;
}

.sidebar-footer{
  padding-top: 10px;
  border-top: 1px solid var(--border);
  background:var(--nav-bg);
color:var(--nav-text);}

.sidebar .logout-btn{
  width: 100%;
  margin: 0;
  background:var(--nav-bg);
  border: 1px solid var(--border);
color:var(--nav-text);}



.topbar.vv-topbar{
  position: sticky;
  top: 0;
  z-index: 6200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: var(--shell-topbar);
  padding: 12px clamp(18px, 2.4vw, 32px);
  border-bottom: 1px solid var(--border);
  background:var(--surface);
  backdrop-filter: blur(18px);
}

.topbar-menu-btn{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background:var(--surface);
  place-items: center;
  gap: 4px;
  padding: 9px;
}

.topbar-menu-btn span{
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 20px;
  background: var(--shell-cyan);
}

.topbar-title{
  min-width: 0;
}

.topbar-kicker{
  display: block;
  margin-bottom: 2px;
  color: var(--shell-cyan);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar-title h2{
  margin: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.35rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title p{
  margin: 4px 0 0;
  color: var(--shell-text-soft);
  font-size:14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar-quick-action{
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  font-weight: 850;
  box-shadow:var(--shadow);
}.notification-bell{
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  font-weight: 850;
  box-shadow:var(--shadow);
}.profile-chip{
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
  font-weight: 850;
  box-shadow:var(--shadow);
}

.topbar-quick-action{
  padding: 0 16px;
  background:var(--surface);
  color: var(--text-primary);
}

.notification-center{
  position: relative;
}

.notification-bell{
  position: relative;
  width: 42px;
  padding: 0;
  display: grid;
  place-items: center;
}

.bell-mark{
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--shell-cyan), var(--shell-blue));
  font-weight: 950;
}

.notification-badge{
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.62rem;
  background:var(--surface-muted);
  border: 2px solid var(--border);
}

.notification-panel{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.notification-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 10px;
  color: var(--text-primary);
}

.notification-panel-head span{
  color: var(--shell-cyan);
  font-size:14px;
  font-weight: 850;
}

.notification-list{
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.notification-item{
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 11px 10px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  background:var(--surface);
}

.notification-item:hover{
  border-color: var(--border);
  background:var(--surface-muted);
}

.notification-dot{
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--shell-cyan);
  box-shadow:var(--shadow);
}

.notification-dot.invoice{ background:var(--surface); }
.notification-dot.supplier{ background:var(--surface); }
.notification-dot.stock{ background:var(--surface); }
.notification-dot.compliance{ background:var(--surface); }

.notification-item strong{
  display: block;
}.notification-item small{
  display: block;
}

.notification-item small{
  margin-top: 3px;
  color: var(--shell-text-soft);
  font-size:14px;
  line-height: 1.35;
}

.notification-empty{
  padding: 18px 12px;
  color: var(--shell-text-soft);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ERP Wave 1: persistent notifications and controlled Trash */
.notification-panel{
  width: min(440px, calc(100vw - 28px));
  border-radius: 8px;
}

.notification-tabs{
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}.notification-toolbar{
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.notification-tabs{
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--border);
}

.notification-toolbar{
  padding: 8px 4px;
}

.notification-tabs button{
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  color: var(--shell-text-soft);
  background:var(--surface-muted);
  white-space: nowrap;
}.notification-toolbar button{
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  color: var(--shell-text-soft);
  background:var(--surface);
  white-space: nowrap;
}.notification-actions button{
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  color: var(--shell-text-soft);
  background:var(--surface);
  white-space: nowrap;
}

.notification-tabs button.active{
  color: var(--on-primary);
  background: var(--shell-cyan);
  border-color: var(--shell-cyan);
}

.notification-toolbar button:last-child{
  margin-left: auto;
  color: var(--text-primary);
}

.notification-item{
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
}

.notification-item.is-read{
  opacity: 0.72;
}

.notification-item.is-unread{
  border-left: 3px solid var(--shell-cyan);
}

.notification-open{
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 3px;
  text-align: left;
  color: inherit;
  border: 0;
  background: transparent;
}

.notification-copy{
  min-width: 0;
}.notification-copy strong{
  min-width: 0;
}.notification-copy small{
  min-width: 0;
}

.notification-copy strong{
  display: block;
  overflow-wrap: anywhere;
}.notification-copy small{
  display: block;
  overflow-wrap: anywhere;
}

.notification-meta{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--shell-text-soft);
  font-size:14px;
}

.notification-meta b{
  color: var(--shell-cyan);
  letter-spacing: 0;
}

.notification-actions{
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.notification-actions button{
  min-width: 38px;
  padding: 0 7px;
  font-size:14px;
}

.notification-actions .notification-remove{
  min-width: 32px;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.notification-dot.finance{ background:var(--surface); }
.notification-dot.production{ background:var(--surface); }
.notification-dot.quality{ background:var(--surface); }
.notification-dot.security{ background:var(--surface); }
.notification-dot.hr{ background:var(--surface); }
.notification-dot.tasks{ background:var(--surface); }
.notification-dot.system{ background:var(--surface); }

.notification-undo-toast{
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 12050;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 12px 14px;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
  box-shadow:var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.notification-undo-toast.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.notification-undo-toast button{
  min-height: 34px;
  padding: 0 12px;
  color: var(--text-primary);
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  background: var(--shell-cyan);
}

.notification-preference-list{
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.trash-purge-error{
  color: var(--danger, #ff6b78);
}

.notification-preference-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
}

.notification-preference-row > strong{
  grid-column: 1 / -1;
}

.notification-preference-row > select{
  min-width: 0;
}

.preference-time{
  display: grid;
  grid-column: span 2;
  gap: 4px;
}

.preference-time span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.preference-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size:14px;
}

.preference-switch input{
  width: 38px;
  height: 22px;
  appearance: none;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background:var(--surface);
  cursor: pointer;
  transition: background 160ms ease;
}

.preference-switch input::before{
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  background:var(--surface);
  transition: transform 160ms ease, background 160ms ease;
}

.preference-switch input:checked{
  background:var(--surface);
  border-color: var(--shell-cyan);
}

.preference-switch input:checked::before{
  background: var(--shell-cyan);
  transform: translateX(16px);
}

.trash-workspace{
  display: grid;
  gap: 16px;
}

.trash-filter-bar{
  display: grid;
  grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
}

.trash-filter-bar label{
  display: grid;
  gap: 6px;
  color: var(--shell-text-soft);
  font-size:14px;
  font-weight: 750;
}

.trash-filter-bar input{
  width: 100%;
  min-height: 42px;
}.trash-filter-bar select{
  width: 100%;
  min-height: 42px;
}

.trash-bulk-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}.trash-pagination{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.trash-bulk-bar{
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trash-bulk-bar > button:first-of-type{
  margin-left: auto;
}

.trash-table-wrap{
  max-width: 100%;
  overflow-x: auto;
}

.trash-module-chip{
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--shell-cyan);
  background:var(--surface-muted);
}

.trash-retention{
  color: var(--text-primary);
  white-space: nowrap;
}

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

.table-subline{
  display: block;
  margin-top: 4px;
  color: var(--shell-text-soft);
  font-size:14px;
}

@media (max-width: 767px) {
  .notification-panel{
    top: calc(64px + env(safe-area-inset-top)) !important;
    max-height: calc(100dvh - 84px);
    overflow: hidden;
  }

  .notification-list{
    max-height: calc(100dvh - 260px);
  }

  .notification-actions{
    flex-direction: column-reverse;
  }

  .trash-filter-bar{
    grid-template-columns: 1fr;
  }

  .trash-bulk-bar{
    align-items: stretch;
    flex-direction: column;
  }.trash-pagination{
    align-items: stretch;
    flex-direction: column;
  }

  .trash-bulk-bar > button:first-of-type{
    margin-left: 0;
  }

  .trash-bulk-bar button{
    min-height: 44px;
  }.trash-pagination button{
    min-height: 44px;
  }

  .notification-undo-toast{
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .notification-preference-row{
    grid-template-columns: 1fr 1fr;
  }

  .notification-preference-row > strong{
    grid-column: 1 / -1;
  }.notification-preference-row > select{
    grid-column: 1 / -1;
  }

  .preference-time{
    grid-column: 1 / -1;
  }
}

.profile-chip{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 5px;
}

.profile-initial{
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--shell-cyan), var(--shell-blue));
}

.main .page-section{
  padding: 24px clamp(18px, 2.4vw, 34px) 42px;
}

.metric-grid{
  gap: clamp(14px, 1.6vw, 22px);
}.dashboard-kpis{
  gap: clamp(14px, 1.6vw, 22px);
}.command-grid{
  gap: clamp(14px, 1.6vw, 22px);
}.register-grid{
  gap: clamp(14px, 1.6vw, 22px);
}.form-grid{
  gap: clamp(14px, 1.6vw, 22px);
}

.card{
  border-color: var(--border);
  box-shadow:var(--shadow);
}.data-panel{
  border-color: var(--border);
  box-shadow:var(--shadow);
}.home-command-hero{
  border-color: var(--border);
  box-shadow:var(--shadow);
}.debt-command-centre{
  border-color: var(--border);
  box-shadow:var(--shadow);
}.dialog-card{
  border-color: var(--border);
  box-shadow:var(--shadow);
}

.home-command-hero{
  margin-bottom: 18px;
}

.mobile-sidebar-backdrop{
  background:var(--scrim);
  backdrop-filter: blur(6px);
}

@media (max-width: 1100px) {




  .topbar-quick-action{
    display: none;
  }.live-pill{
    display: none;
  }
}

@media (max-width: 860px) {
  :root{
    --shell-topbar: 68px;
  }



  .topbar.vv-topbar{
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: var(--shell-topbar);
    padding: calc(8px + env(safe-area-inset-top)) 12px 9px;
    margin: 0;
  }

  .topbar-menu-btn{
    display: grid;
  }

  .topbar-kicker{
    display: none;
  }.profile-chip span:last-child{
    display: none;
  }

  .topbar-title h2{
    font-size: 1rem;
  }

  .topbar-title p{
    font-size:14px;
    max-width: 44vw;
  }

  .topbar-actions{
    gap: 8px;
  }

  .notification-bell{
    width: 38px;
    min-height: 38px;
  }.profile-chip{
    width: 38px;
    min-height: 38px;
  }

  .profile-chip{
    padding: 0;
    justify-content: center;
  }

  .profile-initial{
    width: 28px;
    height: 28px;
  }

  .notification-panel{
    position: fixed;
    top: calc(var(--shell-topbar) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
  }





  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  .shell-brand{
    min-height: 52px;
    padding: 7px;
  }

  .shell-brand .logo-img{
    width: 38px;
    height: 38px;
  }

  .shell-brand h1{
    font-size:14px;
  }

  .shell-brand p{
    font-size:14px;
  }

  .nav-section-label{
    margin: 11px 7px 6px;
    font-size: 0.56rem;
  }

  .sidebar .nav-btn{
    min-height: 34px;
    border-radius: 11px;
    font-size:14px;
    padding: 7px 8px;
  }.sidebar .nav-group-toggle{
    min-height: 34px;
    border-radius: 11px;
    font-size:14px;
    padding: 7px 8px;
  }.sidebar .logout-btn{
    min-height: 34px;
    border-radius: 11px;
    font-size:14px;
    padding: 7px 8px;
  }

  .sidebar .nav-btn::before{
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    border-radius: 8px;
    font-size:14px;
  }.sidebar .nav-group-toggle::before{
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    border-radius: 8px;
    font-size:14px;
  }

  .nav-group{
    padding: 5px;
    border-radius: 13px;
  }

  .nav-submenu{
    padding-left: 4px;
  }

  .main .page-section{
    padding: 16px 12px 28px;
  }

  .home-command-hero{
    grid-template-columns: 1fr !important;
  }.metric-grid{
    grid-template-columns: 1fr !important;
  }.dashboard-kpis{
    grid-template-columns: 1fr !important;
  }.command-grid{
    grid-template-columns: 1fr !important;
  }.register-grid{
    grid-template-columns: 1fr !important;
  }.form-grid{
    grid-template-columns: 1fr !important;
  }

  .dashboard-action-row{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .command-pill{
    flex: 0 0 auto;
  }

  .card{
    border-radius: 16px;
  }.data-panel{
    border-radius: 16px;
  }.debt-command-centre{
    border-radius: 16px;
  }.home-command-hero{
    border-radius: 16px;
  }

  canvas{
    max-width: 100% !important;
  }
}

@media (max-width: 430px) {


  .topbar-title p{
    max-width: 38vw;
  }

  .notification-panel{
    left: 8px;
    right: 8px;
  }
}

/* Functional audit action polish - 20260701 */
.table-loading-state{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0;
}

.table-loading-state::before{
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background:var(--surface-muted);
  box-shadow:var(--shadow);
}

.rfq-picker-panel{
  display: grid;
  gap: 16px;
}.invoice-qr-dialog{
  display: grid;
  gap: 16px;
}

.rfq-picker-panel label{
  display: grid;
  gap: 8px;
}

.rfq-invoice-preview{
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}.empty-state-panel{
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.rfq-invoice-preview div{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.rfq-invoice-preview div:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.rfq-invoice-preview span{
  color: var(--text-primary);
  font-size: 0.88rem;
}.empty-state-panel span{
  color: var(--text-primary);
  font-size: 0.88rem;
}

.rfq-invoice-preview strong{
  color: var(--text-primary);
}.empty-state-panel strong{
  color: var(--text-primary);
}

.invoice-qr-card{
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:var(--surface);
  text-align: center;
}

.invoice-qr-card img{
  width: min(230px, 70vw);
  height: min(230px, 70vw);
  object-fit: contain;
  padding: 14px;
  border-radius: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.invoice-qr-card strong{
  color: var(--text-primary);
  font-size: 1.04rem;
}

.invoice-qr-card span{
  max-width: 420px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.invoice-qr-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .rfq-invoice-preview div{
    align-items: flex-start;
    flex-direction: column;
  }

  .invoice-qr-actions > *{
    width: 100%;
    justify-content: center;
  }
}


/* Final admin shell audit - 20260701 */


.topbar.vv-topbar{
  box-sizing: border-box;
}.notification-panel{
  box-sizing: border-box;
}.dialog-panel{
  box-sizing: border-box;
}

.notification-panel{
  z-index: 14000;
}

.notification-dot.meeting{
  background:var(--surface);
}

@media (max-width: 860px) {
  :root{
    --shell-topbar: 64px;
  }







  .topbar.vv-topbar{
    position: sticky !important;
    top: 0 !important;
    z-index: 9000 !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    min-height: var(--shell-topbar) !important;
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px !important;
    border-radius: 0 !important;
  }

  .topbar-menu-btn{
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 9px !important;
    border-radius: 14px !important;
    z-index: 15000 !important;
  }

  .topbar-menu-btn span{
    width: 18px !important;
  }

  .topbar-title h2{
    font-size: 0.98rem !important;
    line-height: 1.1 !important;
  }

  .topbar-title p{
    max-width: 42vw !important;
    font-size:14px!important;
  }

  .topbar-actions{
    gap: 6px !important;
  }

  .notification-bell{
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 38px !important;
  }.profile-chip{
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 38px !important;
  }

  .mobile-sidebar-backdrop{
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 11000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background:var(--scrim)!important;
    backdrop-filter: blur(9px) !important;
    transition: opacity 180ms ease !important;
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1 !important;
    pointer-events: auto !important;
  }





  .shell-brand{
    min-height: 48px !important;
    padding: 6px !important;
    border-radius: 14px !important;
  }

  .shell-brand .logo-img{
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .shell-brand h1{
    font-size:14px!important;
    line-height: 1 !important;
  }

  .shell-brand p{
    font-size:14px!important;
  }

  .sidebar-nav{
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 2px 12px 0 !important;
    overscroll-behavior: contain !important;
  }

  .nav-section-label{
    margin: 9px 7px 5px !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.09em !important;
  }

  .sidebar .nav-btn{
    min-height: 34px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.1 !important;
    padding: 7px 8px !important;
    margin-bottom: 5px !important;
  }.sidebar .nav-group-toggle{
    min-height: 34px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.1 !important;
    padding: 7px 8px !important;
    margin-bottom: 5px !important;
  }.sidebar .logout-btn{
    min-height: 34px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.1 !important;
    padding: 7px 8px !important;
    margin-bottom: 5px !important;
  }

  .sidebar .nav-btn::before{
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    border-radius: 7px !important;
    font-size:14px!important;
  }.sidebar .nav-group-toggle::before{
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    border-radius: 7px !important;
    font-size:14px!important;
  }

  .nav-group{
    margin-bottom: 6px !important;
    padding: 5px !important;
    border-radius: 13px !important;
  }

  .nav-submenu{
    gap: 4px !important;
    padding: 4px 0 0 4px !important;
  }

  .sidebar-footer{
    position: sticky !important;
    bottom: 0 !important;
    padding-top: 8px !important;
    background:var(--nav-bg)!important;
  color:var(--nav-text);}

  .main .page-section{
    padding: 14px 10px 26px !important;
  }

  .notification-panel{
    position: fixed !important;
    top: calc(var(--shell-topbar) + 8px) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-height: min(72dvh, 520px) !important;
    overflow-y: auto !important;
    z-index: 16000 !important;
  }

  .dialog-panel{
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100dvh - 22px) !important;
    overflow-y: auto !important;
  }.wide-dialog{
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100dvh - 22px) !important;
    overflow-y: auto !important;
  }.manual-invoice-dialog{
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100dvh - 22px) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 430px) {


  .topbar-title p{
    max-width: 34vw !important;
  }

  .sidebar .nav-btn{
    font-size:14px!important;
  }.sidebar .nav-group-toggle{
    font-size:14px!important;
  }.sidebar .logout-btn{
    font-size:14px!important;
  }
}

/* Universal responsive operations audit - 20260702 */
:root{
  --vv-mobile-gutter: clamp(10px, 3.8vw, 18px);
  --vv-card-radius: clamp(14px, 3vw, 20px);
  --vv-hit: 44px;
}



*{
  box-sizing: border-box;
}*::before{
  box-sizing: border-box;
}*::after{
  box-sizing: border-box;
}

img{
  max-width: 100%;
}svg{
  max-width: 100%;
}canvas{
  max-width: 100%;
}video{
  max-width: 100%;
}

button{
  touch-action: manipulation;
}a{
  touch-action: manipulation;
}input{
  touch-action: manipulation;
}select{
  touch-action: manipulation;
}textarea{
  touch-action: manipulation;
}summary{
  touch-action: manipulation;
}

button{
  min-height: var(--vv-hit);
}[role="button"]{
  min-height: var(--vv-hit);
}.nav-btn{
  min-height: var(--vv-hit);
}.nav-group-toggle{
  min-height: var(--vv-hit);
}.quick-pill{
  min-height: var(--vv-hit);
}.primary-btn{
  min-height: var(--vv-hit);
}.secondary-btn{
  min-height: var(--vv-hit);
}.danger-btn{
  min-height: var(--vv-hit);
}.success-btn{
  min-height: var(--vv-hit);
}.ghost-btn{
  min-height: var(--vv-hit);
}.small-btn{
  min-height: var(--vv-hit);
}.icon-btn{
  min-height: var(--vv-hit);
}

.page-section{
  min-width: 0;
  max-width: 100%;
}.section-head{
  min-width: 0;
  max-width: 100%;
}.card{
  min-width: 0;
  max-width: 100%;
}.data-panel{
  min-width: 0;
  max-width: 100%;
}.table-wrap{
  min-width: 0;
  max-width: 100%;
}.mini-table-wrap{
  min-width: 0;
  max-width: 100%;
}.dialog-panel{
  min-width: 0;
  max-width: 100%;
}.dialog-card{
  min-width: 0;
  max-width: 100%;
}.form-grid{
  min-width: 0;
  max-width: 100%;
}.stock-dialog-grid{
  min-width: 0;
  max-width: 100%;
}.metric-grid{
  min-width: 0;
  max-width: 100%;
}.dashboard-kpis{
  min-width: 0;
  max-width: 100%;
}.chart-grid{
  min-width: 0;
  max-width: 100%;
}.command-status-grid{
  min-width: 0;
  max-width: 100%;
}.command-insight-strip{
  min-width: 0;
  max-width: 100%;
}.expense-chart-grid{
  min-width: 0;
  max-width: 100%;
}.supplier-intelligence-grid{
  min-width: 0;
  max-width: 100%;
}.staff-dashboard-grid{
  min-width: 0;
  max-width: 100%;
}.roster-card-grid{
  min-width: 0;
  max-width: 100%;
}.register-shell{
  min-width: 0;
  max-width: 100%;
}.register-list{
  min-width: 0;
  max-width: 100%;
}.register-controls{
  min-width: 0;
  max-width: 100%;
}.notification-panel{
  min-width: 0;
  max-width: 100%;
}

input{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}select{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}textarea{
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.table-wrap{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}.mini-table-wrap{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}.table-container{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}.register-table-wrap{
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.sidebar-footer{
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 10px;
  background:var(--nav-bg);
color:var(--nav-text);}

.notification-panel{
  z-index: 23000;
}

.dialog-backdrop{
  z-index: 24000;
}.modal-backdrop{
  z-index: 24000;
}#dialogBackdrop{
  z-index: 24000;
}

@media (min-width: 1440px) {


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

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

@media (min-width: 1024px) {


  .topbar-menu-btn{
    display: none !important;
  }.mobile-menu-btn{
    display: none !important;
  }.mobile-sidebar-backdrop{
    display: none !important;
  }



  .metric-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.dashboard-kpis{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.command-status-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.chart-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.expense-chart-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }.supplier-intelligence-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.stock-dialog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.dialog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.customer-form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.supplier-form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.expense-dialog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {








  .topbar.vv-topbar{
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 18000;
    min-height: calc(66px + env(safe-area-inset-top, 0px));
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: calc(9px + env(safe-area-inset-top, 0px)) var(--vv-mobile-gutter) 9px;
    border-bottom: 1px solid var(--border);
    background:var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .topbar-title{
    min-width: 0;
  }

  .topbar-title h2{
    font-size: clamp(17px, 4.4vw, 23px) !important;
    line-height: 1.08;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.topbar h2{
    font-size: clamp(17px, 4.4vw, 23px) !important;
    line-height: 1.08;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-title p{
    display: none !important;
  }.topbar-kicker{
    display: none !important;
  }

  .topbar-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .topbar-quick-action{
    display: none !important;
  }.live-pill{
    display: none !important;
  }.profile-chip #profileNameLabel{
    display: none !important;
  }

  .profile-chip{
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 15px;
  }.notification-bell{
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 15px;
  }.topbar-menu-btn{
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 15px;
  }.mobile-menu-btn{
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 15px;
  }

  .topbar-menu-btn{
    display: inline-grid !important;
    place-items: center;
    position: relative !important;
    inset: auto !important;
    z-index: 18100;
    background:var(--surface);
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
  }.mobile-menu-btn{
    display: inline-grid !important;
    place-items: center;
    position: relative !important;
    inset: auto !important;
    z-index: 18100;
    background:var(--surface);
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
  }

  .topbar-menu-btn span{
    width: 20px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background:var(--surface);
  }.mobile-menu-btn span{
    width: 20px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background:var(--surface);
  }

  body.mobile-menu-open .topbar-menu-btn span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }html.mobile-menu-open .topbar-menu-btn span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-menu-open .topbar-menu-btn span:nth-child(2){
    opacity: 0;
  }html.mobile-menu-open .topbar-menu-btn span:nth-child(2){
    opacity: 0;
  }

  body.mobile-menu-open .topbar-menu-btn span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }html.mobile-menu-open .topbar-menu-btn span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-sidebar-backdrop{
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 19000;
    opacity: 0;
    pointer-events: none;
    background:var(--scrim);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 180ms ease;
  }

  body.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }html.mobile-menu-open .mobile-sidebar-backdrop{
    opacity: 1;
    pointer-events: auto;
  }





  .sidebar-nav{
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .brand{
    min-height: 48px !important;
    padding: 7px !important;
    border-radius: 14px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center;
  }.shell-brand{
    min-height: 48px !important;
    padding: 7px !important;
    border-radius: 14px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center;
  }

  .sidebar .logo-img{
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }.shell-brand .logo-img{
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
  }

  .sidebar .brand h1{
    font-size:14px!important;
    line-height: 1.05;
  }.shell-brand h1{
    font-size:14px!important;
    line-height: 1.05;
  }

  .sidebar .brand p{
    font-size:14px!important;
    line-height: 1.15;
  }.shell-brand p{
    font-size:14px!important;
    line-height: 1.15;
  }

  .nav-section-label{
    margin: 9px 6px 5px !important;
    font-size: 0.55rem !important;
  }

  .sidebar .nav-btn{
    min-height: 36px !important;
    margin-bottom: 5px !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
  }.sidebar .nav-group-toggle{
    min-height: 36px !important;
    margin-bottom: 5px !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
  }.sidebar .logout-btn{
    min-height: 36px !important;
    margin-bottom: 5px !important;
    padding: 7px 8px !important;
    border-radius: 11px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
  }

  .sidebar .nav-btn::before{
    flex-basis: 22px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 8px !important;
    font-size:14px!important;
  }.sidebar .nav-group-toggle::before{
    flex-basis: 22px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 8px !important;
    font-size:14px!important;
  }

  .sidebar .nav-sub-btn{
    min-height: 33px !important;
    padding-left: 9px !important;
    font-size:14px!important;
  }

  .nav-group{
    margin-bottom: 6px !important;
    padding: 5px !important;
    border-radius: 13px !important;
  }

  .notification-panel{
    position: fixed !important;
    top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    right: var(--vv-mobile-gutter) !important;
    left: var(--vv-mobile-gutter) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(70dvh, 520px) !important;
    overflow-y: auto;
    border-radius: 18px !important;
  }

  .section-head{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }.page-toolbar{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }.register-head{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .section-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.dashboard-action-row{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.home-command-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.staff-top-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.card-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.terminal-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }.register-actions{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
  }

  .quick-pill{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.primary-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.secondary-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.danger-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.success-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.ghost-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }.small-btn{
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .metric-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.dashboard-kpis{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.command-status-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.chart-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.expense-chart-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.supplier-intelligence-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.staff-dashboard-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.roster-card-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }.command-insight-strip{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.stock-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.customer-form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.material-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.supplier-form-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.expense-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }.manual-invoice-dialog .stock-dialog-grid{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .home-command-hero{
    grid-template-columns: 1fr !important;
    padding: clamp(16px, 3vw, 24px) !important;
  }.staff-mission-hero{
    grid-template-columns: 1fr !important;
    padding: clamp(16px, 3vw, 24px) !important;
  }

  .home-command-orb{
    display: none !important;
  }

  .card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.data-panel{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.dialog-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.command-status-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.command-insight-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.command-chart-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.supplier-intelligence-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.staff-action-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.profile-block{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }.stock-table-card{
    border-radius: var(--vv-card-radius) !important;
    padding: clamp(13px, 2.5vw, 18px) !important;
  }

  .chart-grid .card{
    min-height: 260px !important;
  }.command-chart-card{
    min-height: 260px !important;
  }.finance-chart-card{
    min-height: 260px !important;
  }.expense-chart-grid .card{
    min-height: 260px !important;
  }

  .chart-grid canvas{
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(190px, 34vw, 250px) !important;
    max-height: 260px !important;
  }.command-chart-card canvas{
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(190px, 34vw, 250px) !important;
    max-height: 260px !important;
  }.finance-chart-card canvas{
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(190px, 34vw, 250px) !important;
    max-height: 260px !important;
  }.expense-chart-grid canvas{
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(190px, 34vw, 250px) !important;
    max-height: 260px !important;
  }

  .dialog-backdrop{
    align-items: flex-start !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--vv-mobile-gutter) calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
  }.modal-backdrop{
    align-items: flex-start !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--vv-mobile-gutter) calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
  }#dialogBackdrop{
    align-items: flex-start !important;
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--vv-mobile-gutter) calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
  }

  .dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }.dialog-panel.wide-dialog{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }.dialog-panel.material-dialog{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }.dialog-panel.supplier-dialog{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }.expense-dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }.manual-invoice-dialog .dialog-panel{
    width: 100% !important;
    max-width: calc(100vw - (var(--vv-mobile-gutter) * 2)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #dialogBody{
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }#staffDialogBody{
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }.dialog-body{
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }.modal-body{
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dialog-actions{
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding-top: 10px;
    background:var(--surface);
  }.modal-actions{
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    padding-top: 10px;
    background:var(--surface);
  }

  .dialog-actions button{
    width: 100%;
  }.modal-actions button{
    width: 100%;
  }

  input{
    min-height: 44px;
    font-size: 16px !important;
  }select{
    min-height: 44px;
    font-size: 16px !important;
  }textarea{
    min-height: 44px;
    font-size: 16px !important;
  }

  textarea{
    min-height: 112px;
  }
}

/* Timesheet approval workflow */
.timesheet-workflow-tabs{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:var(--surface-muted);
}

.timesheet-tab{
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.timesheet-tab:hover{
  border-color: var(--border);
  color: var(--text);
  outline: none;
}.timesheet-tab:focus-visible{
  border-color: var(--focus);
  color: var(--text);
  outline: none;
}

.timesheet-tab.active{
  border-color: var(--border);
  background:var(--primary);
  color:var(--on-primary);
  box-shadow:var(--shadow);
}

.timesheet-staff-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}.timesheet-review-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.timesheet-detail-summary{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.timesheet-detail-summary article{
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
}

.timesheet-detail-summary small{
  display: block;
  overflow-wrap: anywhere;
}.timesheet-detail-summary strong{
  display: block;
  overflow-wrap: anywhere;
}

.timesheet-detail-summary small{
  margin-bottom: 6px;
  color: var(--muted);
}

.timesheet-status-chip.pending_approval{
  border-color: var(--border);
  background:var(--warning-bg);
  color: var(--warning);
}.timesheet-status-chip.correction_resubmitted{
  border-color: var(--border);
  background:var(--primary);
  color:var(--on-primary);
}

.timesheet-status-chip.correction_required{
  border-color: var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
}

.timesheet-status-chip.rejected{
  border-color: var(--border);
  background:var(--danger-bg);
  color: var(--danger);
}

.timesheet-status-chip.archived{
  border-color: var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
}

.cell-subtext{
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size:14px;
}

button:disabled{
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.55);
}.primary-btn:disabled{
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.55);
}.secondary-btn:disabled{
  cursor: not-allowed;
  opacity: 0.5;
  filter: saturate(0.55);
}

@media (max-width: 900px) {
  .timesheet-detail-summary{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .timesheet-staff-actions{
    width: 100%;
    justify-content: stretch;
  }

  .timesheet-staff-actions button{
    flex: 1 1 10rem;
  }

  .timesheet-detail-summary{
    grid-template-columns: 1fr;
  }

  .timesheet-review-actions{
    min-width: 10rem;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  :root{
    --vv-hit: 42px;
  }



  .topbar.vv-topbar{
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    gap: 8px;
  }



  .sidebar .nav-btn{
    min-height: 34px !important;
    font-size:14px!important;
  }.sidebar .nav-group-toggle{
    min-height: 34px !important;
    font-size:14px!important;
  }.sidebar .logout-btn{
    min-height: 34px !important;
    font-size:14px!important;
  }

  .sidebar .nav-sub-btn{
    min-height: 31px !important;
    font-size:14px!important;
  }

  .metric-grid{
    grid-template-columns: 1fr !important;
  }.dashboard-kpis{
    grid-template-columns: 1fr !important;
  }.command-status-grid{
    grid-template-columns: 1fr !important;
  }.chart-grid{
    grid-template-columns: 1fr !important;
  }.expense-chart-grid{
    grid-template-columns: 1fr !important;
  }.supplier-intelligence-grid{
    grid-template-columns: 1fr !important;
  }.staff-dashboard-grid{
    grid-template-columns: 1fr !important;
  }.roster-card-grid{
    grid-template-columns: 1fr !important;
  }.command-insight-strip{
    grid-template-columns: 1fr !important;
  }.section-actions{
    grid-template-columns: 1fr !important;
  }.dashboard-action-row{
    grid-template-columns: 1fr !important;
  }.home-command-actions{
    grid-template-columns: 1fr !important;
  }.staff-top-actions{
    grid-template-columns: 1fr !important;
  }.card-actions{
    grid-template-columns: 1fr !important;
  }.terminal-actions{
    grid-template-columns: 1fr !important;
  }.register-actions{
    grid-template-columns: 1fr !important;
  }

  .home-command-copy h1{
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.04;
  }.staff-mission-copy h1{
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.04;
  }.page-section h1{
    font-size: clamp(25px, 8vw, 34px) !important;
    line-height: 1.04;
  }

  .card h3{
    font-size: clamp(15px, 4.3vw, 19px) !important;
  }.data-panel h3{
    font-size: clamp(15px, 4.3vw, 19px) !important;
  }.command-status-card h3{
    font-size: clamp(15px, 4.3vw, 19px) !important;
  }

  .card p{
    overflow-wrap: anywhere;
  }.data-panel p{
    overflow-wrap: anywhere;
  }.command-status-card p{
    overflow-wrap: anywhere;
  }

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

  table.responsive-table{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }table.responsive-table thead{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }table.responsive-table tbody{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }table.responsive-table tr{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }table.responsive-table th{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }table.responsive-table td{
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  table.responsive-table{
    border: 0 !important;
    background: transparent !important;
  }

  table.responsive-table thead{
    display: none !important;
  }

  table.responsive-table tbody{
    display: grid !important;
    gap: 12px !important;
  }

  table.responsive-table tr{
    padding: 11px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background:var(--surface-muted)!important;
    box-shadow:var(--shadow);
  }

  table.responsive-table td{
    display: grid !important;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr) !important;
    align-items: start;
    gap: 8px !important;
    padding: 8px 2px !important;
    border: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
    font-size:14px!important;
    line-height: 1.25 !important;
  }

  table.responsive-table td + td{
    border-top: 1px solid var(--border) !important;
  }

  table.responsive-table td::before{
    content: attr(data-label);
    color: var(--text-primary);
    font-size:14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  table.responsive-table td:last-child{
    display: flex !important;
    flex-wrap: wrap;
    grid-template-columns: none !important;
    gap: 8px !important;
    padding-top: 11px !important;
  }

  table.responsive-table td:last-child::before{
    flex: 0 0 100%;
  }

  table.responsive-table td button{
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    min-height: 40px !important;
    margin: 0 !important;
  }table.responsive-table td .small-btn{
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    min-height: 40px !important;
    margin: 0 !important;
  }table.responsive-table td .danger-btn{
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    min-height: 40px !important;
    margin: 0 !important;
  }table.responsive-table td .secondary-btn{
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    min-height: 40px !important;
    margin: 0 !important;
  }table.responsive-table td .icon-btn{
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    min-height: 40px !important;
    margin: 0 !important;
  }

  .register-controls{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .register-controls select{
    width: 100%;
  }.register-controls button{
    width: 100%;
  }

  .notification-panel{
    top: calc(60px + env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
    left: 10px !important;
  }

  .dialog-panel{
    border-radius: 18px !important;
  }.dialog-panel.wide-dialog{
    border-radius: 18px !important;
  }.dialog-panel.material-dialog{
    border-radius: 18px !important;
  }.dialog-panel.supplier-dialog{
    border-radius: 18px !important;
  }.expense-dialog-panel{
    border-radius: 18px !important;
  }.manual-invoice-dialog .dialog-panel{
    border-radius: 18px !important;
  }
}

@media (max-width: 390px) {


  .sidebar .brand{
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 44px !important;
  }.shell-brand{
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 44px !important;
  }

  .sidebar .logo-img{
    width: 30px !important;
    height: 30px !important;
  }.shell-brand .logo-img{
    width: 30px !important;
    height: 30px !important;
  }

  .sidebar .brand h1{
    font-size:14px!important;
  }.shell-brand h1{
    font-size:14px!important;
  }

  .sidebar .brand p{
    font-size:14px!important;
  }.shell-brand p{
    font-size:14px!important;
  }

  .sidebar .nav-btn{
    min-height: 32px !important;
    padding: 6px 7px !important;
    font-size:14px!important;
  }.sidebar .nav-group-toggle{
    min-height: 32px !important;
    padding: 6px 7px !important;
    font-size:14px!important;
  }.sidebar .logout-btn{
    min-height: 32px !important;
    padding: 6px 7px !important;
    font-size:14px!important;
  }

  .sidebar .nav-btn::before{
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }.sidebar .nav-group-toggle::before{
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
  }

  .topbar-title h2{
    font-size: 17px !important;
  }.topbar h2{
    font-size: 17px !important;
  }
}




/* Voxel Veda AI assistant widget */
.vv-ai-widget{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 12px;
  font-family: inherit;
}

.vv-ai-toggle{
  font: inherit;
}.vv-ai-close{
  font: inherit;
}.vv-ai-quick-actions button{
  font: inherit;
}.vv-ai-input-row button{
  font: inherit;
}.vv-ai-actions button{
  font: inherit;
}.vv-ai-actions a{
  font: inherit;
}

.vv-ai-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 20px 20px 6px 20px;
  color: var(--text-primary);
  background:var(--surface);
  box-shadow:var(--shadow);
  cursor: pointer;
  font-weight: 950;
}

.vv-ai-orb{
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 13px 13px 4px 13px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  letter-spacing: 0;
}

.vv-ai-panel{
  width: min(390px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 0 28px 0 28px;
  color: var(--text-primary);
  background:var(--surface);
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
}

.vv-ai-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.vv-ai-head h2{
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1.05;
}

.vv-ai-close{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 14px 14px 4px 14px;
  color: var(--text-primary);
  background:var(--surface);
  cursor: pointer;
  font-weight: 900;
}

.vv-ai-messages{
  display: grid;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
  padding: 4px 2px 10px;
}

.vv-ai-message{
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 15px 15px 5px 15px;
  font-size:14px;
  line-height: 1.45;
}

.vv-ai-message.bot{
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
}

.vv-ai-message.user{
  justify-self: end;
  color: var(--text-primary);
  background:var(--surface);
}

.vv-ai-quick-actions{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 10px;
}

.vv-ai-quick-actions button{
  border: 1px solid var(--control-border);
  border-radius: 14px 14px 5px 14px;
  color: var(--text-primary);
  background:var(--surface);
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
}.vv-ai-actions button{
  border: 1px solid var(--control-border);
  border-radius: 14px 14px 5px 14px;
  color: var(--text-primary);
  background:var(--surface);
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
}.vv-ai-actions a{
  border: 1px solid var(--border);
  border-radius: 14px 14px 5px 14px;
  color: var(--text-primary);
  background:var(--surface);
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
}.vv-ai-input-row button{
  border: 1px solid var(--control-border);
  border-radius: 14px 14px 5px 14px;
  color: var(--text-primary);
  background:var(--surface);
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
}

.vv-ai-quick-actions button{
  min-height: 36px;
  font-size:14px;
}

.vv-ai-input-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.vv-ai-input-row input{
  min-width: 0;
  border: 1px solid var(--control-border);
  border-radius: 16px 16px 5px 16px;
  padding: 11px 12px;
  color: var(--text-primary);
  background:var(--surface);
}

.vv-ai-input-row button{
  padding: 0 14px;
  background:var(--surface);
}

.vv-ai-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.vv-ai-actions button{
  padding: 9px 11px;
  font-size:14px;
}.vv-ai-actions a{
  padding: 9px 11px;
  font-size:14px;
}

.vv-ai-toggle:hover{
  transform: translateY(-2px);
}.vv-ai-quick-actions button:hover{
  transform: translateY(-2px);
}.vv-ai-actions button:hover{
  transform: translateY(-2px);
}.vv-ai-actions a:hover{
  transform: translateY(-2px);
}.vv-ai-input-row button:hover{
  transform: translateY(-2px);
}

@media (max-width: 620px) {
  .vv-ai-widget{
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-items: stretch;
  }

  .vv-ai-toggle{
    justify-content: center;
  }

  .vv-ai-panel{
    width: auto;
  }

  .vv-ai-quick-actions{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Advanced Voxel Veda AI intake polish */
.vv-ai-widget.is-open .vv-ai-toggle{
  transform: translateY(-2px) scale(.98);
}

.vv-ai-stage{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:var(--surface);
  color: var(--text-primary);
  font-size:14px;
  font-weight: 900;
}

.vv-ai-stage strong{
  display: inline-grid;
  min-width: 34px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
}

.vv-ai-insight-card{
  display: grid;
  gap: 8px;
  width: min(100%, 290px);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 6px 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.vv-ai-insight-card div{
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  gap: 8px;
  align-items: start;
  font-size:14px;
  line-height: 1.35;
}

.vv-ai-insight-card strong{
  color: var(--text-primary);
}

.vv-ai-insight-card span{
  color: var(--text-primary);
}

.vv-ai-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vv-ai-actions button{
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  text-align: center;
}.vv-ai-actions a{
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 420px) {
  .vv-ai-panel{
    padding: 16px;
  }

  .vv-ai-head h2{
    font-size: 21px;
  }

  .vv-ai-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Voxel Veda AI triage upgrade */
.vv-ai-quick-actions{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vv-ai-quick-actions button:nth-last-child(-n/**/+2){
  background:var(--surface);
  border-color: var(--control-border);
}

.vv-ai-insight-card h3{
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size:14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.vv-ai-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 92%;
}

.vv-ai-chip-row span{
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface-muted);
  font-size:14px;
  font-weight: 900;
}

.vv-ai-panel{
  position: relative;
  overflow: hidden;
}

.vv-ai-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:var(--surface);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 72%);
}

.vv-ai-panel > *{
  position: relative;
  z-index: 1;
}

@media (max-width: 620px) {
  .vv-ai-quick-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* End Voxel Veda AI triage upgrade */
/* End advanced Voxel Veda AI intake polish */
/* End Voxel Veda AI assistant widget */

/* ================= WORKFORCE OPS SUITE 20260703 ================= */
.workforce-command-metrics{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}.roster-command-metrics{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workforce-action-centre{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.roster-intelligence-card{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.timesheet-send-grid{
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  align-items: end;
}

.roster-signal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.roster-signal-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:var(--surface);
  min-width: 0;
}.roster-week-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background:var(--surface);
  min-width: 0;
}

.roster-signal-card span{
  display: block;
  color: var(--text-primary);
  font-size:14px;
}.roster-week-card span{
  display: block;
  color: var(--text-primary);
  font-size:14px;
}.roster-week-card small{
  display: block;
  color: var(--text-secondary);
  font-size:14px;
}

.roster-signal-card strong{
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 1rem;
}.roster-week-card strong{
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 1rem;
}

.roster-signal-card.ok{ border-color: var(--border); }
.roster-signal-card.warn{ border-color: var(--border); }
.roster-signal-card.danger{ border-color: var(--border); }
.roster-signal-card.info{ border-color: var(--border); }

.roster-week-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.empty-state.compact{
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-primary);
}

@media (max-width: 1023px) {
  .workforce-command-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.roster-command-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.roster-signal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }.timesheet-send-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .workforce-command-metrics{
    grid-template-columns: 1fr !important;
  }.roster-command-metrics{
    grid-template-columns: 1fr !important;
  }.roster-signal-grid{
    grid-template-columns: 1fr !important;
  }.timesheet-send-grid{
    grid-template-columns: 1fr !important;
  }.roster-generator-grid{
    grid-template-columns: 1fr !important;
  }

  .workforce-action-centre .section-head{
    gap: 12px;
  }.roster-intelligence-card .section-head{
    gap: 12px;
  }

  .workforce-action-centre .card-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }.roster-intelligence-card .card-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .workforce-action-centre .card-actions button{
    width: 100%;
    min-height: 44px;
  }.roster-intelligence-card .card-actions button{
    width: 100%;
    min-height: 44px;
  }
}
/* ================= Workforce roster pro upgrade 20260704 ================= */
.staff-portal .sidebar .nav-btn{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}.staff-portal .sidebar .nav-sub-btn{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-portal .sidebar .nav-btn::before{
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background:var(--nav-bg);
  box-shadow:var(--shadow);
color:var(--nav-text);}.staff-portal .sidebar .nav-sub-btn::before{
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background:var(--nav-bg);
  box-shadow:var(--shadow);
color:var(--nav-text);}

.workforce-command-strip .command-kpi{
  position: relative;
  overflow: hidden;
}

.workforce-command-strip .command-kpi::after{
  content: "";
  position: absolute;
  inset: auto 18px 16px auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:var(--surface);
  pointer-events: none;
}

.workforce-intelligence-panel{
  border: 1px solid var(--border);
  border-radius: 20px;
  background:var(--surface);
  box-shadow:var(--shadow);
}.timesheet-insight-strip{
  border: 1px solid var(--border);
  border-radius: 20px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.workforce-intelligence-panel{
  display: grid;
  gap: 18px;
  padding: 18px;
  margin: 0 0 18px;
}

.workforce-panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.workforce-panel-head span{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}.workforce-signal-card small{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}.timesheet-insight-strip small{
  color: var(--accent);
  font-size:14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workforce-panel-head h3{
  margin: 4px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
}

.workforce-signal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}.timesheet-insight-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workforce-signal-card{
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}.timesheet-insight-strip article{
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.workforce-signal-card strong{
  display: block;
  margin: 7px 0 6px;
  color: var(--text-primary);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
}.timesheet-insight-strip strong{
  display: block;
  margin: 7px 0 6px;
  color: var(--text-primary);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
}

.workforce-signal-card span{
  display: block;
  color: var(--muted);
  font-size:14px;
  line-height: 1.35;
}.timesheet-insight-strip span{
  display: block;
  color: var(--muted);
  font-size:14px;
  line-height: 1.35;
}

.timesheet-insight-strip{
  margin: 0 0 16px;
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roster-shift-title-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.roster-shift-title-row h3{
  margin-bottom: 0;
}

.roster-readiness-pill{
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-shift-signals{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.roster-shift-signals span{
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  border: 1px solid var(--border);
  font-size:14px;
  font-weight: 800;
}

.roster-shift-pro-card{
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.roster-shift-pro-card:hover{
  border-color: var(--border);
  transform: translateY(-1px);
  box-shadow:var(--shadow);
}

@media (max-width: 1023px) {
  .workforce-signal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timesheet-insight-strip{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .staff-portal .sidebar{
    width: min(76vw, 300px);
    padding: calc(58px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 22px 22px 0;
  }

  .staff-portal .brand{
    display: flex;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:var(--surface);
  }

  .staff-portal .brand .logo-img{
    width: 38px;
    height: 38px;
  }

  .staff-portal .brand h1{
    font-size: 14px;
    line-height: 1;
  }

  .staff-portal .brand p{
    font-size:14px;
  }

  .staff-sidebar-profile{
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .staff-sidebar-profile .staff-avatar.small{
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .staff-sidebar-profile strong{
    font-size: 14px;
  }

  .staff-sidebar-profile span{
    font-size:14px;
  }.staff-sidebar-profile small{
    font-size:14px;
  }

  .staff-sidebar-profile small{
    padding: 4px 8px;
    margin-top: 5px;
  }

  .staff-portal .sidebar .nav-btn{
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.2;
  }.staff-portal .sidebar .nav-sub-btn{
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.2;
  }.staff-portal .nav-group-toggle{
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 12px;
    font-size:14px;
    line-height: 1.2;
  }

  .staff-portal .nav-group{
    padding: 8px;
    border-radius: 14px;
  }

  .staff-portal .nav-submenu{
    gap: 6px;
    margin-top: 8px;
  }

  .staff-portal .logout-btn{
    position: sticky;
    bottom: 0;
    min-height: 42px;
    margin-top: 12px;
    border-radius: 13px;
  }

  .workforce-intelligence-panel{
    padding: 14px;
    border-radius: 18px;
  }

  .workforce-panel-head{
    align-items: flex-start;
    flex-direction: column;
  }

  .workforce-panel-head .secondary-btn{
    width: 100%;
  }

  .workforce-signal-grid{
    grid-template-columns: 1fr;
  }

  .roster-shift-title-row{
    flex-direction: column;
  }

  .roster-readiness-pill{
    width: fit-content;
  }
}

@media (max-width: 420px) {
  .staff-portal .sidebar{
    width: min(82vw, 286px);
  }

  .staff-portal .main{
    padding-left: 10px;
    padding-right: 10px;
  }

  .workforce-signal-card{
    padding: 13px;
  }.timesheet-insight-strip article{
    padding: 13px;
  }
}
.public-flow-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto 18px;
}

.public-flow-strip article{
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.public-flow-strip span{
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 900;
}

.public-flow-strip strong{
  color: var(--text-primary);
  font-size: 17px;
}

.public-flow-strip small{
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .public-flow-strip{
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 24px));
  }
}
/* 20260704 premium shift QR scanner refinement */
.shift-qr-dialog-panel{
  width: min(392px, calc(100vw - 22px));
  padding: 14px;
  border-radius: 22px;
}

.shift-qr-dialog-panel h3{
  margin: 0 0 10px;
  font-size: clamp(20px, 5.4vw, 23px);
}

.pro-shift-scanner{
  gap: 10px;
}

.pro-shift-scanner .shift-scan-statusbar{
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 15px;
  background:var(--surface);
}

.pro-shift-scanner .shift-scan-statusbar strong{
  font-size: 14px;
}

.pro-shift-scanner .shift-scan-statusbar small{
  color: var(--text-secondary);
  font-size:14px;
}

.pro-shift-scanner .shift-scan-statusbar em{
  padding: 6px 9px;
  font-size:14px;
  letter-spacing: 0.02em;
}

.pro-shift-scanner .shift-scan-camera{
  min-height: 228px;
  border-radius: 22px;
  overflow: hidden;
  background:var(--surface);
}

.pro-shift-scanner .shift-scan-camera video{
  width: 100%;
  height: 100%;
  min-height: 228px;
  display: block;
  object-fit: cover;
  background:var(--surface);
  filter: saturate(0.9) contrast(1.05) brightness(0.86);
}

.shift-scanner-focus-mark{
  position: absolute;
  z-index: 2;
  inset: 20%;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.42;
}

.shift-scanner-focus-mark span{
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid var(--focus);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.pro-shift-scanner .shift-camera-glass{
  background:var(--surface);
}

.pro-shift-scanner .shift-scan-reticle{
  inset: 22% 15%;
  border-width: 1px;
  border-radius: 18px;
  box-shadow:var(--shadow);
}

.pro-shift-scanner .shift-scan-corners{
  inset: 10px;
  border-radius: 18px;
  opacity: 0.62;
  background:var(--surface);
}

.pro-shift-scanner .shift-scanline{
  left: 24%;
  right: 24%;
  top: 31%;
  height: 1px;
  opacity: 0.78;
}

.pro-shift-scanner .shift-scan-hint{
  bottom: 14px;
  padding: 7px 10px;
  font-size:14px;
  color: var(--text-primary);
  background:var(--surface);
}

.pro-shift-scanner .shift-scan-feedback{
  padding: 13px 14px;
  border-radius: 14px;
  background:var(--surface);
}

.pro-shift-scanner .shift-scan-feedback strong{
  font-size: 14px;
}

.pro-shift-scanner .shift-scan-feedback span{
  color: var(--text-primary);
  font-size:14px;
}

.shift-qr-dialog-panel .dialog-actions .secondary-btn{
  min-height: 42px;
  border-radius: 14px;
}

@media (max-width: 420px) {
  .shift-qr-dialog-backdrop{
    padding: max(8px, env(safe-area-inset-top, 0px)) 8px max(8px, env(safe-area-inset-bottom, 0px));
  }

  .shift-qr-dialog-panel{
    width: calc(100vw - 16px);
    padding: 13px;
    border-radius: 20px;
  }

  .pro-shift-scanner .shift-scan-camera{
    min-height: 210px;
    max-height: 38dvh;
  }.pro-shift-scanner .shift-scan-camera video{
    min-height: 210px;
    max-height: 38dvh;
  }
}

/* 20260704 simple shift scanner */
.simple-shift-scanner{
  display: grid;
  gap: 12px;
}

.shift-qr-dialog-panel:has(.simple-shift-scanner){
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 20px;
}

.shift-qr-dialog-panel:has(.simple-shift-scanner) h3{
  display: none;
}

.simple-shift-scanner .shift-scan-camera{
  min-height: 270px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.simple-shift-scanner .shift-scan-camera video{
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  background:var(--surface);
}

.simple-shift-scanner .shift-camera-glass{
  background:var(--surface);
}

.simple-shift-scanner .shift-scan-reticle{
  inset: 20% 14%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.simple-shift-scanner .shift-scan-corners{
  inset: 12px;
  opacity: 0.72;
}

.simple-shift-scanner .shift-scanline{
  left: 24%;
  right: 24%;
  top: 28%;
  height: 1px;
}

.simple-shift-scanner .shift-scan-status-text{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.simple-shift-scanner .shift-camera-actions button{
  min-height: 42px;
  border-radius: 14px;
}

.shift-qr-dialog-panel:has(.simple-shift-scanner) .dialog-actions{
  margin-top: 10px;
}

.shift-qr-dialog-panel:has(.simple-shift-scanner) .dialog-actions .secondary-btn{
  min-height: 44px;
  border-radius: 14px;
}

@media (max-width: 420px) {
  .shift-qr-dialog-panel:has(.simple-shift-scanner){
    width: calc(100vw - 22px);
    padding: 10px;
  }

  .simple-shift-scanner .shift-scan-camera{
    min-height: min(64vw, 250px);
  }.simple-shift-scanner .shift-scan-camera video{
    min-height: min(64vw, 250px);
  }
}

/* 20260704 clean inactive camera frame */
.simple-shift-scanner .shift-scan-camera video:not(.camera-active){
  opacity: 0;
}

.simple-shift-scanner .shift-scan-camera::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:var(--surface);
}

.simple-shift-scanner .shift-scan-camera video.camera-active{
  opacity: 1;
}

.simple-shift-scanner .shift-camera-glass{
  z-index: 2;
}.simple-shift-scanner .shift-scan-reticle{
  z-index: 2;
}.simple-shift-scanner .shift-scan-corners{
  z-index: 2;
}.simple-shift-scanner .shift-scanline{
  z-index: 2;
}

/* 20260704 sidebar badge cleanup */
.sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-group-toggle::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}

.sidebar .nav-btn{
  gap: 0 !important;
}.sidebar .nav-sub-btn{
  gap: 0 !important;
}.sidebar .nav-group-toggle{
  gap: 0 !important;
}.staff-portal .sidebar .nav-btn{
  gap: 0 !important;
}.staff-portal .sidebar .nav-sub-btn{
  gap: 0 !important;
}

.sidebar .nav-submenu{
  padding-left: 0;
}

.sidebar .nav-sub-btn{
  padding-left: 12px;
}

.sidebar .nav-btn.active{
  padding-left: 13px;
}

/* 20260704 Voxel Veda executive theme refresh */
:root{














  --vv-radius: 16px;

  --vv-topbar-h: 74px;
}



body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:var(--page);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 12%, black 0%, transparent 78%);
}

.public-shell{
  background: transparent !important;
}.login-page{
  background: transparent !important;
}

.public-shell{
  color: var(--vv-text);
}.login-page{
  color: var(--vv-text);
}.customer-page{
  color: var(--vv-text);
}





.sidebar::-webkit-scrollbar{
  width: 5px;
}.nav-menu::-webkit-scrollbar{
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb{
  background:var(--nav-bg);
  border-radius: 999px;
color:var(--nav-text);}.nav-menu::-webkit-scrollbar-thumb{
  background:var(--surface);
  border-radius: 999px;
}

.shell-brand{
  background:var(--surface)!important;
  border: 1px solid var(--vv-border) !important;
  border-radius: 16px !important;
  box-shadow:var(--shadow);
}.sidebar .brand{
  background:var(--nav-bg)!important;
  border: 1px solid var(--vv-border) !important;
  border-radius: 16px !important;
  box-shadow:var(--shadow);
color:var(--nav-text);}.staff-sidebar-profile{
  background:var(--nav-bg)!important;
  border: 1px solid var(--vv-border) !important;
  border-radius: 16px !important;
  box-shadow:var(--shadow);
color:var(--nav-text);}.brand-block{
  background:var(--surface)!important;
  border: 1px solid var(--vv-border) !important;
  border-radius: 16px !important;
  box-shadow:var(--shadow);
}

.shell-brand img{
  object-fit: contain;
}.sidebar .brand img{
  object-fit: contain;
}.login-logo{
  object-fit: contain;
}.public-logo{
  object-fit: contain;
}.logo-img{
  object-fit: contain;
}

.sidebar h1{
  color: var(--vv-text) !important;
  letter-spacing: 0;
}.sidebar .brand-title{
  color: var(--vv-text) !important;
  letter-spacing: 0;
}.shell-brand strong{
  color: var(--vv-text) !important;
  letter-spacing: 0;
}.staff-sidebar-profile strong{
  color: var(--vv-text) !important;
  letter-spacing: 0;
}

.sidebar p{
  color: var(--vv-muted) !important;
}.sidebar .brand-subtitle{
  color: var(--vv-muted) !important;
}.shell-brand span{
  color: var(--vv-muted) !important;
}.staff-sidebar-profile span{
  color: var(--vv-muted) !important;
}

.sidebar .nav-section-label{
  color: var(--nav-text) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  margin: 14px 8px 7px !important;
}.nav-section-label{
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  letter-spacing: 0.08em !important;
  margin: 14px 8px 7px !important;
}

.sidebar .nav-btn{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}.sidebar .nav-sub-btn{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}.sidebar .nav-group-toggle{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}.sidebar .logout-btn{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}.staff-portal .sidebar .nav-btn{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}.staff-portal .sidebar .nav-sub-btn{
  min-height: 42px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sidebar .nav-btn:hover{
  transform: translateX(2px);
  border-color: var(--vv-border-strong) !important;
  background:var(--nav-bg)!important;
color:var(--nav-text);}.sidebar .nav-sub-btn:hover{
  transform: translateX(2px);
  border-color: var(--vv-border-strong) !important;
  background:var(--nav-bg)!important;
color:var(--nav-text);}.sidebar .nav-group-toggle:hover{
  transform: translateX(2px);
  border-color: var(--vv-border-strong) !important;
  background:var(--nav-bg)!important;
color:var(--nav-text);}

.sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-group-toggle.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}

.sidebar .nav-submenu{
  background:var(--nav-bg)!important;
  border-radius: 14px !important;
color:var(--nav-text);}.sidebar .nav-group{
  background:var(--nav-bg)!important;
  border-radius: 14px !important;
color:var(--nav-text);}

.sidebar .logout-btn{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
  color:var(--nav-text)!important;
}.logout-btn{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}

.topbar.vv-topbar{
  position: sticky;
  top: clamp(8px, 1.4vw, 18px);
  z-index: 50;
  min-height: var(--vv-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  margin: 0 0 clamp(18px, 2vw, 26px);
  border: 1px solid var(--vv-border);
  border-radius: 20px;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar-title{
  min-width: 0;
}.topbar > div:first-child{
  min-width: 0;
}

.topbar h2{
  color: var(--vv-text) !important;
  letter-spacing: 0 !important;
}.topbar-title h2{
  color: var(--vv-text) !important;
  letter-spacing: 0 !important;
}.public-hero h1{
  color: var(--vv-text) !important;
  letter-spacing: 0 !important;
}.login-card h1{
  color: var(--vv-text) !important;
  letter-spacing: 0 !important;
}

.topbar h2{
  font-size: clamp(19px, 2vw, 27px) !important;
  line-height: 1.12;
  margin: 0;
}.topbar-title h2{
  font-size: clamp(19px, 2vw, 27px) !important;
  line-height: 1.12;
  margin: 0;
}

.topbar p{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}.topbar-title p{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}.topbar-kicker{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}#adminInfo{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}#staffInfo{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}#customerInfo{
  color: var(--vv-soft) !important;
  font-size: clamp(12px, 1.1vw, 14px) !important;
  overflow-wrap: anywhere;
}

.topbar-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}.staff-top-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-menu-btn{
  -webkit-tap-highlight-color: transparent;
}.mobile-menu-btn{
  -webkit-tap-highlight-color: transparent;
}.notification-bell{
  -webkit-tap-highlight-color: transparent;
}.profile-chip{
  -webkit-tap-highlight-color: transparent;
}.topbar-quick-action{
  -webkit-tap-highlight-color: transparent;
}.live-pill{
  -webkit-tap-highlight-color: transparent;
}.quick-action-btn{
  -webkit-tap-highlight-color: transparent;
}.primary-btn{
  -webkit-tap-highlight-color: transparent;
}.secondary-btn{
  -webkit-tap-highlight-color: transparent;
}button{
  -webkit-tap-highlight-color: transparent;
}

.topbar-menu-btn{
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 14px !important;
  border: 1px solid var(--vv-border-strong) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:var(--shadow);
}.mobile-menu-btn{
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 14px !important;
  border: 1px solid var(--vv-border-strong) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:var(--shadow);
}.notification-bell{
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 14px !important;
  border: 1px solid var(--vv-border-strong) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:var(--shadow);
}

.topbar-quick-action{
  border-radius: 14px !important;
}.profile-chip{
  border-radius: 14px !important;
}.live-pill{
  border-radius: 14px !important;
}.primary-btn{
  border-radius: 14px !important;
}.login-btn{
  border-radius: 14px !important;
}.public-cta{
  border-radius: 14px !important;
}.action-btn{
  border-radius: 14px !important;
}

.topbar-quick-action{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
}.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
}.login-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
}.public-cta{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
}.action-btn.primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
}button.primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border: 1px solid var(--control-border) !important;
  box-shadow:var(--shadow);
}

.profile-chip{
  background:var(--surface-muted)!important;
  border: 1px solid var(--vv-border) !important;
  color: var(--vv-text) !important;
}.live-pill{
  background:var(--surface)!important;
  border: 1px solid var(--vv-border) !important;
  color: var(--vv-text) !important;
}

.profile-initial{
  background: linear-gradient(135deg, var(--vv-cyan), var(--vv-blue)) !important;
  color: var(--text-primary) !important;
}.bell-mark{
  background: linear-gradient(135deg, var(--vv-cyan), var(--vv-blue)) !important;
  color: var(--text-primary) !important;
}.notification-badge{
  background: linear-gradient(135deg, var(--vv-cyan), var(--vv-blue)) !important;
  color: var(--text-primary) !important;
}

.notification-center{
  position: relative;
}

.notification-panel{
  right: 0 !important;
  left: auto !important;
  width: min(380px, calc(100vw - 24px)) !important;
  max-height: min(560px, calc(100dvh - 110px));
  overflow: auto;
  border: 1px solid var(--vv-border-strong) !important;
  border-radius: 18px !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 300;
}.notification-dropdown{
  right: 0 !important;
  left: auto !important;
  width: min(380px, calc(100vw - 24px)) !important;
  max-height: min(560px, calc(100dvh - 110px));
  overflow: auto;
  border: 1px solid var(--vv-border-strong) !important;
  border-radius: 18px !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 300;
}

.card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.metric-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.stat-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.table-wrap{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.form-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.modal{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.dialog-panel{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.public-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.login-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.customer-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.dashboard-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.portal-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.chart-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.debt-command-centre{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.rfq-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}.invoice-card{
  border: 1px solid var(--vv-border) !important;
  border-radius: var(--vv-radius) !important;
  background: linear-gradient(145deg, var(--vv-panel), var(--vv-panel-2)) !important;
  box-shadow:var(--shadow);
}

input{
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  min-height: 42px;
}select{
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  min-height: 42px;
}textarea{
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  min-height: 42px;
}.form-control{
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
  color: var(--vv-text) !important;
  min-height: 42px;
}

input:focus{
  outline: none !important;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}select:focus{
  outline: none !important;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}textarea:focus{
  outline: none !important;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}

.table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}.table-responsive{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table{
  border-collapse: collapse;
}

th{
  color: var(--text-primary) !important;
}

td{
  border-color: var(--border) !important;
}th{
  border-color: var(--border) !important;
}

.login-card{
  border: 1px solid var(--vv-border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
}.public-card{
  border: 1px solid var(--vv-border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
}.public-hero{
  border: 1px solid var(--vv-border) !important;
  background:var(--hero-bg)!important;
  box-shadow:var(--shadow);
color:var(--nav-text);}.public-flow-strip article{
  border: 1px solid var(--vv-border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow);
}

.login-page .login-card{
  width: min(430px, calc(100vw - 28px));
}

.login-card p{
  color: var(--vv-soft) !important;
}.public-card p{
  color: var(--vv-soft) !important;
}.public-hero p{
  color: var(--vv-soft) !important;
}

.sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-group-toggle::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}

@media (min-width: 1024px) {



}

@media (max-width: 1023px) {
  :root{
    --vv-topbar-h: 64px;
  }





  .topbar.vv-topbar{
    top: 8px;
    min-height: var(--vv-topbar-h);
    padding: 10px;
    border-radius: 16px;
  }

  .topbar-title h2{
    font-size: clamp(18px, 5vw, 23px) !important;
  }.topbar h2{
    font-size: clamp(18px, 5vw, 23px) !important;
  }

  .topbar-kicker{
    font-size: 12px !important;
  }.topbar-title p{
    font-size:14px!important;
  }.topbar p{
    font-size:14px!important;
  }



  body.nav-open .sidebar{
    transform: translateX(0) !important;
  }.sidebar.open{
    transform: translateX(0) !important;
  }.sidebar.is-open{
    transform: translateX(0) !important;
  }.sidebar.mobile-open{
    transform: translateX(0) !important;
  }

  body.sidebar-open::after{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 240;
    background:var(--nav-bg);
    backdrop-filter: blur(4px);
  color:var(--nav-text);}body.nav-open::after{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 240;
    background:var(--page);
    backdrop-filter: blur(4px);
  }

  .sidebar .nav-btn{
    min-height: 40px !important;
    font-size:14px!important;
    padding: 9px 11px !important;
  }.sidebar .nav-sub-btn{
    min-height: 40px !important;
    font-size:14px!important;
    padding: 9px 11px !important;
  }.sidebar .nav-group-toggle{
    min-height: 40px !important;
    font-size:14px!important;
    padding: 9px 11px !important;
  }.sidebar .logout-btn{
    min-height: 40px !important;
    font-size:14px!important;
    padding: 9px 11px !important;
  }

  .sidebar .logout-btn{
    position: sticky;
    bottom: 8px;
    margin-top: 14px !important;
  }.logout-btn{
    position: sticky;
    bottom: 8px;
    margin-top: 14px !important;
  }

  .dashboard-grid{
    grid-template-columns: 1fr !important;
  }.metrics-grid{
    grid-template-columns: 1fr !important;
  }.cards-grid{
    grid-template-columns: 1fr !important;
  }.quick-grid{
    grid-template-columns: 1fr !important;
  }.summary-grid{
    grid-template-columns: 1fr !important;
  }.public-flow-strip{
    grid-template-columns: 1fr !important;
  }

  .modal{
    width: min(100%, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }.dialog-panel{
    width: min(100%, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }.form-card{
    width: min(100%, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 640px) {
  .topbar.vv-topbar{
    align-items: flex-start;
  }

  .topbar-actions{
    gap: 6px;
  }.staff-top-actions{
    gap: 6px;
  }

  .topbar-quick-action{
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.profile-chip .profile-name{
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }.live-pill span:not(:first-child){
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notification-panel{
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }.notification-dropdown{
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }

  .card{
    padding: 14px !important;
  }.metric-card{
    padding: 14px !important;
  }.stat-card{
    padding: 14px !important;
  }.chart-card{
    padding: 14px !important;
  }.table-wrap{
    padding: 14px !important;
  }

  table{
    min-width: 680px;
  }
}

/* 20260704 executive theme mobile drawer binding */
@media (max-width: 1023px) {


  body.mobile-menu-open::after{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 240;
    background:var(--page);
    backdrop-filter: blur(4px);
  }html.mobile-menu-open body::after{
    content: "";
    position: fixed;
    inset: 0;
    z-index: 240;
    background:var(--page);
    backdrop-filter: blur(4px);
  }
}

.auto-clock-badge{
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background:var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 900;
  box-shadow:var(--shadow);
}

.timesheet-status-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
  font-weight: 800;
  font-size:14px;
}

.timesheet-status-chip.approved{
  border-color: var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
}

.timesheet-status-chip.rejected{
  border-color: var(--border);
  background:var(--danger-bg);
  color: var(--danger);
}

.timesheet-pending-row{
  background:var(--warning-bg);
}

.timesheet-review-actions{
  min-width: 8.5rem;
}

.secondary-btn.small{
  padding: 0.65rem 0.9rem;
  min-height: 2.25rem;
  font-size:14px;
}button.small{
  padding: 0.65rem 0.9rem;
  min-height: 2.25rem;
  font-size:14px;
}

@media (max-width: 767px) {
  .timesheet-review-actions{
    min-width: 0;
  }

  .timesheet-status-chip{
    min-width: 4.8rem;
  }
}

/* Voxel Veda Aurora Graphite Theme - shared across all portals */
:root{












  --radius: 18px;


}



body::before{
  opacity: 0.9;
  background-image:none;
  background-size: 56px 56px;
}



.brand{
  margin-bottom: 28px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:var(--surface);
}

.brand-mark{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background:var(--surface);
  border-color: var(--border);
}

.brand h1{
  font-size: 16px;
  letter-spacing: 0.08em;
}

.brand p{
  color: var(--text-secondary);
}

.nav-btn{
  font-size:14px;
}.logout-btn{
  font-size:14px;
}.nav-group-toggle{
  font-size:14px;
}.nav-sub-btn{
  font-size:14px;
}

.nav-btn{
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.logout-btn{
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.nav-btn.active{
  background:var(--primary);
  color:var(--on-primary);
  box-shadow:var(--shadow);
}.nav-btn:hover{
  background:var(--surface-muted);
  color: var(--text-primary);
  box-shadow:var(--shadow);
}.nav-sub-btn.active{
  background:var(--primary);
  color:var(--on-primary);
  box-shadow:var(--shadow);
}.nav-sub-btn:hover{
  background:var(--surface-muted);
  color: var(--text-primary);
  box-shadow:var(--shadow);
}

.nav-group{
  border-radius: 16px;
  border-color: var(--border);
  background:var(--surface);
}



.section-head{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.card{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.table-wrap{
  border-color: var(--border);
  background:var(--surface-muted);
  box-shadow:var(--shadow);
}.dialog-card{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.public-card{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}.login-card{
  border-color: var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}



.card{
  border-radius: var(--radius);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover{
  border-color: var(--border);
  box-shadow:var(--shadow);
}

.card h3{
  letter-spacing: -0.01em;
}.section-head h2{
  letter-spacing: -0.01em;
}.topbar h2{
  letter-spacing: -0.01em;
}

.primary-btn{
  background:var(--primary);
  color:var(--on-primary);
  border: 0;
  box-shadow:var(--shadow);
}.small-btn{
  background:var(--surface);
  color: var(--text-secondary);
  border: 0;
  box-shadow:var(--shadow);
}.login-btn{
  background:var(--primary);
  color:var(--on-primary);
  border: 0;
  box-shadow:var(--shadow);
}

.secondary-btn{
  border-color: var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
}

.danger-btn{
  background:var(--danger-bg);
  color: var(--danger);
  border-color: var(--border);
}.logout-btn{
  background:var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

input{
  border-color: var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--text) !important;
  border-radius: 14px !important;
}select{
  border-color: var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--text) !important;
  border-radius: 14px !important;
}textarea{
  border-color: var(--control-border) !important;
  background:var(--surface)!important;
  color: var(--text) !important;
  border-radius: 14px !important;
}

input:focus{
  outline: none;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow);
}select:focus{
  outline: none;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow);
}textarea:focus{
  outline: none;
  border-color: var(--focus) !important;
  box-shadow:var(--shadow);
}

.workforce-kpi-action{
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.workforce-kpi-action:hover{
  transform: translateY(-2px);
  border-color: var(--border);
  outline: none;
}.workforce-kpi-action:focus-visible{
  transform: translateY(-2px);
  border-color: var(--focus);
  outline: none;
}

.timesheet-approved-row{
  background:var(--surface);
}

.action-success-popup{
  position: fixed;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 15000;
  width: min(440px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--success);
  background:var(--success-bg);
  box-shadow:var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.action-success-popup.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.action-success-icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:var(--success-bg);
  color: var(--success);
  font-size: 24px;
  font-weight: 900;
  box-shadow:var(--shadow);
}

.action-success-copy{
  min-width: 0;
  display: grid;
  gap: 3px;
}

.action-success-copy strong{
  font-size: 14px;
}

.action-success-copy span{
  color: var(--success);
  font-size:14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.action-success-close{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--success);
  font-size: 24px;
  cursor: pointer;
}

.action-success-close:hover{
  background:var(--success-bg);
}.action-success-close:focus-visible{
  background:var(--success-bg);
}

@media (max-width: 520px) {
  .action-success-popup{
    top: calc(12px + env(safe-area-inset-top, 0px));
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    padding: 12px;
    border-radius: 12px;
  }

  .action-success-icon{
    width: 38px;
    height: 38px;
    font-size: 21px;
  }
}

.email-delivery-status{
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:var(--surface);
  color: var(--text-primary);
  line-height: 1.45;
  box-shadow:var(--shadow);
}

.email-delivery-status[hidden]{
  display: none;
}

.email-delivery-status span{
  color: var(--text-primary);
}

.document-recovery-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 520px) {
  .document-recovery-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-recovery-actions > *{
    width: 100%;
  }
}

.staff-account-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 168px;
}

.staff-account-actions button{
  min-height: 34px;
  white-space: normal;
}

.account-delete-warning{
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 6px;
  background:var(--warning-bg);
}

.account-delete-warning strong{
  color: var(--warning);
}

.account-delete-warning p{
  margin: 6px 0 0;
  color: var(--muted, #9fb1c5);
  line-height: 1.55;
}

.account-delete-dialog{
  width: min(560px, calc(100vw - 28px));
}

.timesheet-focus-row{
  animation: vvRowPulse 1.4s ease-in-out 2;
}

@keyframes vvRowPulse {
  0%{ box-shadow:var(--shadow); }100%{ box-shadow:var(--shadow); }
  50%{ box-shadow:var(--shadow); }
}

@media (max-width: 900px) {
  .mobile-menu-btn{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:var(--surface);
    backdrop-filter: blur(16px);
  }



  .brand{
    margin-bottom: 16px;
  }

  .nav-btn{
    min-height: 40px;
    padding: 9px 11px;
    margin-bottom: 7px;
  }.logout-btn{
    min-height: 40px;
    padding: 9px 11px;
    margin-bottom: 7px;
  }

  .nav-group-toggle{
    min-height: 40px;
    padding: 9px 11px;
  }



  .card{
    border-radius: 16px;
  }.table-wrap{
    border-radius: 16px;
  }.dialog-card{
    border-radius: 16px;
  }
}
/* STAFF WORK HUB UPGRADE */
.staff-work-grid{
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.staff-work-form{
  border-color: var(--border);
  background:var(--surface);
}.staff-work-panel{
  border-color: var(--border);
  background:var(--surface);
}.staff-document-card{
  border-color: var(--border);
  background:var(--surface);
}

.staff-work-form label{
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size:14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.staff-work-form input{
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  background:var(--surface);
  outline: none;
}.staff-work-form select{
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  background:var(--surface);
  outline: none;
}.staff-work-form textarea{
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  background:var(--surface);
  outline: none;
}

.staff-module-list{
  display: grid;
  gap: 12px;
}

.staff-mini-card{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.staff-mini-card div{
  display: grid;
  gap: 5px;
}

.staff-mini-card span{
  color: var(--text-primary);
}.staff-mini-card small{
  color: var(--text-secondary);
}.staff-document-card p{
  color: var(--text-secondary);
}

.staff-status-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
}

.staff-status-pill.pending{
  border-color: var(--border);
  background:var(--warning-bg);
  color: var(--warning);
}

.compact-btn{
  min-height: 34px;
  padding: 8px 12px;
}

.staff-document-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.staff-document-card{
  display: grid;
  gap: 12px;
}

.staff-document-card > span{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .staff-work-grid{
    grid-template-columns: 1fr;
  }

  .staff-mini-card{
    align-items: stretch;
    flex-direction: column;
  }

  .staff-document-grid{
    grid-template-columns: 1fr;
  }
}

/* Admin staff access and work hub refinement */
.dialog-panel.staff-access-dialog{
  width: min(940px, calc(100vw - 24px));
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}.dialog-panel.admin-workhub-dialog{
  width: min(940px, calc(100vw - 24px));
  max-height: min(88dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialog-panel.staff-access-dialog > h3{
  margin: 0;
  padding: 18px 20px 10px;
}.dialog-panel.admin-workhub-dialog > h3{
  margin: 0;
  padding: 18px 20px 10px;
}

.dialog-panel.staff-access-dialog #dialogBody{
  overflow-y: auto;
  padding: 0 20px 16px;
  scrollbar-width: thin;
}.dialog-panel.admin-workhub-dialog #dialogBody{
  overflow-y: auto;
  padding: 0 20px 16px;
  scrollbar-width: thin;
}

.dialog-panel.staff-access-dialog .dialog-actions{
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background:var(--surface);
}.dialog-panel.admin-workhub-dialog .dialog-actions{
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background:var(--surface);
}

.dialog-panel.staff-access-dialog .form-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
}

.dialog-panel.staff-access-dialog .access-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: clamp(240px, 38dvh, 430px);
  overflow-y: auto;
  padding-right: 4px;
}

.dialog-panel.staff-access-dialog .access-check{
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
}.dialog-panel.staff-access-dialog .access-toggle-row{
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
}

.admin-workhub-control{
  margin-bottom: 18px;
}

.admin-workhub-head{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-workhub-head p{
  color: var(--muted);
  margin: 6px 0 0;
}

.admin-workhub-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-workhub-card{
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  min-height: 92px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow:var(--shadow);
}

.admin-workhub-card:hover{
  transform: translateY(-1px);
  border-color: var(--border);
}

.admin-workhub-card strong{
  color: var(--accent);
  font-size: 1.4rem;
}

.admin-workhub-dialog-body{
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}

.admin-workhub-entry-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.admin-workhub-entry-form .span-2{
  grid-column: 1 / -1;
}

.admin-workhub-register-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-workhub-register-head h4{
  margin: 0;
}

.admin-workhub-register-head span{
  color: var(--muted);
}.admin-workhub-row span{
  color: var(--muted);
}.admin-workhub-row small{
  color: var(--muted);
}

.admin-workhub-register{
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.admin-workhub-row{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background:var(--surface);
}

.admin-workhub-row div{
  display: grid;
  gap: 4px;
}

@media (max-width: 900px) {
  .admin-workhub-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workhub-dialog-body{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dialog-panel.staff-access-dialog{
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 16px;
  }.dialog-panel.admin-workhub-dialog{
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 16px;
  }

  .dialog-panel.staff-access-dialog > h3{
    font-size: 18px;
    padding: 14px 14px 8px;
  }.dialog-panel.admin-workhub-dialog > h3{
    font-size: 18px;
    padding: 14px 14px 8px;
  }

  .dialog-panel.staff-access-dialog #dialogBody{
    padding: 0 14px 12px;
  }.dialog-panel.admin-workhub-dialog #dialogBody{
    padding: 0 14px 12px;
  }

  .dialog-panel.staff-access-dialog .dialog-actions{
    padding: 10px 14px 14px;
  }.dialog-panel.admin-workhub-dialog .dialog-actions{
    padding: 10px 14px 14px;
  }

  .dialog-panel.staff-access-dialog .form-grid{
    grid-template-columns: 1fr !important;
  }.dialog-panel.staff-access-dialog .access-grid{
    grid-template-columns: 1fr !important;
  }.admin-workhub-entry-form{
    grid-template-columns: 1fr !important;
  }.admin-workhub-grid{
    grid-template-columns: 1fr !important;
  }

  .dialog-panel.staff-access-dialog .access-grid{
    max-height: 42dvh;
  }

  .admin-workhub-card{
    min-height: 74px;
  }
}
/* 20260704 premium graphite theme refresh */
:root{










}



body::before{
  background-image:none!important;
  background-size: 56px 56px !important;
}



.brand{
  margin-bottom: 26px !important;
  padding: 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  background:var(--surface)!important;
}

.brand-mark{
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

.brand h1{
  font-size: 15px !important;
  letter-spacing: 0.02em !important;
}

.nav-btn{
  border-radius: 12px !important;
  border-color: var(--border) !important;
  background:var(--surface)!important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  font-weight: 800 !important;
}.logout-btn{
  border-radius: 12px !important;
  border-color: var(--border) !important;
  background:var(--surface)!important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  font-weight: 800 !important;
}

.nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  box-shadow:var(--shadow)!important;
}.nav-btn:hover{
  background:var(--surface-muted)!important;
  color: var(--text-primary) !important;
  box-shadow:var(--shadow)!important;
}

.nav-group{
  border-color: var(--border) !important;
  background:var(--surface)!important;
  border-radius: 14px !important;
}

.card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.dialog-panel{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.modal{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.staff-work-form{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}.staff-work-panel{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  box-shadow:var(--shadow)!important;
}

.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
}.system-action{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
}.admin-workhub-card strong{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
}.staff-status-pill{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
}

.admin-workhub-card{
  border-color: var(--border) !important;
  background:var(--surface)!important;
}.staff-mini-card{
  border-color: var(--border) !important;
  background:var(--surface)!important;
}

.admin-message-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staff-message-row strong span{
  color: var(--accent-2);
  font-size:14px;
  margin-left: 8px;
  text-transform: uppercase;
}

.admin-workhub-dialog-body.single-column{
  grid-template-columns: 1fr !important;
}

@media (max-width: 760px) {


  .brand{
    margin-bottom: 14px !important;
  }

  .nav-btn{
    min-height: 40px !important;
    font-size:14px!important;
  }.logout-btn{
    min-height: 40px !important;
    font-size:14px!important;
  }


}
/* 20260704 orbital command interface */
:root{
















}



body::after{
  opacity: 0.032 !important;
  filter: saturate(0.9) contrast(1.08);
  background-size: min(42vw, 520px) auto !important;
}



.brand{
  padding: 8px 10px !important;
  border-radius: 16px !important;
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  min-height: 56px !important;
}

.brand-mark{
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}.brand img{
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}

.brand h1{
  font-size:14px!important;
  letter-spacing: 0.06em !important;
  line-height: 1.1 !important;
}.brand-title{
  font-size:14px!important;
  letter-spacing: 0.06em !important;
  line-height: 1.1 !important;
}

.brand p{
  font-size:14px!important;
  color: var(--muted) !important;
}.brand-subtitle{
  font-size:14px!important;
  color: var(--muted) !important;
}

.nav-section-title{
  color: var(--text-primary) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  margin: 16px 6px 7px !important;
}

.nav-btn{
  min-height: 38px !important;
  border-radius: 12px !important;
  border-color: var(--border) !important;
  background:var(--surface)!important;
  color: var(--text) !important;
  font-size:14px!important;
  box-shadow:var(--shadow)!important;
}.nav-group-toggle{
  min-height: 38px !important;
  border-radius: 12px !important;
  border-color: var(--border) !important;
  background:var(--surface)!important;
  color: var(--text) !important;
  font-size:14px!important;
  box-shadow:var(--shadow)!important;
}.sidebar a{
  min-height: 38px !important;
  border-radius: 12px !important;
  border-color: var(--border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  font-size:14px!important;
  box-shadow:var(--shadow)!important;
}.sidebar button:not(.logout-btn):not(.sidebar-close):not(.hamburger){
  min-height: 38px !important;
  border-radius: 12px !important;
  border-color: var(--control-border) !important;
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  font-size:14px!important;
  box-shadow:var(--shadow)!important;
}

.nav-btn.active{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar a.active{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar button.active{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.nav-group.active .nav-group-toggle{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}

.nav-submenu{
  margin: 6px 0 0 !important;
  padding: 6px !important;
  border-radius: 14px !important;
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
}.nav-group-items{
  margin: 6px 0 0 !important;
  padding: 6px !important;
  border-radius: 14px !important;
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
}

.logout-btn{
  border-radius: 13px !important;
  min-height: 40px !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}

.page-hero{
  background:var(--hero-bg)!important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}.admin-page-hero{
  background:var(--hero-bg)!important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}.staff-page-hero{
  background:var(--hero-bg)!important;
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}

.card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.stat-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.metric-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.table-wrap{
  background:var(--surface-muted)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.modal-content{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.staff-work-form{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.admin-message-inbox{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.admin-workhub-register{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.shell-panel{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}.form-panel{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow:var(--shadow)!important;
}

.card:hover{
  border-color: var(--border-strong) !important;
}.stat-card:hover{
  border-color: var(--border-strong) !important;
}.metric-card:hover{
  border-color: var(--border-strong) !important;
}

.primary-btn{
  border-radius: 12px !important;
  min-height: 38px !important;
  font-weight: 800 !important;
}.secondary-btn{
  border-radius: 12px !important;
  min-height: 38px !important;
  font-weight: 800 !important;
}.system-action{
  border-radius: 12px !important;
  min-height: 38px !important;
  font-weight: 800 !important;
}button[type="submit"]{
  border-radius: 12px !important;
  min-height: 38px !important;
  font-weight: 800 !important;
}.action-btn{
  border-radius: 12px !important;
  min-height: 38px !important;
  font-weight: 800 !important;
}

.primary-btn{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border: 0 !important;
}.system-action{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--text-primary) !important;
  border: 0 !important;
}button[type="submit"]{
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--on-primary) !important;
  border: 0 !important;
}

.secondary-btn{
  background:var(--surface-muted)!important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}.action-btn{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

input{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
}select{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
}textarea{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  border-radius: 12px !important;
  color: var(--text) !important;
}

th{
  color: var(--text-primary) !important;
  letter-spacing: 0.08em !important;
}.table-head{
  color: var(--text-primary) !important;
  letter-spacing: 0.08em !important;
}.eyebrow{
  color: var(--text-secondary) !important;
  letter-spacing: 0.08em !important;
}

.admin-message-inbox{
  margin: 16px 0 20px !important;
  padding: 18px !important;
}

.admin-message-inbox-list{
  max-height: 370px !important;
  overflow: auto !important;
  padding: 10px !important;
}

.staff-message-row{
  border-left: 3px solid var(--accent) !important;
  background:var(--surface)!important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  padding: 12px !important;
}.admin-message-row{
  border-left: 3px solid var(--accent) !important;
  background:var(--surface)!important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  padding: 12px !important;
}

.staff-message-row strong{
  color: var(--text) !important;
}.admin-message-row strong{
  color: var(--text) !important;
}

.notification-dropdown{
  border-radius: 18px !important;
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}

@media (max-width: 767px) {


  .nav-btn{
    min-height: 42px !important;
    font-size:14px!important;
  }.nav-group-toggle{
    min-height: 42px !important;
    font-size:14px!important;
  }.sidebar a{
    min-height: 42px !important;
    font-size:14px!important;
  }.sidebar button:not(.logout-btn):not(.sidebar-close):not(.hamburger){
    min-height: 42px !important;
    font-size:14px!important;
  }

  .content{
    padding-inline: clamp(12px, 4vw, 18px) !important;
  }main{
    padding-inline: clamp(12px, 4vw, 18px) !important;
  }

  .card{
    border-radius: 16px !important;
  }.stat-card{
    border-radius: 16px !important;
  }.metric-card{
    border-radius: 16px !important;
  }.table-wrap{
    border-radius: 16px !important;
  }.modal-content{
    border-radius: 16px !important;
  }

  .admin-message-inbox-list{
    max-height: 52vh !important;
  }
}


/* 20260704 staff request queue polish */
.staff-request-row{
  border-left: 3px solid var(--border);
  background:var(--surface);
}
.staff-request-row strong{
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.staff-request-row strong span{
  color: var(--text, #f6fbff);
}
.staff-request-row .status-chip{
  margin-left: auto;
}
@media (max-width: 640px) {
  .staff-request-row strong{ align-items: flex-start; }
  .staff-request-row .status-chip{ margin-left: 0; }
}

/* 20260704 cobalt graphite theme refresh */
:root{










}

body::before{
  background-image:none;
}
.staff-sidebar{
  background:var(--nav-bg);
  border-right-color: var(--border);
color:var(--nav-text);}.customer-sidebar{
  background:var(--nav-bg);
  border-right-color: var(--border);
color:var(--nav-text);}
.card{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.table-wrap{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.dialog-panel{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.admin-workhub-control{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.admin-message-inbox{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.staff-work-form{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.staff-mini-card{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.nav-group{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.nav-btn{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}.shell-topbar{
  border-color: var(--border) !important;
  box-shadow:var(--shadow);
}
.nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
}.nav-btn:hover{
  background:var(--surface-muted)!important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--border) !important;
}button.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: var(--control-border) !important;
}.admin-workhub-card:hover{
  background:var(--surface-muted)!important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}
.secondary-btn{
  border-color: var(--border) !important;
}.small-btn{
  border-color: var(--border) !important;
}.compact-btn{
  border-color: var(--border) !important;
}
.status-pill{
  border-color: var(--border) !important;
}.status-chip{
  border-color: var(--border) !important;
}.staff-status-pill{
  border-color: var(--border) !important;
}
.logout-btn{
  background:var(--surface)!important;
}
.staff-request-row{
  background:var(--surface)!important;
  border-left-color: var(--border) !important;
}.staff-message-row{
  background:var(--surface)!important;
  border-left-color: var(--border) !important;
}
/* 20260722 FINAL MOBILE SHELL + QR SCANNER REPAIR */
:root{





  --vv-layer-topbar: 80;
  --vv-layer-bottom-nav: 95;
  --vv-layer-backdrop: 180;
  --vv-layer-sidebar: 210;
  --vv-layer-dialog: 300;
  --vv-layer-toast: 400;
}

body.vv-scroll-locked{ overflow: hidden !important; }
.mobile-sidebar-backdrop{ filter: none !important; backdrop-filter: none !important; }

.sidebar .nav-btn::before{ content: none !important; display: none !important; }.sidebar .nav-sub-btn::before{ content: none !important; display: none !important; }.sidebar .nav-group-toggle::before{ content: none !important; display: none !important; }.staff-portal .sidebar .nav-btn::before{ content: none !important; display: none !important; }.staff-portal .sidebar .nav-sub-btn::before{ content: none !important; display: none !important; }
.sidebar .nav-btn{ min-height: 40px !important; border-radius: 12px !important; font-size:14px!important; letter-spacing: 0 !important; }.sidebar .nav-sub-btn{ min-height: 40px !important; border-radius: 12px !important; font-size:14px!important; letter-spacing: 0 !important; }.sidebar .nav-group-toggle{ min-height: 40px !important; border-radius: 12px !important; font-size:14px!important; letter-spacing: 0 !important; }.sidebar .logout-btn{ min-height: 40px !important; border-radius: 12px !important; font-size:14px!important; letter-spacing: 0 !important; }
.sidebar .nav-btn.active{ background:var(--primary)!important; color:var(--on-primary)!important; border-color: transparent !important; box-shadow:var(--shadow)!important; }.sidebar .nav-sub-btn.active{ background:var(--primary)!important; color:var(--on-primary)!important; border-color: transparent !important; box-shadow:var(--shadow)!important; }

.notification-panel{ z-index: calc(var(--vv-layer-topbar) + 10) !important; background:var(--surface)!important; border: 1px solid var(--border) !important; box-shadow:var(--shadow)!important; }.notification-dropdown{ z-index: calc(var(--vv-layer-topbar) + 10) !important; background:var(--surface)!important; border: 1px solid var(--border) !important; box-shadow:var(--shadow)!important; }
.dialog-backdrop{ z-index: var(--vv-layer-dialog) !important; }
.toast{ z-index: var(--vv-layer-toast) !important; }
.mobile-bottom-nav{ display: none; }
.vv-plain-qr-scanner{ gap: 14px !important; }
.vv-plain-qr-scanner .shift-scan-camera{ width: min(100%, 360px) !important; aspect-ratio: 1 / 1 !important; margin: 0 auto !important; border-radius: 20px !important; background:var(--surface)!important; overflow: hidden !important; border: 1px solid var(--border) !important; box-shadow:var(--shadow)!important; }
.vv-plain-qr-scanner .shift-scan-camera::before{ display: none !important; content: none !important; background: none !important; }.vv-plain-qr-scanner .shift-camera-glass{ display: none !important; content: none !important; background: none !important; }.vv-plain-qr-scanner .shift-scan-corners{ display: none !important; content: none !important; background: none !important; }.vv-plain-qr-scanner .shift-scanline{ display: none !important; content: none !important; background: none !important; }.vv-plain-qr-scanner .shift-scan-hint{ display: none !important; content: none !important; background: none !important; }
.vv-plain-qr-scanner .shift-scan-camera video{ width: 100% !important; height: 100% !important; object-fit: cover !important; background:var(--surface)!important; }
.vv-plain-qr-scanner .shift-scan-camera video:not(.camera-active){ opacity: .18 !important; }
.vv-plain-qr-scanner .shift-scan-reticle{ position: absolute !important; inset: 16% !important; border: 2px solid var(--border) !important; border-radius: 18px !important; box-shadow:var(--shadow)!important; }
.vv-plain-qr-scanner .shift-scan-reticle::before{ display: none !important; content: none !important; }.vv-plain-qr-scanner .shift-scan-reticle::after{ display: none !important; content: none !important; }
.shift-qr-dialog-panel:has(.vv-plain-qr-scanner){ width: min(94vw, 440px) !important; padding: 18px !important; }
.shift-qr-dialog-panel:has(.vv-plain-qr-scanner) h3{ display: none !important; }

/* 20260725 company forms digital workflow */
.form-action-stack{
  flex-wrap: wrap;
  justify-content: flex-start;
}

.form-action-stack .primary-btn{
  min-height: 38px;
  padding-inline: 12px;
}.form-action-stack .icon-btn{
  min-height: 38px;
  padding-inline: 12px;
}.form-action-stack a.icon-btn{
  min-height: 38px;
  padding-inline: 12px;
}

.form-record-line{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 700;
}

.digital-form-shell{
  display: grid;
  gap: 16px;
}

.digital-form-summary{
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:var(--surface);
}

.digital-form-summary h4{
  margin: 0;
}.digital-form-summary p{
  margin: 0;
}

.digital-form-summary p{
  color: var(--muted);
  line-height: 1.45;
}

.digital-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.digital-form-grid label{
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size:14px;
  font-weight: 800;
}

.digital-form-grid textarea{
  min-height: 110px;
}

.form-entry-list{
  display: grid;
  gap: 12px;
}

.form-record-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:var(--surface);
}

.form-record-card strong{
  display: block;
}.form-record-card span{
  display: block;
}

.form-record-card span{
  margin-top: 4px;
  color: var(--muted);
  font-size:14px;
}

@media (max-width: 700px) {
  .digital-form-grid{
    grid-template-columns: 1fr;
  }

  .form-record-card{
    align-items: stretch;
    flex-direction: column;
  }

  .form-record-card .inline-actions{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }.form-action-stack{
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1023px) {
  body.vv-scroll-locked{ overflow: hidden !important; height: 100% !important; }



  .topbar-title h2{ font-size: clamp(1rem, 5vw, 1.28rem) !important; line-height: 1.1 !important; }.topbar h2{ font-size: clamp(1rem, 5vw, 1.28rem) !important; line-height: 1.1 !important; }
  .topbar-title p{ font-size:14px!important; }.topbar p{ font-size:14px!important; }.topbar-kicker{ font-size: .72rem !important; }
  .topbar-actions{ margin-left: auto !important; gap: 6px !important; }
  .topbar-quick-action{ display: none !important; }.profile-chip span:not(.profile-initial){ display: none !important; }.live-pill{ display: none !important; }
  .notification-panel{ position: fixed !important; top: calc(72px + env(safe-area-inset-top)) !important; left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; }.notification-dropdown{ position: fixed !important; top: calc(72px + env(safe-area-inset-top)) !important; left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; }
  .mobile-menu-btn{ display: inline-flex !important; width: 42px !important; height: 42px !important; min-width: 42px !important; border-radius: 14px !important; align-items: center !important; justify-content: center !important; z-index: calc(var(--vv-layer-sidebar) + 2) !important; background:var(--surface)!important; border: 1px solid var(--border) !important; }.topbar-menu-btn{ display: inline-flex !important; width: 42px !important; height: 42px !important; min-width: 42px !important; border-radius: 14px !important; align-items: center !important; justify-content: center !important; z-index: calc(var(--vv-layer-sidebar) + 2) !important; background:var(--surface)!important; border: 1px solid var(--border) !important; }
  .mobile-menu-btn span{ width: 18px !important; height: 2px !important; margin: 2px 0 !important; background: var(--vv-accent) !important; border-radius: 99px !important; display: block !important; }.topbar-menu-btn span{ width: 18px !important; height: 2px !important; margin: 2px 0 !important; background: var(--vv-accent) !important; border-radius: 99px !important; display: block !important; }
  .mobile-sidebar-backdrop{ display: block !important; position: fixed !important; inset: 0 !important; z-index: var(--vv-layer-backdrop) !important; background:var(--scrim)!important; opacity: 0 !important; pointer-events: none !important; transition: opacity .22s ease !important; }
  body.mobile-menu-open .mobile-sidebar-backdrop{ opacity: 1 !important; pointer-events: auto !important; }html.mobile-menu-open .mobile-sidebar-backdrop{ opacity: 1 !important; pointer-events: auto !important; }


  .sidebar .brand{ min-height: 54px !important; padding: 8px !important; border-radius: 14px !important; margin-bottom: 10px !important; }.staff-sidebar-profile{ min-height: 54px !important; padding: 8px !important; border-radius: 14px !important; margin-bottom: 10px !important; }
  .sidebar .logo-img{ width: 40px !important; height: 40px !important; object-fit: contain !important; }.sidebar .brand img{ width: 40px !important; height: 40px !important; object-fit: contain !important; }
  .sidebar .brand h1{ font-size: .96rem !important; }.staff-sidebar-profile strong{ font-size: .96rem !important; }
  .sidebar .brand p{ font-size:14px!important; }.staff-sidebar-profile span{ font-size:14px!important; }.staff-sidebar-profile small{ font-size:14px!important; }
  .sidebar .nav-section-label{ margin: 12px 4px 6px !important; font-size: .64rem !important; }
  .sidebar .nav-btn{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }.sidebar .nav-sub-btn{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }.sidebar .nav-group-toggle{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }.sidebar .logout-btn{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }.staff-portal .sidebar .nav-btn{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }.staff-portal .sidebar .nav-sub-btn{ min-height: 38px !important; padding: 9px 11px !important; margin: 5px 0 !important; font-size:14px!important; line-height: 1.15 !important; }
  .sidebar .nav-group{ padding: 6px !important; margin: 7px 0 !important; border-radius: 14px !important; }
  .sidebar .nav-submenu{ gap: 4px !important; padding: 2px 0 0 !important; }
  .sidebar-footer{ position: sticky !important; bottom: 0 !important; padding-top: 8px !important; background:var(--nav-bg)!important; color:var(--nav-text);}
  .mobile-bottom-nav{ position: fixed !important; left: 10px !important; right: 10px !important; bottom: max(10px, env(safe-area-inset-bottom)) !important; z-index: var(--vv-layer-bottom-nav) !important; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 6px !important; padding: 8px !important; border-radius: 20px !important; background:var(--surface)!important; border: 1px solid var(--border) !important; box-shadow:var(--shadow)!important; }
  .mobile-bottom-nav button{ min-width: 0 !important; min-height: 42px !important; border: 0 !important; border-radius: 14px !important; background: transparent !important; color: var(--vv-muted) !important; font-size:14px!important; font-weight: 800 !important; padding: 5px !important; }
  .mobile-bottom-nav button.mobile-bottom-primary{ background:var(--primary)!important; color:var(--on-primary)!important; box-shadow:var(--shadow)!important; }
  body.mobile-menu-open .mobile-bottom-nav{ opacity: 0 !important; pointer-events: none !important; }
  .dashboard-grid{ grid-template-columns: 1fr !important; }.stats-grid{ grid-template-columns: 1fr !important; }.quick-grid{ grid-template-columns: 1fr !important; }.system-action-grid{ grid-template-columns: 1fr !important; }.admin-workhub-grid{ grid-template-columns: 1fr !important; }.stock-dialog-grid{ grid-template-columns: 1fr !important; }.staff-grid{ grid-template-columns: 1fr !important; }.staff-home-grid{ grid-template-columns: 1fr !important; }.staff-workhub-layout{ grid-template-columns: 1fr !important; }
  .card{ max-width: 100% !important; border-radius: 16px !important; }.table-wrap{ max-width: 100% !important; border-radius: 16px !important; }.dialog-panel{ max-width: 100% !important; border-radius: 16px !important; }
  .dialog-panel{ width: min(94vw, 640px) !important; max-height: 86dvh !important; overflow-y: auto !important; padding: 16px !important; }
  .dialog-actions{ position: sticky !important; bottom: -16px !important; background:var(--surface)!important; padding-top: 12px !important; }
  table.responsive-table{ min-width: 0 !important; }
  .table-wrap{ overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  input{ max-width: 100% !important; }select{ max-width: 100% !important; }textarea{ max-width: 100% !important; }button{ max-width: 100% !important; }
}
@media (max-width: 420px) {


  .mobile-bottom-nav{ left: 8px !important; right: 8px !important; gap: 4px !important; }
  .mobile-bottom-nav button{ font-size:14px!important; }
}
/* 20260723 GRAPHITE BLUE THEME + SHARP MOBILE SIDEBAR */
:root{



















}

body.staff-portal{
  background:var(--page)!important;
  color: var(--text) !important;
}body.customer-portal{
  background:var(--page)!important;
  color: var(--text) !important;
}

body::before{
  background-image:none!important;
  opacity: 1 !important;
  filter: none !important;
}

.staff-portal .sidebar{
  background:var(--nav-bg)!important;
  border-right: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
color:var(--nav-text);}.customer-portal .sidebar{
  background:var(--nav-bg)!important;
  border-right: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
color:var(--nav-text);}

.mobile-sidebar-backdrop{
  background:var(--scrim)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}body.mobile-menu-open::after{
  background:var(--page)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}html.mobile-menu-open body::after{
  background:var(--page)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}body.sidebar-open::after{
  background:var(--nav-bg)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
color:var(--nav-text);}body.nav-open::after{
  background:var(--page)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}



.sidebar .brand{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}.staff-sidebar-profile{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}

.sidebar .logo-img{
  filter: none !important;
}.sidebar .brand img{
  filter: none !important;
}.staff-sidebar-profile img{
  filter: none !important;
}

.sidebar h1{
  color: var(--nav-text) !important;
  letter-spacing: 0 !important;
}.sidebar .brand-title{
  color: var(--nav-text) !important;
  letter-spacing: 0 !important;
}.staff-sidebar-profile strong{
  color: var(--nav-text) !important;
  letter-spacing: 0 !important;
}.topbar h1{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}.topbar h2{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}.vv-topbar h1{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}.vv-topbar h2{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}.page-title{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}h1{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}h2{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}h3{
  color: var(--text-primary) !important;
  letter-spacing: 0 !important;
}

.sidebar p{
  color: var(--nav-text) !important;
}.sidebar .brand-subtitle{
  color: var(--nav-text) !important;
}.staff-sidebar-profile span{
  color: var(--nav-text) !important;
}.staff-sidebar-profile small{
  color: var(--nav-text) !important;
}.muted{
  color: var(--text-secondary) !important;
}.card small{
  color: var(--text-secondary) !important;
}.stat-card small{
  color: var(--text-secondary) !important;
}

.sidebar .nav-section-label{
  color: var(--nav-text) !important;
  letter-spacing: 0.10em !important;
}

.sidebar .nav-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}.sidebar .nav-sub-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}.sidebar .nav-group-toggle{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}.sidebar .logout-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}.staff-portal .sidebar .nav-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}.staff-portal .sidebar .nav-sub-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
  text-shadow:none!important;
}

.sidebar .nav-btn:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
  color:var(--nav-text)!important;
}.sidebar .nav-sub-btn:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
  color:var(--nav-text)!important;
}.sidebar .nav-group-toggle:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
  color:var(--nav-text)!important;
}

.sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-group-toggle.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}

.sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-group-toggle::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}

.shell-topbar{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-topbar{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.customer-topbar{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.stat-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.metric-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.table-wrap{
  background:var(--surface-muted)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.dialog-panel{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.modal-content{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.admin-workhub-control{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.admin-message-inbox{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-work-form{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-mini-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.customer-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.supplier-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.expense-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.form-card{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.nav-group{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}button.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.action-btn.primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.topbar-quick-action{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.mobile-bottom-primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}button[type="submit"]:not(.secondary-btn):not(.logout-btn){
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}

.secondary-btn{
  border-color: var(--border) !important;
}.small-btn{
  border-color: var(--border) !important;
}.compact-btn{
  border-color: var(--border) !important;
}.action-btn{
  border-color: var(--border) !important;
}button:not(.nav-btn):not(.nav-sub-btn):not(.nav-group-toggle):not(.logout-btn):not(.primary-btn){
  border-color: var(--control-border) !important;
}

input{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  color: var(--text-primary) !important;
  box-shadow:var(--shadow)!important;
}select{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  color: var(--text-primary) !important;
  box-shadow:var(--shadow)!important;
}textarea{
  background:var(--surface)!important;
  border: 1px solid var(--control-border) !important;
  color: var(--text-primary) !important;
  box-shadow:var(--shadow)!important;
}

input:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
  outline: none !important;
}select:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
  outline: none !important;
}textarea:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
  outline: none !important;
}

th{
  color: var(--text-primary) !important;
}.table-head{
  color: var(--text-primary) !important;
}.eyebrow{
  color: var(--text-secondary) !important;
}.kicker{
  color: var(--text-secondary) !important;
}.topbar-kicker{
  color: var(--text-secondary) !important;
}

.notification-panel{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.notification-dropdown{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.dropdown-panel{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-menu-btn{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.topbar-menu-btn{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-menu-btn span{
  background:var(--surface)!important;
}.topbar-menu-btn span{
  background:var(--surface)!important;
}

.mobile-bottom-nav{
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-bottom-nav button{
  color: var(--text-primary) !important;
}

.mobile-bottom-nav button.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
}.mobile-bottom-nav button:hover{
  background:var(--surface-muted)!important;
  color: var(--text-primary) !important;
}

.logout-btn{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}.sidebar .logout-btn{
  background:var(--nav-bg)!important;
  color:var(--nav-text)!important;
  border-color: var(--border) !important;
}

@media (max-width: 1023px) {
  .staff-portal .sidebar{
    width: min(78vw, 282px) !important;
    max-width: 282px !important;
    background:var(--nav-bg)!important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow:var(--shadow)!important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  color:var(--nav-text);}.customer-portal .sidebar{
    width: min(78vw, 282px) !important;
    max-width: 282px !important;
    background:var(--nav-bg)!important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow:var(--shadow)!important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  color:var(--nav-text);}

  .sidebar .brand{
    min-height: 48px !important;
    padding: 7px !important;
  }.staff-sidebar-profile{
    min-height: 48px !important;
    padding: 7px !important;
  }

  .sidebar .logo-img{
    width: 34px !important;
    height: 34px !important;
  }.sidebar .brand img{
    width: 34px !important;
    height: 34px !important;
  }.staff-sidebar-profile img{
    width: 34px !important;
    height: 34px !important;
  }

  .sidebar .brand h1{
    font-size: 0.88rem !important;
  }.staff-sidebar-profile strong{
    font-size: 0.88rem !important;
  }

  .sidebar .brand p{
    font-size:14px!important;
  }.staff-sidebar-profile span{
    font-size:14px!important;
  }.staff-sidebar-profile small{
    font-size:14px!important;
  }

  .sidebar .nav-btn{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }.sidebar .nav-sub-btn{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }.sidebar .nav-group-toggle{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }.sidebar .logout-btn{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }.staff-portal .sidebar .nav-btn{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }.staff-portal .sidebar .nav-sub-btn{
    min-height: 36px !important;
    padding: 8px 10px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
    font-size:14px!important;
  }

  .sidebar .nav-group{
    padding: 5px !important;
    margin: 6px 0 !important;
    border-radius: 12px !important;
  }

  .sidebar-footer{
    background:var(--nav-bg)!important;
  color:var(--nav-text);}

  .mobile-sidebar-backdrop{
    background:var(--scrim)!important;
  }
}

@media (max-width: 420px) {
  .staff-portal .sidebar{
    width: min(76vw, 270px) !important;
    max-width: 270px !important;
  }.customer-portal .sidebar{
    width: min(76vw, 270px) !important;
    max-width: 270px !important;
  }
}
/* 20260723 CONNECTEAM STYLE WORKFORCE SUITE */
.vv-suite-panel{
  margin: clamp(18px, 3vw, 28px) 0;
  padding: clamp(16px, 2.6vw, 24px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
}
.vv-suite-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.vv-suite-head.compact{ margin-bottom: 12px; }
.vv-suite-head h2{ margin: 2px 0 6px; font-size: clamp(1.15rem, 2.4vw, 1.65rem); }
.vv-suite-head p{ margin: 0; max-width: 820px; color: var(--text-secondary); line-height: 1.45; }
.vv-suite-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.vv-suite-card{ appearance: none; width: 100%; min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 16px; border-radius: 18px; border: 1px solid var(--border); background:var(--surface); color: var(--text-primary); text-align: left; box-shadow:var(--shadow); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.vv-suite-card:hover{ transform: translateY(-2px); border-color: var(--border); background:var(--surface-muted); box-shadow:var(--shadow); outline: none; }.vv-suite-card:focus-visible{ transform: translateY(-2px); border-color: var(--focus); background:var(--surface); box-shadow:var(--shadow); outline: none; }
.vv-suite-card span{ display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border-radius: 999px; background:var(--surface); color: var(--text-primary); font-size:14px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.vv-suite-card strong{ font-size: 1.02rem; line-height: 1.15; color: var(--text-primary); }
.vv-suite-card small{ color: var(--text-secondary); line-height: 1.35; }
.staff-suite-panel{ margin-top: 20px; }
.staff-suite-grid{ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 767px) {
  .vv-suite-panel{ padding: 14px; border-radius: 18px; margin: 16px 0; }
  .vv-suite-head{ flex-direction: column; gap: 10px; }
  .vv-suite-head .secondary-btn{ width: 100%; }
  .vv-suite-grid{ grid-template-columns: 1fr; gap: 10px; }.staff-suite-grid{ grid-template-columns: 1fr; gap: 10px; }
  .vv-suite-card{ min-height: 108px; padding: 14px; border-radius: 15px; }
}
/* 20260723 TITANIUM EMERALD THEME + MOBILE SIDEBAR NO OVERLAP */
:root{













  --vv-layer-backdrop: 180 !important;
  --vv-layer-sidebar: 220 !important;
}

body.staff-portal{
  background:var(--page)!important;
  color: var(--text) !important;
}body.customer-portal{
  background:var(--page)!important;
  color: var(--text) !important;
}

body::before{
  background-image:none!important;
  filter: none !important;
}

.staff-portal .sidebar{
  background:var(--nav-bg)!important;
  border-right: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
color:var(--nav-text);}.customer-portal .sidebar{
  background:var(--nav-bg)!important;
  border-right: 1px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
color:var(--nav-text);}

.sidebar .brand{
  flex: 0 0 auto !important;
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
color:var(--nav-text);}.staff-sidebar-profile{
  flex: 0 0 auto !important;
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
color:var(--nav-text);}

.sidebar-nav{
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 2px !important;
}

.sidebar .nav-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-sub-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-group-toggle{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-sub-btn{
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
  box-shadow:var(--shadow)!important;
}

.sidebar .nav-btn:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
color:var(--nav-text);}.sidebar .nav-sub-btn:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
color:var(--nav-text);}.sidebar .nav-group-toggle:hover{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
color:var(--nav-text);}

.sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.sidebar .nav-group-toggle.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}.staff-portal .sidebar .nav-sub-btn.active{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
  box-shadow:var(--shadow)!important;
}

.sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}.sidebar .nav-group-toggle::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-btn::before{
  content: none !important;
  display: none !important;
}.staff-portal .sidebar .nav-sub-btn::before{
  content: none !important;
  display: none !important;
}

.sidebar .nav-group{
  background:var(--nav-bg)!important;
  border-color: var(--border) !important;
color:var(--nav-text);}.nav-group{
  background:var(--surface)!important;
  border-color: var(--border) !important;
}

.sidebar-footer{
  flex: 0 0 auto !important;
  position: static !important;
  margin-top: auto !important;
  padding: 10px 0 0 !important;
  background: transparent !important;
  z-index: auto !important;
}

.sidebar .logout-btn{
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  background:var(--nav-bg)!important;
  border: 1px solid var(--border) !important;
  color:var(--nav-text)!important;
}.logout-btn{
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.shell-topbar{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-topbar{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.customer-topbar{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.notification-panel{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.notification-dropdown{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.stat-card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.metric-card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.table-wrap{
  background:var(--surface-muted)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.dialog-panel{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.modal-content{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.admin-workhub-control{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.admin-message-inbox{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-work-form{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.staff-mini-card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.vv-suite-panel{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.vv-suite-card{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
}button.primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
}.action-btn.primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
}.topbar-quick-action{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
  border-color: transparent !important;
}.mobile-bottom-primary{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
}button[type="submit"]:not(.secondary-btn):not(.logout-btn){
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  border-color: transparent !important;
}

input{
  background:var(--surface)!important;
  border-color: var(--control-border) !important;
}select{
  background:var(--surface)!important;
  border-color: var(--control-border) !important;
}textarea{
  background:var(--surface)!important;
  border-color: var(--control-border) !important;
}

input:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}select:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}textarea:focus{
  border-color: var(--focus) !important;
  box-shadow:var(--shadow)!important;
}

th{
  color: var(--text-primary) !important;
}.table-head{
  color: var(--text-primary) !important;
}.eyebrow{
  color: var(--text-secondary) !important;
}.kicker{
  color: var(--text-secondary) !important;
}.topbar-kicker{
  color: var(--text-secondary) !important;
}.panel-kicker{
  color: var(--text-secondary) !important;
}.vv-suite-card span{
  color: var(--text-primary) !important;
}

.mobile-menu-btn{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.topbar-menu-btn{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.mobile-bottom-nav{
  background:var(--surface)!important;
  border-color: var(--border) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-menu-btn span{
  background:var(--surface)!important;
}.topbar-menu-btn span{
  background:var(--surface)!important;
}

.mobile-sidebar-backdrop{
  background:var(--scrim)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}body.mobile-menu-open::after{
  background:var(--page)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}html.mobile-menu-open body::after{
  background:var(--page)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}body.sidebar-open::after{
  background:var(--nav-bg)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
color:var(--nav-text);}body.nav-open::after{
  background:var(--page)!important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}



@media (min-width: 1024px) {
  .staff-portal .sidebar{
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
  }.customer-portal .sidebar{
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  .staff-portal .sidebar > .nav-btn{
    flex: 0 0 auto !important;
  }.staff-portal .sidebar > details{
    flex: 0 0 auto !important;
  }.staff-portal .sidebar > button.nav-btn{
    flex: 0 0 auto !important;
  }

  .staff-portal .sidebar{
    overflow-y: auto !important;
  }
}

@media (max-width: 1023px) {
  body.vv-scroll-locked{
    overflow: hidden !important;
    height: 100% !important;
  }

  .staff-portal .sidebar{
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(72vw, 258px) !important;
    max-width: 258px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: calc(52px + env(safe-area-inset-top, 0px)) 9px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 16px 16px 0 !important;
    overflow: hidden !important;
    transform: translate3d(-112%, 0, 0) !important;
    z-index: var(--vv-layer-sidebar) !important;
  }.customer-portal .sidebar{
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(72vw, 258px) !important;
    max-width: 258px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: calc(52px + env(safe-area-inset-top, 0px)) 9px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 16px 16px 0 !important;
    overflow: hidden !important;
    transform: translate3d(-112%, 0, 0) !important;
    z-index: var(--vv-layer-sidebar) !important;
  }



  .sidebar .brand{
    min-height: 42px !important;
    padding: 6px !important;
    margin: 0 0 8px !important;
    border-radius: 12px !important;
  }.staff-sidebar-profile{
    min-height: 42px !important;
    padding: 6px !important;
    margin: 0 0 8px !important;
    border-radius: 12px !important;
  }

  .sidebar .logo-img{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size:14px!important;
  }.sidebar .brand img{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size:14px!important;
  }.staff-sidebar-profile img{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size:14px!important;
  }.staff-avatar.small{
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size:14px!important;
  }

  .sidebar .brand h1{
    font-size:14px!important;
    line-height: 1.05 !important;
  }.staff-sidebar-profile strong{
    font-size:14px!important;
    line-height: 1.05 !important;
  }

  .sidebar .brand p{
    font-size:14px!important;
    line-height: 1.1 !important;
  }.staff-sidebar-profile span{
    font-size:14px!important;
    line-height: 1.1 !important;
  }.staff-sidebar-profile small{
    font-size:14px!important;
    line-height: 1.1 !important;
  }

  .sidebar-nav{
    flex: 1 1 auto !important;
    max-height: none !important;
    padding: 0 2px 6px 0 !important;
  }

  .staff-portal .sidebar > .nav-btn{
    flex: 0 0 auto !important;
  }.staff-portal .sidebar > details.nav-group{
    flex: 0 0 auto !important;
  }.staff-portal .sidebar > button.nav-btn{
    flex: 0 0 auto !important;
  }

  .staff-portal .sidebar{
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sidebar .nav-section-label{
    margin: 8px 3px 4px !important;
    font-size: 0.54rem !important;
  }

  .sidebar .nav-btn{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }.sidebar .nav-sub-btn{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }.sidebar .nav-group-toggle{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }.sidebar .logout-btn{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }.staff-portal .sidebar .nav-btn{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }.staff-portal .sidebar .nav-sub-btn{
    min-height: 32px !important;
    padding: 7px 8px !important;
    margin: 3px 0 !important;
    border-radius: 9px !important;
    font-size:14px!important;
    line-height: 1.12 !important;
    white-space: normal !important;
  }

  .sidebar .nav-group{
    padding: 4px !important;
    margin: 4px 0 !important;
    border-radius: 10px !important;
  }

  .sidebar .nav-submenu{
    gap: 2px !important;
    padding: 2px 0 0 !important;
  }

  .sidebar-footer{
    flex: 0 0 auto !important;
    position: static !important;
    margin-top: 7px !important;
    padding: 7px 0 0 !important;
  }

  .staff-portal .sidebar > .logout-btn{
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .sidebar .logout-btn{
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size:14px!important;
  }.logout-btn{
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size:14px!important;
  }

  .mobile-sidebar-backdrop{
    z-index: var(--vv-layer-backdrop) !important;
  }
}

@media (max-width: 420px) {
  .staff-portal .sidebar{
    width: min(70vw, 244px) !important;
    max-width: 244px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }.customer-portal .sidebar{
    width: min(70vw, 244px) !important;
    max-width: 244px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .sidebar .nav-btn{
    font-size:14px!important;
    min-height: 31px !important;
  }.sidebar .nav-sub-btn{
    font-size:14px!important;
    min-height: 31px !important;
  }.sidebar .nav-group-toggle{
    font-size:14px!important;
    min-height: 31px !important;
  }.staff-portal .sidebar .nav-btn{
    font-size:14px!important;
    min-height: 31px !important;
  }.staff-portal .sidebar .nav-sub-btn{
    font-size:14px!important;
    min-height: 31px !important;
  }
}

/* 20260723 PLATINUM ATTENDANCE GATE */
.shift-terminal-page{
  min-height: 100vh;
  color: var(--text-primary);
  background:var(--surface)!important;
  font-family: Inter, Arial, sans-serif;
}
.shift-terminal-shell{
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px) 0;
}
.shift-terminal-hero{
  border: 1px solid var(--border) !important;
  background:var(--hero-bg)!important;
  box-shadow:var(--shadow)!important;
color:var(--nav-text);}.shift-terminal-grid{
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}
.shift-terminal-hero{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: 24px;
}
.terminal-brand-lockup{
  display: flex;
  align-items: center;
  gap: 14px;
}
.terminal-brand-lockup img{
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:var(--shadow);
}
.terminal-brand-lockup span{
  color: var(--text-primary) !important;
  letter-spacing: 0.08em;
  font-size:14px;
  font-weight: 800;
  text-transform: uppercase;
}.terminal-eyebrow{
  color: var(--text-secondary) !important;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.terminal-brand-lockup strong{
  display: block;
  margin-top: 3px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: 0;
}
.terminal-status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
  color: var(--text-primary) !important;
}
.scan-live-dot{
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}
.shift-terminal-grid{
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 26px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
}
.terminal-qr-stage{
  min-height: 520px;
  border: 1px solid var(--border) !important;
  border-radius: 24px;
  background:var(--surface)!important;
}.terminal-command-panel{
  min-height: 520px;
  border: 1px solid var(--border) !important;
  border-radius: 24px;
  background:var(--surface)!important;
}
.terminal-qr-stage{
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
}
.terminal-qr-orbit{
  display: none !important;
}
.terminal-qr-frame{
  width: min(330px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 26px;
  background:var(--surface)!important;
  border: 10px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
}
.terminal-qr-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.terminal-countdown-ring{
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
  box-shadow:var(--shadow)!important;
}
.terminal-countdown-ring span{
  color: var(--text-primary) !important;
  font-size:14px;
  text-transform: uppercase;
}
.terminal-countdown-ring strong{
  color: var(--text-primary) !important;
  font-size: 1.55rem;
}
.terminal-command-panel{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 44px);
}
.terminal-command-panel h1{
  max-width: 620px;
  margin: 12px 0 16px;
  color: var(--text-primary);
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.terminal-command-panel p{
  max-width: 540px;
  color: var(--text-secondary) !important;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}
.terminal-signal-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 16px;
}
.terminal-signal-grid div{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border) !important;
  background:var(--surface)!important;
}
.terminal-signal-grid strong{
  color: var(--text-primary);
  font-size: 1rem;
}
.terminal-signal-grid span{
  color: var(--text-primary) !important;
  font-size:14px;
}
.terminal-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.terminal-actions .primary-btn{
  background:var(--primary)!important;
  color:var(--on-primary)!important;
  box-shadow:var(--shadow)!important;
}
.terminal-actions .secondary-btn{
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
  background:var(--surface-muted)!important;
}
.terminal-token-state{
  color: var(--text-primary) !important;
  font-weight: 700;
}
@media (max-width: 860px) {
  .shift-terminal-shell{ width: min(100% - 28px, 720px); padding: 18px 0; }
  .shift-terminal-hero{ align-items: flex-start; flex-direction: column; border-radius: 20px; }
  .shift-terminal-grid{ grid-template-columns: 1fr; gap: 16px; padding: 16px; border-radius: 22px; }
  .terminal-qr-stage{ min-height: auto; border-radius: 20px; }.terminal-command-panel{ min-height: auto; border-radius: 20px; }
  .terminal-qr-stage{ padding: 28px 18px 112px; }
  .terminal-countdown-ring{ width: 82px; height: 82px; right: 18px; bottom: 18px; border-radius: 22px; }
  .terminal-command-panel{ padding: 24px 18px; }
  .terminal-signal-grid{ grid-template-columns: 1fr; }
  .terminal-command-panel h1{ font-size: clamp(2rem, 12vw, 3.1rem); }
}
@media (max-width: 420px) {
  .terminal-brand-lockup img{ width: 48px; height: 48px; }
  .terminal-status-pill{ width: 100%; justify-content: center; }
  .terminal-qr-frame{ width: min(280px, 78vw); border-width: 8px !important; }
  .terminal-actions > button{ width: 100%; }
}

/* 20260725 QR DISPLAY ONLY */
.shift-terminal-page{
  background:var(--surface)!important;
}
.shift-terminal-shell{
  width: min(760px, calc(100% - 36px)) !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(18px, 4vw, 34px) 0 !important;
}
.shift-terminal-hero{
  padding: 14px 16px !important;
  border-radius: 22px !important;
  background:var(--hero-bg)!important;
  border-color: var(--border) !important;
color:var(--nav-text);}
.terminal-brand-lockup img{
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
}
.terminal-brand-lockup span{
  color: var(--text-primary) !important;
}
.terminal-brand-lockup strong{
  font-size: clamp(1.2rem, 4vw, 1.8rem) !important;
}
.terminal-status-pill{
  background:var(--surface)!important;
  color: var(--text-primary) !important;
}
.shift-terminal-grid{
  display: block !important;
  margin-top: 0 !important;
  padding: clamp(18px, 4vw, 34px) !important;
  border-radius: 30px !important;
  background:var(--surface)!important;
  border-color: var(--border) !important;
}
.terminal-command-panel{
  display: none !important;
}.terminal-signal-grid{
  display: none !important;
}.terminal-actions{
  display: none !important;
}.terminal-token-state{
  display: none !important;
}.terminal-eyebrow{
  display: none !important;
}
.terminal-qr-stage{
  min-height: min(72vh, 640px) !important;
  padding: clamp(28px, 7vw, 64px) clamp(18px, 5vw, 44px) 120px !important;
  border-radius: 26px !important;
  background:var(--surface)!important;
  border-color: var(--border) !important;
}
.terminal-qr-frame{
  width: min(430px, 78vw) !important;
  border-radius: 30px !important;
  border: 12px solid var(--border) !important;
  box-shadow:var(--shadow)!important;
}
.terminal-countdown-ring{
  left: 50% !important;
  right: auto !important;
  bottom: 24px !important;
  transform: translateX(-50%);
  width: auto !important;
  height: auto !important;
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:var(--surface)!important;
  border-color: var(--border) !important;
}
.terminal-countdown-ring span{
  color: var(--text-primary) !important;
  font-size:14px!important;
}
.terminal-countdown-ring strong{
  color: var(--text-primary) !important;
  font-size: 1.15rem !important;
}
@media (max-width: 560px) {
  .shift-terminal-shell{ width: min(100% - 22px, 460px) !important; gap: 14px; }
  .shift-terminal-hero{ align-items: center !important; flex-direction: row !important; }
  .terminal-brand-lockup{ gap: 10px !important; }
  .terminal-brand-lockup img{ width: 42px !important; height: 42px !important; }
  .terminal-brand-lockup strong{ font-size: 1.05rem !important; }
  .terminal-status-pill{ padding: 8px 10px !important; font-size:14px!important; }
  .shift-terminal-grid{ padding: 12px !important; border-radius: 22px !important; }
  .terminal-qr-stage{ min-height: 72vh !important; padding: 24px 12px 96px !important; border-radius: 18px !important; }
  .terminal-qr-frame{ width: min(300px, 76vw) !important; border-width: 8px !important; border-radius: 22px !important; }
  .terminal-countdown-ring{ bottom: 18px !important; min-width: 112px; padding: 10px 14px; }
}

/* Voxel Veda launch experience */
.login-page{
  min-height: 100dvh;
  background:var(--surface)!important;
}

.login-page .login-shell{
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: vvLoginReveal 700ms ease 1900ms forwards;
}

.login-page .login-card{
  position: relative;
  width: min(440px, 100%);
  border-radius: 28px !important;
  background:var(--surface)!important;
  border: 1px solid var(--border) !important;
  box-shadow:var(--shadow);
  overflow: hidden;
}

.login-page .login-card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:var(--surface);
}

.login-page .login-logo-box{
  position: relative;
  z-index: 1;
}.login-page .login-card h1{
  position: relative;
  z-index: 1;
}.login-page .login-field{
  position: relative;
  z-index: 1;
}.login-page .login-btn{
  position: relative;
  z-index: 1;
}.login-page .portal-links{
  position: relative;
  z-index: 1;
}.login-page .login-footnote{
  position: relative;
  z-index: 1;
}.login-page .status{
  position: relative;
  z-index: 1;
}

.login-page .login-logo-box{
  width: 108px;
  height: 86px;
  margin-inline: auto;
  border-radius: 24px;
  background:var(--surface);
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.login-page .login-logo{
  max-width: 92px;
  max-height: 72px;
}

.login-page .login-card h1{
  font-size: clamp(31px, 7vw, 42px) !important;
  margin-top: 18px;
  margin-bottom: 22px;
}

.login-page .login-card input{
  min-height: 50px;
  border-radius: 16px !important;
  background:var(--surface)!important;
}

.login-page .login-btn{
  min-height: 52px;
  border-radius: 18px !important;
  margin-top: 10px;
}

.login-page .portal-links{
  gap: 14px;
  justify-content: center;
}

.login-page .portal-links a{
  color: var(--text-primary) !important;
}

.login-page .login-footnote{
  color: var(--text-secondary) !important;
}

.vv-entry-sequence{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:var(--surface);
  animation: vvEntryExit 520ms ease 1750ms forwards;
}

.vv-entry-core{
  position: relative;
  width: clamp(176px, 48vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.vv-entry-core img{
  width: 52%;
  max-width: 134px;
  border-radius: 24px;
  filter: drop-shadow(0 20px 44px rgba(91, 223, 255, 0.24));
  animation: vvEntryLogo 1500ms ease both;
}

.vv-entry-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow:var(--shadow);
}

.vv-entry-ring-one{
  animation: vvEntrySpin 1800ms linear infinite;
  border-top-color: var(--border);
}

.vv-entry-ring-two{
  inset: 18%;
  border-right-color: var(--border);
  animation: vvEntrySpin 1300ms linear reverse infinite;
}

.vv-entry-scan{
  position: absolute;
  left: 16%;
  right: 16%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background:var(--surface);
  box-shadow:var(--shadow);
  animation: vvEntryScan 1350ms ease-in-out infinite;
}

.vv-entry-status{
  position: absolute;
  bottom: clamp(34px, 8vh, 72px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface);
  color: var(--text-primary);
  box-shadow:var(--shadow);
  backdrop-filter: blur(16px);
}

.vv-entry-status span{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.vv-entry-status strong{
  font-size:14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes vvEntryExit {
  to{ opacity: 0; visibility: hidden; }
}

@keyframes vvLoginReveal {
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vvEntrySpin {
  to{ transform: rotate(360deg); }
}

@keyframes vvEntryLogo {
  0%{ opacity: 0; transform: scale(0.82); }
  55%{ opacity: 1; transform: scale(1.05); }
  100%{ transform: scale(1); }
}

@keyframes vvEntryScan {
  0%{ transform: translateY(-54px); opacity: 0; }100%{ transform: translateY(-54px); opacity: 0; }
  20%{ opacity: 1; }80%{ opacity: 1; }
  50%{ transform: translateY(54px); }
}

@media (max-width: 520px) {
  .login-page .login-shell{
    padding: 14px;
    align-items: start;
    padding-top: max(22px, env(safe-area-inset-top));
  }

  .login-page .login-card{
    border-radius: 24px !important;
    padding: 22px 18px !important;
  }

  .login-page .portal-links{
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Expense register + staff finance repair layer */
.login-page .login-logo-box{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
  overflow: hidden !important;
}

.login-page .login-logo{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 96px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  object-position: center !important;
}

.expense-table-wrap{
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}.staff-expense-register{
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}.table-wrap{
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.expense-table-wrap table{
  min-width: 980px;
  width: 100%;
  table-layout: auto;
}.staff-expense-register table{
  min-width: 980px;
  width: 100%;
  table-layout: auto;
}

.expense-table-wrap th{
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}.expense-table-wrap td{
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}.staff-expense-register th{
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}.staff-expense-register td{
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.staff-expense-control{
  margin-bottom: 16px;
}

.staff-expense-register .register-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--text-primary);
}.register-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--text-primary);
}

.pagination-actions{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.expense-dialog-panel{
  width: min(980px, calc(100vw - 28px)) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
}

.expense-dialog-panel .expense-dialog-shell{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:var(--surface-muted);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 12px;
}

.status-paid{
  border-color: var(--border);
  background:var(--success-bg);
  color: var(--success);
}.status-reimbursed{
  border-color: var(--border);
  background:var(--surface);
  color: var(--text-primary);
}

.status-unpaid{
  border-color: var(--border);
  background:var(--surface);
  color: var(--text-primary);
}.status-disputed{
  border-color: var(--border);
  background:var(--surface);
  color: var(--text-primary);
}

@media (max-width: 760px) {
  .expense-dialog-panel .expense-dialog-shell{
    grid-template-columns: 1fr;
  }

  .expense-table-wrap table{
    min-width: 820px;
  }.staff-expense-register table{
    min-width: 820px;
  }

  .staff-expense-register .register-footer{
    align-items: stretch;
    flex-direction: column;
  }.register-footer{
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions .secondary-btn{
    flex: 1 1 auto;
  }
}

/* Sidebar brand visibility and independent scrolling */
.email-control-card{
  grid-column: 1 / -1;
  border-color: var(--border) !important;
  background:var(--surface)!important;
}

.email-control-head{
  display: flex;
  align-items: center;
}.email-delivery-head{
  display: flex;
  align-items: center;
}.email-control-toolbar{
  display: flex;
  align-items: center;
}.email-control-actions{
  display: flex;
  align-items: center;
}.email-delivery-meta{
  display: flex;
  align-items: center;
}

.email-control-head{
  justify-content: space-between;
  gap: 16px;
}.email-delivery-head{
  justify-content: space-between;
  gap: 16px;
}.email-control-toolbar{
  justify-content: space-between;
  gap: 16px;
}

.email-control-head h3{
  margin: 4px 0 0;
}

.email-state-chip{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
}

.email-state-connected{
  border-color: var(--border);
  background:var(--surface);
  color: var(--text-primary);
}

.email-state-warning{
  border-color: var(--border);
  background:var(--warning-bg);
  color: var(--warning);
}

.email-health-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.email-health-grid article{
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
}

.email-health-grid small{
  display: block;
}.email-health-grid strong{
  display: block;
}

.email-health-grid small{
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size:14px;
  text-transform: uppercase;
}

.email-health-grid strong{
  overflow-wrap: anywhere;
  color: var(--text-primary);
  font-size: 14px;
}

.email-test-field{
  flex: 1 1 320px;
  margin: 0;
}

.email-control-actions{
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.email-delivery-head{
  margin: 18px 0 9px;
  color: var(--text-primary);
}

.email-delivery-head span{
  color: var(--text-primary);
  font-size:14px;
}

.email-delivery-list{
  display: grid;
  gap: 8px;
}

.email-delivery-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  background:var(--surface);
}

.email-delivery-row > div:first-child{
  min-width: 0;
}

.email-delivery-row strong{
  display: block;
  overflow-wrap: anywhere;
}.email-delivery-row span{
  display: block;
  overflow-wrap: anywhere;
}

.email-delivery-row strong{
  color: var(--text-primary);
  font-size:14px;
}

.email-delivery-row > div:first-child span{
  margin-top: 3px;
  color: var(--text-primary);
  font-size:14px;
}.email-delivery-meta small{
  margin-top: 3px;
  color: var(--text-secondary);
  font-size:14px;
}

.email-delivery-meta{
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.email-delivery-sent{ border-left-color: var(--border); }
.email-delivery-failed{ border-left-color: var(--border); }
.email-delivery-retry{ border-left-color: var(--border); }
.email-delivery-pending{ border-left-color: var(--border); }

.compact-btn{
  min-height: 30px !important;
  padding: 5px 9px !important;
}

@media (max-width: 760px) {
  .email-health-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-control-toolbar{
    align-items: stretch;
    flex-direction: column;
  }.email-delivery-row{
    align-items: stretch;
    flex-direction: column;
  }

  .email-control-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-control-actions button{
    width: 100%;
  }

  .email-delivery-meta{
    justify-content: space-between;
    text-align: left;
  }

  .email-health-grid strong{
    font-size:14px;
  }
}

.sidebar .brand{
  min-height: 62px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}.sidebar.vv-sidebar .shell-brand{
  min-height: 62px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}.staff-portal .sidebar .brand{
  min-height: 62px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}.customer-portal .sidebar .brand{
  min-height: 62px !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.sidebar .brand .logo-img{
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}.sidebar.vv-sidebar .shell-brand .logo-img{
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}.staff-portal .sidebar .brand .logo-img{
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}.customer-portal .sidebar .brand .logo-img{
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  flex: 0 0 52px !important;
  object-fit: contain !important;
  object-position: center !important;
  overflow: visible !important;
}

@media (min-width: 1024px) {


  .staff-portal .sidebar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 248px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 80 !important;
    transform: none !important;
  }.customer-portal .sidebar{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 248px !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 80 !important;
    transform: none !important;
  }

  .app-shell > .main{
    width: calc(100% - 248px) !important;
    min-width: 0 !important;
    margin-left: 248px !important;
  }.staff-portal .app-shell > .main{
    width: calc(100% - 248px) !important;
    min-width: 0 !important;
    margin-left: 248px !important;
  }.customer-portal .app-shell > .main{
    width: calc(100% - 248px) !important;
    min-width: 0 !important;
    margin-left: 248px !important;
  }
}

@media (max-width: 1023px) {
  .sidebar .brand{
    min-height: 58px !important;
  }.sidebar.vv-sidebar .shell-brand{
    min-height: 58px !important;
  }.staff-portal .sidebar .brand{
    min-height: 58px !important;
  }.customer-portal .sidebar .brand{
    min-height: 58px !important;
  }

  .sidebar .brand .logo-img{
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-basis: 48px !important;
  }.sidebar.vv-sidebar .shell-brand .logo-img{
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-basis: 48px !important;
  }.staff-portal .sidebar .brand .logo-img{
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-basis: 48px !important;
  }.customer-portal .sidebar .brand .logo-img{
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    flex-basis: 48px !important;
  }



  body.mobile-menu-open .topbar > :not(.mobile-menu-btn):not(.topbar-menu-btn){
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }html.mobile-menu-open .topbar > :not(.mobile-menu-btn):not(.topbar-menu-btn){
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }body.mobile-menu-open .vv-topbar > :not(.mobile-menu-btn):not(.topbar-menu-btn){
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }html.mobile-menu-open .vv-topbar > :not(.mobile-menu-btn):not(.topbar-menu-btn){
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-menu-open .mobile-menu-btn{
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: min(190px, calc(100vw - 54px)) !important;
    right: auto !important;
    pointer-events: auto !important;
  }html.mobile-menu-open .mobile-menu-btn{
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: min(190px, calc(100vw - 54px)) !important;
    right: auto !important;
    pointer-events: auto !important;
  }body.mobile-menu-open .topbar-menu-btn{
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: min(190px, calc(100vw - 54px)) !important;
    right: auto !important;
    pointer-events: auto !important;
  }html.mobile-menu-open .topbar-menu-btn{
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: min(190px, calc(100vw - 54px)) !important;
    right: auto !important;
    pointer-events: auto !important;
  }
}
.user-uuid{ display:block; max-width:150px; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:14px; }
.security-posture{ display:inline-flex; padding:4px 8px; border-radius:999px; font-size:14px; font-weight:800; }
.security-posture.secure{ color:var(--text-primary); background:var(--surface); }

.security-incident-dialog{ display:grid; gap:16px; }
.security-incident-dialog .dialog-card{ display:grid; gap:12px; }
.incident-history{ margin:0; padding-left:22px; max-height:260px; overflow:auto; display:grid; gap:10px; }
.incident-history li{ color:var(--muted); line-height:1.45; }
.incident-history strong{ color:var(--text); }
.security-posture.warning{ color:var(--warning); background:var(--warning-bg); }
.permission-difference-preview{ margin:16px 0; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }.security-action-summary{ margin:16px 0; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.permission-difference-preview ul{ margin:5px 0 12px; padding-left:20px; max-height:145px; overflow:auto; }
.permission-difference-preview b{ color:var(--text-primary); font-size:14px; }
.security-action-summary{ display:flex; flex-direction:column; gap:5px; }
.security-action-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
@media (max-width:620px) { .security-action-grid{ grid-template-columns:1fr; } }
.operational-trust-panel{
  border: 1px solid var(--border);
  background:var(--surface);
}

.security-control-strip{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem 0;
  padding: .9rem;
  border-radius: 14px;
  background:var(--surface);
}

.operational-trust-panel .table-wrap{
  min-width: 0;
  overflow-x: auto;
}

@media (max-width: 760px) {
  .security-control-strip{ align-items: stretch; flex-direction: column; }
  .operational-trust-panel .section-actions{ width: 100%; }
  .operational-trust-panel .section-actions button{ width: 100%; }
}

.staff-trash-workspace{
  display: grid;
  gap: 14px;
}

.staff-trash-list{
  display: grid;
  gap: 8px;
}

.staff-trash-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
}

.staff-trash-item-main{
  display: flex;
  min-width: 0;
}.staff-trash-item-action{
  display: flex;
  min-width: 0;
}

.staff-trash-item-main{
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.staff-trash-item-main strong{
  max-width: 100%;
  overflow-wrap: anywhere;
}.staff-trash-item-main small{
  max-width: 100%;
  overflow-wrap: anywhere;
}

.staff-trash-item-main small{
  color: var(--muted);
}

.staff-trash-item-action{
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .staff-trash-filter-bar{
    grid-template-columns: 1fr !important;
  }.staff-trash-item{
    grid-template-columns: 1fr !important;
  }

  .staff-trash-item-action{
    align-items: stretch;
  }

  .staff-trash-item-action button{
    width: 100%;
  }
}

/* ERP 2.0 workflow and universal approvals */
.workflow-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workflow-summary article{
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.workflow-summary span{
  display: block;
}.workflow-summary strong{
  display: block;
}

.workflow-summary span{
  color: var(--muted);
  font-size:14px;
  font-weight: 700;
}

.workflow-summary strong{
  margin-top: 6px;
  color: var(--text);
  font-size: 1.6rem;
}

.workflow-workspace{
  display: grid;
  gap: 12px;
}.workflow-list{
  display: grid;
  gap: 12px;
}

.workflow-toolbar{
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.workflow-toolbar > label{
  display: grid;
  gap: 5px;
  min-width: 180px;
  margin-left: auto;
}

.workflow-toolbar > label span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}.workflow-request-form label > span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}.workflow-action-form label > span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.workflow-tabs{
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface-muted);
}

.workflow-tabs button{
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size:14px;
  font-weight: 800;
  cursor: pointer;
}

.workflow-tabs button.active{
  color: var(--on-primary);
  background: var(--accent);
}

.workflow-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: 8px;
  background:var(--surface);
}

.workflow-item.is-overdue{
  border-left-color: var(--danger);
}

.workflow-item-main{
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.workflow-item-heading{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}.workflow-item-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}.workflow-item-actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.workflow-item-heading{
  justify-content: space-between;
}

.workflow-item-heading strong{
  overflow-wrap: anywhere;
}.workflow-item-summary{
  overflow-wrap: anywhere;
}

.workflow-item-meta{
  color: var(--muted);
  font-size:14px;
}

.workflow-item-meta span:not(:last-child)::after{
  content: "|";
  margin-left: 8px;
  color: var(--text-primary);
}

.workflow-item-summary{
  color: var(--text);
  font-size:14px;
  line-height: 1.5;
}

.workflow-due{
  color: var(--muted);
  font-size:14px;
  font-weight: 700;
}

.workflow-due.overdue{
  color: var(--danger);
}

.workflow-item-actions{
  justify-content: flex-end;
}

.workflow-item-actions button{
  min-height: 38px;
}

.workflow-status{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 900;
  white-space: nowrap;
}

.workflow-status.status-approved{
  border-color: var(--border);
  color: var(--text-primary);
  background:var(--surface);
}.workflow-status.status-completed{
  border-color: var(--border);
  color: var(--success);
  background:var(--success-bg);
}

.workflow-status.status-rejected{
  border-color: var(--border);
  color: var(--danger);
  background:var(--danger-bg);
}.workflow-status.status-cancelled{
  border-color: var(--border);
  color: var(--text-primary);
  background:var(--surface);
}

.workflow-status.status-blocked_assignment{
  border-color: var(--border);
  color: var(--danger);
  background:var(--danger-bg);
}.workflow-status.status-needs_changes{
  border-color: var(--border);
  color: var(--text-primary);
  background:var(--surface);
}.workflow-status.status-changes_requested{
  border-color: var(--border);
  color: var(--text-primary);
  background:var(--surface);
}

.workflow-request-form{
  display: grid;
  gap: 14px;
}.workflow-action-form{
  display: grid;
  gap: 14px;
}.workflow-detail{
  display: grid;
  gap: 14px;
}

.workflow-request-form label{
  display: grid;
  gap: 6px;
}.workflow-action-form label{
  display: grid;
  gap: 6px;
}

.workflow-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}.workflow-detail dl{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workflow-form-note{
  margin: 0;
  color: var(--muted);
  font-size:14px;
  line-height: 1.5;
}.workflow-detail-summary{
  margin: 0;
  color: var(--muted);
  font-size:14px;
  line-height: 1.5;
}

.dialog-panel.workflow-dialog{
  width: min(680px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  overflow-y: auto;
}

.workflow-detail-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workflow-detail-head h4{
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.workflow-detail-head > div > span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  text-transform: uppercase;
}.workflow-detail dt{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
  text-transform: uppercase;
}

.workflow-detail dl{
  margin: 0;
}

.workflow-detail dl > div{
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.workflow-detail dd{
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.workflow-detail h5{
  margin: 4px 0 -4px;
}

.workflow-assignment-list{
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}.workflow-timeline{
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-assignment-list li{
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-left: 2px solid var(--accent-2);
  background:var(--surface);
}.workflow-timeline li{
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-left: 2px solid var(--accent-2);
  background:var(--surface);
}

.workflow-assignment-list li{
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.workflow-definition-list{
  display: grid;
  gap: 10px;
}.workflow-definition-steps{
  display: grid;
  gap: 10px;
}

.workflow-definition-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  background:var(--surface);
  cursor: pointer;
}

.workflow-definition-item > span:first-child{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-definition-item small{
  color: var(--muted);
}

.workflow-step-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-step-row{
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(2, minmax(120px, 1fr)) minmax(115px, .8fr) 82px 90px minmax(110px, .8fr) 40px;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
}

.workflow-step-row label{
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-step-row label span{
  color: var(--muted);
  font-size:14px;
  font-weight: 800;
}

.workflow-self-approval{
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 42px;
}

.workflow-self-approval input{
  width: 42px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

.dialog-panel.workflow-dialog:has(.workflow-definition-steps){
  width: min(1180px, calc(100vw - 32px));
}

.workflow-timeline span{
  color: var(--muted);
  font-size:14px;
}.workflow-timeline p{
  color: var(--muted);
  font-size:14px;
}

.workflow-timeline p{
  margin: 2px 0 0;
}

@media (max-width: 760px) {
  .workflow-summary{
    grid-template-columns: 1fr;
  }

  .workflow-toolbar{
    align-items: stretch;
    grid-template-columns: 1fr;
  }.workflow-item{
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .workflow-toolbar{
    display: grid;
  }

  .workflow-toolbar > label{
    min-width: 0;
    margin-left: 0;
  }

  .workflow-tabs{
    width: 100%;
  }.workflow-toolbar > button{
    width: 100%;
  }.workflow-item-actions button{
    width: 100%;
  }

  .workflow-item-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .workflow-form-grid{
    grid-template-columns: 1fr;
  }.workflow-detail dl{
    grid-template-columns: 1fr;
  }

  .workflow-item-meta span{
    width: 100%;
  }

  .workflow-item-meta span::after{
    display: none;
  }

  .dialog-panel.workflow-dialog{
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .workflow-step-row{
    grid-template-columns: 1fr;
  }

  .workflow-remove-step{
    width: 100%;
  }
}
/* ERP Wave 3: shared source-to-pay workspace */
.procurement-section-head{
  align-items: flex-end;
}

.procurement-summary{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.procurement-summary article{
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.procurement-summary span{
  display: block;
}.procurement-summary strong{
  display: block;
}

.procurement-summary span{
  min-height: 32px;
  color: var(--text-primary);
  font-size:14px;
  line-height: 1.35;
}

.procurement-summary strong{
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 1.45rem;
}

.procurement-workspace{
  min-width: 0;
}

.procurement-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.procurement-tabs{
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.procurement-tabs button{
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  color: var(--text-primary);
  background:var(--surface-muted);
  font-weight: 750;
}

.procurement-tabs button.active{
  color:var(--on-primary);
  border-color: var(--control-border);
  background:var(--primary);
}

.procurement-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.procurement-record{
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.procurement-record-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}.procurement-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}.procurement-line-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.procurement-record-head > div{
  min-width: 0;
}

.procurement-record-head span{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 850;
}

.procurement-record h3{
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.procurement-record dl{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.procurement-record dl div{
  min-width: 0;
  padding: 8px;
  border-left: 2px solid var(--border);
  background:var(--surface);
}

.procurement-record dt{
  margin: 0;
  overflow-wrap: anywhere;
}.procurement-record dd{
  margin: 0;
  overflow-wrap: anywhere;
}

.procurement-record dt{
  color: var(--text-primary);
  font-size:14px;
  text-transform: uppercase;
}

.procurement-record dd{
  margin-top: 4px;
  color: var(--text-primary);
  font-size:14px;
  font-weight: 750;
}

.procurement-status{
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
  font-weight: 850;
}

.procurement-status.good{
  color: var(--success);
  border-color: var(--border);
  background:var(--success-bg);
}

.procurement-status.danger{
  color: var(--danger);
  border-color: var(--border);
  background:var(--danger-bg);
}

.procurement-lines{
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procurement-lines li{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-primary);
  font-size:14px;
  border-bottom: 1px solid var(--border);
}

.procurement-lines span{
  min-width: 0;
  overflow-wrap: anywhere;
}

.procurement-lines small{
  color: var(--text-secondary);
}

.procurement-actions{
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: auto;
}

.procurement-actions button{
  min-height: 38px;
}

.procurement-quote-grid{
  display: grid;
  gap: 5px;
}

.procurement-quote-grid > div{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 8px;
  color: var(--text-primary);
  background:var(--surface);
  font-size:14px;
}

.procurement-exception{
  margin: 0;
  padding: 10px;
  color: var(--text-primary);
  border-left: 3px solid var(--border);
  background:var(--surface);
}.procurement-form-note{
  margin: 0;
  padding: 10px;
  color: var(--text-secondary);
  border-left: 3px solid var(--border);
  background:var(--surface);
}

.procurement-empty{
  grid-column: 1 / -1;
  min-height: 180px;
}

.dialog-panel.procurement-dialog{
  width: min(900px, calc(100vw - 28px));
  max-height: min(86dvh, 860px);
  overflow-y: auto;
  border-radius: 8px;
}

.procurement-form{
  display: grid;
  gap: 7px;
}.procurement-form label{
  display: grid;
  gap: 7px;
}

.procurement-form{
  gap: 14px;
}

.procurement-form label > span{
  color: var(--text-secondary);
  font-size:14px;
  font-weight: 800;
}.procurement-line-heading strong{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
}.procurement-supplier-picker legend{
  color: var(--text-primary);
  font-size:14px;
  font-weight: 800;
}

.procurement-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.procurement-line-input{
  display: grid;
  grid-template-columns: 0.8fr minmax(170px, 2fr) 0.55fr 0.65fr 0.8fr 38px;
  gap: 7px;
  margin-bottom: 8px;
}

.procurement-line-input.is-po{
  grid-template-columns: 0.8fr minmax(170px, 2fr) 0.55fr 0.65fr 0.8fr 0.7fr 38px;
}

.procurement-line-input > *{
  min-width: 0;
}

.procurement-line-remove{
  width: 38px;
  min-height: 38px;
  color: var(--text-primary);
}

.procurement-supplier-picker{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.procurement-supplier-picker label{
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 8px;
  background:var(--surface);
}

.procurement-supplier-picker input{
  width: 18px;
  height: 18px;
}

.procurement-receipt-line{
  grid-template-columns: minmax(150px, 1.5fr) minmax(90px, 0.6fr) minmax(120px, 0.8fr);
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.procurement-receipt-line small{
  display: block;
  margin-top: 3px;
  color: var(--text-secondary);
}

@media (max-width: 1180px) {
  .procurement-summary{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .procurement-record dl{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .procurement-section-head{ align-items: stretch; }
  .procurement-section-head .section-actions{ width: 100%; }.procurement-section-head .section-actions button{ width: 100%; }
  .procurement-summary{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .procurement-summary article{ padding: 11px; }
  .procurement-summary span{ min-height: 38px; font-size:14px; }
  .procurement-summary strong{ font-size: 1.2rem; }
  .procurement-toolbar{ align-items: stretch; flex-direction: column; }
  .procurement-toolbar > button{ width: 100%; min-height: 44px; }
  .procurement-tabs button{ min-height: 44px; }
  .procurement-list{ grid-template-columns: minmax(0, 1fr); }
  .procurement-record{ padding: 13px; }
  .procurement-record-head{ align-items: flex-start; }
  .procurement-record dl{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procurement-actions{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .procurement-actions button{ width: 100%; min-height: 44px; }
  .dialog-panel.procurement-dialog{ width: calc(100vw - 16px); max-height: calc(100dvh - 20px); }
  .procurement-form-grid{ grid-template-columns: minmax(0, 1fr); }.procurement-supplier-picker{ grid-template-columns: minmax(0, 1fr); }
  .procurement-line-input{ grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; border: 1px solid var(--control-border); border-radius: 6px; }
  .procurement-line-input [name="description"]{ grid-column: 1 / -1; }
  .procurement-line-remove{ justify-self: end; }
  .procurement-receipt-line{ grid-template-columns: minmax(0, 1fr); }
  .procurement-lines li{ grid-template-columns: minmax(0, 1fr) auto; }.procurement-quote-grid > div{ grid-template-columns: minmax(0, 1fr) auto; }
  .procurement-lines small{ grid-column: 2; }.procurement-quote-grid b{ grid-column: 2; }
}

@media (max-width: 380px) {
  .procurement-summary{ grid-template-columns: minmax(0, 1fr); }
  .procurement-summary span{ min-height: 0; }
  .procurement-record dl{ grid-template-columns: minmax(0, 1fr); }.procurement-actions{ grid-template-columns: minmax(0, 1fr); }.procurement-line-input{ grid-template-columns: minmax(0, 1fr); }
  .procurement-line-input [name="description"]{ grid-column: auto; }
}
