:root{--navy:#0f172a;--blue:#1d4ed8;--muted:#64748b;--line:#cbd5e1;--paper:#f8fafc}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#eff6ff,#f8fafc);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--navy)}.wrap{max-width:1440px;margin:auto;padding:22px}.hero{display:flex;justify-content:space-between;gap:18px;align-items:stretch;background:linear-gradient(135deg,#0f172a,#1e3a8a 70%,#2563eb);border-radius:26px;color:#fff;padding:30px;box-shadow:0 18px 45px rgba(15,23,42,.22)}.eyebrow{font-weight:900;letter-spacing:.15em;color:#fde68a}.hero h1{font-size:40px;margin:6px 0}.hero p{color:#dbeafe;margin:0}.hero-card{min-width:250px;border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:18px;background:rgba(255,255,255,.13)}.hero-card span,.hero-card small{display:block;color:#dbeafe}.hero-card strong{font-size:26px}.flash{margin:16px 0;background:#dcfce7;color:#166534;border:1px solid #86efac;border-radius:14px;padding:12px 14px;font-weight:800}.panel{background:rgba(255,255,255,.95);border:1px solid rgba(148,163,184,.35);border-radius:22px;padding:20px;margin-top:18px;box-shadow:0 14px 32px rgba(51,65,85,.12)}.panel.small{padding:16px}.form{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}label{font-weight:900;color:#334155}input{width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:inherit;background:white}.hint-box{background:#fef3c7;color:#92400e;border:1px solid #fcd34d;border-radius:12px;padding:11px;font-weight:800}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.toolbar.bottom{justify-content:flex-end}.btn,button{border:0;border-radius:12px;padding:10px 14px;font-weight:900;text-decoration:none;cursor:pointer;display:inline-block;background:#e0e7ff;color:#312e81}.primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}.danger{background:#fee2e2;color:#991b1b;padding:7px 10px}.tablewrap{overflow:auto;border:1px solid #cbd5e1;border-radius:16px;max-height:68vh;background:white}.lapbul{border-collapse:separate;border-spacing:0;min-width:1420px;width:100%;font-size:13px}.lapbul th,.lapbul td{border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;text-align:center;padding:6px}.lapbul thead th{position:sticky;top:0;z-index:3;background:#1e3a8a;color:white;font-size:12px}.lapbul thead tr:nth-child(2) th{top:38px;background:#2563eb}.lapbul .sticky{position:sticky;left:0;z-index:4;background:#f8fafc;color:#0f172a;min-width:170px}.lapbul thead .sticky{background:#1e3a8a;color:#fff}.lapbul .rowlabel{text-align:left;font-weight:900}.lapbul input{margin:0;padding:7px 6px;text-align:center;border-radius:8px;min-width:62px}.history{display:grid;gap:8px}.history-row{display:grid;grid-template-columns:1.3fr 1fr .8fr auto;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:10px}.history-row a{font-weight:900;color:#1d4ed8;text-decoration:none}.history-row span,.history-row small,.muted{color:#64748b}@media(max-width:900px){.wrap{padding:12px}.hero{display:block;padding:22px;border-radius:18px}.hero h1{font-size:30px}.hero-card{margin-top:14px;min-width:0}.form-grid,.mini-grid{grid-template-columns:1fr}.panel{padding:14px}.tablewrap{max-height:none}.history-row{grid-template-columns:1fr}.toolbar{position:sticky;bottom:0;background:rgba(255,255,255,.95);padding:8px 0}.lapbul{font-size:12px;min-width:1350px}.lapbul input{min-width:56px;padding:6px 4px}}

.wilayah-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.wilayah-link{border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:14px;text-decoration:none;color:#1e3a8a;display:grid;gap:4px}.wilayah-link strong{font-size:15px}.wilayah-link span{font-size:12px;color:#64748b}.wilayah-link:hover{background:#dbeafe;transform:translateY(-1px)}.wrap.narrow{max-width:980px}.wilayah-hero h1{font-size:34px}.topbar{justify-content:space-between;margin-bottom:14px}.wilayah-title h2{margin-bottom:4px}.wilayah-title p{margin-top:0;color:#64748b}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-grid label{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px}.field-grid input.big{font-size:20px;font-weight:900;text-align:center}.bigbtn{font-size:16px;padding:13px 18px}@media(max-width:900px){.wilayah-links{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr}.topbar{display:grid}.wilayah-hero h1{font-size:28px}}


.inline-form{display:inline-block;margin:0}.google{background:#16a34a;color:white}.google:hover{background:#15803d}

/* Model tabel input per wilayah */
.wilayah-wrap{max-width:1120px}.input-wilayah-tablewrap{max-height:none;overflow:auto}.wilayah-input-table{border-collapse:separate;border-spacing:0;width:100%;min-width:760px;background:white;font-size:14px}.wilayah-input-table th,.wilayah-input-table td{border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;padding:9px 10px;vertical-align:middle}.wilayah-input-table thead th{position:sticky;top:0;background:#1e3a8a;color:white;z-index:2;text-align:center}.wilayah-input-table .cat{background:#eff6ff;color:#1e3a8a;text-align:left;font-weight:900;width:230px}.wilayah-input-table td:nth-child(2){font-weight:800;color:#334155}.wilayah-input-table input.table-num{margin:0;text-align:center;font-size:18px;font-weight:900;padding:9px 8px;border-radius:10px;min-width:96px;background:#f8fafc}.wilayah-input-table input.table-num:focus{outline:3px solid #bfdbfe;border-color:#2563eb;background:#fff}.wilayah-title p{margin-bottom:14px}@media(max-width:760px){.wilayah-input-table{min-width:680px;font-size:12px}.wilayah-input-table th,.wilayah-input-table td{padding:7px 6px}.wilayah-input-table .cat{width:170px}.wilayah-input-table input.table-num{font-size:16px;min-width:72px;padding:8px 5px}.input-wilayah-tablewrap{border-radius:14px}}

/* Input wilayah mengikuti tabel halaman awal */
.wilayah-rekap-tablewrap{max-height:none}.wilayah-one-row-table{min-width:2300px}.wilayah-one-row-table th{font-size:12px}.wilayah-one-row-table input.num{min-width:72px;font-size:14px;font-weight:900;text-align:center;background:#f8fafc}.wilayah-one-row-table input.num:focus{outline:3px solid #bfdbfe;border-color:#2563eb;background:#fff}@media(max-width:760px){.wilayah-one-row-table{min-width:2200px}.wilayah-one-row-table input.num{min-width:64px;font-size:13px}.wilayah-rekap-tablewrap{border-radius:14px}}

/* Dashboard utama read-only */
.dashboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}.dashboard-head h2{margin:0 0 4px}.dashboard-actions{justify-content:flex-end}.readonly-table td{text-align:center;font-weight:800;color:#0f172a;background:#fff}.readonly-table tr:nth-child(even) td{background:#f8fafc}.readonly-history{grid-template-columns:1.3fr 1fr .8fr auto}.readonly-history .btn{justify-self:end}@media(max-width:900px){.dashboard-head{display:block}.dashboard-actions{margin-top:10px;justify-content:flex-start}.readonly-history{grid-template-columns:1fr}.readonly-history .btn{justify-self:start}}

.below-table-links{margin-top:18px;border-top:1px solid #e2e8f0;padding-top:18px}

/* Rekap per bulan */
.month-controls{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.month-controls h2{margin:0 0 4px}.month-create-form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.month-create-form label{min-width:130px}.month-create-form select,.month-create-form input{width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:inherit;background:white}.month-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.month-tab{padding:9px 12px;border-radius:999px;background:#e0e7ff;color:#312e81;text-decoration:none;font-weight:900}.month-tab.active{background:#1d4ed8;color:white}.month-panel{border-color:#bfdbfe}@media(max-width:900px){.month-controls{display:block}.month-create-form{display:grid;grid-template-columns:1fr;margin-top:12px}.month-create-form label{min-width:0}}

/* Baris jumlah rekap */
.jumlah-row th,.jumlah-row td{background:#fef3c7!important;color:#78350f!important;font-weight:900!important;border-top:2px solid #f59e0b!important}.jumlah-row .sticky{background:#f59e0b!important;color:#111827!important}

/* Sub menu kirim Google Form */
.submit-google-panel{margin-top:18px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:18px;padding:16px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.submit-google-panel h2{margin:0 0 4px;color:#166534}.submit-google-panel p{margin:0}.submit-google-panel .btn{background:#dcfce7;color:#166534}.submit-google-panel .google{box-shadow:0 8px 20px rgba(22,163,74,.22)}@media(max-width:900px){.submit-google-panel{display:block}.submit-google-panel .inline-form,.submit-google-panel .btn{margin-top:10px;width:100%}.submit-google-panel button,.submit-google-panel a{text-align:center;width:100%}}

/* Preview data Google Form */
.preview-form-table{border-collapse:separate;border-spacing:0;width:100%;background:white}.preview-form-table th,.preview-form-table td{border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;padding:10px;text-align:left}.preview-form-table thead th{background:#166534;color:white;position:sticky;top:0}.preview-form-table td:first-child{width:60px;text-align:center;font-weight:900}.preview-form-table td:last-child{font-weight:900;color:#0f172a}.preview-tablewrap{max-height:70vh}

/* Logo Lalu Lintas dashboard */
.hero.has-logo{display:grid;grid-template-columns:92px 1fr auto;align-items:center}.dashboard-logo{width:82px;height:92px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(0,0,0,.25));background:transparent}.hero.has-logo .hero-card{justify-self:end}@media(max-width:900px){.hero.has-logo{display:grid;grid-template-columns:72px 1fr;gap:12px}.dashboard-logo{width:64px;height:72px}.hero.has-logo .hero-card{grid-column:1 / -1;justify-self:stretch}}

/* Login LAP BUL */
.login-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#1e3a8a 65%,#2563eb);padding:18px}.login-card{width:min(430px,100%);background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.35);border-radius:26px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.32);text-align:center}.login-logo{width:92px;height:105px;object-fit:contain;margin:0 auto 8px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.18))}.login-card h1{font-size:24px;margin:6px 0;color:#0f172a}.login-card p{margin:0 0 18px;color:#64748b;font-weight:800}.login-form{display:grid;gap:14px;text-align:left}.login-form button{width:100%;margin-top:4px}.logout-link{position:absolute;right:18px;top:16px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);color:#fff;text-decoration:none;font-weight:900;padding:8px 12px;border-radius:999px}.hero{position:relative}@media(max-width:760px){.logout-link{position:static;grid-column:1 / -1;justify-self:start;margin-top:8px}}
