/* Accounts register (/accounts) and the administration page (/).
   Uses the NACA theme tokens from /shared/naca-wa.css. */

.ac-main { width: var(--naca-page-column, calc(100% - 20px)); max-width: none; margin: 0 auto; padding: 24px 0 56px; color: var(--naca-text); display: flex; flex-direction: column; gap: 16px; }
.ac-main > * { margin-top: 0; margin-bottom: 0; }
.naca-scope .ac-main .wa-title { margin: 0 0 6px; }
.ac-crumbs { font-size: 14px; color: var(--naca-muted); }
.ac-crumbs a { font-weight: 600; }
.naca-scope .ac-main > .wa-title { margin: 0; }
.ac-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ac-lead { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--naca-text-secondary); }
.ac-meta { font-size: 15px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-actions .naca-button, .ac-bottom .naca-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; box-sizing: border-box; }
.ac-main .naca-notice { margin: 0; }

.ac-card { background: #fff; border: 1px solid var(--naca-border); border-radius: var(--naca-radius-lg); padding: 18px 20px; }
.ac-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ac-k { font-size: 13px; color: var(--naca-muted); }
.ac-v { font-size: 24px; font-weight: 700; color: var(--naca-navy-deep); line-height: 1.3; }
.ac-v.ac-warn { color: var(--naca-warn-text); }
.ac-sub { font-size: 12.5px; color: var(--naca-muted); line-height: 1.4; }
.ac-soon { color: var(--naca-warn-text); font-weight: 600; }

.ac-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ac-filters[hidden] { display: none; }
.ac-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--naca-text-secondary); }
.ac-grow { flex: 1 1 170px; }
.naca-scope .ac-lbl input, .naca-scope .ac-lbl select { min-height: 40px; box-sizing: border-box; padding: 6px 10px; font-size: 14.5px; border-radius: var(--naca-radius-sm); }

.ac-tablecard { padding: 0; overflow-x: auto; }
.ac-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ac-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--naca-muted); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--naca-border); white-space: nowrap; }
.ac-table td { padding: 11px 12px; border-bottom: 1px solid var(--naca-border); vertical-align: top; }
.ac-table tr:last-child td { border-bottom: none; }
.ac-table tr[hidden] { display: none; }
.ac-svc { font-weight: 600; }
.ac-use { max-width: 260px; }
.ac-nowrap { white-space: nowrap; }
.ac-none { margin: 0; padding: 16px 20px; color: var(--naca-muted); }
.ac-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ac-ok { background: var(--naca-ok-bg); color: var(--naca-ok-text); }
.ac-chk { background: var(--naca-warn-bg); color: var(--naca-warn-text); }
.ac-off { background: var(--naca-surface-alt); color: var(--naca-muted); }
.ac-flag { margin-top: 4px; font-size: 12.5px; color: var(--naca-warn-text); }
.ac-foot { font-size: 13.5px; color: var(--naca-muted); }

/* One account */
.ac-form { display: flex; flex-direction: column; gap: 16px; }
.ac-sec { padding: 22px 24px; }
.naca-scope .ac-sec h2 { margin: 0 0 4px; font-size: 18px; color: var(--naca-navy-deep); }
.ac-intro { margin: 0 0 16px; font-size: 14px; color: var(--naca-muted); }
.ac-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.ac-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ac-wide { grid-column: 1 / -1; }
.ac-f > label, .ac-l { font-weight: 600; font-size: 14px; color: var(--naca-heading); }
.ac-static { margin: 0; min-height: 40px; display: flex; align-items: center; font-size: 15px; color: var(--naca-text); }
.naca-scope .ac-f input:not([type="checkbox"]), .naca-scope .ac-f select, .naca-scope .ac-f textarea {
  width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 10px; font-size: 15px; border-radius: var(--naca-radius-sm); }
