/* Generated by php bin/build-css.php from resources/css/source.css. */

/* resources/css/tokens.css */
:root {
    color-scheme: light;
    --bcrm-bg: #f7f8fb;
    --bcrm-surface: #ffffff;
    --bcrm-surface-muted: #f9fafc;
    --bcrm-surface-soft: #f3f6fb;
    --bcrm-border: #e6eaf1;
    --bcrm-border-strong: #d5dbe7;
    --bcrm-text: #101527;
    --bcrm-muted: #4e5b73;
    --bcrm-soft: #78849a;
    --bcrm-brand: #265a88;
    --bcrm-brand-dark: #1d466d;
    --bcrm-brand-deep: #102d49;
    --bcrm-brand-soft: #eaf2f9;
    --bcrm-brand-rgb: 38, 90, 136;
    --bcrm-success: #087443;
    --bcrm-success-bg: #edf9f2;
    --bcrm-info: #2457bf;
    --bcrm-info-bg: #eef5ff;
    --bcrm-warning: #b65a09;
    --bcrm-warning-bg: #fff6e8;
    --bcrm-danger: #bd1f1a;
    --bcrm-danger-bg: #fff1ef;
    --bcrm-radius: 14px;
    --bcrm-radius-md: 12px;
    --bcrm-radius-sm: 8px;
    --bcrm-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.035);
    --bcrm-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.04);
    --bcrm-sidebar-width: 308px;
    --bcrm-topbar-height: 73px;
    --bcrm-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* resources/css/base.css */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--bcrm-bg); }
body { min-height: 100%; margin: 0; color: var(--bcrm-text); font-family: var(--bcrm-font); font-size: 14.5px; line-height: 1.55; background: var(--bcrm-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input, select { font: inherit; }
button { line-height: 1; }
:focus-visible { outline: 3px solid rgba(var(--bcrm-brand-rgb), 0.18); outline-offset: 2px; }
.bcrm-auth-shell h1 { margin: 0; color: var(--bcrm-text); font-size: 24px; font-weight: 780; line-height: 1.18; }
.bcrm-auth-shell p { margin: 0; color: var(--bcrm-muted); font-size: 13.5px; line-height: 1.5; }
.bcrm-auth-shell a { color: var(--bcrm-brand); font-weight: 720; text-decoration: none; }
.bcrm-auth-shell a:hover { color: var(--bcrm-brand-dark); text-decoration: underline; }
.bcrm-auth-shell code { display: inline-block; max-width: 100%; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-sm); background: var(--bcrm-surface-muted); padding: 2px 6px; color: var(--bcrm-text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }

/* resources/css/layout.css */
.bcrm-auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 32px 18px; }
.bcrm-auth-panel { width: min(100%, 446px); overflow: hidden; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius); background: var(--bcrm-surface); box-shadow: var(--bcrm-shadow-sm); }
.bcrm-auth-panel-header { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--bcrm-border); padding: 18px 20px; background: var(--bcrm-surface); }
.bcrm-auth-panel-body { display: grid; gap: 18px; padding: 24px; }
.bcrm-auth-heading { display: grid; gap: 5px; }
.bcrm-shell { min-height: 100vh; }
.bcrm-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--bcrm-sidebar-width); flex-direction: column; overflow-y: auto; border-right: 1px solid rgba(213, 219, 231, 0.72); background: #fbfcff; color: var(--bcrm-text); }
.bcrm-sidebar-brand { display: flex; min-height: var(--bcrm-topbar-height); align-items: center; gap: 12px; padding: 18px 18px 16px; text-decoration: none; }
.bcrm-sidebar-nav { flex: 1; padding: 4px 16px 18px; }
.bcrm-sidebar-foot { margin: auto 16px 18px; border-top: 1px solid var(--bcrm-border); padding-top: 14px; color: var(--bcrm-muted); font-size: 12px; }
.bcrm-mobile-appbar { display: none; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--bcrm-border); background: rgba(255, 255, 255, 0.96); padding: 10px 14px; backdrop-filter: blur(10px); }
.bcrm-main { min-width: 0; padding-left: var(--bcrm-sidebar-width); }
.bcrm-topbar { min-height: var(--bcrm-topbar-height); display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 420px) auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--bcrm-border); background: rgba(255, 255, 255, 0.96); padding: 0 28px; }
.bcrm-topbar-title { min-width: 0; }
.bcrm-topbar-end { display: inline-flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; }
.bcrm-content { width: 100%; max-width: 1536px; margin: 0 auto; padding: 24px 28px 30px; }
.bcrm-record-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 24px 26px; }
.bcrm-action-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.bcrm-panel { overflow: hidden; }
.bcrm-panel-spaced { margin-top: 18px; }
.bcrm-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--bcrm-border); background: var(--bcrm-surface); padding: 18px 20px; }
.bcrm-panel-body { padding: 18px; }
.bcrm-panel-compact .bcrm-panel-heading, .bcrm-panel-compact .bcrm-panel-body { padding: 16px; }
.bcrm-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bcrm-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.bcrm-workspace-grid--queue { grid-template-columns: minmax(0, 1fr); }
.bcrm-attention-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; padding: 14px; }

