/* Tracker Page Specific Styles */

}

/* toolbar */
.toolbar{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:18px}
.search{flex:1 1 220px; min-width:180px; display:flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--rule); border-radius:999px; padding:8px 14px}
.search input{flex:1; background:none; border:0; outline:none; color:var(--ink); font:inherit; font-size:14px}
.search svg{
  color:var(--meta);
  flex-shrink:0;
  width: 18px;
  height: 18px;
  display: block;
}
.btn{font:inherit; font-size:13px; font-weight:600; padding:8px 14px; border-radius:8px; border:1px solid var(--rule); background:var(--panel); color:var(--ink-2); cursor:pointer; display:inline-flex; align-items:center; gap:7px; transition:background .12s}
.btn:hover{background:var(--panel-2); color:var(--ink)}
.btn.primary{background:var(--m2); color:#fff; border-color:var(--m2)}
.btn.primary:hover{filter:brightness(1.05); color:#fff}
.btn.danger:hover{background:var(--neg-soft); color:var(--neg); border-color:var(--neg)}
.btn svg{
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: block;
}

/* KPI */
.kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:0; background:var(--panel); border:1px solid var(--rule); border-radius:10px; overflow:hidden; box-shadow:var(--shadow); margin-bottom:20px}
.kpis div{padding:16px 18px; border-right:1px solid var(--rule); position:relative}
.kpis div:last-child{border-right:0}
.kpis .k{font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--meta); font-weight:700}
.kpis .v{font-size:28px; font-weight:700; letter-spacing:-.02em; line-height:1.15; margin-top:2px}
.kpis .v small{font-size:13px; color:var(--ink-3); font-weight:500}
.kpis div::before{content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; background:var(--c)}
.kpis div:nth-child(1){--c:var(--m3)}.kpis div:nth-child(2){--c:var(--pos)}.kpis div:nth-child(3){--c:var(--neg)}.kpis div:nth-child(4){--c:var(--warn)}
@media(max-width:720px){.kpis{grid-template-columns:repeat(2,1fr)} .kpis div:nth-child(-n+2){border-bottom:1px solid var(--rule)} .kpis div:nth-child(2n){border-right:0}}

.tablecard{background:var(--panel); border:1px solid var(--rule); border-radius:10px; box-shadow:var(--shadow); overflow:hidden}
.table-scroll{overflow-x:auto}
table{width:100%; border-collapse:collapse; font-size:13.5px; min-width:900px}
thead th{position:sticky; top:0; background:var(--panel-2); color:var(--ink-2); font-weight:600; text-align:left; padding:11px 12px; border-bottom:1px solid var(--rule); font-size:10.5px; letter-spacing:.09em; text-transform:uppercase; white-space:nowrap; z-index:2}
tbody td{padding:8px 12px; border-bottom:1px solid var(--rule-2); vertical-align:middle}
tbody tr:hover{background:var(--rule-2)}
tbody tr:last-child td{border-bottom:0}
td.id{font-weight:700; color:var(--ink-2)}
td.title{max-width:280px; font-weight:500}
td.title small{display:block; color:var(--ink-3); font-size:11px}
.chip-sm{display:inline-block; font-size:10px; padding:1px 7px; border-radius:3px; font-weight:600; background:var(--m1-soft); color:var(--m1)}
.chip-sm.m2{background:var(--m2-soft); color:var(--m2)} .chip-sm.m3{background:var(--m3-soft); color:var(--m3)}
input.cell{width:74px; padding:6px 8px; border:1px solid var(--rule); border-radius:6px; background:var(--ground); color:var(--ink); font:inherit; font-size:13px; text-align:right; font-variant-numeric:tabular-nums}
input.cell:focus{outline:2px solid var(--focus); outline-offset:-1px; border-color:var(--focus)}
input.note{width:100%; min-width:120px; text-align:left}
.target{font-weight:700; color:var(--ink-2)}
.actual{font-weight:700; font-variant-numeric:tabular-nums}
.status{display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; padding:3px 10px; border-radius:999px; white-space:nowrap}
.status.pass{background:var(--pos-soft); color:var(--pos)}
.status.fail{background:var(--neg-soft); color:var(--neg)}
.status.none{background:var(--rule-2); color:var(--ink-3)}
.mini-track{width:64px; height:7px; background:var(--rule-2); border-radius:4px; overflow:hidden; display:inline-block; vertical-align:middle; margin-right:8px}
.mini-fill{height:100%; border-radius:4px}
.saved-tag{font-size:11.5px; color:var(--pos); font-weight:600; display:inline-flex; align-items:center; gap:5px; opacity:0; transition:opacity .3s}
.saved-tag.show{opacity:1}
.foot{margin-top:24px; font-size:12px; color:var(--meta); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--rule)}
input[type=file]{display:none}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
