/* Billing import: scoped to the financial workspace and dialog. */
.billing-workspace{max-width:1280px;margin:0 auto;width:100%;min-width:0}
.billing-workspace .crm-heading{flex-wrap:wrap;gap:12px}.billing-workspace .crm-heading>div{flex:1 1 360px}
.billing-workspace .crm-heading>button{min-height:44px;padding:12px 18px;white-space:normal}
.crm-modal-backdrop:has(.billing-batch){position:fixed;inset:0;z-index:1100;background:rgb(13 25 20 / .4);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px}
.crm-modal.billing-batch{display:flex;flex-direction:column;width:min(1100px,96vw);max-height:calc(100dvh - 48px);margin:0;padding:0!important;overflow:hidden;border:1px solid var(--crm-line,#dce3dd);border-radius:18px;background:var(--crm-surface,#fff);color:var(--crm-ink,#1d3027);box-shadow:0 28px 100px #14251c29;font:14px/1.5 'DM Sans',system-ui,sans-serif}
.billing-batch>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid var(--crm-line,#dce3dd);flex:none}
.billing-batch>header h2{font-size:23px;font-weight:600;letter-spacing:-.6px;margin:0 0 5px;line-height:1.2;color:var(--crm-ink,#1d3027)}
.billing-batch>header p{margin:0;font-size:13px;color:var(--crm-muted,#607366)}
.billing-batch>div{overflow:auto;min-height:0;padding:24px!important;scrollbar-gutter:stable}
.billing-batch>div>label{display:grid;gap:9px;margin-bottom:20px;color:var(--crm-ink,#1d3027);font-size:13px;font-weight:500}
.billing-batch>div>label:has(input[type=file]){background:var(--crm-soft,#f7f8f4);border:1px dashed var(--crm-focus,#b3a173);padding:24px;border-radius:12px;font-size:15px}
.billing-batch input:not([type=checkbox]),.billing-batch select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--crm-line,#dce3dd);border-radius:9px;background:var(--crm-surface,#fff);color:var(--crm-ink,#1d3027);font:inherit}
.billing-batch input[type=file]{font-size:13px;border:0;padding:8px 0;background:transparent}
.billing-batch input[type=file]::file-selector-button{padding:10px 14px;border:1px solid var(--crm-line,#dce3dd);border-radius:8px;margin-right:12px;background:var(--crm-surface,#fff);color:var(--crm-ink,#1d3027);font:inherit;cursor:pointer}
.billing-batch label:has(input[type=checkbox]){display:flex!important;align-items:flex-start;gap:10px;font-weight:400;line-height:1.5}
.billing-batch input[type=checkbox]{width:18px;height:18px;min-width:18px;margin-top:2px;accent-color:#516b59}
.billing-batch button{box-sizing:border-box;min-height:44px;padding:10px 15px;border:1px solid var(--crm-line,#dce3dd);border-radius:9px;background:var(--crm-surface,#fff);color:var(--crm-ink,#1d3027);font:500 13px/1.4 'DM Sans',system-ui,sans-serif;cursor:pointer}
.billing-batch button:disabled{opacity:.45;cursor:default}.billing-batch button:not(:disabled):hover{background:var(--crm-hover,#edf2ec)}
.billing-batch button:focus-visible,.billing-batch input:focus-visible,.billing-batch select:focus-visible{outline:2px solid var(--crm-focus,#ac925c);outline-offset:3px}
.billing-batch>footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;flex:none;padding:16px 24px;border-top:1px solid var(--crm-line,#dce3dd);background:var(--crm-surface,#fff)}
.billing-batch>footer button.access-primary{background:var(--crm-action,#a28e61);color:var(--crm-action-ink,#fff);border-color:transparent;padding-inline:22px}
.billing-batch .crm-caption{font-size:12px!important;line-height:1.7;margin:0 0 20px!important;max-width:760px;color:var(--crm-muted,#607366)}
.billing-batch .owner-card{display:block;text-align:left;padding:18px;border:1px solid var(--crm-line,#dce3dd);border-radius:12px;background:var(--crm-surface,#fff);box-shadow:none;min-width:0;overflow-wrap:anywhere}
.billing-batch .owner-card>label{font-weight:600!important;color:var(--crm-ink,#1d3027)}.billing-batch .owner-card p{margin:10px 0;color:var(--crm-muted,#607366);font-size:13px}
.billing-batch .owner-card>a{display:inline-block;margin:8px 0 8px 12px;font-size:13px;text-decoration:underline;text-underline-offset:3px;color:var(--crm-ink,#1d3027)}
.billing-batch fieldset{border:0;padding:18px 0 0;margin-top:14px;border-top:1px solid var(--crm-line,#dce3dd)}.billing-batch .access-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.billing-batch .access-fields>label{display:grid;gap:8px;font-size:13px}
.billing-batch>div>button+button{margin-left:8px}.billing-batch [role=alert]{padding:14px;border-radius:9px;overflow-wrap:anywhere}
@media(max-width:640px){.crm-modal-backdrop:has(.billing-batch){padding:10px}.crm-modal.billing-batch{width:100%!important;max-height:calc(100dvh - 20px);border-radius:14px}.billing-batch>header,.billing-batch>div{padding:18px!important}.billing-batch>header h2{font-size:20px}.billing-batch>footer{padding:14px 18px}.billing-batch>footer .access-primary{flex:1}.billing-batch .access-fields{grid-template-columns:1fr}.billing-batch>div>label:has(input[type=file]){padding:16px}.billing-batch>div>button{margin-bottom:8px}.billing-workspace .crm-heading>button{flex:1 1 160px}.billing-batch input[type=file]{font-size:12px}}

.billing-batch input[type=file]{background:transparent!important;color:var(--crm-ink,#1d3027)!important;border:0!important;box-shadow:none!important}.billing-batch input[type=file]::file-selector-button{background:var(--crm-surface,#fff)!important;color:var(--crm-ink,#1d3027)!important}

.billing-batch.has-rows>div>label:has(input[type=file]),.billing-batch.has-rows>div>.crm-caption{display:none!important}.billing-batch.has-rows>div>label:first-child{grid-template-columns:auto minmax(160px,260px);align-items:center;justify-content:start;margin-bottom:12px}.billing-batch.has-rows>div>p{margin:12px 0}.billing-batch.has-rows>div{padding-top:16px!important}@media(max-width:640px){.billing-batch.has-rows>div>label:first-child{grid-template-columns:1fr}}

.users-batch .user-template-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 20px}.users-batch .access-table{overflow:auto;max-width:100%;border:1px solid var(--crm-line,#dce3dd);border-radius:10px;margin:16px 0}.users-batch .access-table table{width:100%;font-size:12px;border-collapse:collapse;min-width:490px}.users-batch th,.users-batch td{padding:12px 10px;border-bottom:1px solid var(--crm-line,#dce3dd)}.users-batch th{background:var(--crm-soft,#f7f8f4)}.users-batch td:not(:first-child),.users-batch th:not(:first-child){text-align:center}.users-batch li{font-size:12px;color:var(--crm-danger,#a52e41);line-height:1.6}.access-admin-heading{flex-wrap:wrap}.access-admin-heading>div{flex:1 1 300px}
