/* Books110 / Atlas109r6. Product presentation; reference hashes in docs/DESIGN-110.md. */
body[data-ui=books110]{font-family:Inter,system-ui,sans-serif}
body[data-ui=books110]:not(.login-view) #main{max-width:1500px;padding:32px 34px 48px}
body[data-ui=books110] #sidebar .brand{padding-bottom:26px}
body[data-ui=books110] #profile{padding-inline:8px;gap:9px}body[data-ui=books110] #profile>span:nth-child(2){flex:1;min-width:0}body[data-ui=books110] #profile b{font-size:13px;white-space:nowrap}body[data-ui=books110] #user-org{overflow-wrap:anywhere}
body[data-ui=books110] .workspace>header{background:transparent}
body[data-ui=books110] #personalize{display:none}
body[data-ui=books110] :is(a,button):hover,body[data-ui=books110] :is(a,button):hover *{text-decoration:none!important}
body[data-ui=books110] :is(button,a,input,select,textarea,summary,[tabindex]):focus{outline:none;box-shadow:none}
body[data-ui=books110] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:none;box-shadow:inset 0 -2px var(--accent)}
body[data-ui=books110] .button{border-color:transparent;background:transparent;padding:9px 12px;filter:none;font-weight:450}
body[data-ui=books110] .button:hover{background:var(--soft);color:var(--accent);filter:none}
body[data-ui=books110] .button.primary{background:var(--accent);color:white;border-color:transparent}
body[data-ui=books110] .button.primary:hover{filter:brightness(.95)}
body[data-ui=books110] :is(.instruction-link,.back-link,.quiet-link,.matter-list a,.customer-link){border-radius:6px;transition:background .12s,color .12s}
body[data-ui=books110] :is(.instruction-link,.back-link,.quiet-link,.matter-list a,.customer-link):hover{background:var(--soft);color:var(--accent)}
body[data-ui=books110] .intro{max-width:780px;margin-bottom:30px}
body[data-ui=books110] .instruction-toolbar{margin:24px 0 18px;gap:12px 20px;align-items:end;padding-bottom:18px;border-bottom:1px solid var(--line)}
body[data-ui=books110] .instruction-search{flex:1;max-width:560px;align-items:end}
body[data-ui=books110] .instruction-search label{flex:1;min-width:0}
body[data-ui=books110] .instruction-search input,body[data-ui=books110] .case-finance-toolbar input{background:color-mix(in srgb,var(--accent) 4%,#fafafa);border-color:transparent;min-height:42px;border-radius:9px;padding:10px 14px}
body[data-ui=books110] .instruction-search>button{min-width:54px}
body[data-ui=books110] .instruction-toolbar>label{margin:0;font-size:var(--label-size);font-weight:400}
body[data-ui=books110] .instruction-table th,body[data-ui=books110] .customers-table th,body[data-ui=books110] .users-table th{background:transparent;color:var(--muted);border-top:0;padding-block:14px}
body[data-ui=books110] .instruction-table td{vertical-align:middle;padding-block:var(--cell-pad,16px)}
body[data-ui=books110] .instruction-table tbody tr:hover,body[data-ui=books110] .customers-table tbody tr:hover{background:color-mix(in srgb,var(--accent) 3%,white)}
body[data-ui=books110] .instruction-table .button{font-weight:450}
body[data-ui=books110] .finance-queue-group{margin-top:34px;padding-top:22px;border-top:1px solid var(--line)}
body[data-ui=books110] .finance-queue-group .list-heading{align-items:center}
body[data-ui=books110] .admin-notice{background:color-mix(in srgb,var(--accent) 3%,#fafafa);border:0;line-height:1.7;padding:12px 16px}
body[data-ui=books110] .record-head{gap:32px;padding-bottom:24px}
body[data-ui=books110] .record-head h1{font-size:28px;line-height:1.3;font-weight:500}
body[data-ui=books110] .record-context{padding-left:0}
body[data-ui=books110] .record-aside{background:color-mix(in srgb,var(--accent) 3%,white);padding:22px;border-radius:10px}
body[data-ui=books110] .record-area{padding:8px 0 16px}
body[data-ui=books110] .record-actions{gap:6px}
body[data-ui=books110] .record-page .matter-list li{padding:18px 8px;border-radius:6px}
body[data-ui=books110] .record-page .matter-list li:hover{background:color-mix(in srgb,var(--accent) 3%,white)}
body[data-ui=books110] .record-page .matter-list a{min-height:36px}
body[data-ui=books110] .case-workspace .record-grid{padding-top:14px}
body[data-ui=books110] .case-workspace .record-aside{padding:18px 22px;margin:8px 0 24px}
body[data-ui=books110] .case-workspace .case-finance-toolbar{gap:20px}
body[data-ui=books110] .instruction-treatment{padding:26px;background:color-mix(in srgb,var(--accent) 3%,white)}
body[data-ui=books110] .instruction-history li{border-left:0;padding-left:0;margin-left:0;padding-block:16px;border-bottom:1px solid var(--line)}
body[data-ui=books110] .instruction-history li:before{display:none}
body[data-ui=books110] .user-form{gap:22px}
body[data-ui=books110] .user-form :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#fafbfa;border-color:#e7ebe7;padding:11px 13px;line-height:1.6}
body[data-ui=books110] .drawer{width:min(660px,100vw);max-width:100vw;border:0;border-radius:12px 0 0 12px}
body[data-ui=books110] .drawer-head{padding:26px 28px;height:auto;min-height:88px}
body[data-ui=books110] .drawer-body{padding:26px 28px}
body[data-ui=books110] .drawer-foot{padding:18px 28px}
body[data-ui=books110] .drawer :is(h2,h3){font-weight:500}
body[data-ui=books110] .drawer-head p:empty{display:none}
body[data-ui=books110] .drawer:has(#personal-form){inset:0;margin:auto;width:min(880px,calc(100vw - 48px));height:min(790px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);border-radius:16px}
body[data-ui=books110] .drawer:has(#personal-form) .drawer-head{padding:30px 36px 22px}
body[data-ui=books110] .drawer:has(#personal-form) .drawer-body{padding:20px 36px 28px}
body[data-ui=books110] #personal-form{display:grid;grid-template-columns:1fr 1fr;gap:20px 30px}
body[data-ui=books110] #personal-form>fieldset:has(.personal-palettes){grid-column:1/-1;grid-row:1}
body[data-ui=books110] #personal-form .personal-palettes{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
body[data-ui=books110] #personal-form .personal-preview{display:none}
body[data-ui=books110] #personal-form>p{grid-column:1/-1;margin:0}
body[data-ui=books110] #personal-form fieldset{margin:0;min-width:0}
body[data-ui=books110] .finance-report-form{align-items:end}
body[data-ui=books110] .finance-report-form input[type=date]{border:0;background:var(--soft)}
@media(max-width:1100px){body[data-ui=books110] .instruction-toolbar{flex-wrap:wrap}body[data-ui=books110] .instruction-search{flex-basis:100%;max-width:none}body[data-ui=books110] .instruction-toolbar>label{width:auto}}
body[data-ui=books110] .quick-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-height:40px;color:var(--accent);font-size:var(--label-size)}
body[data-ui=books110] .quick-actions a,body[data-ui=books110] .quick-actions button{padding:10px 12px;border-radius:7px;min-height:40px;font-size:inherit;white-space:nowrap}
body[data-ui=books110] .quick-actions :is(a,button):hover{background:var(--soft)}
body[data-ui=books110] .matters-page .matter-list li{padding:18px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 24px}
body[data-ui=books110] .matters-page .matter-list .quick-actions{grid-column:2;grid-row:1/3}
body[data-ui=books110] .customer-record .matter-list .quick-actions{margin-top:8px}
@media(max-width:650px){body[data-ui=books110] .matters-page .matter-list li{display:block}body[data-ui=books110] .quick-actions{margin-top:8px}body[data-ui=books110] .customers-table td.quick-actions{display:flex}}
/* Programmatic heading focus should not look like a selected hyperlink. */
body[data-ui=books110] :is(h1,h2,h3,main)[tabindex='-1']:focus{box-shadow:none;outline:none}
.quick-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;vertical-align:middle;margin-right:7px;flex:none}


body[data-ui=books110] .quick-actions{min-width:180px}
body[data-ui=books110] .quick-actions :is(a,button){min-height:44px;white-space:normal;text-align:left}
body[data-ui=books110] .quick-actions button{display:inline-flex;align-items:center}
body[data-ui=books110] .quick-view .customer-facts{margin:0 0 24px}
body[data-ui=books110] .quick-view .customer-facts dd{overflow-wrap:anywhere}
body[data-ui=books110] .quick-view h3{margin:24px 0 12px}
body[data-ui=books110] .quick-view .matter-list a{display:block;padding-block:8px}
body[data-ui=books110] .quick-view .customer-card-note{margin-top:20px}
/* Drawers fit the viewport, not the review site's synthetic bottom bar. */
body[data-ui=books110] .drawer:not(:has(#personal-form)){inset:8px 8px 8px auto;width:min(660px,calc(100vw - 16px))}
body[data-ui=books110] #personal-form>fieldset:has(.personal-palettes){grid-row:auto}
body[data-ui=books110] #profile b{font-size:var(--label-size);white-space:normal;overflow-wrap:anywhere}
body[data-ui=books110] #sidebar .bottom{flex:0 1 auto;overflow-y:auto;min-height:0}
/* Grouped navigation: room for the explicit instruction names on mobile. */
@media(max-width:900px){
 body[data-ui=books110] #sidebar{width:min(300px,calc(100vw - 16px))}
}
/* The short-screen sidebar already scrolls as a whole. Do not collapse its footer. */
@media(max-height:650px){
 body[data-ui=books110] #sidebar .bottom{flex:0 0 auto;overflow:visible}
}
body[data-ui=books110] :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{box-shadow:inset 0 -2px var(--accent)}
/* No extra border or underline when entering a field. Keep keyboard focus
   discernible through the field surface instead; native behavior is unchanged. */
body[data-ui=books110] :is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus{
 outline:none;box-shadow:none;
}
body[data-ui=books110] :is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus-visible{
 background-color:var(--soft);
}
body[data-ui=books110] input:is([type=radio],[type=checkbox]):focus-visible{outline:2px solid var(--accent);outline-offset:3px;box-shadow:none}
body[data-ui=books110] .button.primary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;box-shadow:inset 0 -3px white}
body[data-ui=books110] :is(h1,h2,h3,main)[tabindex='-1']:focus{box-shadow:none;outline:none}
@media(max-width:650px){
 body[data-ui=books110]:not(.login-view) #main{padding:26px 16px 34px}
 body[data-ui=books110] .record-head h1{font-size:25px}
 body[data-ui=books110] .instruction-toolbar>label{flex:1;min-width:130px}
 body[data-ui=books110] .drawer:not(:has(#personal-form)){inset:0;width:100%;height:100dvh;border-radius:0}
 body[data-ui=books110] :is(.drawer-head,.drawer-body,.drawer-foot){padding:20px}
 body[data-ui=books110] .drawer:has(#personal-form){width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 body[data-ui=books110] .drawer:has(#personal-form) :is(.drawer-head,.drawer-body){padding:22px}
 body[data-ui=books110] #personal-form{grid-template-columns:1fr}
 body[data-ui=books110] #personal-form .personal-palettes{grid-template-columns:repeat(3,minmax(0,1fr))}
 body[data-ui=books110] .instruction-treatment{padding:20px}
}
@media(max-height:480px){
 body[data-ui=books110] .drawer:has(#personal-form){height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
 body[data-ui=books110] .drawer .drawer-head{min-height:60px;padding:8px 16px}
 body[data-ui=books110] .drawer .drawer-body{padding:12px 16px}
 body[data-ui=books110] .drawer .drawer-foot{padding:8px 16px}
 body[data-ui=books110] .drawer-head h2{font-size:18px}
 body[data-ui=books110] .drawer-head p{margin:0}
 body[data-ui=books110] .drawer-foot p{margin-bottom:6px}
}
@media(forced-colors:active){
 body[data-ui=books110] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid Highlight;outline-offset:2px}
 body[data-ui=books110] :is(input:not([type=radio]):not([type=checkbox]),select,textarea):focus-visible{outline:none;background-color:Highlight;color:HighlightText;forced-color-adjust:none}
 body[data-ui=books110] :is(.instruction-toolbar,.case-finance-toolbar) select{appearance:auto;background-image:none}
}

/* One line per instruction, like the case overview; keep every column scrollable. */
.instruction-directory-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.instruction-directory-table table{display:table;table-layout:auto;min-width:100%;width:100%}
.instruction-directory-table thead{display:table-header-group}
.instruction-directory-table tbody{display:table-row-group}
.instruction-directory-table tr{display:table-row;padding:0;border:0}
.instruction-directory-table :is(th,td){display:table-cell;width:auto!important;white-space:nowrap;overflow-wrap:normal;padding:var(--cell-pad) 10px;text-align:left!important;vertical-align:middle;border-bottom:1px solid var(--line)}
.instruction-directory-table td::before{display:none}
.instruction-directory-table [data-label="Beløb"],.instruction-directory-table time{font-variant-numeric:tabular-nums}
.instruction-directory-table .instruction-status{background:transparent;color:var(--muted);padding:0;line-height:1.65;white-space:nowrap}
.instruction-directory-table .instruction-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin:0 7px 1px 0}
.instruction-directory-table .instruction-status.approved{color:#54765e}
.instruction-directory-table .instruction-status.rejected{color:#97655f}
.reconciliation-table table{min-width:1120px;}
.reconciliation-table th:nth-child(1){width:250px;}
.reconciliation-table th:nth-child(3){width:185px;}
.reconciliation-table th:nth-child(4){width:210px;}

/* List actions are functions, not filled status badges. */
body[data-ui=books110] :is(.instruction-table,.economy-table) .button{background:transparent;color:inherit}
body[data-ui=books110] :is(.instruction-table,.economy-table) .button:not(:disabled):is(:hover,:active){background:transparent;color:var(--accent);filter:none;text-decoration:underline!important;text-underline-offset:3px}
body[data-ui=books110] :is(.instruction-table,.economy-table) .button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none}
body[data-ui=books110] .instruction-table .instruction-actions .button:first-child{padding-inline-start:0;border-inline-start-width:0;justify-content:flex-start}

/* Shared crisp refresh icon and a right-aligned instruction filter group. */
body[data-ui=books110] .button.books-refresh{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border:0;background:transparent;color:var(--muted)}
body[data-ui=books110] .books-refresh svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body[data-ui=books110] .button.books-refresh:hover{background:transparent;color:var(--accent);filter:none}
body[data-ui=books110] .button.books-refresh:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none}
body[data-ui=books110] .instruction-toolbar>.books-refresh{margin-inline-start:auto}
body[data-ui=books110] .list-toolbar-filters{display:flex;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-inline-start:auto;max-width:100%}
body[data-ui=books110] .list-toolbar-filters>label{margin:0;min-width:0;width:auto}
@media(max-width:650px){body[data-ui=books110] .list-toolbar-filters{width:100%;gap:8px}body[data-ui=books110] .list-toolbar-filters>label{flex:1 1 100px}}

/* Locked entry points remain readable and explain where creation starts. */
.books-create-lock{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:100%}
.books-create-lock small{color:var(--muted);font-size:12px}
body[data-ui=books110] .button.books-create-locked{min-height:44px;max-width:100%;gap:8px;background:#f6f7f9;color:var(--muted);border:1px solid var(--line);opacity:1;cursor:not-allowed;filter:none;box-shadow:none}
.books-create-locked svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* One native select, one visual language for field and popup. No search styles.
   Unsupported browsers retain their native picker and the same closed field. */
body[data-ui=books110] select:not([multiple]):not([size]){
 appearance:auto;min-height:44px;min-inline-size:10.5rem;max-inline-size:100%;
 border:1px solid #c8d1d5;border-radius:8px;background:#fff;color:var(--text);
 padding:10px 12px;font-size:var(--label-size);line-height:1.5;cursor:pointer;
}
body[data-ui=books110] select:not([multiple]):not([size]):is(:hover,:focus-visible,:open){
 border-color:var(--accent);background-color:var(--soft);outline:none;box-shadow:none;
}
body[data-ui=books110] select:not([multiple]):not([size]):disabled{
 cursor:not-allowed;background-color:#f6f7f9;color:var(--muted);border-color:var(--line);
}
@supports (appearance:base-select){
 body[data-ui=books110] select:not([multiple]):not([size]),
 body[data-ui=books110] select:not([multiple]):not([size])::picker(select){appearance:base-select}
 body[data-ui=books110] select:not([multiple]):not([size]){display:inline-flex;gap:16px;align-items:center}
 body[data-ui=books110] select:not([multiple]):not([size])::picker-icon{
 content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
 rotate:45deg;translate:0 -2px;flex:none;align-self:center;
 }
 body[data-ui=books110] select:not([multiple]):not([size]):open::picker-icon{rotate:225deg;translate:0 2px}
 body[data-ui=books110] select:not([multiple]):not([size])::picker(select){
 margin:4px 0;padding:4px;border:1px solid #c8d1d5;border-radius:8px;
 background:#fff;color:var(--text);box-shadow:0 8px 24px #142e401a;
 inline-size:anchor-size(self-inline);max-inline-size:calc(var(--books-view-width,100vw) - 16px);
 max-block-size:min(320px,calc(var(--books-view-height,100dvh) - 16px));overflow:auto;
 }
 body[data-ui=books110] select:not([multiple]):not([size]) option{
 display:flex;align-items:center;gap:10px;min-height:40px;padding:9px 10px;
 border:0;border-radius:4px;font:inherit;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
 background:#fff;color:var(--text);cursor:pointer;
 }
 body[data-ui=books110] select:not([multiple]):not([size]) option:checked{background:var(--soft);color:var(--accent)}
 body[data-ui=books110] select:not([multiple]):not([size]) option:is(:hover,:focus-visible){background:var(--soft);color:var(--accent);outline:1px solid var(--accent);outline-offset:-1px}
 body[data-ui=books110] select:not([multiple]):not([size]) option::checkmark{color:var(--accent);flex:none}
 body[data-ui=books110] select:not([multiple]):not([size]) option:disabled{color:var(--muted);cursor:not-allowed;background:#fff;outline:none}
}
@media(forced-colors:active){
 body[data-ui=books110] select:not([multiple]):not([size]),
 body[data-ui=books110] select:not([multiple]):not([size])::picker(select),
 body[data-ui=books110] select:not([multiple]):not([size]) option{forced-color-adjust:none;background:Canvas;color:CanvasText;border-color:ButtonText;box-shadow:none}
 body[data-ui=books110] select:not([multiple]):not([size]):is(:focus-visible,:open){border-color:Highlight;outline:2px solid Highlight;outline-offset:2px}
 body[data-ui=books110] select:not([multiple]):not([size]) option:is(:checked,:hover,:focus-visible){background:Highlight;color:HighlightText;outline-color:HighlightText}
 body[data-ui=books110] select:not([multiple]):not([size]) option::checkmark{color:currentColor}
 body[data-ui=books110] select:not([multiple]):not([size]):disabled,
 body[data-ui=books110] select:not([multiple]):not([size]) option:disabled{color:GrayText}
}

@media(max-width:650px){
 body[data-ui=books110] .list-toolbar-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
 body[data-ui=books110] .list-toolbar-filters select:not([multiple]):not([size]){min-inline-size:0}
 body[data-ui=books110] .list-toolbar-filters>.books-refresh{grid-column:2;justify-self:end}
}

/* Bank evidence shares the existing Books tables and forms. */
.bank-table table{min-width:1050px}.bank-table td{overflow-wrap:anywhere}.bank-table small{display:block;color:var(--muted);margin-top:.3rem}.bank-preview label{display:block;margin:1rem 0}.bank-candidate{padding:1rem 0;border-bottom:1px solid var(--border)}.bank-queue{margin-top:2rem}.bank-actions{flex-wrap:wrap}
@media(max-width:600px){.bank-table table{min-width:0}.bank-table td{max-width:100%;overflow-wrap:anywhere}}

.bank-digest{display:block;overflow-wrap:anywhere}.bank-workday,.bank-queue{margin-bottom:1.5rem}.bank-day-filter input{max-width:10rem}

.bank-control-table table{table-layout:auto;min-width:760px}.bank-control-table th,.bank-control-table td{position:static!important;min-width:90px;width:auto!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere}.bank-control{margin:1rem 0}.bank-files{margin:1rem 0}.bank-files li{margin:.6rem 0}.bank-files small{display:block}.bank-panel .bank-control-table{max-width:100%;overflow-x:auto}.bank-panel .checkline{align-items:start}.bank-files [hidden],.bank-panel [hidden]{display:none!important}

#bank-export .checkline{display:flex;flex-direction:row;align-items:flex-start;gap:.65rem}#bank-export .checkline input[type=checkbox]{width:1rem;min-width:1rem;height:1rem;margin-top:.2rem}.instruction-bank-files small{display:block}

/* One-line receipt directory only; finance queue/card layouts are unchanged. */
.receipt-register-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.receipt-register-table table{display:table;table-layout:auto;min-width:100%;width:100%}
.receipt-register-table thead{display:table-header-group}
.receipt-register-table tbody{display:table-row-group}
.receipt-register-table tr{display:table-row;padding:0;border:0}
.receipt-register-table :is(th,td){display:table-cell;width:auto!important;white-space:nowrap;overflow-wrap:normal;padding:var(--cell-pad) 10px;text-align:left!important;vertical-align:middle;border-bottom:1px solid var(--line)}
.receipt-register-table td::before{display:none}
.receipt-register-table [data-label="Beløb"],.receipt-register-table time{font-variant-numeric:tabular-nums}
.receipt-register-table .instruction-status{background:transparent;color:var(--muted);padding:0;line-height:1.65;white-space:nowrap}
.receipt-register-table .instruction-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin:0 7px 1px 0}
.receipt-register-table .instruction-status.phase-active{color:#54765e}
.receipt-register-table .instruction-status.phase-void{color:#97655f}

/* Quiet directories: all columns remain available through a local table scroll.
   Scoped separately from task lists and the funds overview. */
.quiet-register-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.quiet-register-table table{display:table;table-layout:auto;min-width:100%;width:100%}
.quiet-register-table thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
.quiet-register-table tbody{display:table-row-group}
.quiet-register-table tr{display:table-row;padding:0;border:0}
.quiet-register-table :is(th,td){display:table-cell;width:auto!important;max-width:none;white-space:nowrap;overflow-wrap:normal;padding:var(--cell-pad) 10px;text-align:left!important;vertical-align:middle;border-bottom:1px solid var(--line);position:static}
.quiet-register-table td::before{display:none}
.quiet-register-table td,.quiet-register-table time{font-variant-numeric:tabular-nums}
.quiet-register-table .instruction-status{background:transparent;color:var(--muted);padding:0;line-height:1.65;white-space:nowrap}
.quiet-register-table .instruction-status:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin:0 7px 1px 0}
.quiet-register-table .instruction-status.phase-reconciled{color:#54765e}
.quiet-register-table .instruction-status.phase-discrepancy,.quiet-register-table .instruction-status.list-attention{color:#97655f}
body[data-ui=books110] .quiet-register-table .economy-case{display:inline;white-space:nowrap;overflow:visible;text-overflow:clip}
/* Whole-row view targets retain native controls, selectable text and scrolling. */
body[data-ui] [data-row-open] { cursor: pointer; }
body[data-ui] [data-row-open]:focus-within { background-color: var(--surface-hover, #f3f6f5); }
@media (hover: hover) {
 body[data-ui] [data-row-open]:hover { background-color: var(--surface-hover, #f3f6f5); }
}

/* Case navigation belongs with the finance card’s case identity. */
body[data-ui=books110] .finance-case-context{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px}
body[data-ui=books110] .finance-case-context>span{min-width:0;overflow-wrap:anywhere}
body[data-ui=books110] .finance-case-context>.quiet-link{display:inline-flex;align-items:center;min-height:36px;white-space:nowrap;color:var(--accent);font-weight:500}

/* Read-only invoice route: keep every step visible at the actual content width. */
.finance-page>.invoice-progress,.instruction-page>.instruction-progress{container-type:inline-size;padding-top:32px;margin:28px 0 48px}
.invoice-progress h2{font-size:14px;font-weight:500;letter-spacing:0}
.invoice-progress ol{display:flex;list-style:none;margin:18px 0 0;padding:0}
.invoice-progress li{position:relative;flex:1;min-width:0;padding:0 14px 0 0}
.invoice-progress li:last-child{padding-right:0}
.invoice-progress li:not(:last-child)::after{content:"";position:absolute;top:11px;left:32px;right:8px;height:2px;background:var(--line)}
.invoice-progress li.invoice-progress-done::after{background:var(--accent)}
.invoice-progress-marker{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;color:var(--muted);background:white;font-size:11px}
.invoice-progress-done .invoice-progress-marker{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.invoice-progress-current .invoice-progress-marker{background:var(--accent);border-color:var(--accent);color:white;font-weight:600}
.invoice-progress-copy{display:block;min-width:0;margin-top:10px;overflow-wrap:anywhere}
.invoice-progress-label{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.invoice-progress-current .invoice-progress-label{color:var(--accent);font-weight:600}
.invoice-progress-done .invoice-progress-label{color:var(--text)}
.invoice-progress-copy small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:3px}
@container (max-width:560px){
 .invoice-progress ol{display:block}
 .invoice-progress li{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;padding:0 0 20px}
 .invoice-progress li:last-child{padding-bottom:0}
 .invoice-progress li:not(:last-child)::after{left:11px;right:auto;top:30px;bottom:6px;width:2px;height:auto}
 .invoice-progress-copy{margin-top:0}
}

/* Only the mixed instruction directory: compact columns and existing text actions. */
.instruction-directory-page .section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.instruction-directory-page .section-heading>div{min-width:0}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(1){width:10%!important}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(2){width:13%!important}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(3){width:13%!important}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(4){width:19%!important}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(5){width:16%!important}
.instruction-directory-table.has-decision-actions :is(th,td):nth-child(6){width:13%!important}
.instruction-directory-table.has-decision-actions :is(th,td):last-child{width:16%!important;text-align:right!important}
.directory-decision-actions{display:flex;align-items:center;justify-content:flex-end;gap:24px}
body[data-ui=books110] .directory-decision-actions>.button{color:var(--accent);padding:6px 0;min-height:36px;white-space:nowrap}

/* Incoming bank directory: same search/hero as reconciliation, isolated table layout. */
.receipt-directory-page .section-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px}
.receipt-directory-page .section-heading>div{min-width:0}
.receipt-directory-page .receipt-bank-list{margin-top:0}
.receipt-directory-table{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body[data-ui=books110] .receipt-directory-table table{display:table;table-layout:fixed;width:100%;min-width:1080px}
body[data-ui=books110] .receipt-directory-table thead{display:table-header-group}
body[data-ui=books110] .receipt-directory-table tbody{display:table-row-group}
body[data-ui=books110] .receipt-directory-table tr{display:table-row;padding:0;border:0}
body[data-ui=books110] .receipt-directory-table :is(th,td){display:table-cell;vertical-align:middle;padding:14px 10px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
body[data-ui=books110] .receipt-directory-table td::before{display:none!important}
.receipt-directory-table :is(th,td):nth-child(1){width:9%}
.receipt-directory-table :is(th,td):nth-child(2){width:13%}
.receipt-directory-table :is(th,td):nth-child(3){width:26%}
.receipt-directory-table :is(th,td):nth-child(4){width:10%}
.receipt-directory-table :is(th,td):nth-child(5){width:12%}
.receipt-directory-table :is(th,td):nth-child(6){width:20%}
.receipt-directory-table :is(th,td):nth-child(7){width:170px;text-align:right}
.receipt-directory-table [data-label="Beløb"],.receipt-directory-table .instruction-link{white-space:nowrap;font-variant-numeric:tabular-nums}
.receipt-directory-table small{display:block;color:var(--muted);font-size:var(--label-size);line-height:1.6;margin-top:3px}
.receipt-directory-table .row-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}
body[data-ui=books110] .receipt-directory-table .button{white-space:nowrap;padding:6px 0;font-size:var(--label-size)}
.receipt-directory-table .row-more-items{white-space:normal}

.receipt-directory-table .row-actions{flex-wrap:wrap}
body[data-ui=books110] .receipt-directory-table .row-more{margin:0;padding:0;border:0;min-width:28px}
.receipt-directory-table .row-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:28px;min-height:36px;font-size:22px;color:var(--muted)}
.receipt-directory-table .row-more>summary::-webkit-details-marker{display:none}
.receipt-directory-table .row-more[open]{flex-basis:100%}
.receipt-directory-table .row-more[open]>summary{width:28px;margin-left:auto}
.receipt-directory-table .row-more-items{display:flex;flex-direction:column;align-items:flex-start;padding-top:8px;border-top:1px solid var(--line)}

.receipt-directory-page>.receipt-bank-list{border-top:0;padding-top:0;margin-top:0}
.receipt-directory-table .row-more>summary svg{width:20px;height:20px;fill:currentColor;flex:none}
.receipt-directory-table .row-more:not([open])>.row-more-items{display:none}

/* Incoming case registration filters do not describe general bank treatment. */

/* Focused case registration, scoped away from other bank dialogs. */
body[data-ui=books110] .receipt-registration-panel #bank-action,body[data-ui=books110] .receipt-registration-panel #bank-receipt-correction{display:block}
.receipt-registration-panel [hidden]{display:none!important}
.receipt-registration-panel .receipt-registration-payment{padding:0 0 24px;border-bottom:1px solid var(--line)}
.receipt-registration-panel .receipt-registration-eyebrow{margin:0 0 6px;color:var(--muted);font-size:var(--label-size)}
.receipt-registration-panel .receipt-registration-amount{margin:0 0 10px;font-size:28px;font-weight:500;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
.receipt-registration-panel .receipt-registration-payer{margin:0;font-weight:500;overflow-wrap:anywhere}
.receipt-registration-panel .receipt-registration-meta{margin:6px 0;color:var(--muted)}
.receipt-registration-panel .receipt-registration-banktext{margin:12px 0 0;overflow-wrap:anywhere;font-size:var(--label-size);color:var(--muted)}
.receipt-registration-panel .receipt-registration-case{padding:22px 0}
.receipt-registration-panel .receipt-case-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.receipt-registration-panel .receipt-case-heading h3{margin:0;font-size:16px}
.receipt-registration-panel .receipt-selected-case{padding:18px;background:var(--soft);border-radius:8px;overflow-wrap:anywhere}
.receipt-registration-panel .receipt-selected-case p{margin:0}
.receipt-registration-panel .receipt-case-number{font-weight:500}
.receipt-registration-panel .receipt-selected-case .receipt-case-title{margin-top:4px}
.receipt-registration-panel .receipt-case-customer{color:var(--muted)}
.receipt-registration-panel .receipt-selected-case .receipt-case-basis{font-size:var(--label-size);color:var(--muted);margin-top:14px}
.receipt-registration-panel .receipt-case-search{margin-top:14px}
.receipt-registration-panel .receipt-case-search-line{display:flex;align-items:end;gap:12px}
.receipt-registration-panel .receipt-case-search-line label{flex:1;min-width:0}
.receipt-registration-panel .receipt-case-search-status{font-size:var(--label-size);color:var(--muted);margin:10px 0}
.receipt-registration-panel .receipt-case-results{margin:0;padding:0;list-style:none}
.receipt-registration-panel .receipt-case-results li{padding:0;border-bottom:1px solid var(--line)}
body[data-ui=books110] .receipt-registration-panel .receipt-case-choice{display:flex;flex-direction:column;align-items:start;text-align:left;gap:3px;width:100%;white-space:normal;overflow-wrap:anywhere;padding:14px 8px}
.receipt-registration-panel .receipt-registration-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:0}
.receipt-registration-panel .receipt-registration-details summary{cursor:pointer;font-size:var(--label-size)}
.receipt-registration-panel .receipt-registration-extra{padding-top:18px}
.receipt-registration-panel .receipt-registration-extra h3{font-size:14px;margin:0 0 10px}
.receipt-registration-panel .receipt-registration-extra .customer-facts{margin:0 0 18px}
.receipt-registration-panel .receipt-registration-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.receipt-registration-panel .checkline{display:flex;flex-direction:row;align-items:start;gap:10px;margin:18px 0}
body[data-ui=books110] .receipt-registration-panel .checkline input{width:16px;min-width:16px;height:16px;margin:4px 0 0;accent-color:var(--accent)}
.receipt-registration-panel .receipt-registration-note{font-size:var(--label-size);color:var(--muted);margin:16px 0 0}
.receipt-registration-panel .receipt-missing-payer{margin-bottom:20px}
.receipt-registration-panel .receipt-duplicate-check{padding:16px;background:var(--soft);margin-bottom:18px}
.receipt-registration-panel .drawer-foot{display:flex;justify-content:space-between;gap:12px}
@media(max-width:450px){.receipt-registration-panel .receipt-registration-amount{font-size:24px}.receipt-registration-panel .receipt-registration-options{grid-template-columns:1fr}.receipt-registration-panel .receipt-selected-case{padding:14px}}

.receipt-registration-panel :is(.receipt-registration-amount,.receipt-registration-payer,.receipt-case-number,.receipt-case-title){color:var(--text)}

/* Same placement dialog for initial registration and reasoned correction. */
.request-allocation-picker{min-width:0;margin:20px 0}
.request-allocation-choices{display:grid;gap:12px}
.request-allocation-row{border:1px solid var(--line);border-radius:6px;padding:14px;min-width:0;overflow-wrap:anywhere}
.request-allocation-row p{font-size:var(--label-size);margin:6px 0;color:var(--muted)}
.request-allocation-row .checkline{margin:0 0 8px}
.request-allocation-row label{min-width:0}
.request-allocation-row input[inputmode=decimal]{max-width:220px}
.request-allocation-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px}
.request-allocation-summary dt{font-size:var(--label-size);color:var(--muted)}
.request-allocation-summary dd{margin:4px 0;overflow-wrap:anywhere}
.receipt-correction-actions{display:flex;flex-wrap:wrap;gap:8px}
.bank-receipt-placement{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
