:root { --navy:#1f3864; --blue:#2266b4; --line:#d9dee7; --bg:#f6f8fb; --red:#b42318; --amber:#b54708; --green:#067647; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.45 "Segoe UI", Calibri, Arial, sans-serif; color:#1d2433; background:var(--bg); }
.top { display:flex; align-items:center; gap:24px; padding:10px 20px; background:var(--navy); color:#fff; flex-wrap:wrap; }
.brand { font-weight:700; } .brand span { font-weight:400; opacity:.8; margin-left:6px; }
nav a { color:#fff; text-decoration:none; margin-right:14px; opacity:.85; } nav a.active, nav a:hover { opacity:1; text-decoration:underline; }
.who { margin-left:auto; font-size:13px; }
main { max-width:1200px; margin:20px auto; padding:0 16px; }
h1 { font-size:20px; margin:0 0 12px; } h2 { font-size:16px; margin:20px 0 8px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); }
th, td { text-align:left; padding:7px 9px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#eef2f8; font-weight:600; }
tr.overdue td { background:#fdecea; }
.card { background:#fff; border:1px solid var(--line); border-radius:6px; padding:14px 16px; margin-bottom:14px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px 16px; }
.grid div b { display:block; font-size:12px; color:#5b6475; font-weight:600; }
form.inline { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; margin:8px 0; }
label { display:flex; flex-direction:column; font-size:12px; color:#5b6475; gap:3px; }
input, select, textarea { font:inherit; padding:6px 8px; border:1px solid #b9c1cf; border-radius:4px; min-width:160px; }
button { font:inherit; padding:6px 12px; border-radius:4px; border:1px solid var(--blue); background:var(--blue); color:#fff; cursor:pointer; }
button.secondary { background:#fff; color:var(--blue); } button.danger { background:var(--red); border-color:var(--red); }
button.link { background:none; border:none; color:inherit; text-decoration:underline; padding:0; }
.badge { display:inline-block; padding:1px 7px; border-radius:10px; font-size:12px; background:#e8edf5; }
.badge.SPARE { background:#dcfae6; } .badge.DEFECTIVE, .badge.RECOVERY_FAILED { background:#fee4e2; }
.badge.RESERVED { background:#fef0c7; } .badge.RECOVERY_IN_PROGRESS { background:#e0eaff; }
.muted { color:#5b6475; } .warn { color:var(--amber); }
#toast { position:fixed; bottom:20px; right:20px; max-width:420px; padding:10px 14px; border-radius:6px; background:#1d2433; color:#fff; display:none; }
#toast.error { background:var(--red); } #toast.show { display:block; }
