/* THIS IS FLORIDA: Free Kids Allowance Tracker */
.al-printhead { display: none; }
.al-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.al-empty { border: 2px dashed var(--line); border-radius: .6rem; padding: 1.2rem; text-align: center; background: var(--card); max-width: 640px; }
.al-pick { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .8rem; font-weight: 700; }
.al-pick select { min-height: 44px; min-width: 12rem; padding: .4rem .6rem; border: 1px solid #8fa79c; border-radius: .4rem; font: inherit; background: #fff; color: var(--ink); }
.al-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 900px; }
.al-card { border: 1px solid var(--line); border-top: 6px solid var(--brand); border-radius: .6rem; background: var(--card); padding: .55rem .8rem; }
.al-card span { display: block; font-weight: 700; color: var(--muted); font-size: .95rem; }
.al-card strong { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.al-spend { border-top-color: #1f5fa8; }
.al-save { border-top-color: #1b6b4f; }
.al-give { border-top-color: #a8296a; }
.al-total { border-top-color: #4a5f58; }
.al-allow { margin: .6rem 0; color: var(--muted); }
.al-warn, .al-err { color: var(--danger); font-weight: 700; margin: .2rem 0; }
.al-err:empty { display: none; }
.al-goal { max-width: 900px; margin: 0 0 1rem; }
.al-goal-t { margin: .2rem 0 .35rem; }
.al-bar { height: 18px; border-radius: 999px; background: #e3ebe7; border: 1px solid var(--line); overflow: hidden; }
.al-bar span { display: block; height: 100%; background: var(--brand); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.al-forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 1rem; max-width: 1100px; }
.al-quick { display: grid; gap: 0 .6rem; }
.al-quick button { margin: .3rem 0 0; }
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
.al-h2 { font-size: 1.2rem; margin: 1rem 0 .4rem; }
.al-scroll { overflow-x: auto; max-width: 100%; position: relative; }
.al-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.al-table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--card); font-size: .95rem; }
.al-table th, .al-table td { border-bottom: 1px solid var(--line); padding: .35rem .5rem; text-align: left; vertical-align: middle; }
.al-table thead th { background: #e6f2ec; white-space: nowrap; }
.al-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-note { display: block; color: var(--muted); font-size: .85rem; }
.al-where { display: block; color: var(--muted); font-size: .8rem; }
.al-in { color: var(--good); font-weight: 700; }
.al-out { color: var(--danger); font-weight: 700; }
.al-neg { color: var(--danger); }
.app button.al-del { padding: .3rem .7rem; }
.al-kids fieldset { max-width: 760px; }
.al-addrow { display: grid; grid-template-columns: 1fr auto; gap: 0 .8rem; align-items: end; }
.al-addrow .add { margin: .55rem 0; }
.al-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.al-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .8rem; }
.editor label.al-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.editor label.al-check input { width: 24px; height: 24px; min-height: 0; margin: 0; flex: 0 0 24px; accent-color: var(--brand); }
.al-kid > button { margin-top: .5rem; }
@media (max-width: 900px) { .al-forms { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .al-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .al-grid, .al-two { grid-template-columns: 1fr; }
  .al-three label { font-size: .9rem; }
}
@media print {
  body[data-print="ledger"] #panel-ledger { display: block !important; }
  body[data-print="ledger"] .al-printhead { display: block; }
  .al-printhead h2 { margin: 0; font-size: 1.4rem; }
  .al-printhead p { margin: 0 0 .5rem; font-size: .8rem; color: #444; }
  body[data-print] .al-forms, body[data-print] .al-pick { display: none !important; }
  body[data-print] .al-cards { grid-template-columns: repeat(4, 1fr); }
  body[data-print] .al-card { padding: .3rem .6rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body[data-print] .al-card strong { font-size: 1.15rem; }
  body[data-print] .al-scroll { overflow: visible; }
  body[data-print] .al-table { min-width: 0; font-size: .82rem; }
  body[data-print] .al-table th, body[data-print] .al-table td { padding: .15rem .35rem; }
  body[data-print] .al-table tr { break-inside: avoid; }
}
