@layer crm-admin-ui {
/* Shared finance mobile layout. Desktop keeps the existing workspace. */
html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters,
html body.crm-admin-ui.crm-finance-workspace .fw-advanced-fields{display:contents}
html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters>summary,
html body.crm-admin-ui.crm-finance-workspace .fw-mobile-action{display:none !important}
html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsExtraFilters,
html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .bookings-extra-fields{display:contents}
html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsExtraFilters>summary{display:none}
html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions,
html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions>div{display:contents}
html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions>summary{display:none}
@media (max-width:600px){
 html body.crm-admin-ui.crm-finance-workspace .fw-filters{align-items:end !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-filters .fw-search{flex:1 1 100% !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-filters>label:not(.fw-search){flex:1 1 55% !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters{display:block !important;flex:1 1 35% !important;min-width:0 !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters>summary{display:flex !important;align-items:center;justify-content:center;min-height:44px;padding:8px;border:1px solid var(--fw-border);border-radius:6px;background:var(--fw-surface);color:var(--fw-text);font-size:12px;cursor:pointer;list-style:none}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters>summary::-webkit-details-marker{display:none}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters>summary::after{content:'⌄';margin-left:8px}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-filters[open]{flex-basis:100% !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-fields{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:10px}
 html body.crm-admin-ui.crm-finance-workspace .fw-advanced-fields label:first-child{grid-column:1/-1}
 html body.crm-admin-ui.crm-finance-workspace .fw-filters input,
 html body.crm-admin-ui.crm-finance-workspace .fw-filters select{min-height:44px !important;font-size:16px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id]{grid-template-columns:20px minmax(0,1fr) minmax(86px,auto) !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(7){grid-column:2/4 !important;grid-row:5 !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-row-actions{justify-content:flex-start !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table .fw-row-actions>.fw-mobile-action{display:inline-flex !important;align-items:center;justify-content:center;min-height:44px !important;padding:8px 10px !important;font-size:12px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-row-menu>summary{min-width:44px !important;min-height:44px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table input[type="checkbox"]{width:20px !important;height:20px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-tabs button,
 html body.crm-admin-ui.crm-finance-workspace .fw-pagination button,
 html body.crm-admin-ui.crm-finance-workspace .fw-tools button{min-height:44px !important}
 html body.crm-admin-ui.crm-billables-workspace .fw-table .action-btn,
 html body.crm-admin-ui.crm-billables-workspace .billable-group-toggle{min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-summary-card.links .accounting-quick-links{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 html body.crm-admin-ui[data-crm-route="finance.html"] .accounting-quick-link{min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .toolbar{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsExtraFilters{display:block !important;grid-column:1/-1;order:3}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsExtraFilters>summary{display:flex !important;min-height:44px;align-items:center;justify-content:center;border:1px solid var(--ui-line);border-radius:6px;cursor:pointer;list-style:none}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsExtraFilters>summary::after{content:"⌄";margin-left:8px}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .bookings-extra-fields{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .bookings-extra-fields>*{min-width:0;width:100%;min-height:44px}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsSearch{order:-2}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsPreset,html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsStatus{order:-1}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsRangeLabel{order:4}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsSearch,
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] #bookingsRangeLabel{grid-column:1/-1 !important}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .toolbar :is(button,input,select),
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] td:nth-child(12) button{min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="finance_bookings_report.html"] .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] main{display:flex !important;flex-direction:column !important}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] main>section:nth-of-type(1){order:2}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] main>section:nth-of-type(2){order:1}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] main>section:nth-of-type(n+3){order:3}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions{display:block !important;width:100%}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions>summary{display:flex !important;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--ui-line);border-radius:6px;list-style:none;cursor:pointer}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions>summary::after{content:"⌄";margin-left:8px}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions>div{display:grid !important;gap:8px;padding-top:8px}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #receiptManageActions button{min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] #uploadZone{min-height:70px !important}
 html body.crm-admin-ui[data-crm-route="finance_expenses.html"] :is(#processBtn,#uploadOrgId){min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] main{display:flex !important;flex-direction:column !important;min-width:0 !important;padding:10px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(1){order:5}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(2){order:1}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(3){order:2}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(4){order:3}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(5){order:4}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>.card{min-width:0 !important;padding:12px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-selector{flex-wrap:wrap !important;margin:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;margin:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .stat-card{min-width:0 !important;padding:10px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .stat-value{font-size:20px !important;overflow-wrap:anywhere !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;margin:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar input{grid-column:1/-1 !important;min-width:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar select{min-width:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar :is(input,select,button),
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-btn{min-height:44px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(5)>div:first-child,
 html body.crm-admin-ui[data-crm-route="bank.html"] main>section:nth-of-type(5)>div:first-child>div{flex-wrap:wrap !important;gap:8px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .view-toggle{margin:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-item{grid-template-columns:40px minmax(0,1fr) !important;gap:8px !important;padding:12px 8px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-date{grid-column:1;grid-row:1 / 3}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-info{grid-column:2;min-width:0 !important;overflow-wrap:anywhere !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-amount-col{grid-column:2;align-items:flex-start !important;min-width:0 !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-amount{font-size:18px !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-amount-col>div{max-width:100%;flex-wrap:wrap !important}
 html body.crm-admin-ui[data-crm-route="bank.html"] .mt940-import-grid{grid-template-columns:minmax(0,1fr) !important}
}
}
/* The three frequently checked finance screens use a compact phone hierarchy. */
@layer crm-admin-ui {
 html body.crm-admin-ui.crm-finance-workspace .fw-mobile-management{display:none !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-tab-short{display:none !important}
 @media(max-width:700px){
  html body.crm-admin-ui.crm-finance-workspace .fw-tabs .fw-tab-long{display:none !important}
  html body.crm-admin-ui.crm-finance-workspace .fw-tabs .fw-tab-short{display:inline !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .crm-page-hero-actions{display:none !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-menu-items .fw-mobile-management{display:flex !important;align-items:center;min-height:44px !important}
 }
}
@layer crm-admin-ui {
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-title,
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-stats-toggle,
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-tools-toggle,
 html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-toggle,
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-import-action,
 html body.crm-admin-ui[data-crm-route="bank.html"] .bank-import-close{display:none !important}
 @media(max-width:700px){
  html body.crm-admin-ui[data-crm-route="bank.html"]{--crm-page-hero-space:0px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] > .crm-page-hero{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] > header:not(.nav-header){display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] main{display:flex !important;flex-direction:column !important;gap:10px !important;padding:12px !important;min-width:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > .bank-phone-title{display:block !important;order:0;margin:0 0 2px !important;font:650 22px/1.25 system-ui,sans-serif !important;color:var(--ui-text,var(--se-text,#f7f5f0)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(1){order:5}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(2){order:1}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(3){order:2}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(4){order:3}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(5){order:4}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > .card{min-width:0 !important;padding:11px !important;border-radius:12px !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-selector{display:grid !important;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:6px !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-btn{width:100%;min-width:0 !important;min-height:44px !important;padding:7px 9px !important;font-size:12px !important;overflow-wrap:anywhere}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-btn.active{background:var(--ui-petrol,#176c70) !important;border-color:var(--ui-petrol,#176c70) !important;color:#fff !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-btn.active .mut{color:#e7f3f1 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:7px !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid .stat-card{display:none !important;min-width:0;padding:10px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid .stat-card:first-child,
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid.bank-phone-stats-open .stat-card{display:block !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid .stat-card:first-child{grid-column:1/-1 !important;border-left:3px solid var(--ui-petrol,#176c70) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid .stat-value{font-size:24px !important;line-height:1.1 !important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  html body.crm-admin-ui[data-crm-route="bank.html"] #statsGrid .stat-label{font-size:11px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-stats-toggle{display:block !important;width:100%;min-height:40px !important;margin-top:7px !important;padding:7px !important;background:transparent !important;color:var(--ui-link,var(--se-text,#f7f5f0)) !important;border-color:var(--ui-line,var(--se-border,#707979)) !important;font-size:12px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar{display:grid !important;grid-template-columns:minmax(0,1fr) 54px 44px !important;gap:7px !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar input{grid-column:1/-1 !important;min-width:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar select{grid-column:1 !important;min-width:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar :is(input,select,button){min-height:44px !important;font-size:13px !important;padding:8px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .search-bar input{font-size:16px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-transactions-heading{display:flex !important;align-items:center !important;gap:8px !important;margin-bottom:9px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-transactions-heading h3{font-size:18px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-phone-tools-toggle{display:inline-flex !important;align-items:center;justify-content:center;min-height:40px !important;margin-left:auto !important;background:transparent !important;color:var(--ui-text,var(--se-text,#f7f5f0)) !important;border-color:var(--ui-line,var(--se-border,#707979)) !important;font-size:12px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools.bank-phone-tools-open{display:flex !important;flex-direction:column !important;align-items:stretch !important;position:absolute;z-index:5;right:11px;top:52px;min-width:min(240px,calc(100vw - 40px));padding:9px !important;border:1px solid var(--ui-line,var(--se-border,#707979));border-radius:10px;background:var(--ui-panel,var(--se-surface,#242629));box-shadow:0 12px 32px #0004}
  html body.crm-admin-ui[data-crm-route="bank.html"] main > section:nth-of-type(5){position:relative}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools :is(button,.view-toggle){min-width:0;width:100%}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools button{min-height:44px !important;font-size:12px !important;padding:8px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools .bank-phone-import-action{display:block !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools .view-toggle{display:grid !important;grid-template-columns:1fr 1fr;gap:6px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankTransactionTools .view-toggle button.active{background:var(--ui-petrol,#176c70) !important;border-color:var(--ui-petrol,#176c70) !important;color:#fff !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankImportSection{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankImportSection.bank-phone-import-open{display:block !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] #bankImportSection .bank-import-close{display:inline-flex !important;align-items:center;justify-content:center;min-height:40px !important;padding:7px 11px !important;background:transparent !important;color:var(--ui-text,var(--se-text,#f7f5f0)) !important;border-color:var(--ui-line,var(--se-border,#707979)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-list{gap:0 !important;background:transparent !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-item{display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;gap:3px 8px !important;align-items:start !important;padding:11px 8px !important;min-width:0;border-left-width:3px !important;border-bottom:1px solid var(--ui-line,var(--se-border,#515858)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-info{grid-column:1 !important;grid-row:1 !important;min-width:0 !important;gap:3px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-counterparty{font-size:14px !important;line-height:1.3 !important;overflow-wrap:anywhere}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-description{font-size:12px !important;line-height:1.35 !important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ui-muted,var(--se-text-2,#aeb8b9)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-info .statement-account{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-info .statement-badges{margin-top:2px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-date{grid-column:1 !important;grid-row:2 !important;display:flex !important;flex-direction:row !important;align-items:center !important;gap:4px !important;min-width:0 !important;font-size:11px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-date-day{font-size:11px !important;font-weight:600 !important;color:var(--ui-muted,var(--se-text-2,#aeb8b9)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-date-month{font-size:11px !important;text-transform:none !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-date-time{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-amount-col{display:contents !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-amount{grid-column:2 !important;grid-row:1 !important;justify-self:end;font-size:16px !important;font-family:inherit !important;font-variant-numeric:tabular-nums;white-space:nowrap !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-balance{display:none !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-toggle{display:inline-flex !important;grid-column:2 !important;grid-row:2 !important;justify-self:end;align-items:center;justify-content:center;width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;font-size:22px !important;line-height:1 !important;background:transparent !important;color:var(--ui-text,var(--se-text,#f7f5f0)) !important;border-color:var(--ui-line,var(--se-border,#707979)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-panel{grid-column:1/-1 !important;grid-row:3 !important;display:none !important;padding-top:8px}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-item.actions-open .statement-actions-panel{display:block !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-panel > div{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px !important;margin:0 !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-panel :is(button,a){min-height:44px !important;display:flex !important;align-items:center;justify-content:center;padding:7px !important;font-size:12px !important;text-align:center;background:var(--ui-panel,var(--se-surface,#242629)) !important;color:var(--ui-text,var(--se-text,#f7f5f0)) !important;border:1px solid var(--ui-line,var(--se-border,#707979)) !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .statement-actions-panel button:last-child{color:#fff !important;background:#8e2e2e !important;border-color:#8e2e2e !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-transaction-detail{width:calc(100vw - 16px) !important;max-width:none !important;max-height:calc(100dvh - 24px) !important;margin:auto !important;border-radius:14px !important;overflow:auto !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-transaction-detail header{padding:14px 16px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-detail-summary{padding:16px 16px 0 !important;grid-template-columns:minmax(0,1fr) auto}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-detail-summary span{font-size:17px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-transaction-detail dl{grid-template-columns:minmax(0,1fr) !important;gap:12px !important;padding:16px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-detail-extra{margin:0 16px 16px !important}
  html body.crm-admin-ui[data-crm-route="bank.html"] .bank-detail-extra dl{padding:8px 0 !important}
 }
}
@layer crm-admin-ui {
 @media(max-width:700px){
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]){--crm-page-hero-space:0px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) > .crm-page-hero{min-height:0 !important;max-width:calc(100% - 24px) !important;margin:8px 12px 4px !important;padding:10px 2px !important;display:block !important;background:none !important;background-image:none !important;border:0 !important;box-shadow:none !important;color:var(--fw-text) !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .crm-page-hero :is(.crm-page-hero-eyebrow,.crm-page-hero-intro,blockquote){display:none !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .crm-page-hero h1.crm-page-hero-title{font:650 22px/1.2 system-ui,sans-serif !important;color:var(--fw-text) !important;-webkit-text-fill-color:var(--fw-text) !important;letter-spacing:0 !important;margin:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .crm-page-hero-actions{margin-top:8px !important;gap:6px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .crm-page-hero-actions :is(a,button){min-height:40px !important;padding:6px 10px !important;font-size:11px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) main{padding:0 10px 24px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:5px 10px !important;padding:8px 2px 12px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-summary>div{min-width:0 !important;padding:3px 0 !important;border:0 !important;grid-template-columns:auto minmax(0,1fr) !important;gap:1px 5px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-summary :is(span,small){font-size:10px !important;overflow-wrap:anywhere}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-summary strong{font-size:17px !important;line-height:1.1 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-tabs{gap:12px !important;margin-top:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-tabs button{min-width:auto !important;white-space:nowrap !important;font-size:12px !important;padding:8px 1px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-list-heading{padding:9px 10px 0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-list-heading h2{display:none !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-filters{padding:9px 10px 9px !important;gap:7px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-filters .fw-search{flex:1 1 100% !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-filters>label:not(.fw-search){flex:1 1 55% !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-filters{display:block !important;flex:1 1 35% !important;min-width:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-filters>summary{display:flex !important;align-items:center;justify-content:center;min-height:44px !important;padding:8px !important;border:1px solid var(--fw-border) !important;border-radius:6px;background:var(--fw-surface);color:var(--fw-text);font-size:12px;cursor:pointer;list-style:none}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-filters[open]{flex-basis:100% !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-fields{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-fields label:first-child{grid-column:1/-1}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-filters :is(input,select){min-height:44px !important;font-size:16px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table thead th:first-child::after{content:'' !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody{padding:0 7px 7px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id]:not([hidden]){grid-template-columns:24px minmax(0,1fr) auto !important;gap:4px 8px !important;padding:10px !important;margin:0 0 7px !important;border:1px solid var(--fw-border) !important;border-radius:10px !important;background:var(--fw-surface) !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:first-child{grid-column:1 !important;grid-row:1/5 !important;padding-top:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:first-child input{width:24px !important;height:24px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(2){grid-column:2 !important;grid-row:1 !important;min-width:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(2) .fw-number{font-size:13px !important;font-weight:650 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(2)>small{font-size:10px !important;line-height:1.2 !important;color:var(--fw-muted) !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(3){grid-column:2/4 !important;grid-row:2 !important;font-size:12px !important;color:var(--fw-muted) !important;line-height:1.3 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(4){grid-column:3 !important;grid-row:1 !important;text-align:right !important;white-space:nowrap !important;align-self:start !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(4) strong{font-size:14px !important;font-variant-numeric:tabular-nums}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-amount .fw-tax-detail,
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-amount .fw-remaining-detail{display:none !important}
  html body.crm-admin-ui.crm-finance-workspace[data-crm-route="finance_invoices.html"] .fw-table tbody tr[data-document-id] .fw-amount[data-has-partial="true"] .fw-remaining-detail{display:block !important;font-size:10px !important;color:var(--fw-muted) !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(6){grid-column:2/4 !important;grid-row:3 !important;gap:4px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(5){grid-column:2 !important;grid-row:4 !important;font-size:10px !important;line-height:1.2 !important;align-self:center !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(5)::before{display:inline !important;margin-right:4px !important;font-size:10px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] td:nth-child(7){grid-column:2/4 !important;grid-row:5 !important;align-self:start !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-row-actions{display:flex !important;gap:5px !important;flex-wrap:wrap !important;justify-content:flex-start !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-row-actions>.fw-mobile-action{display:inline-flex !important;min-height:40px !important;padding:6px 10px !important;font-size:11px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-row-actions>[data-edit],
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-row-actions>[data-convert]{display:none !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-table tbody tr[data-document-id] .fw-row-menu>summary{min-width:40px !important;min-height:40px !important;width:40px !important;height:40px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-family-toggle{min-width:30px !important;min-height:30px !important}
 }
 @media(max-width:350px){
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .dash-menu-panel{right:14px !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-tabs{gap:8px !important;max-width:100% !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-fields{min-width:0 !important}
  html body.crm-admin-ui.crm-finance-workspace:is([data-crm-route="finance_invoices.html"],[data-crm-route="finance_quotes.html"]) .fw-advanced-fields :is(label,input,select){box-sizing:border-box !important;min-width:0 !important;max-width:100% !important;width:100% !important}
 }
}
