:root {
    --bg: #eef3f8;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #dbe4ee;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
    --navy: #123a63;
    --navy-soft: #e9f0f7;
    --success-soft: #ccfbf1;
    --warning-soft: #fef3c7;
    --danger-soft: #ffe4e6;
    --neutral-soft: #eef2f7;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
    color: var(--text);
}
a { color: inherit; }
.admin-page { max-width: 1380px; margin: 0 auto; padding: 22px 24px 32px; }
.admin-shell {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(219,228,238,0.95);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 18px 20px 16px;
    margin-bottom: 22px;
}
.admin-top { display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; }
.admin-title-wrap { display:grid; gap:6px; }
.admin-eyebrow { font-size:12px; letter-spacing:.9px; text-transform:uppercase; color:var(--muted); font-weight:700; }
.admin-title { margin:0; font-size:30px; line-height:1.1; color:var(--navy); }
.admin-subtitle { margin:0; color:var(--muted); max-width:900px; font-size:14px; }
.admin-meta { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.admin-pill {
    background:#fff; color:var(--navy); padding:9px 12px; border-radius:999px; font-size:12px;
    font-weight:700; border:1px solid var(--border); box-shadow:var(--shadow-soft); display:inline-flex; align-items:center; gap:8px;
}
.admin-nav { margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
.admin-link {
    text-decoration:none; color:var(--navy); background:#fff; border:1px solid var(--border); padding:10px 14px; border-radius:12px;
    box-shadow:var(--shadow-soft); font-weight:700; font-size:14px; display:inline-flex; align-items:center; gap:8px;
}
.admin-link.primary {
    background: linear-gradient(135deg, #123a63, #1d578c); color:#fff; border-color:#123a63;
}
.admin-card {
    background: var(--card); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow); padding:22px;
}
.admin-grid { display:grid; gap:20px; }
.admin-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-section-title { margin:0 0 10px; font-size:22px; line-height:1.2; color:var(--navy); }
.admin-section-subtitle { margin:0 0 18px; color:var(--muted); font-size:14px; }
.feature-card {
    position: relative; overflow: hidden; min-height: 180px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.045) 0 54px, transparent 55px), linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.feature-label { margin: 0 0 12px; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.feature-title { margin: 0 0 10px; font-size: 24px; line-height: 1.15; color: #10223c; }
.feature-text { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.feature-actions { display:flex; gap:10px; flex-wrap:wrap; }
.stat-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; }
.stat-card { background: radial-gradient(circle at top right, rgba(37,99,235,.045) 0 54px, transparent 55px), linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); }
.stat-label { margin:0 0 10px; font-size:13px; color:var(--muted); font-weight:700; text-transform:uppercase; }
.stat-value { font-size:30px; line-height:1.08; font-weight:800; margin-bottom:8px; color:#10223c; }
.stat-foot { font-size:13px; color:var(--muted); }
.alert { border-radius:16px; padding:14px 16px; font-size:14px; margin-bottom:18px; border:1px solid transparent; }
.alert-success { background:#ecfdf5; color:#166534; border-color:#a7f3d0; }
.alert-error { background:#fff1f2; color:#9f1239; border-color:#fecdd3; }
.form-grid { display:grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap:14px; }
.form-col-12 { grid-column: span 12; }
.form-col-6 { grid-column: span 6; }
.form-col-4 { grid-column: span 4; }
.form-col-3 { grid-column: span 3; }
.form-col-2 { grid-column: span 2; }
.field label { display:block; font-weight:700; margin-bottom:8px; font-size:14px; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field select, .field textarea {
    width:100%; padding:11px 12px; border:1px solid var(--border); border-radius:12px; background:#fff; font-size:14px; color:var(--text);
}
.field textarea { min-height:110px; resize:vertical; }
.btn {
    border:0; background: linear-gradient(135deg, var(--navy), #1e5b94); color:#fff; padding:12px 16px; border-radius:12px; font-weight:700; cursor:pointer;
}
.btn-secondary { background:#fff; color:var(--navy); border:1px solid var(--border); }
.table-wrap { overflow:auto; max-height:640px; border:1px solid var(--border); border-radius:16px; background:#fff; }
table { width:100%; border-collapse:collapse; min-width:980px; }
th, td { padding:12px 12px; text-align:left; border-bottom:1px solid var(--border); vertical-align:top; font-size:14px; }
th { background:#f8fafc; font-size:13px; color:var(--muted); position:sticky; top:0; z-index:1; }
.table-wrap tbody tr:hover td { background:#eef5fc; }
.badge { display:inline-block; padding:6px 12px; border-radius:999px; font-weight:700; font-size:12px; border:1px solid transparent; white-space:nowrap; }
.badge-manter { background:var(--success-soft); color:#115e59; border-color:#99f6e4; }
.badge-reduzir { background:var(--warning-soft); color:#92400e; border-color:#fde68a; }
.badge-cancelar { background:var(--danger-soft); color:#9f1239; border-color:#fecdd3; }
.badge-neutral { background:var(--neutral-soft); color:#475569; border-color:#dbe2ea; }
.small-muted { color:var(--muted); font-size:12px; }
.empty-state { display:grid; gap:6px; padding:18px; border:1px dashed var(--border); border-radius:16px; background:#fbfdff; color:var(--muted); font-size:14px; }
.login-page-single { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.login-box-single {
    width:100%; max-width:460px; background:rgba(255,255,255,.94); border:1px solid rgba(219,228,238,.95); border-radius:26px; box-shadow:0 20px 44px rgba(15,23,42,.08); padding:30px;
}
.login-logo-top { display:flex; justify-content:center; margin-bottom:22px; }
.login-logo-box-single { width:240px; max-width:100%; min-height:72px; border-radius:18px; background:#fff; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; padding:12px 16px; box-shadow:var(--shadow-soft); }
.login-logo-box-single img { max-width:100%; max-height:58px; object-fit:contain; display:block; }
.login-title-single { margin:0 0 8px; font-size:30px; line-height:1.1; color:var(--navy); text-align:center; }
.login-subtitle-single { margin:0 0 22px; color:var(--muted); font-size:14px; line-height:1.5; text-align:center; }
.login-form-single { display:grid; gap:16px; }
.login-submit-single { width:100%; }
.login-note-single { margin-top:16px; color:var(--muted); font-size:12px; text-align:center; }
.logo-fallback-single { color:var(--muted); font-size:13px; text-align:center; line-height:1.4; }
.icon-inline { width:16px; height:16px; display:inline-block; flex:0 0 16px; }
.icon-inline svg { width:100%; height:100%; display:block; stroke:currentColor; }
@media (max-width: 980px) {
    .form-col-6, .form-col-4, .form-col-3, .form-col-2 { grid-column: span 12; }
    .admin-grid.cols-2, .admin-grid.cols-3, .stat-grid { grid-template-columns:1fr; }
}
