:root{--b:#0b5cab;--g:#16803c;--bg:#f4f7fb;--t:#1f2937;--mut:#667085;--bd:#d8e0ea;--red:#b42318;--amber:#b54708}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--t)}a{color:var(--b)}
header{background:#fff;border-bottom:1px solid var(--bd);padding:11px 20px;display:flex;gap:18px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10;box-shadow:0 1px 5px #00000008}.brand{white-space:nowrap}.brand strong{color:var(--b)}.brand span{font-size:13px;color:#475467}nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center}nav a{color:#344054;text-decoration:none;font-size:13px;padding:6px 7px;border-radius:6px}nav a:hover{background:#f2f4f7}.user-chip{font-size:11px;background:#eef4ff;border:1px solid #d1e0ff;border-radius:999px;padding:6px 9px;white-space:nowrap}
main{max-width:1520px;margin:0 auto;padding:20px}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}h1{font-size:24px;margin:0}h2,h3{margin-top:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.span2{grid-column:span 2}.span3{grid-column:span 3}.span4{grid-column:span 4}.card{background:#fff;border:1px solid var(--bd);border-radius:12px;padding:15px;box-shadow:0 2px 9px #10182808}.narrow{max-width:560px}.kpi span{font-size:12px;color:var(--mut)}.kpi b{display:block;font-size:23px;margin-top:6px}.kpi small{display:block;margin-top:4px;color:var(--mut)}.big-money{font-size:30px;font-weight:800;color:var(--b)}.muted{color:var(--mut);font-size:12px}.section{margin-top:16px}.metric-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef2f6}.action-card{text-decoration:none;color:var(--t);display:flex;flex-direction:column;gap:7px}.action-card b{font-size:21px;color:var(--b)}.action-card span{font-size:12px;color:var(--mut)}
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--bd);border-radius:10px}table{border-collapse:collapse;width:100%;min-width:900px}th,td{padding:9px 10px;border-bottom:1px solid #edf1f5;text-align:left;font-size:12.5px;vertical-align:top}th{background:#f8fafc;color:#475467;position:sticky;top:0}tr:hover td{background:#fcfcfd}.btn{display:inline-block;padding:8px 12px;border-radius:7px;border:0;background:var(--b);color:#fff;text-decoration:none;cursor:pointer;font-size:13px}.btn.secondary{background:#667085}.btn.green{background:var(--g)}.btn.danger{background:var(--red)}
form.inline{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.inline-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.mini{display:flex;gap:5px;align-items:center;margin:2px 0}.mini input{max-width:140px;padding:6px;border:1px solid #ccd4df;border-radius:6px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:12px;color:#475467;font-weight:600}.field input,.field select,.field textarea{padding:9px;border:1px solid #cbd5e1;border-radius:7px;min-width:150px;background:#fff;color:#111827}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:14px}.form-grid .field input,.form-grid .field select{width:100%;min-width:0}.salary-preview{display:flex;gap:30px;flex-wrap:wrap;padding:11px;background:#f0f7ff;border:1px solid #cfe3ff;border-radius:8px}.salary-preview div{font-size:12px}.salary-preview b{display:block;font-size:17px;color:var(--b);margin-top:3px}
.notice{padding:10px 12px;background:#ecfdf3;border:1px solid #abefc6;border-radius:8px;margin-bottom:12px}.error{background:#fef3f2;border-color:#fecdca;color:#912018}.login{max-width:440px;margin:70px auto}.badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#f2f4f7;border:1px solid #e4e7ec;font-size:10px;font-weight:700}.status-approved{background:#ecfdf3;border-color:#abefc6;color:#027a48}.status-verified{background:#eff8ff;border-color:#b2ddff;color:#175cd3}.status-submitted{background:#fffaeb;border-color:#fedf89;color:#b54708}.status-rejected{background:#fef3f2;border-color:#fecdca;color:#b42318}.status-returned{background:#fdf2fa;border-color:#fcceee;color:#c11574}.status-text{font-size:18px!important}.approval-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--bd);border-radius:10px;padding:10px 12px}.approval-flow span{padding:6px 9px;border-radius:7px;background:#f8fafc;border:1px solid #eaecf0;font-size:12px;font-weight:700}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.info-grid div{background:#f8fafc;border-radius:8px;padding:9px}.info-grid small,.info-grid b{display:block}.timeline{border-left:3px solid #d1e9ff;padding:0 0 13px 10px;margin-left:4px}.timeline b,.timeline span,.timeline small{display:block}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.permission-grid label{display:flex;flex-direction:column;gap:4px;border:1px solid #eaecf0;border-radius:8px;padding:9px}.permission-grid small{color:var(--mut)}details summary{cursor:pointer}
@media(max-width:1050px){.grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}.span4{grid-column:span 2}.permission-grid{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;flex-direction:column}.user-chip{position:absolute;right:15px;top:12px}}
@media(max-width:620px){main{padding:11px}.grid,.form-grid,.permission-grid{grid-template-columns:1fr}.span2,.span3,.span4{grid-column:span 1}.info-grid{grid-template-columns:1fr}.approval-flow b{display:none}.approval-flow span{width:100%}h1{font-size:20px}.card{padding:12px}.user-chip{position:static}.brand span{display:block}nav{gap:4px}nav a{font-size:12px}}

.brand{display:flex;align-items:center;gap:10px}.brand-logo{height:46px;width:auto;max-width:180px;object-fit:contain}.brand span{white-space:nowrap}
@media(max-width:900px){.brand-logo{height:38px;max-width:140px}.brand span{display:none}}


/* v1.4.0 production UI reset */
html,body{min-height:100%}
body{background:#f3f6fb}
.erp-topbar{min-height:96px!important;padding:7px 22px!important;background:linear-gradient(135deg,#0b1d3a,#123d78)!important;border:0!important;color:#fff!important;display:flex!important;align-items:center!important}
.erp-topbar .brand{display:flex!important;align-items:center!important;gap:13px!important;flex:0 0 auto!important}
.erp-topbar .brand-link{display:block!important;width:150px!important;height:82px!important;overflow:hidden!important;border-radius:12px!important}
.erp-topbar .brand-logo{width:150px!important;height:82px!important;max-width:150px!important;max-height:82px!important;object-fit:contain!important;margin:0!important;padding:0!important}
.erp-topbar .brand-copy{display:flex;flex-direction:column;gap:2px;min-width:150px}
.erp-topbar .brand-copy strong{font-size:16px;letter-spacing:.4px;color:#fff}
.erp-topbar .brand-copy span{font-size:11px;color:#c9d8ef;white-space:nowrap}
.erp-topbar nav{justify-content:flex-end;gap:4px}
.erp-topbar nav a{color:#e7eef9!important;padding:7px 8px!important}
.erp-topbar nav a:hover{background:#ffffff18!important}
.erp-topbar .user-chip{background:#ffffff12!important;border-color:#ffffff25!important;color:#fff!important}
.page-head{padding:3px 0 8px}.page-head h1{font-size:25px;color:#102a56}
.card{border-color:#dce4ef;box-shadow:0 4px 14px #19324d0a}
.kpi{position:relative;overflow:hidden;min-height:112px}
.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1d66c2}
.kpi span{font-weight:700;text-transform:uppercase;letter-spacing:.25px;font-size:10.5px}
.kpi b{color:#102a56;font-size:24px}
.owner-summary{background:linear-gradient(135deg,#0c2b5b,#0b5cab);color:#fff;border:0}
.owner-summary span,.owner-summary small,.owner-summary b{color:#fff!important}
.owner-summary:before{background:#58c6ff}
.dashboard-section-title{font-size:14px;color:#344054;margin:18px 0 9px;font-weight:800}
@media(max-width:1050px){
 .erp-topbar{min-height:82px!important;padding:7px 12px!important}
 .erp-topbar .brand-link{width:120px!important;height:66px!important}
 .erp-topbar .brand-logo{width:120px!important;height:66px!important;max-width:120px!important;max-height:66px!important}
 .erp-topbar .brand-copy{display:none}
}
@media(max-width:620px){
 .erp-topbar{position:static!important}
 .erp-topbar .brand-link{width:100px!important;height:55px!important}
 .erp-topbar .brand-logo{width:100px!important;height:55px!important;max-width:100px!important;max-height:55px!important}
}

/* v1.5.0 REAL PHP UI */
*{box-sizing:border-box}html,body{margin:0;background:#f5f8fc;color:#10213d;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.erp-shell{min-height:100vh;display:flex}.sidebar{width:230px;position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#06294f,#073963 55%,#052746);color:#fff;display:flex;flex-direction:column;z-index:50}
.sidebar-logo{height:88px;padding:10px 20px;display:flex;align-items:center;border-bottom:1px solid #ffffff14}.sidebar-logo img{width:145px!important;height:64px!important;max-width:145px!important;max-height:64px!important;object-fit:contain!important}
.side-nav{padding:10px 8px;display:flex;flex-direction:column;gap:3px;overflow:auto}.side-link{display:grid;grid-template-columns:26px 1fr 12px;align-items:center;gap:8px;padding:10px 11px;border-radius:7px;color:#dce9f8!important;text-decoration:none!important;font-size:13px;font-weight:600}.side-link:hover{background:#ffffff10}.side-link.active{background:#1672e8;color:#fff!important}.side-icon{text-align:center;font-size:17px}.company-mini{margin:auto 12px 14px;padding:12px;border:1px solid #ffffff25;border-radius:8px;display:flex;flex-direction:column;gap:4px}.company-mini span,.company-mini small{font-size:10px;color:#bdd0e7}
.workspace{margin-left:230px;width:calc(100% - 230px);min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;background:linear-gradient(90deg,#06284c,#073b6e);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:40}.top-left,.top-right{display:flex;align-items:center;gap:12px}.menu-toggle{border:0;background:transparent;color:#fff;font-size:20px}.searchbox{width:330px;height:38px;border-radius:8px;background:#ffffff12;color:#c9d9eb;display:flex;align-items:center;padding:0 12px;gap:8px}.searchbox input{width:100%;border:0;outline:0;background:transparent;color:#fff}.searchbox input::placeholder{color:#c9d9eb}.top-icon{color:#fff}.user-avatar{width:34px;height:34px;border-radius:50%;background:#2878dc;border:2px solid #fff;color:#fff;display:grid;place-items:center;font-weight:800}.user-meta{display:flex;flex-direction:column;color:#fff}.user-meta strong{font-size:12px}.user-meta small{font-size:9px;color:#c7d9ec}.logout-top{font-size:11px;color:#dce9f8!important}
.content{padding:20px 22px 30px!important;flex:1;max-width:none!important;width:100%!important}.app-footer{border-top:1px solid #dfe7f1;background:#fff;padding:14px 22px;display:flex;justify-content:space-between;font-size:11px;color:#667085}
.page-head h1{font-size:25px!important;color:#0d2342}.grid{gap:12px!important}.card{border:1px solid #dfe6ef!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 12px #1732500b!important}.kpi{min-height:112px!important;padding:17px!important}.kpi:before{width:0!important}.kpi span{font-size:10px!important;color:#64748b!important}.kpi b{font-size:24px!important;color:#10213d!important}.owner-summary{background:linear-gradient(135deg,#0c5ab8,#16478b)!important}.owner-summary span,.owner-summary b,.owner-summary small{color:#fff!important}
table{width:100%;border-collapse:separate!important;border-spacing:0!important}th{background:#f7f9fc!important;color:#4b5b72!important;font-size:11px!important}td{font-size:12px!important}.btn{border-radius:7px!important}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.nav-open .sidebar{transform:translateX(0)}.workspace{margin-left:0;width:100%}.searchbox{width:210px}.content{padding:14px!important}}
@media(max-width:560px){.searchbox,.user-meta,.top-icon{display:none}.topbar{padding:0 12px}.grid.cols-4,.grid.cols-3,.grid.cols-2{grid-template-columns:1fr!important}.app-footer{flex-direction:column;gap:5px}}