/* resources/css/components.css */
.bcrm-brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--bcrm-brand); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 10px 22px rgba(var(--bcrm-brand-rgb), 0.18); }
.bcrm-auth-brand-copy { display: grid; gap: 1px; }
.bcrm-auth-brand-copy strong, .bcrm-sidebar-brand-copy strong { color: var(--bcrm-text); font-size: 15px; font-weight: 780; line-height: 1.15; }
.bcrm-auth-brand-copy span, .bcrm-sidebar-brand-copy span { color: var(--bcrm-muted); font-size: 12px; }
.bcrm-sidebar-brand-copy { display: grid; min-width: 0; gap: 1px; }
.bcrm-nav-section + .bcrm-nav-section { margin-top: 20px; }
.bcrm-nav-group { margin: 14px 6px 9px; color: #6d7890; font-size: 11px; font-weight: 720; letter-spacing: 0; text-transform: uppercase; }
.bcrm-nav-row { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; border-radius: 10px; padding: 9px 10px; color: #34405a; text-decoration: none; font-size: 13px; font-weight: 650; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.bcrm-nav-main { display: inline-flex; min-width: 0; align-items: center; gap: 12px; }
.bcrm-nav-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border-radius: 6px; background: #eef2f7; color: #8c98ad; font-size: 10px; font-weight: 800; }
.bcrm-nav-row:hover { background: rgba(var(--bcrm-brand-rgb), 0.045); color: var(--bcrm-text); }
.bcrm-nav-row[aria-current="page"] { background: var(--bcrm-brand-soft); color: var(--bcrm-brand); box-shadow: inset 0 0 0 1px rgba(var(--bcrm-brand-rgb), 0.045), var(--bcrm-shadow-xs); }
.bcrm-nav-row[aria-current="page"] .bcrm-nav-icon { background: #fff; color: var(--bcrm-brand); }
.bcrm-nav-count { min-width: 22px; border-radius: 999px; background: rgba(var(--bcrm-brand-rgb), 0.095); color: var(--bcrm-brand); padding: 2px 7px; text-align: center; font-size: 11px; font-weight: 780; }
.bcrm-sidebar-foot strong, .bcrm-sidebar-foot span { display: block; }
.bcrm-sidebar-foot strong { color: var(--bcrm-text); font-size: 13px; }
.bcrm-mobile-brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--bcrm-text); text-decoration: none; font-weight: 800; }
.bcrm-mobile-brand .bcrm-brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.bcrm-mobile-menu { position: relative; }
.bcrm-mobile-menu summary { display: inline-flex; min-height: 38px; align-items: center; border: 1px solid var(--bcrm-border-strong); border-radius: 9px; background: var(--bcrm-surface); padding: 0 12px; color: var(--bcrm-text); font-weight: 780; cursor: pointer; box-shadow: var(--bcrm-shadow-xs); list-style: none; }
.bcrm-mobile-menu summary::-webkit-details-marker { display: none; }
.bcrm-mobile-menu[open] summary { border-color: rgba(var(--bcrm-brand-rgb), 0.38); }
.bcrm-mobile-menu-panel { position: absolute; right: 0; top: 46px; display: grid; width: min(82vw, 260px); gap: 6px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface); padding: 8px; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12); }
.bcrm-mobile-link { display: flex; min-height: 40px; align-items: center; justify-content: space-between; border-radius: 9px; padding: 0 10px; color: var(--bcrm-muted); text-decoration: none; font-weight: 720; }
.bcrm-mobile-link[aria-current="page"], .bcrm-mobile-link:hover { background: var(--bcrm-brand-soft); color: var(--bcrm-brand); }
.bcrm-page-title { margin: 0; color: var(--bcrm-text); font-size: 21px; font-weight: 760; line-height: 1.2; }
.bcrm-eyebrow { margin: 0 0 3px; color: var(--bcrm-soft); font-size: 11px; font-weight: 760; letter-spacing: 0; text-transform: uppercase; }
.bcrm-auth-shell .bcrm-eyebrow { margin: 0; }
.bcrm-search-wrap { position: relative; min-width: 0; }
.bcrm-search-kbd { position: absolute; right: 10px; top: 50%; display: inline-flex; min-height: 24px; transform: translateY(-50%); align-items: center; border: 1px solid var(--bcrm-border); border-radius: 7px; background: #f7f9fd; color: var(--bcrm-soft); padding: 2px 7px; font-size: 11px; font-weight: 700; }
.bcrm-topbar-pill { display: inline-flex; min-height: 32px; align-items: center; border: 1px solid var(--bcrm-border); border-radius: 999px; background: var(--bcrm-surface); color: var(--bcrm-muted); padding: 4px 10px; font-size: 12px; font-weight: 720; box-shadow: var(--bcrm-shadow-xs); white-space: nowrap; }
.bcrm-record-header, .bcrm-panel, .bcrm-filter-bar, .bcrm-attention-strip { border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius); background: var(--bcrm-surface); box-shadow: var(--bcrm-shadow-sm); }
.bcrm-record-header h2 { margin: 0; color: var(--bcrm-text); font-size: 28px; font-weight: 760; line-height: 1.22; }
.bcrm-summary { max-width: 760px; margin: 8px 0 0; color: var(--bcrm-muted); font-size: 14.5px; line-height: 1.55; }
.bcrm-panel h2 { margin: 0; color: var(--bcrm-text); font-size: 18px; font-weight: 760; line-height: 1.3; }
.bcrm-panel p { margin-top: 4px; }
.bcrm-attention-item { display: flex; min-height: 92px; align-items: flex-start; gap: 12px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface); padding: 15px 16px; box-shadow: var(--bcrm-shadow-xs); }
.bcrm-attention-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--bcrm-brand-soft); color: var(--bcrm-brand); font-size: 12px; font-weight: 800; }
.bcrm-attention-item strong { display: block; color: var(--bcrm-text); font-size: 17px; line-height: 1.25; }
.bcrm-attention-item span { display: block; color: var(--bcrm-muted); font-size: 12px; line-height: 1.45; }
.bcrm-attention-item--success { border-top-color: rgba(8, 116, 67, 0.36); }
.bcrm-attention-item--success .bcrm-attention-icon { background: var(--bcrm-success-bg); color: var(--bcrm-success); }
.bcrm-attention-item--warning { border-top-color: rgba(181, 90, 9, 0.40); }
.bcrm-attention-item--warning .bcrm-attention-icon { background: var(--bcrm-warning-bg); color: var(--bcrm-warning); }
.bcrm-button { display: inline-flex; width: fit-content; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--bcrm-brand); border-radius: 9px; background: var(--bcrm-brand); color: #fff; padding: 9px 14px; font-size: 14px; font-weight: 720; text-decoration: none; cursor: pointer; box-shadow: 0 10px 18px rgba(var(--bcrm-brand-rgb), 0.13); transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.bcrm-button:hover { border-color: var(--bcrm-brand-dark); background: var(--bcrm-brand-dark); }
.bcrm-button-secondary { border-color: rgba(203, 213, 225, 0.92); background: var(--bcrm-surface); color: var(--bcrm-text); box-shadow: var(--bcrm-shadow-xs); }
.bcrm-button-secondary:hover { border-color: rgba(var(--bcrm-brand-rgb), 0.45); background: #f8faff; color: var(--bcrm-text); }
.bcrm-button-compact { min-height: 34px; padding: 7px 11px; font-size: 13px; white-space: nowrap; }
.bcrm-auth-shell .bcrm-button { width: 100%; min-height: 42px; }
.bcrm-alert { margin: 0; border: 1px solid rgba(36, 87, 191, 0.22); border-radius: var(--bcrm-radius-md); padding: 11px 13px; background: var(--bcrm-info-bg); color: var(--bcrm-info); font-size: 13px; font-weight: 650; line-height: 1.45; }
.bcrm-empty-state { border: 1px dashed var(--bcrm-border-strong); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface-muted); padding: 18px; color: var(--bcrm-muted); }
.bcrm-qr-card { display: grid; place-items: center; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface-muted); padding: 16px; }
.bcrm-qr-card img { display: block; max-width: 100%; height: auto; }
.bcrm-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bcrm-code-list code { display: block; padding: 8px 10px; text-align: center; font-size: 13px; font-weight: 760; }

