@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root{--ink:#0c2028;--navy:#091b22;--navy-2:#102a33;--paper:#f4f6f2;--surface:#fff;--line:#dfe5df;--muted:#697a7e;--green:#1d9a6c;--green-soft:#dcf4e9;--lime:#c9f06b;--amber:#e69b2d;--amber-soft:#fff1d8;--red:#d85555;--red-soft:#fee9e6;--blue:#377c9c;--shadow:0 14px 40px rgba(11,33,40,.08);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.035em}h1{font-size:30px;margin-bottom:4px}h2{font-size:23px;margin-bottom:6px}h3{font-size:16px;margin-bottom:4px}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;color:#6d8587;margin-bottom:7px}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:var(--navy);color:#dfe8e6;padding:26px 18px 18px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 9px 28px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--lime);color:var(--navy);font:800 23px Manrope}.brand-mark.small{width:37px;height:37px;border-radius:11px;font-size:19px}.brand b{display:block;font:800 15px Manrope;letter-spacing:.1em;color:#fff}.brand small{color:#87a0a1;font-size:11px}.sidebar nav{display:grid;gap:4px}.nav-group{font-size:9px;font-weight:800;letter-spacing:.17em;color:#5f797b;padding:18px 12px 7px}.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:11px;color:#98adae;font-weight:600;transition:.15s}.nav-item:hover{background:#102a33;color:#fff}.nav-item.active{background:#173740;color:#fff}.nav-icon{width:22px;text-align:center;font-size:15px}.nav-badge{margin-left:auto;background:var(--amber);color:#1f1b13;border-radius:20px;font-size:10px;padding:1px 7px}.sidebar-foot{margin-top:auto;border-top:1px solid #19343c;padding:16px 8px 2px}.user-chip{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#27454d;color:var(--lime);font-weight:800}.user-chip b,.user-chip small{display:block}.user-chip b{font-size:12px;color:white}.user-chip small{font-size:10px;color:#779193;text-transform:capitalize}.logout-link{display:block;color:#779193;font-size:11px;margin:11px 0 0 44px}.content{margin-left:245px;padding:28px 34px 48px;max-width:1700px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.top-actions{display:flex;gap:10px;align-items:center}.live-indicator{background:white;border:1px solid var(--line);border-radius:30px;padding:8px 13px;font-size:11px;font-weight:700}.live-indicator i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px var(--green-soft);margin-right:6px}.button{border:0;border-radius:10px;padding:10px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--navy);color:white;box-shadow:0 6px 16px rgba(9,27,34,.16)}.button.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.button.success{background:var(--green);color:white}.button.danger{background:var(--red-soft);color:#a73535}.button.ghost{background:transparent;color:var(--muted)}.button.small{padding:7px 10px;font-size:11px}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:17px 18px;position:relative;overflow:hidden}.kpi:after{content:'';position:absolute;right:-17px;bottom:-25px;width:75px;height:75px;border:17px solid #f3f6ef;border-radius:50%}.kpi-label{font-size:11px;font-weight:700;color:var(--muted);display:flex;justify-content:space-between}.kpi-value{font:800 30px Manrope;margin:9px 0 2px;letter-spacing:-.05em}.kpi-note{color:var(--muted);font-size:10px}.kpi.accent{background:var(--navy);color:white;border-color:var(--navy)}.kpi.accent .kpi-label,.kpi.accent .kpi-note{color:#91a6a5}.kpi.accent:after{border-color:#17343c}.grid-2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.75fr);gap:18px}.grid-even{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 15px rgba(10,40,45,.025);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #edf0eb}.panel-head p{margin:0}.panel-body{padding:18px 20px}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;white-space:nowrap}.data-table th{text-align:left;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#819092;padding:11px 14px;border-bottom:1px solid var(--line)}.data-table td{padding:12px 14px;border-bottom:1px solid #edf0ec;font-size:12px}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fafbf8}.primary-cell{font-weight:700}.subline{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:2px}.status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.status.available,.status.approved,.status.completed,.status.not_required{background:var(--green-soft);color:#177d59}.status.pending,.status.pending_approval,.status.assigned,.status.in_progress{background:var(--amber-soft);color:#a06819}.status.off{background:#e9eff7;color:#4d7195}.status.rejected,.status.cancelled,.status.sick{background:var(--red-soft);color:#b74444}.status.leave,.status.maintenance,.status.inactive{background:#edf0ef;color:#687576}.progress{height:5px;background:#edf1ec;border-radius:5px;overflow:hidden;margin-top:6px;width:95px}.progress i{display:block;height:100%;border-radius:5px;background:var(--green)}.progress.warn i{background:var(--amber)}.progress.danger i{background:var(--red)}.workline{display:flex;align-items:center;gap:9px}.workline b{font-size:11px;min-width:35px}.schedule-item{display:grid;grid-template-columns:52px 1fr auto;gap:13px;padding:13px 0;border-bottom:1px solid #edf0ec;align-items:center}.schedule-item:last-child{border:0}.time-block{font:800 15px Manrope}.time-block small{display:block;color:var(--muted);font:500 9px 'DM Sans'}.route-line{font-weight:700}.route-line small{display:block;color:var(--muted);font-weight:400}.fair-row{margin-bottom:14px}.fair-top{display:flex;justify-content:space-between;font-size:11px;margin-bottom:5px}.fair-top b{font-weight:700}.fair-bar{height:7px;background:#eef1ec;border-radius:5px;overflow:hidden}.fair-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--lime));border-radius:5px}.watch-card{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px solid #edf0ec}.watch-card:last-child{border:0}.watch-main{flex:1}.watch-main b{font-size:12px;display:block}.watch-main small{color:var(--muted)}.metric-pill{font:700 10px Manrope;padding:6px 8px;border-radius:8px;background:var(--amber-soft);color:#8e5a12}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:15px}.search{position:relative;max-width:300px;flex:1}.search input{padding-left:34px}.search:before{content:'⌕';position:absolute;left:12px;top:8px;color:#849092;font-size:17px}.filters{display:flex;gap:8px}.filters select{width:auto;min-width:130px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:span 3}label{display:grid;gap:5px;color:#354c51;font-size:11px;font-weight:700}label small{font-weight:400;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #d9e1dc;border-radius:10px;background:#fbfcfa;color:var(--ink);padding:10px 11px;outline:none;transition:.15s}input:focus,select:focus,textarea:focus{border-color:#62a58b;box-shadow:0 0 0 3px #e4f2ec;background:white}textarea{min-height:78px;resize:vertical}.checkbox-line{display:flex;align-items:flex-start;gap:10px;background:#f6f8f4;border:1px solid var(--line);padding:12px;border-radius:11px}.checkbox-line input{width:17px;height:17px;margin:1px 0 0}.checkbox-line span{font-size:11px}.checkbox-line b{display:block}.form-divider{position:relative;border-top:1px solid var(--line);margin:7px 0 2px}.form-divider span{position:absolute;top:-9px;background:white;padding-right:10px;font-size:9px;letter-spacing:.12em;color:#7b8b8c;font-weight:800}.plot-shell{display:grid;grid-template-columns:minmax(420px,.9fr) minmax(440px,1.1fr);gap:18px;align-items:start}.plot-summary{background:var(--navy);color:white;border-radius:15px;padding:17px;margin-bottom:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.plot-summary small{display:block;color:#89a4a5;font-size:9px}.plot-summary b{font:700 16px Manrope}.rule-banner{border:1px solid #f0d095;background:var(--amber-soft);color:#725024;border-radius:12px;padding:11px 13px;font-size:11px;margin-bottom:13px}.rule-banner strong{display:block;color:#59401f;margin-bottom:2px}.suggestion-list{display:grid;gap:8px;max-height:420px;overflow:auto;padding-right:3px}.suggestion{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}.suggestion.disabled{opacity:.55;background:#f6f7f5}.rank{width:30px;height:30px;border-radius:9px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:800}.suggestion b{font-size:12px}.suggestion small{display:block;color:var(--muted)}.suggestion-metrics{display:flex;gap:10px;text-align:right}.suggestion-metrics span{font-size:9px;color:var(--muted)}.suggestion-metrics b{display:block;color:var(--ink)}.driver-selects{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.approval-card{border:1px solid var(--line);border-radius:15px;padding:16px;margin-bottom:12px;background:white}.approval-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:13px}.approval-route{font:700 17px Manrope}.approval-route small{display:block;font:400 11px 'DM Sans';color:var(--muted);margin-top:3px}.approval-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;background:#f6f8f4;border-radius:11px;padding:11px}.approval-grid small{display:block;color:var(--muted);font-size:9px}.approval-grid b{font-size:11px}.approval-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}.empty{text-align:center;padding:45px 20px;color:var(--muted)}.empty-icon{width:48px;height:48px;border-radius:15px;background:#eef2ed;display:grid;place-items:center;margin:0 auto 12px;font-size:22px}.modal-backdrop{position:fixed;inset:0;background:rgba(4,19,25,.58);backdrop-filter:blur(5px);z-index:60;display:grid;place-items:center;padding:18px}.modal{background:white;border-radius:19px;width:min(620px,100%);max-height:92vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.25)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:19px 21px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:19px;margin:0}.modal-close{border:0;background:#eff2ee;border-radius:9px;width:32px;height:32px}.modal-body{padding:20px 21px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.alert{border-radius:11px;padding:10px 12px;font-size:11px}.alert.success{background:var(--green-soft);color:#166c4e}.alert.danger{background:var(--red-soft);color:#a53a3a}.alert.info{background:#e8f2f7;color:#346d88}.toast{position:fixed;right:22px;bottom:22px;background:var(--navy);color:white;padding:12px 16px;border-radius:11px;box-shadow:var(--shadow);z-index:100;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;max-width:360px}.toast.show{opacity:1;transform:none}.toast.error{background:#9d3434}.mobile-head{display:none}.auth-page{background:var(--navy);min-height:100vh}.auth-shell,.setup-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.setup-shell{grid-template-columns:.8fr 1.2fr}.auth-brand{padding:9vh 9vw;color:white;position:relative;overflow:hidden;background:radial-gradient(circle at 20% 80%,#163e43 0,transparent 40%),var(--navy)}.auth-brand:after{content:'';position:absolute;width:350px;height:350px;border:75px solid rgba(201,240,107,.07);border-radius:50%;right:-160px;top:-120px}.auth-brand .eyebrow{color:var(--lime);margin-top:45px}.auth-brand h1{font-size:50px;line-height:1.06;max-width:650px;margin-bottom:20px}.auth-brand>p{color:#8fa5a5;max-width:470px;font-size:16px}.signal-strip{display:flex;gap:8px;align-items:end;height:80px;margin-top:12vh}.signal-strip i{display:block;width:8px;background:var(--lime);border-radius:7px}.signal-strip i:nth-child(1){height:20%}.signal-strip i:nth-child(2){height:40%}.signal-strip i:nth-child(3){height:62%}.signal-strip i:nth-child(4){height:82%}.signal-strip i:nth-child(5){height:100%}.auth-feature{display:flex;gap:12px;margin-top:27px;max-width:400px}.auth-feature>span{font:800 12px Manrope;color:var(--lime)}.auth-feature b,.auth-feature small{display:block}.auth-feature small{color:#789091;margin-top:2px}.auth-card{background:#f8faf6;padding:9vh 9vw;display:flex;flex-direction:column;justify-content:center;gap:20px}.auth-card h2{font-size:30px}.login-form{display:grid;gap:15px}.login-form .button{margin-top:4px;padding:12px}.login-note{font-size:10px;color:#8b9693;text-align:center}.setup-shell .auth-card{padding:5vh 6vw}.setup-shell .auth-brand{padding:7vh 6vw}.setup-shell .auth-brand h1{font-size:40px}.setup-shell .auth-brand .eyebrow{margin-top:25px}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-2,.plot-shell{grid-template-columns:1fr}.plot-shell>div:last-child{position:static}.form-grid.three{grid-template-columns:repeat(2,1fr)}.span-3{grid-column:span 2}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s;width:260px}.sidebar.open{transform:none}.content{margin-left:0;padding:76px 16px 35px}.mobile-head{display:flex;position:fixed;top:0;left:0;right:0;height:54px;background:var(--navy);color:white;align-items:center;gap:13px;padding:0 14px;z-index:15;font-size:10px;letter-spacing:.12em}.mobile-head button{background:transparent;border:0;color:white;font-size:20px}.topbar{align-items:flex-end}.topbar h1{font-size:25px}.live-indicator{display:none}.kpi-grid,.grid-even{grid-template-columns:1fr}.form-grid,.form-grid.three,.driver-selects{grid-template-columns:1fr}.span-2,.span-3{grid-column:span 1}.plot-summary{grid-template-columns:repeat(2,1fr)}.approval-grid{grid-template-columns:repeat(2,1fr)}.auth-shell,.setup-shell{display:block}.auth-brand{display:none}.auth-card{min-height:100vh;padding:35px 22px}.toolbar{align-items:stretch;flex-direction:column}.filters{flex-wrap:wrap}.top-actions .button{font-size:0}.top-actions .button:after{content:'+';font-size:18px}.suggestion{grid-template-columns:34px 1fr}.suggestion-metrics{grid-column:2;text-align:left}.modal-backdrop{padding:8px;place-items:end center}.modal{border-radius:19px 19px 8px 8px;max-height:94vh}}

/* MMSTAL brand treatment and logistics hero */
.auth-brand-truck{background-image:linear-gradient(90deg,rgba(5,20,27,.99) 0%,rgba(6,22,29,.92) 40%,rgba(6,22,29,.28) 76%,rgba(6,22,29,.08) 100%),linear-gradient(0deg,rgba(5,20,27,.7),transparent 45%),url('mmstal-truck-hero.png');background-size:cover;background-position:center center;background-repeat:no-repeat}
.auth-brand-truck:after{display:none}.auth-brand-truck>*{position:relative;z-index:1}.company-logo{width:235px;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.55);border-radius:15px;padding:10px 15px;box-shadow:0 16px 40px rgba(0,0,0,.22)}.company-logo img{display:block;width:100%;height:auto}.auth-brand-truck .eyebrow{margin-top:38px}.auth-brand-truck h1{text-shadow:0 3px 22px rgba(0,0,0,.35)}.auth-brand-truck>p{color:#b5c4c3;text-shadow:0 2px 15px rgba(0,0,0,.4)}.hero-caption{position:absolute!important;left:9vw;bottom:6.5vh;display:grid;grid-template-columns:auto auto auto auto;align-items:baseline;gap:0 11px;padding:10px 14px;border-left:3px solid #e8212b;background:rgba(5,20,27,.58);backdrop-filter:blur(7px);border-radius:0 10px 10px 0}.hero-caption span{font:800 24px Manrope;color:white;line-height:1}.hero-caption small{font-size:9px;font-weight:800;letter-spacing:.12em;color:#a5b8b8;margin-right:10px}.sidebar-logo{display:grid;place-items:center;width:88px;height:39px;background:#fff;border-radius:9px;padding:5px 7px;flex:0 0 auto}.sidebar-logo img{display:block;width:100%;height:auto}.brand:has(.sidebar-logo){gap:10px;padding-left:2px}.brand:has(.sidebar-logo)>span:last-child b{font-size:12px}.brand:has(.sidebar-logo)>span:last-child small{font-size:9px}

.status.ready{background:var(--green-soft);color:#177d59}.status.working{background:var(--amber-soft);color:#a06819}.status.not_ready{background:#e9eff7;color:#4d7195}.rest-countdown{color:#b74444;font-variant-numeric:tabular-nums}.monitor-table b[data-rest-kind]{font-variant-numeric:tabular-nums}.product-chip{display:inline-flex;padding:4px 9px;border-radius:20px;background:#edf0ef;color:#536466;font-size:10px;font-weight:800}.product-chip.nitrogen{background:#e8f2f7;color:#346d88}.product-chip.oksigen{background:#e9f5ed;color:#177d59}.product-chip.argon{background:#f1eafa;color:#74529c}.product-chip.hidrogen{background:#fff1df;color:#9a6217}.row-actions{display:flex;gap:5px;align-items:center}.rest-kpis .kpi-value{font-variant-numeric:tabular-nums}

@media(max-width:760px){.auth-shell,.setup-shell{display:flex;flex-direction:column}.auth-brand{display:block;min-height:265px;padding:24px 22px;background-position:66% center}.company-logo{width:165px;padding:7px 10px;border-radius:11px}.auth-brand-truck .eyebrow{margin-top:24px}.auth-brand h1{font-size:29px;max-width:320px;margin-bottom:0}.auth-brand>p,.hero-caption,.auth-feature{display:none}.auth-card{min-height:auto;flex:1;padding:29px 22px}.setup-shell .auth-brand{padding:24px 22px}.setup-shell .auth-brand h1{font-size:28px}.setup-shell .auth-brand .eyebrow{margin-top:22px}}
