:root{
  --bg:#0d0f12;--panel:#171a1f;--panel2:#20242a;--text:#f4f6f8;--muted:#9ca7b4;
  --accent:#f5b800;--border:#30353c;--good:#7bd88f;--danger:#ff7b7b;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial;background:var(--bg);color:var(--text)}
a{color:inherit;text-decoration:none}
header{position:sticky;top:0;z-index:5;background:#111318;border-bottom:1px solid var(--border);padding:14px 22px;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:20px;font-weight:900;letter-spacing:.3px}.brand span{color:var(--accent)}
nav{display:flex;gap:8px;flex-wrap:wrap}nav a{padding:8px 10px;border-radius:8px;color:#d9dee5}nav a:hover{background:var(--panel2)}
main{max-width:1250px;margin:0 auto;padding:24px}
h1{margin:0 0 18px;font-size:30px}h2{margin:0 0 12px;font-size:20px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:18px}
.stat .num{font-size:30px;font-weight:900}.stat .label{color:var(--muted);font-size:13px;margin-top:4px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--border);border-radius:12px;overflow:hidden}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);font-size:14px}
th{color:#c8d0da;background:#1c2026;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
tr:last-child td{border-bottom:0}
.btn{display:inline-block;border:0;border-radius:9px;background:var(--accent);color:#111;font-weight:800;padding:10px 14px;cursor:pointer}
.btn.secondary{background:#2a3037;color:#fff}.btn.danger{background:#5d2b2b;color:#fff}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:15px}
form.panel{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:18px}
.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
label{font-size:12px;color:#c1cad5;font-weight:700;display:block;margin-bottom:5px}
input,select,textarea{width:100%;padding:10px 11px;background:#0f1216;color:#fff;border:1px solid #3a414a;border-radius:8px}
textarea{min-height:85px}.wide{grid-column:1/-1}.span2{grid-column:span 2}
.note{color:var(--muted);font-size:13px;line-height:1.5}
.badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#30363f;font-size:12px}
.badge.good{background:#173d25;color:#98e6aa}
.search{display:flex;gap:8px;max-width:600px}
.login{max-width:420px;margin:10vh auto}.login .card{padding:28px}
.ticket-total{font-size:34px;font-weight:900;color:var(--good)}
.filelinks a{color:#ffd25a;margin-right:12px}
footer{color:#78828f;text-align:center;padding:25px;font-size:12px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.two,.formgrid{grid-template-columns:1fr}.span2{grid-column:auto}}
@media(max-width:520px){header{align-items:flex-start;gap:10px;flex-direction:column}.grid{grid-template-columns:1fr}main{padding:14px}}









.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.menu-card{display:block;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:20px}
.menu-card:hover{background:var(--panel2);border-color:#4c535d}
.menu-card h2{margin-bottom:6px}.menu-card p{color:var(--muted);font-size:13px;margin:0}
@media(max-width:900px){
 .menu-grid{grid-template-columns:1fr 1fr}
 
}
@media(max-width:520px){.menu-grid{grid-template-columns:1fr}}

.dropdown-menu form{margin:0}
.dropdown-action{
  width:100%;display:block;text-align:left;padding:10px 12px;border:0;
  border-radius:7px;background:transparent;color:#e9edf2;font:inherit;cursor:pointer
}
.dropdown-action:hover{background:#262b32}
.danger-text{color:#ff8e8e}

/* v7.1 interface cleanup */

.clean-nav 
.page-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:16px;flex-wrap:wrap
}
.page-header h1,.page-header h2{margin:0}
.quick-menu-grid{
  display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px
}
.wide-button{width:100%}

table .dropdown{display:inline-block}
.card>.actions:first-child{margin-bottom:12px}
@media(max-width:850px){
  .quick-menu-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}
}
@media(max-width:520px){
  .quick-menu-grid{grid-template-columns:1fr}
}

/* v7.2 simple navigation */
.yard-nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.yard-nav a,
.nav-dd-btn{
  font:inherit;
}
.nav-home,
.nav-dd-btn{
  display:block;
  border:0;
  background:transparent;
  color:#e9edf2;
  padding:9px 12px;
  border-radius:8px;
  cursor:pointer;
  text-decoration:none;
}
.nav-home:hover,
.nav-dd-btn:hover,
.nav-dd.open>.nav-dd-btn{
  background:#262b32;
}
.nav-dd{
  position:relative;
}
.nav-dd-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:220px;
  background:#171a1f;
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  z-index:1000;
}
.nav-dd.open>.nav-dd-menu{
  display:block;
}
.nav-dd-menu-right{
  left:auto;
  right:0;
}
.nav-dd-menu a{
  display:block;
  padding:10px 12px;
  color:#e9edf2;
  text-decoration:none;
  border-radius:7px;
  white-space:nowrap;
}
.nav-dd-menu a:hover{
  background:#262b32;
}
.nav-divider{
  height:1px;
  background:var(--border);
  margin:5px 0;
}
@media(max-width:760px){
  .yard-nav{
    align-items:stretch;
  }
  .nav-dd{
    position:static;
  }
  .nav-dd-menu,
  .nav-dd-menu-right{
    position:absolute;
    left:12px;
    right:12px;
    width:auto;
    min-width:0;
  }
}

/* v7.3 fixed left sidebar layout */
body{
  overflow-x:hidden;
}
.app-shell{
  display:flex;
  min-height:100vh;
}
.sidebar{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:245px;
  background:#12151a;
  border-right:1px solid var(--border);
  padding:18px 12px;
  overflow-y:auto;
  z-index:1000;
}
.sidebar-brand{
  padding:4px 8px 18px 8px;
  border-bottom:1px solid var(--border);
  margin-bottom:12px;
}
.brand-title{
  font-size:20px;
  font-weight:700;
  color:#fff;
}
.brand-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.side-link,
.side-toggle,
.side-menu a{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  padding:10px 12px;
  border-radius:8px;
  color:#e9edf2;
  background:transparent;
  border:0;
  text-decoration:none;
  font:inherit;
  cursor:pointer;
  box-sizing:border-box;
}
.side-link:hover,
.side-toggle:hover,
.side-menu a:hover{
  background:#232830;
}
.side-section{
  margin-top:4px;
}
.side-menu{
  display:none;
  padding:3px 0 5px 10px;
}
.side-section.open .side-menu{
  display:block;
}
.side-section.open .side-toggle span{
  transform:rotate(180deg);
}
.side-toggle span{
  transition:transform .15s ease;
}
.side-menu a{
  font-size:14px;
  color:#cfd5dc;
  padding:8px 12px;
}
.main-content{
  margin-left:245px;
  width:calc(100% - 245px);
  min-height:100vh;
  padding:24px;
  box-sizing:border-box;
}
header,
.main-nav,
.yard-nav,
.clean-nav{
  display:none!important;
}
.page-header{
  margin-top:0;
}
@media(max-width:820px){
  .sidebar{
    position:relative;
    width:100%;
    border-right:0;
    border-bottom:1px solid var(--border);
  }
  .app-shell{
    display:block;
  }
  .main-content{
    margin-left:0;
    width:100%;
    padding:16px;
  }
}

/* v7.4 plain left-side menu */
.plain-sidebar .side-heading{
  margin:18px 8px 6px;
  padding-top:12px;
  border-top:1px solid var(--border);
  color:#8f98a3;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.plain-sidebar .side-link{
  display:block;
  width:100%;
  padding:9px 12px;
  margin:2px 0;
  border-radius:7px;
  color:#e9edf2;
  text-decoration:none;
  box-sizing:border-box;
}
.plain-sidebar .side-link:hover{
  background:#232830;
}
.plain-sidebar .main-side-link{
  font-weight:700;
  margin-bottom:6px;
}
.plain-sidebar .logout-link{
  margin-top:8px;
  color:#ffaaaa;
}
.plain-sidebar .side-section,
.plain-sidebar .side-toggle,
.plain-sidebar .side-menu{
  display:none!important;
}

/* v7.5 dashboard + integrations repair */
.main-content{
  padding-top:18px!important;
}
.dashboard-header{
  margin:0 0 12px 0;
}
.dashboard-header h1{
  margin:0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(130px,1fr));
  gap:12px;
  margin:0 0 18px 0;
}
.dashboard-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.section-title-row,
.page-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px 0;
}
.section-title-row h2,
.page-title-row h1{
  margin:0;
}
.settings-stack{
  display:grid;
  gap:14px;
}
.settings-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px;
}
.settings-card h2{
  margin:0 0 14px 0;
}
.inline-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.success-banner{
  background:#173b28;
  border:1px solid #2e6b49;
  border-radius:8px;
  padding:10px 12px;
  margin-bottom:14px;
}
.sticky-save{
  padding:4px 0 14px 0;
}
.muted{
  color:var(--muted);
}
@media(max-width:1050px){
  .stats-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .dashboard-columns{grid-template-columns:1fr}
}
@media(max-width:600px){
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}

/* v7.6 authoritative layout reset */
html, body {
  margin:0!important;
  padding:0!important;
  min-height:100%!important;
}
body {
  min-height:100vh!important;
}
.app-shell{
  display:flex!important;
  min-height:100vh!important;
  margin:0!important;
  padding:0!important;
}
.sidebar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  bottom:0!important;
  width:245px!important;
  margin:0!important;
  padding:18px 12px!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
}
.main-content{
  margin:0 0 0 245px!important;
  padding:18px 22px!important;
  width:calc(100% - 245px)!important;
  min-height:100vh!important;
  box-sizing:border-box!important;
}
.main-content > :first-child{
  margin-top:0!important;
}
.main-content h1:first-child,
.main-content .page-title-row:first-child,
.main-content .dashboard-header:first-child{
  margin-top:0!important;
  padding-top:0!important;
}
header, .main-nav, .yard-nav, .clean-nav{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
.page-title-row{
  margin:0 0 14px!important;
}
.page-title-row h1{
  margin:0!important;
}
.search-bar-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:10px;
  padding:12px;
  margin-bottom:14px;
}
.search-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.search-row input{
  flex:1;
}
.row-actions{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.row-actions form{
  margin:0!important;
}
.small-btn{
  padding:7px 10px!important;
  line-height:1.2!important;
}
.table-wrap{
  overflow-x:auto;
}
@media(max-width:820px){
  .sidebar{
    position:relative!important;
    width:100%!important;
  }
  .main-content{
    margin-left:0!important;
    width:100%!important;
  }
  .app-shell{
    display:block!important;
  }
}

/* v7.8 requested page changes */
.dashboard-brand-row{display:flex;align-items:center;gap:18px;margin:0 0 16px}
.dashboard-logo{width:150px;max-height:90px;object-fit:contain;background:#fff;border-radius:10px;padding:5px}
.dashboard-brand-row h1{margin:0}
.approval-warning{margin-top:5px;font-size:12px;font-weight:700;color:#ffbf69}
.approval-card{border-color:#a76b1c}
.inline-price-form{display:flex;align-items:center;gap:5px;margin:0}
.inline-price-form input{width:105px;min-width:90px}
.cash-count-table input{max-width:100px}
.cash-count-total{font-size:20px;margin-top:14px;text-align:right}
.cash-stats{grid-template-columns:repeat(4,minmax(130px,1fr))}
@media(max-width:700px){
 .dashboard-brand-row{align-items:flex-start}
 .dashboard-logo{width:110px}
 .cash-stats{grid-template-columns:repeat(2,1fr)}
}

/* v7.10 cash drawer rebuild */
.cash-summary-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px
}
.cash-summary-strip>div{
  background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px
}
.cash-summary-strip span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}
.cash-summary-strip strong{font-size:18px}
.cash-drawer-layout{display:grid;grid-template-columns:minmax(420px,1.2fr) minmax(280px,.8fr);gap:16px}
.cash-denom-table{margin-top:12px}
.cash-denom-table th,.cash-denom-table td{vertical-align:middle}
.cash-denom-table .denom-label{font-size:20px;font-weight:700;width:80px}
.cash-denom-table input{width:110px;font-size:18px;text-align:center}
.denom-line-total{font-size:18px;font-weight:600;text-align:right}
.drawer-total-box,.grand-total-box{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:14px;padding:14px;border-radius:10px;background:rgba(255,255,255,.04)
}
.drawer-total-box strong,.grand-total-box strong{font-size:26px}
.money-input-wrap{display:flex;align-items:center;gap:6px;font-size:20px}
.money-input-wrap input{font-size:20px}
.full-btn{display:block;width:100%;margin-top:14px}
.closed-reconciliation{margin-top:18px;border-top:1px solid var(--border);padding-top:12px}
.closed-reconciliation>div{display:flex;justify-content:space-between;padding:5px 0}
.adjustment-panel{margin-top:16px}
@media(max-width:900px){
 .cash-drawer-layout{grid-template-columns:1fr}
 .cash-summary-strip{grid-template-columns:repeat(2,1fr)}
}

/* v7.11 explicit opening amount */
.opening-amount-box{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.opening-amount-box label{
  font-weight:700;
}

/* v7.12 simplified cash drawer */
.simple-drawer-grid{
  display:grid;
  grid-template-columns:minmax(430px,1.1fr) minmax(320px,.9fr);
  gap:18px;
}
.drawer-balance-panel label,
.close-drawer-panel label{
  display:block;
  margin-top:16px;
}
.readonly-money{
  font-size:24px;
  font-weight:700;
  margin-top:4px;
}
.field-note{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.balance-preview,
.balance-result{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  margin-top:18px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
}
.balance-preview strong,
.balance-result strong{
  font-size:26px;
}
.close-drawer-panel{
  margin-top:18px;
  max-width:720px;
}
.closing-math{
  margin-top:16px;
  display:grid;
  gap:8px;
}
.closing-math>div{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px solid var(--border);
}
@media(max-width:900px){
  .simple-drawer-grid{grid-template-columns:1fr}
}

/* v7.14 tighter purchase ticket spacing */
.purchase-ticket-page{
  margin:0!important;
  padding:0!important;
}
.purchase-ticket-page > :first-child{
  margin-top:0!important;
}
.purchase-ticket-page h1{
  margin:0 0 10px!important;
}
.purchase-ticket-page h2{
  margin:0 0 8px!important;
}
.purchase-ticket-page .page-title-row{
  margin-bottom:10px!important;
}
.purchase-ticket-page .panel,
.purchase-ticket-page .card,
.purchase-ticket-page section{
  margin-top:0!important;
  margin-bottom:10px!important;
}
.purchase-ticket-page .formgrid{
  gap:8px 10px!important;
}
.purchase-ticket-page label{
  margin-bottom:3px!important;
}
.purchase-ticket-page input,
.purchase-ticket-page select,
.purchase-ticket-page textarea{
  margin-bottom:0!important;
}
.purchase-ticket-page table{
  margin-top:6px!important;
  margin-bottom:8px!important;
}
.purchase-ticket-page .actions,
.purchase-ticket-page .inline-actions,
.purchase-ticket-page .row-actions{
  margin-top:6px!important;
  margin-bottom:6px!important;
}
.purchase-ticket-page br + br{
  display:none!important;
}
.purchase-ticket-page .ticket-total{
  margin:6px 0!important;
}

/* v7.19 406 Autobodies vehicle intake */
.vehicle-406-panel{
  border:2px solid #8c6919;
}
.vehicle-406-panel h2{
  margin-bottom:6px!important;
}



/* v7.42 logged-in session indicator */
.logged-in-user{
  position:fixed!important;
  top:14px!important;
  right:20px!important;
  z-index:9998!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:13px 18px!important;
  background:#111!important;
  color:#fff!important;
  border:3px solid #fff!important;
  border-radius:10px!important;
  box-shadow:0 5px 18px rgba(0,0,0,.35)!important;
  font-size:17px!important;
  line-height:1.1!important;
}
.logged-in-user span{
  color:#fff!important;
}
.logged-in-user strong{
  color:#fff!important;
  font-size:20px!important;
  font-weight:900!important;
}
.logged-in-role{
  color:#fff!important;
  font-size:16px!important;
  font-weight:800!important;
  padding-left:10px!important;
  margin-left:2px!important;
  border-left:2px solid #fff!important;
}




/* v7.45 iMessage-style internal chat */
.yardos-messages-layout{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:16px;
}
.message-user-link{
  display:block;
  padding:10px 12px;
  margin:4px 0;
  border-radius:10px;
  text-decoration:none;
  color:#111!important;
  background:#f2f2f7!important;
  font-size:15px!important;
  font-weight:600!important;
}
.message-user-link.active{
  background:#e5e5ea!important;
  color:#000!important;
  font-weight:800!important;
}
.message-thread{
  max-height:58vh;
  overflow:auto;
  padding:16px 14px;
  margin-bottom:14px;
  background:#fff;
  border:1px solid #dedede;
  border-radius:12px;
}
.message-row{
  display:flex;
  margin:10px 0 14px;
}
.message-row.mine{
  justify-content:flex-end;
}
.message-row.theirs{
  justify-content:flex-start;
}
.message-stack{
  max-width:74%;
  display:flex;
  flex-direction:column;
}
.message-row.mine .message-stack{
  align-items:flex-end;
}
.message-row.theirs .message-stack{
  align-items:flex-start;
}
.message-sender{
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  color:#6e6e73;
  margin:0 8px 4px;
}
.message-bubble{
  display:inline-block;
  padding:10px 14px;
  border:none!important;
  border-radius:18px;
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:400!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  box-shadow:none!important;
}
.message-row.mine .message-bubble{
  background:#0a84ff!important;
  color:#fff!important;
  border-bottom-right-radius:6px;
}
.message-row.theirs .message-bubble{
  background:#e9e9eb!important;
  color:#000!important;
  border-bottom-left-radius:6px;
}
.message-time{
  font-size:11px;
  color:#8e8e93;
  margin:4px 8px 0;
}
.yardos-messages-layout textarea{
  font-size:16px!important;
  line-height:1.4!important;
  min-height:78px;
  border-radius:14px!important;
  padding:12px!important;
}
.yardos-message-alert{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.50);
  align-items:center;
  justify-content:center;
  padding:20px;
}
.yardos-message-alert-card{
  width:min(520px,96vw);
  background:#fff;
  color:#111;
  border-radius:18px;
  padding:22px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  border:none;
}
.yardos-message-alert-title{
  font-size:24px;
  line-height:1.1;
  font-weight:800;
  margin-bottom:8px;
  color:#111;
}
.yardos-message-alert-from{
  font-size:15px;
  font-weight:700;
  margin-bottom:8px;
  color:#6e6e73;
}
.yardos-message-alert-body{
  font-size:18px;
  line-height:1.4;
  font-weight:400;
  padding:14px 16px;
  background:#e9e9eb;
  color:#111;
  border-radius:18px;
  margin-bottom:16px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
@media(max-width:800px){
  .yardos-messages-layout{grid-template-columns:1fr}
  .message-stack{max-width:88%}
}


/* v7.51 compact iMessage chat */
.message-row{
  margin:6px 0 9px!important;
}
.message-stack{
  max-width:68%!important;
  width:auto!important;
}
.message-bubble{
  display:inline-block!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  padding:7px 11px!important;
  border-radius:16px!important;
  font-size:15px!important;
  line-height:1.3!important;
  font-weight:400!important;
}
.message-row.mine .message-bubble{
  border-bottom-right-radius:5px!important;
}
.message-row.theirs .message-bubble{
  border-bottom-left-radius:5px!important;
}
.message-text{
  display:inline!important;
  margin:0!important;
  padding:0!important;
}
.message-sender{
  font-size:11px!important;
  margin:0 7px 2px!important;
  line-height:1.15!important;
}
.message-time{
  font-size:10px!important;
  margin:2px 7px 0!important;
  line-height:1.1!important;
}
.message-thread{
  padding:12px 14px!important;
}
@media(max-width:800px){
  .message-stack{max-width:82%!important}
}


/* v7.65 module-based main menu */
.main-menu-shell{
  display:block!important;
}
.main-menu-shell .main-content{
  margin-left:0!important;
  width:100%!important;
  max-width:1400px;
  padding:92px 34px 42px!important;
  margin-right:auto!important;
  margin-left:auto!important;
}
.main-menu-page{
  max-width:1180px;
  margin:0 auto;
}
.main-menu-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:24px;
}
.main-menu-eyebrow{
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#666;
  margin-bottom:5px;
}
.main-menu-hero h1{
  font-size:38px;
  margin:0 0 7px;
}
.main-menu-hero p{
  font-size:18px;
  margin:0;
  color:#666;
}
.module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.module-card{
  display:flex;
  flex-direction:column;
  min-height:235px;
  padding:24px;
  background:#fff;
  border:1px solid #d9d9d9;
  border-radius:18px;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
  color:#111!important;
  text-decoration:none!important;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.module-card:hover{
  transform:translateY(-2px);
  border-color:#aaa;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
}
.module-icon{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#f0f0f0;
  font-size:32px;
  line-height:1;
  margin-bottom:18px;
  font-weight:900;
}
.module-card-title{
  font-size:23px;
  line-height:1.15;
  font-weight:900;
  margin-bottom:8px;
}
.module-card-desc{
  color:#666;
  line-height:1.45;
  font-size:15px;
  flex:1;
}
.module-open{
  margin-top:18px;
  font-size:14px;
  font-weight:800;
}
.module-home-header{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}
.module-home-bigicon{
  width:68px;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#ededed;
  font-size:38px;
  font-weight:900;
}
.module-home-header h1{
  margin:0 0 4px;
}
.module-home-header p{
  margin:0;
}
.module-placeholder-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.module-placeholder-card{
  position:relative;
  min-height:150px;
}
.module-placeholder-card h2{
  margin-top:0;
  margin-bottom:8px;
}
.module-placeholder-card p{
  color:#666;
  margin-bottom:28px;
}
.module-coming{
  position:absolute;
  bottom:14px;
  left:16px;
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#eeeeee;
  color:#555;
  font-size:12px;
  font-weight:800;
}
.side-link-disabled{
  opacity:.48;
  cursor:default;
}
@media(max-width:980px){
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .main-menu-shell .main-content{padding:90px 16px 28px!important}
  .module-grid{grid-template-columns:1fr}
  .module-placeholder-grid{grid-template-columns:1fr}
  .module-card{min-height:200px}
  .main-menu-hero h1{font-size:32px}
}


/* v7.66 working time clock */
.timeclock-punch-panel{
  max-width:880px;
}
.timeclock-status-wrap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:22px;
}
.timeclock-label{
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#666;
  margin-bottom:5px;
}
.timeclock-status{
  font-size:34px;
  line-height:1.05;
  font-weight:900;
}
.timeclock-status.working{color:#1f7a39}
.timeclock-status.break{color:#9a6700}
.timeclock-status.off{color:#555}
.timeclock-live{text-align:right}
.timeclock-clock{
  font-size:30px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.timeclock-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.timeclock-primary,
.timeclock-action-btn{
  min-width:180px;
  min-height:58px;
  font-size:18px!important;
  font-weight:900!important;
}
.timeclock-stats{
  margin-top:16px;
}
.timeclock-mini-punch{
  display:inline-block;
  margin:2px 5px 2px 0;
  padding:4px 7px;
  border-radius:7px;
  background:#f1f1f1;
  font-size:12px;
}
.timeclock-hours-total{
  font-size:26px;
  font-weight:900;
}
@media(max-width:700px){
  .timeclock-status-wrap{
    align-items:flex-start;
    flex-direction:column;
  }
  .timeclock-live{text-align:left}
  .timeclock-actions{display:grid;grid-template-columns:1fr;width:100%}
  .timeclock-primary,.timeclock-action-btn{width:100%}
}


/* v7.68 readable timesheet punches + admin add punch */
.timesheet-employee-card{
  background:#fff!important;
  color:#111!important;
}
.timesheet-employee-name{
  margin:0!important;
  color:#111!important;
  font-size:24px!important;
  font-weight:900!important;
}
.timesheet-role{
  color:#555!important;
  font-size:14px!important;
  font-weight:700!important;
  margin-top:3px!important;
}
.timesheet-table-wrap{
  overflow-x:auto;
  margin-top:12px;
}
.timesheet-punch-table{
  width:100%;
  min-width:720px;
  border-collapse:collapse;
  background:#fff!important;
  color:#111!important;
}
.timesheet-punch-table thead th{
  background:#222!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  padding:12px 14px!important;
  border:1px solid #444!important;
  text-align:left!important;
}
.timesheet-punch-table tbody td{
  background:#fff!important;
  color:#111!important;
  font-size:16px!important;
  line-height:1.35!important;
  padding:13px 14px!important;
  border:1px solid #d5d5d5!important;
  vertical-align:middle!important;
}
.timesheet-punch-table tbody tr:nth-child(even) td{
  background:#f7f7f7!important;
}
.timesheet-date,
.timesheet-time{
  font-weight:800!important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.timesheet-note{
  color:#333!important;
}
.timesheet-empty{
  text-align:center!important;
  color:#666!important;
  padding:20px!important;
}
.punch-badge{
  display:inline-block;
  min-width:105px;
  padding:6px 10px;
  border-radius:999px;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:900!important;
  text-align:center;
  color:#111!important;
  background:#e8e8e8!important;
  border:1px solid #c8c8c8!important;
}
.punch-badge.clock_in{
  background:#dff3e4!important;
  border-color:#8fc99c!important;
}
.punch-badge.clock_out{
  background:#f4dddd!important;
  border-color:#d3a0a0!important;
}
.punch-badge.break_start,
.punch-badge.break_end{
  background:#fff1c7!important;
  border-color:#dec56e!important;
}
.admin-punch-panel{
  border:2px solid #222!important;
  background:#fafafa!important;
}
.admin-punch-panel h2{
  color:#111!important;
  margin-top:0!important;
}
.admin-punch-panel label{
  color:#111!important;
  font-weight:800!important;
}
.admin-punch-panel input,
.admin-punch-panel select{
  background:#fff!important;
  color:#111!important;
  border:1px solid #aaa!important;
  font-size:16px!important;
}

/* v7.69 main-menu logout */
.main-menu-logout{
  white-space:nowrap;
  align-self:flex-start;
}
@media(max-width:650px){
  .main-menu-hero{
    align-items:flex-start!important;
    flex-direction:column;
  }
}


/* v7.70 cash drawer transaction buttons */
.drawer-summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-top:12px;
  padding:10px 12px;
  background:#f5f5f5;
  border:1px solid #ddd;
  border-radius:9px;
  color:#111;
}
.drawer-summary-row span{font-weight:700}
.drawer-summary-row strong{font-size:18px;color:#176b31}
.drawer-summary-row.subtract strong{color:#9d2525}
.drawer-transactions-panel{
  margin-top:16px;
}
.drawer-transaction-buttons{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.drawer-tx-btn{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:86px;
  padding:14px;
  border:1px solid #bbb;
  border-radius:12px;
  background:#fff;
  color:#111;
  text-align:left;
  cursor:pointer;
}
.drawer-tx-btn:hover{
  border-color:#555;
  box-shadow:0 3px 12px rgba(0,0,0,.08);
}
.drawer-tx-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:11px;
  font-size:28px;
  font-weight:900;
  background:#eee;
}
.drawer-tx-btn b{
  display:block;
  font-size:17px;
  margin-bottom:3px;
}
.drawer-tx-btn small{
  display:block;
  font-size:12px;
  line-height:1.3;
  color:#666;
}
.drawer-tx-btn.money-in .drawer-tx-icon,
.drawer-tx-btn.parts .drawer-tx-icon{
  background:#dff3e4;
  color:#176b31;
}
.drawer-tx-btn.petty .drawer-tx-icon{
  background:#f6dddd;
  color:#9d2525;
}
.drawer-transaction-form{
  margin-top:16px;
  padding:16px;
  border:2px solid #333;
  border-radius:12px;
  background:#fafafa;
}
.drawer-tx-form-title{
  font-size:21px;
  font-weight:900;
  margin-bottom:12px;
}
.drawer-activity-table{
  min-width:680px;
  width:100%;
}
.drawer-activity-table td{
  vertical-align:middle;
}
.drawer-activity-badge{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  background:#eee;
  border:1px solid #ccc;
  font-size:12px;
  font-weight:900;
  color:#111;
  white-space:nowrap;
}
.drawer-activity-badge.money_in,
.drawer-activity-badge.parts_sale{
  background:#dff3e4;
  border-color:#99cba4;
}
.drawer-activity-badge.petty_cash{
  background:#f6dddd;
  border-color:#daa6a6;
}
.drawer-amount-in{
  font-weight:900;
  color:#176b31!important;
  white-space:nowrap;
}
.drawer-amount-out{
  font-weight:900;
  color:#9d2525!important;
  white-space:nowrap;
}
@media(max-width:800px){
  .drawer-transaction-buttons{grid-template-columns:1fr}
}


/* v7.72 petty cash receipt reconciliation */
.petty-receipt-action{
  padding:6px 9px!important;
  font-size:12px!important;
  white-space:nowrap;
}
.petty-pending{
  display:block;
  color:#9a6700;
  font-size:11px;
  font-weight:900;
  margin-top:4px;
}
.petty-file-link{
  display:block;
  margin-top:5px;
  font-size:12px;
  font-weight:700;
}
.petty-receipt-summary .num.petty-purpose{
  font-size:17px!important;
  line-height:1.25!important;
}
.petty-receipt-form{
  margin-top:16px;
}
.petty-current-file{
  margin-top:7px;
  font-weight:700;
}
.petty-reconcile-box{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
  padding:14px;
  border-radius:10px;
  background:#f4f4f4;
  border:1px solid #ddd;
}
.petty-reconcile-box div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:16px;
}
.petty-reconcile-box strong{
  font-size:19px;
}
@media(max-width:650px){
  .petty-reconcile-box{grid-template-columns:1fr}
}

.petty-worklist-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.petty-status{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.petty-status.pending{
  background:#fff1c7;
  border:1px solid #dec56e;
  color:#6f5100;
}
.petty-status.returned{
  background:#dff3e4;
  border:1px solid #99cba4;
  color:#176b31;
}
.petty-worklist-table{
  min-width:1050px;
  width:100%;
}
.petty-worklist-table th{
  white-space:nowrap;
}


/* v7.73 bulk / multiline material upload */
.bulk-format-example{
  display:grid;
  gap:5px;
  margin:10px 0;
  padding:12px;
  border-radius:9px;
  background:#f4f4f4;
  border:1px solid #ddd;
}
.bulk-format-example code{
  display:block;
  font-size:14px;
  color:#111;
  white-space:pre-wrap;
}
.bulk-material-textarea{
  width:100%;
  min-height:300px;
  resize:vertical;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:15px!important;
  line-height:1.5!important;
  background:#fff!important;
  color:#111!important;
}
.bulk-material-table{
  min-width:920px;
  width:100%;
}
.bulk-status{
  display:inline-block;
  padding:5px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}
.bulk-status.new{
  background:#dff3e4;
  color:#176b31;
  border:1px solid #99cba4;
}
.bulk-status.update{
  background:#dcecff;
  color:#174f8a;
  border:1px solid #98bce8;
}
.bulk-status.error{
  background:#f6dddd;
  color:#8d2424;
  border:1px solid #daa6a6;
}
.bulk-error-box{
  margin:10px 0 14px;
  padding:14px;
  border:2px solid #a52a2a;
  border-radius:10px;
  background:#fff1f1;
}
.bulk-error-box h3{
  margin-top:0;
  color:#7d1d1d;
}
.bulk-error-line{
  margin:7px 0;
  color:#111;
}
.bulk-error-line code{
  display:block;
  margin-top:3px;
  white-space:pre-wrap;
}


/* v7.74 Excel material upload */
.excel-column-guide{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin:12px 0 16px;
}
.excel-column-guide div{
  padding:10px;
  border:1px solid #ddd;
  border-radius:9px;
  background:#f7f7f7;
}
.excel-column-guide b,
.excel-column-guide span{
  display:block;
}
.excel-column-guide b{
  font-size:12px;
  color:#666;
  margin-bottom:3px;
}
.excel-column-guide span{
  font-size:14px;
  font-weight:800;
}
.bulk-or-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:14px 0;
}
.bulk-or-divider:before,
.bulk-or-divider:after{
  content:"";
  height:1px;
  background:#ccc;
  flex:1;
}
.bulk-or-divider span{
  margin:0 12px;
  font-size:12px;
  font-weight:900;
  color:#666;
}
.excel-preview-source{
  margin-top:7px;
  font-size:13px;
  color:#333;
}
@media(max-width:850px){
  .excel-column-guide{grid-template-columns:1fr}
}


/* v7.77 Admin cash drawer reopen */
.admin-reopen-drawer-panel{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:14px;
  border:2px solid #444!important;
}
.admin-reopen-drawer-panel h2{
  margin:0 0 4px;
}
@media(max-width:700px){
  .admin-reopen-drawer-panel{
    flex-direction:column;
    align-items:stretch;
  }
}


/* v7.93 CR5400 persistent customer ID image */
.ticket-id-capture{
  min-width:0;
}
.id-preview-shell{
  min-height:150px;
  border:2px dashed #4b5563;
  border-radius:10px;
  background:#0f141a;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  margin-bottom:8px;
  overflow:hidden;
}
.id-photo-preview{
  display:none;
  max-width:100%;
  max-height:220px;
  object-fit:contain;
  border-radius:6px;
  background:#fff;
}
.id-photo-empty{
  color:#9ca3af;
  text-align:center;
  font-size:13px;
  padding:22px;
}
.ticket-compliance-preview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:14px;
}
.ticket-compliance-preview img{
  max-width:100%;
  max-height:260px;
  object-fit:contain;
  background:#fff;
  border:1px solid #555;
  border-radius:8px;
  margin-top:6px;
}

/* v7.95 Tyler Crushing Pit Tickets */
.pit-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  margin:-2px 0 18px;
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
  background:rgba(255,255,255,.035);
}
.pit-banner strong{font-size:20px;letter-spacing:.03em}
.pit-banner span{font-size:12px;font-weight:700;opacity:.75}
.pit-scale-panel{
  margin-top:18px;
  padding:16px;
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}
.pit-scale-panel h2{margin-top:0}
.pit-scale-panel .btn{margin-top:6px}
.pit-weight-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.pit-weight-summary>div{
  padding:12px;
  border:1px solid var(--line,#d6d9de);
  border-radius:8px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.pit-weight-summary span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.7}
.pit-weight-summary strong{font-size:18px}
@media(max-width:800px){
  .pit-banner{align-items:flex-start;flex-direction:column}
  .pit-weight-summary{grid-template-columns:1fr 1fr}
}

/* v7.96 Tyler Crushing material-in / material-out workflow */
.pit-section{margin-top:18px;padding:16px;border:1px solid var(--line,#d6d9de);border-radius:10px;background:rgba(255,255,255,.025)}
.pit-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.pit-section-head h2,.pit-detail-section h2{margin:0 0 4px}
.pit-material-in{border-left:4px solid rgba(210,150,40,.75)}
.pit-material-out{border-left:4px solid rgba(70,140,220,.75)}
.pit-section-muted{opacity:.55}
.pit-grand-total{margin-top:18px;padding:14px 16px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:900}
.pit-grand-total strong{font-size:24px}
.pit-detail-section{margin-top:18px}
@media(max-width:800px){.pit-section-head{flex-direction:column}.pit-grand-total strong{font-size:20px}}

/* v7.98 repeatable Tyler Crushing pit ticket rows */
.pit-repeat-row{padding:14px 0;border-top:1px solid var(--line,#d6d9de)}
.pit-repeat-row:first-child{border-top:0}
.pit-row-remove{align-self:end}
.hold-btn{font-weight:800}

/* v7.99 Pit invoice */
.pit-invoice-panel{border-left:4px solid rgba(100,170,100,.8)}
.pit-invoice-summary{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 16px}
.pit-invoice-summary>div{display:flex;flex-direction:column;gap:3px;min-width:130px}
.pit-invoice-summary span{font-size:11px;text-transform:uppercase;opacity:.7}
.pit-invoice-email-form input{min-width:280px;flex:1}
.invoice-sheet{max-width:900px}
.invoice-company h2{margin-bottom:4px}
.invoice-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:24px}
.invoice-meta>div{display:flex;flex-direction:column;gap:4px}
.invoice-po{margin-top:16px}
.success-note{padding:10px 12px;border:1px solid currentColor;border-radius:8px;margin:10px 0}

/* v8.00 Job Tickets */
.job-ticket-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  margin-bottom:20px;
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
  background:rgba(255,255,255,.035);
}
.job-ticket-banner strong{font-size:22px;letter-spacing:.04em}
.job-ticket-banner span{font-size:12px;font-weight:700;opacity:.7}
.job-material-section{
  margin-top:22px;
  padding:16px;
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}
.job-material-row{
  padding:14px 0;
  border-top:1px solid var(--line,#d6d9de);
}
.job-material-row:first-child{border-top:0}
.job-material-row .btn{margin-top:6px}
.job-row-remove{align-self:end}
.job-ticket-totals{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.job-ticket-totals>div{
  border:1px solid var(--line,#d6d9de);
  border-radius:9px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.job-ticket-totals span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;opacity:.7}
.job-ticket-totals strong{font-size:20px}
.job-ticket-info-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.job-ticket-info-grid>div{
  border:1px solid var(--line,#d6d9de);
  border-radius:8px;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.job-ticket-info-grid span{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.05em;
  opacity:.65;
}
@media(max-width:800px){
  .job-ticket-banner{align-items:flex-start;flex-direction:column}
  .job-ticket-totals,.job-ticket-info-grid{grid-template-columns:1fr}
}

/* v8.01 Remote Scale Station */
.remote-scale-layout{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.remote-scale-status{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:16px;
}
.remote-scale-status>div:first-child{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.remote-scale-status-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  opacity:.65;
}
.bridge-online{font-size:18px}
.bridge-warning,.bridge-offline{font-size:18px}
.remote-ticket-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
  max-height:70vh;
  overflow:auto;
}
.remote-ticket-card{
  display:block;
  text-decoration:none;
  color:inherit;
  border:1px solid var(--line,#d6d9de);
  border-radius:8px;
  padding:10px 12px;
}
.remote-ticket-card:hover,.remote-ticket-card.active{
  background:rgba(255,255,255,.05);
}
.remote-ticket-card>div:first-child{
  display:flex;
  justify-content:space-between;
  gap:8px;
}
.remote-ticket-card>div:first-child span{
  text-align:right;
}
.remote-ticket-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:5px;
  font-size:11px;
  opacity:.7;
}
.remote-scale-ticket-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:12px;
}
.remote-scale-ticket-header h2{margin-top:0}
.remote-scale-materials{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.remote-scale-row{
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
  padding:14px;
}
.remote-scale-material-title{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:12px;
}
.remote-scale-material-title>span{
  font-size:11px;
  text-transform:uppercase;
  opacity:.65;
}
.remote-scale-material-title>strong{font-size:18px}
.remote-scale-material-title>small{opacity:.7}
.remote-scale-weight-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.remote-scale-weight-grid .btn{
  width:100%;
  margin-top:6px;
}
.remote-scale-calculated{
  border:1px solid var(--line,#d6d9de);
  border-radius:8px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.remote-scale-calculated span{
  font-size:11px;
  text-transform:uppercase;
  opacity:.65;
}
.remote-scale-calculated strong{font-size:18px}
.remote-scale-row-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
}
.remote-save-status{
  font-size:12px;
  font-weight:700;
}
.remote-scale-empty{
  min-height:300px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  opacity:.75;
}
@media(max-width:1000px){
  .remote-scale-layout{grid-template-columns:1fr}
  .remote-ticket-list{max-height:320px}
}
@media(max-width:720px){
  .remote-scale-weight-grid{grid-template-columns:1fr 1fr}
  .remote-scale-ticket-header,.remote-scale-status{flex-direction:column}
}

.remote-held-status{font-weight:900}.remote-scale-readonly-note{margin-bottom:14px}

/* v8.03 Remote Scale start ticket */
.remote-start-banner{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 16px;margin-bottom:18px;border:1px solid var(--line,#d6d9de);
  border-radius:10px;background:rgba(255,255,255,.035)
}
.remote-start-banner strong{font-size:18px}
.remote-start-material-section{
  margin-top:20px;padding:16px;border:1px solid var(--line,#d6d9de);
  border-radius:10px;background:rgba(255,255,255,.025)
}
.remote-start-material-row{padding:12px 0;border-top:1px solid var(--line,#d6d9de)}
.remote-start-material-row:first-child{border-top:0}
.remote-start-vehicle{margin-top:18px;border:1px solid var(--line,#d6d9de);border-radius:9px;padding:12px}
.remote-start-vehicle summary{font-weight:800;cursor:pointer}

/* v8.03 Employee Portal */
.employee-portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.employee-card{border:1px solid var(--line,#d6d9de);border-radius:12px;padding:20px;background:rgba(255,255,255,.025);color:inherit;text-decoration:none}
.employee-card h2{margin-top:0}.employee-card-action{display:flex;flex-direction:column;gap:6px}.employee-card-action>strong{font-size:30px}.employee-card-action>span{font-size:12px;text-transform:uppercase;opacity:.65}.employee-clock-state{font-size:28px;font-weight:900;margin:8px 0}.employee-clock-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.employee-card-link{font-weight:700}
.equipment-inspection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.equipment-card{border:1px solid var(--line,#d6d9de);border-radius:10px;padding:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.inspection-complete{font-weight:800}
.inspection-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.inspection-check{border:1px solid var(--line,#d6d9de);border-radius:8px;padding:12px;display:flex;gap:10px;align-items:center}.inspection-check input,.inspection-alert-options input,.inspection-cert input{width:auto}.inspection-alert-options{display:flex;flex-direction:column;gap:10px;margin:18px 0;font-weight:800}.inspection-cert{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line,#d6d9de);border-radius:8px;padding:12px}
@media(max-width:900px){.employee-portal-grid{grid-template-columns:1fr}.equipment-inspection-grid,.inspection-check-grid{grid-template-columns:1fr}}

/* v8.04 Employee Portal mobile-first refinements */
.mobile-panel select,
.mobile-panel input,
.inspection-form select,
.inspection-form input,
.inspection-form textarea,
.employee-card select,
.employee-card input{
  font-size:16px;
}

.mobile-primary{
  min-height:48px;
  padding:12px 18px;
  font-size:16px;
  font-weight:800;
}

@media(max-width:700px){
  .app-shell{display:block}
  .sidebar{
    position:static !important;
    width:auto !important;
    min-height:auto !important;
    padding:10px 12px !important;
  }
  .sidebar-brand{margin-bottom:8px}
  .side-heading{margin-top:10px}
  .side-link{
    min-height:42px;
    display:flex;
    align-items:center;
    padding:10px 12px;
  }
  .main-content{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:12px !important;
  }
  .logged-in-user{
    position:static !important;
    width:100%;
    flex-wrap:wrap;
    gap:5px;
    padding:8px 12px;
  }
  .page-header{
    flex-direction:column;
    align-items:stretch !important;
    gap:10px;
  }
  .page-header .actions,
  .actions{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }
  .page-header .actions .btn,
  .employee-clock-actions .btn{
    flex:1 1 140px;
  }
  .employee-portal-grid{
    grid-template-columns:1fr !important;
    gap:12px;
  }
  .employee-card{
    padding:16px;
    min-height:0;
  }
  .employee-card h2{font-size:20px}
  .employee-clock-state{font-size:25px}
  .employee-clock-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .employee-clock-actions .btn{
    width:100%;
    min-height:50px;
    font-size:16px;
  }
  .formgrid{
    grid-template-columns:1fr !important;
  }
  .formgrid .span2,
  .formgrid .wide{
    grid-column:1 !important;
  }
  input,select,textarea{
    max-width:100%;
  }
  .mobile-panel{
    padding:14px !important;
  }
  .mobile-panel select{
    width:100%;
    min-height:50px;
  }
  .mobile-panel .btn{
    width:100%;
  }
  .inspection-check-grid{
    grid-template-columns:1fr !important;
  }
  .inspection-check{
    min-height:52px;
    font-size:15px;
  }
  .inspection-check input{
    width:22px !important;
    height:22px;
    flex:0 0 auto;
  }
  .inspection-alert-options label,
  .inspection-cert{
    min-height:50px;
    font-size:15px;
  }
  .inspection-alert-options input,
  .inspection-cert input{
    width:22px !important;
    height:22px;
    flex:0 0 auto;
  }
  .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .table-wrap table{
    min-width:680px;
  }
  .remote-scale-layout{
    grid-template-columns:1fr !important;
  }
  .remote-scale-weight-grid{
    grid-template-columns:1fr !important;
  }
  .remote-scale-weight-grid input{
    font-size:18px;
    min-height:48px;
  }
  .remote-scale-weight-grid .btn{
    min-height:48px;
  }
  .remote-start-banner{
    flex-direction:column;
    align-items:flex-start;
  }
  .remote-start-material-section{
    padding:12px;
  }
}

/* v8.05 Remote Scale Start - scale chooser */
.remote-scale-picker{
  margin-bottom:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.remote-scale-picker h2{margin:0 0 3px}
.remote-scale-picker-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.remote-scale-choice{
  min-width:220px;
  min-height:46px;
}
.remote-scale-choice.active{
  outline:2px solid rgba(255,255,255,.75);
  outline-offset:2px;
}
.remote-start-material-row .btn{
  margin-top:6px;
}
@media(max-width:700px){
  .remote-scale-picker{
    align-items:stretch;
    flex-direction:column;
  }
  .remote-scale-picker-buttons{
    display:grid;
    grid-template-columns:1fr;
  }
  .remote-scale-choice{
    width:100%;
    min-width:0;
    min-height:52px;
    font-size:16px;
  }
}

/* v8.06 outbound sale workflow */
.outbound-section{margin-top:16px;padding:16px;border:1px solid var(--line,#d6d9de);border-radius:10px;background:rgba(255,255,255,.025)}
.outbound-section:first-child{margin-top:0}
.outbound-quick-buyer{margin-top:14px;padding:14px;border:1px dashed var(--line,#d6d9de);border-radius:9px}
.outbound-scale-buttons{display:flex;gap:8px;flex-wrap:wrap}
.outbound-scale-choice{min-height:46px;min-width:220px}
.outbound-scale-choice.active{outline:2px solid rgba(255,255,255,.75);outline-offset:2px}
.outbound-material-row{margin:10px 0;padding:14px}
.outbound-material-row .btn{margin-top:6px}
.outbound-sale-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px}
@media(max-width:700px){
  .outbound-scale-buttons{display:grid;grid-template-columns:1fr;width:100%}
  .outbound-scale-choice{width:100%;min-width:0}
  .outbound-sale-footer{flex-direction:column;align-items:stretch}
  .outbound-sale-footer .ticket-total{text-align:center}
}

/* v8.07 Parts Sales */
.parts-sale-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:3px;
  padding:14px;
  margin-bottom:18px;
  border:1px solid var(--line,#d6d9de);
  border-radius:10px;
}
.parts-sale-brand strong{font-size:19px}
.parts-sale-brand span:first-of-type{font-size:15px;font-weight:800}
.parts-sale-lines-section{margin-top:20px;padding:14px;border:1px solid var(--line,#d6d9de);border-radius:10px}
.parts-sale-row{padding:12px 0;border-top:1px solid var(--line,#d6d9de)}
.parts-sale-row:first-child{border-top:0}
.parts-sale-total{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:18px;padding:14px 16px;border:2px solid var(--line,#d6d9de);
  border-radius:10px;font-size:18px;font-weight:900
}
.drawer-summary-row.card-only{opacity:.9}
.drawer-amount-card{font-weight:800}
@media(max-width:700px){
  .parts-sale-brand strong{font-size:17px}
  .parts-sale-total{font-size:17px}
}


/* v8.23 Employee Portal PWA / phone-app experience */
.employee-mobile-shell{
  max-width:900px;
  margin:0 auto;
  padding-bottom:86px;
}
.employee-mobile-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line,#d6d9de);
  margin-bottom:14px;
}
.employee-mobile-hero h1{margin:2px 0 4px;font-size:30px}
.employee-mobile-kicker{
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:.12em;
  font-weight:800;
  opacity:.62;
}
.employee-mobile-sub{font-size:14px;opacity:.7}
.employee-status-pill{
  padding:8px 11px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
  border:1px solid var(--line,#d6d9de);
}
.employee-status-working{background:rgba(40,180,90,.13)}
.employee-status-break{background:rgba(230,170,40,.13)}
.employee-status-off{background:rgba(130,130,130,.12)}
.employee-mobile-clock-card{
  padding:20px;
  border-radius:18px;
  border:1px solid var(--line,#d6d9de);
  background:rgba(255,255,255,.025);
  margin-bottom:14px;
}
.employee-mobile-clock-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.employee-mobile-label{
  display:block;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
  font-weight:800;
  opacity:.58;
  margin-bottom:3px;
}
.employee-mobile-hours{font-size:38px;font-weight:900;line-height:1}
.employee-mobile-hours span{font-size:15px;opacity:.6}
.employee-mobile-time{font-size:19px;font-weight:800}
.employee-mobile-clock-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.employee-mobile-clock-actions button:only-child{grid-column:1/-1}
.employee-mobile-primary,
.employee-mobile-secondary,
.employee-mobile-danger{
  min-height:54px;
  border-radius:12px;
  border:1px solid var(--line,#d6d9de);
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.employee-mobile-primary{background:#fff;color:#111}
.employee-mobile-secondary{background:transparent;color:inherit}
.employee-mobile-danger{background:rgba(190,35,35,.16);color:inherit}
.employee-mobile-text-link{
  display:inline-block;
  margin-top:13px;
  font-weight:800;
  color:inherit;
}
.employee-mobile-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.employee-mobile-action-card{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:132px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line,#d6d9de);
  background:rgba(255,255,255,.025);
  color:inherit;
  text-decoration:none;
}
.employee-mobile-action-card strong{font-size:17px}
.employee-mobile-action-card span{font-size:12px;opacity:.62}
.employee-mobile-icon{font-size:25px;margin-bottom:7px}
.employee-mobile-latest-pay{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:18px;
  border-radius:16px;
  border:1px solid var(--line,#d6d9de);
}
.employee-mobile-latest-pay>div{display:flex;flex-direction:column;gap:3px}
.employee-mobile-latest-pay strong{font-size:26px}
.employee-mobile-latest-pay span{font-size:12px;opacity:.65}
.employee-mobile-small-btn,
.employee-mobile-manager-link,
.employee-install-app{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--line,#d6d9de);
  background:transparent;
  color:inherit;
  font-weight:800;
  text-decoration:none;
}
.employee-mobile-manager-link,
.employee-install-app{
  width:100%;
  margin-top:14px;
}
.employee-ios-install{
  margin-top:12px;
  padding:12px 14px;
  border:1px dashed var(--line,#d6d9de);
  border-radius:12px;
  font-size:13px;
}
.employee-mobile-page-head{
  padding:18px 0 12px;
}
.employee-mobile-page-head h1{margin:3px 0}
.employee-paystub-list{display:flex;flex-direction:column;gap:10px}
.employee-paystub-card{
  display:grid;
  grid-template-columns:1fr auto 22px;
  align-items:center;
  gap:14px;
  padding:16px;
  border:1px solid var(--line,#d6d9de);
  border-radius:15px;
  color:inherit;
  text-decoration:none;
}
.employee-paystub-card>div:first-child{display:flex;flex-direction:column;gap:2px}
.employee-paystub-card strong{font-size:17px}
.employee-paystub-card small{opacity:.6}
.employee-paystub-money{text-align:right;display:flex;flex-direction:column;gap:2px}
.employee-paystub-money span{font-size:10px;text-transform:uppercase;opacity:.6;font-weight:800}
.employee-paystub-money strong{font-size:20px}
.employee-paystub-arrow{font-size:30px;opacity:.45}
.employee-mobile-empty{
  text-align:center;
  padding:35px 18px;
  border:1px dashed var(--line,#d6d9de);
  border-radius:15px;
  opacity:.7;
}
.employee-bottom-nav{
  display:none;
}

@media(max-width:700px){
  body.employee-app-page{
    padding-bottom:76px;
  }
  body.employee-app-page .sidebar{
    display:none !important;
  }
  body.employee-app-page .logged-in-user{
    display:none !important;
  }
  body.employee-app-page .main-content{
    padding:10px 12px 16px !important;
  }
  body.employee-app-page .app-shell{
    display:block !important;
  }
  .employee-mobile-shell{
    padding-bottom:8px;
  }
  .employee-mobile-hero{
    padding:15px;
    border-radius:15px;
  }
  .employee-mobile-hero h1{font-size:24px}
  .employee-mobile-clock-card{padding:16px;border-radius:15px}
  .employee-mobile-hours{font-size:34px}
  .employee-mobile-time{font-size:16px}
  .employee-mobile-action-card{
    min-height:118px;
    padding:14px;
  }
  .employee-mobile-action-card strong{font-size:16px}
  .employee-mobile-latest-pay{padding:15px}
  .employee-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1000;
    height:68px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    background:#111;
    border-top:1px solid #333;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .employee-bottom-nav a{
    color:#c8c8c8;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    min-width:0;
    font-size:10px;
    font-weight:700;
  }
  .employee-bottom-nav a.active{color:#fff}
  .employee-bottom-icon{font-size:20px;line-height:1}
}

@media(max-width:390px){
  .employee-mobile-action-grid{grid-template-columns:1fr 1fr}
  .employee-mobile-action-card{min-height:108px}
  .employee-paystub-card{grid-template-columns:1fr auto 14px;padding:13px;gap:8px}
  .employee-paystub-money strong{font-size:17px}
}


/* v8.24 Interactive Job Board */
.job-board-create-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;flex-wrap:wrap}
.job-board-sms-warning{margin-top:12px;padding:11px 13px;border:1px dashed var(--line,#d6d9de);border-radius:9px;font-size:13px}
.job-board-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.job-board-column{border:1px solid var(--line,#d6d9de);border-radius:14px;background:rgba(255,255,255,.018);min-width:0}
.job-board-column-head{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border-bottom:1px solid var(--line,#d6d9de)}
.job-board-column-head h2{margin:0;font-size:17px}.job-board-column-head span{font-weight:900;opacity:.65}
.job-board-dropzone{min-height:320px;padding:10px;transition:.15s}
.job-board-dropzone.drag-over{background:rgba(255,255,255,.06)}
.job-task-card{border:1px solid var(--line,#d6d9de);border-radius:12px;padding:13px;margin-bottom:10px;background:var(--panel,#fff);cursor:default}
.job-task-card[draggable="true"]{cursor:grab}.job-task-card.dragging{opacity:.45}
.job-task-card h3{margin:7px 0 4px;font-size:16px}
.job-task-card p{font-size:13px;opacity:.78;white-space:pre-wrap}
.job-task-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.job-task-priority,.employee-job-priority{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;padding:4px 7px;border:1px solid currentColor;border-radius:999px}
.priority-urgent{font-weight:900}.priority-high{font-weight:800}
.job-task-due{font-size:11px;font-weight:800}.overdue{font-weight:900;text-decoration:underline}
.job-task-assignee{font-size:13px;font-weight:800}.job-task-meta,.job-task-sms{font-size:11px;opacity:.68;margin-top:5px}
.job-task-card details{margin-top:10px;border-top:1px solid var(--line,#d6d9de);padding-top:8px}
.job-task-card summary{cursor:pointer;font-size:12px;font-weight:800}
.job-task-manage{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.job-task-manage form{display:flex;flex-direction:column;gap:5px}
.job-task-manage label{font-size:11px;font-weight:800}
.job-task-updates{font-size:11px;border-top:1px solid var(--line,#d6d9de);padding-top:8px}
.job-task-updates>div{padding:5px 0}.job-task-updates span{font-weight:800}.job-task-updates small{opacity:.55}

.employee-job-list{display:flex;flex-direction:column;gap:10px}
.employee-job-card{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--line,#d6d9de);border-radius:15px;color:inherit;text-decoration:none}
.employee-job-card-head,.employee-job-detail-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.employee-job-card>strong{font-size:18px}.employee-job-card p{margin:0;font-size:13px;opacity:.72}
.employee-job-status{font-size:11px;font-weight:800;opacity:.7}
.employee-job-meta{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;opacity:.68}
.employee-job-detail-card,.employee-job-action-card,.employee-job-history{padding:16px;border:1px solid var(--line,#d6d9de);border-radius:15px;margin-bottom:12px}
.employee-job-detail-row{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px dotted var(--line,#d6d9de)}
.employee-job-detail-row span,.employee-job-instructions>span{font-size:11px;text-transform:uppercase;font-weight:800;opacity:.6}
.employee-job-instructions{padding-top:12px}.employee-job-instructions p{white-space:pre-wrap}
.employee-job-action-card h2,.employee-job-history h2{margin-top:0;font-size:18px}
.employee-job-action-card form{display:flex;flex-direction:column;gap:8px}
.employee-job-history-row{padding:11px 0;border-bottom:1px solid var(--line,#d6d9de)}
.employee-job-history-row>div{display:flex;justify-content:space-between;gap:10px}.employee-job-history-row span{font-size:11px;opacity:.6}
.employee-job-history-row p{margin:4px 0;font-size:13px}.employee-job-history-row small{opacity:.55}

@media(max-width:1050px){.job-board-columns{grid-template-columns:1fr}}
@media(max-width:700px){
  .job-board-columns{grid-template-columns:1fr}
  .job-board-dropzone{min-height:120px}
  .employee-bottom-nav{grid-template-columns:repeat(6,1fr)}
  .employee-bottom-nav a{font-size:9px}
  .employee-bottom-icon{font-size:18px}
}
