:root{--dark: #0e2318;--green: #0b6b37;--lime: #7ac143;--bg: #f4f7f5;--line: #dde7e1;--text: #14241b;--muted: #4a5a52;--white: #ffffff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}h1{margin:0;font-size:26px}h2{margin:0 0 12px;font-size:18px}p{margin:0}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center;padding:64px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.error{color:#a1241c;font-weight:600}.success{color:var(--green);font-weight:600}.topbar{background:var(--dark);color:var(--white);display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 24px}.logo{height:44px;width:138px;object-fit:contain;background:var(--white);border-radius:4px}.topbar-title{flex:1 1 240px;display:flex;flex-direction:column}.topbar-title strong{font-size:18px}.topbar-title span{font-size:13px;color:#b9cdc1}.topbar-user{color:var(--white);font-size:14px}.body{display:flex;flex-wrap:wrap;align-items:flex-start}.sidebar{flex:0 0 230px;background:var(--white);border-right:1px solid var(--line);padding:16px 12px;min-height:calc(100vh - 68px);display:flex;flex-direction:column;gap:12px}.sidebar a{display:block;padding:9px 12px;border-radius:8px;color:var(--text);text-decoration:none;font-size:14px}.sidebar a:hover{background:var(--bg)}.sidebar a.active{background:var(--dark);color:var(--white);font-weight:600}.nav-main{font-weight:600}.nav-heading{padding:4px 12px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.content{flex:999 1 560px;min-width:0;padding:24px;display:flex;flex-direction:column;gap:20px;max-width:1400px}.card{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:20px}.page-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px}.actions{display:flex;flex-wrap:wrap;gap:8px}.toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}.tabs{display:flex;flex-wrap:wrap;gap:8px}.tab{min-height:44px;padding:0 16px;border-radius:8px;border:1px solid #b9cdc1;background:var(--white);color:var(--text);font:inherit;font-weight:600;cursor:pointer}.tab.on{background:var(--dark);border-color:var(--dark);color:var(--white)}.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.kpi{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.kpi-compact{gap:2px}.kpi-label{font-size:14px;color:var(--muted);font-weight:500}.kpi-value{font-size:32px;font-weight:700;line-height:1.1}.kpi-compact .kpi-value{font-size:24px}.kpi-source{align-self:stretch;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px;margin-top:4px}.direction-card{display:flex;flex-direction:column;gap:12px;align-items:flex-start}.direction-card h2{margin:0}.direction-card .btn{margin-top:auto;align-self:stretch}.pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}.pill-ok{background:#e3f4e9;color:#0b6b37}.pill-warn{background:#fff1d6;color:#8a4b00}.pill-late{background:#fde7e5;color:#a1241c}.alert-row,.project-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.alert-row span:last-child{flex:1 1 320px}.project-name{flex:0 0 170px}.project-pct{flex:0 0 150px;font-size:14px}.project-note{flex:1 1 200px;font-size:14px;color:var(--muted)}.bar{flex:1 1 200px;height:10px;background:var(--line);border-radius:999px;overflow:hidden}.bar div{height:10px;background:var(--green)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:640px}th,td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top}th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}td.row-actions{white-space:nowrap;text-align:right;padding-top:3px;padding-bottom:3px}.btn{min-height:44px;padding:0 18px;border-radius:8px;border:1px solid transparent;font:inherit;font-weight:600;cursor:pointer}.btn-primary{background:var(--green);color:var(--white)}.btn-outline{background:var(--white);color:var(--green);border-color:var(--green)}.btn-light{background:transparent;color:var(--white);border-color:#b9cdc1}.btn:disabled{opacity:.6;cursor:default}.link{background:none;border:none;padding:8px;font:inherit;font-weight:600;color:var(--green);cursor:pointer}.link.danger{color:#a1241c}:focus-visible{outline:3px solid var(--lime);outline-offset:2px}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}label.check{flex-direction:row;align-items:center;gap:8px}label.month{font-size:13px}input,select{min-height:44px;padding:8px 12px;border:1px solid #9fb3a8;border-radius:8px;font:inherit;font-weight:400;background:var(--white);color:var(--text)}input[type=checkbox]{min-height:0;width:18px;height:18px}input:disabled,select:disabled{background:var(--bg);color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.form-narrow{max-width:460px;display:flex;flex-direction:column;gap:16px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0e23188c;display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto}.dialog{width:100%;max-width:760px;display:flex;flex-direction:column;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--dark)}.login-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:16px}.login-logo{width:200px;height:64px;object-fit:contain}.login-card h1{font-size:22px}@media (max-width: 760px){.sidebar{flex:1 1 100%;min-height:0;border-right:none;border-bottom:1px solid var(--line)}.content{padding:16px}}
