:root{--bg:#f3f6f8;--surface:#fff;--ink:#183447;--muted:#637989;--border:#dce5eb;--brand:#087f8c;--soft:#e9f5f5;--shadow:0 3px 15px #18344706;--nav:#102e42}*{box-sizing:border-box}html{color-scheme:light}html[data-theme=dark]{color-scheme:dark;--bg:#0d1d28;--surface:#162b39;--ink:#e5f0f6;--muted:#a1b6c5;--border:#2c4656;--soft:#173d45;--brand:#31aab4;--shadow:none}body{font-family:Inter,'Segoe UI','Malgun Gothic',Arial,sans-serif;margin:0;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;background:var(--nav);color:#d1e2ec;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:26px 16px;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 7px 25px;color:white}.brand img{width:62px;height:48px;object-fit:contain;background:white;border-radius:9px;padding:5px}.brand b{font-size:24px;letter-spacing:3px;line-height:1.1}.brand small{display:block;font-size:10px;letter-spacing:.2px;color:#a5c2d2;margin-top:5px}.nav-links{display:flex;flex-direction:column;gap:5px;overflow:auto}.nav-links a{color:#c4d9e5;padding:11px 13px;border-radius:8px;display:flex;align-items:center;gap:12px;font-weight:500}.nav-links a:hover,.nav-links a.active{background:#205063;color:white;text-decoration:none}.nav-links a.active{box-shadow:inset 3px 0 #51c7bc}.nav-links a span{font-size:20px;line-height:1;width:22px;text-align:center}.nav-divider{border-top:1px solid #2b4657;margin:15px 5px 10px}.sidebar-bottom{margin-top:auto;padding:22px 10px 0;display:flex;flex-direction:column;gap:6px}.role-label{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#77cfc9}.logout-btn{border:0;background:none;color:#c4d9e5;padding:10px 0;cursor:pointer;font-size:13px}.main-panel{margin-left:245px;flex:1;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:16px 30px;border-bottom:1px solid var(--border);background:var(--surface)}.company{font-size:11px;font-weight:700;letter-spacing:1.4px}.toolbar{display:flex;align-items:center;gap:12px}.toolbar select{width:auto;max-width:180px;padding:8px 12px;font-size:12px}.icon-btn{background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:8px;min-width:40px;min-height:40px;cursor:pointer;font-size:20px}.menu-toggle{display:none}.wrap{max-width:1550px;padding:30px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;flex-wrap:wrap}h1,h2,h3{line-height:1.25;margin-top:0;font-weight:650}h1,h2{font-size:27px;letter-spacing:-.6px;margin-bottom:9px}h3{font-size:17px;margin-bottom:17px}.subtitle,.muted,.help{color:var(--muted)}.subtitle{margin:0}.help{font-size:12px;margin:8px 0 0}.card{background:var(--surface);padding:24px;border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);margin-bottom:20px;min-width:0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:20px}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.kpi-card{padding:20px}.kpi-card .kpi-label{color:var(--muted);font-size:12px}.kpi{font-size:28px;font-weight:650;line-height:1.3;margin:12px 0 4px;letter-spacing:-.8px;overflow-wrap:anywhere}.kpi small{font-size:14px;font-weight:500}.kpi-card:first-child{border-top:3px solid var(--brand)}.kpi-card:nth-child(4){border-top:3px solid #d9a844}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.section-heading h3{margin:0}input,select,textarea{font:inherit;color:var(--ink);width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #3db4b955;outline-offset:1px;border-color:var(--brand)}input[readonly],select:disabled{background:var(--bg);color:var(--muted)}input[type=checkbox],input[type=radio]{width:18px;min-height:18px;height:18px;accent-color:var(--brand);vertical-align:middle;flex-shrink:0}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.check-row{display:flex;align-items:center;gap:9px;min-height:36px;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--brand);color:white;padding:10px 17px;min-height:44px;border:1px solid transparent;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;line-height:1.3}.btn:hover{text-decoration:none;filter:brightness(.96)}.btn2{background:var(--surface);border-color:var(--border);color:var(--ink)}.danger{background:#b83e47}.btn-sm{min-height:36px;padding:7px 11px;font-size:12px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.form-actions{margin-top:22px;display:flex;gap:10px;flex-wrap:wrap}.notice,.flash{border-radius:9px;background:var(--soft);padding:13px 17px;margin-bottom:20px;border:1px solid var(--border);font-size:13px}.flash{border-left:4px solid var(--brand)}hr{border:0;border-top:1px solid var(--border);margin:25px 0}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px}th{color:var(--muted);background:var(--bg);font-size:10px;letter-spacing:.5px;text-transform:uppercase;font-weight:650;white-space:nowrap}th,td{padding:13px 11px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}tr:last-child td{border-bottom:0}td{max-width:340px;overflow-wrap:anywhere}.badge{display:inline-block;border-radius:6px;padding:4px 8px;font-size:10px;font-weight:650;background:var(--bg);color:var(--muted);white-space:nowrap}.badge-DRAFT{background:#eef1f5;color:#59677b}.badge-SUBMITTED{background:#fff3d8;color:#8c6310}.badge-APPROVED,.badge-ACTIVE{background:#e2f5ed;color:#23704e}.badge-REJECTED,.badge-INACTIVE{background:#fce9eb;color:#a93849}.custom-file{padding:13px;border:1px dashed var(--border);border-radius:9px;display:flex;flex-wrap:wrap;gap:9px;background:var(--bg);min-height:100px;align-content:start}.custom-file input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);padding:0;min-height:0}.file-button{padding:9px 12px;min-height:42px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--ink);cursor:pointer;margin:0;font-size:12px;font-weight:500}.file-name{display:block;width:100%;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.file-preview{width:100%;max-height:150px;object-fit:contain;border-radius:6px}.file-clear{border:0;background:none;color:var(--brand);font-size:12px;cursor:pointer;padding:4px 0}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 22px}.permission-grid label{font-weight:400}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.detail-grid dt{font-size:11px;color:var(--muted)}.detail-grid dd{margin:5px 0 0;font-weight:500}.empty{text-align:center;padding:28px;color:var(--muted)}footer{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px;padding:12px 30px 24px;letter-spacing:.4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.chart{display:flex;align-items:end;gap:15px;height:110px}.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;font-size:10px;color:var(--muted);gap:5px}.bar{width:100%;max-width:55px;border-radius:5px 5px 0 0;min-height:3px;background:#53aaa9}.login-card{max-width:440px;margin:40px auto}.login-card .btn{width:100%}button:focus-visible,a:focus-visible,.file-button:focus-visible{outline:3px solid #6bbddd;outline-offset:3px}
@media(min-width:1500px){.wrap{padding:36px 42px}}@media(max-width:1150px){.sidebar{width:215px}.main-panel{margin-left:215px}.wrap{padding:24px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.company{font-size:10px}.grid{gap:16px}.kpi-card{margin-bottom:0}.kpi-grid{margin-bottom:20px}}@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:260px;box-shadow:8px 0 30px #0002;top:64px}.sidebar.open{transform:translateX(0)}.main-panel{margin-left:0}.menu-toggle{display:block}.topbar{position:sticky;top:0;z-index:40;padding:11px 16px;min-height:64px}.company{font-size:9px;letter-spacing:.6px;max-width:150px}.toolbar{gap:6px}.toolbar select{max-width:130px;padding:8px 6px}.wrap{padding:22px 16px}h1,h2{font-size:24px}.card{padding:18px}.kpi{font-size:25px}.kpi-grid{gap:10px}.kpi-label{min-height:32px}input,select,textarea{font-size:16px}.page-heading{align-items:start}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}footer{padding:10px 16px 24px;flex-direction:column;gap:3px}.permission-grid{grid-template-columns:1fr}.mobile-cards tr:first-child{display:none}.mobile-cards tr{display:block;padding:12px 0;border-bottom:1px solid var(--border)}.mobile-cards td{display:flex;justify-content:space-between;gap:16px;max-width:none;text-align:right;padding:5px 0;border:0}.mobile-cards td:before{content:attr(data-label);color:var(--muted);font-size:11px;text-align:left;flex:0 0 100px}.mobile-cards td .actions{justify-content:flex-end}.login-card{margin:20px auto}.form-actions .btn{flex:1}.table-scroll{margin-bottom:2px}.custom-file .file-button{flex:1;font-size:11px;white-space:normal;text-align:center;justify-content:center}}@media(max-width:380px){.company{display:none}.kpi{font-size:21px}.kpi-card{padding:14px}.toolbar{margin-left:auto}.detail-grid{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.form-actions,.no-print,footer{display:none!important}.main-panel{margin:0}.wrap{padding:0}.card{box-shadow:none;break-inside:avoid}body{background:white;color:black}.table-scroll{overflow:visible}.mobile-cards tr{display:table-row}.mobile-cards td{display:table-cell}.mobile-cards td:before{display:none}}
