/* LedgerVault is a separate product (~/Documents/ATAS/ledger-vault). Its screens use its own tokens
   (ledger-vault/resources/css/app.css) and system font, never the Cashbook kit, so leaving Cashbook
   looks like leaving Cashbook. Copied from the PRD-101 prototype and extended for PRD-119. The concept screens keep their own copy in concepts/_lv.css. */
.lv { position: fixed; inset: 0; z-index: 70; overflow-y: auto;
  --lv-bg: hsl(0 0% 96%); --lv-fg: hsl(222.2 84% 4.9%); --lv-card: hsl(0 0% 100%); --lv-muted: hsl(0 0% 92%);
  --lv-muted-fg: hsl(0 0% 40%); --lv-accent: hsl(0 0% 94%); --lv-border: hsl(0 0% 88%); --lv-destructive: hsl(0 84.2% 60.2%);
  --lv-xero: #13B5EA; --lv-green: #0f5c34; --lv-green-2: #2db870; --cb-blue: #00a1e2;
  background: var(--lv-bg); color: var(--lv-fg); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
.lv * { box-sizing: border-box; }
.lv-col { display: flex; min-height: 100vh; flex-direction: column; }
.lv-nav { border-bottom: 1px solid var(--lv-border); background: var(--lv-card); }
.lv-nav-in { margin: 0 auto; display: flex; height: 3.5rem; max-width: 80rem; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.lv-brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: inherit; }
.lv-brand-name { font-size: 1rem; font-weight: 600; }
.lv-navlinks { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
.lv-navlink { border-radius: .375rem; padding: .375rem .75rem; font-size: .875rem; color: var(--lv-muted-fg); background: none; border: 0; cursor: pointer; font-family: inherit; }
.lv-navlink[data-active='true'] { background: var(--lv-muted); font-weight: 500; color: var(--lv-fg); }
.lv-main { margin: 0 auto; width: 100%; max-width: 80rem; flex: 1; padding: 2rem 1.5rem; }
.lv-foot { border-top: 1px solid var(--lv-border); background: var(--lv-card); }
.lv-foot-in { margin: 0 auto; display: flex; max-width: 80rem; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.5rem; font-size: .75rem; color: var(--lv-muted-fg); }
.lv-panel { border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .75rem; }
.lv-panel > table thead th:first-child { border-top-left-radius: .75rem; } .lv-panel > table thead th:last-child { border-top-right-radius: .75rem; }
.lv-panel > .lv-pager { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
.lv-title { font-weight: 600; line-height: 1; }
.lv-muted { color: var(--lv-muted-fg); }
.lv-btn { display: inline-flex; cursor: pointer; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; border-radius: .375rem; height: 2.25rem; padding: 0 1rem; font-size: .875rem; font-weight: 500; font-family: inherit; border: 0; }
.lv-btn:disabled { pointer-events: none; opacity: .5; }
.lv-btn-default { background: var(--lv-fg); color: #fff; }
.lv-btn-outline { border: 1px solid var(--lv-border); background: var(--lv-card); color: var(--lv-fg); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.lv-btn-outline:hover { background: var(--lv-accent); }
.lv-btn-ghost { background: transparent; color: var(--lv-fg); }
.lv-btn-ghost:hover { background: var(--lv-accent); }
.lv-btn-sm { height: 2rem; padding: 0 .75rem; font-size: .8125rem; }
.lv-btn-icon { width: 2.25rem; padding: 0; }
.lv-btn-cashbook { background: var(--cb-blue); color: #fff; }
.lv-btn-cashbook:hover { background: #0090cb; }
.lv-xero { display: inline-flex; cursor: pointer; align-items: center; gap: .5rem; border-radius: .375rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; color: #fff; background: var(--lv-xero); border: 0; font-family: inherit; }
.lv-badge { display: inline-flex; width: fit-content; align-items: center; gap: .25rem; border-radius: 9999px; padding: .125rem .5rem; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.lv-badge-connected { background: #dcfce7; color: #15803d; }
.lv-badge-expired { background: #fef3c7; color: #b45309; }
.lv-badge-muted { background: var(--lv-muted); color: hsl(0 0% 33%); }
.lv-badge-cashbook { background: #e0f2fe; color: #0369a1; }
.lv-badge-failed { background: #fee2e2; color: #b91c1c; }
.lv-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.lv-table th { height: 2.5rem; padding: 0 1rem; text-align: left; font-weight: 500; color: var(--lv-muted-fg); white-space: nowrap; }
.lv-table td { padding: .75rem 1rem; border-top: 1px solid var(--lv-border); vertical-align: middle; }
.lv-table tr[data-selected='true'] td { background: #f0f9ff; }
.lv-table tr.lv-pick { cursor: pointer; }
.lv-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-input { height: 2.25rem; border: 1px solid var(--lv-border); border-radius: .375rem; padding: 0 .75rem; font-size: .875rem; background: var(--lv-card); color: var(--lv-fg); font-family: inherit; }
.lv-check { width: 1rem; height: 1rem; accent-color: var(--lv-fg); cursor: pointer; }
.lv-tabs { display: inline-flex; gap: .25rem; border: 1px solid var(--lv-border); border-radius: .5rem; padding: .25rem; background: var(--lv-card); }
.lv-tab { border: 0; background: transparent; border-radius: .375rem; padding: .375rem .75rem; font-size: .8125rem; color: var(--lv-muted-fg); cursor: pointer; font-family: inherit; }
.lv-tab[data-active='true'] { background: var(--lv-muted); color: var(--lv-fg); font-weight: 500; }
.lv-menu { position: absolute; right: 0; top: 100%; margin-top: .25rem; min-width: 12rem; border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .5rem; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); padding: .25rem; z-index: 20; }
.lv-menu button { display: flex; width: 100%; align-items: center; gap: .5rem; border: 0; background: none; text-align: left; border-radius: .375rem; padding: .5rem .625rem; font-size: .875rem; cursor: pointer; font-family: inherit; color: var(--lv-fg); }
.lv-menu button:hover { background: var(--lv-accent); }
.lv-menu button.danger { color: var(--lv-destructive); }
.lv-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(36rem, 100%); background: var(--lv-card); border-left: 1px solid var(--lv-border); box-shadow: -10px 0 30px rgb(0 0 0 / .12); z-index: 80; display: flex; flex-direction: column; }
.lv-overlay { position: fixed; inset: 0; background: rgb(0 0 0 / .3); z-index: 75; }
.lv-dialog { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .4); }
.lv-dialog-box { width: min(32rem, calc(100% - 2rem)); background: var(--lv-card); border-radius: .75rem; border: 1px solid var(--lv-border); box-shadow: 0 20px 40px rgb(0 0 0 / .2); padding: 1.5rem; }
.lv-sticky-bar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--lv-border); background: var(--lv-fg); color: #fff; border-radius: .75rem; padding: .75rem 1rem; box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.lv-card { border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .75rem; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.lv-stat { border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .75rem; padding: 1rem 1.25rem; }
.lv-stat b { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.lv-switcher { position: relative; }
.lv-switcher-menu { position: absolute; left: 0; top: 100%; margin-top: .375rem; width: 18rem; border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .75rem; box-shadow: 0 10px 25px rgb(0 0 0 / .15); padding: .5rem; z-index: 30; }
.lv-switcher-menu a, .lv-switcher-menu button { display: flex; width: 100%; align-items: center; gap: .75rem; border-radius: .5rem; padding: .5rem .625rem; text-decoration: none; color: inherit; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.lv-switcher-menu a:hover, .lv-switcher-menu button:hover { background: var(--lv-accent); }
.lv-app-tile { display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: .5rem; color: #fff; font-weight: 700; font-size: .875rem; }
.lv-step { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--lv-muted-fg); }
.lv-step b { display: inline-flex; height: 1.5rem; width: 1.5rem; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid var(--lv-border); font-size: .75rem; color: var(--lv-fg); }
.lv-step[data-active='true'] { color: var(--lv-fg); font-weight: 500; }
.lv-step[data-active='true'] b { background: var(--lv-fg); color: #fff; border-color: var(--lv-fg); }
.lv-progress { height: .5rem; border-radius: 9999px; background: var(--lv-muted); overflow: hidden; }
.lv-progress i { display: block; height: 100%; background: var(--lv-green-2); }
.lv-row-hover:hover { background: var(--lv-accent); }
/* The concept banner is 2rem tall; keep the LedgerVault overlay and its layers below it. */
html.cb-concept .lv, html.cb-concept .lv-sheet, html.cb-concept .lv-overlay, html.cb-concept .lv-dialog { top: 2rem; }
.lv-detail-grid { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.lv-list-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; border: 0; border-top: 1px solid var(--lv-border); background: none; padding: .75rem 1rem; text-align: left; cursor: pointer; font-family: inherit; font-size: .875rem; color: var(--lv-fg); }
.lv-list-item:first-child { border-top: 0; }
.lv-list-item[data-active='true'] { background: #f0f9ff; }
.lv-list-item:hover { background: var(--lv-accent); }
.lv-group-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: var(--lv-accent); border-top: 1px solid var(--lv-border); font-size: .875rem; }
.lv-selbar { position: sticky; top: .5rem; z-index: 25; margin-top: 1rem; display: flex; align-items: center; gap: 1rem; background: var(--lv-fg); color: #fff; border-radius: .75rem; padding: .625rem .75rem .625rem 1rem; box-shadow: 0 10px 30px rgb(0 0 0 / .2); font-size: .875rem; }
.lv-selbar .lv-link { background: none; border: 0; padding: 0; color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.lv-selpick { position: relative; display: inline-flex; align-items: center; gap: .125rem; }
.lv-selpick > button { border: 0; background: none; padding: .125rem; border-radius: .25rem; cursor: pointer; color: var(--lv-muted-fg); display: inline-flex; }
.lv-selpick > button:hover { background: var(--lv-accent); }
.lv-selmenu { position: absolute; left: 0; top: 100%; margin-top: .375rem; min-width: 14rem; border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .5rem; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); padding: .25rem; z-index: 30; font-weight: 400; }
.lv-selmenu button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; border: 0; background: none; border-radius: .375rem; padding: .5rem .625rem; font: inherit; font-size: .875rem; color: var(--lv-fg); cursor: pointer; text-align: left; }
.lv-selmenu button:hover { background: var(--lv-accent); }
.lv-count { border-radius: 9999px; background: #e0f2fe; color: #075985; padding: 0 .5rem; font-size: .75rem; font-weight: 600; }
.lv-pager { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-top: 1px solid var(--lv-border); font-size: .8125rem; color: var(--lv-muted-fg); }
/* Prototype-only additions (high-fidelity click-through). */
.lv-skeleton td span.lv-sk { display: block; height: .875rem; border-radius: .25rem; background: linear-gradient(90deg, var(--lv-muted) 25%, var(--lv-accent) 50%, var(--lv-muted) 75%); background-size: 200% 100%; animation: lv-shimmer 1.2s infinite; }
@keyframes lv-shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.lv-inline-error { display: block; margin-top: .25rem; font-size: .75rem; color: #b91c1c; font-weight: 400; max-width: 26rem; white-space: normal; text-align: left; }
.lv-banner { margin-top: 1.25rem; display: flex; align-items: center; gap: .75rem; border: 1px solid #bae6fd; background: #f0f9ff; color: #075985; border-radius: .75rem; padding: .75rem 1rem; font-size: .875rem; }
.lv-empty { text-align: center; padding: 3rem 1.5rem; }
.lv-empty h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; }
.lv-empty p { margin: 0 0 1rem; font-size: .875rem; color: var(--lv-muted-fg); }
.lv-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 9999px; animation: lv-spin .8s linear infinite; }
.lv-spinner-dark { border-color: var(--lv-border); border-top-color: var(--lv-fg); }
@keyframes lv-spin { to { transform: rotate(360deg) } }
.lv-dialog-box h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.lv-dialog-box .lv-lead { margin: .25rem 0 1rem; font-size: .875rem; color: var(--lv-muted-fg); }
.lv-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.lv-btn-destructive { background: var(--lv-destructive); color: #fff; }
.lv-btn-destructive:hover { background: #dc2626; }
.lv-list-box { max-height: 14rem; overflow-y: auto; border: 1px solid var(--lv-border); border-radius: .5rem; }
.lv-list-box > div { padding: .5rem .75rem; border-top: 1px solid var(--lv-border); font-size: .875rem; }
.lv-list-box > div:first-child { border-top: 0; }
.lv-user-menu { position: absolute; right: 0; top: 100%; margin-top: .375rem; min-width: 12rem; border: 1px solid var(--lv-border); background: var(--lv-card); border-radius: .5rem; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1); padding: .25rem; z-index: 30; }
.lv-total td { font-weight: 600; position: sticky; bottom: 0; background: var(--lv-card); border-top: 2px solid var(--lv-border); }
