:root { --blue:#1CA5D7; --green:#82CB16; --ink:#1d2733; --muted:#5f6b7a; --line:#e3e8ee; --bg:#f6f8fa; --amber:#b7791f; --red:#c53030; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
a { color:#0b7fae; }
header { background:#fff; border-bottom:1px solid var(--line); }
header .in { max-width:1200px; margin:0 auto; padding:10px 16px; display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.brand { font-weight:700; font-size:18px; color:var(--blue); text-decoration:none; }
.brand span { color:var(--green); }
nav a { text-decoration:none; color:var(--muted); padding:6px 10px; border-radius:6px; }
nav a.on { color:var(--ink); background:#eef6fb; font-weight:600; }
header form { margin-left:auto; display:flex; gap:10px; align-items:center; color:var(--muted); }
main { max-width:1200px; margin:0 auto; padding:20px 16px 60px; }
h1 { font-size:22px; margin:0 0 14px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-size:13px; color:var(--muted); font-weight:600; }
.btn { display:inline-block; border:1px solid var(--line); background:#fff; color:var(--ink); padding:7px 14px; border-radius:7px; cursor:pointer; font:inherit; text-decoration:none; }
.btn.primary { background:var(--blue); border-color:var(--blue); color:#fff; }
.btn.danger { color:var(--red); }
.btn.small { padding:3px 9px; font-size:13px; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
label { display:block; font-size:13px; color:var(--muted); margin-bottom:4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  font:inherit; padding:7px 9px; border:1px solid #cfd7e0; border-radius:7px; background:#fff; min-width:0; }
textarea { width:100%; min-height:70px; }
.flash { background:#eef8e4; border:1px solid #cfe9b3; padding:10px 14px; border-radius:8px; margin-bottom:14px; }
.error { background:#fdecec; border:1px solid #f5c2c2; padding:10px 14px; border-radius:8px; margin-bottom:14px; }
.muted { color:var(--muted); }
.pill { display:inline-block; font-size:12px; padding:2px 8px; border-radius:20px; background:#eef1f4; color:var(--muted); white-space:nowrap; }
.pill.approved { background:#eaf7dc; color:#3f6d0a; }
.pill.pending, .pill.submitted, .pill.partially_approved { background:#fdf3e1; color:var(--amber); }
.pill.rejected { background:#fdecec; color:var(--red); }
.pill.off { background:#e8f4fb; color:#0b6f97; }
.pick { border:1px solid var(--line); border-radius:8px; max-height:280px; overflow:auto; padding:6px 10px; background:#fff; }
.pick label { display:flex; gap:8px; align-items:center; color:var(--ink); font-size:14px; margin:3px 0; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.note { white-space:pre-wrap; }
.login { max-width:380px; margin:60px auto; }
.login input { width:100%; margin-bottom:12px; }
@media (max-width:760px) { .grid2 { grid-template-columns:1fr; } th.hide-sm, td.hide-sm { display:none; } }
