:root {
    --ink: #14231c;
    --muted: #68756e;
    --line: #dde5df;
    --canvas: #f4f7f5;
    --card: #ffffff;
    --green: #087a4b;
    --green-dark: #075d3c;
    --green-soft: #e5f4ec;
    --red: #d13a35;
    --amber: #ba7200;
    --blue: #2869b1;
    --shadow: 0 12px 32px rgba(21, 54, 38, .08);
    --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; color: #e8f5ee; background: linear-gradient(160deg, #073d2a 0%, #06281e 60%, #111e18 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font-weight: 900; color: white; background: linear-gradient(135deg, #13a36a, #087a4b); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.brand strong { display: block; font-size: 16px; }.brand span { color: #94b7a5; font-size: 11px; }
.nav-label { margin: 18px 10px 7px; color: #759889; font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 3px 0; border-radius: 11px; color: #b9d0c5; font-weight: 650; transition: .18s ease; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.09); transform: translateX(2px); }
.nav-link.active { box-shadow: inset 3px 0 #20b978; }
.nav-icon { width: 22px; text-align: center; opacity: .95; }
.content-shell { min-width: 0; }
.topbar { height: 72px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar-title { font-weight: 800; }.topbar-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.user-chip { display: flex; align-items: center; gap: 10px; }.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 800; }
.page { padding: 28px 30px 56px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }.page-head p { margin: 7px 0 0; color: var(--muted); }
.card { background: var(--card); border: 1px solid rgba(16, 49, 32, .08); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }.card-body { padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat { min-height: 122px; padding: 18px; position: relative; overflow: hidden; }
.stat::after { content: ''; width: 90px; height: 90px; position: absolute; right: -22px; bottom: -32px; border-radius: 50%; background: var(--green-soft); }
.stat-label { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }.stat-value { margin-top: 10px; font-size: 27px; font-weight: 850; letter-spacing: -.03em; }.stat-note { color: var(--muted); font-size: 11px; margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px; }.col-12 { grid-column: span 12; }.col-8 { grid-column: span 8; }.col-6 { grid-column: span 6; }.col-4 { grid-column: span 4; }.col-3 { grid-column: span 3; }.col-2 { grid-column: span 2; }
label { display: block; margin: 0 0 6px; color: #45544c; font-size: 12px; font-weight: 750; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; color: var(--ink); background: white; border: 1px solid #cfd9d2; border-radius: 10px; outline: none; transition: .15s; }
textarea { min-height: 90px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,75,.1); }
.check { display: flex; align-items: center; gap: 8px; }.check input { width: 16px; height: 16px; accent-color: var(--green); }.check label { margin: 0; }
.btn { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; transition: .15s; }
.btn:hover { transform: translateY(-1px); }.btn-primary { color: white; background: var(--green); }.btn-primary:hover { background: var(--green-dark); }.btn-light { color: var(--ink); background: white; border-color: var(--line); }.btn-danger { color: white; background: var(--red); }.btn-warning { color: #5b3900; background: #ffe0a2; }.btn-sm { min-height: 33px; padding: 6px 10px; font-size: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }.filters > div { min-width: 145px; }
.table-wrap { width: 100%; overflow-x: auto; }.table { width: 100%; border-collapse: collapse; }.table th { padding: 12px 14px; color: #67766e; background: #f8faf8; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .055em; }.table td { padding: 13px 14px; border-bottom: 1px solid #edf1ee; vertical-align: middle; }.table tr:last-child td { border-bottom: 0; }.table tr:hover td { background: #fbfdfb; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 750; }.muted { color: var(--muted); }.small { font-size: 12px; }.text-success { color: var(--green); }.text-danger { color: var(--red); }.text-warning { color: var(--amber); }.text-right { text-align: right; }.fw-bold { font-weight: 800; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: capitalize; background: #edf1ee; color: #4d5c54; white-space: nowrap; }.badge-green { background: #daf1e5; color: #087046; }.badge-red { background: #f9dfdd; color: #a32622; }.badge-amber { background: #fff0cf; color: #925900; }.badge-blue { background: #e0edf9; color: #245f99; }
.alert { padding: 13px 15px; margin-bottom: 18px; border-radius: 12px; border: 1px solid; }.alert-success { color: #075f3a; background: #e4f5ec; border-color: #bce3ce; }.alert-danger { color: #8c2823; background: #fcedeb; border-color: #f3c7c3; }.alert ul { margin: 6px 0 0 18px; padding: 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }.empty strong { color: var(--ink); display: block; margin-bottom: 5px; }
.section-title { margin: 4px 0 14px; font-size: 14px; }.divider { height: 1px; background: var(--line); margin: 20px 0; }
.kpi-strip { display: flex; flex-wrap: wrap; gap: 8px; }.kpi-pill { padding: 8px 10px; background: #f3f7f4; border: 1px solid var(--line); border-radius: 10px; }.kpi-pill span { color: var(--muted); font-size: 11px; display: block; }.kpi-pill strong { display: block; margin-top: 3px; }
.status-timeline { position: relative; padding-left: 22px; }.timeline-item { position: relative; padding: 0 0 18px 16px; border-left: 2px solid #dce6df; }.timeline-item::before { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); left: -6px; top: 3px; }.timeline-item:last-child { border-left-color: transparent; }
.pagination { display: flex; gap: 5px; list-style: none; padding: 18px 20px; margin: 0; }.page-link { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; }.page-item.active .page-link { background: var(--green); color: white; }.page-item.disabled { opacity: .45; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 12% 15%, rgba(32,185,120,.24), transparent 28%), linear-gradient(145deg,#052d20,#0a4732); }.login-card { width: min(440px, 100%); padding: 34px; background: rgba(255,255,255,.98); border-radius: 24px; box-shadow: 0 35px 80px rgba(0,0,0,.28); }.login-card h1 { margin: 22px 0 7px; font-size: 28px; }.login-card p { color: var(--muted); margin: 0 0 25px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); }.grid-3 { grid-template-columns: 1fr; }.col-3 { grid-column: span 6; } }
@media (max-width: 820px) { .app-shell { display: block; }.sidebar { position: fixed; left: -275px; z-index: 50; width: 260px; transition: left .2s; }.sidebar.open { left: 0; }.mobile-menu { display: block; }.topbar { padding: 0 18px; }.page { padding: 22px 16px 45px; }.grid-2 { grid-template-columns: 1fr; }.form-grid > * { grid-column: span 12 !important; }.page-head { flex-direction: column; }.user-chip .user-copy { display: none; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; }.page-head h1 { font-size: 23px; }.login-card { padding: 25px; } }
@media print { .sidebar,.topbar,.no-print { display:none!important; }.app-shell{display:block}.page{padding:0}.card{box-shadow:none} }