.naca-scope .ac-f textarea { line-height: 1.5; resize: vertical; }
.naca-scope .ac-f input[type="url"], .naca-scope .ac-f input[type="date"] { font-family: inherit; color: var(--naca-text); background: var(--naca-surface); border: 1px solid var(--naca-border-strong); }
.naca-scope .ac-f :disabled { background: var(--naca-surface-alt); color: var(--naca-text); }
.ac-f input:focus-visible, .ac-f select:focus-visible, .ac-f textarea:focus-visible { outline: 2px solid var(--naca-navy); outline-offset: 1px; }
.naca-scope .ac-f .ac-warnbox { border: 2px solid var(--naca-gold); background: var(--naca-warn-bg); }
.ac-nolabel .ac-f > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ac-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--naca-muted); }
.ac-hintwarn { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--naca-warn-text); }
.ac-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; min-height: 32px; }
.ac-check input { width: 18px; height: 18px; }
.ac-secure { margin-top: 16px; padding: 12px 14px; border-radius: var(--naca-radius-md); background: var(--naca-ok-bg); border: 1px solid var(--naca-ok-border); color: var(--naca-ok-text); font-size: 14px; }
.ac-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.ac-files { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.ac-linkbtn { font: inherit; font-size: 13.5px; color: var(--naca-navy); background: none; border: none; text-decoration: underline; cursor: pointer; padding: 0 4px; }
.ac-drop { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 2px dashed var(--naca-border-strong); border-radius: var(--naca-radius-md); font-size: 14px; color: var(--naca-text-secondary); }
.ac-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--naca-text-secondary); }
.ac-when { color: var(--naca-muted); }

@media screen and (max-width: 760px) {
  .ac-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .naca-site-header, .naca-site-footer, footer, .ac-actions, .ac-filters, .ac-crumbs, .ac-bottom, .naca-back, .ac-drop, .ac-linkbtn { display: none !important; }
  .ac-main { max-width: none; width: 100%; padding: 0; }
  .ac-card { border-color: #bbb; break-inside: avoid; }
  .ac-tablecard { overflow: visible; }
  .ac-table tr { break-inside: avoid; }
}

/* Board calendar (/calendar): a month of the register's due dates */
.cal-cols { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cal-side { flex: 1 1 250px; max-width: 300px; display: flex; flex-direction: column; gap: 14px; }
.cal-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.naca-scope .cal-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--naca-muted); }
.cal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--naca-border-strong); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: var(--naca-heading); cursor: pointer; }
.cal-chip[aria-pressed="true"] { background: var(--naca-navy); border-color: var(--naca-navy); color: #fff; font-weight: 600; }
.cal-f { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; }
.cal-f label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.cal-f input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--naca-navy); }
.cal-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--naca-border); }
.cal-only { border: 0; background: none; padding: 6px; font: inherit; font-size: 13px; font-weight: 600; color: var(--naca-navy); cursor: pointer; }
.cal-only:hover { text-decoration: underline; }
.cal-sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.cal-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.naca-scope .cal-title { margin: 0; min-width: 190px; text-align: center; font-size: 20px; color: var(--naca-heading); }
.cal-nav, .cal-nav-off { min-width: 44px; justify-content: center; }
.cal-nav-off { display: inline-block; height: 44px; }
.cal-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 720px; background: #fff; border-left: 1px solid var(--naca-border); border-top: 1px solid var(--naca-border); border-radius: 10px; overflow: hidden; }
.cal-dh { padding: 8px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--naca-muted); background: var(--naca-surface-alt); border-right: 1px solid var(--naca-border); border-bottom: 1px solid var(--naca-border); }
.cal-d { min-height: 112px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--naca-border); border-bottom: 1px solid var(--naca-border); }
.cal-out { background: #fafbfc; }
.cal-n { font-size: 13px; font-weight: 600; padding: 2px 4px; }
.cal-today .cal-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--naca-navy); color: #fff; }
a.cal-ev, a.cal-ev:link, a.cal-ev:visited { display: block; padding: 3px 7px; border-radius: 6px; font-size: 12.5px; line-height: 1.35; font-weight: 600; text-decoration: none; }
a.cal-ev:hover, a.cal-ev:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
a.cal-ev[hidden] { display: none; }
.cal-ev small { display: block; font-weight: 400; font-size: 12px; }
/* Group colors: each differs in lightness as well as hue */
.cal-sw.cal-software { background: #2f6bb8; } a.cal-ev.cal-software { background: #e3ecf8; color: #1d3f73; }
.cal-sw.cal-tax { background: #c77a00; } a.cal-ev.cal-tax { background: #fdebc8; color: #6e3d00; }
.cal-sw.cal-insurance { background: #138a6c; } a.cal-ev.cal-insurance { background: #dff3ee; color: #0b5a46; }
.cal-sw.cal-finance { background: #6a55b5; } a.cal-ev.cal-finance { background: #ebe6f7; color: #3f2f7a; }
.cal-sw.cal-other { background: #7b8594; } a.cal-ev.cal-other { background: #eceff3; color: #3b4554; }
.cal-sw.cal-review { background: #fff; border: 2px dashed #5b6675; box-sizing: border-box; } a.cal-ev.cal-review { background: #fff; color: #13243d; border: 1px dashed #5b6675; }
@media print { .cal-side, .cal-bar .naca-button { display: none; } .cal-grid { min-width: 0; } }
