:root {
  --orange: #ff6f00; --orange-dark: #e65100; --gold: #d4af37;
  --bg: #f8fafc; --card: #ffffff; --border: rgba(0,0,0,.08);
  --text: #1e293b; --muted: #64748b;
  --good: #2e7d32; --warn: #b26a00; --bad: #c62828;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.5; }
main { max-width: 1400px; margin: 0 auto; padding: 20px 16px 60px; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; }
h1 { font-size: 24px; margin-bottom: 4px; }
h2 { font-size: 18px; color: var(--orange-dark); margin: 24px 0 10px; }
.sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

nav { background: #fff; border-bottom: 2px solid var(--orange); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: 'Outfit'; }
.brand .logo { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.links { display: flex; gap: 4px; flex-wrap: wrap; }
.links a { text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: 13px; }
.links a:hover { background: rgba(255,111,0,.08); color: var(--orange-dark); }
.links a.muted { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.03); margin-bottom: 16px; }
.grid { display: grid; gap: 14px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.flash { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

table { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
.twrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
th { background: var(--orange); color: #fff; padding: 7px 8px; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
th.sub { background: #ffe0b2; color: #7a3c00; }
td { padding: 6px 8px; border-top: 1px solid var(--border); white-space: nowrap; text-align: right; }
td.l, th.l { text-align: left; }
td.wrap { white-space: normal; min-width: 220px; max-width: 420px; text-align: left; font-size: 12px; color: #374151; }
tr.total td { background: #fff3e0; font-weight: 700; }
tr:hover td { background: #fffaf5; }
tr.total:hover td { background: #ffe9cc; }
.sticky-col { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 2px 0 3px rgba(0,0,0,.04); }
tr:hover .sticky-col { background: #fffaf5; }

.pct { font-weight: 700; padding: 2px 7px; border-radius: 10px; font-size: 12px; display: inline-block; min-width: 42px; text-align: center; }
.pct.good { background: #e8f5e9; color: var(--good); }
.pct.warn { background: #fff8e1; color: var(--warn); }
.pct.bad { background: #ffebee; color: var(--bad); }
.pct.na { background: #eceff1; color: var(--muted); }
.neg { color: var(--bad); }
.gap-neg { color: var(--good); }

.btn { display: inline-block; background: var(--orange); color: #fff; border: none; padding: 8px 16px; border-radius: 9px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 13px; font-family: 'Inter'; }
.btn:hover { background: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--orange-dark); border: 1px solid var(--orange); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #ef9a9a; }

input, select, textarea { font-family: 'Inter'; font-size: 13px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(255,111,0,.35); border-color: var(--orange); }
input.num { width: 110px; text-align: right; }
textarea { width: 100%; min-height: 44px; resize: vertical; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }

.ind-card { border-left: 4px solid var(--orange); }
.ind-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ind-head h3 { font-size: 15px; }
.kpis { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.kpis b { color: var(--text); font-size: 13px; }

.unit-card { display: block; text-decoration: none; color: var(--text); }
.unit-card:hover { border-color: var(--orange); }
.unit-card .big { font-family: 'Outfit'; font-size: 18px; font-weight: 700; }
.progress { height: 8px; background: #eee; border-radius: 6px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--gold)); }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
.login-box { max-width: 380px; margin: 80px auto; text-align: center; }
.login-box .logo-big { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Outfit'; font-weight: 800; font-size: 30px; margin: 0 auto 14px; }
.badge { font-size: 11px; background: rgba(255,111,0,.1); color: var(--orange-dark); border: 1px solid rgba(255,111,0,.3); padding: 2px 10px; border-radius: 12px; font-weight: 600; }
