:root{font-family:Segoe UI,system-ui,sans-serif;color:#0f172a;background:#f1f5f9}*{box-sizing:border-box}body{margin:0}.layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0f766e,#115e59);color:#fff;padding:24px 16px}.sidebar h1,.sidebar-brand{font-size:1.05rem;margin:0 0 24px;line-height:1.3}.sidebar-brand{display:flex;align-items:center;gap:10px}.sidebar-logo{width:36px;height:36px;border-radius:8px;flex-shrink:0;background:#000}.sidebar nav a{display:block;color:#ffffffeb;text-decoration:none;padding:10px 12px;border-radius:8px;margin-bottom:6px}.sidebar nav a.active,.sidebar nav a:hover{background:#ffffff29}.content{padding:24px}.card{background:#fff;border-radius:16px;padding:20px;box-shadow:0 8px 24px #0f766e14}.card.login{max-width:420px;margin:10vh auto}.login-brand{display:flex;align-items:center;gap:12px;margin-top:0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:20px}.stat{background:#f0fdfa;border:1px solid #99f6e4;border-radius:12px;padding:14px}.stat .label{font-size:12px;color:#0f766e;font-weight:600}.stat .value{font-size:22px;font-weight:800;margin-top:4px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px 8px;border-bottom:1px solid #e2e8f0;vertical-align:top}th{font-size:12px;text-transform:uppercase;color:#64748b}button,.btn{background:#0f766e;color:#fff;border:none;border-radius:8px;padding:8px 14px;cursor:pointer;font:inherit}button.secondary{background:#e2e8f0;color:#0f172a}button.danger{background:#b91c1c}input,select,textarea{padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;width:100%;font:inherit;margin-bottom:10px}.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}.row>*{flex:1;min-width:140px}.error{color:#b91c1c}.muted{color:#64748b;font-size:13px}.pill{display:inline-block;padding:2px 8px;border-radius:999px;background:#ecfdf5;color:#065f46;font-size:12px;font-weight:700}.pill.warn{background:#fff7ed;color:#9a3412}.pill.danger{background:#fef2f2;color:#991b1b}.field{display:block;margin-bottom:10px;font-size:13px;color:#334155}.field textarea,.field input{display:block;width:100%;margin-top:4px}.filter-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.filter-tab{background:#e2e8f0;color:#0f172a;border:1px solid transparent;border-radius:999px;padding:8px 14px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:8px}.filter-tab.active{background:#0f766e;color:#fff}.filter-tab-count{display:inline-block;min-width:1.5em;padding:1px 7px;border-radius:999px;font-size:12px;font-weight:700;background:#0f172a1f}.filter-tab.active .filter-tab-count{background:#ffffff38}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chart-title{font-weight:700;margin-bottom:8px}.chart-legend{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:14px;font-size:13px;color:#475569}.chart-legend .swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px}.bar-chart{display:flex;align-items:flex-end;gap:4px;overflow-x:auto;padding-bottom:4px}.bar-col{flex:1 0 28px;min-width:28px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.bar-stack{display:flex;align-items:flex-end;justify-content:center;width:100%;flex:1}.bar-stack.grouped{gap:2px}.bar{width:70%;max-width:22px;border-radius:4px 4px 0 0;min-height:2px}.bar.thin{width:6px;max-width:8px}.bar-value{font-size:10px;color:#64748b;line-height:1.2;margin-top:2px;min-height:12px}.bar-label{font-size:10px;color:#94a3b8;margin-top:2px;white-space:nowrap}.table-scroll{overflow-x:auto}@media (max-width: 900px){.layout,.detail-grid{grid-template-columns:1fr}}
