*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.table-row{display:table-row}.grid{display:grid}.hidden{display:none}.resize{resize:both}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}:root{color:#202936;background:#f4f6f8;font-family:Segoe UI,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--navy: #12233a;--navy-soft: #1c3656;--amber: #c87519;--amber-dark: #9c5811;--graphite: #202936;--muted: #667085;--line: #d8dee8;--surface: #ffffff;--page: #f4f6f8;--green: #1f8a5b;--yellow: #b7791f;--red: #c2413a;--blue: #2563a8}*{box-sizing:border-box}html{scroll-behavior:smooth;overflow-x:hidden}body{margin:0;min-width:320px;min-height:100vh;background:var(--page);overflow-x:hidden}button,input,select,textarea{font:inherit}button{cursor:pointer}#root{min-height:100vh}.app-shell{min-height:100vh;background:var(--page);overflow-x:hidden}.workspace{display:grid;min-height:100vh;grid-template-columns:280px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--navy);color:#eef4fb;padding:24px 18px}.brand-lockup{display:flex;align-items:center;gap:12px;margin-bottom:28px}.brand-mark{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:var(--amber);color:#111827;font-weight:800}.brand-logo-image{width:42px;height:42px;flex:0 0 auto;border:1px solid var(--line);border-radius:8px;background:#fff;-o-object-fit:contain;object-fit:contain}.brand-logo-official{padding:3px;border-color:#ffffff2e;background:#fffffff5}.tenant-logo-preview{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafcf5;color:var(--muted);font-size:12px;font-weight:700}.tenant-logo-preview img{width:48px;height:48px;flex:0 0 auto;-o-object-fit:contain;object-fit:contain;border-radius:8px;background:#fff}.tenant-logo-preview.empty{justify-content:center;border-style:dashed}.brand-name{margin:0;font-size:18px;font-weight:800}.brand-subtitle{margin:2px 0 0;color:#b9c7d9;font-size:12px}.nav-section-label{margin:24px 10px 10px;color:#91a6bf;font-size:11px;font-weight:700;letter-spacing:0;text-transform:uppercase}.nav-list{display:grid;gap:4px;margin:0;padding:0;list-style:none}.nav-link{display:flex;align-items:center;gap:10px;min-height:42px;padding:10px 12px;border-radius:8px;color:#dce7f4;text-decoration:none;font-weight:600;font-size:14px}.nav-link:hover,.nav-link.active{background:#24466d;color:#fff}.main-column{min-width:0}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px;padding:14px 28px;border-bottom:1px solid var(--line);background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar-left,.topbar-right,.search-box,.company-switcher,.user-chip{display:flex;align-items:center;gap:10px}.search-box,.company-switcher,.user-chip{min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fff}.search-box{width:min(420px,38vw);padding:0 12px;color:var(--muted)}.search-box input{width:100%;border:0;outline:0;color:var(--graphite)}.company-switcher{padding:0 12px;color:var(--graphite);font-weight:700;white-space:nowrap}.icon-button{display:grid;width:42px;height:42px;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--graphite)}.user-chip{padding:6px 10px 6px 6px}.avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:var(--navy-soft);color:#fff;font-size:12px;font-weight:800}.user-name{display:block;font-size:13px;font-weight:800}.user-role{display:block;color:var(--muted);font-size:12px}.content{padding:28px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.eyebrow{margin:0 0 6px;color:var(--amber-dark);font-size:12px;font-weight:800;text-transform:uppercase}.page-title{margin:0;color:var(--graphite);font-size:32px;line-height:1.12;letter-spacing:0}.page-description{max-width:760px;margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.6}.grid{display:grid;gap:16px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.two-column{grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr)}.card,.stat-card,.alert-card,.empty-state,.coming-soon,.login-panel,.worker-card{border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 14px 30px #12233a0f}.card,.coming-soon,.login-panel,.worker-card{padding:20px}.stat-card{display:grid;gap:12px;min-height:146px;padding:18px}.stat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.stat-label{margin:0;color:var(--muted);font-size:13px;font-weight:700}.stat-value{margin:8px 0 0;color:var(--graphite);font-size:28px;font-weight:800;letter-spacing:0}.stat-note{color:var(--muted);font-size:12px}.stat-icon{display:grid;width:40px;height:40px;place-items:center;border-radius:8px;background:#f2f5f9}.positive{color:var(--green)}.warning{color:var(--yellow)}.danger{color:var(--red)}.info{color:var(--blue)}.card-title-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px}.card-title{margin:0;color:var(--graphite);font-size:18px;font-weight:800}.activity-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.activity-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #e8edf3;border-radius:8px;background:#fbfcfe}.activity-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;background:#eef4fb;color:var(--blue)}.activity-title{margin:0;font-weight:800}.activity-meta{margin:3px 0 0;color:var(--muted);font-size:13px}.status-badge{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.status-success{background:#e7f6ee;color:#176747}.status-warning{background:#fff4d6;color:#855600}.status-danger{background:#fdebea;color:#9f2f2a}.status-info{background:#e9f2fc;color:#1d5a92}.status-neutral{background:#eef1f5;color:#485465}.alert-card{display:grid;gap:8px;padding:16px}.alert-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.alert-title{margin:0;font-size:15px;font-weight:800}.alert-text{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.chart-bars{display:grid;gap:14px}.bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 70px;align-items:center;gap:12px;color:var(--muted);font-size:13px;font-weight:700}.bar-track{height:12px;overflow:hidden;border-radius:999px;background:#edf1f5}.bar-fill{height:100%;border-radius:inherit;background:var(--amber)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%;min-height:42px;padding:10px 14px;border:1px solid transparent;border-radius:8px;font-weight:800;text-align:center;text-decoration:none;white-space:normal}.button svg,.icon-button svg{flex:0 0 auto}.button-primary{background:var(--amber);color:#111827}.button-primary:hover{background:var(--amber-dark);color:#fff}.button-secondary{border-color:var(--line);background:#fff;color:var(--graphite)}.button-danger{background:var(--red);color:#fff}.button-full{width:100%}.button-large{min-height:58px;font-size:17px}.form-control,.visual-field{display:grid;gap:6px}.form-control.compact-check{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.form-control.compact-check input{width:18px;height:18px;accent-color:var(--copper)}.form-control label,.visual-field-label{color:var(--muted);font-size:12px;font-weight:800}.select,.input,.visual-field-value{width:100%;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--graphite);padding:9px 11px;font-weight:700}.textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--graphite);padding:9px 11px;font:inherit;font-weight:700;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{display:grid;gap:6px}.form-grid label>span{color:var(--muted);font-size:12px;font-weight:800}.form-actions{display:flex;justify-content:flex-end;gap:10px;grid-column:1 / -1}.settings-form-actions{position:sticky;right:0;bottom:0;z-index:3;margin:6px -18px -18px;padding:14px 18px;border-top:1px solid var(--line);background:linear-gradient(180deg,#ffffffeb,#fff)}.modal-form-actions{position:sticky;right:0;bottom:-18px;z-index:4;margin:8px -18px -18px;padding:14px 18px;border-top:1px solid var(--line);background:linear-gradient(180deg,#ffffffe0,#fff 34%)}.modal-form-actions .button{min-width:min(240px,100%)}.modal-body .auth-form>.button:last-child,.modal-body .auth-form>.segmented-actions:last-child:not(.modal-form-actions),.modal-body .auth-form>.form-actions:last-child:not(.modal-form-actions):not(.settings-form-actions){position:sticky;bottom:0;z-index:3}.modal-body .auth-form>.button:last-child{justify-self:end;box-shadow:0 10px 30px #12233a2e}.surface-panel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section-heading h2{margin:0;color:var(--graphite);font-size:20px;letter-spacing:0}.section-subtitle{margin:4px 0 0;color:var(--muted);font-size:13px}.inline-alert{border:1px solid var(--line);border-radius:8px;padding:12px 14px;font-weight:800}.inline-alert.success{border-color:#9ad7bd;background:#edfdf4;color:#166534}.inline-alert.danger{border-color:#fecaca;background:#fef2f2;color:#991b1b}.language-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.language-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:800}.language-option.active{border-color:var(--amber);background:#fff7eb}.coming-soon,.empty-state{display:grid;place-items:center;min-height:420px;text-align:center}.coming-soon-inner,.empty-state-inner{max-width:520px}.empty-state{padding:28px}.login-page{display:grid;min-height:100vh;grid-template-columns:minmax(0,.95fr) minmax(380px,.8fr);background:linear-gradient(120deg,#12233af0,#1c3656eb),url(/icon-512.png)}.login-hero{display:flex;flex-direction:column;justify-content:space-between;padding:56px;color:#fff}.login-client-logo{width:min(180px,52vw);max-height:92px;-o-object-fit:contain;object-fit:contain;-o-object-position:left center;object-position:left center;margin:4px 0 14px;border-radius:8px}.login-hero h1{max-width:680px;margin:34px 0 16px;font-size:56px;line-height:.98;letter-spacing:0}.login-hero p{max-width:640px;color:#d8e2ef;font-size:18px;line-height:1.7}.login-aside{display:grid;align-items:center;padding:28px;background:#eef2f6}.auth-form{display:grid;gap:14px;margin-top:18px}.login-notice,.login-security-note{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.login-notice{padding:12px;border:1px solid #d8e6f7;border-radius:8px;background:#eef6ff;color:#1d5a92;font-weight:700}.global-retention-banner,.retention-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid transparent;border-radius:8px;text-align:left}.global-retention-banner{margin-bottom:14px;cursor:pointer}.global-retention-banner span,.retention-alert div{display:grid;gap:3px}.global-retention-banner strong,.retention-alert strong{color:var(--graphite);font-size:14px}.global-retention-banner small,.retention-alert p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.global-retention-banner.warning,.retention-alert.warning{border-color:#f4c773;background:#fff7e8}.global-retention-banner.danger,.retention-alert.danger{border-color:#f3a2a2;background:#fff1f1}.retention-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.retention-summary-grid>div{display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.retention-guidance{display:flex;gap:8px;align-items:flex-start;margin:12px 0;padding:12px;border:1px solid #f4c773;border-radius:8px;background:#fff7e8;color:var(--graphite);font-size:13px;line-height:1.5}.mfa-box,.session-summary{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.mfa-secret{display:block;overflow-wrap:anywhere;padding:10px;border-radius:8px;background:#eef2f6;color:var(--graphite);font-weight:800}.session-summary{grid-template-columns:96px minmax(0,1fr);margin:18px 0}.session-summary span{color:var(--muted);font-size:12px;font-weight:800}.session-summary strong{overflow-wrap:anywhere;color:var(--graphite);font-size:13px}.production-shell{min-height:100vh}.powered-footer{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:8px 24px 18px;color:var(--muted);font-size:12px;font-weight:700;text-align:center}.powered-logo{width:24px;height:24px;flex:0 0 auto;border-radius:6px;-o-object-fit:contain;object-fit:contain}.production-topbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:12px;min-height:74px;padding:14px 28px;border-bottom:1px solid var(--line);background:#fff}.production-topbar .brand-lockup{flex:0 0 auto;min-width:0;margin-bottom:0}.production-topbar .brand-mark,.production-topbar .brand-logo-image,.production-mobile-drawer .brand-logo-image{width:38px;height:38px}.production-topbar .brand-name{color:var(--graphite);font-size:16px}.production-topbar .brand-subtitle{max-width:150px;overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}.production-session,.crm-client-actions{display:flex;align-items:center;gap:10px}.production-session{flex:0 0 auto}.production-tabs{display:flex;align-items:center;gap:3px;width:-moz-max-content;width:max-content;min-width:-moz-max-content;min-width:max-content;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f6f8fb}.production-tabs-desktop{display:block;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;padding-block:2px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.production-tabs-desktop::-webkit-scrollbar{height:6px}.production-tabs-desktop::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd5e1}.production-drawer-button{display:none}.production-mobile-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:block;border:0;background:#02061794;touch-action:manipulation}.production-mobile-drawer{position:fixed;inset:0 auto 0 0;z-index:1001;display:grid;align-content:start;gap:14px;width:min(86vw,320px);max-width:calc(100vw - 28px);height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:16px;border-right:1px solid var(--line);background:#fff;transform:translate(-105%);transition:transform .18s ease}.production-mobile-drawer.open{transform:translate(0)}.production-drawer-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:8px;background:inherit}.production-drawer-close-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;width:100%;padding:10px 12px;border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#d1770dfa;color:#fff;font-size:14px;font-weight:900;touch-action:manipulation}.production-drawer-close-button.secondary{margin-top:6px;background:#0f172a14;color:inherit}.production-mobile-drawer .brand-lockup{margin-bottom:0}.production-mobile-drawer .production-tabs{display:grid;align-items:stretch;width:100%;min-width:0}.production-tabs button{display:inline-flex;align-items:center;flex:0 0 auto;gap:6px;min-height:34px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}.production-mobile-drawer .production-tabs button{justify-content:flex-start;width:100%;min-width:0;white-space:normal}.production-tabs button.active{background:#fff;color:var(--graphite);box-shadow:0 4px 12px #12233a14}.production-session span{max-width:120px;overflow:hidden;color:var(--muted);font-size:13px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.crm-real-stats{margin-bottom:16px}.settings-session-card{margin-top:16px}.logout-confirm-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #f2c2bd;border-radius:8px;background:#fff5f4}.usage-meter{display:block;width:min(100%,280px);height:8px;margin-top:8px;overflow:hidden;border-radius:999px;background:#e2e8f0}.usage-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f766e,#d97706)}.crm-real-grid{align-items:start}.crm-client-list{display:grid;gap:12px}.crm-client-row{grid-template-columns:38px minmax(0,1fr) auto}.crm-client-button{display:grid;gap:4px;min-width:0;padding:0;border:0;background:transparent;color:var(--graphite);text-align:left}.crm-client-button strong,.crm-client-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-client-button span{color:var(--muted);font-size:13px;font-weight:700}.stacked-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.crm-detail-panel{display:grid;gap:16px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.crm-textarea{min-height:110px;resize:vertical}.crm-note{grid-column:1 / -1;margin:0;padding:10px;border-radius:8px;background:#eef2f6;color:var(--graphite);font-size:13px;line-height:1.5}.production-module-content{display:grid;gap:0}.estimate-real-item{display:grid;grid-template-columns:170px minmax(0,1fr) 110px 90px 130px 120px;gap:10px;align-items:center}.line-item-mobile-heading{display:none;color:var(--graphite);font-size:13px;font-weight:800}.line-item-bottom-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.document-detail-modal{margin:0}.compact-line-control{gap:5px}.compact-line-control span{color:var(--muted);font-size:11px;font-weight:800}.compact-line-control .input,.compact-line-control .select{min-height:42px}.demo-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.role-buttons{display:grid;gap:12px;margin-top:18px}.role-button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--graphite);text-align:left}.role-button:hover{border-color:var(--amber)}.role-button strong{display:block;font-size:15px}.role-button span{display:block;margin-top:3px;color:var(--muted);font-size:12px}.worker-shell{min-height:100vh;padding-bottom:86px;background:#f5f7fa}.worker-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:68px;padding:12px 16px;border-bottom:1px solid var(--line);background:#fff}.worker-content{width:min(760px,100%);margin:0 auto;padding:18px 14px 26px}.worker-hero{display:grid;gap:16px;padding:18px;border-radius:8px;background:var(--navy);color:#fff}.worker-hero p,.worker-hero h1{margin:0}.worker-hero h1{font-size:28px;line-height:1.15}.worker-hero p{color:#cbd8e8}.worker-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.worker-actions .button-primary{grid-column:1 / -1}.worker-module-tabs{display:flex;flex:1 1 auto;align-items:center;gap:4px;min-width:0;overflow-x:auto;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f6f8fb;scrollbar-width:thin}.worker-module-tabs button{display:inline-flex;align-items:center;flex:0 0 auto;gap:6px;min-height:34px;padding:7px 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:13px;font-weight:800;white-space:nowrap}.worker-module-tabs button.active{background:#fff;color:var(--graphite);box-shadow:0 4px 12px #12233a14}.worker-quick-actions,.worker-task-list{display:grid;gap:10px}.worker-task-card,.worker-progress-item{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.worker-task-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.worker-bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:8;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:#fff;box-shadow:0 -12px 28px #12233a1f}.worker-bottom-link{display:grid;min-height:70px;place-items:center;gap:3px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:800}.worker-bottom-link.active{color:var(--amber-dark)}.mobile-menu-button,.mobile-sidebar-backdrop{display:none}.mobile-sidebar{display:contents}.status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filters-row{display:grid;grid-template-columns:minmax(260px,1fr) 220px;gap:12px;align-items:end}.crm-search{width:100%}.filter-control{gap:4px}.kanban-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:14px;overflow-x:auto;padding-bottom:4px}.kanban-column{display:grid;align-content:start;gap:12px;min-width:220px;padding:12px;border:1px solid #e4eaf2;border-radius:8px;background:#f7f9fb}.kanban-column-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.kanban-card{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.responsive-table{display:grid;gap:8px;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-header,.table-row{display:grid;align-items:center;gap:12px;padding:12px}.table-header{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.table-row{border:1px solid #e8edf3;border-radius:8px;background:#fbfcfe;min-width:0}.record-card{align-items:stretch;gap:14px}.attendance-record-card{grid-template-columns:minmax(220px,1.1fr) minmax(150px,.75fr) minmax(150px,.75fr) minmax(180px,.9fr) minmax(150px,.75fr) minmax(190px,.7fr)}.payroll-record-card{grid-template-columns:minmax(230px,1.1fr) minmax(150px,.7fr) minmax(150px,.7fr) minmax(160px,.75fr) minmax(170px,.85fr) minmax(180px,.7fr)}.payroll-payment-record-card{grid-template-columns:minmax(240px,1.2fr) minmax(130px,.65fr) minmax(150px,.75fr) minmax(170px,.75fr)}.attendance-history-card{grid-template-columns:minmax(180px,1.1fr) minmax(150px,.8fr) minmax(130px,.7fr) minmax(110px,.55fr) minmax(120px,.55fr)}.attendance-history-list,.attendance-history-totals{margin-top:14px}.record-main,.record-field{min-width:0;display:grid;gap:5px;align-content:center}.record-main{grid-template-columns:minmax(0,1fr);gap:8px}.record-badges{display:flex;flex-wrap:wrap;gap:8px}.record-label,.record-field>span:first-child{margin:0;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:0}.record-field strong,.record-main strong{overflow-wrap:anywhere}.record-field.highlight strong{font-size:18px}.record-actions{align-content:center;justify-content:end}.review-state-button{width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:9px 12px;font-weight:900;border:1px solid transparent}.review-state-button.success{color:#076b47;background:#e5f7ee;border-color:#b8ead1}.review-state-button.danger{color:#9a1818;background:#fde8e8;border-color:#f7c1c1}.crm-table-grid{grid-template-columns:minmax(220px,1.2fr) minmax(220px,1fr) 140px 150px 120px}.estimates-table-grid{grid-template-columns:minmax(220px,1.2fr) minmax(200px,1fr) 170px 110px 130px}.estimate-items-grid{grid-template-columns:130px minmax(240px,1fr) 90px 90px 100px 110px}.jobs-table-grid{grid-template-columns:minmax(220px,1.1fr) minmax(220px,1fr) 170px 170px 120px}.task-row-grid{grid-template-columns:minmax(220px,1fr) 120px minmax(160px,.8fr) 150px}.super-admin-shell .production-topbar{grid-template-columns:minmax(0,1fr) auto}.super-admin-shell .production-main{max-width:1320px;margin-inline:auto}.super-admin-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.super-admin-stats-grid .stat-card{min-height:128px;padding:16px;gap:8px}.super-admin-stats-grid .stat-icon{width:34px;height:34px}.super-admin-stats-grid .stat-value{margin-top:4px;font-size:25px}.super-admin-stats-grid .stat-note{font-size:11px}.super-admin-grid{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(420px,1.1fr);gap:16px;align-items:start}.super-admin-tenant-row{width:100%;grid-template-columns:minmax(240px,1fr) 140px 130px;color:inherit;text-align:left;cursor:pointer}.super-admin-alert-row{width:100%;grid-template-columns:minmax(220px,1fr) 150px 150px 140px;color:inherit;text-align:left;cursor:pointer}.super-admin-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.detail-tile{min-width:0;border:1px solid var(--line);border-radius:8px;background:#f8fbff;padding:12px}.detail-tile span,.super-admin-mini-metrics span{color:var(--muted);font-size:12px;font-weight:700}.detail-tile strong{display:block;overflow-wrap:anywhere;margin-top:5px;color:var(--graphite);font-size:14px}.super-admin-mini-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.super-admin-mini-metrics span{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:10px}.super-admin-mini-metrics strong{display:block;color:var(--graphite);font-size:18px}.surface-subpanel{border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px}.section-heading.compact{margin-bottom:10px}.section-heading.compact h3{margin:0;color:var(--graphite);font-size:16px}.super-admin-user-row{grid-template-columns:auto minmax(0,1fr) auto}@media(max-width:1100px){.super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.super-admin-tenant-row.selected{border-color:var(--amber);background:#fff7eb}.super-admin-tenant-row small{display:block;margin-top:4px;color:var(--muted);font-size:12px;font-weight:700}.provider-footer{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;color:var(--muted);font-size:12px;font-weight:800;text-align:center}.toast-viewport{position:fixed;right:18px;bottom:18px;z-index:40;display:grid;gap:10px;width:min(420px,calc(100vw - 28px))}.toast-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 14px 36px #12233a29;color:var(--graphite);font-size:13px;font-weight:800}.toast-item.success{border-color:#bbf7d0;background:#f0fdf4}.toast-item.warning{border-color:#fde68a;background:#fffbeb}.toast-item.danger{border-color:#fecaca;background:#fef2f2}.toast-item button{display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--muted)}.progress-track{width:100%;height:10px;overflow:hidden;border-radius:999px;background:#e8edf3;margin:12px 0 8px}.progress-track span{display:block;height:100%;border-radius:inherit;background:#0f766e;transition:width .16s ease}.segmented-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:100%}.action-panel-card{margin-top:16px;border-color:#cbdff7;background:#fbfdff}.workforce-table-grid{grid-template-columns:minmax(220px,1.1fr) minmax(220px,1fr) 170px 120px 120px}.worker-assignment-grid,.worker-document-grid{grid-template-columns:minmax(220px,1fr) 120px 130px}.attendance-table-grid{grid-template-columns:minmax(180px,.9fr) minmax(220px,1.1fr) 120px 150px 90px 190px}.field-report-grid{grid-template-columns:minmax(220px,1fr) minmax(240px,1.1fr) minmax(220px,1fr) 170px 140px}.material-row-grid{grid-template-columns:minmax(160px,1fr) 100px minmax(120px,.8fr)}.documents-table-grid{grid-template-columns:minmax(240px,1.2fr) minmax(180px,.9fr) 170px 170px 120px}.invoices-table-grid{grid-template-columns:minmax(220px,1.1fr) minmax(190px,1fr) 140px 110px minmax(210px,.9fr)}.invoice-items-grid{grid-template-columns:minmax(260px,1fr) 100px 120px 120px}.payment-row-grid{grid-template-columns:minmax(160px,1fr) 150px 180px 140px}.receivables-table-grid{grid-template-columns:minmax(220px,1fr) 140px 150px 180px 120px}.expenses-table-grid{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) 190px 120px 130px}.expense-items-grid{grid-template-columns:minmax(260px,1fr) 120px 120px}.finance-table-grid{grid-template-columns:90px minmax(260px,1.2fr) 170px 140px 120px}.payroll-table-grid{grid-template-columns:minmax(220px,1.1fr) minmax(150px,.8fr) minmax(160px,.8fr) 120px minmax(190px,.8fr)}.payroll-payments-grid{grid-template-columns:minmax(240px,1.2fr) 110px 140px 140px 170px}.profitability-table-grid{grid-template-columns:minmax(260px,1.2fr) 120px 120px 120px 170px}.document-template-preview-grid,.document-field-toggle-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.document-template-preview{min-height:150px;border:1px solid var(--border);border-radius:8px;padding:12px;background:#fff;display:grid;gap:8px;align-content:start}.document-template-preview.active{border-color:var(--accent);box-shadow:0 0 0 2px #0e749026}.template-preview-header{height:34px;border-radius:4px}.document-template-preview span:not(.status-badge){display:block;height:8px;border-radius:99px;background:#e5e7eb}.document-template-preview.blue .template-preview-header{background:linear-gradient(90deg,#0f3b70 70%,#ff9f1c 70%)}.document-template-preview.teal .template-preview-header{background:linear-gradient(90deg,#6eaec0,#d9eef4)}.document-template-preview.red .template-preview-header{background:linear-gradient(90deg,#ef4444 60%,#f59e0b 60%)}.document-template-preview.navy .template-preview-header{background:linear-gradient(90deg,#27254f,#e66f84)}.checkbox-row{display:flex;gap:8px;align-items:center;min-height:34px;color:var(--muted);font-size:.9rem}.document-cost-grid{display:grid;gap:8px}.document-cost-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(120px,.55fr);gap:10px;align-items:center}.assets-table-grid{grid-template-columns:minmax(220px,1fr) minmax(230px,1fr) 210px 120px 130px}.liabilities-table-grid{grid-template-columns:minmax(220px,1fr) minmax(230px,1fr) 170px 120px 130px}.maintenance-table-grid{grid-template-columns:130px minmax(260px,1.2fr) minmax(220px,1fr) 170px}.schedule-table-grid{grid-template-columns:minmax(160px,1fr) 140px 170px}.notifications-table-grid{grid-template-columns:minmax(260px,1.3fr) minmax(210px,1fr) 130px 170px 140px}.reports-table-grid{grid-template-columns:minmax(280px,1.4fr) 170px 140px 180px}.audit-table-grid{grid-template-columns:160px minmax(160px,.8fr) minmax(260px,1.3fr) 150px 180px}.email-table-grid{grid-template-columns:150px minmax(220px,1fr) minmax(260px,1.3fr) minmax(160px,.8fr) 140px}.users-table-grid{grid-template-columns:minmax(220px,1fr) 130px 190px minmax(220px,1fr)}.roles-table-grid{grid-template-columns:150px minmax(280px,1.3fr) minmax(240px,1fr)}.settings-table-grid{grid-template-columns:minmax(180px,.9fr) 140px minmax(220px,1fr) 170px}.sector-terms-grid{grid-template-columns:minmax(180px,.8fr) minmax(240px,1fr) minmax(240px,1fr) 190px}.sector-modules-grid{grid-template-columns:150px minmax(220px,1fr) minmax(240px,1fr) 190px 100px}.marketing-campaign-grid{grid-template-columns:minmax(240px,1.2fr) minmax(170px,.9fr) 90px 130px}.marketing-leads-grid{grid-template-columns:minmax(180px,1fr) minmax(170px,.9fr) minmax(180px,1fr) 140px 170px}.workforce-calendar{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:12px;overflow-x:auto;padding-bottom:4px}.calendar-day{display:grid;align-content:start;gap:12px;min-width:150px;min-height:170px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.calendar-slot{display:block;padding:9px;border-radius:8px;background:#eef4fb;color:var(--graphite);font-size:12px;font-weight:800}.map-placeholder{display:grid;min-height:220px;place-items:center;padding:20px;border:1px dashed #b9c3d1;border-radius:8px;background:linear-gradient(135deg,#2563a814,#c8751914),#f7f9fb;color:var(--muted);text-align:center;font-weight:800}.job-phase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.job-phase-card{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.estimate-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.estimate-step{display:flex;align-items:center;gap:10px;min-height:58px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.estimate-step span{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:var(--navy-soft);color:#fff;font-size:13px;font-weight:800}.document-preview{display:grid;min-height:420px;place-items:center;border:1px solid var(--line);border-radius:8px;background:linear-gradient(135deg,#12233a14,#c8751914),#eef2f6}.preview-paper{width:min(360px,calc(100% - 32px));min-height:320px;padding:28px;border:1px solid #d5dce7;border-radius:4px;background:#fff;box-shadow:0 18px 40px #12233a24}.preview-paper h2,.preview-paper p{margin:0 0 12px}.preview-paper hr{border:0;border-top:1px solid var(--line);margin:18px 0}.evidence-box{display:grid;min-height:150px;place-items:center;border:1px dashed #b9c3d1;border-radius:8px;background:#f7f9fb;color:var(--muted);text-align:center;font-weight:800}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;padding:16px;overflow:auto;background:#12233a75}.modal{width:min(520px,100%);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 24px 60px #12233a47}.modal-wide{width:min(920px,100%)}.modal-header,.modal-body,.modal-footer{padding:18px}.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.modal-header,.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.modal-footer{border-top:1px solid var(--line);border-bottom:0}.theme-toggle-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--graphite);font-weight:800}@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}.search-box{width:260px}.production-layout{display:block}.production-sidebar{display:none}.production-drawer-button{display:grid}.production-tabs-desktop{display:none}.worker-shell>.production-topbar{grid-template-columns:42px minmax(0,1fr)}.worker-shell>.production-topbar>.worker-module-tabs,.worker-shell>.production-topbar>.production-session{display:none}.production-mobile-drawer .worker-module-tabs{display:grid;width:100%;min-width:0;overflow:visible}.production-mobile-drawer .worker-module-tabs button{justify-content:flex-start;width:100%;min-width:0;white-space:normal}}@media(max-width:920px){.workspace{grid-template-columns:1fr}.mobile-menu-button{display:grid}.mobile-sidebar{position:fixed;inset:0 auto 0 0;z-index:11;width:min(86vw,320px);transform:translate(-105%);transition:transform .18s ease}.mobile-sidebar.open{transform:translate(0)}.mobile-sidebar .sidebar{position:static;height:100vh}.mobile-sidebar-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:block;border:0;background:#12233a70}.topbar{padding:12px 16px}.topbar-right .company-switcher,.topbar-right .search-box{display:none}.content{padding:20px 16px}.login-page{grid-template-columns:1fr}.login-hero{min-height:44vh}.production-topbar{padding:12px 16px}}@media(max-width:640px){.modal-backdrop{place-items:start center;padding:10px;overflow-y:auto}.modal{width:100%;max-height:calc(100dvh - 20px)}.modal-body{flex:1 1 auto;min-height:0;max-height:calc(100dvh - 112px)}.modal-header,.modal-body,.modal-footer{padding:14px}.modal-form-actions,.settings-form-actions{bottom:-14px;margin:8px -14px -14px;padding:12px 14px}.modal-form-actions .button,.settings-form-actions .button,.modal-body .auth-form>.button:last-child{width:100%}.content{padding:14px}.login-hero{padding:28px}.login-hero h1{font-size:36px}.card,.coming-soon,.login-panel,.worker-card{padding:14px}.page-title{font-size:24px}.global-retention-banner,.retention-alert{align-items:flex-start;flex-direction:column}.retention-summary-grid,.stats-grid,.status-grid,.proof-grid,.language-selector{grid-template-columns:1fr}.crm-real-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.crm-real-stats .stat-card{min-height:92px;padding:10px;gap:6px}.crm-real-stats .stat-top{gap:8px}.crm-real-stats .stat-label{font-size:11px}.crm-real-stats .stat-value{margin-top:3px;font-size:19px}.crm-real-stats .stat-note{font-size:10px}.crm-real-stats .stat-icon{width:30px;height:30px}.filters-row{grid-template-columns:1fr}.table-header{display:none}.crm-table-grid,.estimates-table-grid,.estimate-items-grid,.jobs-table-grid,.task-row-grid,.workforce-table-grid,.worker-assignment-grid,.worker-document-grid,.attendance-table-grid,.attendance-record-card,.attendance-history-card,.field-report-grid,.material-row-grid,.documents-table-grid,.invoices-table-grid,.invoice-items-grid,.payment-row-grid,.receivables-table-grid,.expenses-table-grid,.expense-items-grid,.finance-table-grid,.payroll-table-grid,.payroll-payments-grid,.payroll-record-card,.payroll-payment-record-card,.profitability-table-grid,.assets-table-grid,.liabilities-table-grid,.maintenance-table-grid,.schedule-table-grid,.notifications-table-grid,.reports-table-grid,.audit-table-grid,.email-table-grid,.users-table-grid,.roles-table-grid,.settings-table-grid,.sector-terms-grid,.sector-modules-grid,.marketing-campaign-grid,.marketing-leads-grid,.job-phase-grid,.estimate-steps{grid-template-columns:1fr}.table-row{align-items:stretch}.record-card{gap:10px}.record-actions{justify-content:stretch}.table-row>*,.card,.stat-card,.empty-state,.form-control,.visual-field{min-width:0}.table-row strong,.table-row span,.table-row p,.activity-meta,.status-badge{overflow-wrap:anywhere}.segmented-actions,.page-header>*{width:100%}.segmented-actions .button{flex:1 1 180px}.page-header{display:grid}.activity-item{grid-template-columns:38px minmax(0,1fr)}.activity-item .status-badge{grid-column:2;justify-self:start}.super-admin-user-row{grid-template-columns:38px minmax(0,1fr)}.super-admin-user-row .segmented-actions{grid-column:2}.production-session,.crm-client-actions{align-items:stretch}.crm-client-row{display:grid;grid-template-columns:1fr}.production-topbar{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-height:62px;padding:10px 12px}.worker-module-tabs{order:2;width:100%}.worker-module-tabs button{flex:1 0 118px;justify-content:center}.worker-task-actions .button{flex:1 1 160px}.production-topbar .brand-lockup{min-width:0}.production-topbar .brand-name,.production-topbar .brand-subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-topbar .brand-mark,.production-topbar .brand-logo-image{width:34px;height:34px}.production-mobile-drawer{width:min(88vw,320px)}.production-session,.crm-client-actions{display:grid;grid-template-columns:1fr}.super-admin-grid,.form-grid{grid-template-columns:1fr}.super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.super-admin-tenant-row,.super-admin-alert-row{grid-template-columns:1fr}.logout-confirm-panel{align-items:stretch;flex-direction:column}.crm-client-row .activity-icon{display:none}.estimate-real-item,.invoice-items-grid{grid-template-columns:1fr}.line-item-mobile-heading{display:block}.line-item-bottom-actions{position:sticky;bottom:0;z-index:1;justify-content:stretch;padding:10px 0 0;background:linear-gradient(180deg,#fff0,#fff 35%)}.line-item-bottom-actions .button{width:100%}.compact-line-control{gap:6px}.bar-row{grid-template-columns:1fr;gap:6px}.topbar-right .user-chip span{display:none}.topbar .button{width:42px;min-width:42px;padding:0;overflow:hidden;color:transparent;font-size:0}.topbar .button:before{color:var(--graphite);content:"Rol";font-size:12px;font-weight:800}.worker-actions{grid-template-columns:1fr}.worker-actions .button-primary{grid-column:auto}}.theme-dark{--navy: #0a101c;--navy-soft: #111a2b;--amber: #8b5cf6;--amber-dark: #6d4bea;--graphite: #f7f9ff;--muted: #9aa7bd;--line: rgba(148, 163, 184, .18);--surface: rgba(17, 25, 40, .78);--page: #080d18;--green: #34d399;--yellow: #fbbf24;--red: #fb7185;--blue: #8b5cf6;min-height:100vh;color:var(--graphite);background:radial-gradient(circle at 18% 0%,rgba(139,92,246,.18),transparent 30%),radial-gradient(circle at 78% 12%,rgba(59,130,246,.12),transparent 32%),linear-gradient(135deg,#080d18,#0d1422 58%,#090e19)}.theme-dark .production-layout{display:grid;grid-template-columns:274px minmax(0,1fr);min-height:100vh}.theme-dark .production-sidebar{position:sticky;top:0;display:grid;align-content:start;gap:18px;height:100vh;overflow-y:auto;padding:28px 22px;border-right:1px solid rgba(148,163,184,.16);background:linear-gradient(180deg,#0c1220f5,#0a0f1beb);box-shadow:18px 0 46px #00000038}.theme-dark .production-main-area{min-width:0}.theme-dark .production-topbar{display:none}.theme-dark .production-content{padding:34px}.theme-dark .brand-lockup{gap:13px;margin-bottom:12px}.theme-dark .brand-mark{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#8b5cf6,#4f46e5);color:#fff;box-shadow:0 12px 28px #8b5cf652}.theme-dark .brand-name,.theme-dark .page-title,.theme-dark .card-title,.theme-dark .section-heading h2,.theme-dark .section-heading.compact h3,.theme-dark .stat-value,.theme-dark .activity-title,.theme-dark .activity-item strong,.theme-dark .detail-tile strong,.theme-dark .super-admin-mini-metrics strong,.theme-dark .preview-paper h2,.theme-dark .global-retention-banner strong,.theme-dark .retention-alert strong,.theme-dark .session-summary strong,.theme-dark .crm-client-button,.theme-dark .inline-alert strong{color:var(--graphite)}.theme-dark .brand-subtitle,.theme-dark .page-description,.theme-dark .stat-label,.theme-dark .stat-note,.theme-dark .activity-meta,.theme-dark .alert-text,.theme-dark .section-subtitle,.theme-dark .visual-field-label,.theme-dark .form-control label,.theme-dark .form-grid label>span,.theme-dark .session-summary span,.theme-dark .detail-tile span,.theme-dark .super-admin-mini-metrics span,.theme-dark .checkbox-row,.theme-dark .powered-footer,.theme-dark .production-session span,.theme-dark .global-retention-banner small,.theme-dark .retention-alert p,.theme-dark .crm-client-button span,.theme-dark .super-admin-tenant-row small{color:var(--muted)}.theme-dark .production-sidebar-search{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 12px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:#ffffff0e;color:var(--muted);box-shadow:inset 0 1px #ffffff0a}.theme-dark .production-sidebar-search small{display:inline-grid;place-items:center;min-width:34px;min-height:24px;border-radius:6px;background:#ffffff12;color:#cbd5e1;font-size:11px;font-weight:800}.theme-dark .production-sidebar-footer{display:grid;gap:4px;margin-top:18px;padding:14px;border:1px solid rgba(148,163,184,.14);border-radius:8px;background:linear-gradient(135deg,#8b5cf61f,#ffffff0a)}.theme-dark .production-sidebar-footer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-dark .production-sidebar-footer span{color:var(--muted);font-size:12px;font-weight:800}.theme-dark .nav-section-label{color:#717d96}.theme-dark .production-tabs{display:grid;gap:6px;width:100%;min-width:0;padding:0;border:0;border-radius:0;background:transparent}.theme-dark .production-tabs button{justify-content:flex-start;width:100%;min-height:44px;padding:10px 13px;border:1px solid transparent;border-radius:8px;color:#aab6c9;font-size:14px;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.theme-dark .production-tabs button:hover,.theme-dark .production-tabs button.active{border-color:#8b5cf69e;background:linear-gradient(135deg,#8b5cf63d,#4f46e51f);color:#fff;box-shadow:0 12px 26px #4f46e52e,inset 0 1px #ffffff14}.theme-dark .card,.theme-dark .stat-card,.theme-dark .alert-card,.theme-dark .empty-state,.theme-dark .coming-soon,.theme-dark .login-panel,.theme-dark .worker-card,.theme-dark .surface-panel,.theme-dark .surface-subpanel,.theme-dark .activity-item,.theme-dark .calendar-day,.theme-dark .job-phase-card,.theme-dark .estimate-step,.theme-dark .detail-tile,.theme-dark .mfa-box,.theme-dark .session-summary,.theme-dark .retention-summary-grid>div,.theme-dark .document-template-preview,.theme-dark .modal,.theme-dark .toast-item,.theme-dark .language-option,.theme-dark .visual-field-value,.theme-dark .preview-paper{border-color:var(--line);background:linear-gradient(180deg,#141d2ee0,#0e1523d6);box-shadow:0 18px 44px #00000038,inset 0 1px #ffffff0b}.theme-dark .stat-card{min-height:144px;padding:20px;overflow:hidden}.theme-dark .stat-icon,.theme-dark .activity-icon,.theme-dark .icon-button{border:1px solid rgba(148,163,184,.14);background:#ffffff0e;color:#a78bfa}.theme-dark .stat-icon.positive,.theme-dark .positive{color:#34d399}.theme-dark .stat-icon.warning,.theme-dark .warning{color:#fbbf24}.theme-dark .stat-icon.danger,.theme-dark .danger{color:#fb7185}.theme-dark .input,.theme-dark .select,.theme-dark .textarea,.theme-dark .search-box,.theme-dark .company-switcher,.theme-dark .user-chip,.theme-dark .form-control.compact-check,.theme-dark .language-option,.theme-dark .mfa-secret{border-color:#94a3b82e;background:#ffffff0e;color:var(--graphite)}.theme-dark .input::-moz-placeholder,.theme-dark .textarea::-moz-placeholder,.theme-dark .search-box input::-moz-placeholder{color:#7f8ca3}.theme-dark .input::placeholder,.theme-dark .textarea::placeholder,.theme-dark .search-box input::placeholder{color:#7f8ca3}.theme-dark .select option{background:#0f172a;color:#f8fafc}.theme-dark .button{border-radius:8px;box-shadow:0 10px 24px #0000002e}.theme-dark .button-primary{background:linear-gradient(135deg,#8b5cf6,#5b4bdc);color:#fff}.theme-dark .button-primary:hover{background:linear-gradient(135deg,#a78bfa,#6d5df1)}.theme-dark .button-secondary{border-color:#94a3b82e;background:#ffffff0f;color:var(--graphite)}.theme-dark .button-danger{background:linear-gradient(135deg,#e11d48,#be123c)}.theme-dark .status-success{background:#10b98124;color:#6ee7b7}.theme-dark .status-warning{background:#f59e0b24;color:#fcd34d}.theme-dark .status-danger{background:#f43f5e24;color:#fda4af}.theme-dark .status-info,.theme-dark .status-neutral{background:#8b5cf624;color:#c4b5fd}.theme-dark .modal-backdrop{background:#030712b8;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.theme-dark .modal-header,.theme-dark .modal-footer{border-color:var(--line)}.theme-dark .table-row{border-color:#94a3b829;background:#ffffff09}.theme-dark .super-admin-tenant-row.selected,.theme-dark .language-option.active,.theme-dark .document-template-preview.active{border-color:#8b5cf6b8;background:#8b5cf624}.theme-dark .bar-track,.theme-dark .progress-track,.theme-dark .usage-meter{background:#94a3b829}.theme-dark .bar-fill,.theme-dark .progress-track span,.theme-dark .usage-meter span{background:linear-gradient(90deg,#8b5cf6,#c4b5fd)}.theme-dark .global-retention-banner.warning,.theme-dark .retention-alert.warning,.theme-dark .retention-guidance{border-color:#f59e0b6b;background:#f59e0b1f}.theme-dark .global-retention-banner.danger,.theme-dark .retention-alert.danger,.theme-dark .logout-confirm-panel{border-color:#f43f5e6b;background:#f43f5e1f}.theme-dark .line-item-bottom-actions{background:linear-gradient(180deg,#080d1800,#0e1523 35%)}.theme-dark.super-admin-shell .production-main{width:min(1320px,calc(100% - 32px));max-width:1320px;margin-inline:auto;padding:30px 0 44px}.theme-dark.super-admin-shell{padding:0}.theme-dark.super-admin-shell .production-topbar{display:flex;border-color:#94a3b829;background:#0a101ce6}.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.theme-dark.super-admin-shell .super-admin-stats-grid .stat-card{min-height:132px}@media(max-width:1180px){.theme-dark .production-layout{grid-template-columns:236px minmax(0,1fr)}.theme-dark .production-sidebar{padding:22px 16px}.theme-dark .production-content{padding:26px}}@media(max-width:920px){.theme-dark .production-layout{display:block}.theme-dark .production-sidebar{display:none}.theme-dark .production-topbar{display:grid;grid-template-columns:42px minmax(0,1fr);min-height:66px;border-bottom:1px solid rgba(148,163,184,.16);background:#0a101ceb}.theme-dark .production-drawer-button{display:grid}.theme-dark .production-mobile-drawer{border-color:#94a3b82e;background:linear-gradient(180deg,#0c1220fa,#0a0f1bfa)}.theme-dark .production-content{padding:20px 16px}.theme-dark.super-admin-shell .production-main{width:min(100% - 24px,1320px)}}@media(max-width:640px){.theme-dark .production-content{padding:14px}.theme-dark .stat-card{min-height:108px;padding:13px}.theme-dark .modal{border-radius:8px}.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.theme-dark .page-header{align-items:end;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid rgba(148,163,184,.14)}.theme-dark .page-title{font-size:clamp(26px,2.25rem,38px);font-weight:850}.theme-dark .page-description{max-width:840px;color:#a8b4c8}.theme-dark .stats-grid,.theme-dark .crm-real-stats{grid-template-columns:repeat(4,minmax(190px,1fr));gap:14px}.theme-dark .card,.theme-dark .surface-panel,.theme-dark .surface-subpanel{padding:18px}.theme-dark .stat-card{position:relative;isolation:isolate;min-height:156px;padding:18px;align-content:start;border-color:#94a3b833;background:linear-gradient(180deg,#1a253ae6,#0d1422e0),linear-gradient(135deg,#8b5cf61f,#14b8a614)}.theme-dark .stat-card:before{content:"";position:absolute;inset:auto 12px 42px 12px;height:1px;background:linear-gradient(90deg,transparent,rgba(139,92,246,.56),rgba(45,212,191,.32),transparent);pointer-events:none}.theme-dark .stat-card:after{content:"";position:absolute;inset:auto 18px 38px 18px;height:38px;opacity:.32;background:linear-gradient(135deg,transparent 44%,rgba(139,92,246,.9) 45%,rgba(139,92,246,.9) 48%,transparent 49%),linear-gradient(160deg,transparent 30%,rgba(45,212,191,.55) 31%,rgba(45,212,191,.55) 34%,transparent 35%);clip-path:polygon(0 72%,14% 54%,28% 66%,44% 34%,60% 48%,76% 24%,100% 8%,100% 100%,0 100%);pointer-events:none}.theme-dark .stat-top{position:relative;z-index:1}.theme-dark .stat-label{font-size:12px;text-transform:none}.theme-dark .stat-value{margin-top:10px;font-size:clamp(24px,2rem,34px);line-height:1.05}.theme-dark .stat-note{position:relative;z-index:1;align-self:end;margin-top:34px}.theme-dark .stat-card-visual{position:relative;z-index:1;display:flex;align-items:end;gap:5px;height:38px;margin-top:10px;padding-right:56px}.theme-dark .stat-card-visual span{width:100%;min-width:5px;max-width:15px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#a78bfaeb,#4f46e55c);box-shadow:0 0 16px #8b5cf638}.theme-dark .stat-card-positive .stat-card-visual span,.theme-dark .stat-card.stat-card-positive:before{background:linear-gradient(180deg,#34d399eb,#10b98147)}.theme-dark .stat-card-warning .stat-card-visual span{background:linear-gradient(180deg,#fbbf24eb,#f59e0b47)}.theme-dark .stat-card-danger .stat-card-visual span{background:linear-gradient(180deg,#fb7185eb,#e11d4847)}.theme-dark .stat-trend{position:absolute;top:54px;right:18px;z-index:2;border-radius:8px;padding:5px 8px;background:#ffffff0f;font-size:12px;font-weight:900}.theme-dark .compact-stat-card{min-height:128px}.theme-dark .compact-stat-card .stat-card-visual,.theme-dark .compact-stat-card:after,.theme-dark .compact-stat-card:before{display:none}.theme-dark .card-title-row{margin-bottom:14px}.theme-dark .responsive-table{gap:10px}.theme-dark .table-row{padding:13px 14px;border-color:#94a3b82e;background:linear-gradient(180deg,#ffffff0d,#ffffff06)}.theme-dark .table-row:hover{border-color:#8b5cf661;background:#8b5cf614}.theme-dark .form-grid,.theme-dark .auth-form{gap:14px}.theme-dark .form-control,.theme-dark .form-grid label{min-width:0}.theme-dark .form-control>span,.theme-dark .form-grid label>span{color:#b8c2d4}.theme-dark .tenant-logo-preview{border-color:#94a3b82e;background:#0f172ac7;color:#b8c2d4}.theme-dark .tenant-logo-preview img{background:#fffffff0}.theme-dark .input,.theme-dark .select,.theme-dark .textarea{min-height:46px;border-radius:8px}.theme-dark textarea.input,.theme-dark .textarea,.theme-dark .crm-textarea{min-height:96px}.theme-dark .modal{border:1px solid rgba(148,163,184,.22);background:linear-gradient(180deg,#111928fa,#0a0f1bfa)}.theme-dark .modal-header{position:sticky;top:0;z-index:2;background:#0c1220f5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-dark .modal-footer{position:sticky;bottom:0;z-index:2;background:#0c1220f5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-dark .settings-form-actions{border-color:#94a3b82e;background:linear-gradient(180deg,#0c1220b3,#0c1220f5);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-dark .modal-form-actions{border-color:#94a3b82e;background:linear-gradient(180deg,#0c1220b3,#0c1220f5 34%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-dark .theme-toggle-button{border-color:#94a3b829;background:#0f172aa3;color:#e5edf8}.theme-dark .segmented-actions{gap:10px}.theme-dark .button{min-height:42px}.theme-dark .two-column,.theme-dark .crm-real-grid,.theme-dark .super-admin-grid{gap:16px}.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(4,minmax(180px,1fr))}.theme-dark.super-admin-shell .super-admin-stats-grid .stat-card{min-height:150px}@media(max-width:1180px){.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(3,minmax(190px,1fr))}}@media(max-width:920px){.theme-dark .page-header{align-items:start}.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-dark .stat-card{min-height:132px}}@media(max-width:520px){.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-dark.super-admin-shell .super-admin-stats-grid{grid-template-columns:1fr}.theme-dark .stat-card{min-height:118px}.theme-dark .stat-card-visual,.theme-dark .stat-card:after,.theme-dark .stat-card:before{display:none}.theme-dark .stat-note{margin-top:6px}}.theme-dark.login-page{grid-template-columns:minmax(0,.95fr) minmax(400px,.72fr);overflow:hidden;background:linear-gradient(135deg,#080d18fa,#0c1220f0),url(/icon-512.png);background-size:auto,320px;background-position:center,left 8% top 12%}.theme-dark.login-page .login-hero{position:relative;min-height:100vh;padding:48px;border-right:1px solid rgba(148,163,184,.14);background:linear-gradient(180deg,#1118277a,#090e192e),repeating-linear-gradient(135deg,rgba(139,92,246,.08) 0 1px,transparent 1px 44px)}.theme-dark.login-page .login-hero .brand-lockup{align-self:start;padding:10px 12px;border:1px solid rgba(148,163,184,.16);border-radius:8px;background:#ffffff0b}.theme-dark.login-page .login-client-logo{padding:10px;border:1px solid rgba(148,163,184,.18);background:#ffffff0f}.theme-dark.login-page .login-hero h1{max-width:720px;font-size:clamp(38px,4.2rem,68px);line-height:.98;color:#fff}.theme-dark.login-page .login-hero p{color:#c7d2e3}.theme-dark.login-page .login-aside{align-items:center;padding:30px;background:#080d18b8;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.theme-dark.login-page .login-panel{width:min(100%,560px);margin-inline:auto;padding:24px;border-color:#94a3b833;background:linear-gradient(180deg,#182235f0,#0d1422f0),linear-gradient(135deg,#8b5cf624,#14b8a60f)}.theme-dark.login-page .login-notice{border-color:#60a5fa57;background:#2563eb24;color:#bfdbfe}.theme-dark.worker-shell{min-height:100vh;padding-bottom:72px}.theme-dark.worker-shell .production-topbar{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr) auto;align-items:center;gap:14px;min-height:78px;padding:14px 24px;border-bottom:1px solid rgba(148,163,184,.16);background:#0a101cf0;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.theme-dark.worker-shell .content{width:min(1280px,calc(100% - 32px));margin-inline:auto;padding:28px 0 36px}.theme-dark.worker-shell .production-module-content{display:grid;gap:18px}.theme-dark.worker-shell .worker-module-tabs{border-color:#94a3b82e;background:#ffffff0b}.theme-dark.worker-shell .worker-module-tabs button{min-height:40px;color:#9aa7bd}.theme-dark.worker-shell .worker-module-tabs button:hover,.theme-dark.worker-shell .worker-module-tabs button.active{background:linear-gradient(135deg,#8b5cf642,#4f46e51f);color:#fff;box-shadow:inset 0 0 0 1px #8b5cf657}.theme-dark.worker-shell .worker-task-card,.theme-dark.worker-shell .worker-progress-item{border-color:#94a3b82e;background:linear-gradient(180deg,#141d2ee0,#0e1523d6)}.theme-dark.worker-shell .worker-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-dark.worker-shell .powered-footer{color:#7f8ca3}@media(max-width:980px){.theme-dark.login-page{grid-template-columns:1fr;overflow:auto}.theme-dark.login-page .login-hero{min-height:auto;padding:30px}.theme-dark.login-page .login-hero h1{font-size:clamp(34px,3rem,48px)}.theme-dark.worker-shell .production-topbar{grid-template-columns:minmax(0,1fr);align-items:start}.theme-dark.worker-shell .production-session{width:100%;justify-content:space-between}.theme-dark.worker-shell .worker-module-tabs{width:100%}}@media(max-width:640px){.theme-dark.login-page .login-hero{padding:22px}.theme-dark.login-page .login-aside,.theme-dark.login-page .login-panel{padding:18px}.theme-dark.worker-shell{padding-bottom:20px}.theme-dark.worker-shell .production-topbar{padding:12px 14px}.theme-dark.worker-shell .content{width:min(100% - 20px,1280px);padding-top:18px}.theme-dark.worker-shell .worker-quick-actions{grid-template-columns:1fr}}.theme-light{--navy: #f8fbff;--navy-soft: #e8eef8;--amber: #7c3aed;--amber-dark: #5b3fd6;--graphite: #162033;--muted: #65758c;--line: rgba(100, 116, 139, .2);--surface: rgba(255, 255, 255, .82);--page: #eef4fb;--green: #0f9f6e;--yellow: #b98112;--red: #dc3153;--blue: #2563eb;min-height:100vh;color:var(--graphite);background:radial-gradient(circle at 18% 0%,rgba(124,58,237,.12),transparent 30%),radial-gradient(circle at 78% 12%,rgba(20,184,166,.12),transparent 32%),linear-gradient(135deg,#f8fbff,#edf4fb 54%,#f6f8ff)}.theme-dark .production-layout,.theme-light .production-layout{display:grid;grid-template-columns:274px minmax(0,1fr);min-height:100vh}.theme-dark .production-sidebar,.theme-light .production-sidebar{position:sticky;top:0;display:grid;align-content:start;gap:18px;height:100vh;overflow-y:auto;padding:28px 22px}.theme-light .production-sidebar{border-right:1px solid rgba(100,116,139,.16);background:linear-gradient(180deg,#fffffff5,#f1f7ffeb);box-shadow:18px 0 46px #5b3fd614}.theme-dark .production-main-area,.theme-light .production-main-area{min-width:0}.theme-dark .production-topbar,.theme-light .production-topbar{display:none}.theme-dark .production-content,.theme-light .production-content{padding:34px}.theme-dark .brand-lockup,.theme-light .brand-lockup{gap:13px;margin-bottom:12px}.theme-light .brand-mark{width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#7c3aed,#14b8a6);color:#fff;box-shadow:0 12px 28px #5b3fd633}.theme-light .brand-name,.theme-light .page-title,.theme-light .card-title,.theme-light .section-heading h2,.theme-light .section-heading.compact h3,.theme-light .stat-value,.theme-light .activity-title,.theme-light .activity-item strong,.theme-light .detail-tile strong,.theme-light .super-admin-mini-metrics strong,.theme-light .preview-paper h2,.theme-light .global-retention-banner strong,.theme-light .retention-alert strong,.theme-light .session-summary strong,.theme-light .crm-client-button,.theme-light .inline-alert strong{color:var(--graphite)}.theme-light .brand-subtitle,.theme-light .page-description,.theme-light .stat-label,.theme-light .stat-note,.theme-light .activity-meta,.theme-light .alert-text,.theme-light .section-subtitle,.theme-light .visual-field-label,.theme-light .form-control label,.theme-light .form-grid label>span,.theme-light .session-summary span,.theme-light .detail-tile span,.theme-light .super-admin-mini-metrics span,.theme-light .checkbox-row,.theme-light .powered-footer,.theme-light .production-session span,.theme-light .global-retention-banner small,.theme-light .retention-alert p,.theme-light .crm-client-button span,.theme-light .super-admin-tenant-row small{color:var(--muted)}.theme-dark .production-sidebar-search,.theme-light .production-sidebar-search{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 12px;border-radius:8px}.theme-light .production-sidebar-search{border:1px solid rgba(100,116,139,.16);background:#ffffffb8;color:var(--muted);box-shadow:inset 0 1px #ffffffb8}.theme-dark .production-sidebar-search small,.theme-light .production-sidebar-search small{display:inline-grid;place-items:center;min-width:34px;min-height:24px;border-radius:6px;font-size:11px;font-weight:800}.theme-light .production-sidebar-search small{background:#7c3aed14;color:#5b3fd6}.theme-dark .production-sidebar-footer,.theme-light .production-sidebar-footer{display:grid;gap:4px;margin-top:18px;padding:14px;border-radius:8px}.theme-light .production-sidebar-footer{border:1px solid rgba(100,116,139,.16);background:linear-gradient(135deg,#7c3aed14,#14b8a614)}.theme-dark .production-sidebar-footer strong,.theme-light .production-sidebar-footer strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-dark .production-sidebar-footer span,.theme-light .production-sidebar-footer span{font-size:12px;font-weight:800}.theme-light .nav-section-label{color:#7b8799}.theme-dark .production-tabs,.theme-light .production-tabs{display:grid;gap:6px;width:100%;min-width:0;padding:0;border:0;border-radius:0;background:transparent}.theme-dark .production-tabs button,.theme-light .production-tabs button{justify-content:flex-start;width:100%;min-height:44px;padding:10px 13px;border:1px solid transparent;border-radius:8px;font-size:14px;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}.theme-light .production-tabs button{color:#66748a}.theme-light .production-tabs button:hover,.theme-light .production-tabs button.active{border-color:#7c3aed6b;background:linear-gradient(135deg,#7c3aed21,#14b8a614);color:#1e1b4b;box-shadow:0 12px 26px #5b3fd61f,inset 0 1px #fffc}.theme-light .card,.theme-light .stat-card,.theme-light .alert-card,.theme-light .empty-state,.theme-light .coming-soon,.theme-light .login-panel,.theme-light .worker-card,.theme-light .surface-panel,.theme-light .surface-subpanel,.theme-light .activity-item,.theme-light .calendar-day,.theme-light .job-phase-card,.theme-light .estimate-step,.theme-light .detail-tile,.theme-light .mfa-box,.theme-light .session-summary,.theme-light .retention-summary-grid>div,.theme-light .document-template-preview,.theme-light .modal,.theme-light .toast-item,.theme-light .language-option,.theme-light .visual-field-value,.theme-light .preview-paper{border-color:var(--line);background:linear-gradient(180deg,#ffffffe6,#f6faffd6);box-shadow:0 18px 44px #2838561a,inset 0 1px #ffffffeb}.theme-light .stat-icon,.theme-light .activity-icon,.theme-light .icon-button{border:1px solid rgba(100,116,139,.14);background:#ffffffc2;color:#6d4bea}.theme-light .input,.theme-light .select,.theme-light .textarea,.theme-light .search-box,.theme-light .company-switcher,.theme-light .user-chip,.theme-light .form-control.compact-check,.theme-light .language-option,.theme-light .mfa-secret{border-color:#64748b2e;background:#ffffffc7;color:var(--graphite)}.theme-light .input::-moz-placeholder,.theme-light .textarea::-moz-placeholder,.theme-light .search-box input::-moz-placeholder{color:#97a3b4}.theme-light .input::placeholder,.theme-light .textarea::placeholder,.theme-light .search-box input::placeholder{color:#97a3b4}.theme-light .select option{background:#fff;color:#162033}.theme-light .button{border-radius:8px;box-shadow:0 10px 24px #2838561a}.theme-light .button-primary{background:linear-gradient(135deg,#7c3aed,#14b8a6);color:#fff}.theme-light .button-primary:hover{background:linear-gradient(135deg,#6d4bea,#0f9f92)}.theme-light .button-secondary{border-color:#64748b33;background:#ffffffc2;color:var(--graphite)}.theme-light .button-danger{background:linear-gradient(135deg,#e11d48,#be123c)}.theme-light .status-success{background:#10b98121;color:#047857}.theme-light .status-warning{background:#f59e0b24;color:#92400e}.theme-light .status-danger{background:#f43f5e21;color:#be123c}.theme-light .status-info,.theme-light .status-neutral{background:#7c3aed1c;color:#5b21b6}.theme-light .modal-backdrop{background:#0f172a6b;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.theme-light .modal-header,.theme-light .modal-footer{border-color:var(--line)}.theme-light .table-row{border-color:#64748b29;background:#ffffff94}.theme-light .table-row:hover{border-color:#7c3aed52;background:#7c3aed0f}.theme-light .super-admin-tenant-row.selected,.theme-light .language-option.active,.theme-light .document-template-preview.active{border-color:#7c3aed8f;background:#7c3aed1a}.theme-light .bar-track,.theme-light .progress-track,.theme-light .usage-meter{background:#64748b26}.theme-light .bar-fill,.theme-light .progress-track span,.theme-light .usage-meter span{background:linear-gradient(90deg,#7c3aed,#14b8a6)}.theme-light .global-retention-banner.warning,.theme-light .retention-alert.warning,.theme-light .retention-guidance{border-color:#f59e0b57;background:#f59e0b1a}.theme-light .global-retention-banner.danger,.theme-light .retention-alert.danger,.theme-light .logout-confirm-panel{border-color:#f43f5e57;background:#f43f5e1a}.theme-light .line-item-bottom-actions{background:linear-gradient(180deg,#f8fbff00,#f6faff 35%)}.theme-dark .page-header,.theme-light .page-header{align-items:end;margin-bottom:18px;padding-bottom:18px}.theme-light .page-header{border-bottom:1px solid rgba(100,116,139,.14)}.theme-dark .page-title,.theme-light .page-title{font-size:clamp(26px,2.25rem,38px);font-weight:850}.theme-light .page-description{max-width:840px;color:#6b7890}.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-light .stats-grid,.theme-light .crm-real-stats{grid-template-columns:repeat(4,minmax(190px,1fr));gap:14px}.theme-dark .card,.theme-dark .surface-panel,.theme-dark .surface-subpanel,.theme-light .card,.theme-light .surface-panel,.theme-light .surface-subpanel{padding:18px}.theme-dark .stat-card,.theme-light .stat-card{position:relative;isolation:isolate;min-height:156px;padding:18px;align-content:start}.theme-light .stat-card{border-color:#64748b33;background:linear-gradient(180deg,#ffffffeb,#f6faffe0),linear-gradient(135deg,#7c3aed1a,#14b8a614)}.theme-dark .stat-card:before,.theme-light .stat-card:before{content:"";position:absolute;inset:auto 12px 42px 12px;height:1px;pointer-events:none}.theme-light .stat-card:before{background:linear-gradient(90deg,transparent,rgba(124,58,237,.42),rgba(20,184,166,.32),transparent)}.theme-dark .stat-card:after,.theme-light .stat-card:after{content:"";position:absolute;inset:auto 18px 38px 18px;height:38px;clip-path:polygon(0 72%,14% 54%,28% 66%,44% 34%,60% 48%,76% 24%,100% 8%,100% 100%,0 100%);pointer-events:none}.theme-light .stat-card:after{opacity:.24;background:linear-gradient(135deg,transparent 44%,rgba(124,58,237,.72) 45%,rgba(124,58,237,.72) 48%,transparent 49%),linear-gradient(160deg,transparent 30%,rgba(20,184,166,.55) 31%,rgba(20,184,166,.55) 34%,transparent 35%)}.theme-dark .stat-top,.theme-light .stat-top{position:relative;z-index:1}.theme-dark .stat-label,.theme-light .stat-label{font-size:12px;text-transform:none}.theme-dark .stat-value,.theme-light .stat-value{margin-top:10px;font-size:clamp(24px,2rem,34px);line-height:1.05}.theme-dark .stat-note,.theme-light .stat-note{position:relative;z-index:1;align-self:end;margin-top:34px}.theme-dark .stat-card-visual,.theme-light .stat-card-visual{position:relative;z-index:1;display:flex;align-items:end;gap:5px;height:38px;margin-top:10px;padding-right:56px}.theme-dark .stat-card-visual span,.theme-light .stat-card-visual span{width:100%;min-width:5px;max-width:15px;border-radius:7px 7px 2px 2px}.theme-light .stat-card-visual span{background:linear-gradient(180deg,#7c3aedcc,#14b8a638);box-shadow:0 0 16px #7c3aed24}.theme-light .stat-card-positive .stat-card-visual span,.theme-light .stat-card.stat-card-positive:before{background:linear-gradient(180deg,#10b981c7,#10b98138)}.theme-light .stat-card-warning .stat-card-visual span{background:linear-gradient(180deg,#f59e0bc7,#f59e0b38)}.theme-light .stat-card-danger .stat-card-visual span{background:linear-gradient(180deg,#f43f5ec7,#f43f5e38)}.theme-dark .stat-trend,.theme-light .stat-trend{position:absolute;top:54px;right:18px;z-index:2;border-radius:8px;padding:5px 8px;font-size:12px;font-weight:900}.theme-light .stat-trend{background:#ffffffb3}.theme-dark .compact-stat-card,.theme-light .compact-stat-card{min-height:128px}.theme-dark .compact-stat-card .stat-card-visual,.theme-dark .compact-stat-card:after,.theme-dark .compact-stat-card:before,.theme-light .compact-stat-card .stat-card-visual,.theme-light .compact-stat-card:after,.theme-light .compact-stat-card:before{display:none}.theme-dark .card-title-row,.theme-light .card-title-row{margin-bottom:14px}.theme-dark .responsive-table,.theme-light .responsive-table{gap:10px}.theme-light .table-row{padding:13px 14px}.theme-dark .form-grid,.theme-dark .auth-form,.theme-light .form-grid,.theme-light .auth-form{gap:14px}.theme-dark .form-control,.theme-dark .form-grid label,.theme-light .form-control,.theme-light .form-grid label{min-width:0}.theme-light .form-control>span,.theme-light .form-grid label>span{color:#62708a}.theme-light .tenant-logo-preview{border-color:#64748b2e;background:#ffffffc7;color:#62708a}.theme-light .tenant-logo-preview img{background:#fffffff0}.theme-dark .input,.theme-dark .select,.theme-dark .textarea,.theme-light .input,.theme-light .select,.theme-light .textarea{min-height:46px;border-radius:8px}.theme-dark textarea.input,.theme-dark .textarea,.theme-dark .crm-textarea,.theme-light textarea.input,.theme-light .textarea,.theme-light .crm-textarea{min-height:96px}.theme-light .modal{border:1px solid rgba(100,116,139,.22);background:linear-gradient(180deg,#fffffffa,#f6fafffa)}.theme-dark .modal-header,.theme-dark .modal-footer,.theme-light .modal-header,.theme-light .modal-footer{position:sticky;z-index:2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-dark .modal-header,.theme-light .modal-header{top:0}.theme-dark .modal-footer,.theme-light .modal-footer{bottom:0}.theme-light .modal-header,.theme-light .modal-footer{background:#fffffff0}.theme-light .settings-form-actions{border-color:#64748b2e;background:linear-gradient(180deg,#ffffffbd,#fffffff5);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-light .modal-form-actions{border-color:#64748b2e;background:linear-gradient(180deg,#ffffffb8,#fffffff5 34%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.theme-light .theme-toggle-button{border-color:#64748b29;background:#ffffffb8;color:#162033}.theme-dark .segmented-actions,.theme-light .segmented-actions{gap:10px}.theme-dark .button,.theme-light .button{min-height:42px}.theme-dark .two-column,.theme-dark .crm-real-grid,.theme-dark .super-admin-grid,.theme-light .two-column,.theme-light .crm-real-grid,.theme-light .super-admin-grid{gap:16px}.theme-dark.super-admin-shell .production-main,.theme-light.super-admin-shell .production-main{width:min(1320px,calc(100% - 32px));max-width:1320px;margin-inline:auto;padding:30px 0 44px}.theme-dark.super-admin-shell,.theme-light.super-admin-shell{padding:0}.theme-dark.super-admin-shell .production-topbar,.theme-light.super-admin-shell .production-topbar{display:flex}.theme-light.super-admin-shell .production-topbar{border-color:#64748b29;background:#ffffffeb}.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}.theme-dark.super-admin-shell .super-admin-stats-grid .stat-card,.theme-light.super-admin-shell .super-admin-stats-grid .stat-card{min-height:150px}.theme-light.login-page{display:grid;grid-template-columns:minmax(0,.95fr) minmax(400px,.72fr);overflow:hidden;background:linear-gradient(135deg,#f8fbfff5,#eef4fbf0),url(/icon-512.png);background-size:auto,320px;background-position:center,left 8% top 12%}.theme-light.login-page .login-hero{position:relative;min-height:100vh;padding:48px;border-right:1px solid rgba(100,116,139,.14);background:linear-gradient(180deg,#ffffff94,#f1f7ff2e),repeating-linear-gradient(135deg,rgba(124,58,237,.06) 0 1px,transparent 1px 44px)}.theme-light.login-page .login-hero .brand-lockup{align-self:start;padding:10px 12px;border:1px solid rgba(100,116,139,.16);border-radius:8px;background:#ffffffa3}.theme-light.login-page .login-client-logo{padding:10px;border:1px solid rgba(100,116,139,.18);background:#ffffffb8}.theme-light.login-page .login-hero h1{max-width:720px;font-size:clamp(38px,4.2rem,68px);line-height:.98;color:#172033}.theme-light.login-page .login-hero p{color:#52617a}.theme-light.login-page .login-aside{align-items:center;padding:30px;background:#f8fbffbd;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.theme-light.login-page .login-panel{width:min(100%,560px);margin-inline:auto;padding:24px;border-color:#64748b33;background:linear-gradient(180deg,#fffffff2,#f6fafff0),linear-gradient(135deg,#7c3aed1a,#14b8a60f)}.theme-light.login-page .login-notice{border-color:#2563eb42;background:#2563eb14;color:#1d4ed8}.theme-dark.worker-shell,.theme-light.worker-shell{min-height:100vh;padding-bottom:72px}.theme-dark.worker-shell .production-topbar,.theme-light.worker-shell .production-topbar{position:sticky;top:0;z-index:12;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr) auto;align-items:center;gap:14px;min-height:78px;padding:14px 24px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.theme-light.worker-shell .production-topbar{border-bottom:1px solid rgba(100,116,139,.16);background:#ffffffeb}.theme-dark.worker-shell .content,.theme-light.worker-shell .content{width:min(1280px,calc(100% - 32px));margin-inline:auto;padding:28px 0 36px}.theme-dark.worker-shell .production-module-content,.theme-light.worker-shell .production-module-content{display:grid;gap:18px}.theme-light.worker-shell .worker-module-tabs{border-color:#64748b2e;background:#ffffff94}.theme-light.worker-shell .worker-module-tabs button{min-height:40px;color:#66748a}.theme-light.worker-shell .worker-module-tabs button:hover,.theme-light.worker-shell .worker-module-tabs button.active{background:linear-gradient(135deg,#7c3aed24,#14b8a614);color:#1e1b4b;box-shadow:inset 0 0 0 1px #7c3aed3d}.theme-light.worker-shell .worker-task-card,.theme-light.worker-shell .worker-progress-item{border-color:#64748b2e;background:linear-gradient(180deg,#ffffffe6,#f6faffdb)}.theme-dark.worker-shell .worker-quick-actions,.theme-light.worker-shell .worker-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-light.worker-shell .powered-footer{color:#66748a}@media(max-width:1180px){.theme-light .production-layout{grid-template-columns:236px minmax(0,1fr)}.theme-light .production-sidebar{padding:22px 16px}.theme-light .production-content{padding:26px}.theme-light .stats-grid,.theme-light .crm-real-stats,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(3,minmax(190px,1fr))}}@media(max-width:980px){.theme-light.login-page{grid-template-columns:1fr;overflow:auto}.theme-light.login-page .login-hero{min-height:auto;padding:30px}.theme-light.login-page .login-hero h1{font-size:clamp(34px,3rem,48px)}.theme-light.worker-shell .production-topbar{grid-template-columns:minmax(0,1fr);align-items:start}.theme-light.worker-shell .production-session{width:100%;justify-content:space-between}.theme-light.worker-shell .worker-module-tabs{width:100%}}@media(max-width:920px){.theme-light .production-layout{display:block}.theme-light .production-sidebar{display:none}.theme-light .production-topbar{display:grid;grid-template-columns:42px minmax(0,1fr);min-height:66px;border-bottom:1px solid rgba(100,116,139,.16);background:#ffffffeb}.theme-light .production-drawer-button{display:grid}.theme-light .production-mobile-drawer{border-color:#64748b2e;background:linear-gradient(180deg,#fffffffa,#f1f7fffa)}.theme-light .production-content{padding:20px 16px}.theme-light.super-admin-shell .production-main{width:min(100% - 24px,1320px)}.theme-light .page-header{align-items:start}.theme-light .stats-grid,.theme-light .crm-real-stats,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-light .stat-card{min-height:132px}}@media(max-width:640px){.theme-light .production-content{padding:14px}.theme-light .stat-card{min-height:108px;padding:13px}.theme-light .modal{border-radius:8px}.theme-light.login-page .login-hero{padding:22px}.theme-light.login-page .login-aside,.theme-light.login-page .login-panel{padding:18px}.theme-light.worker-shell{padding-bottom:20px}.theme-light.worker-shell .production-topbar{padding:12px 14px}.theme-light.worker-shell .content{width:min(100% - 20px,1280px);padding-top:18px}.theme-light.worker-shell .worker-quick-actions{grid-template-columns:1fr}}@media(max-width:520px){.theme-light .stats-grid,.theme-light .crm-real-stats,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:1fr}.theme-light .stat-card{min-height:118px}.theme-light .stat-card-visual,.theme-light .stat-card:after,.theme-light .stat-card:before{display:none}.theme-light .stat-note{margin-top:6px}}.theme-dark .production-module-content,.theme-light .production-module-content{gap:18px}.theme-dark .stat-card,.theme-light .stat-card{container-type:inline-size}.theme-dark .stat-card-visual,.theme-light .stat-card-visual{max-width:76%}.theme-dark .responsive-table,.theme-light .responsive-table{display:grid}.theme-dark .table-row,.theme-light .table-row{min-width:0}.theme-dark .table-row>*,.theme-light .table-row>*{min-width:0}.theme-dark .table-row strong,.theme-dark .table-row span,.theme-dark .table-row p,.theme-light .table-row strong,.theme-light .table-row span,.theme-light .table-row p{min-width:0}.theme-dark .modal-body .auth-form,.theme-light .modal-body .auth-form{padding-bottom:2px}.theme-dark .modal-body .auth-form>.button:last-child,.theme-light .modal-body .auth-form>.button:last-child{margin-top:4px}.theme-dark .form-control,.theme-light .form-control{gap:6px}.theme-dark .input,.theme-dark .select,.theme-dark .textarea,.theme-light .input,.theme-light .select,.theme-light .textarea{width:100%}.theme-dark .filters-row,.theme-light .filters-row{align-items:end}.theme-dark .proof-grid .stat-card,.theme-light .proof-grid .stat-card{min-height:112px}@media(max-width:760px){.theme-dark .production-module-content,.theme-light .production-module-content{gap:14px}.theme-dark .page-header,.theme-light .page-header{gap:12px;margin-bottom:12px;padding-bottom:12px}.theme-dark .page-title,.theme-light .page-title{font-size:clamp(24px,1.95rem,32px)}.theme-dark .page-description,.theme-light .page-description{font-size:13px;line-height:1.45}.theme-dark .crm-real-stats,.theme-dark .stats-grid,.theme-light .crm-real-stats,.theme-light .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-dark .crm-real-stats .stat-card,.theme-dark .stats-grid .stat-card,.theme-light .crm-real-stats .stat-card,.theme-light .stats-grid .stat-card{min-height:126px;padding:12px;gap:7px}.theme-dark .stat-card:before,.theme-light .stat-card:before{inset-inline:10px;bottom:34px}.theme-dark .stat-card:after,.theme-light .stat-card:after{inset-inline:12px;bottom:30px;height:28px}.theme-dark .stat-card-visual,.theme-light .stat-card-visual{height:28px;margin-top:4px;padding-right:36px}.theme-dark .stat-card-visual span,.theme-light .stat-card-visual span{min-width:3px;max-width:9px}.theme-dark .stat-label,.theme-light .stat-label{font-size:11px}.theme-dark .stat-value,.theme-light .stat-value{font-size:clamp(18px,1.45rem,24px);overflow-wrap:anywhere}.theme-dark .stat-note,.theme-light .stat-note{margin-top:3px;font-size:10.5px;line-height:1.25}.theme-dark .stat-icon,.theme-light .stat-icon{width:32px;height:32px}.theme-dark .card,.theme-dark .surface-panel,.theme-dark .surface-subpanel,.theme-light .card,.theme-light .surface-panel,.theme-light .surface-subpanel{padding:14px}.theme-dark .table-row,.theme-light .table-row{gap:9px;padding:12px;border-radius:8px}.theme-dark .table-row .segmented-actions,.theme-light .table-row .segmented-actions{justify-content:stretch}.theme-dark .table-row .segmented-actions .button,.theme-light .table-row .segmented-actions .button{flex:1 1 130px}.theme-dark .modal,.theme-light .modal{width:min(100%,620px)}.theme-dark .modal-header,.theme-dark .modal-body,.theme-dark .modal-footer,.theme-light .modal-header,.theme-light .modal-body,.theme-light .modal-footer{padding:14px}.theme-dark .auth-form,.theme-light .auth-form{gap:12px}}@media(max-width:520px){.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light .stats-grid,.theme-light .crm-real-stats,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-dark .stats-grid .stat-card,.theme-dark .crm-real-stats .stat-card,.theme-light .stats-grid .stat-card,.theme-light .crm-real-stats .stat-card{min-height:112px}.theme-dark .stats-grid .stat-card-visual,.theme-dark .crm-real-stats .stat-card-visual,.theme-dark .stats-grid .stat-card:after,.theme-dark .crm-real-stats .stat-card:after,.theme-light .stats-grid .stat-card-visual,.theme-light .crm-real-stats .stat-card-visual,.theme-light .stats-grid .stat-card:after,.theme-light .crm-real-stats .stat-card:after{display:none}.theme-dark .stats-grid .stat-card:before,.theme-dark .crm-real-stats .stat-card:before,.theme-light .stats-grid .stat-card:before,.theme-light .crm-real-stats .stat-card:before{display:block;bottom:34px}.theme-dark .filters-row,.theme-light .filters-row{gap:10px}.theme-dark .modal-backdrop,.theme-light .modal-backdrop{padding:8px}.theme-dark .modal,.theme-light .modal{max-height:calc(100dvh - 16px)}.theme-dark .modal-body,.theme-light .modal-body{max-height:calc(100dvh - 104px)}}@media(max-width:380px){.theme-dark .stats-grid,.theme-dark .crm-real-stats,.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light .stats-grid,.theme-light .crm-real-stats,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:1fr}}.theme-dark .stat-card,.theme-light .stat-card{min-height:150px}.theme-dark .stat-card-no-chart,.theme-light .stat-card-no-chart{min-height:132px}.theme-dark .stat-card:after,.theme-light .stat-card:after{display:none}.theme-dark .stat-card:before,.theme-light .stat-card:before{inset:auto 18px 42px 18px}.theme-dark .stat-card-visual,.theme-light .stat-card-visual{width:100%;height:76px;margin-top:13px;padding-right:0;display:grid;grid-template-rows:minmax(48px,1fr) auto;gap:7px;color:#8b5cf6}.theme-dark .stat-card-positive .stat-card-visual,.theme-light .stat-card-positive .stat-card-visual{color:#34d399}.theme-dark .stat-card-warning .stat-card-visual,.theme-light .stat-card-warning .stat-card-visual{color:#fbbf24}.theme-dark .stat-card-danger .stat-card-visual,.theme-light .stat-card-danger .stat-card-visual{color:#fb7185}.theme-dark .stat-chart-svg,.theme-light .stat-chart-svg{width:100%;height:56px;overflow:visible}.theme-dark .stat-chart-grid,.theme-light .stat-chart-grid{fill:none;stroke:currentColor;stroke-dasharray:3 5;stroke-linecap:round;stroke-width:.7;opacity:.22}.theme-dark .stat-chart-line,.theme-light .stat-chart-line{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:3;filter:drop-shadow(0 0 7px currentColor)}.theme-dark .stat-chart-area,.theme-light .stat-chart-area{opacity:.92}.theme-dark .stat-chart-dot,.theme-dark .stat-chart-bar,.theme-light .stat-chart-dot,.theme-light .stat-chart-bar{fill:currentColor;filter:drop-shadow(0 0 7px currentColor)}.theme-dark .stat-chart-caption,.theme-light .stat-chart-caption{width:auto;min-width:0;max-width:none;border-radius:0;background:transparent;box-shadow:none;color:var(--text-muted);font-size:11px;font-weight:850;line-height:1.2}.theme-dark .stat-card .stat-top,.theme-dark .stat-card .stat-note,.theme-light .stat-card .stat-top,.theme-light .stat-card .stat-note{color:var(--text-main)}.theme-dark .stat-card .stat-label,.theme-dark .stat-card .stat-note,.theme-light .stat-card .stat-label,.theme-light .stat-card .stat-note{color:var(--text-muted)}.dashboard-finance-panel{margin-top:16px}.dashboard-balance-chart{display:grid;gap:12px}.dashboard-balance-row{display:grid;grid-template-columns:minmax(96px,140px) minmax(140px,1fr) minmax(120px,auto);align-items:center;gap:12px}.dashboard-balance-label{color:var(--text-muted);font-size:12px;font-weight:900}.dashboard-balance-track{position:relative;height:12px;overflow:hidden;border-radius:999px;background:#94a3b829}.dashboard-balance-fill{position:absolute;inset:0 auto 0 0;min-width:8px;border-radius:inherit}.dashboard-balance-positive .dashboard-balance-fill{background:linear-gradient(90deg,#10b98157,#10b981eb)}.dashboard-balance-warning .dashboard-balance-fill{background:linear-gradient(90deg,#f59e0b4d,#f59e0be0)}.dashboard-balance-danger .dashboard-balance-fill{background:linear-gradient(90deg,#f43f5e4d,#f43f5ee0)}.dashboard-balance-info .dashboard-balance-fill{background:linear-gradient(90deg,#8b5cf64d,#2dd4bfdb)}.dashboard-chart-selector{min-width:min(260px,100%)}.dashboard-column-chart{display:grid;grid-template-columns:repeat(auto-fit,minmax(108px,1fr));align-items:end;gap:14px;min-height:240px;padding:12px 4px 4px}.dashboard-column-item{display:grid;grid-template-rows:auto minmax(130px,1fr) auto;gap:8px;min-width:0;text-align:center}.dashboard-column-item strong{overflow-wrap:anywhere;font-size:13px}.dashboard-column-track{position:relative;display:flex;align-items:end;justify-content:center;min-height:130px;border-radius:14px;background:linear-gradient(180deg,#94a3b814,#94a3b805),repeating-linear-gradient(180deg,transparent 0 31px,rgba(148,163,184,.14) 32px);overflow:hidden}.dashboard-column-fill{width:min(54px,52%);min-height:0;border-radius:12px 12px 3px 3px;transition:height .2s ease}.dashboard-balance-positive .dashboard-column-fill{background:linear-gradient(180deg,#10b981f5,#10b98152);box-shadow:0 0 22px #10b98147}.dashboard-balance-warning .dashboard-column-fill{background:linear-gradient(180deg,#f59e0bf5,#f59e0b47);box-shadow:0 0 22px #f59e0b38}.dashboard-balance-danger .dashboard-column-fill{background:linear-gradient(180deg,#f43f5ef5,#f43f5e47);box-shadow:0 0 22px #f43f5e3d}.dashboard-balance-info .dashboard-column-fill{background:linear-gradient(180deg,#8b5cf6f2,#2dd4bf52);box-shadow:0 0 22px #8b5cf647}@media(max-width:760px){.theme-dark .crm-real-stats .stat-card,.theme-dark .stats-grid .stat-card,.theme-light .crm-real-stats .stat-card,.theme-light .stats-grid .stat-card{min-height:116px}.theme-dark .stat-card-visual,.theme-light .stat-card-visual{display:grid;height:60px;grid-template-rows:39px auto;margin-top:8px}.theme-dark .stat-chart-svg,.theme-light .stat-chart-svg{height:39px}.dashboard-balance-row{grid-template-columns:1fr;gap:6px}.dashboard-column-chart{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0}.dashboard-column-item{grid-template-rows:auto minmax(100px,1fr) auto}.dashboard-column-track{min-height:100px}}@media(max-width:520px){.theme-dark .stats-grid .stat-card-visual,.theme-dark .crm-real-stats .stat-card-visual,.theme-light .stats-grid .stat-card-visual,.theme-light .crm-real-stats .stat-card-visual{display:grid}.theme-dark .stats-grid .stat-card:before,.theme-dark .crm-real-stats .stat-card:before,.theme-light .stats-grid .stat-card:before,.theme-light .crm-real-stats .stat-card:before{display:none}}.theme-dark .modal-backdrop,.theme-light .modal-backdrop{overflow:auto;align-items:center;justify-items:center}.theme-dark .modal,.theme-light .modal{max-height:calc(100dvh - 24px)}.theme-dark .modal-body,.theme-light .modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.theme-dark .modal .modal-form-actions,.theme-light .modal .modal-form-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.theme-dark .modal .modal-form-actions .button,.theme-light .modal .modal-form-actions .button{min-width:min(220px,100%)}.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(4,minmax(170px,1fr));align-items:stretch}.theme-dark.super-admin-shell .super-admin-stats-grid .stat-card,.theme-light.super-admin-shell .super-admin-stats-grid .stat-card{min-height:132px;padding:16px}.theme-dark.worker-shell .production-topbar,.theme-light.worker-shell .production-topbar{gap:12px}.theme-dark.worker-shell .worker-module-tabs,.theme-light.worker-shell .worker-module-tabs{max-width:min(680px,100%)}.theme-dark.worker-shell .worker-task-card .card-title-row,.theme-light.worker-shell .worker-task-card .card-title-row{align-items:flex-start}.theme-dark.worker-shell .worker-task-actions .button,.theme-light.worker-shell .worker-task-actions .button{flex:0 1 auto}.theme-dark .attendance-record-card,.theme-light .attendance-record-card,.theme-dark .payroll-record-card,.theme-light .payroll-record-card,.theme-dark .payroll-payment-record-card,.theme-light .payroll-payment-record-card{align-items:center}@media(max-width:920px){.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-dark.worker-shell .production-topbar,.theme-light.worker-shell .production-topbar{align-items:stretch}.theme-dark.worker-shell .worker-module-tabs,.theme-light.worker-shell .worker-module-tabs{order:3;max-width:100%;width:100%}}@media(max-width:640px){.theme-dark .modal-backdrop,.theme-light .modal-backdrop{padding:8px}.theme-dark .modal,.theme-light .modal{width:100%;max-height:calc(100dvh - 16px)}.theme-dark .modal-header,.theme-dark .modal-body,.theme-dark .modal-footer,.theme-light .modal-header,.theme-light .modal-body,.theme-light .modal-footer{padding:14px}.theme-dark .modal .modal-form-actions,.theme-light .modal .modal-form-actions{margin-inline:-14px;padding-inline:14px}.theme-dark .modal .modal-form-actions .button,.theme-light .modal .modal-form-actions .button{flex:1 1 100%}.theme-dark.worker-shell .worker-task-actions,.theme-light.worker-shell .worker-task-actions{display:grid;grid-template-columns:1fr}.theme-dark.worker-shell .worker-task-actions .button,.theme-light.worker-shell .worker-task-actions .button{width:100%}}@media(max-width:420px){.theme-dark.super-admin-shell .super-admin-stats-grid,.theme-light.super-admin-shell .super-admin-stats-grid{grid-template-columns:1fr}}@media(max-width:1180px),(hover:none)and (pointer:coarse){.theme-dark .production-layout,.theme-light .production-layout{display:block!important;grid-template-columns:1fr!important}.theme-dark .production-sidebar,.theme-light .production-sidebar{display:none!important}.theme-dark .production-main-area,.theme-light .production-main-area{min-width:0!important;width:100%!important}.theme-dark .production-topbar,.theme-light .production-topbar{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;min-height:62px!important}.theme-dark .production-drawer-button,.theme-light .production-drawer-button{display:grid!important}.theme-dark .production-tabs-desktop,.theme-light .production-tabs-desktop,.theme-dark.worker-shell>.production-topbar>.worker-module-tabs,.theme-light.worker-shell>.production-topbar>.worker-module-tabs,.theme-dark.worker-shell>.production-topbar>.production-session,.theme-light.worker-shell>.production-topbar>.production-session{display:none!important}.theme-dark .production-mobile-drawer,.theme-light .production-mobile-drawer{z-index:1001!important}.theme-dark .production-mobile-backdrop,.theme-light .production-mobile-backdrop{z-index:1000!important}}.constriqo-touch-device .theme-dark .production-layout,.constriqo-touch-device .theme-light .production-layout{display:block!important;grid-template-columns:1fr!important}.constriqo-touch-device .theme-dark .production-sidebar,.constriqo-touch-device .theme-light .production-sidebar{display:none!important}.constriqo-touch-device .theme-dark .production-main-area,.constriqo-touch-device .theme-light .production-main-area{min-width:0!important;width:100%!important}.constriqo-touch-device .theme-dark .production-topbar,.constriqo-touch-device .theme-light .production-topbar{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;min-height:62px!important}.constriqo-touch-device .theme-dark .production-drawer-button,.constriqo-touch-device .theme-light .production-drawer-button{display:grid!important}.constriqo-touch-device .theme-dark .production-tabs-desktop,.constriqo-touch-device .theme-light .production-tabs-desktop,.constriqo-touch-device .theme-dark.worker-shell>.production-topbar>.worker-module-tabs,.constriqo-touch-device .theme-light.worker-shell>.production-topbar>.worker-module-tabs,.constriqo-touch-device .theme-dark.worker-shell>.production-topbar>.production-session,.constriqo-touch-device .theme-light.worker-shell>.production-topbar>.production-session{display:none!important}
