/* Silverio & Hall Client Upload Portal. Same brand tokens as the Registrar
   (grey wordmark, blue ampersand, Roboto Slab, from silveriohall.com). */
:root {
  --brand: #2aace2; --brand-dark: #1a8fc0; --brand-bg: #eaf6fc;
  --ink: #222; --text: #3a3f45; --muted: #727272; --line: #dfe3e7; --bg: #f4f6f8; --card: #fff;
  --green: #2F9E6B; --green-bg: #e9f6ef; --red: #b4483c; --red-bg: #fbe9e7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; display: flex; flex-direction: column; min-height: 100vh; }
h1, h2, .slab { font-family: "Roboto Slab", Georgia, serif; }
header { background: #fff; border-bottom: 3px solid var(--brand); }
.head-in { max-width: 760px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 18px; }
.head-in img { height: 40px; width: auto; display: block; }
.head-in .divider { width: 1px; height: 30px; background: var(--line); }
.head-in .product { font-family: "Roboto Slab", Georgia, serif; font-size: 17px; color: var(--ink); font-weight: 600; }
.head-in .product span { color: var(--brand); }
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px 84px; }
footer { border-top: 1px solid var(--line); background: #fff; }
.foot-in { max-width: 760px; margin: 0 auto; padding: 14px 20px; font-size: 12px; color: var(--muted); display: flex; justify-content: center; gap: 10px; }
.foot-in b { color: #003863; font-weight: 700; }
.foot-in .sep { color: var(--line); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-body { padding: 18px; }
.panel-body h2.greeting { margin: 0 0 10px; font-size: 20px; }
.panel-body p { line-height: 1.55; margin: 0 0 10px; }
.panel-body p:last-child { margin-bottom: 0; }
.fine-print { font-size: 12.5px; color: var(--muted); }
.empty { padding: 30px 22px; text-align: center; }
.empty h2 { margin: 0 0 8px; font-size: 19px; }
.empty p { color: var(--muted); margin: 0; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field input[type="text"] { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 14px; color: var(--ink); }
.field input[type="text"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.error-text { color: var(--red); font-size: 13px; margin: 14px 0 0; }

button { font-family: inherit; font-size: 13px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
button.primary:hover { background: var(--brand-dark); }
button:disabled { opacity: .6; cursor: default; }

.drop-zone { border: 2px dashed var(--line); border-radius: 10px; padding: 34px 20px; text-align: center; }
.drop-zone.drag { border-color: var(--brand); background: var(--brand-bg); }
.drop-zone-text { color: var(--muted); margin-bottom: 12px; }

.upload-list { margin-top: 14px; }
.upload-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f2f4; font-size: 13px; }
.upload-row:last-child { border-bottom: 0; }
.upload-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.upload-row .bar { width: 120px; height: 6px; border-radius: 999px; background: #eef2f5; overflow: hidden; flex: none; }
.upload-row .bar div { height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.upload-row .state { flex: none; font-size: 12px; white-space: nowrap; }
.upload-row .state.ok { color: var(--green); }
.upload-row .state.err { color: var(--red); }

table.hist { width: 100%; border-collapse: collapse; }
table.hist th, table.hist td { text-align: left; padding: 9px 16px; border-bottom: 1px solid #f0f2f4; font-size: 13px; }
table.hist th { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
table.hist tr:last-child td { border-bottom: 0; }
table.hist td.num { text-align: right; color: var(--muted); white-space: nowrap; }
.hist-empty { padding: 22px 16px; color: var(--muted); font-size: 13px; }

/* Two boxes side by side, stacking when the screen is narrow. */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.hist td.st { white-space: nowrap; color: var(--muted); }
.hist td.st.received { color: var(--green); }
.hist td.st.not_accepted { color: var(--red); white-space: normal; }
