:root {
  --navy: #0b1e4d; --blue: #2f5de3; --gray: #6b7280; --line: #e5e7eb;
  --ok: #1a7f37; --warn: #9a6700; --held: #b3261e; --bg-ok: #eaf7ee; --bg-warn: #fff6e5; --bg-held: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111827; background: #f7f8fb; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; background: var(--navy); color: #fff; }
.topbar .brand { color: #fff; text-decoration: none; font-weight: 600; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
h1 { margin-top: 0; }
.muted { color: var(--gray); }
.error { color: var(--held); background: var(--bg-held); padding: 10px 14px; border-radius: 6px; }
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input[type=password], input[type=file], select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.login-box { max-width: 380px; margin: 60px auto; background: #fff; padding: 28px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin-top: 18px; }
legend { padding: 0 6px; font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.checkbox input { width: auto; }
button, .btn { display: inline-block; background: var(--blue); color: #fff; border: none; padding: 10px 18px; border-radius: 6px; font-size: 15px; cursor: pointer; text-decoration: none; margin-top: 18px; }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.link-btn { background: none; border: none; color: #fff; text-decoration: underline; cursor: pointer; font-size: 14px; }
.inline { display: inline; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row .btn { margin-top: 0; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: #f3f4f6; }
.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-ok .badge, .status-ok { color: var(--ok); }
.status-ok .badge { background: var(--bg-ok); }
.status-warn .badge, .status-warn { color: var(--warn); }
.status-warn .badge { background: var(--bg-warn); }
.status-held .badge, .status-held { color: var(--held); }
.status-held .badge { background: var(--bg-held); }
.notes ul, .file-infos, .issue-box ul { margin: 4px 0; padding-left: 18px; }
.notes li { margin-bottom: 3px; }
.issue-box { background: var(--bg-held); color: var(--held); padding: 12px 16px; border-radius: 8px; }
.file-infos { color: var(--gray); font-size: 13px; }
.invoice-block { margin-top: 30px; }
.result-header { background: #fff; padding: 18px 20px; border-radius: 10px; margin-bottom: 10px; }
.recent-list { padding-left: 18px; }
