:root{
  --orange:#ed5b13;
  --orange-2:#ff7b1a;
  --orange-soft:#fff2e8;
  --cream:#fffaf6;
  --ink:#17243a;
  --ink-soft:#475569;
  --line:#ece3dc;
  --muted:#748092;
  --bg:#f6f7fb;
  --surface:#fff;
  --sidebar:252px;
  --radius:16px;
  --shadow:0 10px 30px rgba(44,56,74,.05);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{transition:.2s ease}
.admin-shell{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar);background:#fff;border-right:1px solid #e9edf2;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30;transition:.25s;box-shadow:4px 0 24px rgba(44,56,74,.04)}
.sidebar-brand{min-height:82px;display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #eef2f5}
.sidebar-brand img{width:47px;height:47px;object-fit:contain;flex:0 0 auto}
.sidebar-logo{width:47px;height:47px;border-radius:12px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;font-size:21px;flex:0 0 auto}
.sidebar-brand strong{display:block;color:var(--orange);font-size:15px;line-height:1.25;letter-spacing:.35px}
.sidebar-brand small{display:block;color:#67758a;font-size:11px;line-height:1.35;margin-top:2px}
.side-nav{padding:14px 11px}
.side-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;text-decoration:none;color:#30445e;margin-bottom:4px;font-size:13px;font-weight:600;line-height:1.25;position:relative}
.side-nav a i{width:20px;text-align:center;font-size:15px;color:#5b6e84}
.side-nav a.active,.side-nav a:hover{background:var(--orange-soft);color:var(--orange);font-weight:700}
.side-nav a.active i,.side-nav a:hover i{color:var(--orange)}
.side-nav a.active:before{content:"";position:absolute;left:-11px;top:8px;bottom:8px;width:3px;border-radius:0 4px 4px 0;background:var(--orange)}
.sidebar-foot{margin-top:auto;padding:18px;color:#6f7b88;font-size:11px;line-height:1.55}
.flag-line{height:4px;border-radius:6px;background:linear-gradient(90deg,#d92525 50%,#fff 50%);border:1px solid #edf1f4;margin-bottom:10px}
.admin-main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh;display:flex;flex-direction:column}
.admin-topbar{height:76px;background:rgba(255,255,255,.97);border-bottom:1px solid #e9edf2;display:flex;align-items:center;position:sticky;top:0;z-index:20;backdrop-filter:blur(8px)}
.admin-topbar-inner{width:100%;max-width:1680px;margin:0 auto;padding:0 28px;display:flex;align-items:center;gap:18px}
.admin-identity strong{display:block;font-size:14px;color:#c94b0e;line-height:1.25;letter-spacing:.15px}
.admin-identity small{display:block;color:#7c8796;font-size:11px;margin-top:2px}
.top-public-link{text-decoration:none;color:#4d5f76;font-size:12px;font-weight:650;white-space:nowrap}
.top-public-link:hover{color:var(--orange)}
.user-chip{display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid #edf1f4}
.user-chip .avatar{width:38px;height:38px;border-radius:50%;background:#f3f5f7;display:grid;place-items:center;color:#5a687a;flex:0 0 auto}
.user-chip strong,.user-chip small{display:block;font-size:11px;line-height:1.35}.user-chip strong{font-weight:750}.user-chip small{color:#7a8795}
.admin-content{width:100%;max-width:1680px;margin:0 auto;padding:28px!important;flex:1 0 auto}
.page-title{font-size:30px;font-weight:800;line-height:1.18;letter-spacing:-.45px;margin-bottom:4px;color:#172b4d}
.crumb{font-size:12px;color:#7a8795;line-height:1.5}
.page-subtitle{font-size:14px;color:#66758a;max-width:760px;line-height:1.7}
.quick-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.quick-actions .btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border-radius:10px;padding:.55rem .95rem}
.btn-kpu{background:linear-gradient(180deg,var(--orange-2),var(--orange));color:#fff;border:0;box-shadow:0 8px 18px rgba(237,91,19,.14)}
.btn-kpu:hover{color:#fff;filter:brightness(.98)}
.btn-outline-kpu{border:1px solid #ef6c2f;color:#d95415;background:#fff}.btn-outline-kpu:hover{background:#fff1e7;color:#d95415;border-color:#e65b1a}
.stat-card,.panel-card{background:#fff;border:1px solid #e9edf2;border-radius:var(--radius);box-shadow:var(--shadow)}
.stat-card{padding:20px;min-height:118px;height:100%;display:flex;align-items:center}
.stat-wrap{display:flex;align-items:center;gap:15px;width:100%}
.stat-icon{width:56px;height:56px;border-radius:14px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;font-size:22px;flex:0 0 auto}
.stat-card .label{font-size:12px;color:#536177;line-height:1.3}.stat-card .value{font-size:28px;font-weight:800;line-height:1.05;margin-top:2px;color:#172b4d}.stat-card .note{font-size:11px;color:#7b8795;margin-top:5px;line-height:1.45}
.panel-card{overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid #edf1f4;min-height:68px;background:linear-gradient(180deg,#fff,#fcfdff)}
.panel-title{font-size:20px;font-weight:800;display:flex;align-items:center;gap:10px;line-height:1.25;color:#162b4d}
.panel-title .ico{width:36px;height:36px;border-radius:10px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;font-size:15px;flex:0 0 auto}
.panel-head .sub{display:block;font-size:12px;color:#778394;font-weight:500;margin-top:3px;line-height:1.55}
.panel-head>a{color:#d65516!important;font-weight:650;font-size:12px!important;text-decoration:none}
.data-toolbar{display:flex;gap:14px;justify-content:space-between;align-items:flex-end;padding:18px 20px;border-bottom:1px solid #edf1f4;background:#fff}
.data-toolbar form{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;width:100%}
.data-toolbar .search{min-width:240px;max-width:320px}
.filter-group{display:flex;flex-direction:column;gap:6px;min-width:180px}
.filter-label{font-size:11px;font-weight:700;color:#6c7a8c;line-height:1.3}
.table-responsive{padding:0 16px 16px}
.table-kpu{margin:0;border-collapse:separate;border-spacing:0;width:100%}
.table-kpu thead th{font-size:11px;text-transform:uppercase;letter-spacing:.32px;color:#67768a;background:#f8fafc;border-top:1px solid #eef2f6;border-bottom:1px solid #e8edf3;padding:14px 16px;white-space:nowrap;font-weight:800;vertical-align:middle}
.table-kpu thead th:first-child{border-left:1px solid #eef2f6;border-top-left-radius:12px}
.table-kpu thead th:last-child{border-right:1px solid #eef2f6;border-top-right-radius:12px}
.table-kpu tbody td{vertical-align:middle;font-size:13px;line-height:1.55;border-bottom:1px solid #eef2f6;padding:16px;color:#23354e;background:#fff}
.table-kpu tbody tr:hover td{background:#fffdfb}
.table-kpu tbody tr:last-child td:first-child{border-bottom-left-radius:12px}
.table-kpu tbody tr:last-child td:last-child{border-bottom-right-radius:12px}
.table-kpu td:first-child,.table-kpu th:first-child{padding-left:18px}
.table-kpu td:last-child,.table-kpu th:last-child{padding-right:18px}
.table-kpu strong{font-weight:700;color:#1b2f4e;line-height:1.5}.table-kpu small{font-size:11.5px;line-height:1.55}
.text-nowrap{white-space:nowrap}
.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:750;white-space:nowrap}
.status-badge.success{background:#ddf6e7;color:#178257}.status-badge.warning{background:#fff0d7;color:#bd6800}.status-badge.secondary{background:#edf2f5;color:#68798e}.status-badge.info{background:#e0f3ff;color:#287da7}.status-badge.muted{background:#f0f0f0;color:#737373}.status-badge.danger{background:#fee5e5;color:#b42318}
.form-label{font-weight:700;font-size:12px;color:#34445b;margin-bottom:6px}
.form-control,.form-select{border-color:#d9e1e7;font-size:13px;min-height:42px;border-radius:10px;padding:.6rem .8rem}
.form-control-sm,.form-select-sm{min-height:38px;border-radius:9px;padding:.48rem .72rem}
.form-control:focus,.form-select:focus{border-color:#f39a69;box-shadow:0 0 0 .2rem rgba(239,91,12,.10)}
textarea.form-control{min-height:92px}
.modal-header{background:#fff8f1}.modal-title{font-weight:800}.modal-content{border:0;border-radius:14px;box-shadow:0 24px 70px rgba(41,24,12,.18)}
.agenda-list{padding:6px 18px 14px}.agenda-item{display:grid;grid-template-columns:44px 10px 1fr;gap:10px;padding:12px 0;border-bottom:1px solid #edf1f4}.agenda-item:last-child{border-bottom:0}.agenda-time{font-weight:700;color:#64748b;font-size:10.5px}.agenda-dot{width:8px;height:8px;border-radius:50%;background:var(--orange);margin-top:4px}.agenda-text strong{display:block;font-size:11.5px;line-height:1.45}.agenda-text small{display:block;color:#7d8997;font-size:10.5px;line-height:1.55;margin-top:2px}
.settings-logo-preview{width:90px;height:90px;object-fit:contain;border:1px solid #eee;border-radius:12px;background:#fff}.help-text{font-size:11px;color:#788694;line-height:1.55}
.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 10%,#fff0e1,transparent 28%),linear-gradient(135deg,#fffaf6,#f7f2ed)}.login-card{width:min(430px,92vw);background:#fff;border:1px solid #eedfd4;border-radius:18px;box-shadow:0 18px 45px rgba(88,47,17,.09);padding:30px}.login-logo{width:64px;height:64px;border-radius:16px;background:#fff0e1;color:var(--orange);display:grid;place-items:center;font-size:28px;margin:0 auto 14px}.login-title{text-align:center;font-weight:800;font-size:23px}.login-sub{text-align:center;color:#748197;font-size:12px;line-height:1.6;margin-bottom:22px}
.chip{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#f0f4f8;border:1px solid #e5ebf1;font-size:11px;color:#5a6c80;white-space:nowrap}
.vis-public{color:#16814c}.vis-internal{color:#4f5d70}.alert{border-radius:12px}
.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
.table-btn{width:34px;height:34px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e8edf3;background:#fff;color:#5f6f82;text-decoration:none}
.table-btn:hover{background:#f8fafc;color:#30445e;border-color:#dbe4ec}
.table-btn.edit{background:#fff4ea;color:var(--orange);border-color:#ffd4b5}.table-btn.edit:hover{background:#ffe8d4;color:#d85315}
.table-btn.delete{background:#fff1f1;color:#d93b3b;border-color:#ffd0d0}.table-btn.delete:hover{background:#ffe3e3;color:#c52c2c}
.doc-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:9px;border:1px solid #dbe4ec;background:#fff;color:#506174;font-size:11.5px;font-weight:700;text-decoration:none}
.doc-pill:hover{background:#f8fafc;color:#33465f}
.type-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.type-pill.normal{background:#fff6ea;color:#d87615;border:1px solid #ffe0b3}
.type-pill.conditional{background:#fff0e3;color:#d75a10;border:1px solid #ffd0ad}
.table-empty{padding:32px 20px;text-align:center;color:#7a8795}
.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px 18px;color:#6e7c8e;font-size:12px}
.simple-pagination{display:flex;align-items:center;gap:8px}
.page-chip{min-width:34px;height:34px;padding:0 10px;border-radius:9px;border:1px solid #dfe6ed;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#5c6c80;text-decoration:none;font-weight:700}
.page-chip.active{background:var(--orange);border-color:var(--orange);color:#fff}
.admin-footer{border-top:1px solid #e9edf2;background:#fff;color:#7b8794;flex-shrink:0}.admin-footer-inner{width:100%;max-width:1680px;margin:0 auto;min-height:54px;padding:10px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:10.5px;line-height:1.45}
.dashboard-head{display:flex;flex-direction:column;gap:4px}.dashboard-side .panel-card{height:auto}
.form-panel{padding:20px}
@media(max-width:1199px){.admin-content{padding:22px!important}.admin-topbar-inner{padding:0 22px}.page-title{font-size:27px}.data-toolbar{padding:16px 18px}.table-responsive{padding:0 12px 12px}}
@media(max-width:991px){
  .sidebar{transform:translateX(-100%)}.sidebar.open{transform:translateX(0);box-shadow:8px 0 24px rgba(0,0,0,.15)}
  .admin-main{margin-left:0;width:100%}.admin-identity{display:none}.top-public-link{display:none}.admin-content{padding:18px!important}.admin-topbar-inner{padding:0 14px}.page-title{font-size:24px}.user-chip div:last-child{display:none}.user-chip{border-left:0;padding-left:0}.admin-footer-inner{padding:10px 18px}
}
@media(max-width:767px){.quick-actions{width:100%}.quick-actions .btn{flex:1 1 auto}.data-toolbar{align-items:stretch;flex-direction:column}.data-toolbar form{align-items:stretch}.data-toolbar .search,.filter-group{max-width:none;width:100%;min-width:unset}.table-responsive{padding:0 10px 10px}.table-kpu thead th,.table-kpu tbody td{padding:13px 12px}.table-kpu td:first-child,.table-kpu th:first-child{padding-left:12px}.table-kpu td:last-child,.table-kpu th:last-child{padding-right:12px}.table-footer{flex-direction:column;align-items:flex-start}.admin-footer-inner{flex-direction:column;align-items:flex-start;gap:2px;padding-top:12px;padding-bottom:12px}.panel-head{padding:16px}.panel-title{font-size:17px}.form-panel{padding:16px}}

/* v1.1.4 — Final Production Polish */
body{font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:400;line-height:1.6}
.admin-shell{min-height:100vh}
.admin-main{min-height:100vh}
.admin-content{flex:1 0 auto}
.sidebar{box-shadow:3px 0 18px rgba(44,56,74,.025)}
.side-nav a{font-weight:500}
.side-nav a.active,.side-nav a:hover{font-weight:600}
.sidebar-foot{font-weight:400}
.admin-identity strong{font-weight:700}
.top-public-link{font-weight:500}
.user-chip strong{font-weight:600}
.page-title{font-weight:700}
.page-subtitle{font-weight:400}
.quick-actions .btn,.btn-kpu,.btn-outline-kpu{font-weight:600}
.stat-card .label{font-weight:400}
.stat-card .value{font-weight:700}
.stat-card .note{font-weight:400}
.setting-value{font-size:15px;font-weight:600;line-height:1.4;margin-top:3px}
.panel-title{font-weight:700}
.panel-head .sub{font-weight:400}
.panel-head>a{font-weight:500}
.filter-label,.form-label{font-weight:500}
.table-kpu thead th{font-weight:600}
.table-kpu tbody td{font-weight:400}
.table-kpu strong{font-weight:500}
.status-badge{font-weight:600}
.chip,.doc-pill,.type-pill{font-weight:500}
.table-btn{font-weight:400}
.agenda-time{font-weight:500}
.agenda-text strong{font-weight:500}
.admin-footer{margin-top:auto}
.admin-footer-inner{font-weight:400}
.panel-card{box-shadow:0 10px 28px rgba(44,56,74,.045)}
.stat-card{box-shadow:0 8px 22px rgba(44,56,74,.035)}
.table-kpu tbody tr{transition:background-color .16s ease}
.table-kpu tbody tr:hover td{background:#fffaf7}
.table-actions .table-btn{transition:transform .16s ease,background-color .16s ease,border-color .16s ease}
.table-actions .table-btn:hover{transform:translateY(-1px)}
.settings-logo-placeholder{width:90px;height:90px;border:1px dashed #d7dee6;border-radius:12px;background:#f8fafc;color:#9aa7b5;display:grid;place-items:center;font-size:22px}
.hero-upload-card{border:1px solid #e6ebf0;border-radius:14px;background:#fff;overflow:hidden;height:100%}
.hero-upload-preview{height:160px;background:#f5f7f9;border-bottom:1px solid #edf1f4;overflow:hidden}
.hero-upload-preview img{width:100%;height:100%;object-fit:cover;display:block}
.hero-upload-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#9aa7b5;font-size:12px}
.hero-upload-empty i{font-size:24px}
.form-check-label{font-weight:400}
.admin-main .fw-bold{font-weight:600!important}
.admin-main .fw-semibold{font-weight:500!important}
@media(max-width:767px){.hero-upload-preview{height:140px}.page-title{font-size:24px}}
.running-stage-card{border-left:3px solid var(--orange)}
.running-stage-title{font-size:16px;font-weight:600;color:#1c2f4d;line-height:1.45}

/* v2.0.1 — Bulk document upload polish */
.bulk-meta-grid{
  display:grid;
  grid-template-columns:1.1fr 1.8fr .9fr .8fr;
  gap:14px;
  padding:18px 20px 6px;
}
.bulk-upload-wrap{padding:12px 20px 6px}
.bulk-upload-table{border:1px solid #edf1f4;border-radius:12px;overflow:hidden}
.bulk-upload-table thead th{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.3px;padding:12px 14px;border-bottom:1px solid #e9eef3}
.bulk-upload-table tbody td{padding:13px 14px;border-bottom:1px solid #edf1f4;background:#fff}
.bulk-upload-table tbody tr:last-child td{border-bottom:0}
.bulk-type{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#2a3c56}
.bulk-type-icon{width:34px;height:34px;border-radius:9px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;flex:0 0 auto}
.bulk-upload-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px 20px}
@media(max-width:991px){.bulk-meta-grid{grid-template-columns:1fr 1fr}.bulk-upload-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:767px){.bulk-meta-grid{grid-template-columns:1fr;padding:16px}.bulk-upload-wrap{padding:8px 12px}.bulk-upload-footer{padding:12px 16px 18px}.bulk-upload-footer .btn{width:100%}}
