/* Old-fashioned on purpose, blue and white: square frames, no shadows, no rounding, no animation. */
:root {
  --navy: #0a246a; --link: #1f4ea0; --frame: #7f9db9; --line: #c3d3e8; --head: #dce6f4; --zebra: #f3f7fc; --sel: #316ac5;
}
* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; background: #fff; color: #000; font: 12px/1.45 Tahoma, Verdana, "Segoe UI", Arial, sans-serif; }
body { padding-bottom: 28px; }
a { color: var(--link); }

.titlebar { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; background: var(--navy); color: #fff; font-weight: bold; }
.titlebar #user, .titlebar a { font-weight: normal; }
.titlebar a { color: #fff; }
.login { max-width: 420px; margin: 24px; }

.tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: var(--head); border-bottom: 1px solid var(--frame); }
.tabs button { margin-bottom: -1px; padding: 3px 14px; font: inherit; color: var(--navy); background: #c6d5ea; border: 1px solid var(--frame); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #fff; border-bottom-color: #fff; font-weight: bold; }

.layout { display: grid; grid-template-columns: minmax(320px, 2fr) 3fr; gap: 8px; padding: 8px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

table.grid { width: 100%; border-collapse: collapse; border: 1px solid var(--frame); background: #fff; }
.grid th, .grid td { padding: 3px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { background: var(--head); color: var(--navy); border-color: var(--frame); white-space: nowrap; }
.grid tbody tr:nth-child(even) td { background: var(--zebra); }
.grid tbody tr[data-id] { cursor: pointer; }
.grid tbody tr.sel td { background: var(--sel); color: #fff; }
.grid tbody tr[data-id]:focus { outline: 1px dotted #000; outline-offset: -3px; }
.grid .num { text-align: right; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

fieldset { margin: 0 0 8px; padding: 6px 10px 10px; border: 1px solid var(--frame); }
fieldset.proposal { border: 2px solid var(--navy); }
legend { padding: 0 4px; color: var(--navy); font-weight: bold; }
p { margin: 4px 0; }
.facts { border-collapse: collapse; }
.facts th { padding: 1px 12px 1px 0; color: #333; font-weight: normal; text-align: left; white-space: nowrap; }
.facts td { padding: 1px 28px 1px 0; font-weight: bold; }
.target { margin: 2px 0 6px; font-size: 14px; font-weight: bold; color: var(--navy); }
.notice { padding: 4px 8px; border: 1px solid var(--frame); background: var(--zebra); font-weight: bold; }
.form th { padding: 2px 10px 2px 0; text-align: left; font-weight: normal; }

.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn { padding: 3px 14px; font: inherit; color: #000; background: #e3eaf5; border: 2px outset #b8c8e0; cursor: pointer; white-space: nowrap; }
.btn:active { border-style: inset; }
.btn.primary { color: #fff; background: var(--navy); border-color: #3a5aa8; font-weight: bold; }
.btn:disabled { color: #8a97ad; cursor: default; }
.btn.primary:disabled { color: #b8c4dc; }
select { min-width: 280px; padding: 2px; font: inherit; background: #fff; border: 1px solid var(--frame); }
.btn:focus-visible, .tabs button:focus-visible, select:focus-visible, a:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
input[type="number"] { width: 90px; padding: 2px; font: inherit; text-align: right; background: #fff; border: 1px solid var(--frame); }
input:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
#split .grid select { min-width: 0; width: 100%; }
.over { color: #a00000; }

.statusbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 3px 8px; background: var(--head); border-top: 1px solid var(--frame); }
.statusbar.err { color: #a00000; font-weight: bold; }
.message { margin: 24px; padding: 8px 12px; border: 1px solid var(--frame); background: var(--zebra); }
