:root{--blue:#0888f5;--top:#3d97bd;--side:#26323d;--side2:#202a33;--bg:#f4f7fa;--card:#fff;--line:#dce5ec;--text:#21303c;--muted:#6e7e89;--green:#20b867;--yellow:#f7b600;--red:#e73b51;--teal:#1fa6b8;--ink:#062541;font-family:Arial,Helvetica,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}.login{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#e9f3f8,#fff 55%,#dfeaf1)}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);box-shadow:0 14px 35px rgba(31,47,60,.18);border-radius:4px;overflow:hidden}.login-brand,.brand{display:flex;align-items:center;gap:10px}.login-brand{padding:16px 18px;background:var(--top);color:#fff;font-weight:700}.logo{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#fff;color:var(--blue);font-weight:700;font-size:11px}.login form{display:grid;gap:12px;padding:20px}.shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.sidebar{min-height:100vh;background:linear-gradient(180deg,var(--side),var(--side2));color:#e4edf3;position:sticky;top:0}.brand{height:42px;padding:0 16px;background:var(--blue);color:#fff;font-weight:700}.brand .logo{width:24px;height:24px}.nav{padding:12px 0}.nav-title{margin:14px 18px 7px;color:#becbd5;font-size:12px}.nav button{width:100%;min-height:34px;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:inherit;padding:8px 18px;text-align:left}.nav button:hover,.nav button.active{background:var(--blue);color:#fff}.nav .subtab{min-height:30px;padding-left:52px;font-size:12px;background:rgba(255,255,255,.03);color:#cfdbe3}.nav .subtab.active{background:#0a75ce;color:#fff}.nav-icon{width:18px;text-align:center}.main{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{height:42px;display:flex;justify-content:space-between;align-items:center;padding:0 20px;color:#fff;background:var(--top)}.user-chip{display:flex;align-items:center;gap:7px;border:0;border-radius:13px;background:#fff;color:#26323d;padding:3px 9px 3px 4px}.avatar{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#ffd7bb;color:#743918;font-weight:700}.content{flex:1;padding:20px}h1{font-size:clamp(24px,3vw,34px);line-height:1.1;margin:0 0 16px;letter-spacing:0}h2{margin:0;font-size:18px}.divider{height:1px;background:var(--line);margin:-4px 0 16px}.stats{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:16px;margin-bottom:16px}.stat{min-height:74px;display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:12px;border:1px solid var(--line);background:#fff;box-shadow:0 5px 12px rgba(32,42,51,.12);border-radius:3px;padding:10px 14px}.stat .box{width:48px;height:48px;display:grid;place-items:center;color:#fff;border-radius:3px;font-size:22px}.stat strong{font-size:18px}.grid{display:grid;gap:16px}.two{grid-template-columns:1.1fr .9fr}.panel{background:#fff;border:1px solid var(--line);border-radius:3px;box-shadow:0 3px 10px rgba(32,42,51,.08);overflow:hidden}.panel-head{min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.body{padding:14px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px}.field{display:grid;gap:5px}.wide{grid-column:span 2}.full{grid-column:1/-1}label{color:#465764;font-weight:700;font-size:12px}input,select,textarea{width:100%;min-height:34px;border:1px solid #ccd8e0;border-radius:3px;padding:7px 9px;background:#fff;color:var(--text)}textarea{min-height:70px;resize:vertical}.btn{min-height:34px;border:1px solid transparent;border-radius:3px;background:#edf3f7;color:#243440;padding:8px 11px}.btn.primary{background:var(--blue);color:#fff}.btn.green{background:var(--green);color:#fff}.btn.red{background:var(--red);color:#fff}.btn.ghost{background:#fff;border-color:#cfd9e1}.table-wrap{overflow:auto}table{width:100%;min-width:850px;border-collapse:collapse}th,td{padding:10px 12px;border-bottom:1px solid #edf2f5;text-align:left;vertical-align:top}th{background:#f8fafc;color:#40515e;font-size:12px}.badge{display:inline-flex;align-items:center;min-height:22px;border-radius:3px;padding:2px 7px;font-weight:700;background:#edf3f7;color:#26323d;white-space:nowrap}.badge.green{color:#17683e;background:#def7e9}.badge.yellow{color:#775700;background:#fff1bd}.badge.red{color:#8a2030;background:#ffe0e5}.badge.blue{color:#075184;background:#dff1ff}.message{margin:0 14px 14px;padding:10px 12px;border:1px solid #c8e5ef;border-radius:3px;color:#25576d;background:#edf9fe}.message.error{border-color:#ffcbd4;color:#8a2030;background:#fff0f2}.empty{padding:26px 14px;text-align:center;color:var(--muted)}.actions{display:flex;gap:6px;flex-wrap:wrap}.footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);color:#778490;background:#fff;padding:12px 20px;font-size:12px}.tiny{color:var(--muted);font-size:12px}@media(max-width:1050px){.shell{grid-template-columns:1fr}.sidebar{min-height:auto;position:static}.nav{display:grid;grid-template-columns:repeat(2,1fr);padding:6px}.nav-title{grid-column:1/-1}.stats,.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:650px){.content{padding:14px}.stats,.two,.form-grid,.nav{grid-template-columns:1fr}.wide{grid-column:1/-1}.topbar-title{display:none}.footer{flex-direction:column}}
[hidden]{display:none!important}
table th,table td{vertical-align:middle}.actions{align-items:center}
.profile-menu{position:relative}.profile-card{position:absolute;right:0;top:38px;z-index:10;width:250px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:4px;box-shadow:0 10px 24px rgba(32,42,51,.2);padding:12px}.profile-name{font-weight:700;font-size:15px;margin-bottom:8px}.profile-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #edf2f5}.profile-row span{color:var(--muted)}.profile-row strong{text-align:right}.profile-logout{width:100%;margin-top:10px}
.intake-record-section+.intake-record-section{margin-top:16px}
.nav-caret{margin-left:auto;font-size:13px;line-height:1;color:inherit}
.nav-badge{margin-left:auto;min-width:18px;height:18px;display:inline-grid;place-items:center;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-weight:700;padding:0 5px}.nav-badge+.nav-caret{margin-left:2px}
.btn.info{background:#dff1ff;border-color:#9fcfe8;color:#075184;font-weight:700}.payment-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.status-actions{display:inline-flex;gap:6px;flex-wrap:wrap;padding-left:10px;border-left:1px solid var(--line)}
.price-action{display:inline-flex;align-items:center;gap:6px}.price-action input{width:110px}
.link-btn{border:0;background:transparent;color:#075184;font-weight:700;text-align:left;text-decoration:underline;padding:0;min-height:auto}.link-btn:hover{color:#0888f5}
.uppercase-input{text-transform:uppercase}
.check-list{display:grid;gap:8px;border:1px solid var(--line);border-radius:3px;padding:10px;background:#fbfdfe}.check-row{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text)}.check-row input{width:auto;min-height:auto}.coverage-zone-list{display:grid;gap:8px}.coverage-zone-option{border:1px solid var(--line);border-radius:6px;background:#fbfdff;padding:9px 10px}.coverage-zone-check{align-items:center;margin-bottom:7px}.coverage-zone-check span{font-size:13px}.coverage-zone-pitstops{display:grid;gap:6px;margin-left:24px}.coverage-zone-group{display:grid;grid-template-columns:minmax(90px,130px) 34px minmax(0,1fr);gap:8px;align-items:start;color:var(--muted);font-size:12px;line-height:1.35}.coverage-zone-group span{font-weight:900;color:#4e5e70}.coverage-zone-group strong{display:inline-grid;place-items:center;min-width:26px;height:20px;border-radius:999px;background:#e8f5ff;color:#075184;font-size:11px}.coverage-zone-group div{overflow-wrap:anywhere;color:var(--text)}.coverage-zone-empty{margin-left:24px;color:var(--muted);font-size:12px}
.multi-select-filter{position:relative;min-height:34px;border:1px solid #ccd8e0;border-radius:3px;background:#fff;color:var(--text)}.multi-select-filter summary{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;cursor:pointer;list-style:none;font-weight:700}.multi-select-filter summary::-webkit-details-marker{display:none}.multi-select-filter summary::after{content:"⌄";color:#6b7b8b;font-weight:900}.multi-select-filter[open] summary::after{content:"⌃"}.multi-select-options{position:absolute;z-index:25;top:calc(100% + 4px);left:0;width:min(520px,calc(100vw - 48px));max-height:260px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:2px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 12px 26px rgba(32,42,51,.18);padding:8px}.multi-select-option{display:flex;align-items:center;gap:8px;min-height:32px;border-radius:4px;padding:6px 8px;color:var(--text);font-size:12px;font-weight:800}.multi-select-option:hover{background:#eef8fd}.multi-select-option input{width:auto;min-height:auto}.user-role-filter{width:100%}
.daily-checklist-start,.daily-checklist-panel,.daily-checklist-form{margin-bottom:14px}.daily-checklist-start-body{display:flex;align-items:center;justify-content:space-between;gap:14px}.daily-checklist-start-body strong{display:block;margin-bottom:4px;font-size:16px}.daily-checklist-start-body p{margin:0}.daily-checklist-meta{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px}.daily-checklist-meta span{display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:800}.daily-checklist-meta strong{display:block;overflow-wrap:anywhere}.daily-checklist-close-action{display:flex;align-items:end;justify-content:flex-end}.daily-checklist-close-action .btn{width:100%;max-width:220px}.daily-checklist-close-action .btn:disabled{opacity:.55;cursor:not-allowed}.daily-checklist-stats{margin-bottom:14px}.daily-checklist-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px}.daily-checklist-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;align-items:start;min-height:46px;border:0;border-radius:4px;background:transparent;padding:7px 8px;color:var(--text)}.daily-checklist-item:hover{background:#f8fafc}.daily-checklist-item:has(input:checked){background:#f7fbf9}.daily-checklist-item.disabled{color:var(--muted)}.daily-checklist-item input{width:16px;height:16px;min-height:0;margin:2px 0 0;padding:0}.daily-checklist-item span{min-width:0}.daily-checklist-item strong{display:block;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.daily-checklist-item small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.3;overflow-wrap:anywhere}.daily-checklist-actions,.daily-report-toolbar{display:flex;align-items:center;gap:10px;justify-content:flex-end}.daily-report-toolbar{justify-content:flex-start}.daily-checklist-actions .btn{min-width:190px}.daily-report-card{border:1px solid var(--line);border-radius:8px;background:#fbfdff;padding:10px}.daily-report-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.zs-outstanding-issues>.panel-head>div:first-child{display:grid;gap:3px}.zs-outstanding-groups{display:grid;gap:9px;padding:12px}.zs-outstanding-pitstop{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.zs-outstanding-pitstop>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:9px 12px;list-style:none;cursor:pointer;background:#f7faf9}.zs-outstanding-pitstop>summary::-webkit-details-marker{display:none}.zs-outstanding-pitstop>summary>div:first-child{display:grid;gap:2px}.zs-outstanding-pitstop>summary span{color:#607080;font-size:10px;font-weight:900;text-transform:uppercase}.zs-outstanding-pitstop>summary strong{color:#174e3b;font-size:15px}.zs-outstanding-pitstop>summary .actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.zs-outstanding-pitstop[open]>summary{border-bottom:1px solid var(--line);background:#eff8f4}.zs-outstanding-pitstop .table-wrap{border:0;border-radius:0}.zs-outstanding-pitstop table{min-width:1120px}
.daily-checklist-categories{display:grid;gap:0}.daily-checklist-category{border:0;border-radius:0;background:transparent;overflow:visible;padding:0 0 12px}.daily-checklist-category+.daily-checklist-category{border-top:1px solid #edf2f5;padding-top:12px}.daily-checklist-category-title{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;padding:0 2px 8px;border-bottom:0;background:transparent;color:#4e5e70;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.daily-checklist-category-title::-webkit-details-marker{display:none}.daily-checklist-category-title::after{content:"⌄";color:#6e7e89;font-size:12px;font-weight:900}.daily-checklist-category[open]>.daily-checklist-category-title::after{content:"⌃"}.daily-checklist-category-title .badge{margin-left:auto;letter-spacing:0;text-transform:none}.daily-checklist-category-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 18px;padding:0}.daily-checklist-category:not([open]){padding-bottom:8px}.daily-checklist-category .daily-checklist-item{margin:0}
.daily-complaint-action{display:grid;grid-template-columns:minmax(140px,180px) minmax(220px,1fr) auto;gap:8px;align-items:start;min-width:520px}.daily-complaint-action select,.daily-complaint-action textarea{min-height:32px}.daily-complaint-action textarea{height:64px}.daily-complaint-action .actions{flex-wrap:nowrap}
.daily-complaint-closed-action{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.daily-complaint-detail-modal{width:min(860px,calc(100vw - 32px))}.daily-complaint-detail-body{display:grid;gap:14px;max-height:calc(100vh - 150px);overflow:auto}.daily-complaint-detail-section{border:1px solid var(--line);border-radius:8px;background:#fbfdff;overflow:hidden}.daily-complaint-detail-section h3{margin:0;padding:10px 12px;border-bottom:1px solid var(--line);background:#f8fafc;font-size:14px}.daily-complaint-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.daily-complaint-detail-field{min-width:0;border:1px solid #edf2f5;border-radius:8px;background:#fff;padding:9px 10px}.daily-complaint-detail-field.wide{grid-column:1/-1}.daily-complaint-detail-field span{display:block;margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.daily-complaint-detail-field strong{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.4}
.management-issue-pitstop-groups{display:grid;gap:12px;padding:12px}.management-issue-pitstop-group{border:1px solid var(--line);border-radius:8px;background:#fbfdff;overflow:hidden}.management-issue-pitstop-group-head{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:10px 12px;background:#f3f8f6;cursor:pointer}.management-issue-pitstop-group-head::-webkit-details-marker{display:none}.management-issue-pitstop-group-head::after{content:"⌄";width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border:1px solid #d8e3ea;border-radius:999px;background:#fff;color:#607080;font-weight:900}.management-issue-pitstop-group[open]>.management-issue-pitstop-group-head{border-bottom:1px solid var(--line)}.management-issue-pitstop-group[open]>.management-issue-pitstop-group-head::after{content:"⌃"}.management-issue-pitstop-group-head>div:first-child{display:grid;gap:2px;min-width:0}.management-issue-pitstop-group-head>.actions{margin-left:auto}.management-issue-pitstop-group-head span{color:#477061;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.management-issue-pitstop-group-head strong{color:#174e3b;font-size:16px;overflow-wrap:anywhere}.management-issue-pitstop-group-head small{color:#657683;font-weight:700}.management-issue-pitstop-group .table-wrap{border:0}.management-issue-pitstop-group table{min-width:980px}.management-issue-pitstop-group tr:last-child td{border-bottom:0}
.management-issue-date-groups{display:grid;gap:12px;padding:12px;background:#f6f9fb}.management-issue-date-group{overflow:hidden;border:1px solid #dbe6ec;border-radius:8px;background:#fff}.management-issue-date-head{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dbe6ec;background:#eef5f8;padding:8px 12px}.management-issue-date-head>div{display:grid;gap:2px}.management-issue-date-head span{color:#5e7080;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.management-issue-date-head strong{color:#17384b;font-size:15px}.management-issue-category-groups{display:grid;gap:10px;padding:10px}.management-issue-category-group{overflow:hidden;border:1px solid #e2eaef;border-radius:7px;background:#fff}.management-issue-category-head{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-left:4px solid #1f8a70;background:#f7fbf9;padding:7px 10px}.management-issue-category-head strong{color:#17533f;font-size:13px}.management-issue-category-group .table-wrap{border-top:1px solid #e7eef2}.management-issue-category-group table{min-width:900px}.management-issue-action{display:grid;gap:6px;min-width:270px}.management-issue-action label{color:#506272;font-size:10px;font-weight:900;letter-spacing:.03em;text-transform:uppercase}.management-issue-action textarea{min-height:58px}
.management-issue-sm-accordion{display:grid;gap:10px;padding:12px}.management-issue-zs-accordion{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.management-issue-zs-summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:10px 12px;background:#f8fafc;cursor:pointer}.management-issue-zs-summary::-webkit-details-marker{display:none}.management-issue-zs-summary::after{content:"⌄";width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border:1px solid #d8e3ea;border-radius:999px;background:#fff;color:#607080;font-weight:900}.management-issue-zs-accordion[open]>.management-issue-zs-summary{border-bottom:1px solid var(--line);background:#f3f8f6}.management-issue-zs-accordion[open]>.management-issue-zs-summary::after{content:"⌃"}.management-issue-zs-summary>div:first-child{display:grid;gap:2px;min-width:0}.management-issue-zs-summary span{color:#477061;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.management-issue-zs-summary strong{color:#174e3b;font-size:16px;overflow-wrap:anywhere}.management-issue-zs-summary small{color:#657683;font-weight:700}.management-issue-zs-summary>.actions{margin-left:auto}.management-issue-zs-body{display:grid;gap:10px;padding:10px;background:#fbfdff}.management-issue-zs-body .management-issue-pitstop-group-head{background:#fff}
.management-issue-zs-metrics{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto}.management-issue-metric{min-height:28px;display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:6px;border:1px solid #d8e3ea;border-radius:999px;background:#fff;padding:4px 9px}.management-issue-metric small{font-size:10px;letter-spacing:0;text-transform:uppercase;color:#607080}.management-issue-metric strong{font-size:12px;color:#172b34}.management-issue-metric.is-red{border-color:#ffd0d9;background:#fff1f4}.management-issue-metric.is-yellow{border-color:#ffe6a0;background:#fff8df}.management-issue-metric.is-green{border-color:#c9eed9;background:#effbf4}.management-issue-metric.is-blue{border-color:#c8eaf4;background:#eef9fd}.management-issue-sm-pitstop-summary{display:grid;gap:7px}.management-issue-sm-pitstop-head,.management-issue-sm-pitstop-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(118px,.75fr) minmax(110px,.65fr) minmax(92px,.55fr) minmax(92px,.55fr) minmax(108px,.65fr) minmax(230px,1.35fr);gap:8px;align-items:start}.management-issue-sm-pitstop-head{padding:8px 10px;border-radius:8px;background:#eef4f6;color:#5d6c7f;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.management-issue-sm-pitstop-row{border:1px solid #e0eaf0;border-left-width:4px;border-radius:8px;background:#fff;padding:9px 10px}.management-issue-sm-pitstop-row.is-red{border-left-color:var(--red)}.management-issue-sm-pitstop-row.is-yellow{border-left-color:var(--yellow)}.management-issue-sm-pitstop-row.is-green{border-left-color:var(--green)}.management-issue-sm-pitstop-row>div{display:grid;gap:4px;min-width:0}.management-issue-sm-pitstop-row strong{color:#172b34}.management-issue-sm-pitstop-row small{color:#657683;font-size:11px;font-weight:700}.management-issue-sm-detail-cell>span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.management-issue-sm-detail{margin-top:2px}.management-issue-sm-detail summary{width:max-content;max-width:100%;border:1px solid #d8e3ea;border-radius:999px;background:#fff;padding:5px 10px;color:#174e3b;font-weight:900;cursor:pointer;list-style:none}.management-issue-sm-detail summary::-webkit-details-marker{display:none}.management-issue-sm-detail[open] summary{margin-bottom:8px;background:#f3f8f6}.management-issue-sm-detail .table-wrap{border:1px solid var(--line);border-radius:8px;background:#fff}.management-issue-sm-detail table{min-width:980px}
.management-issue-summary-cards{display:grid;gap:8px}.management-issue-summary-card{display:grid;gap:10px;border:1px solid #dfe9ef;border-left-width:4px;border-radius:8px;background:#fff;padding:10px}.management-issue-summary-card.is-red{border-left-color:var(--red)}.management-issue-summary-card.is-yellow{border-left-color:var(--yellow)}.management-issue-summary-card.is-blue{border-left-color:var(--teal)}.management-issue-summary-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.management-issue-summary-card-head>div:first-child{display:grid;gap:3px;min-width:0}.management-issue-summary-card-head span,.management-issue-summary-grid span,.management-issue-summary-note span{color:#5f7180;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.management-issue-summary-card-head strong{color:#172b34;font-size:14px;overflow-wrap:anywhere}.management-issue-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.management-issue-summary-grid>div{display:grid;gap:3px;border:1px solid #edf2f5;border-radius:8px;background:#fbfdff;padding:8px}.management-issue-summary-grid strong{color:#172b34;font-size:12px;line-height:1.3}.management-issue-summary-note{display:grid;gap:4px;border-top:1px solid #edf2f5;padding-top:8px}.management-issue-summary-note p{margin:0;color:#354956;font-weight:700;line-height:1.35}.management-issue-summary-action{border-top:1px solid #edf2f5;padding-top:8px}.management-issue-summary-action>summary{width:max-content;max-width:100%;border:1px solid #d8e3ea;border-radius:999px;background:#f8fafc;padding:5px 10px;color:#174e3b;font-weight:900;cursor:pointer;list-style:none}.management-issue-summary-action>summary::-webkit-details-marker{display:none}.management-issue-summary-action[open]>summary{margin-bottom:8px;background:#eef8f4}.management-issue-summary-action .management-issue-action{min-width:0}
.sm-monitoring-panel .panel-head{background:#fff}.sm-monitoring-accordion{display:grid;gap:10px;padding:12px}.sm-monitoring-zs-accordion{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.sm-monitoring-summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;padding:10px 12px;background:#f8fafc;cursor:pointer}.sm-monitoring-summary::-webkit-details-marker{display:none}.sm-monitoring-summary::after{content:"⌄";width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border:1px solid #d8e3ea;border-radius:999px;background:#fff;color:#607080;font-weight:900}.sm-monitoring-zs-accordion[open]>.sm-monitoring-summary{border-bottom:1px solid var(--line);background:#f3f8f6}.sm-monitoring-zs-accordion[open]>.sm-monitoring-summary::after{content:"⌃"}.sm-monitoring-summary>div:first-child{display:grid;gap:2px;min-width:0}.sm-monitoring-summary span{color:#477061;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-monitoring-summary strong{color:#174e3b;font-size:16px;overflow-wrap:anywhere}.sm-monitoring-summary small{color:#657683;font-weight:700}.sm-monitoring-metrics{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin-left:auto}.sm-monitoring-body{display:grid;gap:10px;padding:10px;background:#fbfdff}.sm-monitoring-next-action{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe9ef;border-radius:8px;background:#fff;padding:9px 10px}.sm-monitoring-next-action span{color:#5f7180;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-monitoring-next-action strong{color:#172b34}.sm-monitoring-pitstop-grid{display:grid;gap:7px}.sm-monitoring-pitstop-head,.sm-monitoring-pitstop-row{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(112px,.75fr) minmax(98px,.62fr) repeat(5,minmax(58px,.38fr)) minmax(82px,.48fr) minmax(112px,.62fr) minmax(210px,1.25fr);gap:8px;align-items:start}.sm-monitoring-pitstop-head{padding:8px 10px;border-radius:8px;background:#eef4f6;color:#5d6c7f;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-monitoring-pitstop-row{border:1px solid #e0eaf0;border-left-width:4px;border-radius:8px;background:#fff;padding:9px 10px}.sm-monitoring-pitstop-row.is-red{border-left-color:var(--red)}.sm-monitoring-pitstop-row.is-yellow{border-left-color:var(--yellow)}.sm-monitoring-pitstop-row.is-green{border-left-color:var(--green)}.sm-monitoring-pitstop-row>div{display:grid;gap:4px;min-width:0}.sm-monitoring-pitstop-row strong{color:#172b34}.sm-monitoring-pitstop-row small{color:#657683;font-size:11px;font-weight:700}.sm-monitoring-pitstop-row .badge{justify-self:start}
.sm-period-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fbfdff;padding:10px 14px}.sm-period-toolbar>span{color:#5f7180;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-period-tabs{display:flex;gap:6px;flex-wrap:wrap}.sm-period-tabs button{min-height:30px;border:1px solid #d8e3ea;border-radius:999px;background:#fff;color:#40515e;padding:5px 12px;font-size:12px;font-weight:900}.sm-period-tabs button.active{border-color:#bfe9d2;background:#eafaf1;color:#17683e}.sm-period-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.sm-period-summary>div{display:grid;gap:3px;border:1px solid #dfe9ef;border-radius:8px;background:#fff;padding:9px 10px}.sm-period-summary span{color:#5f7180;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-period-summary strong{color:#172b34;font-size:16px}.sm-period-summary small{color:#657683;font-size:11px;font-weight:700}
.sm-zs-focus-layout{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:14px;padding:12px;background:#f6f9fb}.sm-zs-focus-list{display:grid;align-content:start;gap:8px}.sm-zs-focus-detail{padding-top:14px}.sm-zs-selector{position:relative;width:100%;min-height:72px;display:grid;grid-template-columns:minmax(0,1fr) 116px 72px;gap:8px;align-items:center;border:1px solid #dfe9ef;border-left-width:4px;border-radius:8px;background:#fff;padding:10px;text-align:left}.sm-zs-selector.active{box-shadow:0 0 0 2px rgba(8,136,245,.18);background:#f3fbff;border-color:#9dd7f0}.sm-zs-selector.is-red{border-left-color:var(--red)}.sm-zs-selector.is-yellow{border-left-color:var(--yellow)}.sm-zs-selector.is-blue{border-left-color:var(--blue)}.sm-zs-selector.is-green{border-left-color:var(--green)}.sm-zs-selector span{display:grid;grid-template-rows:auto auto;gap:3px;min-width:0}.sm-zs-selector span i{position:absolute;left:10px;top:5px;width:max-content;border-radius:999px;background:#dff1ff;color:#075184;padding:2px 7px;font-style:normal;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.sm-zs-selector.active span{padding-top:10px}.sm-zs-selector strong{display:-webkit-box;min-height:30px;color:#173245;font-size:12px;line-height:1.25;overflow:hidden;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sm-zs-selector small{display:block;height:13px;color:#657683;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-zs-selector b,.sm-zs-selector em{display:grid;place-items:center;min-height:30px;border-radius:999px;font-style:normal;font-weight:900;white-space:nowrap}.sm-zs-selector b{background:#eef4f6;color:#174e3b;padding:0 10px}.sm-zs-selector em{background:#f8fafc;color:#172b34;font-size:12px;padding:0 8px}.sm-zs-focus-card{border:1px solid var(--line);border-top-width:4px;border-radius:8px;background:#fff;overflow:hidden}.sm-zs-focus-card.is-red{border-top-color:var(--red)}.sm-zs-focus-card.is-yellow{border-top-color:var(--yellow)}.sm-zs-focus-card.is-blue{border-top-color:var(--blue)}.sm-zs-focus-card.is-green{border-top-color:var(--green)}.sm-zs-focus-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);background:#fff;padding:14px}.sm-zs-focus-hero>div:first-child{display:grid;gap:3px;min-width:0}.sm-zs-focus-hero span{color:#477061;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-zs-focus-hero strong{color:#174e3b;font-size:20px;overflow-wrap:anywhere}.sm-zs-focus-hero small{color:#657683;font-weight:700}.sm-zs-rating-badge{width:132px;min-height:92px;display:grid;place-items:center;border-radius:8px;border:1px solid #dfe9ef;background:#f8fafc}.sm-zs-rating-badge strong{font-size:28px;line-height:1}.sm-zs-rating-badge.is-red{background:#fff1f4;border-color:#ffd0d9}.sm-zs-rating-badge.is-yellow{background:#fff8df;border-color:#ffe6a0}.sm-zs-rating-badge.is-blue{background:#eef9fd;border-color:#c8eaf4}.sm-zs-rating-badge.is-green{background:#effbf4;border-color:#c9eed9}.sm-zs-rating-tiles{display:grid;grid-template-columns:repeat(4,minmax(116px,1fr));gap:10px;min-width:min(680px,100%)}.sm-zs-rating-tile{--rating-color:var(--blue);display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;min-height:70px;border:1px solid #dfe9ef;border-left:4px solid var(--rating-color);border-radius:8px;background:#fff;padding:8px 10px;text-align:left}.sm-zs-rating-tile.active{box-shadow:0 0 0 2px rgba(8,136,245,.16)}.sm-zs-rating-tile.is-red{--rating-color:var(--red);background:#fff6f8}.sm-zs-rating-tile.is-yellow{--rating-color:var(--yellow);background:#fffaf0}.sm-zs-rating-tile.is-blue{--rating-color:var(--blue);background:#f2fbff}.sm-zs-rating-tile.is-green{--rating-color:var(--green);background:#f2fbf6}.sm-zs-rating-ring{display:grid!important;place-items:center;width:46px;height:46px;border-radius:50%;background:conic-gradient(var(--rating-color) var(--score-pct),#e7eef2 0);letter-spacing:0!important}.sm-zs-rating-ring b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--rating-color);font-size:14px;font-weight:900}.sm-zs-rating-tile span:last-child{display:grid;gap:1px;min-width:0}.sm-zs-rating-tile small{height:auto;color:#657683;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.sm-zs-rating-tile strong{display:block;min-height:0;color:var(--rating-color);font-size:18px;line-height:1.05;white-space:normal}.sm-zs-graph{display:grid;gap:8px;border:1px solid #dfe9ef;border-radius:8px;background:#fff;padding:10px}.sm-zs-graph-row{display:grid;grid-template-columns:90px minmax(120px,1fr) 56px 86px;gap:8px;align-items:center}.sm-zs-graph-row span{color:#5f7180;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.sm-zs-graph-row div{height:10px;border-radius:999px;background:#edf3f7;overflow:hidden}.sm-zs-graph-row i{display:block;height:100%;border-radius:999px;background:var(--green)}.sm-zs-graph-row.is-yellow i{background:var(--yellow)}.sm-zs-graph-row.is-red i{background:var(--red)}.sm-zs-graph-row.is-blue i{background:var(--blue)}.sm-zs-graph-row strong{color:#172b34;font-size:12px;text-align:right}.sm-zs-graph-row small{color:#657683;font-size:11px;font-weight:700}
@media(max-width:1200px){.management-issue-zs-summary{align-items:flex-start}.management-issue-zs-metrics{justify-content:flex-start}.management-issue-sm-pitstop-head{display:none}.management-issue-sm-pitstop-row{grid-template-columns:repeat(2,minmax(0,1fr))}.management-issue-sm-detail-cell{grid-column:1/-1}.management-issue-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.management-issue-zs-summary{display:grid}.management-issue-zs-summary::after{position:absolute;right:12px;top:12px}.management-issue-zs-accordion{position:relative}.management-issue-sm-pitstop-row,.management-issue-summary-grid{grid-template-columns:1fr}.management-issue-zs-metrics{padding-right:30px}.management-issue-summary-card-head{display:grid}.management-issue-summary-card-head .actions{justify-content:flex-start}}
@media(max-width:1200px){.sm-monitoring-summary{align-items:flex-start}.sm-monitoring-metrics{justify-content:flex-start}.sm-monitoring-pitstop-head{display:none}.sm-monitoring-pitstop-row,.sm-period-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-zs-focus-layout{grid-template-columns:1fr}.sm-zs-focus-detail{padding-top:0}.sm-zs-focus-list{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-zs-rating-tiles{grid-template-columns:repeat(2,minmax(116px,1fr));min-width:0}}@media(max-width:700px){.sm-monitoring-summary{display:grid}.sm-monitoring-summary::after{position:absolute;right:12px;top:12px}.sm-monitoring-zs-accordion{position:relative}.sm-monitoring-pitstop-row,.sm-period-summary,.sm-zs-focus-list,.sm-zs-rating-tiles{grid-template-columns:1fr}.sm-zs-selector{grid-template-columns:minmax(0,1fr);align-items:start;height:auto;min-height:96px}.sm-zs-selector b,.sm-zs-selector em{justify-self:start;min-width:112px}.sm-monitoring-metrics{padding-right:30px}.sm-monitoring-next-action,.sm-period-toolbar,.sm-zs-focus-hero{display:grid}.sm-zs-graph-row{grid-template-columns:1fr 54px}.sm-zs-graph-row div,.sm-zs-graph-row small{grid-column:1/-1}.sm-zs-graph-row strong{text-align:left}.sm-period-tabs{justify-content:flex-start}.sm-zs-rating-badge{width:100%;min-height:76px}}
.daily-opening-attention{display:grid;gap:8px}.daily-opening-attention ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.daily-opening-attention li{min-height:26px;display:flex;align-items:center;border:1px solid #ffcbd4;border-radius:6px;background:#fff;padding:5px 8px;font-weight:800}
.compact-table{border:1px solid var(--line);border-radius:3px;overflow:auto;background:#fff}.compact-table table{min-width:0}.compact-table th,.compact-table td{text-align:left;vertical-align:middle;white-space:normal}.compact-table th:first-child,.compact-table td:first-child{width:38px;text-align:center}.compact-table input[type=checkbox]{width:auto;min-height:auto}.tn-details-table{border:0}.tn-details-table th,.tn-details-table td{padding:6px 8px}.tn-select-table th,.tn-select-table td{padding:8px 10px}
.note-modal-body{white-space:pre-wrap;line-height:1.55;overflow-wrap:anywhere}
.sales-order-items-modal-table{display:grid;gap:0;min-width:min(620px,calc(100vw - 88px));white-space:normal}.sales-order-items-modal-head,.sales-order-items-modal-row{display:grid;grid-template-columns:70px minmax(220px,1fr) 110px;gap:14px;align-items:start}.sales-order-items-modal-head{border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;padding:0 0 8px}.sales-order-items-modal-row{border-bottom:1px solid #edf2f5;padding:10px 0}.sales-order-items-modal-row:last-child{border-bottom:0}.sales-order-items-modal-row span{white-space:pre-wrap;overflow-wrap:anywhere}.sales-order-items-modal-row strong:first-child{text-align:left}.sales-order-items-modal-row strong:last-child{text-align:right;color:#064e3b;white-space:nowrap}
.tn-compact-list{display:grid;gap:4px}.tn-compact-list span{font-weight:700;color:var(--text);overflow-wrap:anywhere}
.transfer-source-cell{display:grid;grid-template-columns:46px minmax(78px,1fr);align-items:center;gap:8px}.transfer-source-cell input{min-height:30px;padding:5px 7px}
.muted{color:var(--muted);margin:0}
.product-thumb{width:54px;height:54px;object-fit:cover;border:1px solid var(--line);border-radius:3px;background:#fff}.product-preview{width:120px;height:120px;object-fit:cover;border:1px solid var(--line);border-radius:3px;background:#fff}
.stock-profile-product{display:flex;align-items:center;gap:10px;padding:6px 0}.stock-profile-product+.stock-profile-product{border-top:1px solid #edf2f5}
.product-breakdown-table table{table-layout:fixed;min-width:760px}.product-breakdown-table th,.product-breakdown-table td{text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:normal}.product-breakdown-table td{line-height:1.25}
.sales-order-line{display:grid;grid-template-columns:minmax(240px,360px) 105px 95px 115px 120px auto;gap:8px;align-items:center;max-width:960px}.sales-order-line select,.sales-order-line input{width:100%}.sales-order-total{display:flex;align-items:center;gap:10px;margin-top:10px;font-weight:700}.sales-order-total span{color:var(--muted)}
.warranty-tn-lines{display:grid;gap:8px}.warranty-tn-line{display:grid;grid-template-columns:minmax(180px,1fr) 100px minmax(180px,1fr) auto;gap:8px;align-items:center;max-width:960px}.warranty-tn-line input{width:100%}.warranty-tn-line.no-action{grid-template-columns:minmax(180px,1fr) 100px minmax(180px,1fr)}
.transport-picker{position:relative}.transport-suggestions{display:none;position:absolute;z-index:25;top:100%;left:0;right:0;margin-top:4px;max-height:260px;overflow:auto;border:1px solid #cfd9e1;border-radius:3px;background:#fff;box-shadow:0 12px 26px rgba(32,42,51,.14);padding:4px}.transport-picker.open .transport-suggestions:not(:empty){display:block}.transport-suggestion-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(90px,.7fr);gap:14px;align-items:center;width:100%;min-height:32px;border:0;border-radius:2px;background:#fff;color:var(--text);padding:7px 9px;text-align:left}.transport-suggestion-row:hover,.transport-suggestion-row:focus{background:#edf7ff}.transport-suggestion-row span{min-width:0;overflow-wrap:anywhere}.transport-suggestion-empty{padding:10px;color:var(--muted)}
.prep-deliver-field .typeahead-list{display:none;margin-top:4px;max-height:180px;overflow:auto;border:1px solid #cfd9e1;border-radius:3px;background:#fff;box-shadow:0 6px 14px rgba(32,42,51,.1);padding:4px}.prep-deliver-field.open .typeahead-list:not(:empty){display:grid;gap:2px}.typeahead-option{display:grid;grid-template-columns:minmax(160px,1fr) minmax(90px,.55fr);gap:10px;align-items:center;width:100%;min-height:32px;border:0;border-radius:2px;background:#fff;color:var(--text);padding:7px 9px;text-align:left}.typeahead-option:hover,.typeahead-option:focus{background:#edf7ff}.typeahead-option span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.typeahead-empty{padding:10px;color:var(--muted)}
.transport-arrangement-form{display:grid;grid-template-columns:minmax(220px,360px) auto;gap:8px;align-items:end}.transport-arrangement-form .transport-picker{min-width:0}.transport-arrangement-form .field{gap:4px}.transport-arrangement-form .btn{white-space:nowrap}
.arrangement-toolbar{display:grid;grid-template-columns:minmax(150px,220px) minmax(260px,520px) auto;gap:10px;align-items:end;margin-bottom:10px}.shared-transport-toolbar{grid-template-columns:minmax(118px,145px) minmax(100px,125px) minmax(130px,170px) minmax(145px,180px) minmax(220px,.8fr) minmax(230px,1fr) minmax(230px,1fr)}.shared-transport-toolbar .field{min-width:0}.shared-transport-toolbar .transport-picker{grid-column:auto}.arrangement-save .btn{min-width:220px;width:100%}.arrangement-submit-row{display:flex;justify-content:flex-end;margin-top:12px}.arrangement-submit-row .btn{min-width:260px}.arrangement-select{display:inline-flex;align-items:center;gap:7px;font-weight:700;color:var(--text)}.arrangement-select input{width:16px;height:16px;min-height:0;padding:0;margin:0}
.arrangement-sections{display:grid;gap:14px}.arrangement-section{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.arrangement-section-head{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f8fbfd;border-bottom:1px solid var(--line)}.arrangement-section-head h2{font-size:15px;margin:0}.warehouse-check-head{padding:0}.warehouse-check-toggle{flex:1;min-height:44px;display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--text);text-align:left;padding:10px 12px;font-weight:700}.warehouse-check-toggle:hover,.warehouse-check-toggle:focus{background:#edf7ff}.warehouse-check-state{width:26px;height:26px;display:inline-grid;place-items:center;flex:0 0 26px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-weight:700}.warehouse-check-head>.badge{margin-right:12px}.warehouse-check-body[hidden]{display:none}.warehouse-check-section.is-collapsed .warehouse-check-head{border-bottom:0}
.table-wrap input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;vertical-align:middle}
.arrival-card{padding:14px;border-bottom:1px solid var(--line)}.arrival-card:last-child{border-bottom:0}.arrival-summary{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px;margin-bottom:14px}.arrival-summary div{min-width:0}.arrival-summary span{display:block;margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:700}.arrival-summary strong{display:block;overflow-wrap:anywhere}.arrival-form{display:grid;grid-template-columns:minmax(220px,360px) 1fr auto;gap:12px;align-items:end}.arrival-do-list{min-width:0}.arrival-do-list label{display:block;margin-bottom:5px}.arrival-tn-table table{min-width:640px}.arrival-empty{padding:14px;text-align:left}.arrival-save{align-self:end;white-space:nowrap}
@media(max-width:1050px){.arrival-summary{grid-template-columns:repeat(3,minmax(120px,1fr))}.arrival-form{grid-template-columns:1fr}.arrival-save{justify-self:start}}
@media(max-width:650px){.sales-order-line,.arrangement-toolbar{grid-template-columns:1fr;max-width:none}.arrival-summary{grid-template-columns:1fr}}
@media(max-width:1050px){.daily-checklist-meta,.daily-checklist-items,.daily-checklist-category-items{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-checklist-start-body{align-items:flex-start;flex-direction:column}.daily-checklist-start-body .btn{width:100%}}
@media(max-width:650px){.daily-checklist-meta,.daily-checklist-items,.daily-checklist-category-items{grid-template-columns:1fr}.daily-checklist-actions .btn,.daily-checklist-close-action .btn{width:100%;max-width:none}}
@media(max-width:650px){.daily-complaint-detail-grid{grid-template-columns:1fr}.daily-complaint-action{grid-template-columns:1fr;min-width:0}.daily-complaint-action .actions{flex-wrap:wrap}}
@media(max-width:650px){.sales-order-items-modal-table{min-width:0}.sales-order-items-modal-head,.sales-order-items-modal-row{grid-template-columns:48px minmax(0,1fr) 90px;gap:8px}}
.movement-stop-rows{display:grid;gap:8px;max-width:760px}.movement-stop-row{display:grid;grid-template-columns:96px minmax(220px,1fr);gap:8px;align-items:end}.movement-order{display:grid;gap:10px}.movement-stop-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:700}.movement-order .badge{min-height:20px}.movement-task-table{margin-top:6px}.movement-task-table .table-wrap{border:1px solid var(--line);border-radius:3px}.movement-task-table table{min-width:780px}.movement-task-table th,.movement-task-table td{padding:7px 8px}
@media(max-width:650px){.movement-stop-row{grid-template-columns:1fr}}
.movement-cards{display:grid;gap:16px;padding:14px;background:#f8fbfd}.movement-card{border:1px solid #cbd8e1;border-left:4px solid var(--top);border-radius:4px;background:#fff;box-shadow:0 5px 12px rgba(32,42,51,.1);overflow:hidden}.movement-card.body{padding:0}.movement-card>.movement-shared-grid{padding:14px 14px 0}.movement-card>.field.full{padding:0 14px 14px}.movement-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:#eef6fb;border-bottom:1px solid var(--line)}.movement-card-head span{display:block;margin-bottom:3px;color:var(--muted);font-size:12px;font-weight:700}.movement-card-head strong{display:block;font-size:15px;overflow-wrap:anywhere}.movement-card-status{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.movement-card-content{padding:14px}.transport-record-summary{cursor:pointer;list-style:none}.transport-record-summary::-webkit-details-marker{display:none}.movement-card-head .transport-record-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:24px;margin-bottom:0;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:12px;font-weight:800}.transport-record-toggle::after{content:"Expand"}.transport-record-details[open] .transport-record-toggle::after{content:"Collapse"}
@media(max-width:650px){.movement-card-head{display:grid;grid-template-columns:1fr}.movement-card-status{justify-content:flex-start}}
.driver-board{background:#f9fbfd}.driver-trip-card{display:grid;gap:12px;margin:12px;border:1px solid var(--line);border-radius:4px;background:#fff}.driver-trip-card+.driver-trip-card{margin-top:0}.driver-trip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.driver-trip-plate{font-size:22px;font-weight:700;line-height:1.1;color:var(--ink);overflow-wrap:anywhere}.driver-trip-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.driver-trip-grid input{font-weight:700;background:#fbfdfe}.driver-status-block{display:grid;gap:4px;border-left:4px solid var(--yellow);background:#fff8db;padding:10px 12px}.driver-status-block span{color:#775700;font-size:12px;font-weight:700}.driver-status-block strong{font-size:17px;overflow-wrap:anywhere}.driver-route-list{display:grid;gap:8px}.driver-route-stop{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid #e6edf2;border-radius:3px;padding:9px;background:#fbfdfe}.driver-route-stop strong{display:block;overflow-wrap:anywhere}.driver-route-stop small{display:block;margin-top:3px;color:var(--muted);overflow-wrap:anywhere}.driver-route-seq{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#dff1ff;color:#075184;font-weight:700}.driver-ack-board{display:grid;gap:10px}.driver-ack-board h3{margin:4px 0 0;font-size:15px}.driver-ack-location{border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.driver-ack-location-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fbfdfe;border-bottom:1px solid var(--line)}.driver-ack-location table{min-width:980px}.driver-ack-location .btn{white-space:nowrap}.driver-notes{margin:0;border-top:1px solid var(--line);padding-top:10px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:900px){.driver-trip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shared-transport-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.arrangement-save .btn,.arrangement-submit-row .btn{min-width:0}}
@media(max-width:650px){.driver-board .panel-head{align-items:flex-start}.driver-trip-card{margin:10px}.driver-trip-head{display:grid;grid-template-columns:1fr;gap:8px}.driver-trip-grid{grid-template-columns:1fr}.driver-route-stop{grid-template-columns:30px minmax(0,1fr);align-items:start}.driver-route-stop .badge{grid-column:2;justify-self:start}.driver-trip-plate{font-size:20px}.driver-status-block strong{font-size:15px}}
.stat .box.transport-stat-icon{border-radius:6px;color:#fff;box-shadow:inset 0 -8px 18px rgba(6,37,65,.16),0 5px 12px rgba(32,42,51,.14);font-size:0;overflow:hidden}.transport-stat-icon svg{width:31px;height:31px;display:block}.transport-stat-icon svg path,.transport-stat-icon svg circle,.transport-stat-icon svg rect{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.transport-stat-icon .soft-fill{fill:rgba(255,255,255,.16)}.transport-stat-icon .accent-fill{fill:var(--transport-icon-accent);stroke:var(--transport-icon-accent)}.transport-stat-icon .accent-stroke{stroke:var(--transport-icon-accent)}.transport-stat-icon .dark-stroke{stroke:#163247}

/* Visual refresh only: layout, color, spacing, and component polish. */
:root {
  --blue: #25c185;
  --top: #24c98d;
  --side: #ffffff;
  --side2: #ffffff;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #e7edf3;
  --text: #243044;
  --muted: #718096;
  --green: #25c185;
  --yellow: #f6b818;
  --red: #f04f64;
  --teal: #22b8c7;
  --ink: #172033;
  --shadow: 0 18px 42px rgba(31, 45, 61, 0.11);
  --shadow-soft: 0 10px 28px rgba(31, 45, 61, 0.08);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* POS-style Sales Order page. */
.pos-sales-page {
  display: grid;
  gap: 18px;
  width: min(100%, 1880px);
  margin: 0 auto;
}

.pos-sales-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.pos-sales-title h1 {
  margin-bottom: 4px;
}

.pos-sales-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.pos-sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.pos-sales-card,
.pos-sales-summary-card,
.pos-sales-records {
  min-width: 0;
}

.pos-sales-body {
  display: grid;
  gap: 16px;
}

.pos-sales-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px 16px;
}

.pos-sales-product-section {
  display: grid;
  gap: 10px;
}

.pos-sales-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-sales-line-head,
.pos-sales-lines .sales-order-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 82px 70px 106px 92px 88px 112px 76px;
  gap: 10px;
  align-items: center;
}

.pos-sales-line-head {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  background: #f8fafc;
  color: #5d6c7f;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-sales-lines {
  display: grid;
  gap: 0;
}

.pos-sales-lines .sales-order-line {
  max-width: none;
  min-height: 88px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  padding: 12px 14px;
}

.pos-sales-lines .sales-order-line:last-child {
  border-radius: 0 0 13px 13px;
}

.pos-sales-product-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.pos-sales-product-photo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #ddebf0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff, #eafaf1);
  color: #13905f;
  font-weight: 900;
  overflow: hidden;
}

.pos-sales-product-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pos-sales-product-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pos-sales-product-info strong,
.pos-sales-product-info span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-sales-product-info strong {
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.pos-sales-product-info span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.pos-sales-product-info .pos-sales-warranty-label {
  color: #15805a;
}

.pos-sales-product-info .pos-sales-warranty-label:empty {
  display: none;
}

.receipt-print-frame {
  position: fixed;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.pos-sales-product-info .standard-select-button {
  min-height: 36px;
  border-radius: 9px;
}

.pos-sales-stock-pill {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #e7faf1;
  color: #12885b;
  font-weight: 900;
}

.pos-sales-lines input {
  min-width: 0;
  text-align: center;
  font-weight: 800;
}

.pos-sales-lines [data-so-line-total] {
  color: #172033;
  background: #fbfdfe;
}

.pos-sales-remove {
  min-width: 0;
  padding-inline: 9px;
  color: #e73b51;
  border-color: #ffd0d9;
}

[data-remove-line],
[data-remove-warranty-tn-line],
[data-remove-so-line],
[data-remove-inventory-line],
.pos-sales-remove,
.inventory-remove-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.pos-sales-add-line {
  justify-self: start;
}

.pos-sales-submit {
  width: 100%;
}

.pos-sales-summary-stack {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.pos-sales-summary-card .panel-head {
  min-height: 54px;
}

.pos-sales-summary-body,
.pos-sales-payment-body {
  display: grid;
  gap: 12px;
}

.pos-sales-card-fields {
  border-top: 1px solid #e6edf5;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.pos-sales-slip-field {
  border-top: 1px solid #e6edf5;
  padding-top: 12px;
}

.pos-sales-slip-field input[type="file"] {
  border: 1px dashed #9fd9c3;
  background: #f5fffb;
  color: #172033;
  font-weight: 800;
  min-height: 46px;
  padding: 10px;
}

.pos-sales-slip-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #19b978, #16a3b8);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  margin-right: 10px;
  padding: 8px 12px;
}

.pos-sales-slip-name {
  color: #607087;
  display: block;
  margin-top: 6px;
}

.pos-summary-row,
.pos-summary-total,
.pos-sales-change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-summary-row span,
.pos-summary-input-row label,
.pos-summary-total span,
.pos-sales-change-row span {
  color: #526174;
  font-size: 12px;
  font-weight: 900;
}

.pos-summary-row strong,
.pos-sales-change-row strong {
  color: #172033;
  font-weight: 900;
}

.pos-summary-input-row {
  align-items: end;
}

.pos-summary-input-row input {
  max-width: 140px;
  text-align: right;
  font-weight: 800;
}

.pos-summary-total {
  margin-top: 4px;
  border-top: 1px dashed #d9e4ec;
  padding-top: 14px;
}

.pos-summary-total strong {
  color: #11a86b;
  font-size: 21px;
  font-weight: 900;
}

.pos-sales-change-row {
  border-radius: 12px;
  background: #e7faf1;
  color: #12885b;
  padding: 10px 12px;
}

.pos-sales-change-row span,
.pos-sales-change-row strong {
  color: #12885b;
}

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

.pos-sales-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pos-sales-note-card {
  display: grid;
  gap: 4px;
  border: 1px solid #c8f3e1;
  border-radius: 14px;
  background: linear-gradient(135deg, #effdf6, #e8faf7);
  color: #12885b;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 800;
}

.pos-sales-records {
  margin-top: 0;
}

.pos-sales-records table {
  min-width: 760px;
}

@media (max-width: 1280px) {
  .pos-sales-layout {
    grid-template-columns: 1fr;
  }

  .pos-sales-summary-stack {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-sales-note-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .pos-sales-fields,
  .pos-sales-summary-stack {
    grid-template-columns: 1fr;
  }

  .pos-sales-line-head {
    display: none;
  }

  .pos-sales-lines {
    gap: 10px;
  }

  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .pos-sales-product-cell {
    grid-column: 1 / -1;
  }

  .pos-sales-remove {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .pos-sales-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr;
  }

  .pos-sales-product-top,
  .pos-summary-input-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .pos-summary-input-row input {
    max-width: none;
  }
}

html {
  background: #22c78e;
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #2ad17f 0%, #25c7aa 100%);
  color: var(--text);
  line-height: 1.45;
}

.shell {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  padding: 14px;
  background: transparent;
}

.sidebar {
  position: sticky;
  top: 14px;
  min-height: calc(100vh - 28px);
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #fff;
  color: #5f6f82;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-right: 0;
  border-radius: 20px 0 0 20px;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.16);
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: #d6e1e8;
  border-radius: 999px;
}

.main {
  min-height: calc(100vh - 28px);
  overflow: hidden;
  background: var(--bg);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 22px 54px rgba(16, 24, 40, 0.12);
}

.brand,
.login-brand {
  min-height: 70px;
  padding: 0 20px;
  background: #fff;
  color: #233044;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo,
.brand .logo {
  width: 34px;
  height: 34px;
  border: 1px solid #d5f5e6;
  border-radius: 10px;
  background: #effdf6;
  color: #20b978;
  box-shadow: inset 0 -8px 18px rgba(37, 193, 133, 0.08);
}

.nav {
  padding: 14px 10px 22px;
}

.nav-title {
  margin: 18px 12px 8px;
  color: #9aa7b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav button {
  min-height: 40px;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #5d6c7f;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav button:hover,
.nav button.active {
  background: #effaf5;
  color: #18a86d;
  box-shadow: inset 3px 0 0 #27c883;
}

.nav button:hover {
  transform: translateX(2px);
}

.nav-icon {
  color: inherit;
  opacity: 0.86;
}

.nav .subtab {
  min-height: 34px;
  padding-left: 42px;
  background: transparent;
  color: #7a8999;
  font-size: 12px;
}

.nav .subtab.active {
  background: #effaf5;
  color: #18a86d;
}

.nav-badge {
  background: #f04f64;
  box-shadow: 0 6px 14px rgba(240, 79, 100, 0.25);
}

.topbar {
  position: relative;
  z-index: 1000;
  height: 70px;
  padding: 0 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 36%),
    linear-gradient(135deg, #2bd47f, #21c5aa);
  color: #fff;
  box-shadow: none;
  overflow: visible;
}

.topbar-title {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.96;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pitstop-rating-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pitstop-rating-pill {
  --rating-color: #1769aa;
  min-width: 112px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--rating-color);
  border-radius: 12px;
  background: #fff;
  color: #243044;
  padding: 5px 11px 5px 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.13);
  white-space: nowrap;
}

.pitstop-rating-score {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--rating-color) calc(var(--rating-score) * 1%), #e8eef3 0);
}

.pitstop-rating-score::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #fff;
}

.pitstop-rating-score span {
  position: relative;
  z-index: 1;
  color: var(--rating-color);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.pitstop-rating-copy {
  min-width: 52px;
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.pitstop-rating-copy small {
  color: #718096;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pitstop-rating-copy em {
  color: var(--rating-color);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.pitstop-rating-pill.is-green {
  --rating-color: #147d52;
}

.pitstop-rating-pill.is-blue {
  --rating-color: #1769aa;
}

.pitstop-rating-pill.is-yellow {
  --rating-color: #9a6700;
}

.pitstop-rating-pill.is-red {
  --rating-color: #b42336;
}

.notification-root {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-bell {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #263044;
  padding: 0;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.notification-bell.has-alert {
  color: #9f1f32;
}

.notification-bell.has-alert::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(240, 79, 100, 0.45);
  border-radius: inherit;
  animation: notification-pulse 1.8s ease-out infinite;
}

.notification-bell-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #f04f64;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0 5px;
}

.notification-panel {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 20;
  width: 310px;
  max-height: 370px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f5;
}

.notification-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.notification-row {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
}

.notification-row:hover {
  background: #f8fbfd;
}

.notification-row strong {
  min-width: 24px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffe0e5;
  color: #9f1f32;
  font-size: 12px;
}

.notification-empty {
  padding: 22px 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.notification-toast {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 19;
  width: 310px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #ffcbd4;
  border-radius: 12px;
  background: #fff0f2;
  color: #8a2030;
  padding: 10px 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.notification-toast button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-weight: 900;
  text-decoration: underline;
}

@keyframes notification-pulse {
  from {
    opacity: 0.72;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

.user-chip {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #243044;
  padding: 4px 13px 4px 5px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  font-weight: 700;
}

.avatar {
  width: 30px;
  height: 30px;
  background: #fff0df;
  color: #a35b17;
}

@media (max-width: 900px) {
  .pitstop-rating-pill {
    min-width: 98px;
    gap: 7px;
    padding-right: 8px;
  }
}

@media (max-width: 720px) {
  .pitstop-rating-pill {
    min-width: 44px;
    width: 44px;
    justify-content: center;
    padding: 4px;
    border-left-width: 1px;
  }

  .pitstop-rating-copy {
    display: none;
  }
}

.profile-card,
.modal,
.transport-suggestions,
.prep-deliver-field .typeahead-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.profile-card {
  top: 48px;
  width: 270px;
  padding: 14px;
  z-index: 1100;
}

.content {
  flex: 1;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 180px),
    var(--bg);
}

h1 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
}

h2 {
  color: #243044;
  font-weight: 800;
}

.divider {
  height: 1px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, rgba(37, 193, 133, 0.32), rgba(226, 232, 240, 0.64));
}

.stats {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.stat {
  min-height: 92px;
  grid-template-columns: minmax(0, 1fr) 54px;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  padding: 17px 16px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 193, 133, 0.35);
  box-shadow: 0 18px 36px rgba(31, 45, 61, 0.13);
}

.stat .box,
.stat .box.transport-stat-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #fff;
  box-shadow: inset 0 -10px 20px rgba(15, 23, 42, 0.16), 0 10px 22px rgba(15, 23, 42, 0.14);
}

.stat span:not(.box) {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #7b8796;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat strong {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.12;
}

.panel,
.compact-table,
.check-list,
.movement-card,
.driver-trip-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel {
  overflow: hidden;
}

.panel-head {
  min-height: 62px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.body,
.arrival-card,
.movement-card-content {
  padding: 18px;
}

.receive-stock-type-block {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.receive-stock-type-block:last-child {
  border-bottom: 0;
}

.receive-stock-type-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
}

.grid {
  gap: 18px;
}

label {
  color: #526174;
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  min-height: 40px;
  border-color: #dce5ec;
  border-radius: 10px;
  background: #fff;
  color: #243044;
  padding: 9px 11px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(37, 193, 133, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 193, 133, 0.12);
}

.standard-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.standard-select select.native-select-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

.standard-select-button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #dce5ec;
  border-radius: 10px;
  background: #fff;
  color: #243044;
  padding: 9px 11px;
  text-align: left;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.standard-select-button:hover,
.standard-select.open .standard-select-button {
  border-color: rgba(37, 193, 133, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 193, 133, 0.12);
}

.standard-select-button:focus {
  outline: 0;
  border-color: rgba(37, 193, 133, 0.82);
  box-shadow: 0 0 0 4px rgba(37, 193, 133, 0.16);
}

.standard-select-button.placeholder .standard-select-label {
  color: #6f7780;
}

.standard-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standard-select-caret {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid #5f6f82;
  border-bottom: 2px solid #5f6f82;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.standard-select.open .standard-select-caret {
  transform: rotate(225deg) translateY(-2px);
}

.standard-select-list {
  position: fixed;
  z-index: 9999;
  left: var(--standard-select-left, 0);
  top: var(--standard-select-top, 0);
  width: var(--standard-select-width, 220px);
  max-height: var(--standard-select-max-height, 320px);
  display: none;
  overflow: auto;
  border: 1px solid #cfd9e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 45, 61, 0.18);
  padding: 6px;
}

.standard-select.open .standard-select-list {
  display: block;
}

.standard-select-option {
  width: 100%;
  min-height: 38px;
  display: block;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #243044;
  padding: 9px 12px;
  text-align: left;
  font-weight: 500;
}

.standard-select-option:hover,
.standard-select-option:focus,
.standard-select-option.selected {
  outline: 0;
  background: #e8f7ff;
  color: #075184;
}

.standard-select-option:disabled {
  color: #a8b3be;
  cursor: not-allowed;
}

.standard-select.disabled .standard-select-button,
.standard-select-button:disabled {
  background: #f5f8fb;
  color: #a8b3be;
  cursor: not-allowed;
  box-shadow: none;
}

textarea {
  min-height: 96px;
}

.btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 9px 14px;
  background: #edf3f7;
  color: #2f3d4f;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(31, 45, 61, 0.12);
}

.btn.primary,
.btn.green {
  background: linear-gradient(135deg, #2ad47f, #21bea4);
  color: #fff;
}

.btn.red {
  background: linear-gradient(135deg, #ff6677, #f04f64);
  color: #fff;
}

.btn.orange {
  background: linear-gradient(135deg, #ff9f43, #f97316);
  color: #fff;
}

.btn.ghost {
  background: #fff;
  border-color: #dce5ec;
}

.btn.info {
  background: #e8f7ff;
  border-color: #bde9fb;
  color: #0b7195;
}

.btn:disabled {
  background: #f4f7fa;
  border-color: #dce5ec;
  color: #9aa7b3;
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.table-wrap {
  border-radius: 14px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
}

th {
  background: #f8fafc;
  color: #5d6c7f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:hover td {
  background: #fbfdfc;
}

.badge,
.meta-pill {
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
}

.badge.green {
  color: #117248;
  background: #dcf8e9;
}

.badge.yellow {
  color: #866000;
  background: #fff2c4;
}

.badge.red {
  color: #9b2435;
  background: #ffe0e6;
}

.badge.blue {
  color: #09647f;
  background: #ddf5ff;
}

.product-pos-form {
  display: grid;
  gap: 18px;
}

.product-pos-meta {
  margin: 0;
}

.product-pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.product-pos-catalog,
.product-pos-cart {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-pos-section-head,
.product-pos-cart-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
  padding: 16px 18px;
}

.product-pos-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.product-pos-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.product-pos-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(360px, 100%);
}

.product-pos-search input {
  min-width: 0;
  width: 240px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.product-pos-search-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 24px;
  text-align: center;
}

.product-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  padding: 18px;
}

.product-pos-card {
  position: relative;
  min-height: 194px;
  display: grid;
  grid-template-rows: 68px auto auto auto;
  gap: 9px;
  border: 1px solid #e1e9ef;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(31, 45, 61, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-pos-card:hover,
.product-pos-card.active {
  border-color: rgba(37, 193, 133, 0.58);
  box-shadow: 0 15px 30px rgba(31, 45, 61, 0.13);
  transform: translateY(-2px);
}

.product-pos-card:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.product-pos-card.active::after {
  content: attr(data-product-pos-count);
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #25c185;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 193, 133, 0.26);
}

.product-pos-photo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #e0edf1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6fbff, #eafaf1);
  color: #13905f;
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
}

.product-pos-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-pos-card-main,
.product-pos-card-meta,
.product-pos-card-foot,
.product-pos-cart-item {
  min-width: 0;
}

.product-pos-card-main {
  display: grid;
  gap: 2px;
}

.product-pos-card-main strong,
.product-pos-cart-item strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-pos-card-main span,
.product-pos-cart-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-pos-card-meta,
.product-pos-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-pos-card-meta span,
.product-pos-card-foot span {
  color: #718096;
  font-size: 11px;
  font-weight: 800;
}

.product-pos-card-foot .product-pos-available,
.product-pos-card-foot .product-pos-price {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.product-pos-card-foot .product-pos-available {
  color: #0f766e;
}

.product-pos-card-foot .product-pos-available small,
.product-pos-card-foot .product-pos-price small {
  color: #718096;
  font-size: 11px;
  font-weight: 800;
}

.product-pos-card-foot .product-pos-available strong {
  color: #0f766e;
  font-size: 19px;
  font-weight: 900;
}

.product-pos-card-foot .product-pos-price {
  color: #111827;
  text-align: right;
}

.product-pos-card-foot .product-pos-price strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.product-pos-card-foot strong {
  color: #111827;
  font-size: 14px;
}

.product-pos-cart {
  position: sticky;
  top: 86px;
}

.product-pos-cart-head div {
  display: grid;
  gap: 1px;
}

.product-pos-cart-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-pos-cart-head strong {
  color: #111827;
  font-size: 30px;
  line-height: 1;
}

.product-pos-cart-lines {
  display: grid;
  gap: 8px;
  max-height: min(44vh, 430px);
  overflow: auto;
  padding: 14px;
}

.product-pos-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 12px;
  align-items: center;
  border: 1px solid #e8eef3;
  border-radius: 13px;
  background: #fbfdfc;
  padding: 10px;
}

.product-pos-stepper {
  display: grid;
  grid-template-columns: 38px minmax(48px, 1fr) 38px;
  gap: 6px;
  align-items: center;
}

.product-pos-stepper .btn {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.product-pos-stepper input {
  min-width: 0;
  padding-inline: 6px;
  text-align: center;
  font-weight: 900;
}

.product-pos-cart-empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed #cfdae3;
  border-radius: 13px;
  color: var(--muted);
  font-weight: 800;
}

.product-pos-notes {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.product-pos-notes textarea {
  min-height: 86px;
}

.product-pos-submit {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
}

.product-catalog-page {
  display: grid;
  gap: 16px;
  width: min(100%, 1880px);
  margin: 0 auto;
}

.product-catalog-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.product-catalog-title h1 {
  margin-bottom: 4px;
}

.product-catalog-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.product-catalog-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.product-catalog-metric {
  min-width: 0;
  min-height: 92px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 14px 16px;
}

.product-catalog-metric span,
.product-catalog-metric small {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-catalog-metric span {
  font-size: 11px;
  text-transform: uppercase;
}

.product-catalog-metric strong {
  min-width: 0;
  color: #172033;
  font-size: 28px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.product-catalog-metric.is-green {
  border-left-color: var(--green);
}

.product-catalog-metric.is-blue {
  border-left-color: var(--blue);
}

.product-catalog-metric.is-teal {
  border-left-color: var(--teal);
}

.product-catalog-metric.is-yellow {
  border-left-color: var(--yellow);
}

.product-catalog-panel {
  min-width: 0;
}

.product-catalog-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.product-catalog-workspace.has-cart {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.product-catalog-filter {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(170px, 240px) minmax(170px, 240px) auto auto;
  gap: 12px;
  align-items: end;
}

.product-catalog-query {
  min-width: 0;
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  background: #f8fbfd;
  padding: 14px;
}

.product-catalog-card {
  min-width: 0;
  min-height: 530px;
  height: 100%;
  display: grid;
  grid-template-rows: 112px 1fr 134px;
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 45, 61, 0.07);
  overflow: hidden;
}

.product-catalog-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fbfdfc, #f4fbff);
  padding: 14px;
}

.product-catalog-card-head div,
.product-catalog-card-body,
.product-catalog-nameplate,
.product-catalog-details,
.product-catalog-card-foot div {
  min-width: 0;
}

.product-catalog-card-head > div > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-catalog-card-head strong {
  display: -webkit-box;
  margin-top: 3px;
  color: #172033;
  font-size: 14px;
  line-height: 1.18;
  min-height: 66px;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-catalog-card-head .badge {
  justify-self: end;
  margin-top: 9px;
  white-space: nowrap;
}

.product-catalog-photo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7faf1, #e8f4ff);
  color: #0b8154;
  font-weight: 900;
  overflow: hidden;
}

.product-catalog-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-catalog-card-body {
  display: grid;
  grid-template-rows: 32px 64px 1fr;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.product-catalog-tags {
  display: flex;
  align-items: start;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 32px;
  overflow: hidden;
}

.product-catalog-nameplate {
  display: grid;
  grid-template-rows: 14px 1fr;
  gap: 4px;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.product-catalog-nameplate span,
.product-catalog-details span,
.product-catalog-card-foot span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-catalog-nameplate strong {
  align-self: center;
  color: #111827;
  font-size: 19px;
  line-height: 1.1;
}

.product-catalog-details {
  display: grid;
  grid-template-rows: repeat(4, minmax(34px, auto));
  gap: 7px;
}

.product-catalog-details div {
  min-width: 0;
  display: grid;
  grid-template-rows: 12px 1fr;
  gap: 3px;
  align-content: start;
}

.product-catalog-details strong,
.product-catalog-card-foot strong {
  min-width: 0;
  color: #243044;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.product-catalog-details strong {
  display: -webkit-box;
  min-height: 16px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}

.product-catalog-card-foot {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px 16px;
  min-height: 134px;
}

.product-catalog-stock-stats {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-catalog-stock-stats.is-single {
  grid-template-columns: minmax(0, 160px);
}

.product-catalog-stock-stats div {
  min-width: 0;
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 54px;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 8px;
}

.product-catalog-stock-stats span {
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  line-height: 1.15;
}

.product-catalog-stock-stats small {
  min-width: 0;
  color: #778698;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.product-catalog-foot-actions,
.product-catalog-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.product-catalog-foot-actions {
  width: 100%;
  align-self: end;
  justify-content: space-between;
  padding-bottom: 2px;
}

.product-catalog-card-actions {
  margin-left: auto;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  flex: 0 0 auto;
}

.product-catalog-foot-actions > .badge,
.product-catalog-card-actions .badge {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 10px;
  line-height: 1;
}

.product-catalog-card-actions .badge {
  padding-inline: 5px;
  font-size: 9px;
}

.product-catalog-card-actions .btn {
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.product-catalog-card-foot strong {
  display: block;
  margin-top: 0;
  font-size: 18px;
  line-height: 1.1;
}

.product-catalog-cart-panel {
  min-width: 0;
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.product-catalog-cart {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-catalog-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-catalog-cart-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.product-catalog-cart-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.product-catalog-cart-lines {
  display: grid;
  gap: 10px;
}

.product-catalog-cart-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.product-catalog-cart-photo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7faf1, #e8f4ff);
  color: #0b8154;
  font-weight: 900;
  overflow: hidden;
}

.product-catalog-cart-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-catalog-cart-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-catalog-cart-item strong,
.product-catalog-cart-item span,
.product-catalog-cart-item small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-catalog-cart-item small {
  color: var(--muted);
  font-weight: 800;
}

.product-catalog-cart-stepper {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px minmax(70px, 1fr) 40px;
  gap: 8px;
}

.product-catalog-cart-stepper .btn {
  min-width: 0;
  padding: 0;
}

.product-catalog-cart-stepper input {
  text-align: center;
  font-weight: 900;
}

.product-catalog-cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.product-purchase-order-history {
  margin-top: 16px;
}

.product-purchase-order-inbox {
  margin-bottom: 16px;
}

.product-purchase-order-loaded {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfe8f6;
  border-radius: 8px;
  background: #f1fbff;
  margin: 12px 0 0;
  padding: 12px 14px;
}

.product-purchase-order-loaded div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-purchase-order-loaded span,
.product-purchase-order-loaded small {
  color: var(--muted);
  font-weight: 800;
}

.product-purchase-order-loaded strong,
.product-purchase-order-loaded small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.message {
  margin: 0 0 18px;
  border-color: #bde9fb;
  border-radius: 13px;
  background: #eefaff;
  color: #155a72;
}

.message.error {
  border-color: #ffd0d9;
  background: #fff1f4;
  color: #9b2435;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: #8a97a8;
  padding: 14px 28px;
}

.login {
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #2ad47f, #21c5aa 52%, #f5f8fb 52%);
}

.login-card {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.2);
}

.modal-backdrop {
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(3px);
}

.modal-head,
.movement-card-head {
  background: #fbfdfc;
}

.movement-cards,
.driver-board {
  background: #f7fafc;
}

.driver-route-stop {
  border-radius: 12px;
  background: #fbfdfc;
}

.driver-route-seq {
  background: #e7faf1;
  color: #18a86d;
}

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

  .product-pos-layout {
    grid-template-columns: 1fr;
  }

  .product-pos-cart {
    position: static;
  }

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

  .product-catalog-workspace.has-cart {
    grid-template-columns: 1fr;
  }

  .product-catalog-cart-panel {
    position: static;
  }

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

@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 0;
    background: var(--bg);
  }

  .sidebar {
    position: static;
    min-height: auto;
    max-height: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .main {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .brand {
    min-height: 62px;
  }

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

  .nav-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }

  .content {
    padding: 18px;
  }

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

  .stat {
    min-height: 86px;
  }

  .footer {
    padding: 14px 18px;
  }

  .product-pos-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .product-pos-card {
    min-height: 156px;
    grid-template-columns: 68px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }

  .product-pos-photo {
    grid-row: 1 / span 3;
  }

  .product-pos-card-foot,
  .product-pos-card-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .product-pos-cart-row {
    grid-template-columns: 1fr;
  }

  .product-pos-stepper {
    max-width: 180px;
  }

  .product-catalog-title {
    display: grid;
    align-items: start;
  }

  .product-catalog-summary,
  .product-catalog-filter,
  .product-catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-catalog-card {
    min-height: 0;
    grid-template-rows: 120px 1fr auto;
  }

  .product-catalog-card-head {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .product-catalog-card-head .badge {
    grid-column: 3;
    justify-self: end;
  }

  .product-catalog-photo {
    width: 64px;
    height: 64px;
  }

  .product-catalog-card-head strong {
    min-height: 70px;
  }

  .product-catalog-card-foot {
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: 0;
  }

  .product-catalog-stock-stats,
  .product-catalog-stock-stats.is-single {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .product-catalog-foot-actions,
  .product-catalog-card-actions,
  .product-purchase-order-loaded {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-catalog-foot-actions,
  .product-catalog-card-actions {
    align-items: center;
    flex-direction: row;
  }

  .product-catalog-cart-actions {
    grid-template-columns: 1fr;
  }
}

/* Sidebar legibility polish. */
.sidebar {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.brand {
  color: #162033;
  font-size: 13px;
  font-weight: 900;
}

.nav button {
  color: #3f4d5f;
  font-size: 13px;
  font-weight: 800;
}

.nav button:hover,
.nav button.active {
  color: #12885b;
}

.nav .subtab {
  color: #4e5e70;
  font-weight: 800;
}

.nav-title {
  color: #40515e;
  font-weight: 900;
}

.nav-title-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-title-label .nav-badge {
  margin-left: 0;
}

.nav-title-button {
  width: calc(100% - 24px);
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.nav-title-button:hover,
.nav-title-button.active {
  background: transparent;
  color: #18a86d;
  box-shadow: none;
  transform: none;
}

.nav-group-caret {
  font-size: 12px;
  line-height: 1;
}

.nav-icon {
  opacity: 1;
}

.nav .nav-group-daily {
  width: calc(100% - 24px);
  min-height: 34px;
  margin: 18px 12px 8px;
  padding: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: #8a2030;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  box-shadow: none;
  transform: none;
}

.nav .nav-group-daily:hover,
.nav .nav-group-daily.active {
  background: transparent;
  color: #8a2030;
  box-shadow: none;
  transform: none;
  border-bottom-color: transparent;
}

.nav .nav-group-operationComplaints {
  width: calc(100% - 24px);
  min-height: 34px;
  margin: 8px 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4f5f73;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
  transform: none;
}

.nav .nav-group-operationComplaints:hover,
.nav .nav-group-operationComplaints.active {
  background: transparent;
  color: #18a86d;
  box-shadow: none;
  transform: none;
}

.nav-section-separator {
  width: calc(100% - 24px);
  height: 1px;
  margin: 10px 12px 16px;
  background: #e6edf2;
}

.nav .nav-item-dailyChecklist {
  width: calc(100% - 24px);
  min-height: 34px;
  margin: 18px 12px 18px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #e6edf2;
  border-radius: 0;
  background: transparent;
  color: #8a2030;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: none;
}

.nav .nav-item-dailyChecklist .nav-icon {
  display: none;
}

.nav .nav-item-dailyChecklist .nav-caret {
  margin-left: auto;
}

.nav .nav-item-dailyChecklist:hover,
.nav .nav-item-dailyChecklist.active {
  background: transparent;
  color: #8a2030;
  box-shadow: none;
  transform: none;
  border-bottom-color: #e6edf2;
}

.nav .nav-group-maintenance {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e6edf2;
  color: #7e8b9b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav .nav-group-maintenance:hover,
.nav .nav-group-maintenance.active {
  color: #18a86d;
}

.warranty-claim-cards {
  display: none;
}

.warranty-claim-pitstop-groups {
  display: grid;
}

.warranty-claim-pitstop-group {
  border-top: 1px solid var(--line);
}

.warranty-claim-pitstop-group:first-child {
  border-top: 0;
}

.warranty-claim-pitstop-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #fbfdff;
  border-bottom: 1px solid #edf2f5;
}

.warranty-claim-pitstop-head h3 {
  margin: 0;
  color: #21303c;
  font-size: 15px;
  font-weight: 900;
}

.warranty-claim-card {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  background: #fff;
}

.warranty-claim-card:last-child {
  border-bottom: 0;
}

.warranty-claim-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.warranty-claim-card-head strong,
.warranty-claim-card-grid strong {
  overflow-wrap: anywhere;
}

.warranty-claim-card-plate {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.warranty-claim-card-grid {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 7px 10px;
}

.warranty-claim-card-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.warranty-claim-card-grid strong {
  color: var(--text);
  font-size: 13px;
}

.warranty-claim-page input:disabled,
.warranty-claim-page select:disabled,
.warranty-claim-page textarea:disabled {
  background: #f3f7fa;
  color: #8b98a5;
  cursor: not-allowed;
}

.warranty-claim-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.warranty-conditional-field.wide {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.warranty-no-temp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  font-weight: 800;
}

.warranty-no-temp-toggle input {
  width: auto;
}

.warranty-no-temp-reason {
  margin: 0;
}

.tester-reference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tester-reference-row .btn {
  white-space: nowrap;
}

.warranty-claim-intake-panel {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.warranty-dropdown {
  position: relative;
  z-index: 1;
}

.warranty-dropdown.open {
  z-index: 80;
}

.warranty-dropdown-button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #ccd8e0;
  border-radius: 3px;
  padding: 7px 9px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.warranty-dropdown-button.placeholder {
  color: #737b84;
}

.warranty-dropdown.disabled .warranty-dropdown-button,
.warranty-dropdown-button:disabled {
  background: #f4f7fa;
  border-color: #dce5ec;
  color: #9aa7b3;
  cursor: not-allowed;
}

.warranty-dropdown-caret {
  flex: 0 0 auto;
}

.warranty-dropdown-list {
  display: none;
  position: absolute;
  z-index: 90;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #cfd9e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(31, 45, 61, 0.18);
  padding: 6px;
}

.warranty-dropdown.open .warranty-dropdown-list {
  display: grid;
  gap: 3px;
}

.warranty-dropdown.drop-up .warranty-dropdown-list,
.warranty-dropdown.wide .warranty-dropdown-list {
  top: auto;
  bottom: calc(100% + 6px);
}

.warranty-dropdown-option {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
}

.warranty-dropdown-group {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 3px -6px 2px;
  border-top: 1px solid #e4ebf0;
  border-bottom: 1px solid #e4ebf0;
  background: #f4f7fa;
  color: #526477;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.warranty-dropdown-group:first-child {
  margin-top: -6px;
  border-top: 0;
}

.warranty-dropdown-option:hover,
.warranty-dropdown-option:focus,
.warranty-dropdown-option.selected {
  background: #dff1ff;
}

.warranty-replacement-battery {
  grid-column: 1 / -1;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px 16px;
  margin: 0;
}

.warranty-replacement-battery > label {
  margin: 0;
}

.warranty-replacement-battery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}

.claim-charging-help {
  padding-bottom: 0;
}

.claim-charging-form {
  display: grid;
  gap: 14px;
}

.claim-charging-selected-claim {
  border: 1px solid #cfe6f6;
  border-radius: 12px;
  background: #f0f9ff;
  color: #075184;
  padding: 11px 12px;
  font-weight: 800;
}

.claim-charging-section,
.claim-charging-upload-row {
  border: 1px solid #e7edf3;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.claim-charging-section-title {
  margin-bottom: 12px;
  color: #6d7a88;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.claim-result-form {
  display: grid;
  gap: 14px;
}

.claim-result-form .warranty-dropdown.open {
  z-index: 120;
}

.claim-result-view-button {
  justify-self: start;
  min-width: 220px;
}

.claim-result-tester-card,
.claim-result-box {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.claim-result-tester-card {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.claim-result-tester-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.claim-result-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.claim-result-evidence-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 88px;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

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

.war-final-evidence-card {
  min-height: 0;
  background: #fff;
}

.war-final-evidence-details {
  grid-template-columns: 140px minmax(0, 1fr);
}

.claim-result-evidence-main {
  grid-column: span 2;
  background: #fff;
}

.claim-result-evidence-notes {
  background: #fffdf5;
}

.claim-result-evidence-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.claim-result-evidence-item strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.claim-result-evidence-muted {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
}

.claim-result-evidence-link {
  color: #075184;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wft-fulfilment-sections {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.wft-fulfilment-page,
.wft-detail-panel {
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.wft-detail-panel {
  font-size: 14px;
  line-height: 1.45;
}

.wft-booking-assignment-action {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.wft-booking-bhero-field {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.wft-booking-bhero-field select {
  min-height: 38px;
  padding: 8px 34px 8px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wft-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 14px;
}

.wft-overview-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.wft-overview-card:hover {
  border-color: #9fe4c4;
  background: #f7fffb;
}

.wft-overview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wft-overview-card strong {
  font-size: 22px;
  line-height: 1.16;
}

.wft-overview-card small {
  color: var(--muted);
  line-height: 1.35;
}

.wft-overview-search {
  border-color: #d6eafa;
  background: #f7fbff;
}

.wft-queue-section {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.wft-queue-head {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf3;
}

.wft-queue-head h3 {
  margin: 0;
  font-size: 17px;
}

.wft-detail-body {
  display: grid;
  gap: 14px;
}

.wft-lock-actions {
  margin-top: 12px;
}

.wft-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.wft-work-lane {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.wft-card {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

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

.wft-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wft-card-head h3 {
  margin: 0;
  font-size: 18px;
}

.wft-card label {
  color: #475569;
  font-weight: 800;
}

.wft-card input,
.wft-card select,
.wft-card textarea,
.wft-card .standard-select-button,
.wft-card .warranty-dropdown-button {
  color: #172033;
  font-weight: 600;
}

.wft-card input:disabled,
.wft-card select:disabled,
.wft-card textarea:disabled,
.wft-card .standard-select.disabled .standard-select-button,
.wft-card .standard-select-button:disabled,
.wft-card .warranty-dropdown.disabled .warranty-dropdown-button,
.wft-card .warranty-dropdown-button:disabled {
  background: #f8fbfd;
  color: #334155;
  opacity: 1;
}

.wft-card input::placeholder,
.wft-card textarea::placeholder {
  color: #64748b;
}

.wft-card .warranty-dropdown.open {
  z-index: 130;
}

.wft-booking-form .wft-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px 12px;
  padding: 12px;
  border: 1px solid #dbe6ee;
  border-radius: 10px;
  background: #f8fafc;
}

.wft-section-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wft-route-field {
  min-width: 0;
}

.wft-booking-form .wft-route-field {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: minmax(34px, auto) auto;
  align-items: center;
  column-gap: 10px;
  position: relative;
}

.wft-booking-form .wft-route-field > label {
  margin: 0;
  white-space: nowrap;
}

.wft-booking-form .wft-route-field .warranty-dropdown-button,
.wft-booking-form .wft-route-field .warranty-dropdown-list {
  grid-column: 2;
}

.wft-booking-form .wft-route-search-input {
  grid-column: 2;
  width: 100%;
}

.wft-booking-form .wft-route-suggestions {
  display: none;
  position: absolute;
  z-index: 95;
  top: calc(100% + 4px);
  left: 128px;
  right: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #cfd9e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(32, 42, 51, .14);
  padding: 5px;
}

.wft-booking-form .wft-route-search.open .wft-route-suggestions {
  display: grid;
  gap: 3px;
}

.wft-route-suggestion {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
}

.wft-route-suggestion:hover,
.wft-route-suggestion:focus,
.wft-route-suggestion.selected {
  background: #e8f5f3;
  color: #0b6b63;
}

.wft-route-search.no-match .wft-route-suggestions::after {
  content: "No matching location";
  padding: 8px 10px;
  color: #64748b;
  font-weight: 800;
}

.wft-readonly-route .warranty-dropdown-button,
.wft-readonly-route .warranty-dropdown-button:disabled,
.wft-readonly-route.disabled .warranty-dropdown-button,
.wft-readonly-route .wft-route-search-input,
.wft-readonly-route .wft-route-search-input:disabled,
.wft-readonly-route.disabled .wft-route-search-input {
  border-color: #d5e0e8;
  background: #eef4f8;
  color: #526274;
  box-shadow: none;
}

.wft-transport-from-locked::after {
  content: "Locked to current stock location";
  grid-column: 2;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.wft-transport-rule-card {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #dbe8f0;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--text);
}

.wft-transport-rule-card strong {
  font-size: 15px;
}

.wft-transport-rule-card span {
  font-weight: 800;
}

.wft-transport-rule-card small {
  color: var(--muted);
  line-height: 1.35;
}

.wft-transport-rule-card.is-clear {
  border-color: #bdebd0;
  background: #f3fff8;
}

.wft-transport-rule-card.is-clear strong {
  color: #107747;
}

.wft-transport-rule-card.is-required {
  border-color: #f4d88d;
  background: #fffaf0;
}

.wft-transport-rule-card.is-required strong {
  color: #8a6200;
}

.wft-replacement-fields {
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.wft-replacement-fields > label {
  margin-bottom: 8px;
}

.wft-history {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
}

.wft-claim-trail {
  padding: 0;
  overflow: hidden;
}

.wft-claim-trail .claim-result-tester-head {
  min-height: 50px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf3;
}

.wft-trail-details {
  min-width: 0;
}

.wft-trail-summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  background: #fbfdff;
  cursor: pointer;
  list-style: none;
}

.wft-trail-summary::-webkit-details-marker {
  display: none;
}

.wft-trail-summary-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wft-trail-summary-main strong,
.wft-trail-main strong {
  overflow-wrap: anywhere;
}

.wft-trail-summary-main small,
.wft-trail-main small,
.wft-trail-when {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wft-trail-summary-toggle {
  min-width: 66px;
  color: #075184;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.wft-trail-summary-toggle::after {
  content: "Show all";
}

.wft-trail-details[open] .wft-trail-summary-toggle::after {
  content: "Hide";
}

.wft-trail-list {
  display: grid;
  gap: 0;
  padding: 4px 14px 14px;
  border-top: 1px solid #eef3f7;
  background: #fff;
}

.wft-trail-event {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f7;
}

.wft-trail-event:last-child {
  border-bottom: 0;
}

.wft-trail-marker {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #dff1ff;
  box-shadow: 0 0 0 3px #f4fbff;
}

.wft-trail-marker.is-latest {
  margin-top: 0;
  background: #25c185;
  box-shadow: 0 0 0 4px #e7fbf1;
}

.wft-trail-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wft-trail-side {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

@media(max-width:650px){
  .wft-trail-summary {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .wft-trail-summary > .badge,
  .wft-trail-summary-toggle {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .wft-trail-event {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .wft-trail-when,
  .wft-trail-side {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.wft-lock-cell {
  display: inline-grid;
  gap: 2px;
  min-width: 116px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dbe8f0;
  background: #f8fbff;
  line-height: 1.2;
}

.wft-lock-cell strong {
  font-size: 13px;
}

.wft-lock-cell small {
  color: var(--muted);
  font-weight: 700;
}

.wft-lock-cell.is-open {
  border-color: #dbe8f0;
  background: #f8fbff;
}

.wft-lock-cell.is-mine {
  border-color: #bdebd0;
  background: #f3fff8;
}

.wft-lock-cell.is-mine strong {
  color: #107747;
}

.wft-lock-cell.is-locked {
  border-color: #f6c4cf;
  background: #fff5f7;
}

.wft-lock-cell.is-locked strong {
  color: #b71d3b;
}

.wft-case-search-form {
  align-items: end;
}

.claim-result-evidence-preview {
  display: block;
  width: min(280px, 100%);
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #fff;
}

.claim-result-evidence-preview img {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.claim-result-zs-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.claim-result-status-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 12px;
}

.claim-result-status-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.claim-result-status-grid strong {
  overflow-wrap: anywhere;
}

.claim-result-final-box {
  border-color: #cfe6f6;
  background: #f8fcff;
}

.claim-result-final-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.claim-result-final-head strong {
  font-size: 16px;
}

.claim-result-help {
  margin: 0;
  color: #80764f;
  font-weight: 700;
}

.claim-result-wide-action {
  width: min(360px, 100%);
}

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

.claim-result-actions [data-claim-result-action="war"] {
  grid-column: 1 / span 1;
}

.claim-result-actions [data-claim-result-action="gb"]:not(:disabled) {
  background: linear-gradient(135deg, #18bf68, #20b867);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(32, 184, 103, 0.22);
}

.claim-result-actions [data-claim-result-action="ng"]:not(:disabled) {
  background: linear-gradient(135deg, #ff7a59, #e73b51);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(231, 59, 81, 0.22);
}

.claim-result-actions [data-war-final-result-action="gb"]:not(:disabled) {
  background: linear-gradient(135deg, #18bf68, #20b867);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(32, 184, 103, 0.22);
}

.claim-result-actions [data-war-final-result-action="ng"]:not(:disabled) {
  background: linear-gradient(135deg, #ff7a59, #e73b51);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(231, 59, 81, 0.22);
}

.claim-result-actions [data-claim-result-action="war"]:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5, #0888f5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 136, 245, 0.22);
}

.pitstop-warranty-queue-sections {
  display: grid;
  gap: 18px;
}

.pitstop-warranty-queue-section {
  overflow: hidden;
}

.pitstop-warranty-queue-table table {
  min-width: 980px;
}

.pitstop-warranty-queue-table th,
.pitstop-warranty-queue-table td {
  vertical-align: middle;
}

.pitstop-warranty-queue-plate {
  color: #0b5682;
  font-weight: 900;
}

.pitstop-warranty-queue-route {
  display: block;
  color: #233142;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pitstop-warranty-queue-table .btn {
  white-space: nowrap;
}

.pitstop-warranty-delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pitstop-warranty-delivery-summary > div,
.readonly-box,
.pitstop-warranty-delivery-note {
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px 12px;
}

.pitstop-warranty-delivery-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pitstop-warranty-delivery-summary strong {
  color: var(--text);
  font-size: 15px;
}

.pitstop-warranty-delivery-note {
  margin-top: 10px;
  color: #075184;
  background: #edf9fe;
  border-color: #c8e5ef;
  font-weight: 700;
}

.pitstop-warranty-delivery-form {
  margin-bottom: 12px;
}

.pitstop-warranty-delivery-form .wft-booking-bhero-field {
  margin: 0;
}

.readonly-box {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pitstop-warranty-delivery-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .pitstop-warranty-delivery-summary {
    grid-template-columns: 1fr;
  }
}

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

.claim-charging-upload-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(260px, 0.85fr);
  gap: 12px;
  align-items: end;
}

.claim-charging-upload-row .btn {
  min-width: 132px;
}

.claim-charging-summary {
  min-height: 72px;
  border: 1px solid #e7edf3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: var(--text);
  white-space: pre-wrap;
}

.warranty-zs-approval-list {
  display: grid;
  gap: 12px;
}

.warranty-zs-case {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.warranty-zs-case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.warranty-zs-case-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.warranty-zs-tester-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.warranty-zs-tester-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.warranty-zs-case-head strong {
  display: block;
  color: #111827;
  font-size: 22px;
  line-height: 1.05;
}

.warranty-zs-case-head span,
.warranty-zs-claim-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.warranty-zs-case-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
}

.warranty-zs-case-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.warranty-zs-case-grid strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.warranty-zs-note {
  min-height: 74px;
}

.warranty-zs-claim-actions {
  border-top: 1px solid #edf2f5;
  padding-top: 12px;
}

.warranty-zs-decision-actions {
  border-top: 1px solid #edf2f5;
  padding-top: 12px;
}

.warranty-zs-decision-actions .btn {
  min-height: 42px;
  text-align: left;
  white-space: normal;
}

.zs-desktop-only {
  display: block;
}

.warranty-dashboard {
  display: grid;
  gap: 18px;
}

.warranty-dashboard-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.warranty-dashboard-card,
.warranty-dashboard-menu-card,
.warranty-dashboard-mini,
.warranty-dashboard-legend-row,
.warranty-dashboard-activity-row {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.warranty-dashboard-card:hover,
.warranty-dashboard-menu-card:hover,
.warranty-dashboard-mini:hover,
.warranty-dashboard-legend-row:hover,
.warranty-dashboard-activity-row:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 193, 133, 0.32);
  box-shadow: 0 18px 36px rgba(31, 45, 61, 0.12);
}

.warranty-dashboard-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 18px;
  align-items: center;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.warranty-dashboard-card-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.warranty-dashboard-card-text span,
.warranty-dashboard-menu-card small,
.warranty-dashboard-mini small {
  color: #7b8796;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.warranty-dashboard-card-text strong {
  color: #111827;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.warranty-dashboard-card-text small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.warranty-dashboard-card-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 15px;
  color: #fff;
  font-size: 28px;
  box-shadow: inset 0 -12px 24px rgba(15, 23, 42, 0.16), 0 14px 28px rgba(15, 23, 42, 0.13);
}

.warranty-dashboard-card-green .warranty-dashboard-card-icon,
.warranty-dashboard-card-green.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #31d58d, #18a86d);
}

.warranty-dashboard-card-blue .warranty-dashboard-card-icon,
.warranty-dashboard-card-blue.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #35a4ff, #087ce0);
}

.warranty-dashboard-card-yellow .warranty-dashboard-card-icon,
.warranty-dashboard-card-yellow.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #ffc43d, #e9a500);
}

.warranty-dashboard-card-orange .warranty-dashboard-card-icon,
.warranty-dashboard-card-orange.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #ff9b43, #f36d16);
}

.warranty-dashboard-card-purple .warranty-dashboard-card-icon,
.warranty-dashboard-card-purple.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #9a5cff, #6d2de2);
}

.warranty-dashboard-card-teal .warranty-dashboard-card-icon,
.warranty-dashboard-card-teal.warranty-dashboard-mini span {
  background: linear-gradient(135deg, #2ed3d0, #1399ad);
}

.warranty-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.warranty-dashboard-panel {
  min-width: 0;
}

.warranty-dashboard-panel-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.warranty-dashboard-donut {
  width: min(210px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.warranty-dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.76);
}

.warranty-dashboard-donut div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  place-items: center;
}

.warranty-dashboard-donut strong {
  color: #111827;
  font-size: 32px;
  line-height: 1;
}

.warranty-dashboard-donut span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.warranty-dashboard-legend,
.warranty-dashboard-list,
.warranty-dashboard-bar-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.warranty-dashboard-panel-body .warranty-dashboard-legend {
  padding: 0;
}

.warranty-dashboard-legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  border-radius: 11px;
  padding: 8px 10px;
}

.warranty-dashboard-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.warranty-dashboard-legend-row span:nth-child(2),
.warranty-dashboard-activity-row strong,
.warranty-dashboard-bar-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.warranty-dashboard-legend-row strong {
  color: #111827;
  font-size: 12px;
}

.warranty-dashboard-activity-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border-radius: 13px;
  padding: 10px 12px;
}

.warranty-dashboard-activity-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9f9f1;
  color: #18a86d;
  font-size: 20px;
}

.warranty-dashboard-activity-green .warranty-dashboard-activity-icon {
  background: #e9f9f1;
  color: #18a86d;
}

.warranty-dashboard-activity-yellow .warranty-dashboard-activity-icon {
  background: #fff7db;
  color: #d99700;
}

.warranty-dashboard-activity-orange .warranty-dashboard-activity-icon {
  background: #fff0e4;
  color: #f36d16;
}

.warranty-dashboard-activity-purple .warranty-dashboard-activity-icon {
  background: #f1eaff;
  color: #6d2de2;
}

.warranty-dashboard-activity-blue .warranty-dashboard-activity-icon {
  background: #e7f3ff;
  color: #087ce0;
}

.warranty-dashboard-activity-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.warranty-dashboard-activity-title {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px !important;
}

.warranty-dashboard-activity-title .badge {
  display: inline-flex;
  width: max-content;
}

.warranty-dashboard-activity-row small,
.warranty-dashboard-activity-row time {
  color: var(--muted);
  font-size: 12px;
}

.warranty-dashboard-activity-row time {
  white-space: nowrap;
}

.pitstop-warranty-queue-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.pitstop-warranty-reminder {
  min-width: 220px;
  margin-top: 7px;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
  border: 1px solid #efcc72;
  border-left: 3px solid #d99a00;
  border-radius: 6px;
  background: #fff9e8;
  color: #563d00;
}

.pitstop-warranty-reminder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
}

.pitstop-warranty-reminder-head span:last-child,
.pitstop-warranty-reminder small {
  color: #765d23;
  font-size: 11px;
}

.pitstop-warranty-reminder strong {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.btn.warranty-reminder-action {
  border-color: #d99a00;
  background: #f7b600;
  color: #3f2d00;
  font-weight: 800;
}

.btn.warranty-reminder-action:hover {
  border-color: #b47e00;
  background: #e5a800;
}

.warranty-dashboard-transport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
  padding: 18px;
}

.warranty-dashboard-mini {
  min-height: 128px;
  display: grid;
  gap: 8px;
  align-content: center;
  border-radius: 15px;
  padding: 16px;
}

.warranty-dashboard-mini span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 22px;
}

.warranty-dashboard-mini strong {
  color: #111827;
  font-size: 26px;
  line-height: 1;
}

.warranty-dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(120px, 1.3fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 32px;
}

.warranty-dashboard-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f7;
}

.warranty-dashboard-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #25c185, #0888f5);
}

.warranty-dashboard-bar-row strong {
  text-align: right;
}

.warranty-dashboard-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
}

.warranty-dashboard-menu-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  border-radius: 15px;
  padding: 16px;
}

.warranty-dashboard-menu-card .warranty-dashboard-card-icon {
  width: 52px;
  height: 52px;
  grid-column: 2;
  grid-row: 1;
  font-size: 24px;
}

.warranty-dashboard-menu-card span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.warranty-dashboard-menu-card strong {
  color: #111827;
  font-size: 18px;
  line-height: 1.18;
}

.warranty-dashboard .empty {
  border: 1px dashed #dce5ec;
  border-radius: 13px;
  background: #fbfdfe;
}

@media (max-width: 1180px) {
  .warranty-dashboard-overview,
  .warranty-dashboard-menu-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .warranty-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .warranty-dashboard-overview,
  .warranty-dashboard-menu-grid,
  .warranty-dashboard-transport-grid,
  .warranty-dashboard-panel-body {
    grid-template-columns: 1fr;
  }

  .warranty-dashboard-card,
  .warranty-dashboard-menu-card {
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 102px;
    padding: 16px;
  }

  .warranty-dashboard-card-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .warranty-dashboard-card-text strong {
    font-size: 28px;
  }

  .warranty-dashboard-panel-body {
    padding: 16px;
  }

  .warranty-dashboard-donut {
    width: 190px;
  }

  .warranty-dashboard-activity-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .warranty-dashboard-activity-row time {
    grid-column: 2;
    justify-self: start;
  }

  .warranty-dashboard-bar-row {
    grid-template-columns: 1fr 44px;
  }

  .warranty-dashboard-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shell.role-zs {
    min-height: 100vh;
    padding: 0;
    background: #f5f8fb;
  }

  .shell.role-zs .sidebar {
    display: none;
  }

  .shell.role-zs .main {
    min-height: 100vh;
    border-radius: 0;
  }

  .shell.role-zs .topbar {
    position: sticky;
    top: 0;
    z-index: 8;
    height: 56px;
    padding: 0 12px;
    justify-content: flex-end;
  }

  .shell.role-zs .profile-menu {
    margin-left: auto;
  }

  .shell.role-zs .profile-card {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    z-index: 20;
  }

  .shell.role-zs .content {
    padding: 12px;
  }

  .shell.role-zs .footer {
    display: none;
  }

  .shell.role-zs .zs-desktop-only {
    display: none;
  }

  .warranty-claim-page h1 {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .warranty-claim-page .divider {
    margin-bottom: 12px;
  }

  .warranty-claim-page .panel {
    border-radius: 16px;
  }

  .warranty-claim-page .panel-head {
    min-height: 54px;
    padding: 13px 14px;
  }

  .warranty-claim-page .panel-head h2 {
    font-size: 16px;
  }

  .warranty-claim-page .body {
    padding: 14px;
  }

  .warranty-claim-page .form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .warranty-replacement-battery-grid {
    grid-template-columns: 1fr;
  }

  .warranty-claim-page input,
  .warranty-claim-page select,
  .warranty-claim-page textarea,
  .warranty-claim-page .warranty-dropdown-button,
  .warranty-claim-page .btn {
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }

  .warranty-claim-page textarea {
    min-height: 92px;
  }

  .warranty-claim-page [data-warranty-claim-submit] {
    width: 100%;
  }

  .warranty-claim-table {
    display: none;
  }

  .warranty-claim-cards {
    display: grid;
  }

  .claim-charging-grid,
  .claim-charging-upload-row,
	  .claim-result-evidence-grid,
	  .claim-result-zs-fields,
	  .claim-result-actions,
	  .wft-work-grid,
	  .wft-booking-form .wft-route-grid,
	  .wft-replacement-fields .warranty-replacement-battery-grid {
	    grid-template-columns: 1fr;
	  }

  .claim-result-evidence-main {
    grid-column: auto;
  }

  .claim-result-actions [data-claim-result-action="war"] {
    grid-column: auto;
  }

  .claim-charging-upload-row .btn {
    width: 100%;
  }

  .tester-reference-row {
    grid-template-columns: 1fr;
  }

  .tester-reference-row .btn {
    width: 100%;
  }

  .shell.role-zs h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .shell.role-zs .divider {
    margin-bottom: 12px;
  }

  .shell.role-zs .panel {
    border-radius: 16px;
  }

  .shell.role-zs .panel-head {
    min-height: 54px;
    padding: 13px 14px;
  }

  .shell.role-zs .body {
    padding: 14px;
  }

  .warranty-zs-approval-list {
    gap: 10px;
  }

  .warranty-zs-case {
    border-radius: 14px;
    padding: 14px;
  }

  .warranty-zs-case-grid {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .warranty-zs-actions .btn,
  .warranty-zs-note {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }
}

/* Sales Order colour refresh only. Keep this after the global app styles. */
.pos-sales-page {
  --sales-green: #16b981;
  --sales-teal: #17a2b8;
  --sales-blue: #2f7bf6;
  --sales-amber: #f5b51b;
  --sales-rose: #f0526c;
  --sales-ink: #172033;
  --sales-soft-green: #eafaf2;
  --sales-soft-blue: #edf6ff;
  --sales-soft-teal: #eefbfc;
  --sales-soft-amber: #fff7dc;
  --sales-soft-rose: #fff0f3;
}

.pos-sales-title {
  align-items: center;
  border: 1px solid rgba(47, 123, 246, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(22, 185, 129, 0.14), rgba(23, 162, 184, 0.12) 48%, rgba(245, 181, 27, 0.14)),
    #ffffff;
  padding: 18px 20px;
  box-shadow: 0 14px 32px rgba(31, 45, 61, 0.08);
}

.pos-sales-title h1 {
  color: var(--sales-ink);
}

.pos-sales-title p {
  color: #557086;
}

.pos-sales-title .badge {
  border: 1px solid rgba(22, 185, 129, 0.2);
  background: #dff8ec;
  color: #087149;
}

.pos-sales-card,
.pos-sales-summary-card,
.pos-sales-records {
  border-color: rgba(47, 123, 246, 0.13);
  box-shadow: 0 16px 36px rgba(31, 45, 61, 0.09);
}

.pos-sales-card {
  background:
    linear-gradient(180deg, rgba(234, 250, 242, 0.42), rgba(255, 255, 255, 0) 190px),
    #ffffff;
}

.pos-sales-panel-head {
  background:
    linear-gradient(90deg, rgba(22, 185, 129, 0.16), rgba(23, 162, 184, 0.11)),
    #ffffff;
}

.pos-sales-panel-head h2,
.pos-sales-summary-card .panel-head h2,
.pos-sales-records .panel-head h2 {
  color: #183247;
}

.pos-sales-fields .field {
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.pos-sales-fields .field:nth-child(1) {
  background: linear-gradient(135deg, rgba(234, 250, 242, 0.86), rgba(255, 255, 255, 0.92));
}

.pos-sales-fields .field:nth-child(2) {
  background: linear-gradient(135deg, rgba(237, 246, 255, 0.92), rgba(255, 255, 255, 0.92));
}

.pos-sales-fields .field:nth-child(3) {
  background: linear-gradient(135deg, rgba(255, 247, 220, 0.9), rgba(255, 255, 255, 0.92));
}

.pos-sales-fields .field:nth-child(4) {
  background: linear-gradient(135deg, rgba(238, 251, 252, 0.92), rgba(255, 255, 255, 0.92));
}

.pos-sales-product-section {
  border: 1px solid rgba(23, 162, 184, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(237, 246, 255, 0.74), rgba(255, 255, 255, 0.86) 56px),
    #ffffff;
  padding: 14px;
}

.pos-sales-product-top label {
  color: #0f6f80;
}

.pos-sales-product-top .tiny {
  border: 1px solid rgba(22, 185, 129, 0.18);
  border-radius: 999px;
  background: var(--sales-soft-green);
  color: #087149;
  padding: 6px 10px;
  font-weight: 800;
}

.pos-sales-line-head {
  border-color: rgba(47, 123, 246, 0.16);
  background: linear-gradient(90deg, #eafaf2, #edf6ff);
  color: #36536b;
}

.pos-sales-lines .sales-order-line {
  border-color: rgba(47, 123, 246, 0.13);
  background:
    linear-gradient(90deg, rgba(234, 250, 242, 0.76), rgba(255, 255, 255, 0.96) 30%, rgba(237, 246, 255, 0.62)),
    #ffffff;
}

.pos-sales-lines .sales-order-line:hover {
  background:
    linear-gradient(90deg, rgba(222, 248, 236, 0.92), rgba(255, 255, 255, 0.98) 34%, rgba(232, 247, 255, 0.86)),
    #ffffff;
}

.pos-sales-product-photo {
  border-color: rgba(22, 185, 129, 0.26);
  background: linear-gradient(135deg, #e7faf1, #e7f4ff 58%, #fff7dc);
  color: #0c8a5a;
  box-shadow: inset 0 -10px 18px rgba(22, 185, 129, 0.09);
}

.pos-sales-product-info .pos-sales-warranty-label {
  width: fit-content;
  border-radius: 999px;
  background: #fff3c4;
  color: #8a6100;
  padding: 3px 8px;
}

.pos-sales-stock-pill {
  border: 1px solid rgba(22, 185, 129, 0.18);
  background: #dff8ec;
  color: #087149;
}

.pos-sales-discount-pill {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 181, 27, 0.3);
  border-radius: 10px;
  background: var(--sales-soft-amber);
  color: #805c00;
  font-weight: 900;
}

.pos-sales-discount-pill.is-empty {
  border-color: rgba(148, 163, 184, 0.18);
  background: #f4f7fa;
  color: #94a3b8;
}

.pos-sales-lines [data-so-line-total] {
  border-color: rgba(47, 123, 246, 0.18);
  background: #eef6ff;
  color: #174ea6;
}

.pos-sales-remove {
  border-color: rgba(240, 82, 108, 0.24);
  background: var(--sales-soft-rose);
  color: #bd263f;
}

.pos-sales-add-line {
  border-color: rgba(23, 162, 184, 0.22);
  background: var(--sales-soft-teal);
  color: #0f6f80;
}

.pos-sales-submit {
  background: linear-gradient(90deg, #19c97f, #16b8a7, #2f7bf6);
  box-shadow: 0 14px 28px rgba(22, 185, 129, 0.24);
}

.pos-sales-summary-card:nth-child(1) {
  border-top: 4px solid var(--sales-blue);
}

.pos-sales-summary-card:nth-child(2) {
  border-top: 4px solid var(--sales-green);
}

.pos-sales-summary-card:nth-child(3) {
  border-top: 4px solid var(--sales-amber);
}

.pos-sales-summary-card .panel-head {
  background: linear-gradient(90deg, rgba(237, 246, 255, 0.78), rgba(255, 255, 255, 0.96));
}

.pos-summary-row {
  border-radius: 12px;
  background: #f8fbfd;
  padding: 8px 10px;
}

.pos-summary-row:nth-of-type(1) {
  background: var(--sales-soft-blue);
}

.pos-summary-row:nth-of-type(2) {
  background: var(--sales-soft-green);
}

.pos-summary-row:nth-of-type(3) {
  background: var(--sales-soft-amber);
}

.pos-summary-row:nth-of-type(4) {
  background: var(--sales-soft-teal);
}

.pos-summary-total {
  border-top-color: rgba(47, 123, 246, 0.24);
  border-radius: 14px;
  background: linear-gradient(90deg, #eef6ff, #e9fbf3);
  padding: 14px;
}

.pos-sales-change-row {
  border: 1px solid rgba(22, 185, 129, 0.18);
  background: linear-gradient(90deg, #e6fbf1, #eefbfc);
}

.pos-sales-actions .btn:first-child {
  border-color: rgba(47, 123, 246, 0.2);
  background: var(--sales-soft-blue);
  color: #174ea6;
}

.pos-sales-actions .btn:last-child {
  border-color: rgba(245, 181, 27, 0.28);
  background: var(--sales-soft-amber);
  color: #805c00;
}

.pos-sales-note-card {
  border-color: rgba(23, 162, 184, 0.22);
  background: linear-gradient(135deg, #e9fbf3, #eefbfc 58%, #fff8df);
  color: #0d7460;
}

.pos-sales-records:nth-of-type(1) .panel-head {
  background: linear-gradient(90deg, rgba(237, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.pos-sales-records:nth-of-type(2) .panel-head {
  background: linear-gradient(90deg, rgba(255, 247, 220, 0.9), rgba(234, 250, 242, 0.78));
}

.pos-sales-records th {
  background: linear-gradient(90deg, #f0fbfc, #f8fafc);
}

.pos-sales-records tr:hover td {
  background: #f6fcff;
}

@media (max-width: 650px) {
  .pos-sales-title {
    align-items: flex-start;
  }

  .pos-sales-title .badge {
    align-self: flex-start;
  }
}

/* Dashboard-style Sales Order colour pass. */
.pos-sales-page {
  --sales-green: #25c185;
  --sales-blue: #0888f5;
  --sales-teal: #22b8bd;
  --sales-yellow: #f7b600;
  --sales-orange: #ff7a1a;
  --sales-purple: #7c3aed;
  --sales-soft-green: #e7faf1;
  --sales-soft-blue: #e8f4ff;
  --sales-soft-teal: #e9fbfc;
  --sales-soft-yellow: #fff6d8;
  --sales-soft-orange: #fff1e6;
  --sales-soft-purple: #f2eaff;
}

.pos-sales-title {
  position: relative;
  overflow: hidden;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px 18px 28px;
  box-shadow: var(--shadow-soft);
}

.pos-sales-title::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 14px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sales-green), var(--sales-blue), var(--sales-yellow));
}

.pos-sales-title h1 {
  color: #111827;
}

.pos-sales-title p {
  color: #7b8796;
}

.pos-sales-title .badge {
  border-radius: 999px;
}

.pos-sales-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
}

.pos-sales-metric-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 16px;
  background: #fff;
  color: #111827;
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pos-sales-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 193, 133, 0.34);
  box-shadow: 0 18px 36px rgba(31, 45, 61, 0.13);
}

.pos-sales-metric-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: start;
  border-radius: 15px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  box-shadow: inset 0 -12px 24px rgba(15, 23, 42, 0.16), 0 14px 28px rgba(15, 23, 42, 0.13);
}

.pos-sales-metric-text {
  display: grid;
  grid-column: 2;
  gap: 4px;
  min-width: 0;
}

.pos-sales-metric-text span {
  color: #7b8796;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pos-sales-metric-text strong {
  min-width: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.pos-sales-metric-text small {
  min-width: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pos-sales-metric-green .pos-sales-metric-icon {
  background: linear-gradient(135deg, #31d58d, #18a86d);
}

.pos-sales-metric-blue .pos-sales-metric-icon {
  background: linear-gradient(135deg, #35a4ff, #087ce0);
}

.pos-sales-metric-teal .pos-sales-metric-icon {
  background: linear-gradient(135deg, #2ed3d0, #1399ad);
}

.pos-sales-metric-yellow .pos-sales-metric-icon {
  background: linear-gradient(135deg, #ffc43d, #e9a500);
}

.pos-sales-metric-orange .pos-sales-metric-icon {
  background: linear-gradient(135deg, #ff9b43, #f36d16);
}

.pos-sales-metric-purple .pos-sales-metric-icon {
  background: linear-gradient(135deg, #9a5cff, #6d2de2);
}

.pos-sales-card,
.pos-sales-summary-card,
.pos-sales-records {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pos-sales-card {
  border-top: 4px solid var(--sales-green);
}

.pos-sales-panel-head,
.pos-sales-summary-card .panel-head,
.pos-sales-records .panel-head {
  background: #fff;
}

/* POS order entry: restrained hierarchy for repeated daily use. */
.pos-sales-fields {
  gap: 12px;
}

.pos-sales-fields .field,
.pos-sales-fields .field:nth-child(1),
.pos-sales-fields .field:nth-child(2),
.pos-sales-fields .field:nth-child(3),
.pos-sales-fields .field:nth-child(4),
.pos-sales-fields .field:nth-child(5) {
  min-height: 74px;
  border: 1px solid #d4dee4;
  border-left: 1px solid #d4dee4;
  border-radius: 8px;
  background: #f7f9fa;
  padding: 10px 12px;
}

.pos-sales-fixed-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
}

.pos-sales-fixed-field span {
  color: #687886;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-sales-fixed-field strong {
  grid-column: 1 / -1;
  min-width: 0;
  color: #162a33;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pos-sales-input-field label {
  color: #425462;
}

.pos-sales-fields .pos-sales-input-field input {
  border-color: #cbd7de;
  background: #fff;
  color: #162a33;
  box-shadow: inset 0 1px 2px rgba(18, 42, 51, .03);
}

.pos-sales-fields .pos-sales-input-field input:focus {
  border-color: #25775d;
  box-shadow: 0 0 0 3px rgba(37, 119, 93, .12);
}

.pos-sales-product-section {
  gap: 12px;
  border-color: #cfdbe1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pos-sales-product-top label {
  color: #1d3039;
  font-size: 13px;
  font-weight: 900;
}

.pos-sales-line-head,
.pos-sales-lines .sales-order-line {
  grid-template-columns: minmax(320px, 1fr) 70px 54px 88px 84px 92px 98px 44px;
  gap: 8px;
}

.pos-sales-line-head {
  min-height: 42px;
  border-color: #174b3b;
  border-radius: 6px 6px 0 0;
  background: #174b3b;
  color: #fff;
  padding: 0 10px;
  font-size: 10px;
}

.pos-sales-lines .sales-order-line {
  min-height: 86px;
  border-color: #d9e2e7;
  background: #fff;
  padding: 10px;
  align-items: center;
}

.pos-sales-lines .sales-order-line:nth-child(even) {
  background: #fafcfc;
}

.pos-sales-lines .sales-order-line:hover {
  background: #f5f9f8;
  box-shadow: inset 3px 0 0 #5a8c79;
}

.pos-sales-lines .sales-order-line.is-pwp {
  box-shadow: inset 3px 0 0 #1f8a63;
}

.pos-sales-lines .sales-order-line.is-promotion {
  box-shadow: inset 3px 0 0 #2886b8;
}

.pos-sales-product-photo {
  width: 44px;
  height: 44px;
  border-color: #cfdbe1;
  border-radius: 6px;
  background: #f3f6f7;
  box-shadow: none;
}

.pos-sales-product-cell {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}

.pos-sales-product-info {
  gap: 3px;
}

.pos-sales-product-info strong {
  color: #172b34;
  font-size: 12px;
}

.pos-sales-product-info span {
  color: #657683;
  font-size: 10px;
}

.pos-sales-product-info .pos-sales-warranty-label {
  border-radius: 4px;
  background: #eef3f1;
  color: #27644f;
  padding: 2px 6px;
}

.pos-sales-product-info .standard-select-button,
.pos-sales-product-info select,
.pos-sales-price-mode .standard-select-button,
.pos-sales-price-mode select,
.pos-sales-lines .sales-order-line > input {
  border-color: #cbd7de;
  border-radius: 6px;
  background: #fff;
  color: #253943;
}

.pos-sales-lines .sales-order-line > input,
.pos-sales-lines .sales-order-line > button,
.pos-sales-lines .sales-order-line > .pos-sales-plate-empty,
.pos-sales-lines .sales-order-line > .pos-sales-stock-pill,
.pos-sales-lines .sales-order-line > .pos-sales-discount-pill,
.pos-sales-lines .sales-order-line > .pos-sales-price-mode {
  align-self: center;
  min-height: 36px;
  height: 36px;
}

.pos-sales-stock-pill,
.pos-sales-discount-pill,
.pos-sales-discount-pill.is-empty {
  border-color: #d2dde2;
  border-radius: 6px;
  background: #f1f4f5;
  color: #435660;
}

.pos-sales-stock-pill {
  background: #eef5f2;
  color: #245f4a;
}

.pos-sales-discount-pill.is-pwp,
.sales-order-line.is-pwp input[readonly][name="soUnitPrice"] {
  border-color: #b8dccd;
  background: #eaf7f1;
  color: #126345;
}

.sales-order-line.is-pwp .pos-sales-price-mode .standard-select-button,
.sales-order-line.is-pwp .pos-sales-price-mode select {
  border-color: #b8dccd;
  background: #eaf7f1;
  color: #126345;
}

.pos-sales-lines [data-so-line-total] {
  border-color: #c3d7ce;
  background: #f0f6f3;
  color: #174b3b;
}

.pos-sales-remove {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-color: #dfc9cd;
  border-radius: 6px;
  background: #fff;
  color: #9f2f40;
  font-size: 22px;
  font-weight: 500;
}

.pos-sales-add-line {
  border-color: #cbd7de;
  border-radius: 6px;
  background: #f7f9fa;
  color: #294b3e;
}

.pos-sales-panel-head {
  border-bottom-color: rgba(37, 193, 133, 0.16);
}

.pos-sales-summary-card:nth-child(1) {
  border-top: 4px solid var(--sales-blue);
}

.pos-sales-summary-card:nth-child(2) {
  border-top: 4px solid var(--sales-green);
}

.pos-sales-summary-card:nth-child(3) {
  border-top: 4px solid var(--sales-yellow);
}

.pos-sales-fields .field {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-left-width: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 45, 61, 0.05);
}

.pos-sales-fields .field:nth-child(1) {
  border-left-color: var(--sales-green);
}

.pos-sales-fields .field:nth-child(2) {
  border-left-color: var(--sales-blue);
}

.pos-sales-fields .field:nth-child(3) {
  border-left-color: var(--sales-yellow);
}

.pos-sales-fields .field:nth-child(4) {
  border-left-color: var(--sales-teal);
}

.pos-sales-product-section {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.pos-sales-product-top label {
  color: #172033;
}

.pos-sales-product-top .tiny {
  border-color: rgba(37, 193, 133, 0.2);
  background: var(--sales-soft-green);
  color: #0b8154;
}

.pos-sales-line-head {
  border-color: rgba(226, 232, 240, 0.94);
  background: #f8fafc;
  color: #5d6c7f;
}

.pos-sales-lines .sales-order-line {
  border-color: rgba(226, 232, 240, 0.94);
  background: #fff;
}

.pos-sales-lines .sales-order-line:hover {
  background: #fbfdfe;
  box-shadow: inset 4px 0 0 rgba(8, 136, 245, 0.16);
}

.pos-sales-product-photo {
  border-color: rgba(37, 193, 133, 0.22);
  background: linear-gradient(135deg, #e7faf1, #e8f4ff);
  color: #0b8154;
}

.pos-sales-product-info .pos-sales-warranty-label {
  background: var(--sales-soft-yellow);
  color: #806000;
}

.pos-sales-stock-pill {
  border-color: rgba(37, 193, 133, 0.18);
  background: var(--sales-soft-green);
  color: #0b8154;
}

.pos-sales-discount-pill {
  border-color: rgba(247, 182, 0, 0.28);
  background: var(--sales-soft-yellow);
  color: #806000;
}

.pos-sales-lines [data-so-line-total] {
  border-color: rgba(8, 136, 245, 0.18);
  background: var(--sales-soft-blue);
  color: #075184;
}

.pos-sales-remove {
  border-color: rgba(231, 59, 81, 0.22);
  background: #fff0f2;
  color: #b92338;
}

.pos-sales-add-line {
  border-color: rgba(34, 184, 189, 0.22);
  background: var(--sales-soft-teal);
  color: #0f6f80;
}

.pos-sales-submit {
  min-height: 62px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--sales-green), var(--sales-teal), var(--sales-blue));
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 20px 38px rgba(37, 193, 133, 0.28), 0 0 0 4px rgba(37, 193, 133, 0.12);
}

.pos-sales-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(37, 193, 133, 0.34), 0 0 0 5px rgba(37, 193, 133, 0.16);
}

.pos-sales-submit:focus-visible {
  outline: 3px solid rgba(47, 123, 246, 0.45);
  outline-offset: 3px;
}

.pos-sales-submit:disabled {
  transform: none;
  box-shadow: none;
}

.pos-summary-row {
  background: #fbfdfe;
}

.pos-summary-row:nth-of-type(1) {
  background: var(--sales-soft-blue);
}

.pos-summary-row:nth-of-type(2) {
  background: var(--sales-soft-green);
}

.pos-summary-row:nth-of-type(3) {
  background: var(--sales-soft-yellow);
}

.pos-summary-row:nth-of-type(4) {
  background: var(--sales-soft-teal);
}

.pos-summary-total {
  border-top-color: rgba(8, 136, 245, 0.22);
  background: linear-gradient(90deg, var(--sales-soft-blue), var(--sales-soft-green));
}

.pos-sales-change-row {
  border: 1px solid rgba(37, 193, 133, 0.18);
  background: var(--sales-soft-green);
}

.pos-sales-actions .btn:first-child {
  border-color: rgba(8, 136, 245, 0.2);
  background: var(--sales-soft-blue);
  color: #075184;
}

.pos-sales-actions .btn:last-child {
  border-color: rgba(247, 182, 0, 0.28);
  background: var(--sales-soft-yellow);
  color: #806000;
}

.pos-sales-note-card {
  border-color: rgba(34, 184, 189, 0.22);
  background: linear-gradient(135deg, var(--sales-soft-green), var(--sales-soft-teal));
  color: #0d7460;
}

.pos-sales-records .panel-head {
  border-bottom-color: rgba(226, 232, 240, 0.94);
}

.pos-sales-records:first-of-type {
  border-top: 4px solid var(--sales-blue);
}

.pos-sales-records + .pos-sales-records {
  border-top: 4px solid var(--sales-purple);
}

.pos-sales-records th {
  background: #f8fafc;
}

.pos-sales-records tr:hover td {
  background: #fbfdfe;
}

/* Professional Sales Order refinement. */
.pos-sales-page {
  --sales-green: #22b47e;
  --sales-blue: #2f7bf6;
  --sales-teal: #2c9fa3;
  --sales-yellow: #d9a514;
  --sales-soft-green: #eefaf4;
  --sales-soft-blue: #f2f7fc;
  --sales-soft-teal: #f3f8f9;
  --sales-soft-yellow: #fbf6e7;
  --sales-soft-purple: #f6f4fb;
}

.pos-sales-card,
.pos-sales-summary-card,
.pos-sales-records {
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.pos-sales-card,
.pos-sales-summary-card:nth-child(1),
.pos-sales-summary-card:nth-child(2),
.pos-sales-summary-card:nth-child(3),
.pos-sales-records:first-of-type,
.pos-sales-records + .pos-sales-records {
  border-top: 1px solid #dfe8ef;
}

.pos-sales-panel-head,
.pos-sales-summary-card .panel-head,
.pos-sales-records .panel-head {
  min-height: 56px;
  border-bottom: 1px solid #e5edf3;
  background: #fff;
}

.pos-sales-fields {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px 16px;
  align-items: stretch;
}

.pos-sales-fields .field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid #dfe8ef;
  border-left-width: 1px;
  border-left-color: #dfe8ef;
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: none;
}

.pos-sales-fields .field:nth-child(1),
.pos-sales-fields .field:nth-child(2),
.pos-sales-fields .field:nth-child(3),
.pos-sales-fields .field:nth-child(4) {
  border-left-color: #dfe8ef;
}

.pos-sales-fields .field label {
  line-height: 1.2;
}

.pos-sales-fields .field input {
  height: 38px;
}

.pos-sales-product-section {
  border: 1px solid #dfe8ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.pos-sales-product-top .tiny {
  border-color: #dbe6ee;
  background: #f4f8fb;
  color: #344654;
}

.pos-sales-line-head,
.pos-sales-lines .sales-order-line {
  grid-template-columns: minmax(340px, 1fr) 74px 58px 84px 82px 82px 94px 72px;
  gap: 10px;
  align-items: center;
}

.pos-sales-line-head {
  min-height: 36px;
  border-color: #dfe8ef;
  border-radius: 8px 8px 0 0;
  background: #f5f8fb;
  color: #536478;
  padding: 0 12px;
  text-align: center;
}

.pos-sales-line-head span:first-child {
  text-align: left;
}

.pos-sales-lines .sales-order-line {
  min-height: 74px;
  border-color: #dfe8ef;
  background: #fff;
  padding: 12px;
  align-items: end;
}

.pos-sales-lines .sales-order-line:hover {
  background: #fbfdff;
  box-shadow: none;
}

.pos-sales-product-photo {
  width: 46px;
  height: 46px;
  border-color: #dce8e7;
  border-radius: 10px;
  background: #eef6f5;
  color: #116d4c;
  box-shadow: none;
}

.pos-sales-product-cell {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.pos-sales-product-info {
  gap: 5px;
}

.pos-sales-product-info strong {
  font-size: 13px;
  line-height: 1.2;
}

.pos-sales-product-info span {
  font-size: 10px;
  line-height: 1.2;
}

.pos-sales-product-info .standard-select-button,
.pos-sales-product-info select {
  height: 34px;
  min-height: 34px;
  margin-top: 2px;
}

.pos-sales-lines .sales-order-line > input,
.pos-sales-lines .sales-order-line > button,
.pos-sales-lines .sales-order-line > .pos-sales-plate-empty,
.pos-sales-lines .sales-order-line > .pos-sales-stock-pill,
.pos-sales-lines .sales-order-line > .pos-sales-discount-pill,
.pos-sales-lines .sales-order-line > .pos-sales-price-mode {
  align-self: end;
  height: 34px;
  min-height: 34px;
}

.pos-sales-price-mode,
.pos-sales-price-mode .standard-select,
.pos-sales-price-mode .standard-select-button {
  width: 100%;
  min-width: 0;
}

.pos-sales-price-mode .standard-select-button,
.pos-sales-price-mode select {
  min-height: 34px;
  height: 34px;
  border-radius: 9px;
  font-weight: 800;
}

.pos-sales-lines input[readonly][name="soUnitPrice"] {
  background: #eef9f4;
  color: #08734d;
}

.pos-sales-plate-empty {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #dbe6ee;
  border-radius: 9px;
  background: #f7fafc;
  color: #7b8796;
  font-weight: 900;
}

.pos-sales-stock-pill,
.pos-sales-discount-pill {
  min-height: 34px;
  border: 1px solid #dbe6ee;
  border-radius: 9px;
  border-color: #dbe6ee;
  background: #f3f7fa;
  color: #344654;
}

.pos-sales-discount-pill.is-empty {
  background: #f3f6f9;
  color: #7b8796;
}

.pos-sales-lines [data-so-line-total] {
  min-height: 34px;
  border-color: #dbe6ee;
  border-radius: 9px;
  background: #fff;
  color: #172033;
}

.pos-sales-lines [data-so-line-total] {
  background: #f7fafc;
  font-weight: 900;
}

.pos-sales-remove {
  min-height: 34px;
  border-radius: 9px;
  border-color: #e8c5cc;
  background: #fff;
  color: #9f1f32;
}

.pos-sales-add-line,
.pos-sales-actions .btn:first-child,
.pos-sales-actions .btn:last-child {
  border-color: #dbe6ee;
  background: #f7fafc;
  color: #344654;
}

.pos-sales-submit {
  min-height: 46px;
  border-radius: 10px;
  background: #26bd88;
  font-size: 14px;
  box-shadow: none;
}

.pos-sales-submit:hover {
  box-shadow: none;
}

.pos-summary-row,
.pos-summary-row:nth-of-type(1),
.pos-summary-row:nth-of-type(2),
.pos-summary-row:nth-of-type(3),
.pos-summary-row:nth-of-type(4) {
  background: #f7fafc;
}

.pos-summary-total {
  border-top-color: #dbe6ee;
  background: #eef6f5;
}

.pos-sales-change-row {
  border-color: #dbe6ee;
  background: #f7fafc;
}

.pos-sales-slip-field input[type="file"] {
  border-color: #dbe6ee;
  background: #f7fafc;
}

.pos-sales-slip-field input[type="file"]::file-selector-button {
  background: #3d9c7c;
}

.pos-sales-note-card {
  border-color: #dbe6ee;
  background: #f7fafc;
  color: #344654;
}

.pos-sales-records .panel-head {
  background: #fff;
}

@media (max-width: 900px) {
  .pos-sales-fields,
  .pos-sales-summary-stack {
    grid-template-columns: 1fr;
  }

  .pos-sales-line-head {
    display: none;
  }

  .pos-sales-lines {
    gap: 10px;
  }

  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr 1fr;
    border: 1px solid #dfe8ef;
    border-radius: 10px;
  }

  .pos-sales-product-cell,
  .pos-sales-remove {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr;
  }
}

/* Workflow state language: action, oversight and completed history. */
.workflow-action-panel,
.workflow-review-panel,
.workflow-history-panel {
  overflow: hidden;
}

.workflow-action-panel {
  border-top: 4px solid #cf4053;
  box-shadow: 0 9px 22px rgba(157, 42, 59, .1);
}

.workflow-action-panel > .panel-head {
  border-bottom-color: #f0cbd1;
  background: #fff4f6;
}

.workflow-review-panel {
  border-top: 3px solid #3587ad;
  box-shadow: 0 5px 14px rgba(42, 101, 130, .07);
}

.workflow-review-panel > .panel-head {
  border-bottom-color: #d7e7ef;
  background: #f2f8fb;
}

.workflow-history-panel {
  border-top: 3px solid #6f8f81;
  box-shadow: 0 3px 10px rgba(55, 79, 69, .05);
}

.workflow-history-panel > .panel-head {
  border-bottom-color: #dce6e1;
  background: #f3f7f5;
}

.workflow-panel-heading {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workflow-panel-heading small {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.workflow-panel-heading h2 {
  margin: 0;
}

.workflow-panel-heading p {
  margin: 2px 0 0;
  color: #657787;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.workflow-action-panel .workflow-panel-heading small {
  color: #ad3043;
}

.workflow-review-panel .workflow-panel-heading small {
  color: #176b94;
}

.workflow-history-panel .workflow-panel-heading small {
  color: #4b7161;
}

.workflow-action-panel table tbody tr:hover {
  background: #fff8f9;
}

.workflow-review-panel table tbody tr {
  background: #fbfdfe;
}

.workflow-history-panel table tbody tr {
  background: #fafcfb;
  color: #53656e;
}

.workflow-action-panel .daily-complaint-accordion {
  background: #fff1f3;
}

.workflow-action-panel .daily-complaint-pitstop-group {
  border-left-color: #cf4053;
}

.workflow-action-panel .daily-complaint-pitstop-group > summary {
  background: #fff7f8;
}

.workflow-action-panel .daily-complaint-pitstop-group > summary .daily-complaint-group-title strong {
  color: #992f3f;
}

.workflow-history-panel .daily-complaint-accordion {
  background: #f1f5f3;
}

.workflow-history-panel .daily-complaint-pitstop-group {
  border-left-color: #718f82;
}

.workflow-history-panel .daily-complaint-pitstop-group > summary {
  background: #f4f8f6;
}

.workflow-history-panel .daily-complaint-pitstop-group > summary .daily-complaint-group-title strong {
  color: #3e6454;
}

.workflow-action-panel .management-issue-pitstop-group,
.workflow-action-panel .management-issue-zs-accordion {
  border-left: 4px solid #cf4053;
}

.workflow-action-panel .management-issue-pitstop-group-head,
.workflow-action-panel .management-issue-zs-summary {
  background: #fff7f8;
}

.workflow-review-panel .management-issue-pitstop-group-head,
.workflow-review-panel .management-issue-zs-summary {
  background: #f4f9fb;
}

.workflow-history-panel .management-issue-pitstop-group-head,
.workflow-history-panel .management-issue-zs-summary {
  background: #f4f8f6;
}

.workflow-action-panel .sm-operation-escalation-history,
.workflow-history-panel .sm-operation-escalation-history {
  border-top-color: #cadcd3;
  background: #f1f6f3;
}

@media (max-width: 700px) {
  .workflow-panel-heading p {
    display: none;
  }
}

.sm-period-tabs {
  display: inline-flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid #d8e3ea;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sm-period-tabs button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #d8e3ea;
  border-radius: 0;
  background: #fff;
  color: #40515e;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
}

.sm-period-tabs button:last-child {
  border-right: 0;
}

.sm-period-tabs button.active {
  background: #0f725f;
  color: #fff;
}

.sm-zs-rating-tile {
  cursor: default;
}

.sm-period-toolbar-visual {
  justify-content: flex-start;
  background: #fbfdff;
  padding: 12px 14px;
}

.sm-period-selector {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.sm-period-selector .sm-period-tabs {
  align-self: end;
}

.sm-period-field {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.sm-period-field span {
  color: #5f7180;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sm-period-field input,
.sm-period-field select {
  height: 38px;
  border: 1px solid #d8e3ea;
  border-radius: 8px;
  background: #fff;
  color: #173245;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-period-selector-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: end;
  min-height: 38px;
}

.sm-zs-graph-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e4edf2;
  padding-bottom: 6px;
}

.sm-zs-graph-period span {
  color: #5f7180;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sm-zs-graph-period strong {
  color: #173245;
  font-size: 12px;
  font-weight: 900;
}

.sm-zs-selector {
  grid-template-columns: minmax(0, 1fr);
  min-height: 64px;
}

.sm-zs-selector b,
.sm-zs-selector em {
  display: none;
}

.management-issue-sm-pitstop-head,
.management-issue-sm-pitstop-row {
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, .72fr) minmax(120px, .62fr) minmax(120px, .62fr) minmax(260px, 1.55fr);
}

/* Complaint lists: Pitstop > Urgency > Date */
.daily-complaint-search-panel {
  border-top: 3px solid #168967;
}

.daily-complaint-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.daily-complaint-filter-form .field {
  min-width: 0;
}

.daily-complaint-filter-query {
  grid-column: span 2;
}

.daily-complaint-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.daily-complaint-case-ref {
  display: inline-block;
  color: #155f49;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-complaint-accordion {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f3f6f7;
}

.daily-complaint-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e1e5;
  border-radius: 8px;
  background: #fff;
}

.daily-complaint-group > summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.daily-complaint-group > summary::-webkit-details-marker {
  display: none;
}

.daily-complaint-group > summary:hover {
  background: #f7faf9;
}

.daily-complaint-group[open] > summary {
  border-bottom: 1px solid #dbe4e7;
}

.daily-complaint-group-title {
  min-width: 0;
}

.daily-complaint-group-title small,
.daily-complaint-group-title strong {
  display: block;
}

.daily-complaint-group-title small {
  margin-bottom: 3px;
  color: #617486;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-complaint-group-title strong {
  color: #1d3340;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.daily-complaint-group-meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.daily-complaint-group-meta i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #607383;
  border-bottom: 2px solid #607383;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.daily-complaint-group[open] > summary .daily-complaint-group-meta i {
  transform: rotate(225deg);
}

.daily-complaint-pitstop-group {
  border-left: 4px solid #168967;
}

.daily-complaint-pitstop-group > summary {
  background: #f1f8f5;
}

.daily-complaint-pitstop-group > summary .daily-complaint-group-title strong {
  color: #155f49;
  font-size: 15px;
}

.daily-complaint-group-body {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #f8fafb;
}

.daily-complaint-urgency-group {
  border-left-width: 4px;
}

.daily-complaint-urgency-group.is-red {
  border-left-color: #d34255;
}

.daily-complaint-urgency-group.is-yellow {
  border-left-color: #d59a12;
}

.daily-complaint-urgency-group.is-blue {
  border-left-color: #2684b8;
}

.daily-complaint-date-group > summary {
  min-height: 44px;
  background: #fff;
}

.daily-complaint-date-group > summary .daily-complaint-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.daily-complaint-date-group > summary .daily-complaint-group-title small {
  margin: 0;
}

.daily-complaint-group-table {
  overflow-x: auto;
  border-top: 1px solid #e1e8eb;
}

.daily-complaint-group-table .table-wrap {
  border: 0;
  border-radius: 0;
}

.daily-complaint-group-table table {
  min-width: 980px;
}

@media (max-width: 650px) {
  .daily-complaint-filter-form {
    grid-template-columns: 1fr;
  }

  .daily-complaint-filter-query {
    grid-column: auto;
  }

  .daily-complaint-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .daily-complaint-accordion {
    padding: 8px;
  }

  .daily-complaint-group > summary {
    padding: 9px 10px;
  }

  .daily-complaint-group-body {
    padding: 7px;
  }
}

/* SM issue monitoring: compact pitstop summary with full-width detail */
.management-issue-sm-pitstop-head,
.management-issue-sm-pitstop-row {
  grid-template-columns:
    minmax(220px, 1.5fr)
    minmax(120px, .8fr)
    minmax(110px, .7fr)
    minmax(120px, .75fr)
    minmax(92px, .55fr)
    minmax(112px, .65fr);
}

.management-issue-sm-detail-cell {
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid #e5ecef;
  padding-top: 9px;
}

.management-issue-sm-latest {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.management-issue-sm-latest > strong {
  flex: 0 0 auto;
  color: #607080;
  font-size: 10px;
  text-transform: uppercase;
}

.management-issue-sm-latest > small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.management-issue-sm-detail {
  width: 100%;
}

.management-issue-sm-detail > summary {
  margin-top: 0;
}

.management-issue-sm-detail[open] > summary {
  margin-bottom: 10px;
}

.management-issue-sm-detail .management-issue-summary-cards {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  align-items: start;
}

@media (max-width: 1200px) {
  .management-issue-sm-pitstop-head {
    display: none;
  }

  .management-issue-sm-pitstop-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .management-issue-sm-detail .management-issue-summary-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .management-issue-sm-pitstop-row {
    grid-template-columns: 1fr;
  }

  .management-issue-sm-latest {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.sm-monitoring-pitstop-head,
.sm-monitoring-pitstop-row {
  grid-template-columns:
    minmax(170px, 1.35fr)
    minmax(112px, .8fr)
    repeat(2, minmax(76px, .52fr))
    repeat(3, minmax(82px, .56fr))
    repeat(3, minmax(82px, .56fr));
}

.sm-monitoring-pitstop-head-stacked {
  grid-template-rows: 18px 18px;
  align-items: stretch;
}

.sm-monitoring-pitstop-head-stacked span {
  display: grid;
  place-items: center;
  text-align: center;
}

.sm-monitoring-pitstop-head-stacked .sm-head-rowspan {
  grid-row: 1 / 3;
}

.sm-monitoring-pitstop-row > div:nth-child(n+3) {
  justify-items: center;
  text-align: center;
}

.sm-monitoring-pitstop-grid {
  gap: 9px;
}

.sm-monitoring-pitstop-head {
  min-height: 48px;
  border: 1px solid #d9e6eb;
  background: linear-gradient(180deg, #f7fbfc 0%, #edf4f7 100%);
  box-shadow: inset 0 -1px 0 rgba(31, 73, 91, .05);
}

.sm-monitoring-pitstop-head-stacked span {
  min-height: 20px;
  border-radius: 5px;
}

.sm-monitoring-pitstop-head-stacked .sm-head-group {
  color: #16364b;
}

.sm-monitoring-pitstop-head-stacked .is-complaint {
  background: #fff1f3;
  color: #9b2f41;
}

.sm-monitoring-pitstop-head-stacked .is-report {
  background: #fff7df;
  color: #7b5607;
}

.sm-monitoring-pitstop-head-stacked .is-warranty {
  background: #eef7ff;
  color: #0b5c88;
}

.sm-monitoring-pitstop-head-stacked .is-checklist {
  background: #eef9f2;
  color: #17683e;
}

.sm-monitoring-pitstop-row {
  min-height: 62px;
  align-items: stretch;
  border-color: #d7e5ec;
  border-left-width: 5px;
  box-shadow: 0 6px 15px rgba(26, 47, 58, .05);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.sm-monitoring-pitstop-row:hover {
  transform: translateY(-1px);
  border-color: #bcd2dd;
  box-shadow: 0 10px 22px rgba(26, 47, 58, .09);
}

.sm-monitoring-pitstop-row.is-red {
  background: linear-gradient(90deg, #fff6f7 0%, #fff 16%);
}

.sm-monitoring-pitstop-row.is-yellow {
  background: linear-gradient(90deg, #fffaf0 0%, #fff 16%);
}

.sm-monitoring-pitstop-row.is-blue {
  background: linear-gradient(90deg, #f2fbff 0%, #fff 16%);
}

.sm-monitoring-pitstop-row.is-green {
  background: linear-gradient(90deg, #f5fbf8 0%, #fff 16%);
}

.sm-pitstop-cell {
  align-content: center;
}

.sm-pitstop-name-cell {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sm-pitstop-name-cell > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sm-pitstop-name-cell .badge {
  justify-self: end;
  white-space: nowrap;
}

.pitstop-health-risk-pill {
  min-width: 104px;
  min-height: 42px;
  flex: 0 0 auto;
  gap: 7px;
  border-color: #d9e4e9;
  border-left-color: var(--rating-color);
  padding: 4px 9px 4px 6px;
  box-shadow: 0 7px 16px rgba(26, 47, 58, .10);
}

.pitstop-health-risk-pill .pitstop-rating-score {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.pitstop-health-risk-pill .pitstop-rating-copy {
  min-width: 48px;
}

@media (max-width: 720px) {
  .pitstop-health-risk-pill {
    min-width: 42px;
    width: 42px;
    justify-content: center;
    padding: 4px;
    border-left-width: 1px;
  }

  .pitstop-health-risk-pill .pitstop-rating-copy {
    display: none;
  }
}

.sm-pitstop-opening-cell {
  justify-items: start;
}

.sm-pitstop-opening-cell small {
  font-size: 10px;
}

.sm-pitstop-metric {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid #e1ebef;
  border-radius: 8px;
  background: #f8fbfc;
}

.sm-pitstop-metric strong {
  font-size: 15px;
  line-height: 1;
}

.sm-pitstop-metric.is-zero {
  color: #9aaab4;
  background: #f8fafb;
}

.sm-pitstop-metric.has-value {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.sm-pitstop-metric.is-high.has-value {
  border-color: #fac6cf;
  background: #ffe8ec;
  color: #a22d41;
}

.sm-pitstop-metric.is-medium.has-value,
.sm-pitstop-metric.is-report.has-value,
.sm-pitstop-metric.is-checklist.has-value {
  border-color: #f3dc8b;
  background: #fff5cf;
  color: #7b5607;
}

.sm-pitstop-metric.is-complaint.has-value,
.sm-pitstop-metric.is-breach.has-value {
  border-color: #fac6cf;
  background: #ffe8ec;
  color: #a22d41;
}

.sm-pitstop-metric.is-resolved.has-value,
.sm-pitstop-metric.is-completed.has-value,
.sm-pitstop-metric.is-checklist.is-complete {
  border-color: #bdebd2;
  background: #eefbf4;
  color: #087b45;
}

.sm-pitstop-metric.is-low.has-value {
  border-color: #cae6f7;
  background: #edf8ff;
  color: #0b638d;
}

.sm-pitstop-metric.is-warranty.has-value {
  border-color: #bfe2f3;
  background: #e8f7ff;
  color: #0b5c88;
}

.sm-pitstop-metric.is-checklist.has-value {
  border-color: #f1d27d;
}

/* Shared ZS / SM warranty SLA monitoring */
.warranty-sla-panel {
  margin-top: 16px;
  overflow: hidden;
}

.warranty-sla-panel .panel-head > div p {
  max-width: 820px;
  margin: 4px 0 0;
  color: #718097;
  font-weight: 600;
}

.warranty-sla-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #e4eaf0;
  background: #f8fafb;
}

.warranty-sla-summary > div {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: #fff;
}

.warranty-sla-summary span {
  display: block;
  margin-bottom: 7px;
  color: #68778b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.warranty-sla-summary strong {
  color: #172236;
  font-size: 24px;
}

.warranty-sla-summary .is-due {
  border-color: #efd58e;
  background: #fff9e8;
}

.warranty-sla-summary .is-breach {
  border-color: #efb6bd;
  background: #fff3f4;
}

.warranty-sla-summary .is-breach strong {
  color: #b72e40;
}

.warranty-sla-groups,
.warranty-sla-cases,
.warranty-sla-location-list {
  padding: 16px;
}

.warranty-sla-cases,
.warranty-sla-groups {
  padding-top: 0;
}

.warranty-sla-groups h3,
.warranty-sla-cases h3,
.warranty-sla-location-list h3 {
  margin: 0 0 10px;
  color: #26344a;
  font-size: 15px;
}

.warranty-sla-location-list {
  display: grid;
  gap: 10px;
}

.warranty-sla-zone-group {
  overflow: hidden;
  border: 1px solid #dbe7ed;
  border-radius: 8px;
  background: #fff;
}

.warranty-sla-zone-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf1;
  background: #f5faf8;
  cursor: pointer;
  list-style: none;
}

.warranty-sla-zone-group summary::-webkit-details-marker {
  display: none;
}

.warranty-sla-zone-group summary span:first-child {
  display: grid;
  gap: 3px;
}

.warranty-sla-zone-group summary strong {
  color: #174d3b;
}

.warranty-sla-zone-group summary small {
  color: #667889;
  font-weight: 800;
}

.warranty-sla-zone-group .table-wrap {
  border: 0;
  border-radius: 0;
}

.warranty-sla-panel .btn.ghost {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .warranty-sla-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .warranty-sla-summary {
    grid-template-columns: 1fr;
  }
}

.sm-zs-selector.is-red b,
.sm-zs-selector.is-red em {
  background: #ffe0e5;
  color: #8a2030;
}

.sm-zs-selector.is-yellow b,
.sm-zs-selector.is-yellow em {
  background: #fff1bd;
  color: #775700;
}

.sm-zs-selector.is-blue b,
.sm-zs-selector.is-blue em {
  background: #dff1ff;
  color: #075184;
}

.sm-zs-selector.is-green b,
.sm-zs-selector.is-green em {
  background: #def7e9;
  color: #17683e;
}

/* Pitstop visit workflow */
.pitstop-visit-zone-overview,
.pitstop-visit-calendar,
.pitstop-visit-upcoming,
.pitstop-visit-create,
.pitstop-visit-queue,
.pitstop-visit-detail {
  margin-bottom: 16px;
}

.pitstop-visit-zone-overview {
  display: grid;
  gap: 10px;
}

.pitstop-visit-overview-head,
.pitstop-visit-overview-card-head,
.pitstop-visit-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pitstop-visit-overview-head > div,
.pitstop-visit-overview-card-head > div {
  display: grid;
  gap: 3px;
}

.pitstop-visit-overview-toolbar {
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px !important;
}

.pitstop-visit-period-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(76px, 1fr));
  padding: 3px;
  border: 1px solid #cfdce3;
  border-radius: 7px;
  background: #fff;
}

.sm-pitstop-health-period-switch {
  grid-template-columns: repeat(3, minmax(72px, 1fr));
}

.pitstop-visit-period-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #526575;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pitstop-visit-period-switch button.is-active {
  background: #176c57;
  color: #fff;
}

.pitstop-visit-period-field {
  display: grid;
  gap: 3px;
}

.pitstop-visit-period-field > span {
  color: #627483;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.pitstop-visit-period-field input,
.pitstop-visit-period-field select {
  width: 160px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid #cfdce3;
  border-radius: 7px;
  background: #fff;
  color: #17384b;
  font: inherit;
  font-weight: 800;
}

.sm-pitstop-health-panel-head {
  align-items: flex-end;
  gap: 14px;
}

.sm-pitstop-health-panel-head > h2 {
  align-self: center;
}

.sm-pitstop-health-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.sm-pitstop-health-toolbar > .badge {
  margin-bottom: 8px;
}

.pitstop-visit-overview-head span,
.pitstop-visit-overview-card-head span,
.pitstop-visit-next span,
.pitstop-visit-overview-metrics span {
  color: #627483;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pitstop-visit-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 10px;
}

.pitstop-visit-overview-card {
  display: grid;
  gap: 11px;
  border: 1px solid #d9e4e9;
  border-top: 4px solid #d39a20;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(32, 42, 51, .08);
  padding: 12px;
}

.pitstop-visit-overview-card.has-history {
  border-top-color: #178a68;
}

.pitstop-visit-overview-card.is-overdue {
  border-top-color: #d64555;
  background: #fffafb;
}

.pitstop-visit-overview-card-head {
  align-items: flex-start;
}

.pitstop-visit-overview-card-head strong {
  color: #163d33;
  font-size: 16px;
}

.pitstop-visit-overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e9ed;
  border-radius: 7px;
}

.pitstop-visit-overview-metrics.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pitstop-visit-overview-metrics > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-right: 1px solid #e2e9ed;
  background: #f7fafb;
}

.pitstop-visit-overview-metrics > div:last-child {
  border-right: 0;
}

.pitstop-visit-overview-metrics strong {
  color: #17384b;
  font-size: 18px;
}

.pitstop-visit-next {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  border-left: 3px solid #2189b5;
  background: #f1f8fb;
  padding: 8px 10px;
}

.pitstop-visit-next strong {
  color: #164d67;
}

.pitstop-visit-next small {
  grid-column: 2;
  color: #667886;
}

.sm-zs-visit-overview .pitstop-visit-overview-grid {
  align-items: stretch;
}

.sm-zs-visit-card {
  grid-template-rows: auto auto auto auto 1fr auto;
  min-height: 372px;
}

.sm-zs-visit-card .pitstop-visit-overview-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sm-zs-visit-card small {
  color: #607587;
  font-size: 11px;
  font-weight: 800;
}

.sm-zs-visit-type-mix {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 8px 9px;
  border: 1px solid #e2e9ed;
  border-radius: 7px;
  background: #fbfdfe;
}

.sm-zs-visit-type-mix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sm-zs-visit-type-mix-head span {
  color: #627483;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sm-zs-visit-type-mix-head strong {
  color: #17384b;
  font-size: 12px;
}

.sm-zs-visit-type-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 70px;
}

.sm-zs-visit-type-bar {
  min-width: 0;
  display: grid;
  grid-template-rows: 38px 1fr auto;
  justify-items: center;
  gap: 3px;
  text-align: center;
}

.sm-zs-visit-type-track {
  position: relative;
  width: 14px;
  height: 38px;
  align-self: end;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf1f4;
}

.sm-zs-visit-type-track i,
.sm-zs-visit-type-track b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
}

.sm-zs-visit-type-track i {
  background: #26a77a;
}

.sm-zs-visit-type-track b {
  background: #e94b5d;
}

.sm-zs-visit-type-bar.is-empty .sm-zs-visit-type-track {
  border: 1px dashed #cbd8df;
  background: #eef3f6;
}

.sm-zs-visit-type-bar span {
  max-width: 100%;
  color: #607587;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sm-zs-visit-type-bar em {
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #eef6fa;
  color: #17384b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.sm-zs-visit-type-bar.has-issue em {
  background: #ffe6ea;
  color: #a93443;
}

.sm-zs-visit-type-bar em small {
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e94b5d;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.sm-zs-visit-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e9ed;
  border-radius: 7px;
}

.sm-zs-visit-report > div {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: #fbfdfe;
  border-right: 1px solid #e2e9ed;
}

.sm-zs-visit-report > div:last-child {
  border-right: 0;
}

.sm-zs-visit-report span {
  color: #627483;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sm-zs-visit-report strong {
  color: #17384b;
  font-size: 14px;
}

.sm-zs-visit-report small {
  line-height: 1.35;
}

.sm-visit-done-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 10px;
}

.sm-visit-done-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 310px;
  border: 1px solid #d9e4e9;
  border-top: 4px solid #178a68;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(32, 42, 51, .08);
  padding: 12px;
}

.sm-visit-done-card.has-issue {
  border-top-color: #d39a20;
  background: #fffdf8;
}

.sm-visit-done-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sm-visit-done-card-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sm-visit-done-card-head span,
.sm-visit-done-metrics span {
  color: #627483;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sm-visit-done-card-head strong {
  color: #163d33;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.sm-visit-done-card-head small,
.sm-visit-done-record small,
.sm-visit-done-more {
  color: #607587;
  font-size: 11px;
  font-weight: 800;
}

.sm-visit-done-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e2e9ed;
  border-radius: 7px;
}

.sm-visit-done-metrics > div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-right: 1px solid #e2e9ed;
  background: #f7fafb;
}

.sm-visit-done-metrics > div:last-child {
  border-right: 0;
}

.sm-visit-done-metrics strong {
  color: #17384b;
  font-size: 18px;
}

.sm-visit-done-records {
  display: grid;
  align-content: start;
  gap: 7px;
}

.sm-visit-done-record {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e9ed;
  border-radius: 7px;
  background: #fbfdfe;
  padding: 7px 8px;
}

.sm-visit-done-record > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sm-visit-done-record strong {
  color: #17384b;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sm-visit-done-record > span {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.sm-visit-done-record .btn {
  min-height: 30px;
  padding: 6px 9px;
}

.sm-visit-done-more {
  align-self: end;
  border-top: 1px solid #edf2f5;
  padding-top: 8px;
}

.pitstop-visit-calendar {
  border-top: 3px solid #237eaa;
}

.pitstop-visit-calendar-toolbar {
  background: #f5fafc;
}

.pitstop-visit-calendar-nav,
.pitstop-visit-calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pitstop-visit-calendar-nav strong {
  min-width: 150px;
  color: #17384b;
  font-size: 15px;
  text-align: center;
}

.pitstop-visit-calendar-nav .btn {
  min-width: 36px;
  padding: 7px 9px;
}

.pitstop-visit-calendar-legend {
  padding: 9px 12px;
  border-bottom: 1px solid #e0e8ed;
  background: #fff;
}

.pitstop-visit-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5f7180;
  font-size: 11px;
  font-weight: 800;
}

.pitstop-visit-calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.pitstop-visit-calendar-legend .is-blue {
  background: #2589b5;
}

.pitstop-visit-calendar-legend .is-red {
  background: #d64555;
}

.pitstop-visit-calendar-legend .is-yellow {
  background: #d49a19;
}

.pitstop-visit-calendar-legend .is-green {
  background: #178a68;
}

.pitstop-visit-calendar-weekdays,
.pitstop-visit-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  min-width: 770px;
}

.pitstop-visit-calendar-weekdays {
  background: #edf3f6;
}

.pitstop-visit-calendar-weekdays span {
  padding: 7px 9px;
  color: #506371;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pitstop-visit-calendar-grid {
  border-top: 1px solid #dde6eb;
}

.pitstop-visit-calendar-day {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 5px;
  border-right: 1px solid #e2e9ed;
  border-bottom: 1px solid #e2e9ed;
  background: #fff;
  padding: 6px;
}

.pitstop-visit-calendar-day:nth-child(7n) {
  border-right: 0;
}

.pitstop-visit-calendar-day.is-empty {
  background: #f6f8f9;
}

.pitstop-visit-calendar-day.is-past {
  background: #fafbfc;
}

.pitstop-visit-calendar-day.is-past .pitstop-visit-calendar-date {
  color: #9aa7b0;
  cursor: default;
}

.pitstop-visit-calendar-day.is-today {
  box-shadow: inset 0 0 0 2px #278db6;
  background: #f3fbfe;
}

.pitstop-visit-calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px #16956d;
  background: #f0faf6;
}

.pitstop-visit-calendar-date {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #223945;
  padding: 0 2px;
  text-align: left;
}

.pitstop-visit-calendar-date span {
  font-size: 13px;
  font-weight: 900;
}

.pitstop-visit-calendar-date small {
  color: #19769e;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.pitstop-visit-calendar-events {
  display: grid;
  gap: 4px;
}

.pitstop-visit-calendar-event {
  min-width: 0;
  min-height: 31px;
  display: grid;
  gap: 1px;
  border: 0;
  border-left: 3px solid #2589b5;
  border-radius: 4px;
  background: #eaf6fb;
  color: #174c64;
  padding: 4px 6px;
  text-align: left;
}

.pitstop-visit-calendar-event.is-red {
  border-left-color: #d64555;
  background: #fff0f2;
  color: #912c39;
}

.pitstop-visit-calendar-event.is-yellow {
  border-left-color: #d49a19;
  background: #fff7df;
  color: #76530d;
}

.pitstop-visit-calendar-event.is-green {
  border-left-color: #178a68;
  background: #eaf8f2;
  color: #176449;
}

.pitstop-visit-calendar-event strong,
.pitstop-visit-calendar-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitstop-visit-calendar-event strong {
  font-size: 10px;
}

.pitstop-visit-calendar-event small {
  font-size: 9px;
  font-weight: 700;
}

.pitstop-visit-calendar-more {
  color: #617483;
  font-size: 9px;
  font-weight: 900;
}

.pitstop-visit-upcoming {
  border-top: 3px solid #d49a19;
}

.pitstop-visit-calendar,
.pitstop-visit-upcoming,
.pitstop-visit-create,
.pitstop-visit-queue,
.pitstop-visit-detail {
  border-top: 3px solid #176b55;
}

.pitstop-visit-calendar {
  border-top-color: #237eaa;
  overflow-x: auto;
}

.pitstop-visit-upcoming {
  border-top-color: #d49a19;
}

.pitstop-visit-cancel-modal {
  width: min(660px, 100%);
  border-top: 4px solid #d64555;
}

.pitstop-visit-cancel-form {
  display: grid;
  gap: 12px;
}

.pitstop-visit-cancel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e1e8ec;
  border-radius: 7px;
}

.pitstop-visit-cancel-summary > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid #e1e8ec;
  background: #f8fafb;
}

.pitstop-visit-cancel-summary > div:last-child {
  border-right: 0;
}

.pitstop-visit-cancel-summary span {
  color: #667987;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pitstop-visit-cancel-summary strong {
  overflow-wrap: anywhere;
}

.pitstop-visit-create-grid,
.pitstop-visit-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pitstop-visit-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.pitstop-visit-report-grid.has-linked-outcome {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pitstop-visit-create-grid .full,
.pitstop-visit-report-grid .full {
  grid-column: 1 / -1;
}

.pitstop-visit-report-grid .field {
  transition: opacity .16s ease, background-color .16s ease;
}

.pitstop-visit-report-grid .field.is-gated {
  opacity: .55;
}

.pitstop-visit-gate-hint {
  display: block;
  margin-top: 5px;
  color: #657786;
  font-size: 10px;
  line-height: 1.35;
}

[data-pitstop-visit-completion-field] .pitstop-visit-gate-hint {
  color: #7c5a10;
  font-weight: 700;
}

.pitstop-visit-type-picker {
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid #ccd9df;
  border-radius: 6px;
  background: #f7faf9;
}

.pitstop-visit-type-picker legend {
  padding: 0 5px;
  color: #31464f;
  font-size: 12px;
  font-weight: 900;
}

.pitstop-visit-type-picker legend span {
  margin-left: 6px;
  color: #6b7b85;
  font-size: 11px;
  font-weight: 700;
}

.pitstop-visit-type-picker > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
}

.pitstop-visit-type-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d6e1e5;
  border-radius: 5px;
  background: #fff;
  color: #263942;
}

.pitstop-visit-type-picker input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
}

.pitstop-visit-type-picker label:has(input:checked) {
  border-color: #60b597;
  background: #eaf7f1;
  color: #145f48;
}

.pitstop-visit-case-picker {
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid #ccd9df;
  border-radius: 6px;
  background: #fbfcfc;
  transition: border-color .16s ease, background-color .16s ease, opacity .16s ease;
}

.pitstop-visit-case-picker.is-gated {
  border-color: #d9e1e5;
  background: #f2f5f6;
}

.pitstop-visit-case-picker.is-gated .pitstop-visit-case-list,
.pitstop-visit-case-picker.is-gated .pitstop-visit-case-empty {
  opacity: .55;
}

.pitstop-visit-case-picker.is-gated .pitstop-visit-case-option {
  border-color: #d9e1e5;
  border-left-color: #aebcc3;
  background: #f7f9f9;
  cursor: not-allowed;
}

.pitstop-visit-case-picker legend {
  padding: 0 5px;
  color: #31464f;
  font-size: 12px;
  font-weight: 900;
}

.pitstop-visit-case-picker legend span {
  margin-left: 6px;
  color: #6b7b85;
  font-size: 11px;
  font-weight: 700;
}

.pitstop-visit-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pitstop-visit-case-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #d6e1e5;
  border-left: 4px solid #2684b8;
  border-radius: 6px;
  background: #fff;
}

.pitstop-visit-case-option.is-red {
  border-left-color: #d34255;
}

.pitstop-visit-case-option.is-yellow {
  border-left-color: #d59a12;
}

.pitstop-visit-case-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
}

.pitstop-visit-case-option:has(input:checked) {
  border-color: #60b597;
  background: #eef8f3;
}

.pitstop-visit-case-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pitstop-visit-case-main strong,
.pitstop-visit-case-main small,
.pitstop-visit-case-main em {
  overflow-wrap: anywhere;
}

.pitstop-visit-case-main small {
  color: #617486;
  font-size: 11px;
  font-weight: 800;
}

.pitstop-visit-case-main em {
  color: #243843;
  font-style: normal;
  font-weight: 800;
}

.pitstop-visit-case-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.pitstop-visit-case-empty {
  padding: 12px;
  border: 1px dashed #ccd9df;
  border-radius: 6px;
  color: #617486;
  font-weight: 800;
  text-align: center;
}

.pitstop-visit-selected-types {
  margin-bottom: 12px;
  border: 1px solid #b9d7ca;
  border-left: 4px solid #168967;
  border-radius: 6px;
  background: #f3faf7;
}

.pitstop-visit-selected-types-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
}

.pitstop-visit-selected-types-head > div:first-child {
  display: grid;
  gap: 3px;
}

.pitstop-visit-selected-types-head strong {
  color: #174f3f;
  font-size: 13px;
}

.pitstop-visit-selected-types-head > div:first-child span {
  color: #637687;
  font-size: 11px;
}

.pitstop-visit-type-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pitstop-visit-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #9bcab8;
  border-radius: 999px;
  background: #e4f5ee;
  color: #126149;
  font-size: 11px;
  font-weight: 800;
}

.pitstop-visit-type-chip button {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c7e9dc;
  color: #145d48;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1;
}

.pitstop-visit-type-chip button:hover {
  background: #f5cdd2;
  color: #9f2636;
}

.pitstop-visit-add-types {
  border-top: 1px solid #cfe2da;
}

.pitstop-visit-add-types-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #24423a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.pitstop-visit-add-types-title small {
  color: #637687;
  font-size: 10px;
}

.pitstop-visit-add-types-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.pitstop-visit-body {
  display: grid;
  gap: 14px;
}

.pitstop-visit-stagebar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d8e1e6;
  border-radius: 6px;
  background: #f5f7f8;
}

.pitstop-visit-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 9px 12px;
  border-right: 1px solid #d8e1e6;
  color: #697987;
}

.pitstop-visit-stage:last-child {
  border-right: 0;
}

.pitstop-visit-stage span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #dce3e7;
  font-weight: 800;
}

.pitstop-visit-stage strong {
  font-size: 12px;
}

.pitstop-visit-stage.is-done {
  background: #eaf6f1;
  color: #145f48;
}

.pitstop-visit-stage.is-done span {
  background: #1e9b72;
  color: #fff;
}

.pitstop-visit-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pitstop-visit-summary-grid .wide {
  grid-column: 1 / -1;
}

.pitstop-visit-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #9ed6c0;
  border-left: 4px solid #168967;
  border-radius: 6px;
  background: #edf8f3;
  color: #154e3d;
}

.pitstop-visit-callout.is-warning {
  border-color: #e8ca82;
  border-left-color: #bd8111;
  background: #fff8e8;
  color: #72500f;
}

.pitstop-visit-section-head,
.pitstop-visit-checklist-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pitstop-visit-section-head {
  padding: 12px 0 8px;
}

.pitstop-visit-section-head h3,
.pitstop-visit-section-head span,
.pitstop-visit-checklist-group summary {
  margin: 0;
}

.pitstop-visit-section-head > div > span {
  color: #637687;
  font-size: 12px;
}

.pitstop-visit-checklist-group {
  margin-bottom: 8px;
  border: 1px solid #d7e1e6;
  border-radius: 6px;
  background: #fff;
}

.pitstop-visit-checklist-group summary {
  min-height: 44px;
  padding: 10px 12px;
  background: #eef5f2;
  color: #174f3f;
  cursor: pointer;
  font-weight: 800;
}

.pitstop-visit-checklist-group summary::-webkit-details-marker {
  display: none;
}

.pitstop-visit-checklist-group summary::after {
  content: "⌄";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid #cbdad4;
  border-radius: 50%;
  background: #fff;
  color: #42685b;
}

.pitstop-visit-checklist-group[open] summary::after {
  content: "⌃";
}

.pitstop-visit-checklist-progress {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pitstop-visit-checklist-progress.is-pending {
  background: #fbdcdf;
  color: #a62e3b;
}

.pitstop-visit-checklist-progress.is-progress {
  background: #ffedb8;
  color: #815b00;
}

.pitstop-visit-checklist-progress.is-complete {
  background: #d9f3e6;
  color: #11704f;
}

.pitstop-visit-checklist-table {
  padding: 0 12px 10px;
}

.pitstop-visit-checklist-header,
.pitstop-visit-checklist-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .55fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
}

.pitstop-visit-checklist-header {
  padding: 10px 0 7px;
  color: #607182;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pitstop-visit-checklist-row {
  min-height: 50px;
  padding: 7px 0;
  border-top: 1px solid #e4eaed;
}

.pitstop-visit-checklist-row strong {
  font-size: 12px;
}

.pitstop-visit-linked-case-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f7faf9;
}

.pitstop-visit-linked-case {
  overflow: hidden;
  border: 1px solid #cfdde3;
  border-left: 4px solid #168967;
  border-radius: 6px;
  background: #fff;
}

.pitstop-visit-linked-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #dfe8ec;
  background: #f1f7f5;
}

.pitstop-visit-linked-case-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pitstop-visit-linked-case-head span:first-child {
  color: #5d7080;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pitstop-visit-linked-case-head strong {
  color: #173d33;
  font-size: 13px;
}

.pitstop-visit-linked-case-body {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 16px;
  padding: 12px;
}

.pitstop-visit-linked-case-info {
  display: grid;
  align-content: start;
  gap: 5px;
}

.pitstop-visit-linked-case-info > span {
  color: #627486;
  font-size: 11px;
  font-weight: 700;
}

.pitstop-visit-linked-case-info > strong {
  color: #1c2f3e;
  font-size: 13px;
}

.pitstop-visit-linked-case-info p {
  margin: 2px 0 0;
  color: #53687a;
  font-size: 11px;
  line-height: 1.5;
}

.pitstop-visit-linked-case-action {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr);
  gap: 6px 10px;
  align-items: start;
}

.pitstop-visit-linked-case-action label {
  color: #53687a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pitstop-visit-linked-case-action select,
.pitstop-visit-linked-case-action textarea {
  min-width: 0;
}

.pitstop-visit-linked-case-action textarea {
  min-height: 72px;
  resize: vertical;
}

.pitstop-visit-periodic-verification {
  margin-bottom: 12px;
  padding: 0 12px 12px;
  border: 1px solid #a9d4c3;
  border-left: 4px solid #168967;
  border-radius: 6px;
  background: #f3faf7;
}

.pitstop-visit-periodic-verification .table-wrap {
  border: 1px solid #d7e4df;
  border-radius: 6px;
  background: #fff;
}

.pitstop-visit-verification-table {
  min-width: 1180px;
}

.pitstop-visit-verification-table th {
  background: #e9f4ef;
  color: #315d4e;
}

.pitstop-visit-verification-table select,
.pitstop-visit-verification-table input {
  min-width: 190px;
}

.pitstop-visit-decision {
  padding: 14px;
  border: 1px solid #e1c170;
  border-left: 4px solid #bd8111;
  border-radius: 6px;
  background: #fff9ea;
}

.pitstop-visit-decision.is-sm {
  border-color: #9dc7e5;
  border-left-color: #2375ad;
  background: #edf6fc;
}

.pitstop-visit-decision h3,
.pitstop-visit-decision p {
  margin-top: 0;
}

.pitstop-visit-trail {
  border-top: 1px solid #dde5e9;
  padding-top: 10px;
}

@media (max-width: 1400px) {
  .pitstop-visit-report-grid,
  .pitstop-visit-report-grid.has-linked-outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sm-pitstop-health-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sm-pitstop-health-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .pitstop-visit-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pitstop-visit-overview-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .pitstop-visit-period-switch,
  .pitstop-visit-period-field {
    flex: 1 1 180px;
  }

  .pitstop-visit-period-field input,
  .pitstop-visit-period-field select {
    width: 100%;
  }

  .pitstop-visit-overview-grid {
    grid-template-columns: 1fr;
  }

  .sm-visit-done-grid {
    grid-template-columns: 1fr;
  }

  .sm-zs-visit-card .pitstop-visit-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-zs-visit-card .pitstop-visit-overview-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .sm-zs-visit-card .pitstop-visit-overview-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e2e9ed;
  }

  .pitstop-visit-calendar-toolbar {
    display: grid;
  }

  .pitstop-visit-calendar-nav {
    justify-content: flex-start;
  }

  .pitstop-visit-cancel-summary {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-cancel-summary > div {
    border-right: 0;
    border-bottom: 1px solid #e1e8ec;
  }

  .pitstop-visit-cancel-summary > div:last-child {
    border-bottom: 0;
  }

  .pitstop-visit-create-grid,
  .pitstop-visit-report-grid,
  .pitstop-visit-report-grid.has-linked-outcome,
  .pitstop-visit-summary-grid {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-create-grid .full,
  .pitstop-visit-report-grid .full,
  .pitstop-visit-summary-grid .wide {
    grid-column: auto;
  }

  .pitstop-visit-case-list {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-stagebar {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-stage {
    border-right: 0;
    border-bottom: 1px solid #d8e1e6;
  }

  .pitstop-visit-checklist-header {
    display: none;
  }

  .pitstop-visit-checklist-row {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-linked-case-head,
  .pitstop-visit-linked-case-head > div {
    align-items: flex-start;
  }

  .pitstop-visit-linked-case-head {
    flex-direction: column;
  }

  .pitstop-visit-linked-case-body,
  .pitstop-visit-linked-case-action {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-callout {
    grid-template-columns: 1fr;
  }

  .pitstop-visit-type-picker > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pitstop-visit-selected-types-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pitstop-visit-type-chips {
    justify-content: flex-start;
  }
}

.sm-dashboard {
  display: grid;
  gap: 14px;
}

.sm-hero-panel,
.sm-filter-bar,
.sm-focus-strip,
.sm-zs-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(32, 42, 51, .08);
}

.sm-hero-panel {
  display: grid;
  grid-template-columns: 260px minmax(260px, 1fr) minmax(360px, .95fr);
  gap: 14px;
  padding: 16px;
}

.sm-hero-opening,
.sm-hero-action,
.sm-hero-metrics {
  min-width: 0;
}

.sm-hero-opening {
  display: grid;
  place-items: center;
  gap: 10px;
  border: 1px solid #e1ebf0;
  border-radius: 8px;
  background: #f7fbfd;
  padding: 14px;
}

.sm-hero-kicker,
.sm-section-title span,
.sm-zs-label,
.sm-zs-next-action span,
.sm-zs-detail-title,
.sm-zs-metric small {
  color: #5f7180;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sm-hero-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#20b867 calc(var(--pct) * 1%), #e7eef2 0);
  box-shadow: inset 0 0 0 1px #d9e5eb;
}

.sm-hero-ring strong {
  color: #172b34;
  font-size: 30px;
  line-height: 1;
}

.sm-hero-ring span {
  color: #657683;
  font-weight: 800;
}

.sm-hero-opening-meta,
.sm-hero-action .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sm-hero-action {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 10px 4px;
}

.sm-hero-action strong {
  color: #172b34;
  font-size: 22px;
  line-height: 1.2;
}

.sm-hero-action p {
  max-width: 580px;
  margin: 0;
  color: #607484;
  font-weight: 700;
}

.sm-hero-action .actions {
  justify-content: flex-start;
}

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

.sm-hero-metric {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid #dbe6ec;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
  text-align: left;
}

.sm-hero-metric:hover,
.sm-filter-chip:hover,
.sm-zs-progress:hover,
.sm-focus-card:hover {
  background: #f4fafb;
}

.sm-hero-metric span {
  color: #607484;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-hero-metric strong {
  color: #172b34;
  font-size: 23px;
}

.sm-hero-metric.is-red { border-left-color: var(--red); }
.sm-hero-metric.is-yellow { border-left-color: var(--yellow); }
.sm-hero-metric.is-green { border-left-color: var(--green); }
.sm-hero-metric.is-blue { border-left-color: var(--teal); }

.sm-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.sm-filter-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6e3ea;
  border-radius: 999px;
  background: #fff;
  color: #293c48;
  padding: 6px 11px;
  white-space: nowrap;
}

.sm-filter-chip.active {
  border-color: #1fa6b8;
  background: #e2f7fb;
  color: #075184;
}

.sm-filter-chip strong {
  min-width: 24px;
  border-radius: 999px;
  background: rgba(6, 37, 65, .08);
  padding: 2px 7px;
  text-align: center;
}

.sm-focus-strip {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.sm-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sm-section-title div {
  display: grid;
  gap: 2px;
}

.sm-section-title strong {
  color: #172b34;
  font-size: 16px;
}

.sm-focus-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
}

.sm-focus-card {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe6ec;
  border-left-width: 4px;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.sm-focus-card.is-red { border-left-color: var(--red); }
.sm-focus-card.is-yellow { border-left-color: var(--yellow); }
.sm-focus-card.is-green { border-left-color: var(--green); }

.sm-focus-card div,
.sm-zs-card-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sm-focus-card strong,
.sm-zs-card-head strong {
  color: #172b34;
  overflow-wrap: anywhere;
}

.sm-focus-card span,
.sm-zs-card-head small {
  color: #657683;
  font-size: 12px;
  font-weight: 700;
}

.sm-focus-card p {
  min-height: 38px;
  margin: 0;
  color: #516575;
  font-weight: 700;
}

.sm-zs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
}

.sm-zs-card {
  display: grid;
  gap: 11px;
  border-top-width: 3px;
  padding: 12px;
}

.sm-zs-card.is-red { border-top-color: var(--red); }
.sm-zs-card.is-yellow { border-top-color: var(--yellow); }
.sm-zs-card.is-green { border-top-color: var(--green); }

.sm-zs-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.sm-zs-progress {
  display: grid;
  gap: 7px;
  border: 1px solid #dbe6ec;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
  text-align: left;
}

.sm-zs-progress span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.sm-zs-progress strong {
  color: #172b34;
  font-size: 22px;
}

.sm-zs-progress small {
  color: #657683;
  font-weight: 900;
  text-transform: uppercase;
}

.sm-zs-progress i {
  height: 8px;
  border-radius: 999px;
  background: #e5edf2;
  overflow: hidden;
}

.sm-zs-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1fa6b8, #20b867);
}

.sm-zs-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.sm-zs-metric {
  display: grid;
  gap: 2px;
  border: 1px solid #dbe6ec;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 8px;
}

.sm-zs-metric strong {
  color: #172b34;
  font-size: 18px;
}

.sm-zs-metric.is-red { background: #fff4f6; border-color: #ffd3db; }
.sm-zs-metric.is-yellow { background: #fff9e6; border-color: #ffe8a5; }
.sm-zs-metric.is-green { background: #f1fbf5; border-color: #cbeedb; }
.sm-zs-metric.is-blue { background: #eef9fc; border-color: #c8ebf3; }

.sm-zs-next-action {
  border-top: 1px solid #edf2f5;
  padding-top: 10px;
}

.sm-zs-next-action p {
  margin: 5px 0 0;
  color: #344955;
  font-weight: 800;
}

.sm-zs-detail {
  display: grid;
  gap: 10px;
  border-top: 1px solid #edf2f5;
  padding-top: 10px;
}

.sm-zs-detail-list {
  display: grid;
  gap: 7px;
}

.sm-zs-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid #e1ebf0;
  border-radius: 8px;
  padding: 8px;
}

.sm-zs-detail-list span {
  display: grid;
  gap: 2px;
}

.sm-zs-detail-list small {
  color: #657683;
  font-weight: 700;
}

@media (max-width: 1250px) {
  .sm-hero-panel {
    grid-template-columns: 220px 1fr;
  }

  .sm-hero-metrics {
    grid-column: 1 / -1;
  }

  .sm-focus-cards,
  .sm-zs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sm-hero-panel,
  .sm-focus-cards,
  .sm-zs-grid {
    grid-template-columns: 1fr;
  }

  .sm-hero-metrics,
  .sm-zs-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ZS dashboard immediate action queue */
.zs-immediate-action-panel {
  margin: 0;
  border-top: 3px solid #c44954;
}

.zs-immediate-action-panel .panel-head {
  background: #fff8f8;
}

.zs-immediate-action-note {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4eaee;
  color: #637482;
}

.zs-immediate-action-panel table tbody tr {
  background: #fff;
}

.zs-immediate-action-panel table tbody tr:hover {
  background: #fffafa;
}

.zs-ack-review-panel {
  margin: 14px 0 0;
  border-top: 3px solid #d79b20;
}

.zs-ack-review-panel .panel-head {
  background: #fffbf1;
}

.zs-ack-review-note {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4eaee;
  color: #637482;
}

.zs-ack-review-panel table tbody tr {
  background: #fff;
}

.zs-ack-review-panel table tbody tr:hover {
  background: #fffdf7;
}

.sm-operation-escalation-panel {
  margin: 0;
  border-top: 3px solid #1d7a63;
}

.sm-operation-escalation-panel > .panel-head {
  align-items: flex-start;
  background: #f4faf7;
}

.sm-operation-escalation-panel > .panel-head > div:first-child {
  display: grid;
  gap: 4px;
}

.sm-operation-escalation-panel > .panel-head p {
  margin: 0;
  color: #627580;
  font-size: 12px;
}

.sm-operation-escalation-panel table {
  min-width: 1220px;
}

.sm-operation-escalation-history {
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.sm-operation-escalation-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  list-style: none;
  cursor: pointer;
  color: #245645;
}

.sm-operation-escalation-history > summary::-webkit-details-marker {
  display: none;
}

.sm-operation-escalation-history[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f1f8f5;
}

.sm-complaint-oversight-section {
  border-color: #bcdccd;
}

.sm-complaint-oversight-section h3 {
  color: #185e49;
  background: #eef8f3;
}

.sm-complaint-oversight-form {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.sm-complaint-oversight-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #50666f;
  font-size: 12px;
}

.sm-complaint-oversight-action {
  align-self: end;
}

.sm-complaint-oversight-action .btn {
  width: 100%;
}

.periodic-checklist-type.is-review-target {
  border-color: #d79b20;
  box-shadow: 0 0 0 2px rgba(215, 155, 32, 0.14);
}

.periodic-checklist-type.is-review-target > summary {
  background: #fffbf1;
}

.zs-immediate-age {
  color: #a23843;
  font-weight: 900;
  white-space: nowrap;
}

.zs-immediate-row-actions {
  flex-wrap: nowrap;
  gap: 5px;
}

.zs-immediate-row-actions .btn {
  min-height: 32px;
  padding: 0 9px;
  white-space: nowrap;
}

.zs-immediate-action-modal {
  max-width: 760px;
}

.zs-immediate-action-summary {
  display: grid;
  grid-template-columns: 110px minmax(150px, 0.8fr) minmax(220px, 1.4fr) 120px;
  border: 1px solid #dbe3e8;
  border-left: 3px solid #c44954;
  border-radius: 6px;
  background: #f8fafb;
}

.zs-immediate-action-summary > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border-right: 1px solid #e2e8ec;
}

.zs-immediate-action-summary > div:last-child {
  border-right: 0;
}

.zs-immediate-action-summary span:first-child {
  color: #657583;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.zs-immediate-action-summary strong {
  color: #1d2e38;
  font-size: 13px;
}

.zs-immediate-action-detail {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #d5a328;
  background: #fffaf0;
  color: #334650;
}

@media (max-width: 900px) {
  .zs-immediate-action-summary {
    grid-template-columns: 1fr 1fr;
  }

  .zs-immediate-action-summary > div:nth-child(2) {
    border-right: 0;
  }

  .zs-immediate-action-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e2e8ec;
  }
}

@media (max-width: 650px) {
  .zs-immediate-action-summary {
    grid-template-columns: 1fr;
  }

  .zs-immediate-action-summary > div {
    border-right: 0;
    border-bottom: 1px solid #e2e8ec;
  }

  .zs-immediate-action-summary > div:last-child {
    border-bottom: 0;
  }

  .zs-immediate-row-actions {
    flex-wrap: wrap;
  }
}

.nav-title.nav-group-opdWarranty {
  color: #18573f;
  border-top: 1px solid #d4e2dc;
  border-bottom: 1px solid #d4e2dc;
  margin-top: 8px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.opd-warranty-page {
  display: grid;
  gap: 14px;
}

.opd-warranty-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #b9d9cd;
}

.opd-warranty-title h1 {
  margin: 0 0 4px;
}

.opd-warranty-title p {
  margin: 0;
  color: #64748b;
}

.opd-warranty-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.opd-warranty-stat {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid #d9e2e7;
  border-left: 4px solid #1f8a65;
  border-radius: 7px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.opd-warranty-stat span {
  color: #68778a;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.opd-warranty-stat strong {
  color: #172033;
  font-size: 25px;
  line-height: 1;
}

.opd-warranty-stat-claimed {
  border-left-color: #16825d;
}

.opd-warranty-stat-active {
  border-left-color: #1680a8;
}

.opd-warranty-stat-expired {
  border-left-color: #c34f4f;
}

.opd-warranty-stat-locations {
  border-left-color: #d38a16;
}

.opd-warranty-records > .search-bar {
  border-bottom: 1px solid #e1e8ec;
}

.opd-warranty-pitstop-group {
  padding: 0 16px 16px;
}

.opd-warranty-pitstop-group + .opd-warranty-pitstop-group {
  border-top: 8px solid #edf2f4;
  padding-top: 0;
}

.opd-warranty-pitstop-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
}

.opd-warranty-pitstop-head span:not(.badge) {
  display: block;
  color: #788596;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.opd-warranty-pitstop-head h3 {
  margin: 2px 0 0;
  color: #18573f;
  font-size: 17px;
}

.opd-warranty-customer,
.opd-warranty-product {
  display: grid;
  gap: 2px;
}

.opd-warranty-customer span,
.opd-warranty-product span {
  color: #69798b;
  font-size: 11px;
}

@media (max-width: 900px) {
  .opd-warranty-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .opd-warranty-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .opd-warranty-summary {
    grid-template-columns: 1fr;
  }
}

.zs-performance-dashboard {
  display: grid;
  gap: 14px;
}

.zs-performance-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #bdd8cf;
}

.zs-performance-title h1 {
  margin: 0 0 4px;
}

.zs-performance-title p {
  margin: 0;
  color: #67768a;
}

.zs-performance-header-meta,
.zs-performance-header-meta .badge {
  display: flex;
  align-items: center;
  gap: 7px;
}

.zs-today-strip .panel-head {
  min-height: 52px;
}

.zs-today-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e2e8ec;
}

.zs-today-metric {
  min-width: 0;
  min-height: 82px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid #e2e8ec;
  border-bottom: 3px solid #198565;
  background: #fff;
  color: #1d2939;
  text-align: left;
  cursor: pointer;
}

.zs-today-metric:last-child {
  border-right: 0;
}

.zs-today-metric:hover {
  background: #f7faf9;
}

.zs-today-metric span,
.zs-performance-metric span {
  display: block;
  color: #6d7c8f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.zs-today-metric strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1;
}

.zs-today-metric.is-open {
  border-bottom-color: #168b71;
}

.zs-today-metric.is-watch {
  border-bottom-color: #d59a19;
}

.zs-today-metric.is-critical {
  border-bottom-color: #cc4b55;
}

.zs-today-metric.is-good {
  border-bottom-color: #28a870;
}

.zs-performance-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px 8px 16px;
  border: 1px solid #dbe4e8;
  border-radius: 7px;
  background: #f7f9fa;
}

.zs-immediate-dashboard-tab,
.zs-back-to-performance {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #ccd8de;
  border-radius: 5px;
  background: #fff;
  color: #304354;
  font-weight: 900;
  cursor: pointer;
}

.zs-immediate-dashboard-tab {
  border-color: #dfb7bc;
  color: #a93642;
}

.zs-immediate-dashboard-tab span {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: #f8d9dd;
  color: #a92f3a;
  font-size: 10px;
  font-weight: 900;
}

.zs-immediate-dashboard-tab:hover {
  border-color: #a93642;
  background: #fff7f8;
}

.zs-back-to-performance:hover {
  border-color: #1d7258;
  background: #f3faf7;
  color: #1d7258;
}

.zs-performance-period-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zs-performance-period-filter > span {
  color: #6b7a8c;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.zs-performance-period-control {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  padding: 3px;
  border: 1px solid #cfd9de;
  border-radius: 7px;
  background: #fff;
}

.zs-performance-period-control button {
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #536276;
  font-weight: 800;
  cursor: pointer;
}

.zs-performance-period-control button.active {
  background: #1d7258;
  color: #fff;
}

.zs-immediate-view-caption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #6b7a8c;
  font-size: 11px;
}

.zs-immediate-view-caption strong {
  color: #a93642;
  font-size: 18px;
}

.zs-performance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.zs-performance-metric {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #d9e2e7;
  border-left: 4px solid #1680a8;
  border-radius: 7px;
  background: #fff;
}

.zs-performance-metric strong {
  color: #172033;
  font-size: 25px;
  line-height: 1.1;
}

.zs-performance-metric small {
  color: #748194;
  font-weight: 700;
}

.zs-performance-metric.is-compliance {
  border-left-color: #218c66;
}

.zs-performance-metric.is-watch {
  border-left-color: #d39518;
}

.zs-performance-metric.is-critical {
  border-left-color: #c94a53;
}

.zs-pitstop-focus-panel,
.zs-attention-panel {
  margin: 0;
}

.zs-pitstop-focus-note {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5ebee;
  color: #64748b;
}

.zs-focus-pitstop-name {
  color: #195942;
  font-size: 13px;
}

.zs-focus-reason {
  color: #9a3d44;
  font-weight: 800;
}

.zs-focus-clear {
  color: #247552;
  font-weight: 800;
}

.zs-pitstop-focus-panel td,
.zs-attention-panel td {
  vertical-align: middle;
}

@media (max-width: 1200px) {
  .zs-today-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zs-today-metric:nth-child(3) {
    border-right: 0;
  }

  .zs-today-metric:nth-child(n + 4) {
    border-top: 1px solid #e2e8ec;
  }

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

@media (max-width: 700px) {
  .zs-performance-title,
  .zs-performance-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .zs-performance-period-control {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zs-immediate-dashboard-tab,
  .zs-back-to-performance,
  .zs-performance-period-filter {
    width: 100%;
  }

  .zs-performance-period-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .zs-today-metrics,
  .zs-performance-summary {
    grid-template-columns: 1fr;
  }

  .zs-today-metric,
  .zs-today-metric:nth-child(3),
  .zs-today-metric:last-child {
    border-top: 1px solid #e2e8ec;
    border-right: 0;
  }
}

/* WFT case workbench hierarchy */
.wft-detail-panel {
  border: 1px solid #dbe4e8;
  background: #f3f6f7;
  box-shadow: 0 16px 34px rgba(24, 46, 55, 0.08);
}

.wft-detail-panel > .panel-head {
  min-height: 58px;
  border-bottom-color: #d8e3e7;
  background: #fff;
}

.wft-detail-body {
  gap: 18px;
  padding: 18px;
  background: #f3f6f7;
}

.wft-detail-body > .claim-charging-selected-claim {
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 6px;
  background: #214f43;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(33, 79, 67, 0.16);
}

.wft-case-summary {
  padding: 0;
  overflow: hidden;
  border-color: #cad9d4;
  border-left: 4px solid #23835f;
  box-shadow: 0 7px 18px rgba(25, 58, 49, 0.07);
}

.wft-case-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wft-case-summary-grid > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 72px;
  padding: 13px 15px;
  border-right: 1px solid #e2e9e7;
  border-bottom: 1px solid #e2e9e7;
  background: #fff;
}

.wft-case-summary-grid > div:nth-child(3n) {
  border-right: 0;
}

.wft-case-summary-grid span {
  color: #687b75;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wft-case-summary-grid strong {
  color: #17382f;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.wft-case-summary-grid > .wft-case-summary-bhero {
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  grid-column: 1 / -1;
  min-height: 76px;
  align-items: center;
  gap: 3px 16px;
  border-right: 0;
  border-bottom: 0;
  background: #edf9f3;
}

.wft-case-summary-bhero span {
  grid-row: span 2;
  color: #16724f;
}

.wft-case-summary-bhero strong {
  color: #105c40;
  font-size: 16px;
}

.wft-case-summary-bhero small {
  color: #59716a;
  font-size: 11px;
  font-weight: 700;
}

.wft-case-summary .wft-lock-actions {
  margin: 0;
  padding: 12px 15px;
  border-top: 1px solid #dfe8e5;
  background: #f7fbf9;
}

.wft-claim-trail,
.wft-evidence-card,
.wft-physical-transport-panel,
.wft-transport-request-panel {
  border-color: #d6e1e6;
  background: #fff;
  box-shadow: 0 6px 16px rgba(26, 48, 58, 0.05);
}

.wft-claim-trail {
  border-left: 4px solid #64748b;
}

.wft-evidence-card {
  border-left: 4px solid #2879b9;
}

.wft-physical-transport-panel,
.wft-transport-request-panel {
  border-left: 4px solid #26856a;
}

.wft-evidence-card > .claim-result-tester-head,
.wft-physical-transport-panel > .claim-result-tester-head,
.wft-transport-request-panel > .claim-result-tester-head {
  min-height: 38px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3eaee;
}

.wft-evidence-card .claim-result-evidence-item {
  min-height: 96px;
  border-color: #dce5ea;
  border-top: 3px solid #9fc7e2;
  background: #fff;
  box-shadow: 0 3px 9px rgba(36, 74, 96, 0.04);
}

.wft-evidence-card .claim-result-evidence-notes {
  border-top-color: #d4b45d;
  background: #fffdf7;
}

.wft-work-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.wft-work-lane {
  gap: 12px;
}

.wft-card {
  position: relative;
  overflow: visible;
  border-color: #cddbe1;
  background: #fff;
  box-shadow: 0 9px 22px rgba(28, 52, 63, 0.08);
}

.wft-contact-card {
  border-top: 4px solid #167c78;
}

.wft-booking-form {
  border-top: 4px solid #bf7b1b;
}

.wft-card-head {
  margin: -16px -16px 2px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe8eb;
  border-radius: 4px 4px 0 0;
}

.wft-contact-card .wft-card-head {
  background: #eff9f7;
}

.wft-booking-form .wft-card-head {
  background: #fff8ec;
}

.wft-readonly-info {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid #dbe6ee;
  border-radius: 6px;
  background: #f8fbfc;
}

.wft-readonly-info span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.wft-readonly-info strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wft-bhero-fulfilment {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-left: 4px solid #239d6b;
  border-radius: 6px;
  background: #edf9f3;
}

.wft-bhero-fulfilment span {
  color: #277358;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.wft-bhero-fulfilment strong {
  color: #105c40;
  font-size: 15px;
}

.wft-bhero-fulfilment small {
  color: #5f756e;
  font-size: 11px;
  font-weight: 700;
}

.wft-card-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #20343c;
  font-size: 17px;
}

.wft-card-head h3::before {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.wft-contact-card .wft-card-head h3::before {
  content: "1";
  background: #167c78;
}

.wft-booking-form .wft-card-head h3::before {
  content: "2";
  background: #b87418;
}

.wft-card .field label,
.wft-card .warranty-dropdown-field > label {
  margin-bottom: 5px;
  color: #43565f;
  font-size: 11px;
  font-weight: 900;
}

.wft-card input:not(:disabled),
.wft-card select:not(:disabled),
.wft-card textarea:not(:disabled),
.wft-card .standard-select:not(.disabled) .standard-select-button,
.wft-card .warranty-dropdown:not(.disabled) .warranty-dropdown-button {
  border: 1px solid #9db3bd;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25, 50, 61, 0.06);
}

.wft-card input:not(:disabled):focus,
.wft-card select:not(:disabled):focus,
.wft-card textarea:not(:disabled):focus,
.wft-card .standard-select:not(.disabled) .standard-select-button:focus,
.wft-card .warranty-dropdown:not(.disabled) .warranty-dropdown-button:focus {
  border-color: #167c78;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22, 124, 120, 0.14);
}

.wft-card input:disabled,
.wft-card select:disabled,
.wft-card textarea:disabled,
.wft-card .standard-select.disabled .standard-select-button,
.wft-card .standard-select-button:disabled,
.wft-card .warranty-dropdown.disabled .warranty-dropdown-button,
.wft-card .warranty-dropdown-button:disabled {
  border-color: #d7e0e4;
  background: #edf2f4;
  color: #64747c;
  box-shadow: none;
  cursor: not-allowed;
}

.wft-card textarea:not(:disabled) {
  min-height: 88px;
}

.wft-card > .full:last-child {
  padding-top: 2px;
}

.wft-card > .full:last-child .btn {
  min-width: 180px;
}

.wft-booking-form .wft-route-grid {
  border: 0;
  border-left: 4px solid #7d91a0;
  border-radius: 6px;
  background: #eef3f5;
}

.wft-readonly-route .warranty-dropdown-button,
.wft-readonly-route .warranty-dropdown-button:disabled,
.wft-readonly-route.disabled .warranty-dropdown-button,
.wft-readonly-route .wft-route-search-input,
.wft-readonly-route .wft-route-search-input:disabled,
.wft-readonly-route.disabled .wft-route-search-input {
  border-color: transparent;
  background: #dde7eb;
  color: #465c66;
}

.wft-transport-rule-card {
  border-width: 0 0 0 4px;
  border-radius: 6px;
  box-shadow: none;
}

.wft-history {
  border-color: #dbe4e8;
  background: #f8fafb;
  box-shadow: none;
}

.wft-history > .claim-result-tester-head {
  padding-bottom: 9px;
  border-bottom: 1px solid #e1e8eb;
}

.wft-history > .claim-result-tester-head strong {
  color: #52656e;
  font-size: 13px;
}

.wft-contact-history {
  border-left: 3px solid #75aaa7;
}

.wft-booking-history {
  border-left: 3px solid #d3aa69;
}

.wft-history .empty {
  min-height: 72px;
  background: transparent;
}

@media (max-width: 1100px) {
  .wft-work-grid {
    grid-template-columns: 1fr;
  }

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

  .wft-case-summary-grid > div:nth-child(3n) {
    border-right: 1px solid #e2e9e7;
  }

  .wft-case-summary-grid > div:nth-child(2n) {
    border-right: 0;
  }

}

@media (max-width: 700px) {
  .wft-detail-body {
    padding: 12px;
  }

  .wft-case-summary-grid,
  .wft-card.form-grid,
  .wft-booking-form .wft-route-grid,
  .wft-evidence-card .claim-result-evidence-grid {
    grid-template-columns: 1fr;
  }

  .wft-booking-form .wft-route-field {
    grid-template-columns: 1fr;
  }

  .wft-booking-form .wft-route-field > label,
  .wft-booking-form .wft-route-search-input,
  .wft-booking-form .wft-route-suggestions,
  .wft-transport-from-locked::after {
    grid-column: 1;
  }

  .wft-booking-form .wft-route-suggestions {
    left: 0;
  }

  .wft-case-summary-grid > div,
  .wft-case-summary-grid > div:nth-child(2n),
  .wft-case-summary-grid > div:nth-child(3n),
  .wft-case-summary-grid > div:nth-last-child(-n + 2),
  .wft-case-summary-grid > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid #e2e9e7;
  }

  .wft-case-summary-grid > div:last-child {
    border-bottom: 0;
  }

  .wft-case-summary-grid > .wft-case-summary-bhero {
    grid-template-columns: 1fr;
  }

  .wft-case-summary-bhero span {
    grid-row: auto;
  }
}

.periodic-queue-type > summary {
  cursor: pointer;
  list-style: none;
}

.periodic-queue-type > summary::-webkit-details-marker {
  display: none;
}

.periodic-queue-type:not([open]) > .periodic-queue-type-head {
  border-bottom: 0;
}

.periodic-queue-type-head .actions::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.periodic-queue-type[open] > .periodic-queue-type-head .actions::after {
  transform: rotate(225deg);
}

.periodic-queue-columns {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

@media (max-width: 900px) {
  .periodic-queue-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1700px) {
  .pos-sales-overview {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }
}

@media (max-width: 650px) {
  .pos-sales-title {
    padding: 16px 16px 16px 24px;
  }

  .pos-sales-title::before {
    inset: 14px auto 14px 11px;
  }

  .pos-sales-overview {
    grid-template-columns: 1fr;
  }

  .pos-sales-metric-card {
    min-height: 96px;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }

  .pos-sales-metric-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .pos-sales-metric-text strong {
    font-size: 26px;
  }
}

.warehouse-schedule-check-filter {
  grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
  align-items: end;
}

.warehouse-schedule-button-row,
.warehouse-schedule-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.warehouse-schedule-button-row {
  flex-wrap: nowrap;
}

.warehouse-schedule-section-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
}

@media (max-width: 850px) {
  .warehouse-schedule-check-filter {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .warehouse-schedule-search-actions,
  .warehouse-schedule-section-actions {
    grid-column: 1 / -1;
  }

  .warehouse-schedule-section-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .warehouse-schedule-check-filter {
    grid-template-columns: 1fr;
  }
}

input[type="date"].native-date-input,
input[type="time"].native-time-input {
  min-width: 0;
  padding-right: 42px;
  color-scheme: light;
  cursor: pointer;
}

input[type="date"].native-date-input:disabled,
input[type="time"].native-time-input:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #f1f5f9;
}

input[type="date"].native-date-input::-webkit-calendar-picker-indicator {
  width: 28px;
  height: 28px;
  margin-right: -4px;
  padding: 4px;
  cursor: pointer;
  opacity: 1;
}

.wft-card input[type="date"].native-date-input,
.wft-card input[type="time"].native-time-input {
  min-height: 38px;
}

.wft-card input[type="date"].native-date-input:disabled,
.wft-card input[type="time"].native-time-input:disabled {
  color: #94a3b8;
  background: #f1f5f9;
}

.native-field-picker {
  position: fixed;
  z-index: 5000;
  padding: 10px;
  border: 1px solid #d8e4ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}

.native-picker-head,
.native-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.native-picker-head button,
.native-picker-actions button,
.native-picker-day {
  min-height: 32px;
  border: 1px solid #dbe6ee;
  border-radius: 8px;
  background: #fff;
  color: #243244;
  font-weight: 800;
}

.native-picker-head button {
  width: 36px;
  font-size: 20px;
}

.native-picker-weekdays,
.native-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.native-picker-weekdays {
  margin: 10px 0 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.native-picker-day {
  padding: 0;
}

.native-picker-day.is-empty {
  border: 0;
  background: transparent;
}

.native-picker-day.is-today {
  border-color: #20b867;
  color: #087d4e;
}

.native-picker-day.is-selected {
  border-color: #0888f5;
  background: #e1f1ff;
  color: #075184;
}

.native-picker-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.native-picker-actions button {
  padding: 0 10px;
}

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

.native-time-picker label {
  display: grid;
  gap: 5px;
}

.native-time-picker input {
  min-height: 38px;
  text-align: center;
  font-weight: 800;
}

.inventory-movement-lines {
  display: grid;
  gap: 10px;
}

.inventory-movement-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 220px) auto;
  gap: 10px;
  align-items: end;
}

.inventory-add-line {
  width: max-content;
  margin-top: 10px;
}

.inventory-remove-line {
  min-width: 86px;
}

@media (max-width: 650px) {
  .inventory-movement-line {
    grid-template-columns: 1fr;
  }

  .inventory-add-line,
  .inventory-remove-line {
    width: 100%;
  }
}

.public-warranty-status-page {
  min-height: 100vh;
  padding: 28px;
  background: linear-gradient(180deg, #eefbf5 0%, #f5f8fb 38%, #eef3f8 100%);
  color: #1f2a3d;
}

.public-warranty-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.public-status-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.public-status-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.public-login-link {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cfe0ea;
  border-radius: 999px;
  background: #fff;
  color: #1f2a3d;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.public-status-hero {
  margin-bottom: 22px;
}

.public-status-hero p {
  margin: 0 0 10px;
  color: #087d4e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-status-hero h1 {
  margin: 0 0 10px;
  color: #172033;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
}

.public-status-hero span {
  display: block;
  max-width: 680px;
  color: #64748b;
  font-size: 18px;
  font-weight: 700;
}

.public-lookup-panel,
.public-results-panel,
.public-status-empty {
  margin-top: 16px;
}

.public-warranty-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.public-plate-input {
  text-transform: uppercase;
}

.public-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-form-actions .btn {
  min-height: 48px;
  white-space: nowrap;
}

.public-status-empty .body {
  display: grid;
  gap: 8px;
  min-height: 90px;
  align-content: center;
  color: #64748b;
  text-align: center;
}

.public-status-empty strong {
  color: #1f2a3d;
}

.public-case-list {
  display: grid;
  gap: 14px;
}

.public-warranty-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #dfe9f1;
  border-radius: 14px;
  background: #fff;
}

.public-warranty-card-head,
.public-warranty-meta {
  display: grid;
  gap: 12px;
}

.public-warranty-card-head {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.public-warranty-card-head span,
.public-warranty-meta span,
.public-timeline-item span {
  display: block;
  margin-bottom: 4px;
  color: #758398;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.public-warranty-card-head strong {
  font-size: 22px;
}

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

.public-warranty-meta strong,
.public-timeline-item strong {
  color: #1f2a3d;
  font-weight: 900;
}

.public-claim-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-claim-detail-grid > div {
  padding: 14px;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #fbfdff;
}

.public-claim-detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: #758398;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.public-claim-detail-grid strong {
  color: #1f2a3d;
  font-weight: 900;
}

.public-claim-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.public-claim-status-strip > div {
  padding: 14px;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #fbfdff;
}

.public-claim-status-strip span,
.public-latest-update span {
  display: block;
  margin-bottom: 5px;
  color: #758398;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.public-claim-status-strip strong,
.public-latest-update strong {
  color: #1f2a3d;
  font-weight: 900;
}

.public-latest-update {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.public-latest-update p {
  margin: 6px 0 0;
  color: #36506f;
  font-weight: 800;
}

.public-status-summary,
.public-booking-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
}

.public-status-summary.is-green {
  border: 1px solid #bdebd1;
  background: #effbf4;
  color: #087d4e;
}

.public-status-summary.is-blue {
  border: 1px solid #cfefff;
  background: #eff9ff;
  color: #075184;
}

.public-status-summary.is-yellow {
  border: 1px solid #f8e6a0;
  background: #fff8db;
  color: #8a6400;
}

.public-status-summary strong {
  font-size: 18px;
}

.public-status-summary span {
  color: inherit;
  font-weight: 700;
}

.public-warranty-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.public-progress-step {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #fbfdff;
  color: #64748b;
}

.public-progress-step.is-done {
  border-color: #bdebd1;
  background: #f0fbf5;
  color: #087d4e;
}

.public-progress-step.is-active {
  border-color: #9bd7ff;
  background: #eff9ff;
  color: #075184;
  box-shadow: inset 0 0 0 1px #cfefff;
}

.public-progress-dot {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e9f0f5;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.public-progress-step.is-done .public-progress-dot {
  background: #21b36b;
  color: #fff;
}

.public-progress-step.is-active .public-progress-dot {
  background: #0ea5e9;
  color: #fff;
}

.public-progress-step strong {
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
}

.public-progress-date {
  align-self: end;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.public-progress-step.is-done .public-progress-date {
  color: #0f8f5b;
}

.public-progress-step.is-active .public-progress-date {
  color: #075184;
}

.public-booking-box {
  border: 1px solid #dfe9f1;
  background: #f8fbfd;
}

.public-booking-box h3 {
  margin: 0;
  font-size: 18px;
}

.public-warranty-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.public-timeline-item {
  padding: 12px;
  border: 1px solid #e2ebf2;
  border-radius: 10px;
  background: #fbfdff;
}

.public-status-footnote {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 850px) {
  .public-warranty-status-page {
    padding: 18px;
  }

  .public-warranty-form,
  .public-warranty-meta,
  .public-claim-detail-grid,
  .public-claim-status-strip,
  .public-warranty-timeline,
  .public-warranty-progress {
    grid-template-columns: 1fr;
  }

  .public-progress-step {
    min-height: auto;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .public-warranty-card-head {
    grid-template-columns: 1fr;
  }

  .public-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.pitstop-stock-groups {
  display: grid;
  gap: 12px;
}

.pitstop-stock-region,
.pitstop-stock-type,
.pitstop-stock-zone,
.pitstop-stock-card {
  border: 1px solid #dfe9f1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pitstop-stock-region > summary,
.pitstop-stock-type > summary,
.pitstop-stock-zone > summary,
.pitstop-stock-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.pitstop-stock-region > summary::-webkit-details-marker,
.pitstop-stock-type > summary::-webkit-details-marker,
.pitstop-stock-zone > summary::-webkit-details-marker,
.pitstop-stock-card > summary::-webkit-details-marker {
  display: none;
}

.pitstop-stock-region > summary {
  background: #f8fbfd;
  border-bottom: 1px solid #dfe9f1;
}

.pitstop-stock-card > summary {
  background: #fff;
}

.pitstop-stock-type > summary {
  background: #fdfefe;
  border-bottom: 1px solid #e6eef5;
}

.pitstop-stock-zone > summary {
  background: #fff;
  border-bottom: 1px solid #e6eef5;
}

.pitstop-stock-type[open] > summary {
  border-bottom: 1px solid #e6eef5;
}

.pitstop-stock-zone[open] > summary {
  border-bottom: 1px solid #e6eef5;
}

.pitstop-stock-card[open] > summary {
  border-bottom: 1px solid #edf2f5;
}

.pitstop-stock-summary-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pitstop-stock-summary-main strong {
  color: #1f2a3d;
  font-size: 14px;
  line-height: 1.2;
}

.pitstop-stock-summary-main small {
  color: #66778a;
  font-size: 12px;
  font-weight: 700;
}

.pitstop-stock-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pitstop-stock-region-list {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbfdff;
}

.pitstop-stock-type-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fbfdff;
}

.pitstop-stock-detail {
  padding: 0;
  background: #fff;
}

.pitstop-stock-detail .table-wrap {
  border: 0;
  box-shadow: none;
}

.pitstop-stock-detail table {
  min-width: 760px;
}

.pitstop-stock-detail th,
.pitstop-stock-detail td {
  padding: 9px 12px;
}

@media (max-width: 700px) {
	  .pitstop-stock-region > summary,
	  .pitstop-stock-type > summary,
	  .pitstop-stock-zone > summary,
	  .pitstop-stock-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pitstop-stock-metrics {
    justify-content: flex-start;
  }
}

.zs-monitoring-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: #f8fbfd;
}

.zs-monitoring-card-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.zs-monitoring-card-section.is-blue {
  border-top: 4px solid var(--blue);
}

.zs-monitoring-card-section.is-green {
  border-top: 4px solid var(--green);
}

.zs-monitoring-card-section.is-yellow {
  border-top: 4px solid var(--yellow);
}

.zs-monitoring-card-section.is-red {
  border-top: 4px solid var(--red);
}

.zs-monitoring-card-section-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.zs-monitoring-card-section-head h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
}

.zs-monitoring-card-grid,
.zs-monitoring-pitstop-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.zs-monitoring-pitstop-card {
  display: grid;
  gap: 9px;
  border: 1px solid #e5edf4;
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: none;
}

.zs-monitoring-pitstop-card.is-open {
  border-left-color: var(--green);
}

.zs-monitoring-pitstop-card.is-late {
  border-left-color: var(--red);
}

.zs-monitoring-pitstop-card.is-closed {
  border-left-color: var(--green);
}

.zs-monitoring-pitstop-card.is-not-opened {
  border-left-color: var(--yellow);
}

.zs-monitoring-pitstop-card-head,
.zs-monitoring-pitstop-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zs-monitoring-pitstop-card-head strong {
  display: block;
  color: #172033;
  font-size: 14px;
  line-height: 1.2;
}

.zs-monitoring-pitstop-card-head span,
.zs-monitoring-card-detail span,
.zs-monitoring-card-metrics span,
.zs-monitoring-card-work span,
.zs-monitoring-pitstop-card-foot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.zs-monitoring-open-time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.zs-monitoring-open-time.is-late {
  color: var(--red);
}

.zs-monitoring-pitstop-card-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.zs-monitoring-card-detail {
  display: grid;
  gap: 3px;
}

.zs-monitoring-card-detail strong {
  color: #243044;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.zs-monitoring-card-detail small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.zs-monitoring-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, .45fr) minmax(130px, .55fr);
  gap: 8px;
}

.zs-monitoring-card-summary div {
  min-width: 0;
  border: 1px solid #edf2f5;
  border-radius: 6px;
  background: #fbfdfe;
  padding: 8px;
}

.zs-monitoring-card-summary span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.zs-monitoring-card-summary strong {
  display: block;
  color: #172033;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.zs-monitoring-card-metrics,
.zs-monitoring-card-work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.zs-monitoring-card-metrics div,
.zs-monitoring-card-work div {
  min-width: 0;
  border: 1px solid #edf2f5;
  border-radius: 6px;
  background: #fbfdfe;
  padding: 7px;
}

.zs-monitoring-card-metrics strong,
.zs-monitoring-card-work strong {
  display: block;
  margin-top: 2px;
  color: #172033;
  font-size: 14px;
}

.zs-monitoring-pitstop-card-foot {
  align-items: center;
  border-top: 1px solid #edf2f5;
  padding-top: 8px;
}

.zs-opening-history-table table {
  min-width: 640px;
  table-layout: fixed;
}

.zs-opening-history-table th:first-child,
.zs-opening-history-table td:first-child {
  width: 22%;
}

.zs-opening-history-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.zs-opening-history-cell .badge {
  width: max-content;
}

.zs-opening-history-view {
  min-height: 30px;
  padding: 0 9px;
}

.zs-opening-history-modal {
  max-width: 560px;
}

.zs-opening-history-modal .table-wrap table {
  min-width: 0;
}

@media (max-width: 1050px) {
  .zs-monitoring-split {
    grid-template-columns: 1fr;
  }

  .zs-monitoring-card-metrics,
  .zs-monitoring-card-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.zs-dashboard-opening-chart {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.zs-dashboard-pie {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(#14b8a6 var(--open-pct, 0%), #fff1bd 0);
  box-shadow: inset 0 0 0 18px #fff, 0 10px 24px rgba(32, 42, 51, .1);
  color: #172033;
}

.zs-dashboard-pie span,
.zs-dashboard-pie small {
  grid-area: 1 / 1;
}

.zs-dashboard-pie span {
  margin-top: -10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.zs-dashboard-pie small {
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.zs-dashboard-pie-legend {
  display: grid;
  gap: 10px;
}

.zs-dashboard-pie-legend div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf2f5;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.zs-dashboard-pie-legend strong {
  color: #172033;
  font-size: 13px;
}

.zs-dashboard-pie-legend em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.zs-dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.zs-dashboard-dot.is-open {
  background: #14b8a6;
}

.zs-dashboard-dot.is-not-open {
  background: #f7b600;
}

.periodic-checklist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.periodic-frequency-sections {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.periodic-frequency-section {
  min-width: 0;
  padding-top: 12px;
  border-top: 3px solid #dce6ed;
}

.periodic-frequency-section.is-daily {
  border-top-color: #1fa86b;
}

.periodic-frequency-section.is-weekly {
  border-top-color: #1688e8;
}

.periodic-frequency-section.is-monthly {
  border-top-color: #7b55d9;
}

.periodic-frequency-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.periodic-frequency-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.periodic-frequency-head span {
  color: #172033;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.periodic-frequency-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

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

.periodic-frequency-list > .periodic-checklist-panel {
  margin-top: 0 !important;
}

.periodic-checklist-summary {
  cursor: pointer;
  list-style: none;
}

.periodic-checklist-summary::-webkit-details-marker {
  display: none;
}

.periodic-checklist-panel:not([open]) > .periodic-checklist-summary {
  border-bottom: 0;
}

.periodic-checklist-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #edf3f7;
  color: #26323d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.periodic-checklist-toggle::after {
  content: "⌄";
}

.periodic-checklist-panel[open] .periodic-checklist-toggle::after {
  content: "⌃";
}

.periodic-location-overview {
  overflow: hidden;
  border-color: #cbd8e2;
}

.periodic-location-overview-summary {
  cursor: pointer;
  list-style: none;
}

.periodic-location-overview-summary::-webkit-details-marker {
  display: none;
}

.periodic-location-overview:not([open]) > .periodic-location-overview-summary {
  border-bottom: 0;
}

.periodic-location-overview[open] .periodic-checklist-toggle::after {
  content: "⌃";
}

.periodic-checklist-history-panel {
  overflow: hidden;
  border-color: #c7d1dc;
  background: #f8fafc;
  box-shadow: inset 4px 0 0 #64748b;
}

.periodic-checklist-history-head {
  min-height: 64px;
  border-bottom-color: #c7d1dc;
  background: #e9eef3;
}

.periodic-checklist-history-title {
  display: grid;
  gap: 2px;
}

.periodic-checklist-history-title > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.periodic-checklist-history-title h2 {
  color: #26384a;
}

.periodic-checklist-history-panel .table th {
  background: #edf2f6;
}

.periodic-checklist-meta strong {
  color: #172033;
}

.periodic-checklist-description {
  flex-basis: 100%;
}

.periodic-checklist-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.periodic-checklist-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fff;
}

.periodic-checklist-table {
  min-width: 920px;
}

.periodic-checklist-table.periodic-no-qty-table {
  min-width: 760px;
}

.periodic-checklist-table th {
  font-size: 11px;
  white-space: nowrap;
}

.periodic-checklist-table td {
  vertical-align: middle;
}

.periodic-checklist-table tr.needs-action {
  background: #fffdf7;
}

.periodic-checklist-tool-cell {
  width: 30%;
}

.periodic-checklist-tool-cell strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.periodic-checklist-qty-cell {
  width: 120px;
}

.periodic-checklist-qty-cell input {
  max-width: 96px;
}

.periodic-checklist-ok-cell {
  width: 92px;
}

.periodic-checklist-table input,
.periodic-checklist-table select {
  min-height: 34px;
}

.periodic-tool-category-list {
  display: grid;
  gap: 10px;
}

.periodic-tool-category {
  overflow: hidden;
  border: 1px solid #dfe9ef;
  border-radius: 6px;
  background: #fff;
}

.periodic-tool-category-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #26384a;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
}

.periodic-tool-category-summary::-webkit-details-marker {
  display: none;
}

.periodic-tool-category[open] .periodic-tool-category-summary {
  color: #075f3d;
  background: #f1fbf6;
  border-bottom: 1px solid #dfe9ef;
}

.periodic-tool-category-toolbar {
  margin: 0;
  padding: 8px 10px;
  background: #fbfdfe;
  border-bottom: 1px solid #e4edf3;
}

.periodic-tool-category .periodic-checklist-table-wrap {
  border: 0;
  border-radius: 0;
}

.periodic-standard-tools-table {
  min-width: 850px;
}

.periodic-standard-tools-table tr.is-declared {
  background: #f8fcfa;
}

.periodic-standard-tools-table tr.is-pending {
  background: #fff;
}

.periodic-standard-required-cell {
  width: 110px;
  color: #075f3d;
}

.periodic-standard-found-cell {
  width: 130px;
}

.periodic-standard-condition-cell {
  width: 210px;
}

.periodic-standard-found-cell input {
  max-width: 110px;
}

@media (max-width: 650px) {
  .periodic-tool-category-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.state-zone-summary-list {
  border-top: 1px solid var(--line);
}

.state-zone-state-details {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.state-zone-state-summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.state-zone-state-summary::-webkit-details-marker {
  display: none;
}

.state-zone-state-summary strong {
  font-size: 13px;
}

.state-zone-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-height: 24px;
  border-radius: 999px;
  background: #edf3f7;
  color: #26323d;
  font-size: 12px;
  font-weight: 900;
}

.state-zone-toggle::after {
  content: "⌄";
}

.state-zone-state-details[open] > .state-zone-state-summary .state-zone-toggle::after {
  content: "⌃";
}

.state-zone-zone-table {
  padding: 0 14px 14px;
}

.periodic-reminder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.periodic-reminder-card {
  min-width: 0;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.periodic-reminder-card.is-due {
  border-color: #d95f5f;
  background: #ef9a9a;
}

.periodic-reminder-card.is-due .periodic-reminder-head strong,
.periodic-reminder-card.is-due .periodic-reminder-meta strong {
  color: #4f1414;
}

.periodic-reminder-card.is-due .periodic-reminder-status > span,
.periodic-reminder-card.is-due .periodic-reminder-meta > span {
  color: #762525;
}

.periodic-reminder-card.is-done-incomplete {
  border-color: #e1ad35;
  background: #fff1c7;
}

.periodic-reminder-card.is-done-incomplete .periodic-reminder-head strong,
.periodic-reminder-card.is-done-incomplete .periodic-reminder-meta strong {
  color: #4b3710;
}

.periodic-reminder-card.is-done-incomplete .periodic-reminder-status > span,
.periodic-reminder-card.is-done-incomplete .periodic-reminder-meta > span {
  color: #755617;
}

.periodic-reminder-head,
.periodic-reminder-status,
.periodic-reminder-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.periodic-reminder-head {
  margin-bottom: 10px;
}

.periodic-reminder-head strong {
  color: #172033;
  font-size: 14px;
}

.periodic-reminder-status {
  margin-bottom: 8px;
}

.periodic-reminder-status span,
.periodic-reminder-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.periodic-reminder-meta {
  min-height: 22px;
}

.periodic-reminder-meta strong {
  min-width: 0;
  color: #172033;
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.periodic-checklist-by-pitstop {
  display: grid;
  gap: 12px;
}

.periodic-monitoring-detail-panel {
  border-color: #8fc7b5;
  background: #f5faf8;
  box-shadow: inset 4px 0 0 #26866a;
}

.periodic-monitoring-detail-panel > .panel-head {
  border-bottom-color: #b8d9ce;
  background: #e5f2ee;
}

.periodic-monitoring-detail-panel > .panel-head h2 {
  color: #185b47;
}

.periodic-monitoring-detail-panel > .body {
  background: #f7faf9;
}

.periodic-checklist-type {
  border: 1px solid #cddfd9;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.periodic-checklist-type summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-left: 4px solid #26866a;
  background: #edf6f3;
  cursor: pointer;
  list-style: none;
}

.periodic-checklist-type[open] summary {
  border-bottom: 1px solid #cddfd9;
  background: #dfeee9;
}

.periodic-checklist-type summary > span {
  margin-left: auto;
}

.periodic-checklist-type summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: 4px;
  border-right: 2px solid #26624f;
  border-bottom: 2px solid #26624f;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.periodic-checklist-type[open] summary::after {
  transform: rotate(225deg);
}

.periodic-checklist-type summary::-webkit-details-marker {
  display: none;
}

.periodic-checklist-type summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.periodic-period-queue {
  display: grid;
  gap: 14px;
}

.periodic-queue-type {
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.periodic-queue-type-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #eaf0f4;
  background: #fbfdfe;
}

.periodic-queue-type-head h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
}

.periodic-queue-type-head > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.periodic-queue-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
}

.periodic-queue-columns > div {
  min-width: 0;
  padding: 12px;
}

.periodic-queue-columns > div + div {
  border-left: 1px solid #eaf0f4;
}

.periodic-queue-columns h4 {
  margin: 0 0 10px;
  color: #405066;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.periodic-checklist-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.periodic-checklist-item-card {
  min-width: 0;
  border: 1px solid #e4edf3;
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.periodic-checklist-item-head {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.periodic-checklist-item-head strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.25;
}

.periodic-checklist-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #12764b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.periodic-checklist-item-fields {
  display: grid;
  grid-template-columns: 72px minmax(120px, .8fr) minmax(160px, 1.2fr);
  gap: 8px;
}

.periodic-checklist-item-fields.no-qty {
  grid-template-columns: minmax(140px, .9fr) minmax(180px, 1.1fr);
}

.periodic-checklist-item-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.periodic-checklist-item-fields span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.periodic-checklist-item-fields input,
.periodic-checklist-item-fields select {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1500px) {
  .periodic-checklist-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .periodic-checklist-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .periodic-queue-columns {
    grid-template-columns: 1fr;
  }

  .periodic-queue-columns > div + div {
    border-top: 1px solid #eaf0f4;
    border-left: 0;
  }

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

@media (max-width: 650px) {
  .periodic-frequency-head {
    align-items: flex-start;
  }

  .periodic-frequency-head small {
    max-width: 240px;
  }

  .periodic-checklist-card-grid,
  .periodic-checklist-item-fields,
  .periodic-checklist-item-fields.no-qty {
    grid-template-columns: 1fr;
  }

  .zs-dashboard-opening-chart {
    grid-template-columns: 1fr;
  }

  .zs-dashboard-pie-legend div {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .zs-dashboard-pie-legend em {
    grid-column: 2;
  }
}

@media (max-width: 650px) {
  .zs-monitoring-pitstop-card-head,
  .zs-monitoring-pitstop-card-foot {
    display: grid;
    grid-template-columns: 1fr;
  }

  .zs-monitoring-card-metrics,
  .zs-monitoring-card-work,
  .zs-monitoring-card-summary {
    grid-template-columns: 1fr;
  }
}

.po-bp-clock-monitor-table {
  min-width: 760px;
}

.po-checklist-status-table {
  min-width: 760px;
}

.po-checklist-status-table .po-checklist-status-group-row td {
  background: #f1fbf6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.po-checklist-status-table .po-checklist-status-user-row td {
  background: #fff;
}

.po-checklist-status-table tbody tr:first-child td {
  border-top: 0;
}

.po-bp-clock-monitor-table .po-bp-clock-group-row td {
  background: #f1fbf6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.po-bp-clock-monitor-table .po-bp-clock-user-row td {
  background: #fff;
}

.po-bp-clock-monitor-table tbody tr:first-child td {
  border-top: 0;
}

.po-bp-clock-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.po-bp-clock-group-head .actions {
  justify-content: flex-end;
}

.po-bp-clock-pitstop-name,
.po-bp-clock-pitstop-meta,
.po-bp-clock-user-name,
.po-bp-clock-user-id {
  display: block;
}

.po-bp-clock-pitstop-name {
  color: #075f3d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.po-bp-clock-pitstop-meta {
  color: #198060;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.po-bp-clock-user-cell {
  padding-left: 14px;
  border-left: 3px solid #d7efe3;
}

.po-bp-clock-user-name {
  color: #22313f;
  font-size: 13px;
  font-weight: 800;
}

.po-bp-clock-user-id {
  color: #66788a;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

@media (max-width: 650px) {
  .po-bp-clock-group-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .po-bp-clock-group-head .actions {
    justify-content: flex-start;
  }
}

.daily-complaint-action-modal {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.zs-warranty-review-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}

.zs-warranty-review-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 12px 0;
}

.zs-warranty-review-followup {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.zs-warranty-review-followup label {
  color: #405568;
  font-size: 12px;
  font-weight: 800;
}

.zs-warranty-review-followup textarea {
  min-height: 92px;
}

.zs-warranty-review-notice {
  padding: 10px 12px;
  border: 1px solid #bfe0f0;
  border-left: 4px solid #2498c7;
  border-radius: 6px;
  background: #f0f9fd;
  color: #294c5e;
  font-size: 12px;
  line-height: 1.45;
}

.zs-warranty-review-followup-meta {
  color: #68798a;
  font-size: 11px;
  font-weight: 700;
}

.zs-warranty-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.daily-complaint-zs-action-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.daily-complaint-zs-action-form textarea {
  min-height: 110px;
}

.daily-complaint-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
}

.daily-complaint-trail-section {
  background: #fff;
}

.daily-complaint-action-trail {
  padding: 8px 14px 14px;
}

.daily-complaint-resolution-note {
  display: block;
  min-width: 220px;
  max-width: 340px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #174f3f;
  font-weight: 800;
  line-height: 1.4;
}

.daily-complaint-trail-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
}

.daily-complaint-trail-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: -10px;
  left: 6px;
  width: 2px;
  background: #d9e5e0;
}

.daily-complaint-trail-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 3px solid #d9f0e7;
  border-radius: 50%;
  background: #238668;
}

.daily-complaint-trail-content {
  min-width: 0;
}

.daily-complaint-trail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-complaint-trail-head strong {
  color: #1f3040;
  font-size: 13px;
}

.daily-complaint-trail-meta {
  margin-top: 3px;
  color: #68798a;
  font-size: 11px;
  font-weight: 700;
}

.daily-complaint-trail-content p {
  margin: 6px 0 0;
  color: #344958;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 650px) {
  .daily-complaint-zs-action-form {
    grid-template-columns: 1fr;
  }

  .daily-complaint-trail-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .daily-complaint-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Final POS order-entry presentation. Keep after legacy theme rules. */
.pos-sales-fields {
  gap: 12px;
}

.pos-sales-fields .field,
.pos-sales-fields .field:nth-child(1),
.pos-sales-fields .field:nth-child(2),
.pos-sales-fields .field:nth-child(3),
.pos-sales-fields .field:nth-child(4) {
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #d4dee4;
  border-left: 1px solid #d4dee4;
  border-radius: 8px;
  background: #f7f9fa;
  box-shadow: none;
}

.pos-sales-fixed-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 6px;
}

.pos-sales-fixed-field span {
  color: #687886;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pos-sales-fixed-field strong {
  min-width: 0;
  color: #162a33;
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pos-sales-input-field label {
  color: #425462;
}

.pos-sales-fields .pos-sales-input-field input {
  border-color: #cbd7de;
  background: #fff;
  color: #162a33;
  box-shadow: inset 0 1px 2px rgba(18, 42, 51, .03);
}

.pos-sales-fields .pos-sales-input-field input:focus {
  border-color: #25775d;
  box-shadow: 0 0 0 3px rgba(37, 119, 93, .12);
}

.pos-sales-product-section {
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfdbe1;
  border-radius: 8px;
  background: #fff;
}

.pos-sales-product-top label {
  color: #1d3039;
  font-size: 13px;
  font-weight: 900;
}

.pos-sales-line-head,
.pos-sales-lines .sales-order-line {
  grid-template-columns: minmax(320px, 1fr) 70px 54px 88px 90px 92px 98px 44px;
  gap: 8px;
}

.pos-sales-line-head {
  min-height: 42px;
  padding: 0 10px;
  border-color: #174b3b;
  border-radius: 6px 6px 0 0;
  background: #174b3b;
  color: #fff;
  font-size: 10px;
}

.pos-sales-lines .sales-order-line {
  min-height: 98px;
  padding: 12px 10px;
  border-color: #d9e2e7;
  background: #fff;
  align-items: start;
}

.pos-sales-lines .sales-order-line:nth-child(even) {
  background: #fafcfc;
}

.pos-sales-lines .sales-order-line:hover {
  background: #f5f9f8;
  box-shadow: inset 3px 0 0 #5a8c79;
}

.pos-sales-lines .sales-order-line.is-pwp {
  box-shadow: inset 3px 0 0 #1f8a63;
}

.pos-sales-product-photo {
  width: 44px;
  height: 44px;
  border-color: #cfdbe1;
  border-radius: 6px;
  background: #f3f6f7;
  box-shadow: none;
}

.pos-sales-product-cell {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.pos-sales-product-info {
  gap: 3px;
}

.pos-sales-product-info strong {
  color: #172b34;
  font-size: 12px;
}

.pos-sales-product-info span {
  color: #657683;
  font-size: 10px;
}

.pos-sales-product-info .pos-sales-warranty-label {
  justify-self: start;
  border-radius: 4px;
  background: #eef3f1;
  color: #27644f;
  padding: 2px 6px;
}

.pos-sales-product-info .standard-select-button,
.pos-sales-product-info select,
.pos-sales-price-mode .standard-select-button,
.pos-sales-price-mode select,
.pos-sales-lines .sales-order-line > input {
  border-color: #cbd7de;
  border-radius: 6px;
  background: #fff;
  color: #253943;
}

.pos-sales-price-mode .standard-select-button {
  padding-right: 24px;
  padding-left: 8px;
  font-size: 10px;
}

.pos-sales-lines .sales-order-line > input,
.pos-sales-lines .sales-order-line > button,
.pos-sales-lines .sales-order-line > .pos-sales-plate-empty,
.pos-sales-lines .sales-order-line > .pos-sales-stock-pill,
.pos-sales-lines .sales-order-line > .pos-sales-discount-pill,
.pos-sales-lines .sales-order-line > .pos-sales-price-mode {
  align-self: start;
  min-height: 36px;
  height: 36px;
}

.pos-sales-stock-pill,
.pos-sales-discount-pill,
.pos-sales-discount-pill.is-empty {
  border-color: #d2dde2;
  border-radius: 6px;
  background: #f1f4f5;
  color: #435660;
  font-size: 10px;
  white-space: nowrap;
}

.pos-sales-stock-pill {
  background: #eef5f2;
  color: #245f4a;
}

.pos-sales-discount-pill.is-pwp,
.sales-order-line.is-pwp input[readonly][name="soUnitPrice"],
.sales-order-line.is-pwp .pos-sales-price-mode .standard-select-button,
.sales-order-line.is-pwp .pos-sales-price-mode select {
  border-color: #b8dccd;
  background: #eaf7f1;
  color: #126345;
}

.pos-sales-discount-pill.is-promotion,
.sales-order-line.is-promotion input[readonly][name="soUnitPrice"],
.sales-order-line.is-promotion .pos-sales-price-mode .standard-select-button,
.sales-order-line.is-promotion .pos-sales-price-mode select {
  border-color: #b8d9ea;
  background: #edf7fc;
  color: #145b7d;
}

.product-price-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  align-items: start;
}

@media (max-width: 1050px) {
  .product-price-options {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 650px) {
  .product-price-options {
    grid-template-columns: 1fr;
  }
}

.pos-sales-lines [data-so-line-total] {
  border-color: #c3d7ce;
  background: #f0f6f3;
  color: #174b3b;
}

.pos-sales-remove {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-color: #dfc9cd;
  border-radius: 6px;
  background: #fff;
  color: #9f2f40;
  font-size: 22px;
  font-weight: 500;
}

.pos-sales-add-line {
  border-color: #cbd7de;
  border-radius: 6px;
  background: #f7f9fa;
  color: #294b3e;
}

.operation-response-form {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.operation-response-form select,
.operation-response-form textarea {
  width: 100%;
}

.operation-response-form textarea {
  min-height: 72px;
  resize: vertical;
}

.operation-response-form .btn {
  justify-self: start;
}

.operation-category-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.operation-category-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 118px;
  border: 1px solid #d9e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(30, 45, 58, .08);
  padding: 14px;
  text-align: left;
  color: inherit;
}

.operation-category-card span {
  color: #5c6f7e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.operation-category-card strong {
  display: block;
  margin-top: 6px;
  color: #162636;
  font-size: 32px;
  line-height: 1;
}

.operation-category-card p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #536675;
  font-weight: 700;
  line-height: 1.35;
}

.operation-category-card-meta {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.operation-category-section-body {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f7fafc;
}

.operation-category-subsection {
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  background: #fff;
}

.operation-category-subhead {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e5edf2;
  background: #fbfdff;
  padding: 9px 12px;
}

.operation-category-subhead strong {
  color: #203244;
  font-size: 13px;
}

.operation-premise-status-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 14px;
  background: #f3f7fa;
}

.operation-premise-donut-card {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  border: 1px solid #d7e3eb;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.operation-premise-state-donut-card {
  justify-items: stretch;
}

.operation-premise-state-donut-card .operation-premise-donut {
  justify-self: center;
}

.operation-premise-state-donut-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.operation-premise-state-donut-head strong {
  color: #1b2d3f;
  font-size: 14px;
}

.operation-premise-state-donut-head small {
  color: #65798a;
  font-size: 11px;
  font-weight: 900;
}

.operation-premise-donut {
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(20, 41, 56, .08), 0 10px 24px rgba(33, 51, 66, .08);
}

.operation-premise-donut > div {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}

.operation-premise-donut strong {
  color: #152638;
  font-size: 34px;
  line-height: 1;
}

.operation-premise-donut span {
  margin-top: 4px;
  color: #64788a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.operation-premise-donut-legend {
  width: 100%;
  display: grid;
  gap: 8px;
}

.operation-premise-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  color: #203244;
  font-size: 12px;
  font-weight: 900;
}

.operation-premise-legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.operation-premise-legend-item em {
  color: #526b7d;
  font-style: normal;
}

.operation-premise-state-graph {
  display: grid;
  gap: 10px;
}

.operation-premise-state-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(160px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.operation-premise-state-name strong,
.operation-premise-pitstop-head strong {
  display: block;
  color: #1b2d3f;
  font-size: 13px;
}

.operation-premise-state-name small,
.operation-premise-pitstop-head small,
.operation-premise-state summary small,
.operation-premise-zone summary small {
  display: block;
  margin-top: 2px;
  color: #65798a;
  font-size: 11px;
  font-weight: 800;
}

.operation-premise-bar-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e8eef3;
}

.operation-premise-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22b98f;
}

.operation-premise-stacked-bar {
  display: flex;
}

.operation-premise-stacked-bar span {
  height: 100%;
}

.operation-premise-stacked-bar span:first-child {
  border-radius: 999px 0 0 999px;
}

.operation-premise-stacked-bar span:last-child {
  border-radius: 0 999px 999px 0;
}

.operation-premise-stacked-bar .is-new {
  background: #f5b72f;
}

.operation-premise-stacked-bar .is-acknowledged {
  background: #2698d6;
}

.operation-premise-stacked-bar .is-resolved {
  background: #24b47e;
}

.operation-premise-stacked-bar .is-other {
  background: #9fb0bd;
}

.operation-premise-state-counts {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.operation-premise-accordion {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #f3f7fa;
}

.operation-premise-state,
.operation-premise-zone {
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  background: #fff;
}

.operation-premise-state {
  border-color: #cbdce6;
  box-shadow: 0 8px 20px rgba(28, 45, 60, .06);
}

.operation-premise-zone {
  border-color: #d7e3eb;
}

.operation-premise-state > summary,
.operation-premise-zone > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 10px 14px;
}

.operation-premise-state > summary {
  border-left: 4px solid #1f9a78;
  background: linear-gradient(90deg, #eefaf5 0%, #fbfdff 44%, #fff 100%);
}

.operation-premise-zone > summary {
  border-left: 4px solid #8fb8d4;
  background: #fbfdff;
}

.operation-premise-state-body,
.operation-premise-zone-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e5edf2;
  padding: 10px;
}

.operation-premise-zone-body {
  background: #f8fbfd;
}

.operation-premise-pitstop {
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  background: #fff;
}

.operation-premise-pitstop-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e9eff4;
  background: #fcfdfd;
  padding: 12px 14px;
}

.operation-premise-issue-list {
  display: grid;
}

.operation-premise-issue-card {
  display: grid;
  grid-template-columns: minmax(180px, 300px) auto minmax(300px, 1fr);
  gap: 18px;
  align-items: center;
  border-top: 1px solid #eef2f5;
  padding: 14px;
}

.operation-premise-issue-card:first-child {
  border-top: 0;
}

.operation-premise-issue-main strong {
  display: block;
  color: #1b2d3f;
  font-size: 13px;
}

.operation-premise-issue-main span {
  display: block;
  margin-top: 3px;
  color: #526b7d;
  font-size: 12px;
  font-weight: 700;
}

.operation-premise-issue-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.operation-premise-issue-note {
  color: #203244;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .operation-category-dashboard {
    grid-template-columns: 1fr;
  }

  .operation-premise-state-row {
    grid-template-columns: 1fr;
  }

  .operation-premise-state-counts {
    justify-content: flex-start;
  }

  .operation-premise-issue-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .operation-category-card {
    display: grid;
  }

  .operation-category-card-meta {
    justify-content: flex-start;
  }

  .pos-sales-line-head {
    display: none;
  }

  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
  }

  .pos-sales-product-cell,
  .pos-sales-remove {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .pos-sales-lines .sales-order-line {
    grid-template-columns: 1fr;
  }
}

/* Keep the action-state treatment above the legacy SM escalation theme. */
.workflow-action-panel.sm-operation-escalation-panel {
  border-top: 4px solid #cf4053;
}

.workflow-action-panel.sm-operation-escalation-panel > .panel-head {
  border-bottom-color: #f0cbd1;
  background: #fff4f6;
}
