:root{
  --bg:#f4f7fb;--card:#fff;--text:#10213a;--muted:#6d7890;--line:#e1e7ef;
  --navy:#0b2843;--navy2:#133b5d;--green:#14a875;--red:#d74949;--yellow:#d89b25;
  --shadow:0 16px 45px rgba(22,43,70,.07)
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin:auto;padding:32px 22px 70px}
.topbar{height:72px;background:#0a2138;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1200px)/2));position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}.brand-mark{width:35px;height:35px;border-radius:11px;background:var(--green);display:grid;place-items:center}.brand b{color:#5ee0b1}
.topbar nav{display:flex;gap:20px;align-items:center;font-size:14px}.logout{opacity:.72}
.card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:27px;box-shadow:var(--shadow);margin-bottom:24px}
.page-head,.form-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:7px 0 27px}
.page-head h1,.form-page-head h1{font-size:34px;margin:5px 0}.page-head p,.form-page-head p{margin:0;color:var(--muted)}
.head-actions,.action-row,.inline-form{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.eyebrow{font-size:11px;letter-spacing:1.7px;color:#62809b;font-weight:900}.muted{color:var(--muted)}
.btn{border:0;border-radius:12px;padding:13px 18px;font-weight:850;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:46px}
.primary{background:var(--navy);color:#fff}.secondary{background:#fff;border:1px solid #d7e0e9}.success{background:#ddf7ed;color:#08784f}
.danger-btn{background:#fde6e6;color:#ae3434}.warning-btn{background:#fff0ca;color:#8c620c}.danger-solid{background:#c93636;color:#fff}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.admin-stats{grid-template-columns:repeat(5,1fr)}
.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}.stat span{display:block;color:var(--muted)}.stat strong{display:block;font-size:34px;margin-top:5px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:20px}.section-title h2{margin:4px 0}
.shield{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#e6f8f1;color:#079566;font-size:22px;font-weight:900}
.form{display:flex;flex-direction:column;gap:17px}.max-form{max-width:620px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.form label,.check-grid label{font-size:13px;font-weight:750;color:#45556b;display:flex;flex-direction:column;gap:8px}
input,select,textarea{width:100%;border:1px solid #d8e0e9;border-radius:12px;padding:13px 14px;font:inherit;background:#fbfcfe;color:var(--text);outline:none;min-height:46px}
textarea{min-height:110px}input:focus,select:focus,textarea:focus{border-color:#6b9dc1;box-shadow:0 0 0 3px rgba(74,139,190,.1)}
.check-grid{display:grid;grid-template-columns:190px 1fr 220px;gap:14px;align-items:end;margin-top:22px}
.form-section-title{display:flex;gap:13px;align-items:center;padding-top:9px;margin-top:4px;border-top:1px solid var(--line)}
.form-section-title>span{width:34px;height:34px;border-radius:10px;background:#edf3f8;display:grid;place-items:center;font-size:12px;font-weight:900}
.warning-box,.alert{padding:14px 16px;border-radius:12px}.warning-box,.warning-alert{background:#fff7e3;color:#71530f}.alert.error{background:#fde7e7;color:#a92f2f}.success-alert{background:#ddf7ed;color:#08784f}
table{width:100%;border-collapse:collapse;margin-top:14px}th,td{text-align:left;padding:14px 12px;border-top:1px solid var(--line);font-size:14px}th{font-size:11px;text-transform:uppercase;color:#68788e}.responsive-table{overflow-x:auto}.empty{text-align:center;color:var(--muted);padding:30px 10px}
.badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;background:#edf2f6}
.badge.pending{background:#fff1cf;color:#8f630f}.badge.approved,.badge.verified{background:#ddf7ed;color:#08784f}.badge.rejected{background:#fde5e5;color:#ac3737}
.badge.suspended,.badge.evidence_required,.badge.regularization_requested{background:#fff0ca;color:#8c620c}.badge.regularized{background:#e4f0ff;color:#2867a7}.badge.big{font-size:12px;padding:9px 13px}
.result-card{display:flex;gap:20px;align-items:center;border:1px solid;border-radius:21px;padding:25px;margin-bottom:24px}
.result-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:28px;font-weight:900;flex:none}
.result-card.clear{background:#edfbf5;border-color:#c8eddf}.result-card.clear .result-icon{background:var(--green);color:#fff}
.result-card.watch{background:#fff8e9;border-color:#eddda9}.result-card.watch .result-icon{background:var(--yellow);color:#fff}
.result-card.danger{background:#fff0f0;border-color:#efc7c7}.result-card.danger .result-icon{background:var(--red);color:#fff}
.agency-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.agency-chip{border:1px solid var(--line);border-radius:15px;padding:13px 15px;display:flex;gap:11px;align-items:center;min-width:260px}
.agency-logo{width:39px;height:39px;border-radius:12px;background:#e8f1f8;display:grid;place-items:center;font-weight:900}.agency-chip span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.incident-stack{display:flex;flex-direction:column;gap:13px;margin-top:18px}.incident-card{border:1px solid var(--line);border-radius:16px;padding:18px}.incident-top{display:flex;justify-content:space-between;gap:20px}
.incident-agency{font-size:13px;font-weight:800;background:#edf3f8;border-radius:10px;padding:8px 10px}.incident-details{display:flex;gap:22px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.incident-details span{display:flex;flex-direction:column}.incident-details small{color:var(--muted)}
.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.detail-grid .label{display:block;color:var(--muted);font-size:11px;margin-bottom:6px}.detail-grid .full{grid-column:1/-1}
.file-chip{display:inline-flex;padding:10px 12px;border-radius:10px;background:#edf3f8;margin:6px 8px 0 0;font-size:13px}
.auth-shell{min-height:calc(100vh - 64px);display:grid;grid-template-columns:1.12fr .88fr;align-items:center;gap:60px}.auth-hero{padding:38px}
.logo-big{width:72px;height:72px;border-radius:22px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:39px;font-weight:900}.auth-hero h1{font-size:49px}.auth-hero h1 span{color:var(--green)}
.auth-card{max-width:430px;width:100%;justify-self:end}.auth-footer,.forgot-line{text-align:center;margin-top:16px;font-size:13px;color:var(--muted)}.forgot-line{text-align:right;margin:0}
.small-auth{max-width:520px;margin:80px auto}.center-card{max-width:670px;margin:100px auto;text-align:center;padding:45px}.status-icon{width:65px;height:65px;border-radius:19px;margin:0 auto 16px;display:grid;place-items:center;font-size:28px}
.waiting{background:#fff2d0}.suspended{background:#fff0ca}.rejected{background:#fde5e5}.agency-summary{display:flex;flex-direction:column;gap:5px;margin-top:20px;background:#f4f7fa;border-radius:14px;padding:15px}
.filter-bar{display:grid;grid-template-columns:1fr 180px 180px 110px;gap:12px}.filter-bar.simple{grid-template-columns:1fr 120px}.pagination{display:flex;justify-content:center;gap:20px;padding-top:20px}
.danger-zone{border-color:#f1d3d3;background:#fff8f8}.notification-list{padding:10px}.notification-card{margin:0}.notification-card button{width:100%;background:#fff;border:0;border-bottom:1px solid var(--line);padding:17px;text-align:left;display:flex;justify-content:space-between;cursor:pointer}.notification-card.unread button{background:#f0f7ff}.notification-card p{margin:5px 0;color:var(--muted)}
hr{border:0;border-top:1px solid var(--line);margin:28px 0}
@media(max-width:950px){.admin-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){
  .container{padding:20px 12px 50px}.topbar{height:auto;min-height:64px;padding:12px 14px;align-items:flex-start}.topbar nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.topbar nav a{font-size:12px}.brand span:last-child{display:none}
  .stats,.admin-stats,.two-col,.three-col,.detail-grid,.auth-shell,.check-grid,.filter-bar,.filter-bar.simple{grid-template-columns:1fr}
  .auth-shell{gap:5px}.auth-hero{padding:22px 8px}.auth-hero h1{font-size:36px}.auth-card{max-width:none}
  .page-head,.form-page-head{align-items:flex-start;flex-direction:column}.head-actions{width:100%}.head-actions .btn{flex:1}.incident-top{flex-direction:column}.agency-chip{width:100%}.inline-form{flex-direction:column;align-items:stretch}
  .responsive-table{overflow:visible}.responsive-table table,.responsive-table thead,.responsive-table tbody,.responsive-table th,.responsive-table td,.responsive-table tr{display:block}.responsive-table thead{display:none}
  .responsive-table tr{background:#fff;border:1px solid var(--line);border-radius:14px;margin:12px 0;padding:8px}.responsive-table td{border:0;border-bottom:1px solid #eef1f4;padding:10px 8px;display:flex;justify-content:space-between;gap:16px}.responsive-table td:last-child{border-bottom:0}
  .responsive-table td:before{content:attr(data-label);font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase}.btn{min-height:48px}.card{padding:19px}.page-head h1,.form-page-head h1{font-size:29px}
}
