/* ===== AUTOMAX enhancement layer ===== */
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
td,th,.metric{font-variant-numeric:tabular-nums}
.tablewrap{max-height:68vh}
tbody tr{transition:background .12s}tbody tr:nth-child(even){background:#fafcfe}tbody tr:hover{background:#eef5fd}
tr.am-overdue{box-shadow:inset 3px 0 #c62828;background:#fff6f6!important}
.pill{letter-spacing:.01em}
.pill.am-warn{background:#fef3c7;color:#8a4b00}.pill.am-ok{background:#dcfce7;color:#166534}.pill.am-bad{background:#fee2e2;color:#991b1b}.pill.am-info{background:#e0ecfb;color:#1d4f86}
.am-bar{height:5px;border-radius:99px;background:#e5ecf4;margin-top:6px;min-width:110px;overflow:hidden}.am-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1d5f99,#16794b)}
.am-bar small{display:none}.am-step{font-size:10.5px;color:#64748b;margin-top:3px}
#amBackupBar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10px 14px;border-radius:12px;font-size:13px;margin-bottom:14px;border:1px solid #cfe3d6;background:#eef8f2;color:#17623b}
#amBackupBar.stale{background:#fff4e0;border-color:#f2d19a;color:#7a4700}#amBackupBar.never{background:#fdeaea;border-color:#f3b9b9;color:#8f1d1d}
#amBackupBar button{min-height:32px;padding:6px 12px;font-size:13px}
#amInsights{display:grid;grid-template-columns:1.3fr 1fr;gap:16px;margin-bottom:16px}
#amInsights .panel{margin:0}
.am-row{display:grid;grid-template-columns:150px 1fr 34px;gap:10px;align-items:center;margin:7px 0;font-size:12.5px;cursor:pointer;border-radius:8px;padding:2px 4px}
.am-row:hover{background:#eef5fd}.am-row .t{height:10px;background:#e8eef5;border-radius:99px;overflow:hidden}.am-row .t i{display:block;height:100%;background:var(--blue);border-radius:99px}.am-row b{text-align:right}
.am-fin{display:grid;gap:10px}.am-fin .c{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fbfdff}
.am-fin .c h4{margin:0 0 8px;font-size:13px;color:var(--navy)}.am-fin .l{display:flex;justify-content:space-between;font-size:13px;padding:2px 0}.am-fin .l.out b{color:#b42318}
.am-attn{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.am-attn span{font-size:12px;padding:5px 10px;border-radius:99px;background:#fff4e0;color:#7a4700;border:1px solid #f2d19a}
#amToasts{position:fixed;right:16px;bottom:16px;display:grid;gap:8px;z-index:9999;max-width:min(380px,92vw)}
.am-toast{background:#132b4b;color:#fff;padding:12px 14px;border-radius:12px;box-shadow:0 10px 30px #0b234040;font-size:13px;animation:amIn .2s ease}
@keyframes amIn{from{transform:translateY(8px);opacity:0}to{transform:none;opacity:1}}
.am-kbd{font-size:11px;border:1px solid #cbd5e1;border-bottom-width:2px;border-radius:5px;padding:0 5px;background:#fff;color:#475569}
@media(max-width:900px){#amInsights{grid-template-columns:1fr}.am-row{grid-template-columns:110px 1fr 30px}}
@media print{header,nav,.notice,#amBackupBar,.toolbar,.actions,button,footer,#amToasts{display:none!important}.layout{display:block}.section{display:none!important}.section.active{display:block!important}.tablewrap{max-height:none;overflow:visible}body{background:#fff}}
