:root{--navy:#081a36;--navy2:#0d2549;--blue:#1769e0;--blue-light:#eaf2ff;--bg:#f4f7fb;--border:#e2e8f0;--text:#15243b;--muted:#68768a;--green:#138a5b;--orange:#d26a0b;--red:#d13c3c;--shadow:0 8px 28px rgba(15,35,65,.07)}*{box-sizing:border-box}html{font-family:"Google Sans Flex",Arial,sans-serif;color:var(--text);background:var(--bg)}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}svg{width:19px;height:19px}.button{border:0;border-radius:10px;min-height:44px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;cursor:pointer;transition:.15s}.button.primary{background:var(--blue);color:#fff}.button.primary:hover{background:#1258be}.button.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}.button.ghost{background:#eef2f7;color:var(--text)}.button.small{min-height:36px;padding:0 11px;font-size:13px}.button.full{width:100%}.loader{position:fixed;z-index:9999;inset:0;background:rgba(255,255,255,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.loader[hidden]{display:none}.loader img{width:170px;max-height:60px;object-fit:contain}.loader span{width:42px;height:42px;border:3px solid #dbe8fb;border-top-color:var(--blue);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toasts{position:fixed;right:22px;top:22px;z-index:10000;display:grid;gap:10px}.toast{width:min(380px,calc(100vw - 32px));background:#fff;border:1px solid var(--border);border-left:4px solid var(--red);box-shadow:var(--shadow);border-radius:11px;padding:14px;display:flex;align-items:center;gap:11px}.toast.success{border-left-color:var(--green)}.toast span{flex:1}.toast button{border:0;background:none;font-size:24px;color:var(--muted);cursor:pointer}.login-body{background:#fff}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(420px,.95fr)}.login-side{background:var(--navy);color:#fff;padding:56px clamp(40px,7vw,105px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-side:after{content:"";position:absolute;width:420px;height:420px;border:90px solid rgba(39,119,234,.08);border-radius:50%;right:-180px;bottom:-180px}.login-side>img{width:180px;max-height:65px;object-fit:contain;background:#fff;padding:12px;border-radius:10px}.login-side h1{font-size:clamp(35px,4vw,58px);line-height:1.08;max-width:650px;margin:18px 0}.login-side p{font-size:18px;line-height:1.6;color:#afbdd0;max-width:560px}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:12px;font-weight:750;color:#398af5}.login-side small{color:#8495ad}.login-card{align-self:center;width:min(430px,calc(100% - 48px));margin:auto}.mobile-logo{display:none}.icon-circle{width:54px;height:54px;border-radius:14px;background:var(--blue-light);color:var(--blue);display:grid;place-items:center}.icon-circle svg{width:27px;height:27px}.login-card h2{font-size:30px;margin:22px 0 8px}.login-card>p,.login-card>small{color:var(--muted)}.login-card form{display:grid;gap:19px;margin:30px 0 22px}.login-card label,.form-grid label,.upload-form label{font-weight:600;font-size:14px;display:grid;gap:8px}.login-card label span,.form-grid b{color:var(--red)}input,select,textarea{width:100%;border:1px solid #ced7e3;border-radius:9px;background:#fff;color:var(--text);padding:11px 13px;outline:0;min-height:46px}textarea{resize:vertical;min-height:100px}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,105,224,.1)}.input-icon{position:relative}.input-icon>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8492a6;width:18px}.input-icon input{padding-left:42px}.password-toggle{position:absolute;right:5px;top:5px;width:36px;height:36px;border:0;background:none;color:var(--muted);cursor:pointer}.back-link{font-size:14px;color:var(--blue);display:inline-block;margin-bottom:10px}.admin-body{background:var(--bg)}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:var(--navy);color:#b9c6d8;display:flex;flex-direction:column;z-index:100}.brand{height:86px;padding:21px 24px;border-bottom:1px solid rgba(255,255,255,.08)}.brand img{width:155px;height:44px;object-fit:contain;background:white;border-radius:8px;padding:7px}.sidebar nav{padding:22px 13px;display:grid;gap:5px}.sidebar nav a,.logout button{height:47px;padding:0 14px;border-radius:9px;display:flex;align-items:center;gap:12px;font-weight:570}.sidebar nav a.active,.sidebar nav a:hover{background:#16345e;color:#fff}.sidebar nav a.active{box-shadow:inset 3px 0 var(--blue)}.logout{margin:auto 13px 22px}.logout button{width:100%;border:0;background:transparent;color:#b9c6d8;cursor:pointer}.logout button:hover{background:#16345e;color:white}.admin-main{margin-left:250px;min-height:100vh}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 32px;position:sticky;top:0;z-index:50}.topbar p{margin:0;color:var(--muted);font-size:12px}.topbar strong{font-size:16px}.admin-chip{margin-left:auto;background:#f1f5f9;border-radius:9px;padding:9px 13px;display:flex;align-items:center;gap:8px;font-size:14px}.icon-button{display:none;border:0;background:none;margin-right:12px}.page{padding:30px;max-width:1600px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.page-heading h1{font-size:28px;margin:5px 0}.page-heading p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(7,minmax(140px,1fr));gap:14px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:13px;padding:17px;box-shadow:0 2px 8px rgba(15,35,65,.025);display:flex;align-items:center;gap:13px}.stat-card strong{font-size:25px}.stat-card p{font-size:12px;color:var(--muted);margin:2px 0 0}.stat-icon,.list-icon{width:42px;height:42px;flex:0 0 42px;border-radius:10px;display:grid;place-items:center;background:var(--blue-light);color:var(--blue)}.stat-icon.green,.list-icon.success{background:#e5f7ef;color:var(--green)}.stat-icon.orange,.list-icon.warning{background:#fff0df;color:var(--orange)}.stat-icon.red{background:#ffebeb;color:var(--red)}.stat-icon.navy{background:#e8edf5;color:var(--navy)}.stat-icon.violet{background:#f1ebff;color:#7646cd}.stat-icon.cyan{background:#e5f8fb;color:#07819a}.dashboard-grid,.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.card{background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 3px 13px rgba(20,40,70,.035);padding:22px;margin-bottom:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.card-head h2{font-size:17px;margin:0}.card-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.card-head>a{font-size:13px;color:var(--blue);font-weight:600}.table-wrap{overflow:auto;margin:0 -4px}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th{text-align:left;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.045em;padding:11px 13px;border-bottom:1px solid var(--border)}td{padding:14px 13px;border-bottom:1px solid #edf1f5}tr:last-child td{border-bottom:0}td strong,td small{display:block}td small{color:var(--muted);margin-top:4px}.badge{display:inline-flex;align-items:center;min-height:25px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;background:#eef1f5;color:#5c6979}.badge.blue{background:var(--blue-light);color:var(--blue)}.badge.success{background:#e5f7ef;color:var(--green)}.badge.warning{background:#fff0df;color:var(--orange)}.badge.danger{background:#ffebeb;color:var(--red)}.badge.large{padding:8px 14px}.table-action{border:1px solid var(--border);background:#fff;width:35px;height:35px;border-radius:8px;display:grid;place-items:center;color:#526174;cursor:pointer}.table-action svg{width:16px}.table-action.danger{color:var(--red)}.actions{display:flex;align-items:center;gap:7px}.list{display:grid}.list>a{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f5}.list>a:last-child{border:0}.list>a div{min-width:0;flex:1}.list strong,.list small{display:block;overflow:hidden;text-overflow:ellipsis}.list small,.list time{color:var(--muted);font-size:12px}.avatar{width:38px;height:38px;border-radius:10px;background:var(--navy);color:white;display:grid;place-items:center;font-weight:700}.empty{text-align:center;color:var(--muted);padding:30px!important}.empty.compact{padding:18px!important}.filters{display:grid;grid-template-columns:minmax(250px,1fr) 200px auto;gap:10px;margin-bottom:20px}.form-layout{max-width:1050px}.form-section{padding:27px}.section-title{display:flex;gap:13px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:18px;margin-bottom:22px}.section-title>span{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:var(--blue-light);color:var(--blue)}.section-title h2,.section-title p{margin:0}.section-title h2{font-size:18px}.section-title p{font-size:13px;color:var(--muted);margin-top:3px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0}.info-grid dt{font-size:12px;color:var(--muted);margin-bottom:5px}.info-grid dd{margin:0;font-weight:550;white-space:pre-line}.warranty-card{border-top:3px solid #a7b0bd}.warranty-card.success{border-top-color:var(--green)}.warranty-card.warning{border-top-color:var(--orange)}.warranty-card.danger{border-top-color:var(--red)}.warranty-message{padding:12px;border-radius:8px;background:#f5f7fa;font-weight:650}.upload-form{display:grid;grid-template-columns:180px 1fr 1fr auto;gap:12px;align-items:end}.customer-body{background:var(--bg)}.customer-header{height:82px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:40}.customer-header img{width:160px;max-height:54px;object-fit:contain}.customer-head-actions{margin-left:auto;display:flex;align-items:center;gap:22px;font-weight:600}.customer-head-actions form{margin:0}.customer-main{max-width:1240px;margin:auto;padding:45px 24px}.welcome{margin-bottom:30px}.welcome h1{font-size:33px;margin:8px 0}.welcome p{color:var(--muted);margin:0}.order-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.order-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:22px;box-shadow:var(--shadow)}.order-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.package-icon{width:46px;height:46px;display:grid;place-items:center;background:var(--blue-light);color:var(--blue);border-radius:11px}.order-card>small{font-size:10px;letter-spacing:.1em;color:var(--muted)}.order-card h2{font-size:18px;margin:5px 0}.order-card>p{color:var(--muted);height:38px;margin-top:7px}.order-card dl{display:grid;grid-template-columns:1fr 1fr;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.order-card dt{color:var(--muted);font-size:11px}.order-card dd{font-size:13px;margin:5px 0 0;font-weight:600}.warranty-strip{padding:14px;border-radius:10px;background:#f3f5f8;margin:16px 0}.warranty-strip>div{display:flex;justify-content:space-between;align-items:center}.warranty-strip small{display:block;margin-top:8px;color:var(--muted)}.empty-state{max-width:650px;margin:60px auto;text-align:center;padding:55px}.empty-state>span{width:64px;height:64px;border-radius:16px;background:var(--blue-light);color:var(--blue);display:grid;place-items:center;margin:auto}.document-list>div{display:flex;align-items:center;gap:13px;padding:12px;border-bottom:1px solid var(--border)}.document-list>div>div:nth-child(2){flex:1}.document-list strong,.document-list small{display:block}.document-list small{color:var(--muted);margin-top:4px}.error-body{background:#fff;display:grid;place-items:center}.error-page{text-align:center;max-width:620px;padding:30px}.error-page img{width:180px;max-height:65px;object-fit:contain;margin-bottom:35px}.error-page>span{display:grid;place-items:center;width:70px;height:70px;margin:auto;background:#ffeded;color:var(--red);border-radius:18px}.error-page>span svg{width:34px;height:34px}.error-page>strong{display:block;font-size:80px;color:var(--blue)}.error-page h1{font-size:30px}.error-page p{font-size:17px;color:var(--muted);line-height:1.6}.error-page code{display:inline-block;padding:13px 18px;background:#eef2f7;border-radius:8px}.sidebar-overlay{display:none}
@media(max-width:1250px){.stats{grid-template-columns:repeat(4,1fr)}.order-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:none}.sidebar-overlay.show{display:block;position:fixed;inset:0;background:rgba(4,14,28,.55);z-index:90}.admin-main{margin-left:0}.icon-button{display:grid;place-items:center}.dashboard-grid,.detail-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.upload-form{grid-template-columns:1fr 1fr}.login-shell{grid-template-columns:1fr}.login-side{display:none}.login-card{padding:45px 0}.mobile-logo{display:block;margin-bottom:40px}.mobile-logo img{width:170px}.customer-header{padding:0 20px}}
@media(max-width:640px){input,select,textarea{font-size:16px}.page,.customer-main{padding:22px 15px}.topbar{height:72px;padding:0 15px}.admin-chip{font-size:0;padding:9px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading>.button,.page-heading>.actions{width:100%}.page-heading>.actions .button{flex:1}.page-heading h1{font-size:25px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:13px;gap:9px}.stat-icon{width:36px;height:36px;flex-basis:36px}.card{padding:16px;border-radius:11px}.filters,.form-grid,.upload-form{grid-template-columns:1fr}.span-2{grid-column:span 1}.form-actions .button{flex:1}.order-grid{grid-template-columns:1fr}.customer-header img{width:125px}.customer-head-actions>span{display:none}.customer-main{padding-top:30px}.welcome h1{font-size:27px}.info-grid{grid-template-columns:1fr}.document-list>div{align-items:flex-start;flex-wrap:wrap}.document-list .actions{width:100%}.document-list .actions .button{flex:1}.toasts{top:12px;right:8px}.login-card{width:calc(100% - 32px)}.login-card h2{font-size:26px}.form-section{padding:17px}.stats .stat-card:nth-child(7){grid-column:span 2}}
