@layer crm-admin-ui {
/* Standalone CRM finance pages only; document editors and legacy finance are untouched. */
.crm-finance-workspace{--fw-surface:#fff !important;--fw-background:#f7f6f2 !important;--fw-border:#e2e0d9 !important;--fw-text:#242724 !important;--fw-muted:#676c66 !important;--fw-hover:#f4f3ef !important;--fw-gold:#caa84d !important}
html[data-theme="dark"] .crm-finance-workspace,body[data-theme="dark"].crm-finance-workspace{--fw-surface:#242728 !important;--fw-background:#1c2021 !important;--fw-border:#414747 !important;--fw-text:#f1f0eb !important;--fw-muted:#b3b9b4 !important;--fw-hover:#303536 !important}
html body.crm-admin-ui.crm-finance-workspace main{display:block !important;padding:0 24px 24px !important;min-width:0 !important;background:transparent !important}
.crm-finance-workspace [hidden]{display:none !important}
.crm-finance-workspace .fw-original{display:none !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace{color:var(--fw-text) !important;min-width:0 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace button,html body.crm-admin-ui.crm-finance-workspace .fw-workspace input,html body.crm-admin-ui.crm-finance-workspace .fw-workspace select,html body.crm-admin-ui.crm-finance-workspace .fw-dialog button,html body.crm-admin-ui.crm-finance-workspace .fw-dialog select,html body.crm-admin-ui.crm-finance-workspace .fw-dialog input{font:inherit !important;font-size:13px !important;color:var(--fw-text) !important;background:var(--fw-surface) !important;border:1px solid var(--fw-border) !important;border-radius:6px !important;min-height:36px !important;padding:7px 10px !important;box-shadow:none !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace button,html body.crm-admin-ui.crm-finance-workspace .fw-dialog button{font-weight:500 !important;cursor:pointer !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace button:hover,html body.crm-admin-ui.crm-finance-workspace .fw-menu-items a:hover,html body.crm-admin-ui.crm-finance-workspace .fw-menu-items button:hover{background:var(--fw-hover) !important;border-color:var(--fw-border) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace button:disabled{opacity:.45 !important;cursor:default !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace :focus-visible,html body.crm-admin-ui.crm-finance-workspace .fw-dialog :focus-visible,html body.crm-admin-ui.crm-finance-workspace .fw-create :focus-visible{outline:2px solid var(--fw-gold) !important;outline-offset:3px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary{display:grid !important;grid-template-columns:repeat(4,1fr) !important;padding:20px 0 22px !important;gap:18px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary>div{display:grid !important;grid-template-columns:auto 1fr !important;gap:3px 9px !important;border-right:1px solid var(--fw-border) !important;padding-left:18px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary>div:first-child{padding-left:0 !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary>div:last-child{border:0 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary span{grid-column:1/-1 !important;font-size:12px !important;color:var(--fw-muted) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary strong{font-size:23px !important;font-weight:600 !important;line-height:1.25 !important;letter-spacing:-.5px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-summary small{align-self:center !important;color:var(--fw-muted) !important;font-size:12px !important;white-space:nowrap !important}
html body.crm-admin-ui.crm-finance-workspace .fw-list{background:var(--fw-surface) !important;border:1px solid var(--fw-border) !important;border-radius:10px !important;min-width:0 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-list-heading{padding:20px 20px 0 !important;display:flex !important;align-items:center !important;justify-content:space-between !important;gap:12px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-list-heading h2{font-size:17px !important;line-height:1.35 !important;margin:0 0 4px !important;font-weight:600 !important;letter-spacing:-.2px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-muted{color:var(--fw-muted) !important;font-size:12px !important}html body.crm-admin-ui.crm-finance-workspace .fw-tools{display:flex !important;align-items:center !important;gap:7px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-filters{display:flex !important;align-items:end !important;gap:10px !important;flex-wrap:wrap !important;padding:19px 20px 16px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-filters label,html body.crm-admin-ui.crm-finance-workspace .fw-dialog label{display:grid !important;gap:6px !important;color:var(--fw-muted) !important;font-size:11px !important;font-weight:500 !important;min-width:0 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-filters .fw-search{flex:1 !important;min-width:180px !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters input,html body.crm-admin-ui.crm-finance-workspace .fw-filters select{width:100% !important;max-width:100% !important}
html body.crm-admin-ui.crm-finance-workspace .fw-filters label:not(.fw-search){flex:0 1 155px !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters select{max-width:190px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-filters #fwReset{border-color:transparent !important;color:var(--fw-muted) !important;font-size:12px !important;padding-inline:3px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table-wrap{overflow-x:auto !important;min-width:0 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table{width:100% !important;border-collapse:collapse !important;color:var(--fw-text) !important;font-size:13px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table th{background:var(--fw-hover) !important;color:var(--fw-muted) !important;font-size:11px !important;letter-spacing:.02em !important;font-weight:500 !important;white-space:nowrap !important;padding:11px 12px !important;border-top:1px solid var(--fw-border) !important;border-bottom:1px solid var(--fw-border) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table td{padding:14px 12px !important;border-bottom:1px solid var(--fw-border) !important;font-size:13px !important;vertical-align:middle !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr:last-child td{border-bottom:0 !important}html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr:hover{background:var(--fw-hover) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table td:first-child,html body.crm-admin-ui.crm-finance-workspace .fw-table th:first-child{padding-left:20px !important;width:42px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table input[type="checkbox"]{min-height:0 !important;width:15px !important;height:15px !important;padding:0 !important;accent-color:var(--fw-gold) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table td:nth-child(2){min-width:150px !important;max-width:290px !important}html body.crm-admin-ui.crm-finance-workspace .fw-table td:nth-child(3){max-width:240px !important;overflow-wrap:anywhere !important}
html body.crm-admin-ui.crm-finance-workspace .fw-number{color:var(--fw-text) !important;text-decoration:none !important;font-weight:600 !important}html body.crm-admin-ui.crm-finance-workspace .fw-number:hover{text-decoration:underline !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table small{display:block !important;font-size:11px !important;line-height:1.6 !important;color:var(--fw-muted) !important;font-weight:400 !important}
html body.crm-admin-ui.crm-finance-workspace .fw-amount{white-space:nowrap !important}html body.crm-admin-ui.crm-finance-workspace .fw-amount strong{font-size:13px !important;font-weight:500 !important;font-variant-numeric:tabular-nums !important}
html body.crm-admin-ui.crm-finance-workspace .fw-table .status-badge{font-weight:500 !important;font-size:10px !important;padding:3px 7px !important;border-radius:4px !important;white-space:nowrap !important}
html body.crm-admin-ui.crm-finance-workspace .fw-row-actions{display:flex !important;align-items:center !important;justify-content:flex-end !important;gap:6px !important;white-space:nowrap !important}
html body.crm-admin-ui.crm-finance-workspace .fw-row-actions>button{min-height:30px !important;font-size:12px !important;padding:5px 9px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu{position:relative !important;text-align:left !important}html body.crm-admin-ui.crm-finance-workspace .fw-menu>summary{list-style:none !important;cursor:pointer !important;border:1px solid var(--fw-border) !important;background:var(--fw-surface) !important;color:var(--fw-text) !important;border-radius:6px !important;font-size:12px !important;font-weight:500 !important;padding:9px 11px !important;white-space:nowrap !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu>summary::-webkit-details-marker{display:none !important}html body.crm-admin-ui.crm-finance-workspace .fw-menu>summary::after{content:'⌄' !important;padding-left:9px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu-items{display:grid !important;position:absolute !important;right:0 !important;top:calc(100% + 5px) !important;z-index:60 !important;background:var(--fw-surface) !important;color:var(--fw-text) !important;border:1px solid var(--fw-border) !important;border-radius:8px !important;box-shadow:0 8px 28px #0002 !important;padding:5px !important;min-width:190px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu-items button,html body.crm-admin-ui.crm-finance-workspace .fw-menu-items a{display:block !important;text-align:left !important;color:var(--fw-text) !important;text-decoration:none !important;background:transparent !important;border:0 !important;border-radius:4px !important;padding:9px 10px !important;min-height:36px !important;font-size:12px !important;font-weight:400 !important;white-space:nowrap !important}
html body.crm-admin-ui.crm-finance-workspace .fw-row-menu>summary{font-size:0 !important;width:31px !important;height:31px !important;padding:0 !important;display:flex !important;align-items:center !important;justify-content:center !important}html body.crm-admin-ui.crm-finance-workspace .fw-row-menu>summary::after{content:'⋯' !important;font-size:21px !important;padding:0 !important;line-height:1 !important}
/* Fixed menus avoid clipping inside a horizontally scrollable table. Position is set on toggle. */
.fw-row-menu[open]>.fw-menu-items{position:fixed !important;top:var(--menu-top,50%) !important;left:var(--menu-left,50%) !important;right:auto !important;max-height:min(70vh,430px) !important;overflow:auto !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu-items .fw-delete{color:#b53939 !important;border-top:1px solid var(--fw-border) !important;border-radius:0 !important;margin-top:3px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-pagination{border-top:1px solid var(--fw-border) !important;padding:13px 20px !important;display:flex !important;align-items:center !important;justify-content:space-between !important;gap:10px !important;color:var(--fw-muted) !important;font-size:12px !important}html body.crm-admin-ui.crm-finance-workspace .fw-pagination>div{display:flex !important;gap:6px !important}html body.crm-admin-ui.crm-finance-workspace .fw-pagination button{min-height:32px !important;font-size:12px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-bulk{display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:10px !important;padding:10px 20px !important;border-top:1px solid var(--fw-border) !important;background:var(--fw-hover) !important}html body.crm-admin-ui.crm-finance-workspace .fw-bulk strong{font-size:12px !important;font-weight:500 !important}html body.crm-admin-ui.crm-finance-workspace .fw-bulk #invoiceSelectionMeta,html body.crm-admin-ui.crm-finance-workspace .fw-bulk #quoteSelectionMeta{display:none !important}
html body.crm-admin-ui.crm-finance-workspace .fw-empty{text-align:center !important;padding:45px 20px !important;color:var(--fw-muted) !important}html body.crm-admin-ui.crm-finance-workspace .fw-empty strong{font-weight:500 !important;color:var(--fw-text) !important}html body.crm-admin-ui.crm-finance-workspace .fw-empty p{font-size:12px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-tabs{display:flex !important;gap:22px !important;border-bottom:1px solid var(--fw-border) !important;margin-top:10px !important}html body.crm-admin-ui.crm-finance-workspace .fw-tabs button{border:0 !important;background:none !important;border-radius:0 !important;padding:11px 0 !important;min-width:60px !important;color:var(--fw-muted) !important;border-bottom:2px solid transparent !important}html body.crm-admin-ui.crm-finance-workspace .fw-tabs button[aria-selected="true"]{border-bottom-color:var(--fw-gold) !important;color:var(--fw-text) !important}
html body.crm-admin-ui.crm-finance-workspace #fwPeriodic{margin-top:20px !important;background:var(--fw-surface) !important;border-color:var(--fw-border) !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic .billing-cycle-panel{background:var(--fw-surface) !important;border:0 !important;color:var(--fw-text) !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic label,html body.crm-admin-ui.crm-finance-workspace #fwPeriodic .billing-cycle-switch,html body.crm-admin-ui.crm-finance-workspace #fwPeriodic .mut{color:var(--fw-muted) !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic input,html body.crm-admin-ui.crm-finance-workspace #fwPeriodic select{width:100% !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic input[type="checkbox"]{width:auto !important;min-height:0 !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic .table-wrap{border-color:var(--fw-border) !important}html body.crm-admin-ui.crm-finance-workspace #fwPeriodic td,html body.crm-admin-ui.crm-finance-workspace #fwPeriodic th{border-color:var(--fw-border) !important;color:var(--fw-text) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-dialog{background:var(--fw-surface) !important;color:var(--fw-text) !important;width:min(520px,calc(100vw - 32px)) !important;max-height:calc(100dvh - 40px) !important;overflow:auto !important;border:1px solid var(--fw-border) !important;border-radius:12px !important;padding:25px !important;box-shadow:0 24px 90px #0004 !important}
html[data-theme="dark"] .fw-dialog,body[data-theme="dark"] .fw-dialog{}
html body.crm-admin-ui.crm-finance-workspace .fw-dialog::backdrop{background:#10151599 !important;backdrop-filter:blur(3px) !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog h2{font-size:21px !important;margin:0 0 10px !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog p{font-size:13px !important;color:var(--fw-muted) !important;line-height:1.6 !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog #fwBillablesFields{display:grid !important;gap:16px !important;margin-top:22px !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog label{font-size:12px !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog input,html body.crm-admin-ui.crm-finance-workspace .fw-dialog select{min-height:42px !important;width:100% !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog-actions{display:flex !important;gap:8px !important;justify-content:flex-end !important;margin-top:24px !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog .primary{background:#caa84d !important;color:#242724 !important;border-color:#caa84d !important}
html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-create>summary,html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-create-link{display:inline-flex !important;align-items:center !important;min-height:38px !important;background:#caa84d !important;border:1px solid #caa84d !important;color:#252720 !important;padding:9px 13px !important;font-size:12px !important;border-radius:5px !important;font-weight:500 !important;text-decoration:none !important}html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-create{}html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-menu-items{left:0 !important;right:auto !important}
html body.crm-admin-ui.crm-finance-workspace .fw-family-toggle{display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:24px !important;width:24px !important;padding:0 !important;margin-right:4px !important;border:0 !important;background:none !important}html body.crm-admin-ui.crm-finance-workspace .fw-child{background:var(--fw-hover) !important}html body.crm-admin-ui.crm-finance-workspace .fw-child td:nth-child(2){padding-left:30px !important}
html body.crm-admin-ui.crm-finance-workspace .fw-sr{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}@media(max-width:1000px){html body.crm-admin-ui.crm-finance-workspace .fw-filters label:not(.fw-search){flex:1 1 120px !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters .fw-search{flex-basis:250px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary{gap:10px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary>div{grid-template-columns:1fr !important;padding-left:10px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary small{grid-column:1/-1 !important}html body.crm-admin-ui.crm-finance-workspace .fw-table th,html body.crm-admin-ui.crm-finance-workspace .fw-table td{padding:12px 9px !important}}@media(max-width:700px){html body.crm-admin-ui.crm-finance-workspace main{padding:0 10px 20px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary{grid-template-columns:repeat(2,1fr) !important;gap:15px !important;padding:18px 2px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary>div{padding:0 !important;border:0 !important;grid-template-columns:auto 1fr !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary strong{font-size:21px !important}html body.crm-admin-ui.crm-finance-workspace .fw-summary small{grid-column:auto !important}html body.crm-admin-ui.crm-finance-workspace .fw-list-heading{padding:16px 13px 0 !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters{padding:16px 13px 13px !important;gap:10px !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters .fw-search{flex-basis:100% !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters label:not(.fw-search){flex-basis:calc(50% - 10px) !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters select{max-width:none !important}html body.crm-admin-ui.crm-finance-workspace .fw-filters #fwReset{min-height:25px !important}html body.crm-admin-ui.crm-finance-workspace .fw-table{min-width:760px !important}html body.crm-admin-ui.crm-finance-workspace .fw-pagination{padding:12px 13px !important;flex-wrap:wrap !important}html body.crm-admin-ui.crm-finance-workspace .fw-pagination>div{margin-left:auto !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog{padding:20px !important}html body.crm-admin-ui.crm-finance-workspace .fw-dialog-actions{flex-wrap:wrap !important}html body.crm-admin-ui.crm-finance-workspace .fw-bulk{padding:10px 13px !important}html body.crm-admin-ui.crm-finance-workspace .fw-tools{gap:4px !important}}@media print{html body.crm-admin-ui.crm-finance-workspace .fw-filters,html body.crm-admin-ui.crm-finance-workspace .fw-tabs,html body.crm-admin-ui.crm-finance-workspace .fw-tools,html body.crm-admin-ui.crm-finance-workspace .fw-row-actions,html body.crm-admin-ui.crm-finance-workspace .fw-pagination,html body.crm-admin-ui.crm-finance-workspace .fw-bulk,html body.crm-admin-ui.crm-finance-workspace .fw-create,html body.crm-admin-ui.crm-finance-workspace .fw-create-link{display:none !important}html body.crm-admin-ui.crm-finance-workspace .fw-table-wrap{overflow:visible !important}html body.crm-admin-ui.crm-finance-workspace .fw-table{min-width:0 !important}html body.crm-admin-ui.crm-finance-workspace .fw-workspace{color:#000 !important}}
/* The application theme manager uses root classes rather than data attributes. */
html:not(.theme-light) body.crm-finance-workspace{--fw-surface:#242728 !important;--fw-background:#1c2021 !important;--fw-border:#414747 !important;--fw-text:#f1f0eb !important;--fw-muted:#b3b9b4 !important;--fw-hover:#303536 !important}
html:not(.theme-light) .fw-dialog{}

html body.crm-admin-ui.crm-finance-workspace .fw-menu-items[popover]{margin:0 !important;position:fixed !important;inset:auto !important;top:var(--menu-top,50%) !important;left:var(--menu-left,50%) !important;right:auto !important;max-height:min(70vh,430px) !important;overflow:auto !important}
html body.crm-admin-ui.crm-finance-workspace .fw-menu-items[popover]:not(:popover-open){display:none !important}

/* Tabs are navigation, not another row of outlined actions. */
html body.crm-admin-ui.crm-finance-workspace .fw-workspace .fw-tabs button{border:0 !important;border-bottom:2px solid transparent !important;background:transparent !important;border-radius:0 !important;padding:12px 2px !important;min-height:44px !important;box-shadow:none !important}
html body.crm-admin-ui.crm-finance-workspace .fw-workspace .fw-tabs button[aria-selected="true"]{border-bottom-color:var(--fw-gold) !important;color:var(--fw-text) !important;font-weight:600 !important}
@media screen and (max-width:700px){
 /* Keep native table rows, controls and handlers while presenting each document vertically. */
 html body.crm-admin-ui.crm-finance-workspace .fw-table-wrap{overflow:visible !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table{display:block !important;min-width:0 !important;width:100% !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table thead,html body.crm-admin-ui.crm-finance-workspace .fw-table tbody{display:block !important;width:100% !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table thead tr{display:block !important;background:var(--fw-hover) !important;border-block:1px solid var(--fw-border) !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table thead th{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip-path:inset(50%) !important;padding:0 !important;border:0 !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table thead th:first-child{position:static !important;display:flex !important;align-items:center !important;gap:10px !important;width:auto !important;height:auto !important;overflow:visible !important;clip-path:none !important;padding:10px 13px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table thead th:first-child::after{content:'Selecteer alles' !important;font-size:11px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id]:not([hidden]){display:grid !important;grid-template-columns:18px minmax(0,1fr) minmax(105px,.8fr) !important;gap:7px 9px !important;padding:14px 13px !important;border-bottom:1px solid var(--fw-border) !important;align-items:start !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id]:last-child{border-bottom:0 !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td{display:block !important;padding:0 !important;border:0 !important;width:auto !important;min-width:0 !important;max-width:none !important;overflow-wrap:anywhere !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:first-child{grid-column:1 !important;grid-row:1/5 !important;padding-top:2px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(2){grid-column:2 !important;grid-row:1 !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(3){grid-column:2 !important;grid-row:2 !important;font-size:12px !important;color:var(--fw-muted) !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(4){grid-column:3 !important;grid-row:1/3 !important;text-align:right !important;white-space:normal !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(5){grid-column:2 !important;grid-row:4 !important;align-self:center !important;font-size:11px !important;color:var(--fw-muted) !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(5)::before{content:attr(data-label) !important;display:block !important;font-size:10px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(6){grid-column:2/4 !important;grid-row:3 !important;display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:5px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table tbody tr[data-document-id] td:nth-child(7){grid-column:3 !important;grid-row:4 !important;align-self:center !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table .fw-row-actions{gap:4px !important;flex-wrap:wrap !important;white-space:normal !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table .fw-row-actions>button{min-height:34px !important;font-size:11px !important;padding:5px 6px !important}
 html body.crm-admin-ui.crm-finance-workspace .fw-table .fw-child td:nth-child(2){padding-left:0 !important}
 /* The billables preview must expose the amount and status before confirmation, too. */
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionModal .modal-card{min-width:0 !important;max-width:calc(100vw - 20px) !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionModal .modal-content,html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionModal .table-wrap{min-width:0 !important;overflow-x:visible !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionModal .billable-cycle-table,html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable{display:block !important;width:100% !important;min-width:0 !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionModal .billable-cycle-table thead{position:absolute !important;width:1px !important;height:1px !important;overflow:hidden !important;clip-path:inset(50%) !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable tr{display:grid !important;grid-template-columns:18px minmax(0,1fr) auto !important;gap:7px 8px !important;padding:12px 8px !important;border-bottom:1px solid var(--fw-border) !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td{display:block !important;min-width:0 !important;width:auto !important;padding:0 !important;border:0 !important;overflow-wrap:anywhere !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:first-child{grid-column:1 !important;grid-row:1/4 !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:nth-child(2){grid-column:2 !important;grid-row:2 !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:nth-child(3){grid-column:2 !important;grid-row:1 !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:nth-child(4){grid-column:2/4 !important;grid-row:3 !important;font-size:11px !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:nth-child(5){grid-column:3 !important;grid-row:1 !important;text-align:right !important}
 html body.crm-admin-ui.crm-finance-workspace #billableCycleSelectionTable td:nth-child(6){grid-column:3 !important;grid-row:2 !important}
}
html body.crm-admin-ui.crm-finance-workspace [hidden]{display:none !important}
/* The two creation routes are independent actions; no popover is needed. */
html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions{display:flex !important;gap:8px !important;flex-wrap:wrap !important;align-items:center !important}
html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-billables-link{display:inline-flex !important;align-items:center !important;min-height:38px !important;background:rgba(21,25,25,.76) !important;border:1px solid rgba(255,255,255,.6) !important;color:#fff !important;padding:8px 12px !important;font-size:12px !important;border-radius:5px !important;font-weight:500 !important;box-shadow:none !important}
html body.crm-admin-ui.crm-finance-workspace .crm-page-hero-actions .fw-billables-link:hover{background:rgba(21,25,25,.96) !important}
html body.crm-admin-ui.crm-finance-workspace .fw-tabs{overflow-x:auto !important;white-space:nowrap !important;scrollbar-width:thin !important}
html body.crm-admin-ui.crm-finance-workspace .fw-tabs button{flex:0 0 auto !important}
}

.fw-table tr[data-document-id] { cursor:pointer; }
.fw-table tr[data-document-id]:focus-visible { outline:2px solid #caa64b; outline-offset:-2px; }
