:root {
  --cne-blue: #0b3b75;
  --cne-blue-2: #115dad;
  --cne-bg: #f3f6fb;
  --cne-border: #dbe4f0;
  --cne-text: #17243a;
  --cne-muted: #607089;
  --cne-success: #15803d;
  --cne-warning: #b45309;
  --cne-danger: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--cne-bg); color: var(--cne-text); }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: linear-gradient(180deg, #082d5c, #0a376e); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand-mark { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.8); border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.brand strong { display: block; font-size: 16px; }
.brand span { display: block; font-size: 12px; opacity: .75; margin-top: 3px; }
.nav-title { font-size: 10px; letter-spacing: .08em; opacity: .62; margin: 22px 10px 8px; text-transform: uppercase; }
.nav-link { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 10px 12px; border-radius: 9px; color: rgba(255,255,255,.86); font-size: 14px; margin-bottom: 4px; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.13); color: #fff; }
.sidebar-footer { margin-top: 28px; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.content { min-width: 0; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--cne-border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.userbox { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #e2eaf5; display: grid; place-items: center; font-weight: 700; color: var(--cne-blue); }
.userbox strong { display: block; font-size: 13px; }
.userbox span { display: block; font-size: 11px; color: var(--cne-muted); }
.main { padding: 26px; }
.page-title { margin: 0; font-size: 26px; }
.page-subtitle { margin: 5px 0 0; color: var(--cne-muted); font-size: 14px; }
.header-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--cne-border); border-radius: 14px; box-shadow: 0 7px 22px rgba(15, 44, 82, .05); }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--cne-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 18px; }
.metric-label { color: var(--cne-muted); font-size: 12px; }
.metric-value { font-size: 28px; font-weight: 750; margin-top: 7px; }
.module-card { padding: 22px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; display: block; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(15, 44, 82, .1); }
.module-card h3 { margin: 0 0 8px; }
.module-card p { color: var(--cne-muted); margin: 0 0 18px; line-height: 1.5; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-blue { background: #e3efff; color: #0b55a5; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.form-group { margin-bottom: 15px; }
label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; color: #34445c; }
.required::after { content: " *"; color: var(--cne-danger); }
input, select, textarea { width: 100%; border: 1px solid #cbd7e6; border-radius: 8px; padding: 10px 11px; font: inherit; color: var(--cne-text); background: #fff; }
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #4d8ed4; box-shadow: 0 0 0 3px rgba(17,93,173,.12); }
.btn { border: 0; border-radius: 8px; padding: 10px 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--cne-blue-2); color: #fff; }
.btn-secondary { background: #e8eef6; color: #234; }
.btn-success { background: #16803d; color: #fff; }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #b9c9dc; color: var(--cne-blue); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.alert { border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert-warning { background: #fff8e8; color: #92400e; border: 1px solid #fde68a; }
.hidden { display: none !important; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: #f5f8fc; color: #42526a; text-align: left; padding: 10px; border-bottom: 1px solid var(--cne-border); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #e9eff6; vertical-align: top; }
.muted { color: var(--cne-muted); }
.small { font-size: 12px; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { padding: 8px 10px; background: #f6f9fd; border: 1px solid #e2eaf4; border-radius: 7px; margin-bottom: 6px; font-size: 12px; }
.person-row { display: grid; grid-template-columns: 150px 1.5fr 1fr 80px; gap: 8px; align-items: end; padding: 10px; background: #f8fafd; border-radius: 9px; margin-bottom: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #3b82f6; }
.overdue { color: var(--cne-danger); font-weight: 700; }
.login-page { min-height: 100vh; background: linear-gradient(135deg, #082d5c, #0d5ca8); display: grid; place-items: center; padding: 20px; }
.login-card { width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.login-card h1 { margin: 0 0 8px; }
.login-card p { color: var(--cne-muted); margin-bottom: 24px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .person-row { grid-template-columns: 1fr; } .topbar { position: static; } }
