/* Mizan 2026 visual system — navy, electric blue and muted berry. */
:root{
  --g950:#111a2e;
  --g900:#17243e;
  --g800:#1f3154;
  --g700:#2563eb;
  --g100:#e8efff;
  --g50:#f3f6fc;
  --gold:#9f3f5f;
  --gold2:#f1b8cc;
  --cream:#f5f7fb;
  --paper:#fff;
  --ink:#182033;
  --muted:#667085;
  --line:#e3e8f2;
  --danger:#b42318;
  --danger-bg:#fff0ee;
  --success:#087a55;
  --success-bg:#eafaf3;
  --warning:#b54708;
  --warning-bg:#fff6e8;
  --shadow:0 24px 70px rgba(23,36,62,.12);
  --shadow-soft:0 8px 28px rgba(23,36,62,.07);
  --font:"Alexandria",Tahoma,Arial,sans-serif;
}

html{background:#f5f7fb}
body{background:var(--cream);color:var(--ink);letter-spacing:-.01em}
body,button,input,select,textarea{font-family:var(--font)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}

/* Global navigation */
.site-header{
  height:76px;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(227,232,242,.9);
  box-shadow:0 1px 0 rgba(17,26,46,.02);
  backdrop-filter:blur(18px) saturate(145%);
}
.brand{gap:12px}.brand b{color:var(--g900);font-size:20px;letter-spacing:-.035em}.brand small{font-size:10px;color:#7b8497}
.logo,.mini-logo{
  border-radius:13px;
  background:linear-gradient(145deg,#2563eb,#17243e 76%);
  color:#fff;
  box-shadow:0 8px 22px rgba(37,99,235,.22);
}
.logo{width:43px;height:43px;font-size:20px}.mini-logo{width:48px;height:48px}
.nav-link{color:#4d5970;border-radius:10px;transition:.18s ease}.nav-link:hover{color:var(--g700);background:var(--g50)}

/* Buttons and form controls */
.btn{border-radius:10px;box-shadow:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-dark{background:linear-gradient(135deg,#17243e,#22365e);box-shadow:0 8px 20px rgba(23,36,62,.18)}
.btn-dark:hover{background:linear-gradient(135deg,#1f3154,#29436f);box-shadow:0 11px 24px rgba(23,36,62,.23)}
.btn-gold{background:linear-gradient(135deg,#2563eb,#3978f2);color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.25)}
.btn-gold:hover{background:linear-gradient(135deg,#1d55d8,#326ee3);box-shadow:0 13px 28px rgba(37,99,235,.3)}
.btn-outline{background:#fff;color:var(--g900);border-color:#d6ddea}.btn-outline:hover{border-color:#b9c7e2;background:#f8faff}
.btn-light{border-color:#dfe5ef;color:var(--g900)}
.btn-danger{border-color:#f4c7c3}
input,select,textarea{
  border-color:#d8dfeb;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input::placeholder,textarea::placeholder{color:#98a2b3}
input:hover,select:hover,textarea:hover{border-color:#b8c3d5}
input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.11)}
label{color:#344054}.text-action{color:var(--g700)}

/* Landing page */
.landing{
  background:
    radial-gradient(circle at 78% 12%,rgba(37,99,235,.13),transparent 31%),
    radial-gradient(circle at 12% 88%,rgba(159,63,95,.09),transparent 28%),
    linear-gradient(180deg,#fbfcff,#f4f7fc);
}
.hero{min-height:700px;padding-top:82px}
.eyebrow{color:var(--g700);letter-spacing:.02em}.eyebrow:before{height:2px;background:linear-gradient(90deg,var(--g700),#78a2ff)}
.hero h1{color:var(--g900);font-size:clamp(48px,6vw,76px);letter-spacing:-.055em}.hero h1 em{color:var(--g700)}
.hero-copy>p{color:#5d687e;max-width:670px}
.assurances span{display:inline-flex;align-items:center;gap:5px;color:#576279}
.preview-card{
  border:1px solid rgba(216,223,235,.9);
  border-radius:18px;
  box-shadow:0 35px 90px rgba(23,36,62,.15);
  transform:rotate(-.6deg);
  position:relative;
  overflow:hidden;
}
.preview-card:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#2563eb,#9f3f5f)}
.preview-head>span{background:#eef3ff;color:#2554bd}.preview-head b{color:var(--g900)}
.client>i{background:#eaf0ff;color:#2563eb;border-radius:11px}
.preview-card li.done{color:#2554bd}.preview-card li.done>i{background:#2563eb;border-color:#2563eb}.preview-card li.done:not(:last-child):after{background:#7da2f3}
.preview-card li.current>i{border-color:#9f3f5f;box-shadow:0 0 0 4px rgba(159,63,95,.11)}
.preview-card li.current>span{background:#9f3f5f;box-shadow:0 0 0 4px rgba(159,63,95,.11)}
.preview-card footer{background:#f4f7fd}.preview-card footer b{color:#344054}
.feature-strip{background:linear-gradient(135deg,#111a2e,#172b4d);position:relative;overflow:hidden}
.feature-strip:after{content:"";position:absolute;width:340px;height:340px;border-radius:50%;background:rgba(37,99,235,.16);filter:blur(5px);left:-180px;top:-230px}
.features article>span{color:#8eb0ff}.features p{color:rgba(255,255,255,.62)}

/* Login gates */
.gate{
  background:
    radial-gradient(circle at 12% 15%,rgba(37,99,235,.24),transparent 32%),
    radial-gradient(circle at 88% 90%,rgba(159,63,95,.18),transparent 30%),
    linear-gradient(145deg,#0e1729,#17243e 58%,#1d2e4e);
}
.gate:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,#000,transparent)}
.gate-layout{position:relative;z-index:1}
.eyebrow.light{color:#9ebcff}.gate-copy>p{color:rgba(255,255,255,.66)}.gate-copy ul{color:rgba(255,255,255,.75)}.gate-copy li i{color:#efacc4}
.auth-card{border-radius:18px;padding:34px;border:1px solid rgba(255,255,255,.72);box-shadow:0 35px 90px rgba(4,10,22,.42)}
.card-title{border-bottom-color:#e8ecf3}.card-title small{color:#9f3f5f}.card-title h2{color:var(--g900)}
.tabs{background:#f0f3f8}.tabs button.active{color:#1f4fb8;box-shadow:0 4px 12px rgba(23,36,62,.09)}
.note{background:#f1f5ff;border-right-color:#2563eb;color:#23375d}
.signup-callout{border-top-color:#e6eaf1}

/* Staff dashboard shell */
.dashboard-active,.dashboard{background:#f3f6fb}
.dash-head{background:linear-gradient(115deg,#111a2e,#17243e 55%,#21385f);padding:22px 0 38px;position:relative;overflow:hidden}
.dash-head:after{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:rgba(37,99,235,.13);left:8%;top:-280px}
.dash-head-inner{position:relative;z-index:1}
.avatar{border-radius:12px;background:linear-gradient(145deg,#3978f2,#255bcf);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.28)}
.welcome small{color:rgba(255,255,255,.58)}.dash-actions .btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.13);backdrop-filter:blur(7px)}.dash-actions .btn:hover{background:rgba(255,255,255,.15)}
.dash-body{margin-top:-18px}
.metrics{gap:13px}
.metric{border-color:#e3e8f2;border-radius:13px;padding:20px;box-shadow:var(--shadow-soft);position:relative;overflow:hidden}
.metric:after{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:#2563eb;opacity:.85}
.metric:nth-child(2):after{background:#9f3f5f}.metric:nth-child(3):after{background:#7c5ce7}.metric:nth-child(4):after{background:#0e9384}
.metric b{color:var(--g900)}.metric.attention{border-color:#f1d4dc;background:#fffafb}.metric.attention:after{background:#9f3f5f}.metric.attention b{color:#8f3654}
.workspace{grid-template-columns:258px minmax(0,1fr);gap:18px;margin-top:18px}
.sidebar,.orders-panel{border-color:#e2e7f0;border-radius:14px;box-shadow:var(--shadow-soft)}
.sidebar{padding:18px;top:92px}
.side-title{color:#98a2b3;letter-spacing:.02em}
.side-section+.side-section{border-top-color:#e7ebf2}
.quick button,.filters button{border-radius:8px;border-color:#e4e8f0;color:#445069;transition:.16s ease}
.quick button:hover,.filters button:hover{border-color:#cbd5e5;background:#f6f8fc;color:#214fae;transform:translateX(-2px)}
.quick button.primary{background:linear-gradient(135deg,#2563eb,#3474eb);border-color:#2563eb;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.filters button.active{background:#edf3ff;color:#2456bf;border-color:#dce7ff}
.filters b{background:#e9effb;color:#3563c0}
.orders-panel{padding:23px}.orders-toolbar{border-bottom-color:#e7ebf2}.orders-toolbar h2{color:var(--g900)}
.search{background:#f8faff;padding-inline-start:40px}

/* Orders, items and progress */
.order{border-color:#e1e6ef;border-radius:11px;box-shadow:0 3px 12px rgba(23,36,62,.035);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.order:hover{border-color:#cbd5e5;box-shadow:0 8px 22px rgba(23,36,62,.075);transform:translateY(-1px)}
.order.expanded{border-color:#bdcae1;box-shadow:0 10px 28px rgba(23,36,62,.09)}
.order-title h3,.item h4{color:var(--g900)}
.badge{background:#eaf0ff;color:#2456bf}.badge.late{background:var(--danger-bg);color:var(--danger)}.badge.done{background:var(--success-bg);color:var(--success)}
.toggle{border-radius:8px;color:#36527f}.order-details{background:#f8faff;border-top-color:#e5eaf2}
.item{border-color:#e0e6f0;border-radius:9px;box-shadow:0 2px 8px rgba(23,36,62,.025)}
.stagebar i{background:#e7ebf2}.stagebar i.done{background:#2563eb}.stagebar i.current{background:#9f3f5f}
.stage-row span,.stage-meta>span:first-child{color:#2556ba}.file{background:#edf3ff;color:#2556ba;border-color:#dce7ff}.mini-btn{color:#344a6b;border-color:#dce2ec;border-radius:7px}.mini-btn:hover{background:#f2f6fc;border-color:#c5d0e1}
.progress-line>div{background:#e7ebf2}.progress-line i{background:linear-gradient(90deg,#2563eb,#9f3f5f)}.progress-line span{color:#2556ba}
.product-row{background:#f8faff;border-color:#dfe5ef}.product-row-head h3{color:var(--g900)}

/* Operations and alerts */
.operations-board{background:linear-gradient(125deg,#17243e,#20375f);border:1px solid rgba(255,255,255,.05);border-radius:14px;box-shadow:0 18px 45px rgba(23,36,62,.18);position:relative;overflow:hidden}
.operations-board:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:rgba(37,99,235,.15);left:-160px;bottom:-245px;pointer-events:none}
.operations-head,.operations-grid{position:relative;z-index:1}.operations-head small{color:#9ab8ff}.operations-head>span{background:rgba(255,255,255,.08)}
.operations-grid button{border-radius:10px;background:rgba(255,255,255,.055)}.operations-grid button:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.operations-grid button.warning{border-color:rgba(241,184,204,.28);background:rgba(159,63,95,.13)}.operations-grid button.danger{border-color:rgba(255,163,154,.25);background:rgba(180,35,24,.15)}
.operations-grid b{color:#9fbdff}.operations-grid .warning b{color:#f1b8cc}
.notification-button b{background:#9f3f5f;color:#fff}.notification-row{border-right-color:#2563eb}.notification-row.read{border-right-color:#d3d9e4}
.review-notice{background:#f2f6ff;border-right-color:#2563eb;color:#34517e}.warning-note{background:#fff1f0;border-right-color:#b42318;color:#7a271a}
.priority-chip.high{background:#fff4e5;color:#a15c06}.priority-chip.urgent{background:#fff0ee;color:#b42318}
.operation-row{border-right-color:#2563eb}.operation-row.warning{border-right-color:#9f3f5f;background:#fffafb}.operation-row.danger{border-right-color:#b42318;background:#fffafa}

/* Customer portal and modals */
.portal{border-radius:16px;border:1px solid #e1e6ef;box-shadow:var(--shadow)}
.portal-head{background:linear-gradient(115deg,#17243e,#20375f)}.portal-head small{color:#aac1f8}
.finance article{border-color:#e1e6ef;background:#fbfcfe;border-radius:10px}.finance b{color:var(--g900)}
.customer-order{border-color:#e1e6ef;border-radius:11px}.customer-item{background:#f4f7fc}.customer-item span{color:#2556ba}
.modal{background:rgba(9,16,31,.72);backdrop-filter:blur(10px)}
.modal-box{border-radius:16px;border:1px solid rgba(255,255,255,.8);box-shadow:0 35px 100px rgba(4,10,22,.48)}
.modal-head{background:rgba(255,255,255,.94);border-bottom-color:#e5e9f1}.modal-head h2{color:var(--g900)}.close{color:#42577a;border-color:#dbe2ed}
.category-field-row,.allocation-row{background:#f4f7fc}.code-box{background:#f4f7fc;border-color:#c8d3e5}.code-box strong{color:var(--g900)}
.toast{background:#17243e;border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 45px rgba(9,16,31,.35)}.toast.error{background:#7a271a}
.site-footer{background:#111a2e}

/* Status colors */
.status-chip{background:#f0f2f6;color:#667085}.status-chip.active{background:var(--success-bg);color:var(--success)}.status-chip.pending,.status-chip.invited{background:var(--warning-bg);color:var(--warning)}
.mini-btn.approve{color:var(--success);background:var(--success-bg);border-color:#b9ead7}
.success-state>span,.sent-mark{background:var(--success-bg);color:var(--success)}
.timeline-event>i{background:#2563eb;border-color:#dce7ff}.timeline-event.delivery>i{background:#9f3f5f;border-color:#f4dce5}.timeline-event blockquote{background:#f3f6fc;border-right-color:#9f3f5f}
.customer-timeline summary{color:#2556ba}.customer-timeline p>i{background:#9f3f5f}
.spinner{border-color:#dbe5f8;border-top-color:#2563eb}

/* Responsive refinement */
@media(max-width:900px){
  .workspace{grid-template-columns:225px minmax(0,1fr)}
}
@media(max-width:760px){
  .site-header{height:70px}.workspace{grid-template-columns:1fr}.sidebar{top:auto}
  .preview-card{transform:none}.gate-copy{text-align:right}
}
@media(max-width:560px){
  .brand b{font-size:16px}.logo{width:39px;height:39px;border-radius:11px}
  .hero{padding-top:55px}.hero h1{font-size:42px}.hero-copy>p{font-size:14px}
  .auth-card{border-radius:15px;padding:23px 18px}
  .dash-head{padding-bottom:31px}.dash-head-inner{align-items:center}.dash-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}
  .metric{padding:15px}.orders-panel{padding:15px 12px}.modal-box{border-radius:14px}
}

@media(prefers-color-scheme:dark){html{color-scheme:light}}
@media(prefers-reduced-motion:reduce){.order,.quick button,.filters button,.operations-grid button{transform:none!important}}

/* Logged-in workspace — dedicated application shell */
body.staff-session{background:#f4f6fa}
body.staff-session .site-header,body.staff-session .site-footer{display:none}
body.staff-session #staffView{min-height:100vh;padding:0;background:#f4f6fa}
body.staff-session .dashboard{min-height:100vh;background:#f4f6fa}
.app-shell{min-height:100vh;display:grid;grid-template-columns:276px minmax(0,1fr);direction:rtl}
.app-rail{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  padding:24px 17px 18px;
  color:#fff;
  background:
    radial-gradient(circle at 10% 5%,rgba(37,99,235,.26),transparent 28%),
    linear-gradient(180deg,#111a2e,#17243e 56%,#111c32);
  border-left:1px solid rgba(255,255,255,.06);
  box-shadow:-12px 0 40px rgba(17,26,46,.09);
  z-index:20;
}
.rail-brand{display:flex;align-items:center;gap:12px;padding:0 7px 22px;border-bottom:1px solid rgba(255,255,255,.09)}
.rail-logo{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#3e7cf2,#2558c8);box-shadow:0 10px 22px rgba(37,99,235,.3);font-size:20px;font-weight:900}
.rail-brand b,.rail-brand small,.rail-user b,.rail-user small{display:block}.rail-brand b{font-size:18px}.rail-brand small{margin-top:3px;color:rgba(255,255,255,.53);font-size:10px}
.rail-user{display:flex;align-items:center;gap:11px;margin:17px 0 8px;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.045)}
.rail-user .avatar{width:38px;height:38px;flex:0 0 auto;border-radius:10px;font-size:14px}.rail-user b{font-size:12px}.rail-user small{margin-top:4px;color:rgba(255,255,255,.5);font-size:9px;line-height:1.5}
.rail-scroll{flex:1;overflow:auto;padding:5px 0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.app-rail .side-section{padding:9px 0}.app-rail .side-section+.side-section{margin-top:4px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08)}
.app-rail .side-title{padding:0 10px;margin-bottom:8px;color:rgba(255,255,255,.38);font-size:9px;letter-spacing:.08em}
.app-rail .quick,.app-rail .filters{gap:3px}
.app-rail .quick button,.app-rail .filters button{
  min-height:41px;
  padding:8px 11px;
  color:rgba(255,255,255,.68);
  background:transparent;
  border:1px solid transparent;
  border-radius:8px;
  font-size:11px;
}
.app-rail .quick button:hover,.app-rail .filters button:hover{color:#fff;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.06);transform:none}
.app-rail .quick button.primary{color:#fff;background:linear-gradient(135deg,#2563eb,#3978f2);border-color:transparent;box-shadow:0 8px 22px rgba(37,99,235,.22)}
.app-rail .quick button b,.app-rail .filters button b{min-width:23px;padding:3px 7px;border-radius:7px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.75);text-align:center}
.app-rail .filters button.active{color:#fff;background:rgba(37,99,235,.18);border-color:rgba(99,145,255,.18)}
.app-rail .filters button.active b{background:#2563eb;color:#fff}
.rail-footer{display:grid;grid-template-columns:1fr;gap:5px;padding-top:13px;border-top:1px solid rgba(255,255,255,.09)}
.rail-logout{width:100%;min-height:41px;display:flex;align-items:center;justify-content:space-between;padding:8px 11px;border:0;border-radius:8px;background:transparent;color:rgba(255,255,255,.65);font-size:11px;font-weight:800;box-shadow:none}
.rail-logout:hover{background:rgba(255,255,255,.07);color:#fff;transform:none}

.app-main{min-width:0;background:#f4f6fa}
.app-topbar{min-height:126px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:27px clamp(25px,3vw,48px) 25px;background:rgba(255,255,255,.9);border-bottom:1px solid #e5e9f1;position:relative;z-index:12}
.workspace-kicker,.panel-kicker{display:block;margin-bottom:5px;color:#2563eb;font-size:9px;font-weight:900;letter-spacing:.08em}
.app-topbar h1{margin:0 0 7px;color:#17243e;font-size:26px;letter-spacing:-.045em}.app-topbar p{margin:0;color:#7b8497;font-size:11px}.topbar-actions{display:flex;align-items:center;gap:8px}
.notification-trigger{width:42px;height:42px;display:grid;place-items:center;position:relative;flex:0 0 auto;border:1px solid #dce3ef;border-radius:11px;background:#fff;color:#344a6b;box-shadow:0 5px 16px rgba(23,36,62,.06);cursor:pointer;transition:.18s ease}
.notification-trigger:hover,.notification-trigger[aria-expanded="true"]{border-color:#b7c8e7;background:#f3f7ff;color:#2563eb;transform:translateY(-1px)}
.notification-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-trigger b{position:absolute;top:-6px;left:-6px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#9f3f5f;color:#fff;font-size:8px;font-weight:900;box-shadow:0 4px 10px rgba(159,63,95,.3)}
.notification-center{position:absolute;top:calc(100% - 14px);left:clamp(18px,3vw,48px);width:min(390px,calc(100vw - 36px));max-height:min(580px,calc(100vh - 145px));display:none;overflow:hidden;border:1px solid #dfe5ef;border-radius:15px;background:#fff;box-shadow:0 26px 70px rgba(17,26,46,.22);direction:rtl;z-index:50}
.notification-center.open{display:block;animation:notification-in .18s ease both}
.notification-center>header{display:flex;align-items:center;justify-content:space-between;padding:18px 19px 15px;border-bottom:1px solid #e8ecf3;background:linear-gradient(180deg,#fff,#f9fbff)}
.notification-center>header span{display:block;margin-bottom:3px;color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.07em}.notification-center>header h2{margin:0;color:#17243e;font-size:17px}.notification-center>header em{padding:5px 9px;border-radius:999px;background:#fff0f5;color:#9f3f5f;font-size:9px;font-style:normal;font-weight:800}
.notification-feed{max-height:460px;overflow:auto;padding:8px}.notification-item{width:100%;display:grid;grid-template-columns:8px 1fr;gap:10px;padding:12px 10px;border:0;border-bottom:1px solid #edf0f5;background:#fff;color:#344054;text-align:right;cursor:pointer}.notification-item:last-child{border-bottom:0}.notification-item:hover{border-radius:9px;background:#f5f8ff}.notification-item>i{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#2563eb;box-shadow:0 0 0 4px #e8f0ff}.notification-item>span{display:grid;gap:4px}.notification-item b{font-size:11px;color:#17243e}.notification-item small{font-size:9px;line-height:1.75;color:#667085}.notification-item time{font-size:8px;color:#98a2b3}.notification-item.read{opacity:.64}.notification-item.read>i{background:#c2c9d5;box-shadow:none}
.notification-empty{min-height:230px;display:grid;place-items:center;align-content:center;gap:7px;padding:30px;text-align:center}.notification-empty>span{width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#f0f4fb;color:#667a9d}.notification-empty svg{width:22px;fill:none;stroke:currentColor;stroke-width:1.8}.notification-empty b{color:#344054;font-size:12px}.notification-empty small{color:#98a2b3;font-size:9px}
@keyframes notification-in{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}
.app-content{width:min(1320px,calc(100% - 52px));margin:0 auto;padding:24px 0 55px}
.app-content .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.app-content .metric{min-height:112px;padding:19px 20px 17px;border-radius:12px;box-shadow:0 6px 22px rgba(23,36,62,.055)}
.app-content .metric:before{content:"↻";position:absolute;left:18px;top:18px;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#edf3ff;color:#2563eb;font-size:15px;font-weight:900}
.app-content .metric:nth-child(2):before{content:"◷";background:#fff0f5;color:#9f3f5f}.app-content .metric:nth-child(3):before{content:"!"}.app-content .metric:nth-child(4):before{content:"⚑"}.app-content .metric:nth-child(3):before,.app-content .metric:nth-child(4):before{background:#fff0ee;color:#b42318}
.app-content .metric small{font-size:11px;color:#667085}.app-content .metric b{font-size:30px;margin:10px 0 4px}.app-content .metric span{font-size:9px;color:#98a2b3}
.app-content .operations-board{margin:14px 0 18px;padding:19px 20px;border-radius:13px;background:linear-gradient(115deg,#17243e,#20375f 72%,#263e68)}
.app-content .operations-head{margin-bottom:13px}.app-content .operations-head h2{font-size:20px}.app-content .operations-grid{gap:8px}.app-content .operations-grid button{min-height:78px;padding:12px 14px}.app-content .operations-grid b{font-size:24px}
.app-content .orders-panel{padding:0;border-radius:13px;overflow:hidden;box-shadow:0 8px 26px rgba(23,36,62,.06)}
.app-content .orders-toolbar{padding:20px 22px 17px;align-items:center;background:#fff}.app-content .orders-toolbar h2{font-size:20px;margin-bottom:3px}.app-content .orders-toolbar p{font-size:10px}
.search-wrap{width:min(330px,100%);position:relative}.search-wrap>span{position:absolute;right:13px;top:50%;transform:translateY(-52%);color:#8c97aa;font-size:18px;z-index:1}.search-wrap .search{width:100%;padding-right:39px;background:#f7f9fc;border-color:#e2e7f0}
.app-content .order-list{padding:14px 16px 18px;background:#f8fafe}.app-content .order{border-radius:10px;background:#fff}.app-content .order-summary{padding:16px 17px}.app-content .order-details{background:#f7f9fc}

/* Customer accounts use the same cleaner product language. */
body[data-view="track"] .customer-portal{width:min(1240px,calc(100% - 38px));margin:28px auto 60px}
.customer-portal .portal{border-radius:14px;box-shadow:0 16px 50px rgba(23,36,62,.11)}
.customer-portal .portal-head{min-height:105px;padding:23px 28px;background:linear-gradient(115deg,#111a2e,#1d3153);position:relative}
.customer-portal .notification-trigger{border-color:rgba(255,255,255,.15);background:rgba(255,255,255,.1);color:#fff;box-shadow:none}.customer-portal .notification-trigger:hover,.customer-portal .notification-trigger[aria-expanded="true"]{background:rgba(255,255,255,.18);color:#fff}.customer-portal .notification-center{top:82px;left:24px;color:#344054}
.customer-portal .portal-head small{font-size:10px}.customer-portal .portal-head b{font-size:22px}.customer-portal .portal-body{padding:24px 28px 32px;background:#f8fafe}
.customer-portal .finance article{background:#fff;box-shadow:0 5px 18px rgba(23,36,62,.04)}
.customer-portal .customer-toolbar{padding:14px;border:1px solid #e3e8f2;border-radius:11px;background:#fff}
.customer-portal .customer-order{background:#fff;box-shadow:0 5px 18px rgba(23,36,62,.04)}

@media(max-width:1050px){
  .app-shell{grid-template-columns:236px minmax(0,1fr)}
  .app-content{width:calc(100% - 34px)}
  .app-content .metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .app-shell{display:block}.app-rail{position:relative;width:100%;height:auto;padding:14px}.rail-brand{padding-bottom:13px}.rail-user{margin:12px 0}.rail-scroll{overflow:visible}.app-rail .side-section{padding:7px 0}.app-rail .quick,.app-rail .filters{display:flex;overflow:auto;padding-bottom:3px;scrollbar-width:none}.app-rail .quick button,.app-rail .filters button{flex:0 0 auto;width:auto;gap:14px}.rail-footer{grid-template-columns:1fr}
  .app-topbar{min-height:auto;padding:22px 18px}.app-topbar h1{font-size:22px}.app-topbar p{display:none}.app-content{width:calc(100% - 24px);padding-top:14px}.app-content .operations-grid{grid-template-columns:1fr 1fr}.app-content .orders-toolbar{align-items:stretch;flex-direction:column}.search-wrap{width:100%}
}
@media(max-width:480px){
  .app-content .metrics{grid-template-columns:1fr 1fr;gap:7px}.app-content .metric{min-height:100px;padding:15px}.app-content .metric:before{width:27px;height:27px;left:13px;top:13px}.app-content .metric b{font-size:25px}.app-content .operations-board{padding:16px 12px}.app-content .operations-grid button{padding:10px}.app-content .orders-panel{border-radius:11px}.customer-portal .portal-head,.customer-portal .portal-body{padding-inline:16px}
}

/* Full workspace pages for primary tasks — modals remain for short confirmations only. */
.workspace-screen{min-height:100vh;background:#f4f6fa;animation:workspace-in .2s ease both}
.workspace-screen-head{min-height:154px;padding:25px clamp(25px,3vw,48px) 28px;background:#fff;border-bottom:1px solid #e3e8f2}
.workspace-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 24px;padding:0;border:0;background:transparent;color:#667085;font-size:11px;font-weight:600}
.workspace-back:hover{color:#2563eb}.workspace-back span{width:27px;height:27px;display:grid;place-items:center;border:1px solid #dce2ec;border-radius:8px;background:#f8fafd;color:#344054}
.workspace-screen-head h1{margin:0 0 7px;color:#17243e;font-size:28px;font-weight:700;letter-spacing:-.045em}.workspace-screen-head p{margin:0;color:#7d8799;font-size:11px;font-weight:400}
.workspace-screen-body{width:min(1160px,calc(100% - 52px));margin:0 auto;padding:25px 0 60px}
.workspace-screen:not(.wide) .workspace-screen-body{max-width:920px}
.workspace-screen-body>form,.workspace-screen-body>.list{padding:25px;border:1px solid #e1e6ef;border-radius:13px;background:#fff;box-shadow:0 7px 24px rgba(23,36,62,.055)}
.workspace-screen-body form{gap:18px}.workspace-screen-body .form-grid{gap:18px 16px;padding:0;background:transparent}.workspace-screen-body #orderForm>.form-grid,.workspace-screen-body #reviewOrderForm>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace-screen-body label{gap:8px;color:#475467;font-size:12px;font-weight:600}.workspace-screen-body label>small{font-weight:400}
.workspace-screen-body input,.workspace-screen-body select,.workspace-screen-body textarea{min-height:49px;padding:12px 14px;font-size:13px;font-weight:400}.workspace-screen-body textarea{min-height:108px}
.workspace-screen-body .btn,.workspace-screen-body .mini-btn{font-weight:700}.workspace-screen-body form>.btn[type="submit"]{justify-self:start;min-width:210px;margin-top:6px}
.workspace-screen-body .product-rows{gap:16px}.workspace-screen-body .product-row{padding:19px;border-radius:11px;background:#f8faff}.workspace-screen-body .product-row-head h3{font-size:14px;font-weight:700}
.workspace-screen-body .list-card{min-height:68px;padding:15px 17px;background:#fff}.workspace-screen-body .list-card b{font-size:12px;font-weight:650}.workspace-screen-body .list-card small{font-weight:400}
.workspace-screen-body .section-divider{margin:25px 0}.workspace-screen-body form h3{margin:0 0 4px;color:#17243e;font-size:18px;font-weight:700}
.workspace-screen-body #orderForm>.mini-btn,.workspace-screen-body #reviewOrderForm>.mini-btn{justify-self:stretch;min-height:44px;border-style:dashed;color:#2556ba;background:#f5f8ff}
.workspace-screen-body .decision-actions{justify-content:flex-start}.workspace-screen-body .decision-actions .btn{flex:0 1 280px}
.workspace-screen-body .category-field-row{padding:11px;border:1px solid #e2e7f0;background:#f8fafd}
@keyframes workspace-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .workspace-screen{min-height:auto}.workspace-screen-head{min-height:auto;padding:20px 17px}.workspace-back{margin-bottom:18px}.workspace-screen-head h1{font-size:23px}.workspace-screen-body{width:calc(100% - 24px);padding:14px 0 35px}.workspace-screen-body>form,.workspace-screen-body>.list{padding:16px 13px}.workspace-screen-body .form-grid{grid-template-columns:1fr;gap:13px}.workspace-screen-body .form-grid .full-row{grid-column:auto}.workspace-screen-body form>.btn[type="submit"]{width:100%;justify-self:stretch}.workspace-screen-body .decision-actions .btn{flex:1}
}
@media(min-width:761px) and (max-width:1050px){.workspace-screen-body #orderForm>.form-grid,.workspace-screen-body #reviewOrderForm>.form-grid{grid-template-columns:1fr 1fr}}

/* Item accessories and signed delivery */
.accessory-editor{border:1px solid #dce4f0;border-radius:12px;background:#f8faff;overflow:hidden}.accessory-question{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px}.accessory-question>div{display:grid;gap:4px}.accessory-question b{color:#253858;font-size:11px}.accessory-question small{color:#7d8799;font-size:9px}.accessory-question select{width:100px;min-height:40px!important}.accessory-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px 16px;border-top:1px solid #e5eaf2}.accessory-choice,.accessory-other{min-height:48px!important;display:grid!important;grid-template-columns:auto 1fr 70px;align-items:center;gap:9px!important;padding:8px 10px;border:1px solid #e2e7f0;border-radius:9px;background:#fff}.accessory-choice input[type=checkbox],.accessory-other input[type=checkbox]{width:18px;height:18px}.accessory-choice input[type=number],.accessory-other input{min-height:34px!important;padding:6px 8px!important}.accessory-other{grid-template-columns:auto 80px 1fr 70px 32px}.accessory-options>[data-custom-accessories]{display:grid;grid-column:1/-1;gap:8px}.accessory-options>[data-add-custom-accessory]{grid-column:1/-1;justify-self:start}.item-accessories{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0;padding:10px 12px;border:1px solid #f1d4dc;border-radius:9px;background:#fff7fa}.item-accessories>b{color:#8f3654;font-size:9px}.item-accessories span{padding:4px 7px;border-radius:6px;background:#f7e4eb;color:#84334f;font-size:8px}.accessory-action{border-color:#e8c5d1!important;background:#fff7fa!important;color:#8f3654!important}.accessory-alert{display:grid;gap:5px;padding:14px 15px;border-right:4px solid #9f3f5f;background:#fff5f8;color:#6f2942}.accessory-alert b{font-size:11px}.accessory-alert span{font-size:9px}.batch-accessory-list{display:grid;gap:8px;margin:14px 0}.batch-accessory-list>label{display:grid;grid-template-columns:auto 1fr 85px;align-items:center;gap:10px;padding:10px;border:1px solid #e1e6ef;border-radius:9px}.batch-accessory-list input[type=checkbox]{width:19px;height:19px}.batch-accessory-list input[type=number]{min-height:40px}.batch-accessory-list .custom-accessory{grid-template-columns:auto 1fr 85px}.delivery-accessories{margin:0 0 18px;border:2px solid #c05577;border-radius:13px;background:#fff4f7;overflow:hidden;box-shadow:0 8px 25px rgba(159,63,95,.1)}.delivery-accessories>header{display:flex;align-items:center;gap:11px;padding:15px 16px;background:#9f3f5f;color:#fff}.delivery-accessories>header>span{font-size:21px}.delivery-accessories>header div{display:grid;gap:3px}.delivery-accessories>header b{font-size:12px}.delivery-accessories>header small{font-size:8px;color:#f8dce6}.delivery-accessories>label{min-height:48px!important;display:flex!important;align-items:center;gap:11px!important;padding:10px 15px;border-bottom:1px solid #f0cfda;color:#6e2d44;font-size:10px}.delivery-accessories>label:last-child{border-bottom:0}.delivery-accessories input{width:20px!important;height:20px!important}.signature-field{display:grid;gap:8px;margin-top:4px}.signature-field>div{display:flex;align-items:center;justify-content:space-between}.signature-field>div b{color:#344054;font-size:11px}.signature-field button{border:0;background:transparent;color:#9f3f5f;font-size:9px;font-weight:800}.signature-field canvas{width:100%;height:190px;display:block;border:2px dashed #b8c4d6;border-radius:11px;background:#fff;touch-action:none}.signature-field small{color:#8b95a7;font-size:8px}.category-accessories-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.category-accessories-head h3{margin-bottom:4px!important}.category-accessories-head p{margin:0;color:#7d8799;font-size:9px}.category-accessories{display:grid;gap:8px;margin:12px 0 18px}.category-accessory-row{display:grid;grid-template-columns:1fr 1fr 90px 34px;gap:8px;padding:9px;border:1px solid #e2e7f0;border-radius:9px;background:#f8fafd}.category-accessory-row input{min-height:42px!important}.category-accessory-row .remove{border:0;border-radius:7px;background:#fff0f0;color:#b42318}
@media(max-width:650px){.accessory-options{grid-template-columns:1fr}.accessory-other{grid-template-columns:auto 1fr 70px 32px}.accessory-other>span{grid-column:2}.accessory-other [data-other-label]{grid-column:2}.category-accessory-row{grid-template-columns:1fr 80px 34px}.category-accessory-row input:nth-child(2){grid-column:1/-1}.category-accessories-head{align-items:stretch;flex-direction:column}.signature-field canvas{height:165px}}

/* System settings and simplified customer portal */
.settings-section{display:grid;gap:18px;padding:22px;border:1px solid #dfe5ef;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(17,26,46,.04)}
.settings-section+.settings-section{margin-top:4px}.settings-section-head>span{color:#2563eb;font-size:9px;font-weight:900}.settings-section-head h3{margin:5px 0;color:#17243e;font-size:17px}.settings-section-head p{margin:0;color:#748096;font-size:10px;line-height:1.8}.setting-toggle{display:flex;align-items:flex-start;gap:13px;padding:16px;border:1px solid #ced8e8;border-radius:13px;background:#f7f9fd;cursor:pointer}.setting-toggle>input{width:20px;min-height:20px;margin-top:2px;accent-color:#2563eb}.setting-toggle>span{display:grid;gap:5px}.setting-toggle b{color:#17243e;font-size:11px}.setting-toggle small{color:#748096;font-size:9px;line-height:1.7}.portal-guide{display:flex;align-items:center;gap:13px;margin-bottom:18px;padding:15px 17px;border:1px solid #dbe5f5;border-radius:13px;background:linear-gradient(135deg,#f4f8ff,#fff)}.portal-guide>span{width:35px;height:35px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#2563eb;color:#fff;font-size:9px;font-weight:900;box-shadow:0 8px 18px rgba(37,99,235,.2)}.portal-guide>div{display:grid;gap:4px}.portal-guide b{color:#17243e;font-size:11px}.portal-guide small{color:#748096;font-size:9px;line-height:1.7}.warning-state>span{background:#fff0f4!important;color:#9f3f5f!important}.success-state>small{display:block;margin:-4px 0 15px;color:#748096;font-size:9px}
@media(max-width:560px){.settings-section{padding:16px}.setting-toggle{padding:13px}.portal-guide{align-items:flex-start}}
.customer-active #landing,
.customer-active .site-footer,
.customer-active .site-header nav{display:none!important}
.customer-active #trackView{display:block!important}
.customer-active .track-layout{display:none!important}
