:root{--bg:#f4f6f9;--surface:#ffffff;--border:#dde3ec;--text:#1c2733;--muted:#64748b;--primary:#1d4ed8;--primary-hover:#1e40af;--danger:#dc2626;--warn:#b45309;--ok:#15803d;--radius:8px}*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);font-size:14px}.readonly-banner{background:#eff6ff;border:1px solid #93c5fd;color:#1e40af;padding:10px 14px;border-radius:8px;margin-bottom:14px;font-weight:600}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:#0f1e3d;color:#cbd5e1;display:flex;flex-direction:column;position:-webkit-sticky;position:sticky;top:0;height:100vh}.sidebar .logo{padding:18px 16px;font-weight:700;color:#fff;font-size:16px;border-bottom:1px solid #1e2f52}.sidebar .logo small{display:block;font-weight:400;color:#7d95c4;font-size:11px;margin-top:2px}.sidebar nav{flex:1 1;padding:8px 0;overflow-y:auto}.sidebar nav a{display:block;padding:9px 16px;color:#cbd5e1;font-size:13.5px}.sidebar nav a:hover{background:#1a2c52;text-decoration:none}.sidebar nav a.active{background:#1d4ed8;color:#fff}.sidebar .userbox{padding:12px 16px;border-top:1px solid #1e2f52;font-size:12px}.sidebar .userbox b{color:#fff;display:block}.sidebar .userbox .roles{color:#7d95c4;margin:4px 0 8px;word-break:break-word}.main{flex:1 1;padding:24px 28px;min-width:0}.page-title{font-size:20px;font-weight:700;margin:0 0 4px}.page-sub{color:var(--muted);margin:0 0 20px;font-size:13px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;margin-bottom:16px}.card h3{margin:0 0 12px;font-size:14px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}.grid{display:grid;grid-gap:14px;gap:14px}.grid.cols-2{grid-template-columns:repeat(2,1fr)}.grid.cols-3{grid-template-columns:repeat(3,1fr)}.grid.cols-4{grid-template-columns:repeat(4,1fr)}@media (max-width:1100px){.grid.cols-3,.grid.cols-4{grid-template-columns:repeat(2,1fr)}}.metric{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px}.metric .label{color:var(--muted);font-size:12px}.metric .value{font-size:24px;font-weight:700;margin-top:2px}.metric.alert .value{color:var(--danger)}table.data{width:100%;border-collapse:collapse;background:var(--surface);font-size:13px}table.data td,table.data th{border-bottom:1px solid var(--border);padding:8px 10px;text-align:left;vertical-align:top}table.data th{font-weight:600;color:#334155;white-space:nowrap;position:-webkit-sticky;position:sticky;top:0}table.data th,table.data tr:hover td{background:#f8fafc}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap;background:#e2e8f0;color:#334155}.badge.active{background:#dcfce7;color:#15803d}.badge.pre-opening{background:#dbeafe;color:#1d4ed8}.badge.draft{background:#e2e8f0;color:#475569}.badge.temporary-closed{background:#fef3c7;color:#b45309}.badge.inactive{background:#fee2e2;color:#b91c1c}.badge.relocated{background:#ede9fe;color:#6d28d9}.badge.approved{background:#dcfce7;color:#15803d}.badge.pending-review{background:#fef3c7;color:#b45309}.badge.rejected{background:#fee2e2;color:#b91c1c}.badge.exception{background:#ffe4e6;color:#be123c}.badge.warn{background:#fef3c7;color:#b45309}label.field{display:block;margin-bottom:10px;font-size:12.5px;color:#334155}label.field span.req{color:var(--danger)}input[type=date],input[type=email],input[type=number],input[type=password],input[type=text],select,textarea{width:100%;padding:7px 10px;border:1px solid var(--border);border-radius:6px;font-size:13.5px;font-family:inherit;margin-top:3px;background:#fff;color:var(--text)}input:focus,select:focus,textarea:focus{outline:2px solid #bfdbfe;border-color:var(--primary)}.btn{display:inline-block;padding:8px 16px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:13.5px;cursor:pointer;font-family:inherit}.btn:hover{background:#f1f5f9;text-decoration:none}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-hover)}.btn.danger{background:#fff;border-color:var(--danger);color:var(--danger)}.btn.small{padding:4px 10px;font-size:12.5px}.btn:disabled{opacity:.5;cursor:not-allowed}.msg{padding:10px 14px;border-radius:6px;font-size:13px;margin-bottom:12px}.msg.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.msg.warn{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.msg.ok{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.msg.info{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}.msg ul{margin:4px 0 0 18px;padding:0}.wizard-steps{display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap}.wizard-steps .step{padding:6px 12px;border-radius:999px;font-size:12px;background:#e2e8f0;color:#475569;cursor:pointer;border:none;font-family:inherit}.wizard-steps .step.current{background:var(--primary);color:#fff;font-weight:600}.wizard-steps .step.done{background:#dcfce7;color:#15803d}.sticky-preview{position:-webkit-sticky;position:sticky;top:0;z-index:20;background:#0f1e3d;color:#e2e8f0;border-radius:var(--radius);padding:12px 16px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:12px;align-items:baseline}.sticky-preview .pv{min-width:110px}.sticky-preview .pv .k{color:#7d95c4;font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;display:block}.sticky-preview .pv .v{color:#fff;font-weight:600;font-size:13px}.sticky-preview .pv .v.big{font-size:15px;color:#7dd3fc}.sticky-preview .pv .v.err{color:#fca5a5}.sticky-preview .pv .v.warn{color:#fcd34d}.sticky-preview .pv .v.ok{color:#86efac}.suggestion-list{display:flex;flex-direction:column;gap:8px}.suggestion{border:1px solid var(--border);border-radius:6px;padding:10px 12px;cursor:pointer;background:#fff}.suggestion.selected,.suggestion:hover{border-color:var(--primary)}.suggestion.selected{background:#eff6ff}.suggestion .code{font-weight:700;font-size:14px}.suggestion .reason{color:var(--muted);font-size:12px;margin-top:2px}.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;align-items:flex-end}.filters .f{min-width:140px}.filters label{font-size:11.5px;color:var(--muted);display:block}.bar-row{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:12.5px}.bar-row .name{width:140px;flex-shrink:0;color:#334155}.bar-row .bar{height:16px;background:var(--primary);border-radius:3px;min-width:2px}.bar-row .num{color:var(--muted)}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0f1e3d}.login-card{background:#fff;border-radius:12px;padding:32px;width:380px}.login-card h1{font-size:20px;margin:0 0 4px}.login-card p.sub{color:var(--muted);font-size:13px;margin:0 0 20px}.kv{display:grid;grid-template-columns:220px 1fr;grid-gap:6px 16px;gap:6px 16px;font-size:13px}.kv .k{color:var(--muted)}.kv .v{word-break:break-word}.section-title{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#475569;margin:22px 0 10px;padding-bottom:6px;border-bottom:2px solid var(--border)}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;align-items:center}.toolbar .spacer{flex:1 1}.sidebar nav .nav-section{padding:14px 16px 4px;font-size:10.5px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#5c729f}.modal-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,30,61,.55);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px}.modal{background:var(--surface);border-radius:10px;width:min(760px,100%);max-height:86vh;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.3)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border)}.modal-head h3{margin:0;font-size:15px}.modal-x{border:none;background:none;font-size:22px;line-height:1;cursor:pointer;color:var(--muted);padding:2px 6px;border-radius:6px}.modal-x:hover{background:#f1f5f9;color:var(--text)}.modal-body{padding:16px 18px;overflow-y:auto}.filter-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:14px}.filter-panel summary{cursor:pointer;padding:10px 14px;font-size:13px;font-weight:600;color:#334155;display:flex;align-items:center;gap:8px;list-style:none}.filter-panel summary::-webkit-details-marker{display:none}.filter-panel summary:before{content:"▸";color:var(--muted);font-size:11px}.filter-panel[open] summary:before{content:"▾"}.filter-panel .filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));grid-gap:10px 12px;gap:10px 12px;padding:4px 14px 12px}.filter-panel .filter-grid label{font-size:11.5px;color:var(--muted);display:block}.filter-panel .filter-actions{display:flex;gap:8px;padding:0 14px 12px}.dropdown{position:relative;display:inline-block}.dropdown summary{list-style:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.dropdown summary::-webkit-details-marker{display:none}.dropdown .menu{position:absolute;right:0;top:calc(100% + 4px);z-index:60;min-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 30px rgba(15,30,61,.18);padding:6px;display:flex;flex-direction:column}.dropdown .menu a{padding:7px 10px;border-radius:6px;font-size:13px;color:var(--text);white-space:nowrap}.dropdown .menu a:hover{background:#f1f5f9;text-decoration:none}