/* resources/css/forms.css */
.bcrm-auth-form { display: grid; gap: 14px; }
.bcrm-auth-secondary { border-top: 1px solid var(--bcrm-border); padding-top: 16px; }
.bcrm-auth-submit { width: 100%; }
.bcrm-form-grid { display: grid; gap: 14px; }
.bcrm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bcrm-field { display: grid; gap: 6px; color: var(--bcrm-muted); font-size: 13px; font-weight: 650; }
.bcrm-input { width: 100%; min-height: 42px; min-width: 0; border: 1px solid var(--bcrm-border-strong); border-radius: 10px; background: var(--bcrm-surface); color: var(--bcrm-text); padding: 9px 12px; box-shadow: var(--bcrm-shadow-xs); transition: border-color 140ms ease, box-shadow 140ms ease; }
.bcrm-input:focus { border-color: rgba(var(--bcrm-brand-rgb), 0.55); box-shadow: 0 0 0 4px rgba(var(--bcrm-brand-rgb), 0.10); outline: 0; }
.bcrm-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bcrm-muted) 50%), linear-gradient(135deg, var(--bcrm-muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.bcrm-search { width: 100%; min-height: 42px; border: 1px solid rgba(213, 219, 231, 0.86); border-radius: 11px; background: var(--bcrm-surface); color: var(--bcrm-text); padding: 10px 58px 10px 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025); transition: border-color 160ms ease, box-shadow 160ms ease; }
.bcrm-search:focus { border-color: rgba(var(--bcrm-brand-rgb), 0.34); box-shadow: 0 0 0 4px rgba(var(--bcrm-brand-rgb), 0.07); outline: 0; }
.bcrm-search::placeholder { color: var(--bcrm-soft); }
.bcrm-filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(160px, 210px) auto; align-items: end; gap: 12px; margin-bottom: 16px; padding: 14px; }
.bcrm-filter-bar--weekly { grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) minmax(160px, 210px) auto; }
.bcrm-filter-actions { display: inline-flex; align-items: center; gap: 8px; }
.bcrm-inline-form { display: grid; gap: 7px; }
.bcrm-inline-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto); gap: 7px; }
.bcrm-inline-form-row--stacked { grid-template-columns: 1fr; }
.bcrm-fieldset { display: grid; gap: 10px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface-muted); padding: 13px 14px 14px; }
.bcrm-fieldset legend { padding: 0 4px; color: var(--bcrm-muted); font-size: 13px; font-weight: 760; }
.bcrm-checkbox-list { display: grid; gap: 8px; }
.bcrm-checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--bcrm-muted); font-size: 13px; font-weight: 650; line-height: 1.4; }
.bcrm-checkbox input { width: 16px; height: 16px; margin-top: 1px; accent-color: var(--bcrm-brand); }
.bcrm-form-sections-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bcrm-service-editor { display: grid; gap: 12px; }
.bcrm-service-card { overflow: hidden; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface-muted); }
.bcrm-service-card[hidden], [data-client-types][hidden], .bcrm-service-card-fields[hidden] { display: none !important; }
.bcrm-service-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; }
.bcrm-service-category { color: var(--bcrm-muted); font-size: 12px; font-weight: 700; }
.bcrm-service-card summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; cursor: pointer; list-style-position: inside; }
.bcrm-service-card summary > span { color: var(--bcrm-muted); font-size: 12px; font-weight: 700; }
.bcrm-service-card-fields { display: grid; gap: 12px; border-top: 1px solid var(--bcrm-border); background: var(--bcrm-surface); padding: 14px; }
.bcrm-field-help { color: var(--bcrm-muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.bcrm-relationship-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .8fr) minmax(140px, .7fr) minmax(180px, 1fr) auto; align-items: end; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--bcrm-border); }
.bcrm-relationship-remove { margin-bottom: 1px; }
.bcrm-add-relationship { justify-self: start; }
.bcrm-alert--error ul { margin: 8px 0 0; padding-left: 20px; }

