/* Bankday integration: the approved sketch's task layout, scoped to real Books. */
#books-shell #main .bankday-heading{margin-bottom:20px}
#books-shell #main .bankday-eyebrow{font-size:11px;letter-spacing:.05em;color:var(--muted);margin:0 0 8px}
#books-shell #main .bankday-date{display:flex;align-items:end;gap:12px;margin:0 0 24px;flex-wrap:wrap}
#books-shell #main .bankday-date label{margin:0;display:grid;gap:6px}
#books-shell #main .bankday-context{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding:0 0 16px;margin-bottom:22px}
#books-shell #main .bankday-context a{color:var(--accent)}
#books-shell #main .bankday-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.8fr);gap:34px;align-items:start}
#books-shell #main .bankday-steps{padding:0;margin:0;list-style:none}
#books-shell #main .bankday-steps li{border-bottom:1px solid var(--line)}
#books-shell #main .bankday-steps a{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:15px;align-items:center;padding:18px 0;min-height:88px}
#books-shell #main .bankday-steps strong{display:block;font-size:14px;font-weight:500}
#books-shell #main .bankday-steps small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
#books-shell #main .bankday-number{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:50%;font-size:12px}
#books-shell #main .bankday-steps .done .bankday-number{background:var(--soft);color:#416b4b;border-color:transparent}
#books-shell #main .bankday-steps .current .bankday-number{background:var(--accent);color:white}
#books-shell #main .bankday-next{padding:25px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--paper) 70%,var(--soft))}
#books-shell #main .bankday-next p{font-size:13px;margin:12px 0 20px;color:var(--muted)}
#books-shell #main .bankday-next .button{width:100%}
#books-shell #main .bankday-next details{margin-top:18px;font-size:12px}
#books-shell #main .bankday-actions{display:flex;gap:20px;flex-wrap:wrap;align-items:center}
#books-shell #main .bankday-other{margin-top:30px;border-top:1px solid var(--line);padding-top:22px}
#books-shell #main .bankday-other h2{font-size:16px;margin-bottom:16px}
#books-shell #main .bankday-completion{padding:24px;border:1px solid var(--line);border-radius:9px;margin:24px 0;background:var(--soft)}
#books-shell #main .bankday-completion h2{font-size:18px}
#books-shell #main .bankday-completion p{margin:12px 0 20px}
#books-shell #main .checkline input[type=checkbox]{min-height:0;padding:0;width:17px;height:17px;flex:none;margin:2.55px 0 0}
#books-shell #main .bankday-pelle-restore{display:flex;justify-content:flex-end;margin:0 0 16px}
@media(max-width:800px){#books-shell #main .bankday-layout{grid-template-columns:1fr;gap:22px}#books-shell #main .bankday-next{padding:18px}}
#books-shell #main .pelle-greeting{display:flex;align-items:center;gap:16px;margin:0 0 28px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(110deg,color-mix(in srgb,var(--accent) 5%,var(--paper)),var(--paper));}
#books-shell #main .pelle-mark{display:block;flex:0 0 64px;width:64px;height:64px;border-radius:14px;object-fit:contain;}
#books-shell #main .pelle-copy{flex:1;min-width:0;}
#books-shell #main .pelle-name{display:block;font-size:11px;color:var(--accent);font-weight:550;line-height:1.4;margin-bottom:4px;}
#books-shell #main .pelle-copy h3{font-size:16px;line-height:1.4;font-weight:500;letter-spacing:-.2px;margin:0 0 5px;}
#books-shell #main .pelle-copy p{font-size:13px;line-height:1.65;color:var(--muted);margin:0;}
#books-shell #main .pelle-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;align-self:flex-start;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:23px;cursor:pointer;}
#books-shell #main .pelle-close:hover{background:color-mix(in srgb,var(--accent) 8%,var(--paper));color:var(--ink);}
#books-shell #main .pelle-close:focus-visible,#books-shell #main .pelle-restore button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
#books-shell #main .pelle-restore{display:flex;justify-content:flex-end;margin:0 0 16px;}
#books-shell #main .pelle-restore button{font-size:12px;min-height:36px;}
@media(max-width:700px){#books-shell #main .pelle-greeting{gap:12px;padding:14px 12px;margin-bottom:22px;}#books-shell #main .pelle-mark{flex-basis:48px;width:48px;height:48px;border-radius:11px;}#books-shell #main .pelle-close{flex-basis:32px;width:32px;height:36px;}#books-shell #main .pelle-copy h3{font-size:15px;}}
#books-shell #sidebar nav a>span{min-width:0;width:auto;flex:1;font-size:inherit;text-align:left;white-space:normal;line-height:1.45}
#books-shell #main .bankday-workspace .report-section{margin:24px 0}
#books-shell #main .bankday-workspace .user-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;max-width:920px;margin:20px 0}
#books-shell #main .bankday-workspace .user-form>label{min-width:0;display:flex;flex-direction:column;gap:7px}
#books-shell #main .bankday-workspace .user-form .wide{grid-column:1/-1}
#books-shell #main .bankday-workspace .user-form textarea{min-height:85px;height:85px}
#books-shell #main .bankday-workspace .user-form select{width:100%;min-width:0}
#books-shell #main .bankday-workspace .user-form>button{justify-self:start}
#books-shell #main .bankday-workspace .user-form label.checkline{display:flex;flex-direction:row;align-items:flex-start;gap:10px;line-height:1.65}
#books-shell #main .bankday-workspace .checkline span{min-width:0;flex:1}
#books-shell #main .bankday-workspace .file-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:18px 0}
#books-shell #main .bankday-workspace .file-row>div{flex:1;min-width:0}
#books-shell #main .bankday-workspace .file-row h3{font-size:15px;margin:0 0 5px}
#books-shell #main .bankday-workspace .file-row p{font-size:13px;color:var(--muted);margin:0}
@media(max-width:700px){#books-shell #main .bankday-workspace .user-form{grid-template-columns:1fr}#books-shell #main .bankday-workspace .file-row{flex-wrap:wrap}#books-shell #main .bankday-workspace .file-row>.button{margin-left:0}}

#books-shell #main .bankday-outgoing-results>.reconciliation-card,#books-shell #main .bankday-outgoing-results>.reconciliation-cards{margin-bottom:18px}
/* The preview lives in a narrow drawer even on a wide desktop. Keep every
   payment field visible without a horizontally clipped six-column table. */
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table :is(table,tbody){display:block;min-width:0!important;width:100%!important}
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table thead{display:none}
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table tr{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td{display:grid;grid-template-columns:125px minmax(0,1fr);gap:4px 12px;padding:7px 0;min-width:0!important;width:auto!important;border:0;white-space:normal!important;overflow-wrap:anywhere}
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td::before{display:block;content:attr(data-label);font-size:12px;color:var(--muted);grid-row:1/3}
body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td small{grid-column:2}
@media(max-width:480px){body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td{grid-template-columns:minmax(0,1fr);gap:4px}body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td::before{grid-row:auto}body[data-ui=books03] .drawer.bank-panel .export-preview .bank-control-table td small{grid-column:1}}

/* v19 composition: real state, original reference layout. */

.day-head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:0 0 22px;padding-top:27px;border-top:1px solid var(--line)}
.day-meta{color:var(--muted);margin-top:7px!important;font-size:13px!important}.progress-label{font-size:12px;color:var(--muted);text-align:right;min-width:130px}.progress-track{height:4px;background:var(--line);margin-top:9px;border-radius:4px;overflow:hidden}.progress-track span{display:block;background:var(--accent);height:100%}
.flow-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.8fr);gap:34px;align-items:start}.flow-list{margin:0;padding:0;list-style:none}.flow-item{border-bottom:1px solid var(--line)}
.flow-item a{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:15px;padding:18px 0;min-height:88px;border-radius:3px}.flow-item:first-child a{padding-top:5px}.step-number{display:grid;place-items:center;width:29px;height:29px;border:1px solid #c7cec3;color:var(--muted);border-radius:50%;font-size:12px}.flow-item.done .step-number{background:var(--soft);color:var(--good);border-color:transparent}.flow-item.current .step-number{background:var(--accent);color:white;border-color:var(--accent)}
.step-title{font-size:14px;display:block;font-weight:500}.step-caption{font-size:12px;display:block;margin-top:5px;color:var(--muted);line-height:1.5}.step-arrow{color:var(--muted)}.flow-item.current .step-title,.flow-item.current .step-arrow{color:var(--accent)}.flow-item a:hover .step-title{text-decoration:underline;text-underline-offset:4px}
.next-panel{background:color-mix(in srgb,var(--paper) 70%,var(--soft));border:1px solid var(--line);border-radius:9px;padding:25px}.next-panel p{margin:12px 0 20px;color:var(--muted);font-size:13px!important}.next-panel .button{width:100%}.next-panel .small-note{margin:15px 0 0;font-size:11px!important}.next-panel h3{font-size:21px;line-height:1.4;font-weight:500;margin:0;letter-spacing:-.4px}
#books-shell #main .day-journey .day-head{padding-top:25px}
#books-shell #main .flow-item>a{min-height:100px;text-decoration:none}
#books-shell #main .flow-item>a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#books-shell #main .step-place{display:block;font-size:11px;color:var(--accent);margin-top:7px;line-height:1.5}
#books-shell #main .goal-shortcuts{display:flex;gap:10px 18px;flex-wrap:wrap;padding:0 0 17px 47px}
#books-shell #main .goal-shortcuts a{display:inline;padding:0;min-height:0;font-size:12px;color:var(--accent)}
#books-shell #main .next-panel .work-ahead{display:block;font-size:12px;margin-top:17px;color:var(--accent);line-height:1.7}
#books-shell #main .next-panel h3{font-size:21px!important}
#books-shell #main .next-panel .eyebrow{margin-top:0}
#books-shell #main .workday-head{display:block;height:auto;min-height:0;padding:0;border:0;background:none;color:var(--ink);text-align:left;margin:0 0 28px}
#books-shell #main .workday-head h1{margin:8px 0 0;color:var(--ink)}
#books-shell #main .workday-date{color:var(--muted);font-size:12px;font-weight:500;margin:0;line-height:1.6}
#books-shell #main .workday-overview .day-journey{margin:0 0 25px}
#books-shell #main .workday-overview .day-head{padding-top:23px;margin-bottom:22px}
#books-shell #main .bankday-label{font-size:12px;color:var(--muted);margin:0 0 8px}
#books-shell #main .day-head h2{font-size:21px;font-weight:500;letter-spacing:-.4px;margin:0}
#books-shell #main .progress-label{min-width:195px}
#books-shell #main .progress-track{height:5px;margin-top:10px}
#books-shell #main .progress-caption{display:block;font-size:11px;margin-top:8px;color:var(--muted)}
#books-shell #main .workday-overview .flow-item>a{min-height:83px;padding:13px 0;box-sizing:border-box}
#books-shell #main .workday-overview .flow-item:first-child>a{padding-top:4px}
#books-shell #main .workday-overview .step-place{margin-top:4px}
#books-shell #main .workday-overview .step-caption{margin-top:4px}
#books-shell #main .flow-item.done .step-title{color:var(--muted)}
#books-shell #main .flow-item.done .step-number{background:color-mix(in srgb,var(--good) 10%,var(--paper));border-color:transparent}
#books-shell #main .milestone{font-size:12px;color:var(--good);line-height:1.6;padding-bottom:17px;margin-bottom:20px;border-bottom:1px solid var(--line)}
#books-shell #main .milestone>span{margin-right:6px}
#books-shell #main .next-panel.is-finished{border-color:color-mix(in srgb,var(--good) 28%,var(--line))}
#books-shell #main .next-panel .finish-mark{width:42px;height:42px;font-size:21px;margin-bottom:18px;color:var(--good);background:color-mix(in srgb,var(--good) 9%,var(--paper))}
#books-shell #main .day-receipt{display:grid;gap:10px;border-block:1px solid var(--line);padding:14px 0;margin:0 0 22px;font-size:12px;color:var(--muted)}
#books-shell #main .day-receipt>span{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#books-shell #main .day-receipt strong{font-weight:500;color:var(--ink)}
#books-shell #main .other-work{display:flex;align-items:center;justify-content:space-between;gap:16px 30px;flex-wrap:wrap;border-top:1px solid var(--line);padding:23px 0 0}
#books-shell #main .other-work h2{font-size:13px;font-weight:500;margin:0;color:var(--muted)}
#books-shell #main .other-work p{font-size:11px;color:var(--muted);margin:6px 0 0}
#books-shell #main .other-work-links{display:flex;gap:14px 26px;flex-wrap:wrap;font-size:13px}
#books-shell #main .other-work-links a{color:var(--accent);padding:8px 0}
#books-shell #main .other-work-links strong{font-weight:550;margin-right:3px}
#books-shell #main .other-work-links a>span{margin-left:8px}
#books-shell #main .other-work.is-ready h2{font-size:16px;color:var(--ink)}
#books-shell #main .day-attention{display:flex;align-items:center;justify-content:space-between;gap:12px 25px;flex-wrap:wrap;border-left:3px solid #b78d56;background:#fbf5eb;padding:14px 17px;margin-bottom:24px;font-size:13px;color:var(--warn)}
#books-shell #main .day-attention strong{font-weight:550}
#books-shell #main .day-attention>span>span{display:block;font-size:12px;margin-top:6px;line-height:1.6}
#books-shell #main .day-attention a{color:var(--warn);text-decoration:underline;text-underline-offset:3px}
@media(min-width:701px){#books-shell #main .workday-overview .next-panel{position:sticky;top:24px}}
@media(max-width:700px){#books-shell #main .workday-head{margin-bottom:24px}#books-shell #main .workday-overview .day-head{align-items:flex-start}#books-shell #main .workday-date{font-size:12px}#books-shell #main .day-head h2{font-size:19px}#books-shell #main .workday-overview .flow-item>a{min-height:86px}#books-shell #main .other-work{align-items:flex-start}}
@media(max-width:400px){#books-shell #main .progress-label{min-width:0;width:100%;text-align:left}#books-shell #main .day-head .progress-track{max-width:none}#books-shell #main .other-work-links{gap:8px 18px}#books-shell #main .workday-date time{display:block}}
#books-shell #main .day-select{font-size:11px;color:var(--muted);margin-top:8px}
#books-shell #main .day-select .bankday-date{margin:12px 0 0}
#books-shell #main .progress-caption{display:block;margin-top:8px}
#books-shell #main .bankday-next .eyebrow{margin-top:0}
#books-shell #main .bankday-balances .page{padding:0}
#books-shell #main .day-receipt{display:grid;gap:8px;margin:14px 0 20px;font-size:12px}
#books-shell #main .day-receipt span{display:flex;justify-content:space-between;gap:12px}
#books-shell #main .outgoing-filters{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0}
#books-shell #main .bankday-outgoing .small-note{font-size:12px;color:var(--muted)}
#books-shell #main .bankday-workspace .funds-correction{margin:20px 0}
#books-shell #main .bankday-workspace .work-help{margin:20px 0;color:var(--muted);font-size:12px}
#books-shell #main .bankday-workspace .section-tabs{display:flex;gap:20px;flex-wrap:wrap}
@media(max-width:700px){#books-shell #main .bankday-layout{grid-template-columns:1fr}#books-shell #main .bankday-next{grid-row:1}#books-shell #main .bankday-next .button{width:auto}}

:is(#books-shell #main,#dialog) .completion-card{margin:22px 0 0;padding:24px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--paper) 85%,var(--soft));color:var(--ink);}
:is(#books-shell #main,#dialog) .completion-result{display:flex;gap:14px;align-items:flex-start;}
:is(#books-shell #main,#dialog) .completion-mark{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--good) 10%,var(--paper));color:var(--good);font-size:16px;}
:is(#books-shell #main,#dialog) .completion-card h2{font-size:17px;line-height:1.5;font-weight:550;letter-spacing:-.2px;margin:0 0 5px;}
:is(#books-shell #main,#dialog) .completion-card p{font-size:13px;line-height:1.7;color:var(--muted);margin:0;}
:is(#books-shell #main,#dialog) .completion-next{margin:18px 0 0 42px;padding-top:16px;border-top:1px solid var(--line);}
:is(#books-shell #main,#dialog) .completion-actions{display:flex;gap:12px 22px;align-items:center;flex-wrap:wrap;margin-top:16px;}
:is(#books-shell #main,#dialog) .completion-actions .button{white-space:normal;text-align:center;min-height:42px;}
:is(#books-shell #main,#dialog) .completion-back{font-size:13px;color:var(--muted);padding:10px 0;}
:is(#books-shell #main,#dialog) .completion-back:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px;}
:is(#books-shell #main,#dialog) .completion-card:focus-visible{outline:2px solid var(--accent);outline-offset:4px;}
@media(max-width:700px){:is(#books-shell #main,#dialog) .completion-card{padding:18px 16px;}:is(#books-shell #main,#dialog) .completion-next{margin-left:0;}:is(#books-shell #main,#dialog) .completion-actions{align-items:stretch;flex-direction:column;gap:5px;}:is(#books-shell #main,#dialog) .completion-back{text-align:center;}}

#books-shell #main .payment-review{list-style:none;margin:20px 0;padding:0}
#books-shell #main .payment-review li{padding:18px 0;border-bottom:1px solid var(--line)}
#books-shell #main .payment-line-head,#books-shell #main .regulation-total{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:14px}
#books-shell #main .payment-review p,#books-shell #main .payment-review details{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0}
#books-shell #main .regulation-total{padding:18px 0;margin-bottom:18px;border-bottom:1px solid var(--line)}

.progress-track .day-progress-0{width:0.0%}
.progress-track .day-progress-1{width:14.285714285714285%}
.progress-track .day-progress-2{width:28.57142857142857%}
.progress-track .day-progress-3{width:42.857142857142854%}
.progress-track .day-progress-4{width:57.14285714285714%}
.progress-track .day-progress-5{width:71.42857142857143%}
.progress-track .day-progress-6{width:85.71428571428571%}
.progress-track .day-progress-7{width:100.0%}

#books-shell #main .bankday-outgoing .receipt-card{margin-bottom:18px}
#books-shell #main .bankday-outgoing .receipt-card-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px 18px}
#books-shell #main .bankday-outgoing .receipt-card-actions>.button{white-space:normal;text-align:left}

#books-shell #main{--good:#416b4b;--warn:#865a24}
#books-shell #main .bankday-next .eyebrow{font-size:11px!important;letter-spacing:1.2px;text-transform:uppercase}

@media(max-width:700px){#books-shell #main .bankday-workspace .file-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px}#books-shell #main .bankday-workspace .file-row>div{grid-column:2}#books-shell #main .bankday-workspace .file-row>.button{grid-column:2;justify-self:start;margin:0}}

/* Quiet waiting states use the existing Books card, palette and line icons. */
#books-shell #main .bankday-empty{display:flex;align-items:flex-start;gap:20px;padding:32px;margin:24px 0;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--paper) 85%,var(--soft));}
#books-shell #main .bankday-empty-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:9px;background:var(--soft);color:var(--accent);}
#books-shell #main .bankday-empty-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}
#books-shell #main .bankday-empty-copy{min-width:0;}
#books-shell #main .bankday-empty h2{margin:0 0 8px;font-size:20px;font-weight:550;line-height:1.4;letter-spacing:-.3px;}
#books-shell #main .bankday-empty p{margin:0;max-width:65ch;font-size:14px;line-height:1.65;color:var(--muted);}
#books-shell #main .bankday-empty-action{margin-top:22px;}
#books-shell #main .bankday-empty-action .button{max-width:100%;white-space:normal;text-align:center;}
#books-shell #main .bankday-history-link{display:inline-block;font-size:13px;margin-bottom:12px;}
#books-shell #main .bankday-outgoing :is(.instruction-toolbar,.incoming-queue-toolbar)[hidden]{display:none;}
@media(max-width:600px){#books-shell #main .bankday-empty{padding:24px;gap:16px;flex-direction:column;}#books-shell #main .bankday-empty h2{font-size:18px;}}
