/* Readable supporting text and keyboard-accessible tables across the cabinet. */
.table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#aab2aa #f3f5f1}
.table-wrap:focus-visible{outline:3px solid #87620a;outline-offset:3px}
.cabinet-mode .cc-table th,.cabinet-mode .cc-table small,.cabinet-mode .cc-metric small,.cabinet-mode .cc-dateline,.cabinet-mode .cc-note,.cabinet-mode .cc-coverage li{font-size:12px}
.cabinet-mode .cc-metric>span,.cabinet-mode .cc-section>header p,.cabinet-mode .page-head p{font-size:13px}
.cabinet-mode .cc-metric strong{overflow-wrap:anywhere}
.cabinet-mode .cc-person{min-height:44px}
.cabinet-mode .page-head h1{overflow-wrap:anywhere}
.cabinet-mode .cc-filters label{font-size:12px}
.cabinet-mode .cc-table th{white-space:normal;min-width:100px}
.cabinet-mode .cc-table td:first-child{min-width:180px}
.cabinet-mode .cc-facts dd{flex-shrink:0}
.cabinet-mode .cc-pages .secondary{min-height:44px}
.cabinet-mode .cc-person-head h3{overflow-wrap:anywhere}
.cabinet-mode .profile-tabs button{min-height:44px}
.request-dialog .close,.cc-dialog .close{min-height:44px;min-width:44px;flex:none}
@media(max-width:650px){
 .workspace-search input{font-size:16px!important}
 .cabinet-mode .page-head{flex-wrap:wrap;gap:12px}
 .cabinet-mode .page-head .secondary{min-height:44px;font-size:12px}
 .cabinet-mode .cc-metric strong,.cabinet-mode .metric strong{font-size:25px;letter-spacing:-.6px}
 .cabinet-mode .cc-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .cabinet-mode .cc-filters label{min-width:0}
 .cabinet-mode .cc-metric>span{min-height:0}
 .cabinet-mode .metrics .metric strong{overflow-wrap:anywhere}
 .cabinet-mode .profile-tabs{gap:4px;flex-wrap:nowrap;overflow-x:auto}
 .cabinet-mode .profile-tabs button{flex:none;white-space:nowrap}
 .request-dialog .dialog-head h2{font-size:22px}
 .auth-inline a,.auth-bottom a{display:inline-flex;align-items:center;min-height:44px}
 .password-toggle{min-width:72px}
}

/* Shared field geometry across owner, partner and profile pages. */
:root{--control-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23636b62' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
select:not([multiple]):not([size]),select[size="1"]:not([multiple]){
 -webkit-appearance:none;appearance:none;min-height:44px;padding-right:44px;
 background-image:var(--control-chevron);background-position:right 14px center;background-size:16px 16px;background-repeat:no-repeat;text-overflow:ellipsis;
}
.bank-upload label{margin:0;min-width:0}
.bank-upload button{min-height:49px;flex-shrink:0}
.bank-report-header{flex-wrap:wrap}
.bank-report-header>div{min-width:0}
.bank-history select{margin-bottom:0}
@media(max-width:650px){
 .cc-filters .cc-reset{min-height:44px}
 .nav-close{min-height:44px;min-width:44px}
 .cc-chart-select{flex-wrap:wrap;align-items:flex-start}
 .cc-chart-select select{max-width:100%}
}
@media(forced-colors:active){select:not([multiple]):not([size]),select[size="1"]:not([multiple]){-webkit-appearance:auto;appearance:auto;background-image:none;padding-right:12px}}

/* Keep selected filter labels readable on narrow screens. */
@media(max-width:480px){.cabinet-mode .cc-filters{grid-template-columns:minmax(0,1fr)}}
/* The page title already names the invoice registry. */
.bank-workspace>.cc-section-heading h2{display:none}
.bank-workspace>.cc-section-heading p{margin-top:0}

/* Disclosure rows keep the same inset and hit area as form controls. */
.cabinet-mode details>summary{
 position:relative;display:block;list-style:none;min-height:44px;
 padding:12px 44px 12px 14px;border-radius:7px;cursor:pointer;
 font-size:13px;font-weight:650;line-height:1.6;overflow-wrap:anywhere;
}
.cabinet-mode details>summary::-webkit-details-marker{display:none}
.cabinet-mode details>summary::after{
 content:"";position:absolute;right:14px;top:50%;width:16px;height:16px;
 background:var(--control-chevron) center/16px 16px no-repeat;
 transform:translateY(-50%);pointer-events:none;
}
.cabinet-mode details[open]>summary::after{transform:translateY(-50%) rotate(180deg)}
.cabinet-mode details>summary:hover{background:var(--soft)}
.cabinet-mode details[open]>summary{background:#eef1e9}
.bank-workspace details>p{padding:0 14px;overflow-wrap:anywhere}

/* Modal titles and long client details must leave room for their actions. */
.cc-dialog .dialog-head,.request-dialog .dialog-head{align-items:flex-start;gap:16px}
.cc-dialog .dialog-head h2,.request-dialog .dialog-head h2{
 margin:0;min-width:0;padding-top:5px;overflow-wrap:anywhere;
}
.cc-person-head>div{min-width:0;overflow-wrap:anywhere}
.cc-dialog .cc-facts dd{flex:1 1 auto;min-width:0;max-width:65%;overflow-wrap:anywhere}
.cc-dialog .cc-facts dt{flex:0 1 45%;overflow-wrap:anywhere}
.cc-dialog .cc-path li>div{overflow-wrap:anywhere}
.cc-dialog,.request-dialog{overscroll-behavior:contain;scrollbar-gutter:stable}
.cc-table td>strong+.cc-person{display:block;max-width:100%;margin-top:4px}

/* Invoice sections use the same surfaces and inner alignment as analytics. */
.cabinet-mode .bank-workspace .cc-group{
 margin-top:24px;padding:23px 24px;background:var(--surface);
 border:1px solid var(--line);border-radius:9px;min-width:0;
}
.cabinet-mode .bank-workspace .cc-group>header{padding:0;margin-bottom:18px}
.cabinet-mode .bank-workspace .cc-empty{margin:0;padding:12px 0}

/* Comfortable header actions, including the mobile menu and search. */
.cabinet-mode .page-head .secondary,.cabinet-mode .workspace-site{min-height:44px}
.workspace-search button,.workspace-search input{min-height:44px}
.nav-toggle{min-height:44px;min-width:44px}
@media(max-width:650px){
 .cabinet-mode .page-head .secondary{min-height:44px}
 .workspace-search button{min-height:44px}
 .cc-dialog .dialog-head h2{font-size:21px}
 .cc-dialog .cc-facts>div{align-items:flex-start}
 .cabinet-mode .bank-workspace .cc-group{padding:20px 17px}
}
@media(forced-colors:active){
 .cabinet-mode details>summary{display:list-item;list-style:disclosure-closed;padding-right:14px}
 .cabinet-mode details[open]>summary{list-style:disclosure-open}
 .cabinet-mode details>summary::after{display:none}
}