/* resources/css/tables.css */
.bcrm-table-wrap { width: 100%; overflow-x: auto; }
.bcrm-table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--bcrm-surface); }
.bcrm-table th, .bcrm-table td { border-bottom: 1px solid var(--bcrm-border); padding: 11px 16px; text-align: left; vertical-align: top; }
.bcrm-table th { background: var(--bcrm-surface-muted); color: var(--bcrm-muted); font-size: 12px; font-weight: 740; }
.bcrm-table td { color: var(--bcrm-text); font-size: 13px; }
.bcrm-table tr:last-child td { border-bottom: 0; }
.bcrm-table-row { transition: background-color 140ms ease; }
.bcrm-table-row:hover { background: var(--bcrm-surface-soft); }
.bcrm-table-link { color: var(--bcrm-brand); font-weight: 760; text-decoration: none; }
.bcrm-table-link:hover { color: var(--bcrm-brand-dark); text-decoration: underline; }
.bcrm-table strong { display: block; font-weight: 720; line-height: 1.35; }
.bcrm-table span:not(.bcrm-status):not(.bcrm-priority) { display: block; margin-top: 2px; color: var(--bcrm-muted); font-size: 12px; }

/* resources/css/operations.css */
.bcrm-row-actions { display: grid; min-width: 235px; gap: 8px; }
.bcrm-row-actions .bcrm-inline-form-row { grid-template-columns: 1fr; }
.bcrm-row-actions .bcrm-input { min-height: 34px; border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.bcrm-row-actions .bcrm-select { background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; }
.bcrm-row-actions .bcrm-button { width: 100%; }
.bcrm-table--current-work { min-width: 1040px; table-layout: fixed; }
.bcrm-current-work-col--client { width: 7%; }
.bcrm-current-work-col--service { width: 13%; }
.bcrm-current-work-col--status { width: 10%; }
.bcrm-current-work-col--priority { width: 8%; }
.bcrm-current-work-col--external-deadline { width: 13%; }
.bcrm-current-work-col--internal-target { width: 8%; }
.bcrm-current-work-col--records { width: 8%; }
.bcrm-current-work-col--next-action { width: 12%; }
.bcrm-current-work-col--actions { width: 21%; }
.bcrm-table--current-work th, .bcrm-table--current-work td { padding-right: 12px; padding-left: 12px; }
.bcrm-table--current-work .bcrm-row-actions { min-width: 0; }
.bcrm-status { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; background: var(--bcrm-info-bg); color: var(--bcrm-info); padding: 3px 9px; font-size: 11.5px; font-weight: 720; white-space: nowrap; }
.bcrm-status--pending { background: var(--bcrm-info-bg); color: var(--bcrm-info); }
.bcrm-status--completed { background: var(--bcrm-success-bg); color: var(--bcrm-success); }
.bcrm-status--awaiting-action { background: var(--bcrm-warning-bg); color: var(--bcrm-warning); }
.bcrm-status--overdue, .bcrm-status--blocked { background: var(--bcrm-danger-bg); color: var(--bcrm-danger); }
.bcrm-status--at-risk { background: var(--bcrm-warning-bg); color: var(--bcrm-warning); }
.bcrm-priority { display: inline-flex; min-height: 24px; align-items: center; border-radius: 999px; background: #f6f8fc; color: #30405c; padding: 3px 9px; font-size: 11.5px; font-weight: 720; white-space: nowrap; }
.bcrm-priority--critical { background: var(--bcrm-danger-bg); color: var(--bcrm-danger); }
.bcrm-priority--high { background: var(--bcrm-warning-bg); color: var(--bcrm-warning); }
.bcrm-priority--normal { background: var(--bcrm-info-bg); color: var(--bcrm-info); }
.bcrm-priority--low { background: var(--bcrm-success-bg); color: var(--bcrm-success); }
.bcrm-definition-list { display: grid; gap: 10px; margin: 0; }
.bcrm-definition-list div { display: grid; grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--bcrm-border); padding-bottom: 9px; }
.bcrm-definition-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.bcrm-definition-list dt { color: var(--bcrm-muted); font-size: 12px; font-weight: 720; }
.bcrm-definition-list dd { margin: 0; color: var(--bcrm-text); font-size: 13px; font-weight: 650; }
.bcrm-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bcrm-list li { border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-sm); background: var(--bcrm-surface-muted); padding: 10px 12px; color: var(--bcrm-muted); font-size: 13px; line-height: 1.45; }
.bcrm-list strong, .bcrm-list span { display: block; }
.bcrm-list strong { color: var(--bcrm-text); }
.bcrm-weekly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.bcrm-weekly-section--overdue { border-top-color: rgba(181, 90, 9, 0.40); }
.bcrm-weekly-section--today { border-top-color: rgba(var(--bcrm-brand-rgb), 0.40); }
.bcrm-weekly-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bcrm-weekly-item { display: grid; gap: 9px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-sm); background: var(--bcrm-surface-muted); padding: 12px; }
.bcrm-weekly-item-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bcrm-weekly-item-main strong { display: block; color: var(--bcrm-text); font-size: 14px; line-height: 1.35; }
.bcrm-weekly-item-main span, .bcrm-weekly-item-context span { color: var(--bcrm-muted); font-size: 12px; line-height: 1.4; }
.bcrm-weekly-item-badges { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bcrm-weekly-item-context { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.bcrm-report-actions { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 16px; }
.bcrm-client-report { overflow: hidden; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius); background: var(--bcrm-surface); box-shadow: var(--bcrm-shadow-sm); }
.bcrm-client-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--bcrm-brand); padding: 28px 30px; }
.bcrm-client-report-header h2 { margin: 0; color: var(--bcrm-text); font-size: 30px; line-height: 1.2; }
.bcrm-client-report-header p:not(.bcrm-eyebrow) { margin: 7px 0 0; color: var(--bcrm-muted); }
.bcrm-client-report-code { display: grid; min-width: 150px; gap: 4px; text-align: right; }
.bcrm-client-report-code span { color: var(--bcrm-muted); font-size: 12px; font-weight: 720; }
.bcrm-client-report-code strong { color: var(--bcrm-text); font-size: 19px; }
.bcrm-client-report-section { padding: 22px 30px; }
.bcrm-client-report-section + .bcrm-client-report-section { border-top: 1px solid var(--bcrm-border); }
.bcrm-client-report-section h3 { margin: 0 0 14px; color: var(--bcrm-text); font-size: 17px; }
.bcrm-client-report-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.bcrm-client-report-details div { display: grid; grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--bcrm-border); padding: 9px 0; }
.bcrm-client-report-details dt, .bcrm-client-report-card dt { color: var(--bcrm-muted); font-size: 12px; font-weight: 720; }
.bcrm-client-report-details dd, .bcrm-client-report-card dd { margin: 0; color: var(--bcrm-text); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.bcrm-client-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bcrm-client-report-card, .bcrm-client-report-service { break-inside: avoid; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-sm); background: var(--bcrm-surface-muted); padding: 15px 16px; }
.bcrm-client-report-card h4, .bcrm-client-report-service h4 { margin: 0; color: var(--bcrm-text); font-size: 14px; }
.bcrm-client-report-card h4 span { display: inline-flex; margin-left: 6px; border-radius: 999px; background: var(--bcrm-brand-soft); color: var(--bcrm-brand); padding: 2px 7px; font-size: 10px; vertical-align: middle; }
.bcrm-client-report-card p { margin: 4px 0 12px; color: var(--bcrm-muted); font-size: 12px; }
.bcrm-client-report-card dl { display: grid; gap: 7px; margin: 12px 0 0; }
.bcrm-client-report-card dl div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
.bcrm-client-report-card address { display: grid; gap: 3px; margin-top: 10px; color: var(--bcrm-text); font-size: 13px; font-style: normal; line-height: 1.4; }
.bcrm-client-report-services { display: grid; gap: 12px; }
.bcrm-client-report-service .bcrm-client-report-details { margin-top: 8px; }
.bcrm-client-report-footer { border-top: 1px solid var(--bcrm-border); background: var(--bcrm-surface-muted); padding: 14px 30px; color: var(--bcrm-muted); font-size: 11px; }
.bcrm-document-link-panel { margin-bottom: 18px; border-top: 3px solid var(--bcrm-success); }
.bcrm-document-link-panel .bcrm-panel-body { display: grid; gap: 12px; }
.bcrm-document-open-link { justify-self: start; }
.bcrm-client-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bcrm-definition-list--wide div { grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1fr); }
.bcrm-address { display: grid; gap: 4px; color: var(--bcrm-text); font-size: 14px; font-style: normal; line-height: 1.45; }
.bcrm-empty-state { display: grid; justify-items: start; gap: 12px; }
.bcrm-empty-state h3 { margin: 0; }
.bcrm-action-toolbar--start { justify-content: flex-start; }
.bcrm-table--clients { min-width: 900px; }
.bcrm-table--job-documents { min-width: 0; }
.bcrm-table--job-documents th, .bcrm-table--job-documents td { padding-right: 10px; padding-left: 10px; }
.bcrm-document-request-workspace { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
.bcrm-document-request-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bcrm-document-request-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-sm); background: var(--bcrm-surface-muted); padding: 12px; }
.bcrm-document-request-list li > div { min-width: 0; }
.bcrm-document-request-list strong, .bcrm-document-request-list li > div span { display: block; overflow-wrap: anywhere; }
.bcrm-document-request-list strong { color: var(--bcrm-text); font-size: 13px; }
.bcrm-document-request-list li > div span { margin-top: 3px; color: var(--bcrm-muted); font-size: 12px; }
.bcrm-upload-request-summary { display: grid; gap: 4px; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface-muted); padding: 14px; }
.bcrm-upload-request-summary strong { color: var(--bcrm-text); }
.bcrm-upload-request-summary span { color: var(--bcrm-muted); font-size: 13px; }
.bcrm-file-input { padding: 7px; }
.bcrm-file-input::file-selector-button { min-height: 30px; margin-right: 10px; border: 1px solid var(--bcrm-border-strong); border-radius: 7px; background: var(--bcrm-surface); color: var(--bcrm-text); padding: 5px 9px; font-weight: 700; cursor: pointer; }
.bcrm-view-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.bcrm-task-filters { grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(130px, .8fr)) auto; }
.bcrm-task-list { display: grid; gap: 0; padding-top: 0; padding-bottom: 0; }
.bcrm-task-list-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--bcrm-border); padding: 15px 0; }
.bcrm-task-list-row:last-child { border-bottom: 0; }
.bcrm-task-due { display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--bcrm-border); padding-right: 14px; }
.bcrm-task-due span { color: var(--bcrm-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.bcrm-task-due strong { color: var(--bcrm-text); font-size: 13px; }
.bcrm-task-due--overdue strong { color: var(--bcrm-danger); }
.bcrm-task-card { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto; align-items: center; gap: 16px; min-width: 0; }
.bcrm-task-card-main, .bcrm-task-card-context { display: grid; gap: 3px; min-width: 0; }
.bcrm-task-card-main strong { color: var(--bcrm-text); font-size: 14px; overflow-wrap: anywhere; }
.bcrm-task-card-main span, .bcrm-task-card-context span { color: var(--bcrm-muted); font-size: 12px; }
.bcrm-task-card-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bcrm-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.bcrm-calendar-toolbar h2 { margin: 0; color: var(--bcrm-text); font-size: 20px; }
.bcrm-task-calendar { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; border-top: 1px solid var(--bcrm-border); border-left: 1px solid var(--bcrm-border); background: var(--bcrm-surface); }
.bcrm-calendar-weekday { border-right: 1px solid var(--bcrm-border); border-bottom: 1px solid var(--bcrm-border); background: var(--bcrm-surface-muted); padding: 9px; color: var(--bcrm-muted); font-size: 11px; font-weight: 800; text-align: center; }
.bcrm-calendar-day { min-height: 145px; border-right: 1px solid var(--bcrm-border); border-bottom: 1px solid var(--bcrm-border); padding: 8px; }
.bcrm-calendar-day--outside { background: var(--bcrm-surface-muted); }
.bcrm-calendar-day--today { box-shadow: inset 0 0 0 2px var(--bcrm-brand); }
.bcrm-calendar-date { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--bcrm-text); font-weight: 800; }
.bcrm-calendar-date small { color: var(--bcrm-brand); font-size: 10px; text-transform: uppercase; }
.bcrm-calendar-events { display: grid; gap: 5px; }
.bcrm-task-card--compact { display: block; border-radius: 6px; background: var(--bcrm-brand-soft); padding: 6px 7px; }
.bcrm-task-card--compact .bcrm-task-card-main { gap: 1px; }
.bcrm-task-card--compact .bcrm-task-card-main strong { font-size: 11px; line-height: 1.25; }
.bcrm-task-card--compact .bcrm-task-card-main span { font-size: 10px; }

/* resources/css/utilities.css */
.bcrm-metric { display: inline-flex; min-height: 28px; align-items: center; border-radius: 999px; background: #f6f8fc; color: #30405c; padding: 5px 10px; font-size: 12px; font-weight: 690; white-space: nowrap; }
.bcrm-kpi { margin: 0; color: var(--bcrm-text); font-size: 28px; font-weight: 800; line-height: 1; }
.bcrm-muted { margin: 0; color: var(--bcrm-muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 1180px) {
    .bcrm-topbar { grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1fr); }
    .bcrm-topbar-end { display: none; }
    .bcrm-workspace-grid { grid-template-columns: 1fr; }
    .bcrm-weekly-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .bcrm-sidebar { display: none; }
    .bcrm-mobile-appbar { display: flex; }
    .bcrm-main { padding-left: 0; }
    .bcrm-topbar { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px 14px; }
    .bcrm-content { padding: 16px 14px 24px; }
    .bcrm-record-header { align-items: stretch; flex-direction: column; padding: 20px 18px; }
    .bcrm-record-header h2 { font-size: 24px; }
    .bcrm-action-toolbar { justify-content: flex-start; }
    .bcrm-work-grid, .bcrm-attention-strip, .bcrm-form-row, .bcrm-filter-bar { grid-template-columns: 1fr; }
    .bcrm-filter-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcrm-row-actions { min-width: 0; }
    .bcrm-inline-form-row { grid-template-columns: 1fr; }
    .bcrm-panel-heading { align-items: stretch; flex-direction: column; }
    .bcrm-button { width: 100%; }
    .bcrm-button-compact { width: auto; }
    .bcrm-table--responsive { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
    .bcrm-table--current-work { min-width: 0; table-layout: auto; }
    .bcrm-table--current-work colgroup { display: none; }
    .bcrm-table--responsive thead { display: none; }
    .bcrm-table--responsive tbody, .bcrm-table--responsive tr, .bcrm-table--responsive td { display: block; width: 100%; min-width: 0; }
    .bcrm-table--responsive tr { overflow: hidden; border: 1px solid var(--bcrm-border); border-radius: var(--bcrm-radius-md); background: var(--bcrm-surface); box-shadow: var(--bcrm-shadow-xs); }
    .bcrm-table--responsive td { border-bottom: 1px solid var(--bcrm-border); padding: 12px 14px; overflow-wrap: anywhere; }
    .bcrm-table--responsive td:last-child { border-bottom: 0; }
    .bcrm-table--responsive td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--bcrm-muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
    .bcrm-table--responsive .bcrm-button { width: 100%; }
    .bcrm-definition-list div { grid-template-columns: 1fr; gap: 3px; }
    .bcrm-weekly-item-main { align-items: stretch; flex-direction: column; }
    .bcrm-weekly-item-badges { justify-content: flex-start; }
    .bcrm-report-actions { display: grid; grid-template-columns: 1fr; }
    .bcrm-report-actions .bcrm-button { width: 100%; }
    .bcrm-client-report-header { align-items: stretch; flex-direction: column; padding: 22px 20px; }
    .bcrm-client-report-code { min-width: 0; text-align: left; }
    .bcrm-client-report-section { padding: 20px; }
    .bcrm-client-report-details, .bcrm-client-report-grid { grid-template-columns: 1fr; }
    .bcrm-client-report-details div { grid-template-columns: 1fr; gap: 3px; }
    .bcrm-document-request-workspace { grid-template-columns: 1fr; }
    .bcrm-document-open-link { width: 100%; }
    .bcrm-form-sections-grid, .bcrm-client-detail-grid { grid-template-columns: 1fr; }
    .bcrm-relationship-row, .bcrm-task-filters, .bcrm-task-list-row, .bcrm-task-card { grid-template-columns: 1fr; }
    .bcrm-task-due { border-right: 0; border-bottom: 1px solid var(--bcrm-border); padding: 0 0 8px; }
    .bcrm-task-card-badges { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .bcrm-auth-shell { align-items: start; padding: 18px 14px; }
    .bcrm-auth-panel-header { padding: 16px; }
    .bcrm-auth-panel-body { padding: 20px 16px; }
    .bcrm-code-list { grid-template-columns: 1fr; }
}

@media print {
    @page { size: A4; margin: 12mm; }
    body { background: #fff; }
    .bcrm-sidebar, .bcrm-mobile-appbar, .bcrm-topbar, .bcrm-report-actions { display: none; }
    .bcrm-main { padding-left: 0; }
    .bcrm-content { max-width: none; padding: 0; }
    .bcrm-client-report { overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .bcrm-client-report-header { padding: 0 0 16px; }
    .bcrm-client-report-section { padding: 16px 0; }
    .bcrm-client-report-footer { padding: 12px 0 0; background: transparent; }
    .bcrm-client-report-card, .bcrm-client-report-service { background: #fff; }
}
