:root {
  color-scheme: light;
  --navy: #0a1128;
  --navy-soft: #263c57;
  --blue: #2563eb;
  --blue-dark: #1e4fc2;
  --blue-wash: #eef3ff;
  --ink: #172a40;
  --muted: #738096;
  --line: #e5eaf1;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --green: #17836a;
  --header-rule: rgba(16,36,61,.08);
  --card: #ffffff;
  --card-line: #e4eaf3;
  --input: #ffffff;
  --grid-line: #e8edf3;
  --muted-strong: #627187;
  --shadow-card: 0 16px 40px rgba(20,43,77,.055), 0 2px 5px rgba(20,43,77,.02);
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--canvas); transition: color .25s, background .25s; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-shell { --page-gutter: clamp(22px, 4vw, 72px); width: min(1720px, calc(100% - var(--page-gutter) - var(--page-gutter))); min-height: 100vh; margin: 0 auto; padding: 0; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-centered { width: 100%; justify-content: center; margin: 0 auto 3px; }
.brand-canvas { display: block; width: 380px; height: 140px; max-width: 100%; outline: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.main-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(560px, .92fr); grid-template-areas: "hero auth" "modules auth"; grid-template-rows: auto auto; align-items: center; align-content: center; column-gap: clamp(38px, 4vw, 68px); row-gap: 26px; padding: 38px 0 44px; }
.intro-panel { grid-area: hero; max-width: 760px; width: 100%; justify-self: start; padding: 0; text-align: left; }
.intro-copy { max-width: 740px; margin: 0; }
h1, h2, p { margin-top: 0; }
h1 { color: var(--navy); font-family: Manrope, sans-serif; font-size: clamp(34px, 2.8vw, 46px); line-height: 1.16; letter-spacing: -.052em; font-weight: 700; margin-bottom: 17px; }
h1 span { color: var(--blue); }
.intro-description { color: #627187; font-size: 16px; line-height: 1.72; max-width: 700px; margin: 0 0 16px; }
.slogan { color: #42556f; font-size: 16px; letter-spacing: .005em; font-weight: 500; margin: 0; }
.slogan strong { color: var(--navy); font-weight: 700; }
.module-summary { grid-area: modules; width: 100%; max-width: 760px; justify-self: start; }
.module-summary-heading { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; margin-bottom: 10px; }
.module-summary-heading h2 { margin: 0; color: #69788d; font: 600 11px 'DM Sans',sans-serif; letter-spacing: .025em; }
.module-summary-heading > span { color: #9aa5b4; font-size: 9px; }
.module-symbol { display: grid; place-items: center; border-radius: 9px; }
.auth-panel { grid-area: auth; width: 100%; max-width: 720px; justify-self: stretch; }
.auth-card { padding: 44px 48px 36px; background: var(--paper); border: 1px solid #e7ebf1; border-radius: 14px; box-shadow: 0 15px 45px rgba(20,43,77,.065); }
.auth-heading { text-align: left; }
.auth-symbol { display: none; }
.auth-heading h2 { color: var(--navy); font: 700 30px Manrope,sans-serif; letter-spacing: -.035em; margin-bottom: 9px; }
.auth-heading > p:last-child { color: #8290a2; font-size: 13px; margin: 0; }
.auth-form { margin-top: 34px; }
.auth-form > label, .password-label-row label { display: block; color: #35475d; font-size: 12px; font-weight: 700; margin: 0 0 8px; }
.input-wrap { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #dfe5ed; border-radius: 7px; background: #fff; transition: border-color .18s, box-shadow .18s, background .18s; }
.input-wrap:focus-within { border-color: #7798eb; box-shadow: 0 0 0 3px rgba(40,89,217,.09); }
.input-wrap > svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: #99a4b3; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; min-width: 0; outline: 0; border: 0; color: var(--ink); font-size: 13px; background: transparent; }
.input-wrap input::placeholder { color: #aab3c0; }
.password-label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 17px; }
.text-button { border: 0; padding: 0; background: none; color: var(--blue); font-size: 11px; font-weight: 600; }
.text-button:hover, .auth-footnote a:hover, .support-line a:hover { color: var(--blue-dark); text-decoration: underline; }
.password-wrap { padding-right: 8px; }
.visibility-button { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 30px; border: 0; background: transparent; color: #939eae; }
.visibility-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.visibility-button:hover { color: var(--blue); }
.form-options { display: flex; align-items: center; justify-content: flex-start; gap: 18px; margin-top: 15px; }
.remember-option { display: inline-flex; align-items: center; gap: 7px; color: #78869a; font-size: 11px; cursor: pointer; }
.remember-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.custom-check { width: 13px; height: 13px; border: 1px solid #d6dde7; border-radius: 3px; background: white; }
.remember-option input:checked + .custom-check { display: grid; place-items: center; background: var(--blue); border-color: var(--blue); }
.remember-option input:checked + .custom-check::after { content: '✓'; color: white; font-size: 9px; line-height: 1; }
.remember-option input:focus-visible + .custom-check { outline: 3px solid rgba(40,89,217,.17); }
.secure-note { display: flex; align-items: center; gap: 4px; color: #929eae; font-size: 10px; }
.secure-note svg { width: 13px; height: 13px; fill: none; stroke: #39a082; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.form-message { min-height: 0; margin: 0; color: #c25252; font-size: 10px; line-height: 1.5; }
.form-message:not(:empty) { margin-top: 9px; }
.form-message.success { color: #218267; }
.auth-form > .primary-button { margin-top: 12px; }
.primary-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; gap: 10px; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; text-align: left; box-shadow: 0 5px 12px rgba(40,89,217,.15); transition: background .18s, transform .18s, box-shadow .18s; }
.primary-button span { font-size: 16px; font-weight: 400; transition: transform .18s; }
.primary-button:hover { background: var(--blue-dark); box-shadow: 0 7px 17px rgba(40,89,217,.24); transform: translateY(-1px); }
.primary-button:hover span { transform: translateX(3px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .modal-close:focus-visible, .modal-back:focus-visible { outline: 3px solid rgba(40,89,217,.25); outline-offset: 2px; }
.auth-separator { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 23px 0 16px; color: #9aa5b3; font-size: 10px; }
.auth-separator::before, .auth-separator::after { content: ''; height: 1px; flex: 1; background: #edf0f4; }
.auth-separator::before { display: none; }
.secondary-button { width: 100%; min-height: 48px; padding: 0 19px; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; color: #34485f; font-size: 12px; font-weight: 700; text-align: left; transition: background .18s, border .18s; }
.secondary-button:hover { background: #f7f9fc; border-color: #bfcde2; }
.auth-footnote { color: #a0a9b6; font-size: 10px; line-height: 1.65; text-align: left; margin: 19px 0 0; }
.auth-footnote a { color: #64758b; text-decoration: underline; text-decoration-color: #cdd5df; text-underline-offset: 2px; }
.support-line { display: flex; justify-content: flex-start; gap: 5px; margin-top: 15px; font-size: 9px; color: #8e9aaa; }
.support-line a { color: var(--blue); font-weight: 600; text-decoration: none; }
.site-footer { display: flex; justify-content: flex-start; align-items: center; gap: 24px; min-height: 56px; color: #97a2b1; font-size: 9px; border-top: 1px solid rgba(16,36,61,.08); }
.footer-location i { margin-left: 5px; color: #4a9c84; font-size: 14px; font-style: normal; vertical-align: -1px; }
.modal { width: min(420px, calc(100% - 30px)); padding: 35px 36px 25px; border: 1px solid #e6ebf2; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 22px 70px rgba(14,34,62,.2); }
.modal::backdrop { background: rgba(13,28,48,.42); backdrop-filter: blur(3px); }
.modal > form:first-child { display: contents; }
.modal-close { position: sticky; top: 10px; z-index: 20; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px -18px -36px auto; border: 1px solid #7185a0; border-radius: 50%; background: #f3f6fa; color: #34485f; box-shadow: 0 3px 12px rgba(14,34,62,.2); font-size: 23px; line-height: 1; cursor: pointer; }
.modal-mark { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 16px; background: #f0f4ff; border-radius: 12px; }
.modal-mark img { width: 27px; height: 27px; }
.modal h2 { text-align: left; font: 700 22px Manrope,sans-serif; color: var(--navy); margin-bottom: 8px; }
.modal-description { text-align: left; color: #7b899c; font-size: 11px; line-height: 1.65; margin: 0 0 19px; max-width: 315px; }
.modal-back { display: block; border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 600; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 23px; z-index: 5; transform: translate(-50%, 12px); padding: 10px 15px; border: 1px solid #d9e6df; border-radius: 7px; background: #fff; color: #34755f; font-size: 11px; box-shadow: 0 8px 25px rgba(14,34,62,.13); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(45,155,122,0); } }

:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #f1f5fb;
  --navy-soft: #d6e0ee;
  --blue: #78a0ff;
  --blue-dark: #9bb8ff;
  --blue-wash: #1a2b45;
  --ink: #e5ecf5;
  --muted: #a7b5c8;
  --line: #34445a;
  --paper: #14243a;
  --canvas: #0a1128;
  --header-rule: rgba(211,225,246,.12);
  --card: #111f34;
  --card-line: #263954;
  --input: #0d1a2d;
  --grid-line: #29384c;
  --muted-strong: #a5b4c9;
  --shadow-card: 0 16px 40px rgba(0,0,0,.16), 0 2px 5px rgba(0,0,0,.1);
}
:root[data-theme="dark"] .intro-description,
:root[data-theme="dark"] .slogan,
:root[data-theme="dark"] .header-context,
:root[data-theme="dark"] .auth-heading h2,
:root[data-theme="dark"] .auth-form > label,
:root[data-theme="dark"] .password-label-row label,
:root[data-theme="dark"] .page-shell .auth-form > label,
:root[data-theme="dark"] .page-shell .password-label-row label { color: var(--muted-strong); }
:root[data-theme="dark"] .auth-heading > p:last-child,
:root[data-theme="dark"] .remember-option,
:root[data-theme="dark"] .secure-note,
:root[data-theme="dark"] .auth-footnote,
:root[data-theme="dark"] .support-line,
:root[data-theme="dark"] .site-footer { color: #c4d0df; }
:root[data-theme="dark"] .auth-separator::before,
:root[data-theme="dark"] .auth-separator::after { border-color: #29384c; background-color: #29384c; }
:root[data-theme="dark"] .module-summary-heading h2 { color: #cbd7e7; }
:root[data-theme="dark"] .input-wrap { background: var(--input); border-color: #34445a; }
:root[data-theme="dark"] .input-wrap input { color: var(--ink); }
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .custom-check { color: var(--ink); background: var(--input); border-color: #34445a; }
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .modal { color: var(--ink); background: var(--paper); }
:root[data-theme="dark"] .secondary-button:hover { background: #1a2b42; border-color: #52657e; }
:root[data-theme="dark"] .auth-separator { color: #93a4bc; }
:root[data-theme="dark"] .modal-close { color: #b3c0d1; background: #23334a; }
:root[data-theme="dark"] .modal-description { color: #c4d0df; }
:root[data-theme="dark"] .site-footer { border-color: var(--header-rule); }
:root[data-theme="dark"] .version-label { border-color: #40516a; color: #b7c7dd; }
.version-label { display: inline-block; margin-left: 8px; padding: 3px 6px; border: 1px solid #d8e0eb; border-radius: 4px; color: #65758b; font-size: 8px; letter-spacing: .02em; vertical-align: 1px; }

/* Authenticated administration workspace */
.dashboard-page { --dashboard-ink: #16283e; --dashboard-muted: #8290a3; --dashboard-line: #e7ebf2; --dashboard-surface: #fff; --dashboard-soft: #f6f8fb; min-width: 320px; background: #f5f7fa; }
.dashboard-sidebar { position: fixed; z-index: 12; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 72px; padding: 18px 10px 14px; overflow: hidden; color: #c8d3e3; background: #111d30; transition: width .22s ease, box-shadow .22s ease; }
.dashboard-sidebar:hover, .dashboard-sidebar.is-open, .dashboard-sidebar:focus-within, .dashboard-sidebar.is-mobile-open { width: 254px; box-shadow: 12px 0 34px rgba(15,29,49,.14); }
.sidebar-label { display: inline-block; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.dashboard-sidebar:hover .sidebar-label, .dashboard-sidebar.is-open .sidebar-label, .dashboard-sidebar:focus-within .sidebar-label, .dashboard-sidebar.is-mobile-open .sidebar-label { opacity: 1; }
.sidebar-section-label { min-width: 222px; padding: 0 13px; margin: 0 0 11px; color: #91a2bb; font-size: 9px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.dashboard-sidebar:hover .sidebar-section-label, .dashboard-sidebar.is-open .sidebar-section-label, .dashboard-sidebar:focus-within .sidebar-section-label, .dashboard-sidebar.is-mobile-open .sidebar-section-label { opacity: 1; }
.sidebar-brand { width: 234px; height: 78px; display: flex; align-items: center; justify-content: flex-start; margin: 0 0 18px; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.dashboard-sidebar:hover .sidebar-brand, .dashboard-sidebar.is-open .sidebar-brand, .dashboard-sidebar:focus-within .sidebar-brand, .dashboard-sidebar.is-mobile-open .sidebar-brand { opacity: 1; pointer-events: auto; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link { position: relative; isolation: isolate; min-width: 222px; min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 13px; border: 0; border-radius: 7px; color: #aebbd0; background: transparent; font-size: 12px; font-weight: 600; text-align: left; text-decoration: none; white-space: nowrap; }
.sidebar-link::after { content: ''; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: radial-gradient(145px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(120,157,224,.28), transparent 76%); opacity: 0; transition: opacity .14s ease; pointer-events: none; }
.sidebar-link.pointer-active::after { opacity: 1; }
.sidebar-link > * { position: relative; z-index: 1; }
.sidebar-link.is-active { color: #fff; background: #253955; }
.sidebar-icon { width: 18px; flex: 0 0 18px; color: #8ca9da; font-size: 17px; text-align: center; }
.sidebar-link.is-active .sidebar-icon { color: #a8c3ff; }
.sidebar-bottom { min-width: 222px; margin-top: auto; padding: 16px 12px 3px; border-top: 1px solid #2a3a50; color: #91a2bb; font-size: 10px; }
.dashboard-main-shell { min-height: 100vh; margin-left: 72px; transition: margin-left .22s ease; }
.dashboard-sidebar:hover ~ .dashboard-main-shell, .dashboard-sidebar.is-open ~ .dashboard-main-shell, .dashboard-sidebar:focus-within ~ .dashboard-main-shell, .dashboard-sidebar.is-mobile-open ~ .dashboard-main-shell { margin-left: 254px; }
.dashboard-topbar { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid #e9edf3; background: #f4f7fb; }
.dashboard-topbar-start { display: flex; align-items: center; gap: 12px; }
.mobile-nav-toggle { display: none; width: 36px; height: 36px; border: 1px solid #dce3ed; border-radius: 6px; color: #52657d; background: #fff; font-size: 14px; }
.dashboard-logo-canvas { display: block; width: 280px; height: 82px; max-width: 100%; outline: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dashboard-user-area { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #dce5f4; border-radius: 50%; color: #315db5; background: #edf3ff; font-size: 10px; font-weight: 700; }
.company-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; overflow: hidden; border: 1px solid #dce5f4; border-radius: 50%; color: #315db5; background: #fff; }
.company-avatar[hidden], .company-avatar img[hidden], .company-avatar span[hidden] { display: none; }
.company-avatar img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.company-avatar span { display: grid; width: 100%; height: 100%; place-items: center; color: inherit; background: #edf3ff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.topbar-user { min-width: 112px; display: flex; flex-direction: column; gap: 3px; }
.topbar-user strong { color: #33465f; font-size: 12px; font-weight: 700; }
.topbar-user small { color: #8d9aae; font-size: 10px; }
.account-password-button { height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 5px; color: #718198; background: transparent; font-size: 10px; font-weight: 600; }
.account-password-button:hover { border-color: #e1e7f0; color: #315fbd; background: #f8faff; }
.logout-button { height: 36px; display: flex; align-items: center; gap: 7px; margin-left: 12px; padding: 0 11px; border: 1px solid #e1e6ee; border-radius: 6px; color: #5e6f85; background: #fff; font-size: 10px; font-weight: 600; transition: color .15s, border-color .15s, background .15s; }
.logout-button:hover { border-color: #c9d6e9; color: #2457c5; background: #f7f9ff; }
.logout-icon { font-size: 13px; transform: rotate(45deg); }
.dashboard-content { width: min(1240px, calc(100% - clamp(48px, 8vw, 116px))); margin: 0 auto; padding: 43px 0 22px; }
.dashboard-welcome { margin-bottom: 28px; }
.panel-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #547bc8; font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.dashboard-welcome h1 { margin: 0; color: #17283e; font: 700 clamp(29px, 2.3vw, 35px) Manrope,sans-serif; letter-spacing: -.045em; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.summary-card { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e8ecf2; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(20,43,77,.025); }
.summary-icon { width: 37px; height: 37px; display: grid; flex: 0 0 37px; place-items: center; border-radius: 9px; font-size: 17px; }
.users-icon { color: #3b68c7; background: #edf3ff; }
.active-icon { color: #288368; background: #e9f5f0; }
.role-icon { color: #815eb5; background: #f1edfa; }
.summary-card p { margin: 0 0 5px; color: #8592a4; font-size: 7px; font-weight: 700; letter-spacing: .09em; }
.summary-card strong { display: block; color: #1b2c43; font: 700 22px Manrope,sans-serif; line-height: 1.1; }
.summary-card small { display: block; margin-top: 5px; color: #9aa5b3; font-size: 8px; line-height: 1.4; }
.users-panel { overflow: hidden; border: 1px solid #e7ebf2; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(20,43,77,.035); }
.users-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 24px 19px; }
.users-panel-header .panel-kicker { margin-bottom: 6px; font-size: 7px; }
.users-panel-header h2 { margin: 0 0 5px; color: #1c2f48; font: 700 18px Manrope,sans-serif; letter-spacing: -.025em; }
.panel-description { margin: 0; color: #8996a7; font-size: 9px; }
.create-user-button { height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #2c64d9; border-radius: 6px; color: #fff; background: #2c64d9; box-shadow: 0 4px 10px rgba(44,100,217,.15); font-size: 9px; font-weight: 700; white-space: nowrap; transition: background .16s, transform .16s; }
.create-user-button:hover { background: #2457c5; transform: translateY(-1px); }
.create-user-button span { font-size: 16px; font-weight: 400; }
.users-toolbar { min-height: 53px; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0 24px; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; background: #fcfdff; }
.users-tabs { height: 53px; display: flex; align-items: stretch; gap: 22px; }
.users-tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 0 1px; border: 0; color: #8491a3; background: transparent; font-size: 9px; font-weight: 600; white-space: nowrap; }
.users-tab span { min-width: 17px; padding: 3px 5px; border-radius: 8px; color: #8996a7; background: #eef1f5; font-size: 7px; text-align: center; }
.users-tab.is-selected { color: #2c5fca; }
.users-tab.is-selected::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: #3269db; }
.users-tab.is-selected span { color: #315eb5; background: #eaf0ff; }
.user-search { width: 206px; height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #e5e9ef; border-radius: 5px; color: #9aa7b7; background: #fff; }
.user-search > span { font-size: 17px; }
.user-search input { width: 100%; border: 0; outline: 0; color: #344860; background: transparent; font-size: 9px; }
.user-search input::placeholder { color: #aab4c0; }
.table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; text-align: left; }
.users-table th { height: 37px; padding: 0 15px; color: #97a3b2; background: #fff; font-size: 7px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.users-table th:first-child, .users-table td:first-child { padding-left: 24px; }
.users-table th:last-child, .users-table td:last-child { padding-right: 24px; text-align: right; }
.users-table td { height: 62px; padding: 8px 15px; border-top: 1px solid #f0f2f6; color: #66768b; font-size: 9px; white-space: nowrap; }
.users-table tbody tr:hover { background: #fcfdff; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-avatar { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border-radius: 50%; color: #49699f; background: #edf2f8; font-size: 8px; font-weight: 700; }
.table-avatar.master-avatar { color: #775bba; background: #f1edfa; }
.table-user-copy { display: flex; flex-direction: column; gap: 3px; }
.table-user-copy strong { color: #34475f; font-size: 9px; font-weight: 700; }
.table-user-copy small { color: #97a3b2; font-size: 8px; }
.master-inline { margin-left: 5px; padding: 2px 4px; border: 1px solid #e6def4; border-radius: 3px; color: #7e62b9; background: #f7f4fc; font-size: 6px; font-weight: 700; letter-spacing: .045em; vertical-align: 1px; }
.role-pill { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #e5eaf1; border-radius: 4px; color: #65758b; background: #f8f9fb; font-size: 8px; }
.role-pill.role-master { border-color: #e8e0f4; color: #795fAD; background: #f7f4fc; }
.role-pill.role-admin { border-color: #dce7fb; color: #4169b5; background: #f2f6ff; }
.role-pill.role-superadmin { border-color: #f0c4c0; color: #a6322d; background: #fff4f2; }
.user-status { display: inline-flex; align-items: center; gap: 5px; color: #34856f; font-size: 8px; }
.user-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #43a586; }
.user-status.is-inactive { color: #9b6a58; }
.user-status.is-inactive::before { background: #c48b74; }
.row-action { width: 29px; height: 29px; border: 1px solid transparent; border-radius: 5px; color: #7e8da1; background: transparent; font-size: 16px; }
.row-action:hover { border-color: #e1e8f2; color: #3565c3; background: #f8faff; }
.company-row-actions { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.row-action.is-danger:hover { border-color: #f2c7c3; color: #b33e36; background: #fff5f3; }
.clients-table .table-user-copy small { max-width: 260px; overflow-wrap: anywhere; font-family: "Google Sans Code", monospace; font-size: 8px; }
.row-action:disabled { opacity: .35; cursor: not-allowed; }
.table-loading, .table-empty { height: 78px !important; color: #9ba7b5 !important; text-align: center; }
.users-panel-footer { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 24px; border-top: 1px solid #eef1f5; color: #98a4b2; font-size: 8px; }
.security-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #46a286; vertical-align: 1px; }
.permissions-note { min-height: 63px; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 17px; border: 1px solid #e4eaf4; border-radius: 8px; background: #f9fbfe; }
.permissions-note-icon { width: 26px; height: 26px; display: grid; flex: 0 0 26px; place-items: center; border-radius: 7px; color: #5878b4; background: #edf3ff; font-size: 13px; }
.permissions-note p { flex: 1; margin: 0; color: #8491a3; font-size: 8px; line-height: 1.6; }
.permissions-note p strong { color: #465b75; font-size: 9px; }
.purge-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 18px 20px; border: 1px solid #e9c1bd; border-radius: 8px; background: #fff8f7; }
.purge-panel[hidden] { display: none !important; }
.purge-panel h2 { margin: 0 0 5px; color: #8d302b; font: 700 15px Manrope,sans-serif; }
.purge-panel p:not(.purge-kicker) { max-width: 760px; margin: 0; color: #795d5b; font-size: 10px; line-height: 1.55; }
.tenant-database-warning { display: grid; gap: 5px; margin: 0 0 18px; padding: 13px 16px; border: 1px solid #dfb45b; border-radius: 8px; color: #593f12; background: #fff6df; font-size: 13px; line-height: 1.5; }
.tenant-database-warning[hidden] { display: none !important; }
.tenant-database-warning strong { font-size: 14px; }
.tenant-database-warning small { color: #735c2c; font-size: 12px; }
.company-database-missing { color: #a6322d !important; font-weight: 700; }
.purge-kicker { margin: 0 0 5px; color: #ad4740; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.purge-button, .danger-submit { border-color: #a6322d; color: #fff; background: #a6322d; }
.purge-button { min-height: 38px; flex: 0 0 auto; padding: 0 13px; border: 1px solid #a6322d; border-radius: 5px; font-size: 9px; font-weight: 700; }
.purge-button:hover, .danger-submit:hover { background: #8e2925; }
.purge-dialog .dialog-intro { color: #80514e; }
.purge-recovery-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 5px; color: #596a7e; background: #f2f5f9; font-size: 9px; line-height: 1.55; }
.purge-recovery-note code { font-family: "Google Sans Code",monospace; font-size: .95em; }
.master-badge { padding: 5px 7px; border: 1px solid #e5def1; border-radius: 4px; color: #826ab0; background: #f8f5fc; font-size: 6px; font-weight: 700; letter-spacing: .07em; white-space: nowrap; }
.user-dialog { width: min(480px, calc(100% - 28px)); max-height: min(90vh, 780px); overflow-y: auto; padding: 30px 31px 25px; border: 1px solid #e4e9f0; border-radius: 12px; color: #1c2f48; background: #fff; box-shadow: 0 22px 70px rgba(14,34,62,.2); }
.user-dialog::backdrop { background: rgba(13,28,48,.42); backdrop-filter: blur(3px); }
.user-dialog > form:first-child { display: contents; }
.dialog-close { position: sticky; top: 10px; z-index: 20; display: grid; place-items: center; width: 36px; height: 36px; margin: -18px -18px -36px auto; border: 1px solid #7185a0; border-radius: 50%; color: #34485f; background: #f3f6fa; box-shadow: 0 3px 12px rgba(14,34,62,.2); font-size: 23px; cursor: pointer; }
.user-dialog .panel-kicker { margin: 0 0 7px; font-size: 7px; }
.user-dialog h2 { margin: 0 0 6px; color: #1b2d44; font: 700 21px Manrope,sans-serif; letter-spacing: -.03em; }
.dialog-intro { margin: 0 0 20px; color: #8491a3; font-size: 9px; line-height: 1.6; }
.user-form > label:not(.status-toggle) { display: block; margin: 14px 0 6px; color: #3e5067; font-size: 9px; font-weight: 700; }
.user-form > label span { color: #9ba6b3; font-size: 8px; font-weight: 400; }
.user-form > input, .user-form select, .password-input-row input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #dfe5ed; border-radius: 6px; outline: 0; color: #253950; background: #fff; font-size: 10px; }
.user-form [hidden] { display: none !important; }
.user-form > input:focus, .user-form select:focus, .password-input-row input:focus { border-color: #7798eb; box-shadow: 0 0 0 3px rgba(40,89,217,.08); }
.new-password-field { margin-top: 14px; }
.new-password-field > label { display: block; margin: 0 0 6px; color: #3e5067; font-size: 9px; font-weight: 700; }
.password-input-row { display: flex; gap: 7px; }
.password-input-row input { min-width: 0; flex: 1; }
.password-input-row button { padding: 0 10px; border: 1px solid #dfe5ed; border-radius: 5px; color: #4367aa; background: #f8faff; font-size: 8px; font-weight: 600; }
.new-password-field > small { display: block; margin-top: 6px; color: #9aa6b4; font-size: 8px; }
.company-admin-fields { margin-top: 22px; padding: 16px; border: 1px solid #dce5f1; border-radius: 8px; background: #f7f9fc; }
.company-admin-fields h3 { margin: 0 0 5px; color: #203652; font: 700 14px Manrope,sans-serif; }
.company-admin-fields > p { margin: 0 0 14px; color: #52647a; font-size: 11px; line-height: 1.5; }
.company-admin-fields > label { display: block; margin: 12px 0 6px; color: #3e5067; font-size: 10px; font-weight: 700; }
.company-admin-fields > label span { color: #52647a; font-weight: 400; }
.company-admin-fields > input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid #dfe5ed; border-radius: 6px; outline: 0; color: #253950; background: #fff; font-size: 12px; }
.company-admin-fields > input:focus { border-color: #7798eb; box-shadow: 0 0 0 3px rgba(40,89,217,.08); }
.company-admin-fields .new-password-field > label { font-size: 10px; }
.company-admin-fields .password-input-row input { height: 40px; font-size: 12px; }
.company-admin-fields .password-input-row button { flex: 0 0 auto; }
.company-admin-fields .new-password-field > small { color: #52647a; font-size: 10px; line-height: 1.5; }
.status-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #52647a; font-size: 9px; cursor: pointer; }
.status-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-control { position: relative; width: 29px; height: 16px; border-radius: 10px; background: #cbd3de; transition: background .15s; }
.switch-control::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.status-toggle input:checked + .switch-control { background: #4a9d82; }
.status-toggle input:checked + .switch-control::after { transform: translateX(13px); }
.status-toggle input:focus-visible + .switch-control { outline: 3px solid rgba(40,89,217,.18); outline-offset: 2px; }
.dialog-error { min-height: 0; margin: 0; color: #b64f4f; font-size: 9px; line-height: 1.5; }
.dialog-error:not(:empty) { margin-top: 11px; }
.dialog-actions { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 22px -1px -1px; padding: 12px 1px 4px; border-top: 1px solid var(--dashboard-line, #dce3ed); background: var(--dashboard-surface, #fff); }
.dialog-cancel, .dialog-submit { min-height: 35px; padding: 0 14px; border: 1px solid #dfe5ed; border-radius: 5px; font-size: 9px; font-weight: 600; }
.dialog-cancel { color: #68798e; background: #fff; }
.dialog-submit { border-color: #2c64d9; color: #fff; background: #2c64d9; }
.dialog-submit:disabled { opacity: .55; cursor: progress; }
.dashboard-toast { left: auto; right: 24px; bottom: 24px; transform: translateY(12px); }
.dashboard-toast.visible { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:root[data-theme="dark"] .dashboard-page { --dashboard-ink: #e5ecf5; --dashboard-muted: #a7b5c8; --dashboard-line: #2b405c; --dashboard-surface: #14243a; --dashboard-soft: #0d1a2d; background: #0a1128; }
:root[data-theme="dark"] .dashboard-topbar, :root[data-theme="dark"] .summary-card, :root[data-theme="dark"] .users-panel, :root[data-theme="dark"] .user-dialog { border-color: #263954; color: #e5ecf5; background: #14243a; }
:root[data-theme="dark"] .dashboard-topbar { border-color: #263954; }
:root[data-theme="dark"] .topbar-user strong, :root[data-theme="dark"] .summary-card strong, :root[data-theme="dark"] .users-panel-header h2, :root[data-theme="dark"] .user-dialog h2 { color: #e5ecf5; }
:root[data-theme="dark"] .dashboard-welcome h1 { color: #f1f5fb; }
:root[data-theme="dark"] .logout-button, :root[data-theme="dark"] .mobile-nav-toggle, :root[data-theme="dark"] .user-search { border-color: #34445a; color: #d6e0ee; background: #111f34; }
:root[data-theme="dark"] .module-stat, :root[data-theme="dark"] .module-flow-panel, :root[data-theme="dark"] .module-record-panel { border-color: #263954; background: #14243a; }
:root[data-theme="dark"] .module-stat > span, :root[data-theme="dark"] .module-section-heading h2, :root[data-theme="dark"] .module-flow-step h3, :root[data-theme="dark"] .module-empty-state strong { color: #d6e0ee; }
:root[data-theme="dark"] .module-flow-step, :root[data-theme="dark"] .module-section-heading { border-color: #263954; }
:root[data-theme="dark"] .users-toolbar, :root[data-theme="dark"] .users-panel-footer, :root[data-theme="dark"] .users-table td { border-color: #263954; background: #14243a; }
:root[data-theme="dark"] .users-table th { color: #9aabc1; background: #14243a; }
:root[data-theme="dark"] .table-user-copy strong { color: #d6e0ee; }
:root[data-theme="dark"] .user-search input, :root[data-theme="dark"] .user-form > input, :root[data-theme="dark"] .user-form select, :root[data-theme="dark"] .password-input-row input, :root[data-theme="dark"] .company-admin-fields > input { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }
:root[data-theme="dark"] .permissions-note { border-color: #263954; background: #111f34; }
:root[data-theme="dark"] .purge-panel { border-color: #6e3738; background: #2b1b29; }
:root[data-theme="dark"] body.dashboard-page .tenant-database-warning { border-color: #806327; color: #f2dfaf; background: #332a17; }
:root[data-theme="dark"] body.dashboard-page .tenant-database-warning small { color: #e0cc98; }
:root[data-theme="dark"] body.dashboard-page .company-database-missing { color: #ffb6aa !important; }
:root[data-theme="dark"] .purge-panel h2, :root[data-theme="dark"] .purge-kicker { color: #ffaaa1; }
:root[data-theme="dark"] .purge-panel p:not(.purge-kicker), :root[data-theme="dark"] .purge-dialog .dialog-intro { color: #ddb8b6; }
:root[data-theme="dark"] .purge-recovery-note { color: #c2cedd; background: #0e1b2d; }
:root[data-theme="dark"] .role-pill.role-superadmin { border-color: #754447; color: #ffaaa1; background: #39242c; }
.module-overview { display: grid; gap: 20px; }
.module-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -12px 0 0; color: #6f7f94; font-size: 13px; line-height: 1.6; }
.module-coming-badge { padding: 5px 8px; border: 1px solid #e5eaf1; border-radius: 4px; color: #718198; background: #f8f9fb; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.module-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.module-stat { min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 17px 19px; border: 1px solid #e7ebf2; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px rgba(20,43,77,.025); }
.module-stat > span { color: #687a91; font-size: 12px; font-weight: 600; }
.module-stat strong { color: #243a54; font: 700 26px Manrope,sans-serif; line-height: 1.2; }
.module-stat small { color: #96a2b1; font-size: 10px; }
.module-page-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: 16px; }
.module-flow-panel, .module-record-panel { min-width: 0; border: 1px solid #e7ebf2; border-radius: 9px; background: #fff; box-shadow: 0 5px 18px rgba(20,43,77,.025); }
.module-section-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 19px; border-bottom: 1px solid #edf0f4; }
.module-panel-kicker { display: block; margin-bottom: 5px; color: #7990b8; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.module-section-heading h2 { margin: 0; color: #263b54; font: 700 17px Manrope,sans-serif; }
.module-panel-status { display: inline-flex; align-items: center; gap: 6px; color: #8694a7; font-size: 10px; white-space: nowrap; }
.module-panel-status i { width: 7px; height: 7px; border-radius: 50%; background: #83a2da; }
.module-flow-steps { padding: 5px 19px; }
.module-flow-step { min-height: 76px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid #f0f2f6; }
.module-flow-step:last-child { border-bottom: 0; }
.module-step-number { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border: 1px solid #e0e8f4; border-radius: 8px; color: #5073b4; background: #f4f7fc; font-size: 10px; font-weight: 700; }
.module-flow-step h3 { margin: 0 0 4px; color: #3a4e66; font-size: 12px; font-weight: 700; }
.module-flow-step p { margin: 0; color: #8896a8; font-size: 10px; line-height: 1.5; }
.module-step-arrow { margin-left: auto; color: #a7b2c0; font-size: 16px; }
.module-record-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: #7891bd; background: #f1f5fb; font-size: 15px; }
.module-empty-state { min-height: 237px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.module-empty-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #e7ebf2; border-radius: 50%; color: #8fa0b7; background: #fafbfd; font-size: 23px; }
.module-empty-state strong { color: #586b82; font-size: 13px; }
.module-empty-state p { max-width: 290px; margin: 7px 0 0; color: #919eae; font-size: 11px; line-height: 1.6; }
.module-data-note { display: flex; align-items: center; gap: 9px; margin: 0; color: #8795a7; font-size: 10px; line-height: 1.5; }
.module-data-note span { width: 18px; height: 18px; display: grid; flex: 0 0 18px; place-items: center; border: 1px solid #dce5f2; border-radius: 50%; color: #5d7ebc; font-size: 11px; font-weight: 700; }
body.dashboard-page [hidden] { display: none !important; }
body.dashboard-page:not(.dashboard-ready) #accounts-content, body.dashboard-page:not(.dashboard-ready) #module-content { visibility: hidden; }
body.dashboard-page .sidebar-section-label { font-size: 10px; }
body.dashboard-page .sidebar-link { font-size: 13px; }
body.dashboard-page .sidebar-bottom { font-size: 11px; }
body.dashboard-page .user-avatar { width: 36px; height: 36px; font-size: 11px; }
body.dashboard-page .summary-card p { font-size: 9px; }
body.dashboard-page .summary-card strong { font-size: 24px; }
body.dashboard-page .summary-card small { font-size: 9px; }
body.dashboard-page .users-panel-header h2 { font-size: 20px; }
body.dashboard-page .panel-description, body.dashboard-page .user-search input { font-size: 10px; }
body.dashboard-page .users-tab { font-size: 11px; }
body.dashboard-page .users-tab span { font-size: 8px; }
body.dashboard-page .users-table th { font-size: 9px; }
body.dashboard-page .users-table td { font-size: 10px; }
body.dashboard-page .table-user-copy strong { font-size: 10px; }
body.dashboard-page .table-user-copy small { font-size: 10px; }
body.dashboard-page .role-pill, body.dashboard-page .user-status { font-size: 10px; }
body.dashboard-page .users-panel-footer { font-size: 9px; }
body.dashboard-page .permissions-note p { font-size: 10px; }
body.dashboard-page .permissions-note p strong { font-size: 10px; }
body.dashboard-page .master-inline { font-size: 7px; }
body.dashboard-page .master-badge { font-size: 7px; }
body.dashboard-page .logout-button > span:last-child { font-size: 10px; }
body.dashboard-page .user-dialog .panel-kicker { font-size: 8px; }
body.dashboard-page .user-form > label:not(.status-toggle), body.dashboard-page .new-password-field > label { font-size: 10px; }
body.dashboard-page .dialog-intro, body.dashboard-page .user-form > input, body.dashboard-page .user-form select { font-size: 11px; }
body.dashboard-page .dialog-cancel, body.dashboard-page .dialog-submit { font-size: 10px; }
.dashboard-logo-canvas { width: 280px; height: 82px; }
@media (max-width: 1080px) {
  .dashboard-content { width: calc(100% - 56px); }
  .dashboard-topbar { padding-inline: 28px; }
  .admin-summary { gap: 9px; }
  .summary-card { gap: 10px; padding: 14px 12px; }
  .summary-card small { font-size: 7px; }
}
@media (max-width: 800px) {
  .dashboard-sidebar { width: 0; padding-inline: 0; border: 0; }
  .dashboard-sidebar:hover, .dashboard-sidebar.is-open, .dashboard-sidebar:focus-within, .dashboard-sidebar.is-mobile-open { width: 254px; padding-inline: 10px; }
  .dashboard-sidebar:hover ~ .dashboard-main-shell, .dashboard-sidebar.is-open ~ .dashboard-main-shell, .dashboard-sidebar:focus-within ~ .dashboard-main-shell, .dashboard-sidebar.is-mobile-open ~ .dashboard-main-shell { margin-left: 0; }
  .dashboard-main-shell { margin-left: 0; }
  .dashboard-sidebar:hover ~ .dashboard-backdrop, .dashboard-sidebar.is-open ~ .dashboard-backdrop, .dashboard-sidebar:focus-within ~ .dashboard-backdrop, .dashboard-sidebar.is-mobile-open ~ .dashboard-backdrop { position: fixed; z-index: 11; inset: 0; display: block; background: rgba(13,28,48,.25); }
  .dashboard-topbar { min-height: 82px; padding-inline: 19px; }
  .dashboard-logo-canvas { width: 228px; height: 72px; }
  .mobile-nav-toggle { display: block; }
  .dashboard-content { width: calc(100% - 38px); padding-top: 31px; }
  .admin-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-card { min-height: 95px; flex-direction: column; align-items: flex-start; gap: 7px; }
  .summary-icon { width: 29px; height: 29px; flex-basis: 29px; font-size: 14px; }
  .summary-card small { display: none; }
  .users-panel-header { padding-inline: 17px; }
  .users-toolbar { padding-inline: 17px; }
  .users-table { min-width: 680px; }
  .users-panel-footer { padding-inline: 17px; }
}
@media (max-width: 520px) {
  .dashboard-topbar { padding-inline: 12px; gap: 9px; }
  .dashboard-logo-canvas { width: min(210px, calc(100vw - 150px)); height: 68px; }
  .user-avatar { display: none; }
  .logout-button { width: 36px; justify-content: center; margin-left: 0; padding: 0; font-size: 0; }
  .logout-button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .dashboard-user-area { gap: 7px; }
  .user-avatar { width: 29px; height: 29px; }
  .topbar-user { display: none; }
  .account-password-button { display: none; }
  .logout-button { margin-left: 3px; padding-inline: 8px; font-size: 8px; }
  .dashboard-content { width: calc(100% - 30px); padding-top: 24px; }
  .dashboard-welcome { margin-bottom: 20px; }
  .dashboard-welcome h1 { font-size: 28px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .module-stats { grid-template-columns: 1fr; gap: 8px; }
  .module-stat { min-height: 86px; padding: 12px 14px; }
  .module-page-grid { grid-template-columns: 1fr; gap: 11px; }
  .module-empty-state { min-height: 185px; }
  .summary-card { min-height: 89px; padding: 11px; }
  .summary-card:last-child { grid-column: 1 / -1; min-height: 73px; flex-direction: row; align-items: center; }
  .summary-card:last-child small { display: block; }
  .summary-card strong { font-size: 19px; }
  .users-panel-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 17px 14px; }
  .users-panel-header h2 { font-size: 17px; }
  .create-user-button { width: 100%; }
  .users-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 9px; padding: 11px 13px 0; }
  .user-search { width: 100%; }
  .users-tabs { width: 100%; height: 42px; justify-content: space-between; gap: 8px; }
  .users-tab { font-size: 8px; }
  .users-table th:first-child, .users-table td:first-child { padding-left: 14px; }
  .users-table th:last-child, .users-table td:last-child { padding-right: 14px; }
  .users-panel-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; min-height: 50px; padding: 8px 13px; }
  .permissions-note { align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 11px; }
  .permissions-note p { flex-basis: calc(100% - 38px); }
  .master-badge { margin-left: 34px; }
  .user-dialog { padding: 27px 20px 20px; }
}

@media (min-width: 1450px) { .page-shell { --page-gutter: clamp(64px, 4.4vw, 84px); } }
@media (max-width: 1050px) {
  .page-shell { --page-gutter: clamp(22px, 3.6vw, 38px); }
  .main-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "auth" "modules"; grid-template-rows: auto auto auto; align-items: start; align-content: start; row-gap: 30px; padding: 30px 0 38px; }
  .intro-panel, .module-summary { max-width: 760px; }
  .auth-panel { width: 100%; max-width: 900px; justify-self: start; }
  .auth-card { padding: 40px 44px 34px; }
}
@media (max-width: 800px) {
  .page-shell { --page-gutter: clamp(20px, 3.4vw, 27px); }
  .main-layout { grid-template-columns: 1fr; grid-template-areas: "hero" "auth" "modules"; grid-template-rows: auto auto auto; row-gap: 28px; padding: 27px 0 36px; }
  .intro-panel { max-width: 760px; justify-self: start; padding-top: 0; }
  .intro-copy { max-width: 100%; }
  .intro-description { max-width: 700px; }
  .auth-panel { justify-self: start; max-width: 900px; }
  .auth-card { padding: 36px 38px 32px; }
  .module-summary { max-width: 760px; }
  .site-footer { gap: 12px; }
}
@media (max-width: 520px) {
  .page-shell { --page-gutter: 14px; }
  .brand-canvas { width: min(330px, calc(100vw - 72px)); height: 112px; }
  .main-layout { row-gap: 25px; padding-top: 24px; }
  h1 { font-size: clamp(27px, 7.2vw, 34px); }
  .intro-description { font-size: 12px; line-height: 1.75; }
  .slogan { font-size: 14px; }
  .module-summary-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .auth-card { padding: 26px 21px 23px; }
  .site-footer { min-height: 58px; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 3px; font-size: 8px; }
}
@media (max-width: 380px) {
  .auth-card { padding: 23px 17px 21px; }
  .password-label-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .password-label-row label { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Public home page accessibility and readability refinements. */
.page-shell { --muted: #53647a; --muted-strong: #53647a; }
.page-shell .brand-canvas { outline: none; border-radius: 4px; }
.page-shell .brand-canvas:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.page-shell h1 { letter-spacing: -.035em; }
.page-shell .intro-tagline { margin: 0 0 11px; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.45; }
.page-shell .intro-description { color: #53647a; font-size: 16px; line-height: 1.65; }
.page-shell .slogan { color: #354960; font-size: 16px; }
.page-shell .module-summary-heading h2 { color: #354960; font-size: 14px; }
.page-shell .module-summary-heading > span { color: #53647a; font-size: 12px; }
.page-shell .module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0; margin: 0; list-style: none; }
.page-shell .module-item { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--card-line); }
.page-shell .module-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; }
.page-shell .module-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-shell .module-copy { min-width: 0; display: grid; gap: 4px; }
.page-shell .module-copy strong { color: var(--navy); font-size: 14px; line-height: 1.3; }
.page-shell .module-copy small { color: #53647a; font-size: 12px; line-height: 1.4; }
.page-shell .module-status { color: #455b73; font-size: 12px; }
.page-shell .auth-card { padding: 48px 52px 40px; }
.page-shell .auth-heading h2 { font-size: 32px; }
.page-shell .auth-heading > p:last-child { color: #53647a; font-size: 15px; line-height: 1.5; }
.page-shell .auth-form { margin-top: 32px; }
.page-shell .auth-form > label, .page-shell .password-label-row label { color: #35475d; font-size: 14px; }
.page-shell .input-wrap { height: 56px; }
.page-shell .input-wrap input { font-size: 15px; }
.page-shell .input-wrap input::placeholder { color: #596b80; }
.page-shell .text-button { min-height: 40px; font-size: 13px; }
.page-shell .visibility-button { width: 40px; height: 40px; color: #53647a; }
.page-shell .remember-option { color: #455970; font-size: 13px; }
.page-shell .custom-check { width: 17px; height: 17px; }
.page-shell .secure-note { color: #53647a; font-size: 12px; }
.page-shell .form-message { font-size: 13px; }
.page-shell .auth-form > .primary-button { margin-top: 20px; }
.page-shell .primary-button { min-height: 56px; font-size: 15px; }
.page-shell .auth-separator { margin: 25px 0 14px; color: #53647a; font-size: 13px; }
.page-shell .secondary-button { min-height: 52px; color: #34485f; font-size: 14px; }
.page-shell .auth-footnote { color: #53647a; font-size: 12px; }
.page-shell .support-line { color: #53647a; font-size: 13px; }
.page-shell .site-footer { color: #53647a; font-size: 12px; }
.page-shell .version-label { color: #455970; font-size: 11px; }
.page-shell :is(button, input, canvas):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.page-shell .input-wrap:has(input[aria-invalid="true"]) { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180,35,24,.12); }
.page-shell .primary-button:disabled { cursor: wait; opacity: .78; transform: none; }
.modal { padding: 34px 36px 30px; }
.modal > form:first-child { display: contents; }
.modal h2 { font-size: 25px; }
.modal-description { color: #455970; font-size: 14px; }
.modal-guidance { padding: 14px 16px; margin: 0; border: 1px solid #d8e4f5; border-radius: 8px; color: #354960; background: #f3f7ff; font-size: 14px; line-height: 1.6; }
.modal-back { min-height: 44px; margin-top: 16px; font-size: 13px; }
.modal-close { width: 40px; height: 40px; color: #455970; }
:root[data-theme="dark"] .page-shell .intro-description,
:root[data-theme="dark"] .page-shell .slogan,
:root[data-theme="dark"] .page-shell .module-summary-heading h2,
:root[data-theme="dark"] .page-shell .module-summary-heading > span,
:root[data-theme="dark"] .page-shell .module-copy small,
:root[data-theme="dark"] .page-shell .module-status,
:root[data-theme="dark"] .page-shell .auth-heading > p:last-child,
:root[data-theme="dark"] .page-shell .auth-form > label,
:root[data-theme="dark"] .page-shell .password-label-row label,
:root[data-theme="dark"] .page-shell .remember-option,
:root[data-theme="dark"] .page-shell .secure-note,
:root[data-theme="dark"] .page-shell .auth-separator,
:root[data-theme="dark"] .page-shell .auth-footnote,
:root[data-theme="dark"] .page-shell .support-line,
:root[data-theme="dark"] .page-shell .site-footer,
:root[data-theme="dark"] .modal-description { color: #c4d0df; }
:root[data-theme="dark"] .page-shell .input-wrap input::placeholder { color: #b9c8db; }
:root[data-theme="dark"] .page-shell .visibility-button { color: #c4d0df; }
:root[data-theme="dark"] .page-shell .modal-guidance { border-color: #344b6c; color: #d8e3f1; background: #1a2b45; }
:root[data-theme="dark"] .page-shell .module-item { border-color: #34445a; }
:root[data-theme="dark"] .page-shell .module-status { color: #c4d0df; }
@media (max-width: 1050px) {
  .page-shell .module-list { max-width: 900px; }
  .page-shell .auth-card { padding: 40px 44px 36px; }
}
@media (max-width: 800px) {
  .page-shell .auth-panel { max-width: 900px; }
  .page-shell .auth-card { padding: 36px 38px 32px; }
}
@media (max-width: 520px) {
  .page-shell .intro-tagline { font-size: 16px; }
  .page-shell h1 { font-size: clamp(29px, 7.5vw, 36px); }
  .page-shell .intro-description { font-size: 14px; }
  .page-shell .module-list { grid-template-columns: 1fr; }
  .page-shell .module-item { min-height: 70px; }
  .page-shell .auth-card { padding: 30px 22px 26px; }
  .page-shell .auth-heading h2 { font-size: 29px; }
  .page-shell .site-footer { min-height: 66px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; font-size: 11px; }
}
@media (max-width: 380px) {
  .page-shell .auth-card { padding: 25px 17px 22px; }
  .page-shell .password-label-row { align-items: flex-start; flex-direction: column; gap: 2px; }
  .page-shell .password-label-row label { margin-bottom: 4px; }
  .page-shell .module-item { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .page-shell .module-copy small { font-size: 12px; }
}

/* Cuentas de Usuario: readable controls, recoverable states, and visible keyboard focus. */
body.dashboard-page .users-panel-header h2 { font-size: 22px; }
body.dashboard-page .panel-description { font-size: 14px; line-height: 1.55; }
body.dashboard-page .create-user-button,
body.dashboard-page .mobile-nav-toggle,
body.dashboard-page .logout-button,
body.dashboard-page .account-password-button,
body.dashboard-page .users-tab,
body.dashboard-page .row-action,
body.dashboard-page .table-retry,
body.dashboard-page .dialog-cancel,
body.dashboard-page .dialog-submit { min-height: 40px; font-size: 13px; }
body.dashboard-page .users-tab { padding-inline: 11px; }
body.dashboard-page .users-tab span { font-size: 12px; }
body.dashboard-page .user-search { min-height: 42px; }
body.dashboard-page .user-search input { min-height: 40px; font-size: 14px; }
body.dashboard-page .users-table th { height: 44px; font-size: 11px; }
body.dashboard-page .users-table td { min-height: 64px; height: 64px; font-size: 13px; }
body.dashboard-page .table-user-copy strong { font-size: 13px; }
body.dashboard-page .table-user-copy small,
body.dashboard-page .role-pill,
body.dashboard-page .user-status { font-size: 12px; }
body.dashboard-page .master-inline { font-size: 9px; }
body.dashboard-page .users-panel-footer,
body.dashboard-page .permissions-note p,
body.dashboard-page .permissions-note p strong { font-size: 12px; line-height: 1.55; }
body.dashboard-page .summary-card p { font-size: 10px; }
body.dashboard-page .summary-card small { font-size: 12px; }
body.dashboard-page .user-dialog { padding: 32px; }
body.dashboard-page .user-dialog h2 { font-size: 24px; }
body.dashboard-page .dialog-intro { font-size: 14px; line-height: 1.55; }
body.dashboard-page .user-form > label:not(.status-toggle),
body.dashboard-page .new-password-field > label { font-size: 13px; }
body.dashboard-page .user-form > label span { font-size: 12px; }
body.dashboard-page .user-form > input,
body.dashboard-page .user-form select,
body.dashboard-page .password-input-row input { min-height: 44px; height: 44px; font-size: 14px; }
body.dashboard-page .company-admin-fields > label { font-size: 13px; }
body.dashboard-page .company-admin-fields > label span { font-size: 12px; }
body.dashboard-page .company-admin-fields > input,
body.dashboard-page .company-admin-fields .password-input-row input { min-height: 44px; height: 44px; font-size: 14px; }
body.dashboard-page .company-admin-fields h3 { font-size: 17px; }
body.dashboard-page .company-admin-fields > p,
body.dashboard-page .company-admin-fields .new-password-field > small { font-size: 12px; line-height: 1.55; }
body.dashboard-page .password-input-row button { min-height: 44px; font-size: 12px; }
body.dashboard-page .new-password-field > small,
body.dashboard-page .role-explanation { display: block; margin: 8px 0 0; color: #5a6b81; font-size: 12px; line-height: 1.55; }
body.dashboard-page .role-explanation { min-height: 38px; }
body.dashboard-page .table-loading,
body.dashboard-page .table-empty { font-size: 13px; }
body.dashboard-page .table-error { padding: 18px 22px !important; white-space: normal; }
body.dashboard-page .table-error > div { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; color: #7d3b32; font-size: 13px; }
body.dashboard-page .table-error strong { font-size: 14px; }
body.dashboard-page .table-error span { max-width: 100%; }
body.dashboard-page .table-retry { padding: 0 14px; border: 1px solid #bd5949; border-radius: 6px; color: #8c3528; background: #fff; cursor: pointer; }
body.dashboard-page :is(button, a, input, select, canvas, [tabindex]):focus-visible { outline: 3px solid #7ba4ff; outline-offset: 3px; }
:root[data-theme="dark"] body.dashboard-page .role-explanation,
:root[data-theme="dark"] body.dashboard-page .new-password-field > small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .table-error > div { color: #ffd0c7; }
:root[data-theme="dark"] body.dashboard-page .table-retry { border-color: #9b594f; color: #ffe2dc; background: #291d26; }

@media (max-width: 520px) {
  body.dashboard-page .users-panel-header h2 { font-size: 20px; }
  body.dashboard-page .users-table { min-width: 700px; }
  body.dashboard-page .user-dialog { padding: 26px 20px 22px; }
  body.dashboard-page .table-error > div { justify-content: flex-start; }
}

/* Public landing page: consistent left edge and a compact right-side sign-in. */
.page-shell { padding-top: 0; }
.landing-brand-header { min-height: 168px; display: flex; align-items: center; overflow: visible; }
.landing-brand-header .brand-header { width: 100%; justify-content: flex-start; margin: 0; }
.landing-brand-canvas { width: 430px; height: 160px; max-width: none; transform: none; }
.main-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 350px);
  grid-template-areas: "content auth";
  grid-template-rows: min-content;
  align-items: start;
  align-content: start;
  column-gap: clamp(28px, 3.4vw, 56px);
  row-gap: 0;
  padding: 6px 0 36px;
}
.page-shell .landing-content { grid-area: content; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-shell .intro-panel,
.page-shell .module-summary { width: 100%; max-width: none; justify-self: stretch; margin: 0; text-align: left; }
.page-shell .intro-panel { margin-top: 20px; }
.page-shell .intro-copy { width: 100%; max-width: none; margin: 0; }
.page-shell .intro-tagline,
.page-shell .intro-description,
.page-shell .slogan { font-size: 16px; line-height: 1.65; text-align: justify; }
.page-shell .intro-description { max-width: none; }
.page-shell .module-list { max-width: none; grid-template-columns: minmax(0, 1fr); gap: 0; }
.page-shell .module-summary-heading { justify-content: flex-start; text-align: left; }
.page-shell .auth-panel { grid-area: auth; width: 100%; max-width: 350px; justify-self: end; align-self: start; margin: 10px 0 0; }
.page-shell .auth-card { padding: 26px 28px 24px; }
.page-shell .auth-heading h2 { font-size: 26px; }
.page-shell .auth-form { margin-top: 23px; }
.page-shell .input-wrap { height: 48px; }
.page-shell .primary-button { min-height: 48px; }
.page-shell .secondary-button { min-height: 44px; }

@media (min-width: 1200px) {
  .page-shell .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 1050px) {
  .page-shell .module-summary-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 760px) {
  .landing-brand-header { min-height: 158px; }
  .landing-brand-canvas { width: min(430px, 100%); height: 150px; }
  .main-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "auth" "modules";
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 20px;
    padding: 0 0 28px;
  }
  .page-shell .landing-content { display: contents; }
  .page-shell .auth-panel { grid-area: auth; }
  .page-shell .intro-panel,
  .page-shell .module-summary { max-width: 680px; justify-self: start; }
  .page-shell .intro-panel { margin-top: 16px; }
  .page-shell .auth-panel { max-width: 520px; justify-self: start; align-self: start; margin: 0; }
  .page-shell .auth-card { padding: 25px 28px 23px; }
  .page-shell h1 { font-size: clamp(29px, 4.4vw, 36px); }
  .page-shell .intro-description { font-size: 14px; line-height: 1.6; }
}

@media (max-width: 520px) {
  .page-shell { --page-gutter: 16px; }
  .landing-brand-header { min-height: 140px; }
  .landing-brand-canvas { width: min(370px, calc(100vw - 32px)); height: 132px; }
  .main-layout { row-gap: 18px; padding-top: 0; padding-bottom: 20px; }
  .page-shell h1 { font-size: clamp(25px, 7vw, 32px); line-height: 1.13; margin-bottom: 12px; }
  .page-shell .intro-tagline { font-size: 13px; line-height: 1.5; margin-bottom: 7px; }
  .page-shell .intro-description { font-size: 12px; line-height: 1.5; text-align: justify; margin-bottom: 8px; }
  .page-shell .slogan { font-size: 12px; line-height: 1.5; }
  .page-shell .module-summary-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .page-shell .module-summary-heading > span { font-size: 11px; line-height: 1.4; }
  .page-shell .module-item { min-height: 62px; padding: 9px 0; }
  .page-shell .module-copy strong { font-size: 13px; }
  .page-shell .module-copy small { font-size: 11px; }
  .page-shell .module-status { font-size: 10px; }
  .page-shell .auth-panel { max-width: 440px; }
  .page-shell .auth-card { padding: 18px 17px 16px; border-radius: 12px; }
  .page-shell .auth-heading h2 { font-size: 22px; margin-bottom: 5px; }
  .page-shell .auth-heading > p:last-child { font-size: 12px; line-height: 1.45; }
  .page-shell .auth-form { margin-top: 14px; }
  .page-shell .auth-form > label,
  .page-shell .password-label-row label { font-size: 12px; margin-bottom: 6px; }
  .page-shell .input-wrap { height: 44px; padding-inline: 11px; }
  .page-shell .input-wrap input { font-size: 13px; }
  .page-shell .password-label-row { margin-top: 10px; }
  .page-shell .text-button { font-size: 11px; }
  .page-shell .form-options { gap: 14px; margin-top: 8px; }
  .page-shell .remember-option { font-size: 11px; }
  .page-shell .secure-note { font-size: 10px; }
  .page-shell .auth-form > .primary-button { margin-top: 10px; }
  .page-shell .primary-button { min-height: 43px; font-size: 13px; }
  .page-shell .auth-separator { margin: 13px 0 9px; font-size: 11px; }
  .page-shell .secondary-button { min-height: 39px; font-size: 12px; }
  .page-shell .auth-footnote { font-size: 10px; line-height: 1.45; margin-top: 9px; }
  .page-shell .support-line { margin-top: 8px; font-size: 10px; }
  .page-shell .site-footer { min-height: 58px; gap: 4px; font-size: 10px; }
}

@media (max-width: 360px) {
  .page-shell { --page-gutter: 12px; }
  .landing-brand-header { min-height: 128px; }
  .landing-brand-canvas { width: calc(100vw - 24px); height: 120px; }
  .page-shell .auth-card { padding-inline: 15px; }
  .page-shell .password-label-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .page-shell .password-label-row label { margin-bottom: 1px; }
  .page-shell .form-options { gap: 10px; }
}

/* The logo stays in the fixed page header; navigation begins below it. */
body.dashboard-page .dashboard-topbar { position: fixed; z-index: 13; inset: 0 0 auto; width: 100%; height: 100px; min-height: 100px; padding: 0 24px; }
body.dashboard-page .dashboard-sidebar { top: 100px; bottom: 0; padding: 0; }
body.dashboard-page .dashboard-main-shell { min-height: 100vh; padding-top: 100px; }
body.dashboard-page .dashboard-logo-canvas { width: 280px; height: 82px; }
body.dashboard-page .sidebar-navigation-region { min-height: 0; flex: 1 1 auto; overflow: auto; overflow-x: hidden; padding: 16px 10px; scrollbar-color: #455771 #111d30; scrollbar-width: thin; }
body.dashboard-page .sidebar-section-label { margin-bottom: 12px; }
body.dashboard-page .sidebar-group { min-width: 222px; }
body.dashboard-page .sidebar-group-toggle { width: 100%; font-family: inherit; cursor: pointer; }
body.dashboard-page .sidebar-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
body.dashboard-page .sidebar-chevron { width: 15px; height: 15px; flex: 0 0 15px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: transform .18s, opacity .15s; }
body.dashboard-page .dashboard-sidebar:hover .sidebar-chevron,
body.dashboard-page .dashboard-sidebar.is-open .sidebar-chevron,
body.dashboard-page .dashboard-sidebar:focus-within .sidebar-chevron,
body.dashboard-page .dashboard-sidebar.is-mobile-open .sidebar-chevron { opacity: 1; }
body.dashboard-page .sidebar-group-toggle[aria-expanded="true"] .sidebar-chevron { transform: rotate(180deg); }
body.dashboard-page .sidebar-subnav { display: grid; gap: 4px; padding: 5px 0 2px 10px; }
body.dashboard-page .sidebar-subnav[hidden] { display: none; }
body.dashboard-page .sidebar-sublink { min-width: 212px; min-height: 43px; padding-left: 11px; font-size: 12px; }
body.dashboard-page .profile-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 10px; border-radius: 8px; color: inherit; text-decoration: none; transition: background .15s, color .15s; }
body.dashboard-page .profile-link:hover { color: #2457c5; background: #eaf0f9; }
body.dashboard-page .profile-link .user-avatar { width: 38px; height: 38px; flex: 0 0 38px; }
body.dashboard-page .profile-link .user-avatar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.dashboard-page .profile-link .topbar-user { min-width: 0; }
body.dashboard-page .topbar-profile-name-button { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--dashboard-line); border-radius: 8px; color: var(--dashboard-muted); background: var(--dashboard-surface); font: 700 18px/1 Manrope,sans-serif; cursor: pointer; }
body.dashboard-page .topbar-profile-name-button:hover { border-color: #9bb4e7; color: #2457c5; }
body.dashboard-page .topbar-profile-name-button:focus-visible { outline: 3px solid #6b91dc; outline-offset: 2px; }
body.dashboard-page .account-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
body.dashboard-page .account-page-actions .logout-button,
body.dashboard-page .account-page-actions .account-password-button { margin: 0; padding-inline: 12px; border-color: #dce3ed; background: var(--dashboard-surface); }
body.dashboard-page .configuration-overview { max-width: 820px; padding-top: 4px; }
body.dashboard-page .configuration-overview h2 { margin: 0 0 8px; color: var(--dashboard-ink); font: 700 22px Manrope, sans-serif; letter-spacing: -.025em; }
body.dashboard-page .configuration-overview > p { max-width: 68ch; margin: 0 0 22px; color: #64758b; font-size: 14px; line-height: 1.6; }
body.dashboard-page .configuration-entry { min-height: 88px; display: flex; align-items: center; gap: 16px; padding: 17px 20px; border: 1px solid var(--dashboard-line); border-radius: 10px; color: var(--dashboard-ink); background: var(--dashboard-surface); text-decoration: none; transition: border-color .16s, box-shadow .16s, transform .16s; }
body.dashboard-page .configuration-entry:hover { border-color: #b8c9e8; box-shadow: 0 8px 22px rgba(27,53,91,.08); transform: translateY(-1px); }
body.dashboard-page .configuration-entry-icon { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 8px; color: #315db5; background: #edf3ff; }
body.dashboard-page .configuration-entry-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.dashboard-page .configuration-entry > span:nth-child(2) { display: grid; gap: 5px; }
body.dashboard-page .configuration-entry strong { font-size: 14px; }
body.dashboard-page .configuration-entry small { color: #64758b; font-size: 12px; }
body.dashboard-page .configuration-entry-arrow { margin-left: auto; color: #315db5; font-size: 20px; }
:root[data-theme="dark"] body.dashboard-page .profile-link:hover { color: #cfe0ff; background: #1a2d47; }
:root[data-theme="dark"] body.dashboard-page .topbar-profile-name-button { border-color: #34445a; color: #d6e0ee; background: #111f34; }
:root[data-theme="dark"] body.dashboard-page .topbar-profile-name-button:hover { border-color: #6c89bc; color: #cfe0ff; }
:root[data-theme="dark"] body.dashboard-page .configuration-overview > p,
:root[data-theme="dark"] body.dashboard-page .configuration-entry small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .configuration-entry { border-color: #263954; }
:root[data-theme="dark"] body.dashboard-page .configuration-entry-icon { color: #cfe0ff; background: #203b61; }
@media (max-width: 800px) {
  body.dashboard-page .dashboard-topbar { height: 82px; min-height: 82px; padding-inline: 14px; }
  body.dashboard-page .dashboard-sidebar { top: 82px; }
  body.dashboard-page .dashboard-main-shell { padding-top: 82px; }
  body.dashboard-page .sidebar-navigation-region { padding: 14px 10px; }
  body.dashboard-page .dashboard-logo-canvas { width: 198px; height: 64px; }
  body.dashboard-page .profile-link { gap: 7px; padding-inline: 7px; }
  body.dashboard-page .profile-link .user-avatar { display: grid; }
}
@media (max-width: 520px) {
  body.dashboard-page .dashboard-topbar { justify-content: space-between; padding-inline: 8px; gap: 4px; }
  body.dashboard-page .dashboard-topbar-start { margin-right: auto; }
  body.dashboard-page .dashboard-topbar-start { gap: 4px; min-width: 0; }
  body.dashboard-page .dashboard-logo-canvas { width: min(174px, calc(100vw - 224px)); height: 58px; }
  body.dashboard-page .mobile-nav-toggle { width: 32px; height: 34px; flex: 0 0 32px; }
  body.dashboard-page .dashboard-user-area { gap: 5px; }
  body.dashboard-page .topbar-user { display: flex; }
  body.dashboard-page .profile-link { gap: 4px; padding-inline: 3px; }
  body.dashboard-page .profile-link .topbar-user strong { max-width: 24vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dashboard-page .profile-link .user-avatar { width: 32px; height: 32px; flex-basis: 32px; }
  body.dashboard-page .company-avatar { width: 32px; height: 32px; flex-basis: 32px; }
  body.dashboard-page .company-avatar img { padding: 4px; }
  body.dashboard-page .account-page-actions { width: 100%; justify-content: flex-start; }
  body.dashboard-page .account-page-actions .create-user-button { width: 100%; }
  body.dashboard-page .configuration-entry { padding: 14px; }
  body.dashboard-page .configuration-entry small { line-height: 1.5; }
}

/* First dashboard module and compact, no-data pie summaries. */
body.dashboard-page .core-dashboard { display: grid; gap: 20px; }
body.dashboard-page .core-dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
body.dashboard-page .core-dashboard-intro h2 { margin: 0; color: var(--dashboard-ink); font: 700 21px Manrope, sans-serif; letter-spacing: -.025em; }
body.dashboard-page .core-dashboard-intro p { margin: 6px 0 0; color: #52647a; font-size: 14px; line-height: 1.55; }
body.dashboard-page .dashboard-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
body.dashboard-page .dashboard-overview-stats article { min-height: 86px; display: grid; align-content: center; gap: 4px; padding: 14px 17px; border: 1px solid var(--dashboard-line); border-radius: 8px; background: var(--dashboard-surface); }
body.dashboard-page .dashboard-overview-stats article > span { color: #52647a; font-size: 12px; font-weight: 600; }
body.dashboard-page .dashboard-overview-stats strong { color: var(--dashboard-ink); font: 700 23px Manrope, sans-serif; line-height: 1.2; }
body.dashboard-page .dashboard-overview-stats small { color: #52647a; font-size: 12px; line-height: 1.4; }
body.dashboard-page .dashboard-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
body.dashboard-page .dashboard-module-card { min-width: 0; padding: 15px 16px 13px; border: 1px solid var(--dashboard-line); border-radius: 8px; background: var(--dashboard-surface); box-shadow: 0 3px 12px rgba(20,43,77,.025); }
body.dashboard-page .dashboard-module-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
body.dashboard-page .dashboard-module-card h3 { overflow: hidden; margin: 0; color: var(--dashboard-ink); font: 700 14px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .dashboard-module-summary { display: flex; align-items: center; gap: 12px; min-height: 70px; margin: 9px 0 4px; }
body.dashboard-page .dashboard-empty-pie { position: relative; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; background: conic-gradient(#e4eaf2 0 100%); }
body.dashboard-page .dashboard-empty-pie::after { position: absolute; inset: 10px; display: grid; place-items: center; border-radius: 50%; color: #728197; background: var(--dashboard-surface); content: '—'; font-size: 13px; font-weight: 700; }
body.dashboard-page .dashboard-module-summary > div { display: grid; gap: 2px; }
body.dashboard-page .dashboard-module-summary strong { color: var(--dashboard-ink); font: 700 21px Manrope, sans-serif; }
body.dashboard-page .dashboard-module-summary > div span { color: #52647a; font-size: 12px; }
body.dashboard-page .dashboard-module-card > p { margin: 0 0 9px; color: #52647a; font-size: 12px; line-height: 1.45; }
body.dashboard-page .dashboard-data-state { display: inline-flex; align-items: center; gap: 6px; color: #52647a; font-size: 11px; line-height: 1.4; }
body.dashboard-page .dashboard-data-state i { width: 6px; height: 6px; border-radius: 50%; background: #b2bdcc; }
body.dashboard-page .dashboard-data-note { margin: 0; color: #52647a; font-size: 12px; line-height: 1.5; }
body.dashboard-page .dashboard-branch-goals { display: grid; gap: 13px; padding: 17px 19px; border: 1px solid var(--dashboard-line); border-radius: 11px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .dashboard-branch-goals-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
body.dashboard-page .dashboard-branch-goals-kicker { margin: 0 0 4px; color: #315db5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
body.dashboard-page .dashboard-branch-goals-heading h3, body.dashboard-page .dashboard-extra-modules > h3 { margin: 0; color: var(--dashboard-ink); font: 750 17px Manrope,sans-serif; }
body.dashboard-page .dashboard-branch-goals-heading p { margin: 5px 0 0; color: #52647a; font-size: 11px; }
body.dashboard-page .dashboard-branch-goals-heading > a, body.dashboard-page .dashboard-extra-module header a { flex: 0 0 auto; color: #315db5; font-size: 11px; font-weight: 700; text-decoration: none; }
body.dashboard-page .dashboard-branch-goal-list { display: grid; gap: 8px; }
body.dashboard-page .dashboard-branch-goal-row { display: grid; gap: 7px; padding: 10px 12px; border: 1px solid var(--dashboard-line); border-radius: 8px; background: var(--dashboard-soft); }
body.dashboard-page .dashboard-branch-goal-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.dashboard-page .dashboard-branch-goal-main > div { display: grid; gap: 3px; }
body.dashboard-page .dashboard-branch-goal-main h4 { margin: 0; color: var(--dashboard-ink); font: 700 13px Manrope,sans-serif; }
body.dashboard-page .dashboard-branch-goal-main span, body.dashboard-page .dashboard-branch-goal-row > p { color: #52647a; font-size: 10px; }
body.dashboard-page .dashboard-branch-goal-main > strong { color: var(--dashboard-ink); font: 750 14px Manrope,sans-serif; text-align: right; }
body.dashboard-page .dashboard-branch-goal-main > strong small { color: #52647a; font: 500 10px Manrope,sans-serif; }
body.dashboard-page .dashboard-branch-progress-label { display: flex; justify-content: space-between; gap: 10px; color: #52647a; font-size: 10px; font-weight: 700; }
body.dashboard-page .dashboard-branch-progress-label > span:first-child { color: #315db5; }
body.dashboard-page .dashboard-branch-progress-label strong, body.dashboard-page .dashboard-branch-projection strong { color: var(--dashboard-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
body.dashboard-page progress.dashboard-branch-goal-progress { display: block; width: 100%; height: 10px; appearance: none; overflow: hidden; border: 0; border-radius: 99px; background: #e6edf7; }
body.dashboard-page progress.dashboard-branch-goal-progress::-webkit-progress-bar { border-radius: 99px; background: #e6edf7; }
body.dashboard-page progress.dashboard-branch-goal-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg,#315db5,#5c94f2); transition: width .3s ease; }
body.dashboard-page progress.dashboard-branch-goal-progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg,#315db5,#5c94f2); }
body.dashboard-page .dashboard-branch-projection { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; color: #52647a; font-size: 10px; }
body.dashboard-page .dashboard-branch-projection > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
body.dashboard-page .dashboard-branch-projection small { color: #718199; font-size: 9px; }
body.dashboard-page .dashboard-branch-goal-row > p { margin: 0; }
body.dashboard-page .dashboard-branch-goals-empty { margin: 0; padding: 14px; color: #52647a; font-size: 11px; }
body.dashboard-page .dashboard-module-summaries { display: grid; gap: 15px; }
body.dashboard-page .dashboard-extra-modules { display: grid; gap: 10px; }
body.dashboard-page .dashboard-extra-module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
body.dashboard-page .dashboard-extra-module { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; padding: 13px 15px; border: 1px solid var(--dashboard-line); border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .dashboard-extra-module header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
body.dashboard-page .dashboard-extra-module h3 { margin: 0; color: var(--dashboard-ink); font: 700 13px Manrope,sans-serif; }
body.dashboard-page .dashboard-extra-module > strong { color: var(--dashboard-ink); font: 750 22px Manrope,sans-serif; }
body.dashboard-page .dashboard-extra-module > span, body.dashboard-page .dashboard-extra-module-stats p span { color: #52647a; font-size: 10px; line-height: 1.4; }
body.dashboard-page .dashboard-extra-module-stats { display: flex; flex: 1; flex-direction: column; justify-content: space-evenly; gap: 10px; }
body.dashboard-page .dashboard-extra-module-stats p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin: 0; padding-top: 7px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .dashboard-extra-module-stats p:first-child { padding-top: 0; border-top: 0; }
body.dashboard-page .dashboard-extra-module-stats strong { color: var(--dashboard-ink); font: 700 14px Manrope,sans-serif; }
body.dashboard-page .dashboard-extra-module-stats b { color: var(--dashboard-ink); font-weight: 700; }
body.dashboard-page .dashboard-payroll-next-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #4f83dd; border-radius: 8px; background: linear-gradient(110deg,#234a83,#1b355c); }
body.dashboard-page .dashboard-payroll-next-total span { color: #dce9ff; font-size: 11px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
body.dashboard-page .dashboard-payroll-next-total strong { color: #fff; font: 800 19px Manrope,sans-serif; white-space: nowrap; }
body.dashboard-page .dashboard-payroll-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
body.dashboard-page .dashboard-payroll-stats > div { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .dashboard-payroll-stats span { color: #52647a; font-size: 10px; line-height: 1.35; }
body.dashboard-page .dashboard-payroll-stats strong { color: var(--dashboard-ink); font: 750 14px Manrope,sans-serif; overflow-wrap: anywhere; }
body.dashboard-page .dashboard-payroll-branches { display: grid; gap: 7px; }
body.dashboard-page .dashboard-payroll-branches h4 { margin: 1px 0 0; color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .dashboard-payroll-branches ul { display: grid; gap: 5px; max-height: 210px; margin: 0; padding: 0; overflow: auto; list-style: none; }
body.dashboard-page .dashboard-payroll-branches li { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 8px; border: 1px solid var(--dashboard-line); border-radius: 6px; background: var(--dashboard-soft); }
body.dashboard-page .dashboard-payroll-branches li > span { display: grid; gap: 3px; min-width: 0; }
body.dashboard-page .dashboard-payroll-branches li strong { color: var(--dashboard-ink); font-size: 10px; }
body.dashboard-page .dashboard-payroll-branches li small, body.dashboard-page .dashboard-payroll-branches > small { color: #52647a; font-size: 9px; line-height: 1.4; }
body.dashboard-page .dashboard-payroll-branches li > b { flex: 0 0 auto; color: var(--dashboard-ink); font-size: 10px; }
body.dashboard-page .dashboard-payroll-branches > div > p { margin: 0; color: var(--dashboard-muted); font-size: 10px; }
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goals-heading p,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goals-empty,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goal-main span,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goal-main > strong small,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-progress-label,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-projection,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-projection small,
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goal-row > p,
:root[data-theme="dark"] body.dashboard-page .dashboard-extra-module > span,
:root[data-theme="dark"] body.dashboard-page .dashboard-extra-module-stats p span { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-payroll-stats span,
:root[data-theme="dark"] body.dashboard-page .dashboard-payroll-branches li small,
:root[data-theme="dark"] body.dashboard-page .dashboard-payroll-branches > small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goals,
:root[data-theme="dark"] body.dashboard-page .dashboard-extra-module { border-color: #263954; background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goal-row { border-color: #263954; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page progress.dashboard-branch-goal-progress,
:root[data-theme="dark"] body.dashboard-page progress.dashboard-branch-goal-progress::-webkit-progress-bar { background: #24364f; }
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-goals-heading > a,
:root[data-theme="dark"] body.dashboard-page .dashboard-extra-module header a { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .dashboard-branch-progress-label > span:first-child { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .core-dashboard-intro p,
:root[data-theme="dark"] body.dashboard-page .dashboard-module-card > p,
:root[data-theme="dark"] body.dashboard-page .dashboard-module-summary > div span,
:root[data-theme="dark"] body.dashboard-page .dashboard-overview-stats article > span,
:root[data-theme="dark"] body.dashboard-page .dashboard-overview-stats small,
:root[data-theme="dark"] body.dashboard-page .dashboard-data-state,
:root[data-theme="dark"] body.dashboard-page .dashboard-data-note { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-empty-pie { background: conic-gradient(#35465d 0 100%); }
:root[data-theme="dark"] body.dashboard-page .dashboard-overview-stats article,
:root[data-theme="dark"] body.dashboard-page .dashboard-module-card { border-color: #263954; background: #14243a; }
@media (max-width: 900px) {
  body.dashboard-page .dashboard-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.dashboard-page .dashboard-extra-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body.dashboard-page .core-dashboard-intro { align-items: flex-start; flex-direction: column; }
  body.dashboard-page .dashboard-overview-stats { gap: 8px; }
  body.dashboard-page .dashboard-overview-stats article { min-height: 80px; padding: 11px; }
  body.dashboard-page .dashboard-overview-stats article > span { font-size: 10px; }
  body.dashboard-page .dashboard-overview-stats strong { font-size: 20px; }
  body.dashboard-page .dashboard-module-grid { grid-template-columns: 1fr; }
  body.dashboard-page .dashboard-extra-module-grid { grid-template-columns: 1fr; }
  body.dashboard-page .dashboard-branch-goals-heading { align-items: flex-start; flex-direction: column; }
  body.dashboard-page .dashboard-branch-goal-main { align-items: flex-start; flex-direction: column; }
  body.dashboard-page .dashboard-branch-goal-main > strong { text-align: left; }
}

/* Client administration and employee assignment. */
body.dashboard-page .sidebar-section-label { margin-top: 0; }
body.dashboard-page .users-table td:nth-child(2) { color: #5e7189; }
body.dashboard-page .dashboard-module-card[data-master-only] .dashboard-empty-pie { background: conic-gradient(#5278c4 0deg var(--active-slice, 0deg), #e4eaf2 var(--active-slice, 0deg) 360deg); }
body.dashboard-page .clients-icon { color: #4d6fb1; background: #edf2fb; }
body.dashboard-page .client-list-caption { color: #78889c; font-size: 11px; font-weight: 600; }
body.dashboard-page .company-plan-badge { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #dbe5f4; border-radius: 999px; color: #395781; background: #eef3fb; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.dashboard-page .company-plan-badge.is-pro { border-color: #c8d9ff; color: #274e9b; background: #e7efff; }
body.dashboard-page .company-plan-badge#dashboard-company-category { align-self: flex-start; padding: 7px 11px; font-size: 12px; }
body.dashboard-page .company-module-status { color: #3f6c53; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.dashboard-page .company-module-status.is-planned { color: #78889c; }
body.dashboard-page .company-module-link { display: inline-flex; align-items: center; gap: 8px; color: #3058a4; font-size: 12px; font-weight: 700; text-decoration: none; }
body.dashboard-page .company-module-link:hover { color: #1e3e7c; text-decoration: underline; }
body.dashboard-page .company-assignment-help { display: block; margin: 7px 0 0; color: #8493a6; font-size: 11px; line-height: 1.5; }
body.dashboard-page .company-assignment-help a { color: #315db5; }
body.dashboard-page .company-dialog .status-toggle:not([hidden]) { display: flex; }
:root[data-theme="dark"] body.dashboard-page .client-list-caption,
:root[data-theme="dark"] body.dashboard-page .company-assignment-help { color: #a9b8ca; }
:root[data-theme="dark"] body.dashboard-page .company-plan-badge { border-color: #344a6b; color: #d2e0fb; background: #1c2e49; }
:root[data-theme="dark"] body.dashboard-page .company-plan-badge.is-pro { border-color: #4868a2; color: #dce7ff; background: #253c65; }
:root[data-theme="dark"] body.dashboard-page .company-module-status { color: #9ed7b2; }
:root[data-theme="dark"] body.dashboard-page .company-module-status.is-planned { color: #a9b8ca; }
:root[data-theme="dark"] body.dashboard-page .company-module-link { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .users-table td:nth-child(2) { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-module-card[data-master-only] .dashboard-empty-pie { background: conic-gradient(#6f98ff 0deg var(--active-slice, 0deg), #35465d var(--active-slice, 0deg) 360deg); }

@media (max-width: 800px) {
  body.dashboard-page .client-summary { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  body.dashboard-page .client-summary { grid-template-columns: 1fr; }
  body.dashboard-page .clients-panel .users-panel-header { width: 100%; }
  body.dashboard-page .clients-panel .users-panel-header .create-user-button { width: 100%; }
  body.dashboard-page .client-list-caption { display: none; }
  body.dashboard-page .clients-table { min-width: 1040px; }
  body.dashboard-page .purge-panel { align-items: stretch; flex-direction: column; }
  body.dashboard-page .purge-button { width: 100%; }
  body.dashboard-page .purge-dialog .dialog-actions { flex-direction: column-reverse; }
  body.dashboard-page .purge-dialog .dialog-actions button { width: 100%; min-height: 42px; }
}

/* Keep functional text legible across the admin workspace, including compact controls. */
body.dashboard-page .sidebar-section-label { color: #c1cede; font-size: 11px; }
body.dashboard-page .company-assignment-help { color: #52647a; font-size: 12px; }
body.dashboard-page .dashboard-data-state { font-size: 12px; }
body.dashboard-page .users-panel-header .panel-description { color: #52647a; }
body.dashboard-page .user-form > label span { color: #52647a; font-size: 11px; }
:root[data-theme="dark"] body.dashboard-page .company-assignment-help,
:root[data-theme="dark"] body.dashboard-page .users-panel-header .panel-description,
:root[data-theme="dark"] body.dashboard-page .user-form > label span { color: #c1cede; }
@media (max-width: 600px) {
  body.dashboard-page .dashboard-overview-stats { grid-template-columns: 1fr; }
  body.dashboard-page .dashboard-overview-stats article > span { font-size: 12px; }
}

/* Legibility and company-scope visibility across the authenticated workspace. */
body.dashboard-page .summary-card p { color: #52647a; font-size: 11px; }
body.dashboard-page .summary-card small { color: #52647a; font-size: 12px; }
body.dashboard-page .users-tab { color: #53677f; font-size: 12px; }
body.dashboard-page .users-tab span { color: #52647a; }
body.dashboard-page .users-toolbar { min-height: 69px; padding: 8px 24px; }
body.dashboard-page .permissions-note p,
body.dashboard-page .dialog-intro { color: #53677f; }
body.dashboard-page .dialog-cancel { color: #52647a; }
body.dashboard-page .module-stat small,
body.dashboard-page .module-flow-step p,
body.dashboard-page .module-empty-state p,
body.dashboard-page .module-data-note { color: #52647a; font-size: 12px; }
body.dashboard-page .sidebar-expansion-hint { min-width: 222px; min-height: 30px; display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 0 13px; color: #c1cede; }
body.dashboard-page .sidebar-expansion-hint > span { width: 8px; height: 8px; flex: 0 0 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
body.dashboard-page .sidebar-expansion-hint small { color: #c1cede; font-size: 12px; }
body.dashboard-page .sidebar-link[title] { cursor: pointer; }
body.dashboard-page .dashboard-sidebar:not(:hover):not(.is-open):not(:focus-within):not(.is-mobile-open) .sidebar-expansion-hint { min-width: 0; width: 52px; justify-content: center; padding: 0; }
body.dashboard-page .dashboard-sidebar:not(:hover):not(.is-open):not(:focus-within):not(.is-mobile-open) .sidebar-expansion-hint small { display: none; }
:root[data-theme="dark"] body.dashboard-page .summary-card p,
:root[data-theme="dark"] body.dashboard-page .summary-card small,
:root[data-theme="dark"] body.dashboard-page .users-tab,
:root[data-theme="dark"] body.dashboard-page .users-tab span,
:root[data-theme="dark"] body.dashboard-page .permissions-note p,
:root[data-theme="dark"] body.dashboard-page .dialog-intro,
:root[data-theme="dark"] body.dashboard-page .dialog-cancel,
:root[data-theme="dark"] body.dashboard-page .module-stat small,
:root[data-theme="dark"] body.dashboard-page .module-flow-step p,
:root[data-theme="dark"] body.dashboard-page .module-empty-state p,
:root[data-theme="dark"] body.dashboard-page .module-data-note { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .company-admin-fields { border-color: #34445a; background: #142238; }
:root[data-theme="dark"] body.dashboard-page .company-admin-fields h3,
:root[data-theme="dark"] body.dashboard-page .company-admin-fields > label { color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .company-admin-fields > p,
:root[data-theme="dark"] body.dashboard-page .company-admin-fields > label span,
:root[data-theme="dark"] body.dashboard-page .company-admin-fields .new-password-field > small { color: #c1cede; }

/* Company module entitlements and tenant-owned client records. */
body.dashboard-page .clients-table { min-width: 1200px; }
body.dashboard-page .company-module-pill,
body.dashboard-page .company-no-modules { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid #d9e7df; border-radius: 999px; color: #34765d; background: #f0f8f4; font-size: 11px; font-weight: 700; }
body.dashboard-page .company-no-modules { border-color: #e3e8ef; color: #718096; background: #f7f9fb; font-weight: 500; }
body.dashboard-page .company-modules-fields { margin: 18px 0 0; }
body:not(.dashboard-page) .register-dialog { width: min(620px, calc(100% - 28px)); }
body:not(.dashboard-page) .register-dialog .company-admin-fields { margin-top: 18px; padding: 16px; border: 1px solid #dce5f1; border-radius: 8px; background: #f7f9fc; }
body:not(.dashboard-page) .register-dialog .company-admin-fields h3 { margin: 0 0 5px; color: #203652; font: 700 14px Manrope,sans-serif; }
body:not(.dashboard-page) .register-dialog .company-admin-fields > p { margin: 0 0 14px; color: #52647a; font-size: 11px; line-height: 1.5; }
body:not(.dashboard-page) .register-dialog .company-module-category + .company-module-category { margin-top: 18px; }
body:not(.dashboard-page) .register-dialog .company-module-category h4 { margin: 0 0 9px; color: #263b54; font: 700 12px Manrope,sans-serif; }
body:not(.dashboard-page) .register-dialog .module-permission-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid #dfe6ef; border-radius: 7px; background: #fff; cursor: pointer; }
body:not(.dashboard-page) .register-dialog .module-permission-option + .module-permission-option { margin-top: 6px; }
body:not(.dashboard-page) .register-dialog .module-permission-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #2c64d9; }
body:not(.dashboard-page) .register-dialog .module-permission-option > span { display: grid; gap: 3px; }
body:not(.dashboard-page) .register-dialog .module-permission-option strong { color: #263b54; font-size: 13px; }
body:not(.dashboard-page) .register-dialog .module-permission-option small { color: #687a91; font-size: 11px; font-weight: 400; line-height: 1.45; }
body:not(.dashboard-page) .register-dialog .dialog-intro { font-size: 13px; }
body:not(.dashboard-page) .register-dialog .user-form > label:not(.status-toggle) { font-size: 12px; }
body:not(.dashboard-page) .register-dialog .user-form > input, body:not(.dashboard-page) .register-dialog .user-form select { height: 42px; font-size: 13px; }
body:not(.dashboard-page) .register-dialog .user-form > label span { font-size: 11px; }
body:not(.dashboard-page) .register-dialog .company-admin-fields > label { display: block; margin: 12px 0 6px; color: #3e5067; font-size: 12px; font-weight: 700; }
body:not(.dashboard-page) .register-dialog .company-admin-fields > input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #dfe5ed; border-radius: 6px; color: #253950; background: #fff; font-size: 13px; }
body:not(.dashboard-page) .register-dialog .new-password-field > label { display: block; margin: 0 0 6px; color: #3e5067; font-size: 12px; font-weight: 700; }
body:not(.dashboard-page) .register-dialog .new-password-field > small { color: #52647a; font-size: 11px; line-height: 1.5; }
body:not(.dashboard-page) .register-dialog .password-input-row input { height: 42px; font-size: 13px; }
body:not(.dashboard-page) .register-dialog .password-input-row button { flex: 0 0 auto; font-size: 11px; }
body:not(.dashboard-page) .register-dialog .dialog-cancel, body:not(.dashboard-page) .register-dialog .dialog-submit { min-height: 42px; font-size: 12px; }
body:not(.dashboard-page) .register-dialog .dialog-error { font-size: 12px; }
body.dashboard-page .company-modules-fields .module-permission-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 11px 12px; border: 1px solid #dfe6ef; border-radius: 7px; background: #fff; cursor: pointer; }
body.dashboard-page .module-permission-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #2c64d9; }
body.dashboard-page .module-permission-option > span { display: grid; gap: 3px; }
body.dashboard-page .module-permission-option strong { color: #263b54; font-size: 13px; }
body.dashboard-page .module-permission-option small { color: #687a91; font-size: 11px; font-weight: 400; line-height: 1.45; }
body.dashboard-page .client-dialog { width: min(620px, calc(100% - 28px)); }
body.dashboard-page .consignment-sale-dialog { width: min(520px, calc(100% - 28px)); }
body.dashboard-page .consignment-sale-dialog .user-form > input[readonly] { color: var(--dashboard-ink); background: var(--dashboard-soft); }
body.dashboard-page .consignment-sale-dialog .user-form select { margin-top: 0; }
body.dashboard-page .consignment-sale-dialog .dialog-error { color: #bd4747; }
body.dashboard-page .consignment-sale-dialog .dialog-actions { margin-top: 18px; }
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog { border-color: var(--dashboard-line); color: var(--dashboard-ink); background: var(--dashboard-surface); }
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog h2 { color: var(--dashboard-ink); }
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog .dialog-intro,
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog .user-form > label { color: var(--dashboard-muted); }
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog .user-form > input,
:root[data-theme="dark"] body.dashboard-page .consignment-sale-dialog .user-form select { border-color: var(--dashboard-line); color: var(--dashboard-ink); background: var(--dashboard-soft); }
body.dashboard-page .client-import-dialog { width: min(920px, calc(100% - 28px)); }
body.dashboard-page .client-import-template-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
body.dashboard-page .client-import-template-link { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0 13px; border: 1px solid #d6dfeb; border-radius: 7px; color: #315db5; background: #f7f9fd; font: 700 11px Manrope,sans-serif; text-decoration: none; cursor: pointer; }
body.dashboard-page .client-import-form > input[type="file"] { height: auto; min-height: 45px; padding: 7px; color: #40546c; font-size: 12px; }
body.dashboard-page .client-import-form > input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 0 10px; border: 1px solid #dce4ef; border-radius: 5px; color: #385c9f; background: #f6f8fc; cursor: pointer; }
body.dashboard-page .client-import-preview { display: grid; gap: 11px; margin-top: 4px; }
body.dashboard-page .client-import-state { margin: 0; color: #75849a; font-size: 11px; line-height: 1.6; }
body.dashboard-page .client-import-result { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid #e5b7ad; border-radius: 7px; color: #7c382d; background: #fff6f3; font-size: 11px; }
body.dashboard-page .client-import-ready { border-color: #a7d5b5; color: #226b3a; background: #f2fbf4; }
body.dashboard-page .client-import-result span { line-height: 1.5; }
body.dashboard-page .client-import-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
body.dashboard-page .client-import-summary > div { display: grid; gap: 5px; padding: 10px; border: 1px solid #e5eaf1; border-radius: 7px; }
body.dashboard-page .client-import-summary span { color: #718198; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
body.dashboard-page .client-import-summary strong { color: #253950; font: 700 18px Manrope,sans-serif; }
body.dashboard-page .client-import-errors, body.dashboard-page .client-import-table-wrap { min-width: 0; display: grid; gap: 8px; }
body.dashboard-page .client-import-errors h3, body.dashboard-page .client-import-table-wrap h3 { margin: 0; color: #243956; font: 700 13px Manrope,sans-serif; }
body.dashboard-page .client-import-errors ul { max-height: 120px; overflow: auto; margin: 0; padding: 8px 8px 8px 26px; border: 1px solid #f0d5ce; border-radius: 6px; color: #8c4136; font-size: 10px; }
body.dashboard-page .client-import-errors li { margin: 3px 0; }
body.dashboard-page .client-import-table-wrap .table-scroll { max-height: 230px; overflow: auto; }
body.dashboard-page .client-import-row-error { background: #fff1ee; }
body.dashboard-page .client-form > input[type="file"] { height: auto; min-height: 45px; padding: 7px; color: #40546c; font-size: 12px; }
body.dashboard-page .client-form > input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 0 10px; border: 1px solid #dce4ef; border-radius: 5px; color: #385c9f; background: #f6f8fc; cursor: pointer; }
body.dashboard-page .client-form > textarea { width: 100%; min-height: 82px; resize: vertical; padding: 10px; border: 1px solid #dfe5ed; border-radius: 6px; outline: 0; color: #253950; background: #fff; font: inherit; font-size: 14px; line-height: 1.5; }
body.dashboard-page .client-form > textarea:focus { border-color: #7798eb; box-shadow: 0 0 0 3px rgba(40,89,217,.08); }
body.dashboard-page .client-file-help { margin: 8px 0 0; color: #687a91; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
body.dashboard-page .tenant-client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 20px; }
body.dashboard-page .tenant-client-card { min-width: 0; overflow: hidden; padding: 12px; border: 1px solid var(--dashboard-line); border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); box-shadow: 0 4px 14px rgba(20,43,77,.025); }
body.dashboard-page .tenant-client-card-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--dashboard-line); }
body.dashboard-page .tenant-client-avatar { position: relative; width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; overflow: hidden; border: 1px solid #dce6f3; border-radius: 50%; color: #3e609e; background: #eef3fb; font-size: 12px; font-weight: 700; }
body.dashboard-page .tenant-client-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.dashboard-page .tenant-client-title { min-width: 0; display: grid; gap: 5px; }
body.dashboard-page .tenant-client-title h3 { overflow: hidden; margin: 0; color: var(--dashboard-ink); font: 700 14px Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .tenant-client-name-button { max-width: 100%; overflow: hidden; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
body.dashboard-page .tenant-client-name-button:hover { color: #315db5; text-decoration: underline; }
body.dashboard-page .tenant-client-title > span { color: #60738b; font-size: 11px; }
body.dashboard-page .tenant-client-details { display: grid; gap: 11px; margin: 15px 0; }
body.dashboard-page .tenant-client-details > div { min-width: 0; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 7px; }
body.dashboard-page .tenant-client-details dt { color: #687a91; font-size: 12px; font-weight: 600; }
body.dashboard-page .tenant-client-details dd { min-width: 0; margin: 0; color: var(--dashboard-ink); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
body.dashboard-page .tenant-client-files { display: grid; gap: 7px; padding-top: 12px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .tenant-client-files-heading { display: flex; justify-content: space-between; align-items: center; color: var(--dashboard-ink); font-size: 12px; }
body.dashboard-page .tenant-client-files-heading span { color: #687a91; font-size: 11px; }
body.dashboard-page .tenant-client-document { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: #315db5; background: var(--dashboard-soft); font-size: 11px; text-decoration: none; }
body.dashboard-page .tenant-client-document-row { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font-size: 11px; }
body.dashboard-page .tenant-client-document-icon { flex: 0 0 auto; color: #6684bc; }
body.dashboard-page .tenant-client-document-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .tenant-client-document-row > small { flex: 0 0 auto; margin-left: auto; color: #687a91; font-size: 10px; }
body.dashboard-page .tenant-client-file-action { flex: 0 0 auto; color: #315db5; font-size: 10px; font-weight: 700; text-decoration: none; }
body.dashboard-page .tenant-client-file-action:hover { text-decoration: underline; }
body.dashboard-page .tenant-client-document > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .tenant-client-document > span:first-child { flex: 0 0 auto; }
body.dashboard-page .tenant-client-document small { flex: 0 0 auto; margin-left: auto; color: #687a91; font-size: 10px; }
body.dashboard-page .tenant-client-document:hover { border-color: #9db7e8; color: #234b99; }
body.dashboard-page .tenant-client-no-files { color: #687a91; font-size: 11px; }
body.dashboard-page .tenant-client-card-footer { margin-top: 13px; color: #687a91; font-size: 10px; }
body.dashboard-page .tenant-client-open { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 10px 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; color: #244d93; background: var(--dashboard-soft); font: 700 11px Manrope, sans-serif; cursor: pointer; }
body.dashboard-page .tenant-client-card-actions { display: flex; gap: 8px; }
body.dashboard-page .tenant-client-card-actions .tenant-client-open { flex: 1; }
body.dashboard-page .tenant-client-header-actions { display: flex; gap: 8px; align-items: center; }
body.dashboard-page .tenant-client-open:hover { border-color: #9db7e8; background: #edf3ff; }
body.dashboard-page .client-detail-dialog { width: min(860px, calc(100% - 28px)); max-height: min(88vh, 900px); overflow-y: auto; }
body.dashboard-page .tenant-client-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.dashboard-page .tenant-client-balance-grid article { min-width: 0; display: grid; gap: 5px; padding: 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .tenant-client-balance-grid article > span, body.dashboard-page .tenant-client-sale-amounts > span { color: #687a91; font-size: 10px; }
body.dashboard-page .tenant-client-balance-grid article > strong { color: var(--dashboard-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
body.dashboard-page .tenant-client-sales-list { display: grid; gap: 7px; }
body.dashboard-page .tenant-client-sale { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .tenant-client-sale > div:first-child { display: grid; gap: 4px; }
body.dashboard-page .tenant-client-sale > div:first-child > strong { color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .tenant-client-sale-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
body.dashboard-page .tenant-client-sale-unit { min-width: 0; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--dashboard-line); border-radius: 6px; background: var(--dashboard-surface); }
body.dashboard-page .tenant-client-sale-unit > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
body.dashboard-page .tenant-client-sale-unit > div > span { flex: 0 0 auto; color: #687a91; font-size: 9px; }
body.dashboard-page .tenant-client-sale-unit > small { color: #687a91; font-size: 10px; overflow-wrap: anywhere; }
body.dashboard-page .tenant-client-sale-unit > strong:last-child { color: var(--dashboard-ink); font-size: 10px; }
body.dashboard-page .tenant-client-sale-amounts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
body.dashboard-page .tenant-client-sale-amounts > span strong { color: var(--dashboard-ink); font-variant-numeric: tabular-nums; }
body.dashboard-page .tenant-client-detail-kicker { margin: 0 0 8px; color: #4569ad; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.dashboard-page .tenant-consignment-list { display: grid; gap: 8px; }
body.dashboard-page .tenant-consignment-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; padding: 10px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); color: var(--dashboard-ink); }
body.dashboard-page .tenant-consignment-item > div:first-child { min-width: 0; display: grid; gap: 4px; }
body.dashboard-page .tenant-consignment-item .tenant-consignment-main > small { overflow-wrap: anywhere; line-height: 1.4; }
body.dashboard-page .tenant-consignment-item small, body.dashboard-page .tenant-consignment-item > div:nth-child(2) span, body.dashboard-page .tenant-consignment-state { color: #687a91; font-size: 10px; }
body.dashboard-page .tenant-consignment-item > div:nth-child(2) { display: grid; text-align: right; gap: 4px; }
body.dashboard-page .tenant-consignment-financial { align-content: start; }
body.dashboard-page .tenant-consignment-item .tenant-consignment-state { grid-column: 1 / -1; }
body.dashboard-page .tenant-consignment-chassis { color: var(--dashboard-ink); font: 700 12px ui-monospace, Consolas, monospace; }
body.dashboard-page .tenant-consignment-item .tenant-client-open { grid-column: 1 / -1; margin-top: 0; }
body.dashboard-page .client-detail-dialog h2 { margin: 0; color: var(--dashboard-ink); font: 750 22px Manrope, sans-serif; }
body.dashboard-page .tenant-client-details-full { padding: 15px; border: 1px solid var(--dashboard-line); border-radius: 8px; background: var(--dashboard-soft); }
body.dashboard-page .tenant-client-details-full > div { grid-template-columns: 140px minmax(0, 1fr); }
body.dashboard-page .tenant-client-download { flex: 0 0 auto; color: #244d93; font-size: 10px; font-weight: 700; }
body.dashboard-page .dashboard-debt-panel { min-width: 0; overflow: hidden; border: 1px solid var(--dashboard-line); border-radius: 10px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .dashboard-debt-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px; border-bottom: 1px solid var(--dashboard-line); }
body.dashboard-page .dashboard-debt-heading h3 { margin: 0; color: var(--dashboard-ink); font: 700 17px Manrope, sans-serif; }
body.dashboard-page .dashboard-debt-heading p { margin: 5px 0 0; color: #52647a; font-size: 12px; }
body.dashboard-page .dashboard-debt-heading > a { flex: 0 0 auto; color: #315db5; font-size: 11px; font-weight: 700; text-decoration: none; }
body.dashboard-page .dashboard-debt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 15px 19px; }
body.dashboard-page .dashboard-debt-stats article,
body.dashboard-page .dashboard-stat-link { min-width: 0; display: grid; gap: 5px; padding: 9px 11px; border: 1px solid var(--dashboard-line); border-radius: 8px; background: var(--dashboard-soft); }
body.dashboard-page .dashboard-stat-link { color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
body.dashboard-page .dashboard-stat-link:hover { border-color: #5b82c7; background: color-mix(in srgb, var(--dashboard-soft) 88%, #4778d1); }
body.dashboard-page .dashboard-stat-link:focus-visible,
body.dashboard-page .dashboard-monthly-column:focus-visible { outline: 2px solid #7da4ff; outline-offset: 2px; }
body.dashboard-page .dashboard-debt-stats span { color: #52647a; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
body.dashboard-page .dashboard-debt-stats strong { overflow-wrap: anywhere; color: var(--dashboard-ink); font: 700 clamp(14px, 1.5vw, 18px) Manrope, sans-serif; font-variant-numeric: tabular-nums; }
body.dashboard-page .dashboard-debt-stats article:last-child strong { color: #b54743; }
body.dashboard-page .dashboard-debt-table-wrap { width: 100%; overflow-x: auto; }
body.dashboard-page .dashboard-debt-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
body.dashboard-page .dashboard-debt-table th { padding: 11px 15px; border-top: 1px solid var(--dashboard-line); border-bottom: 1px solid var(--dashboard-line); color: #52647a; background: var(--dashboard-soft); font-size: 9px; letter-spacing: .05em; white-space: nowrap; }
body.dashboard-page .dashboard-debt-table td { padding: 12px 15px; border-bottom: 1px solid var(--dashboard-line); color: var(--dashboard-ink); white-space: nowrap; }
body.dashboard-page .dashboard-debt-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
body.dashboard-page .dashboard-debt-table .dashboard-debt-amount { color: #b54743; }
body.dashboard-page .dashboard-debt-table .dashboard-debt-empty { padding: 18px; color: #52647a; text-align: center; }
body.dashboard-page .dashboard-summary-top-grid,
body.dashboard-page .dashboard-summary-bottom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.dashboard-page .dashboard-summary-card .dashboard-debt-stats article:last-child strong { color: var(--dashboard-ink); }
body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats > :nth-child(-n+5) { grid-row: 1; }
body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats > :nth-child(n+6) { grid-row: 2; }
body.dashboard-page .dashboard-paperwork-stats .dashboard-stat-link { min-height: 86px; align-content: start; }
body.dashboard-page .dashboard-paperwork-stats .dashboard-stat-link > span { min-height: 2.5em; line-height: 1.25; }
body.dashboard-page .dashboard-paperwork-stats .dashboard-stat-link > small { color: #687a91; font-size: 9px; }
body.dashboard-page .dashboard-monthly-payments-actions { display: flex; align-items: center; gap: 15px; }
body.dashboard-page .dashboard-monthly-payments-actions > span { padding: 5px 9px; border: 1px solid var(--dashboard-line); border-radius: 999px; color: var(--dashboard-ink); background: var(--dashboard-soft); font-size: 10px; font-weight: 700; }
body.dashboard-page .dashboard-monthly-payments-actions > a { flex: 0 0 auto; color: #315db5; font-size: 11px; font-weight: 700; text-decoration: none; }
body.dashboard-page .dashboard-monthly-chart-scroll { width: 100%; overflow-x: auto; padding: 10px 16px 12px; }
body.dashboard-page .dashboard-monthly-chart { display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr)); align-items: stretch; gap: 7px; min-width: 680px; }
body.dashboard-page .dashboard-monthly-column { appearance: none; border: 0; padding: 0; display: grid; grid-template-rows: 18px 160px 18px; align-items: end; gap: 6px; min-width: 0; color: inherit; background: transparent; text-align: center; cursor: pointer; }
body.dashboard-page .dashboard-monthly-value { overflow: hidden; color: #52647a; font-size: 8px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .dashboard-monthly-bar-track { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 160px; overflow: hidden; border-bottom: 1px solid var(--dashboard-line); background: repeating-linear-gradient(to top, transparent 0, transparent 39px, rgb(100 120 150 / .12) 40px); }
body.dashboard-page .dashboard-monthly-bar { display: block; flex: 0 0 auto; width: min(34px, 62%); height: 100%; color: #4385e8; overflow: visible; transition: filter .15s ease; }
body.dashboard-page .dashboard-monthly-column:hover .dashboard-monthly-bar { filter: brightness(1.18); }
body.dashboard-page .dashboard-chart-hint { margin: -4px 16px 10px; color: #52647a; font-size: 10px; text-align: right; }
body.dashboard-page .dashboard-monthly-column small { color: #52647a; font-size: 10px; font-weight: 700; text-transform: capitalize; }
body.dashboard-page .dashboard-detail-dialog { width: min(820px, calc(100vw - 32px)); max-height: min(78vh, 700px); padding: 0; overflow: hidden; border: 1px solid var(--dashboard-line); border-radius: 10px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .dashboard-detail-dialog::backdrop { background: rgb(3 10 22 / .62); }
body.dashboard-page .dashboard-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--dashboard-line); }
body.dashboard-page .dashboard-detail-heading h2 { margin: 0; font: 700 17px Manrope, sans-serif; }
body.dashboard-page .dashboard-detail-heading p { margin: 4px 0 0; color: #71829a; font-size: 11px; }
body.dashboard-page .dashboard-detail-dialog .dashboard-debt-table-wrap { max-height: 58vh; overflow: auto; }
body.dashboard-page .dashboard-collection-progress { height: 9px; margin: 0 19px 18px; overflow: hidden; border-radius: 99px; background: #e8edf5; }
body.dashboard-page .dashboard-collection-progress > span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #3274db, #43a885); transition: width .25s ease; }
body.dashboard-page .tenant-client-empty { grid-column: 1 / -1; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; color: var(--dashboard-ink); text-align: center; }
body.dashboard-page .tenant-client-empty > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--dashboard-line); border-radius: 50%; color: #6684bc; background: var(--dashboard-soft); font-size: 23px; }
body.dashboard-page .tenant-client-empty strong { font-size: 15px; }
body.dashboard-page .tenant-client-empty p { max-width: 440px; margin: 0; color: #687a91; font-size: 12px; line-height: 1.55; }
:root[data-theme="dark"] body.dashboard-page .company-module-pill { border-color: #335342; color: #a9dfbe; background: #1e382e; }
:root[data-theme="dark"] body.dashboard-page .company-no-modules { border-color: #34445a; color: #a9b8ca; background: #1a2a40; }
:root[data-theme="dark"] body.dashboard-page .module-permission-option { border-color: #34445a; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .module-permission-option strong { color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .module-permission-option small,
:root[data-theme="dark"] body.dashboard-page .tenant-client-title > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-details dt,
:root[data-theme="dark"] body.dashboard-page .tenant-client-files-heading span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-document small,
:root[data-theme="dark"] body.dashboard-page .tenant-client-no-files,
:root[data-theme="dark"] body.dashboard-page .tenant-client-card-footer,
:root[data-theme="dark"] body.dashboard-page .tenant-client-empty p,
:root[data-theme="dark"] body.dashboard-page .client-file-help { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .client-form > input[type="file"],
:root[data-theme="dark"] body.dashboard-page .client-form > textarea { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .client-import-form > input[type="file"] { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .client-import-template-link { border-color: #34445a; color: #c1d4f7; background: #172941; }
:root[data-theme="dark"] body.dashboard-page .client-import-summary > div { border-color: #34445a; background: #172941; }
:root[data-theme="dark"] body.dashboard-page .client-import-summary strong,
:root[data-theme="dark"] body.dashboard-page .client-import-errors h3,
:root[data-theme="dark"] body.dashboard-page .client-import-table-wrap h3 { color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .client-import-state,
:root[data-theme="dark"] body.dashboard-page .client-import-summary span { color: #b7c4d6; }
:root[data-theme="dark"] body.dashboard-page .client-import-ready { border-color: #347a4c; color: #9be2b0; background: #10291a; }
:root[data-theme="dark"] body.dashboard-page .client-import-result:not(.client-import-ready) { border-color: #79453d; color: #f0b5ab; background: #2b1a1b; }
:root[data-theme="dark"] body.dashboard-page .client-import-errors ul { border-color: #79453d; color: #f0b5ab; background: #2b1a1b; }
:root[data-theme="dark"] body.dashboard-page .client-import-row-error { background: #382126; }
:root[data-theme="dark"] body.dashboard-page .client-form > input[type="file"]::file-selector-button { border-color: #34445a; color: #c1d4f7; background: #172941; }
:root[data-theme="dark"] body.dashboard-page .client-import-form > input[type="file"]::file-selector-button { border-color: #34445a; color: #c1d4f7; background: #172941; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-avatar { border-color: #344a6b; color: #c4d6ff; background: #1c2e49; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-card { border-color: #34445a; color: #fff; background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-card :is(h3, dd, strong) { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-document { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-document-row { border-color: #34445a; color: #f1f5fb; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-document-row > small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-file-action { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-name-button:hover { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-balance-grid article > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-amounts > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale > div:first-child > small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-balance-grid article > strong,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-amounts > span strong,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale > div:first-child > strong { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit { border-color: #34445a; background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > div > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > small { color: #c1cede; }

body.dashboard-page .sidebar-menu-preferences { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 12px; padding: 0 11px; border: 0; border-radius: 7px; color: #aebbd0; background: transparent; font: 600 11px "DM Sans", sans-serif; text-align: left; transition: color .15s, background .15s; }
body.dashboard-page .sidebar-menu-preferences[hidden] { display: none; }
body.dashboard-page .sidebar-menu-preferences:hover { color: #fff; background: #253955; }
body.dashboard-page .sidebar-menu-preferences:focus-visible { outline: 2px solid #8eafff; outline-offset: 2px; }
body.dashboard-page .sidebar-menu-preferences-icon { width: 18px; flex: 0 0 18px; color: #8ca9da; font-size: 18px; line-height: 1; text-align: center; }
body.dashboard-page .sidebar-menu-preferences-label { white-space: nowrap; }
body.dashboard-page .menu-visibility-dialog { width: min(540px, calc(100% - 28px)); }
body.dashboard-page .menu-visibility-options { display: grid; max-height: min(52vh, 420px); gap: 16px; overflow-y: auto; padding: 2px 3px 2px 0; }
body.dashboard-page .menu-visibility-category h3 { margin: 0 0 7px; color: #60738b; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.dashboard-page .menu-visibility-option { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid #e1e7f0; border-radius: 7px; color: #263b54; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
body.dashboard-page .menu-visibility-option + .menu-visibility-option { margin-top: 5px; }
body.dashboard-page .menu-visibility-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: #2d64d8; }
body.dashboard-page .menu-visibility-status { min-height: 16px; margin: 8px 0 0; color: #60738b; font-size: 11px; }
:root[data-theme="dark"] body.dashboard-page .sidebar-menu-preferences { color: #aebbd0; }
:root[data-theme="dark"] body.dashboard-page .sidebar-menu-preferences:hover { color: #fff; background: #253955; }
:root[data-theme="dark"] body.dashboard-page .sidebar-menu-preferences-icon { color: #a8c3ff; }
:root[data-theme="dark"] body.dashboard-page .menu-visibility-category h3,
:root[data-theme="dark"] body.dashboard-page .menu-visibility-status { color: #b8c6d9; }
:root[data-theme="dark"] body.dashboard-page .menu-visibility-option { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-menu-preferences { justify-content: center; padding-inline: 0; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-menu-preferences-label { display: none; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > strong:last-child { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-document:hover { border-color: #5a78b2; color: #d0dfff; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-open { border-color: #34445a; color: #d4e1fa; background: #1a2a40; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-open:hover { border-color: #5a78b2; background: #203651; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-detail-kicker,
:root[data-theme="dark"] body.dashboard-page .tenant-client-download,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-heading > a { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-heading p,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-stats span,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-table th,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-table .dashboard-debt-empty { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-panel,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-stats article { border-color: #263954; background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .dashboard-summary-card .dashboard-debt-stats article:last-child strong { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-payments-actions > span { border-color: #34445a; color: #f1f5fb; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-payments-actions > a { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-value,
:root[data-theme="dark"] body.dashboard-page .dashboard-chart-hint,
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-column small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-bar-track { border-color: #52647d; background-image: repeating-linear-gradient(to top, transparent 0, transparent 39px, rgb(193 206 222 / .09) 40px); }
:root[data-theme="dark"] body.dashboard-page .dashboard-chart-gridline { stroke: #52647d; stroke-opacity: .45; }
:root[data-theme="dark"] body.dashboard-page .dashboard-chart-baseline { stroke: #52647d; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-bar { color: #83adff; }
:root[data-theme="dark"] body.dashboard-page .dashboard-monthly-column:hover .dashboard-monthly-bar { filter: brightness(1.18); }
:root[data-theme="dark"] body.dashboard-page .dashboard-detail-heading p { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .dashboard-collection-progress { background: #24364f; }
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-stats article:last-child strong,
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-table .dashboard-debt-amount { color: #ffaaa3; }
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-table th { border-color: #263954; background: #1a2a40; }
:root[data-theme="dark"] body.dashboard-page .dashboard-debt-table td { border-color: #263954; color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-details-full { border-color: #34445a; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item { border-color: #34445a; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item :is(strong, .tenant-consignment-chassis) { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item small,
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item > div:nth-child(2) span,
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-state { color: #c1cede; }
@media (max-width: 1040px) {
  body.dashboard-page .dashboard-summary-top-grid,
  body.dashboard-page .dashboard-summary-bottom-grid { grid-template-columns: 1fr; }
  body.dashboard-page .tenant-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.dashboard-page .tenant-client-grid { grid-template-columns: 1fr; padding: 13px; }
}
@media (max-width: 600px) {
  body.dashboard-page .tenant-client-grid { grid-template-columns: 1fr; }
  body.dashboard-page .tenant-client-balance-grid { grid-template-columns: 1fr; }
  body.dashboard-page .tenant-client-sale-units { grid-template-columns: 1fr; }
  body.dashboard-page .tenant-client-details > div { grid-template-columns: 104px minmax(0,1fr); gap: 8px; }
  body.dashboard-page .dashboard-debt-heading { align-items: flex-start; flex-direction: column; }
  body.dashboard-page .dashboard-monthly-payments-actions { width: 100%; justify-content: space-between; }
  body.dashboard-page .dashboard-debt-stats { grid-template-columns: 1fr; padding: 12px; }
  body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats > :nth-child(n) { grid-row: auto; }
  body.dashboard-page .dashboard-debt-table th, body.dashboard-page .dashboard-debt-table td { padding: 10px; }
}

/* Keep secondary text readable on pale surfaces in the light theme. */
:root:not([data-theme="dark"]) {
  --muted: #52647a;
  --muted-strong: #40546c;
}
:root:not([data-theme="dark"]) .module-summary-heading h2,
:root:not([data-theme="dark"]) .module-summary-heading > span,
:root:not([data-theme="dark"]) .auth-heading > p:last-child,
:root:not([data-theme="dark"]) .input-wrap input::placeholder,
:root:not([data-theme="dark"]) .visibility-button,
:root:not([data-theme="dark"]) .remember-option,
:root:not([data-theme="dark"]) .secure-note,
:root:not([data-theme="dark"]) .auth-separator,
:root:not([data-theme="dark"]) .auth-footnote,
:root:not([data-theme="dark"]) .support-line,
:root:not([data-theme="dark"]) .site-footer,
:root:not([data-theme="dark"]) .version-label,
:root:not([data-theme="dark"]) .modal-close,
:root:not([data-theme="dark"]) .modal-description { color: #52647a; }
:root:not([data-theme="dark"]) .dashboard-page {
  --dashboard-muted: #52647a;
}
:root:not([data-theme="dark"]) body.dashboard-page .topbar-user small,
:root:not([data-theme="dark"]) body.dashboard-page .account-password-button,
:root:not([data-theme="dark"]) body.dashboard-page .summary-card p,
:root:not([data-theme="dark"]) body.dashboard-page .summary-card small,
:root:not([data-theme="dark"]) body.dashboard-page .panel-description,
:root:not([data-theme="dark"]) body.dashboard-page .users-tab:not(.is-selected),
:root:not([data-theme="dark"]) body.dashboard-page .users-tab:not(.is-selected) span,
:root:not([data-theme="dark"]) body.dashboard-page .user-search,
:root:not([data-theme="dark"]) body.dashboard-page .user-search input::placeholder,
:root:not([data-theme="dark"]) body.dashboard-page .users-table th,
:root:not([data-theme="dark"]) body.dashboard-page .table-user-copy small,
:root:not([data-theme="dark"]) body.dashboard-page .table-loading,
:root:not([data-theme="dark"]) body.dashboard-page .table-empty,
:root:not([data-theme="dark"]) body.dashboard-page .users-panel-footer,
:root:not([data-theme="dark"]) body.dashboard-page .permissions-note p,
:root:not([data-theme="dark"]) body.dashboard-page .dialog-intro,
:root:not([data-theme="dark"]) body.dashboard-page .dialog-close,
:root:not([data-theme="dark"]) body.dashboard-page .user-form > label span,
:root:not([data-theme="dark"]) body.dashboard-page .new-password-field > small,
:root:not([data-theme="dark"]) body.dashboard-page .module-intro,
:root:not([data-theme="dark"]) body.dashboard-page .module-coming-badge,
:root:not([data-theme="dark"]) body.dashboard-page .module-stat > span,
:root:not([data-theme="dark"]) body.dashboard-page .module-stat small,
:root:not([data-theme="dark"]) body.dashboard-page .module-panel-kicker,
:root:not([data-theme="dark"]) body.dashboard-page .module-panel-status,
:root:not([data-theme="dark"]) body.dashboard-page .module-flow-step p,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-title > span,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-details dt,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-files-heading span,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-document small,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-no-files,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-card-footer,
:root:not([data-theme="dark"]) body.dashboard-page .tenant-client-empty p { color: #52647a; }

/* Responsive authenticated workspace navigation: a persistent icon rail with a timed drawer. */
body.dashboard-page .dashboard-sidebar {
  width: 72px;
  padding: 0;
  overflow: hidden;
  transition: width .22s ease, box-shadow .22s ease;
}
body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed),
body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed),
body.dashboard-page .dashboard-sidebar.is-mobile-open {
  width: 254px;
  box-shadow: 12px 0 34px rgba(15,29,49,.2);
}
body.dashboard-page .dashboard-sidebar.is-collapsed { width: 72px; box-shadow: none; }
body.dashboard-page .sidebar-head {
  width: 234px;
  min-height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 10px;
  border-bottom: 1px solid #293a53;
}
body.dashboard-page .sidebar-menu-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #344862;
  border-radius: 8px;
  color: #d5e1f1;
  background: #182942;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
body.dashboard-page .sidebar-menu-toggle:hover { border-color: #6483b5; background: #223957; }
body.dashboard-page .sidebar-menu-toggle:focus-visible { outline: 2px solid #8eafff; outline-offset: 2px; }
body.dashboard-page .sidebar-menu-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.dashboard-page .sidebar-navigation-region { padding: 14px 10px; }
body.dashboard-page .sidebar-section-label { min-width: 222px; }
body.dashboard-page .sidebar-link { width: 222px; min-width: 222px; }
body.dashboard-page .sidebar-bottom { width: 234px; min-width: 0; }
body.dashboard-page .sidebar-label,
body.dashboard-page .sidebar-section-label,
body.dashboard-page .sidebar-chevron { opacity: 0; transition: opacity .15s ease; }
body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed) .sidebar-label,
body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) .sidebar-label,
body.dashboard-page .dashboard-sidebar.is-mobile-open .sidebar-label,
body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed) .sidebar-section-label,
body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) .sidebar-section-label,
body.dashboard-page .dashboard-sidebar.is-mobile-open .sidebar-section-label,
body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed) .sidebar-chevron,
body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) .sidebar-chevron,
body.dashboard-page .dashboard-sidebar.is-mobile-open .sidebar-chevron { opacity: 1; }
body.dashboard-page .dashboard-sidebar:not(.is-collapsed):hover ~ .dashboard-main-shell,
body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) ~ .dashboard-main-shell { margin-left: 254px; }
body.dashboard-page .dashboard-main-shell { min-width: 0; transition: margin-left .22s ease; }
body.dashboard-page .dashboard-content { width: min(1240px, calc(100% - clamp(28px, 6vw, 88px))); max-width: min(1240px, calc(100vw - 120px)); min-width: 0; }
body.dashboard-page.inventory-wide-layout .dashboard-content { width: min(1500px, calc(100% - 24px)); max-width: none; }
body.dashboard-page .dashboard-backdrop { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-head { width: 72px; justify-content: center; padding-inline: 7px; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-navigation-region { padding-inline: 10px; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-section-label { min-width: 0; width: 52px; padding: 0; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-section-label { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-link { width: 52px; min-width: 52px; justify-content: center; gap: 0; padding-inline: 0; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-chevron,
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-label { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-subnav { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-bottom { width: 52px; padding-inline: 0; }

/* Text contrast on pale controls and the global session control in the top bar. */
body.dashboard-page .topbar-logout-button {
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border-color: #d6deea;
  color: #31465f;
  background: #fff;
  font-size: 12px;
}
body.dashboard-page .topbar-logout-button .logout-icon { font-size: 15px; }
body.dashboard-page .users-panel-footer,
body.dashboard-page .users-table th,
body.dashboard-page .table-user-copy small,
body.dashboard-page .table-loading,
body.dashboard-page .table-empty,
body.dashboard-page .user-search input::placeholder,
body.dashboard-page .client-list-caption,
body.dashboard-page .permissions-note p,
body.dashboard-page .permissions-note p strong,
body.dashboard-page .module-stat small,
body.dashboard-page .module-coming-badge { color: #40546c; }
body.dashboard-page .users-tab span { color: #40546c; }
body.dashboard-page .role-pill.role-master { color: #594178; }
body.dashboard-page .role-pill.role-admin { color: #2e4f86; }
body.dashboard-page .role-pill.role-superadmin { color: #8a2d29; }
body.dashboard-page .master-inline,
body.dashboard-page .master-badge { color: #594178; }
body.dashboard-page .user-status { color: #24634f; }
body.dashboard-page .user-status.is-inactive { color: #744d3d; }
:root[data-theme="dark"] body.dashboard-page .topbar-logout-button {
  border-color: #34445a;
  color: #e0e8f3;
  background: #111f34;
}
:root[data-theme="dark"] body.dashboard-page .users-panel-footer,
:root[data-theme="dark"] body.dashboard-page .users-table th,
:root[data-theme="dark"] body.dashboard-page .table-user-copy small,
:root[data-theme="dark"] body.dashboard-page .table-loading,
:root[data-theme="dark"] body.dashboard-page .table-empty,
:root[data-theme="dark"] body.dashboard-page .permissions-note p,
:root[data-theme="dark"] body.dashboard-page .permissions-note p strong,
:root[data-theme="dark"] body.dashboard-page .module-stat small { color: #c1cede; }
:root[data-theme="dark"] body.dashboard-page .users-tab span { color: #40546c; }
:root[data-theme="dark"] body.dashboard-page .users-tab.is-selected span { color: #244a8a; background: #eaf0ff; }
:root[data-theme="dark"] body.dashboard-page .role-pill.role-superadmin { color: #ffaaa1; }
:root[data-theme="dark"] body.dashboard-page .user-search input::placeholder { color: #a9b8ca; }
:root[data-theme="dark"] body.dashboard-page .user-status { color: #8bd4b0; }
:root[data-theme="dark"] body.dashboard-page .user-status.is-inactive { color: #ddb196; }
:root[data-theme="dark"] body.dashboard-page .dashboard-empty-pie::after { color: #c1cede; }

@media (max-width: 520px) {
  body.dashboard-page .topbar-logout-button { width: 36px; min-width: 36px; padding: 0; }
}

@media (max-width: 800px) {
  body.dashboard-page .dashboard-sidebar { top: 82px; bottom: 0; width: 64px; }
  body.dashboard-page .dashboard-main-shell { margin-left: 64px; }
  body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed),
  body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed),
  body.dashboard-page .dashboard-sidebar.is-mobile-open { width: min(254px, calc(100vw - 20px)); }
  body.dashboard-page .dashboard-sidebar.is-collapsed { width: 64px; }
  body.dashboard-page .sidebar-head { width: 234px; min-height: 56px; flex-basis: 56px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-head { width: 64px; padding-inline: 6px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-link { width: 48px; min-width: 48px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-section-label,
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-bottom { width: 48px; }
  body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed) ~ .dashboard-main-shell,
  body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) ~ .dashboard-main-shell,
  body.dashboard-page .dashboard-sidebar.is-mobile-open ~ .dashboard-main-shell { margin-left: 64px; }
  body.dashboard-page .dashboard-sidebar:hover:not(.is-collapsed) ~ .dashboard-backdrop,
  body.dashboard-page .dashboard-sidebar.is-open:not(.is-collapsed) ~ .dashboard-backdrop,
  body.dashboard-page .dashboard-sidebar.is-mobile-open ~ .dashboard-backdrop {
    position: fixed;
    z-index: 11;
    inset: 82px 0 0;
    display: block;
    background: rgba(8,17,32,.42);
  }
  body.dashboard-page .dashboard-content { width: calc(100% - 30px); padding-top: 30px; }
}
@media (max-width: 600px) {
  body.dashboard-page .dashboard-content { width: calc(100% - 24px); padding-top: 23px; }
  body.dashboard-page .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body.dashboard-page .dashboard-topbar-start { min-width: 0; }
  body.dashboard-page .dashboard-logo-canvas { width: min(190px, calc(100vw - 140px)); }
  body.dashboard-page .topbar-user { display: none; }
  body.dashboard-page .dashboard-user-area { flex: 0 0 auto; }
  body.dashboard-page .dashboard-sidebar { top: 82px; width: 58px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed { width: 58px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-head { width: 58px; padding-inline: 5px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-navigation-region { padding-inline: 5px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-link { width: 48px; min-width: 48px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-section-label,
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-bottom { width: 48px; }
  body.dashboard-page .dashboard-main-shell { margin-left: 58px; }
  body.dashboard-page .dashboard-content { width: calc(100% - 20px); }
}

/* Stronger, consistent affordances for Configuration and its user-control submodule. */
body.dashboard-page .configuration-entry {
  min-height: 104px;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #a9bee8;
  border-radius: 12px;
  background: #edf3ff;
  box-shadow: 0 4px 14px rgba(24, 55, 105, .08);
}
body.dashboard-page .configuration-entry:hover {
  border-color: #6f91d1;
  background: #e5edff;
  box-shadow: 0 8px 22px rgba(27, 53, 91, .14);
  transform: translateY(-2px);
}
body.dashboard-page .configuration-entry:focus-visible {
  outline: 3px solid #6b91dc;
  outline-offset: 3px;
}
body.dashboard-page .configuration-entry-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 10px;
  color: #fff;
  background: #315db5;
}
body.dashboard-page .configuration-entry-icon svg { width: 25px; height: 25px; }
body.dashboard-page .configuration-entry strong { color: #162a46; font-size: 16px; }
body.dashboard-page .configuration-entry small { color: #40546c; font-size: 13px; line-height: 1.5; }
body.dashboard-page .configuration-entry-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #315db5;
  font-size: 21px;
}
body.dashboard-page .account-page-actions .logout-button {
  min-height: 42px;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid #8ba8dd;
  border-radius: 8px;
  color: #244a8a;
  background: #eaf0ff;
  font-size: 12px;
  font-weight: 700;
}
body.dashboard-page .account-page-actions .logout-button:hover {
  border-color: #315db5;
  color: #fff;
  background: #315db5;
}
body.dashboard-page .account-page-actions .logout-button:focus-visible {
  outline: 3px solid #6b91dc;
  outline-offset: 3px;
}
body.dashboard-page .logout-icon { width: 17px; height: 17px; display: grid; flex: 0 0 17px; place-items: center; transform: none; }
body.dashboard-page .logout-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] body.dashboard-page .configuration-entry {
  border-color: #5578b4;
  color: #f1f5fb;
  background: #1a3150;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
:root[data-theme="dark"] body.dashboard-page .configuration-entry:hover {
  border-color: #85a9e8;
  background: #213d63;
}
:root[data-theme="dark"] body.dashboard-page .configuration-entry strong { color: #f1f5fb; }
:root[data-theme="dark"] body.dashboard-page .configuration-entry small { color: #d2deef; }
:root[data-theme="dark"] body.dashboard-page .configuration-entry-icon { color: #fff; background: #315db5; }
:root[data-theme="dark"] body.dashboard-page .account-page-actions .logout-button {
  border-color: #6688c3;
  color: #e4edff;
  background: #1b3150;
}
:root[data-theme="dark"] body.dashboard-page .account-page-actions .logout-button:hover {
  border-color: #8eace2;
  color: #fff;
  background: #315db5;
}
@media (max-width: 520px) {
  body.dashboard-page .account-page-actions .logout-button {
    width: auto;
    min-width: 146px;
    min-height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0 12px;
    font-size: 12px;
  }
  body.dashboard-page .account-page-actions .logout-button > span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 12px;
  }
  body.dashboard-page .configuration-entry { min-height: 96px; gap: 12px; padding: 16px; }
  body.dashboard-page .configuration-entry-icon { width: 42px; height: 42px; flex-basis: 42px; }
  body.dashboard-page .configuration-entry strong { font-size: 14px; }
  body.dashboard-page .configuration-entry small { font-size: 12px; }
  body.dashboard-page .configuration-entry-arrow { width: 30px; height: 30px; flex-basis: 30px; }
}

/* Make the company mark use the available height of the fixed top bar. */
body.dashboard-page .company-avatar {
  position: relative;
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  padding: 0;
  border-width: 2px;
  box-shadow: 0 2px 8px rgba(10, 28, 55, .18);
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
body.dashboard-page .company-avatar img { padding: 2px; }
body.dashboard-page .company-avatar span { font-size: 15px; }
.avatar-file-input { display: none; }
.avatar-edit-mark { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #15243b; border-radius: 50%; color: #fff; background: #4775d1; box-shadow: 0 2px 6px #0005; opacity: 0; transform: scale(.86); transition: opacity .16s, transform .16s; }
.avatar-edit-mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.company-avatar:hover .avatar-edit-mark, .company-avatar:focus-visible .avatar-edit-mark,
.user-avatar-upload:hover .avatar-edit-mark, .user-avatar-upload:focus-visible .avatar-edit-mark { opacity: 1; transform: scale(1); }
.company-avatar:hover, .company-avatar:focus-visible { border-color: #85a8f0; box-shadow: 0 3px 12px #0005; }
.company-avatar:focus-visible, .user-avatar-upload:focus-visible { outline: 3px solid #8eb0ff; outline-offset: 3px; }
.user-avatar-upload { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; }
.user-avatar-upload .user-avatar { position: relative; width: 36px; height: 36px; overflow: visible; }
.user-avatar-upload .user-avatar .user-avatar-fallback { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.user-avatar-upload .user-avatar-image,
.user-avatar-upload img { position: absolute; inset: 0; width: 100%; height: 100%; display: none; border-radius: 50%; object-fit: cover; }
.user-avatar-upload.has-photo .user-avatar-image { display: block; }
.user-avatar-upload.has-photo .user-avatar-fallback { display: none; }
.user-avatar-upload .avatar-edit-mark { right: -3px; bottom: -3px; width: 19px; height: 19px; }
.user-avatar-upload .avatar-edit-mark svg { width: 10px; height: 10px; }
.dashboard-user-area .profile-link { min-width: 0; }
.dashboard-user-area .profile-link .topbar-user { min-width: 0; }
.user-form .company-assignment-fields { display: contents; }
.user-form .company-assignment-fields[hidden] { display: none !important; }
@media (max-width: 800px) {
  body.dashboard-page .company-avatar { width: 58px; height: 58px; flex-basis: 58px; }
}
@media (max-width: 520px) {
  body.dashboard-page .company-avatar { width: 54px; height: 54px; flex-basis: 54px; }
  body.dashboard-page .company-avatar img { padding: 1px; }
  body.dashboard-page .company-avatar span { font-size: 13px; }
  body.dashboard-page .dashboard-logo-canvas { width: min(174px, calc(100vw - 248px)); }
}

/* Functional groups share the module registry. System follows business modules. */
body.dashboard-page .sidebar-navigation-region { display: flex; }
body.dashboard-page #sidebar-module-groups { display: flex; flex-direction: column; gap: 19px; width: 100%; min-height: 100%; }
body.dashboard-page .sidebar-category { flex: 0 0 auto; min-width: 0; }
body.dashboard-page .sidebar-category .sidebar-section-label { margin: 0 0 8px; padding-inline: 12px; font-family: inherit; font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
body.dashboard-page .sidebar-category-links { display: grid; gap: 5px; }
body.dashboard-page .sidebar-module-group { min-width: 0; }
body.dashboard-page .sidebar-module-head { display: block; }
body.dashboard-page .sidebar-module-toggle { position: relative; z-index: 2; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 14px 0 12px; border: 0; border-radius: 8px; color: #aebbd0; background: transparent; text-align: left; cursor: pointer; transition: color .16s ease, background .16s ease; }
body.dashboard-page .sidebar-module-toggle:hover { color: #fff; background: rgb(255 255 255 / .08); }
body.dashboard-page .sidebar-module-toggle .sidebar-icon { pointer-events: none; }
body.dashboard-page .sidebar-module-toggle .sidebar-label { flex: 1 1 auto; min-width: 0; pointer-events: none; }
body.dashboard-page .sidebar-module-chevron { flex: 0 0 auto; margin-left: auto; color: #aebbd0; font-size: 18px; line-height: 1; transition: transform .18s ease; }
body.dashboard-page .sidebar-module-toggle[aria-expanded="true"] .sidebar-module-chevron { transform: rotate(180deg); }
body.dashboard-page .sidebar-module-group.is-current > .sidebar-module-head .sidebar-link { color: #fff; }
body.dashboard-page .sidebar-submodule-list { display: grid; gap: 2px; padding-top: 3px; }
body.dashboard-page .sidebar-child-group { display: grid; gap: 1px; }
body.dashboard-page .sidebar-provider-submenu { display: grid; gap: 1px; margin: 0 0 4px 14px; padding-left: 8px; border-left: 1px solid rgb(120 149 197 / .35); }
body.dashboard-page .sidebar-provider-submenu[hidden] { display: none; }
body.dashboard-page .sidebar-provider-sublink { min-height: 31px; padding-left: 53px; font-size: 10px; }
body.dashboard-page .sidebar-submodule-list[hidden] { display: none; }
body.dashboard-page .sidebar-submodule-list { animation: sidebar-submodule-enter .16s ease-out; }
@keyframes sidebar-submodule-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
body.dashboard-page .sidebar-category-system { margin-top: auto; padding-top: 18px; border-top: 1px solid #34445b; }
body.dashboard-page .dashboard-sidebar.is-collapsed #sidebar-module-groups { gap: 12px; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-category-system { padding-top: 12px; }
body.dashboard-page .dashboard-module-section { margin-top: 24px; }
body.dashboard-page .dashboard-module-category { margin: 0 0 12px; color: var(--dashboard-ink); font: 700 14px Manrope, sans-serif; }
body.dashboard-page .dashboard-module-card h4 { margin: 0; color: var(--dashboard-ink); font: 700 18px Manrope, sans-serif; letter-spacing: -.025em; }
body.dashboard-page .company-module-category + .company-module-category { margin-top: 18px; }
body.dashboard-page .company-module-category h4 { margin: 0 0 9px; color: var(--dashboard-ink); font: 700 12px Manrope, sans-serif; }
body.dashboard-page .user-module-access { min-width: 0; margin: 18px 0 4px; padding: 14px; border: 1px solid #dfe6ef; border-radius: 9px; }
body.dashboard-page .user-module-access legend { padding: 0 6px; color: #243956; font-size: 11px; font-weight: 800; }
body.dashboard-page .user-module-access > p { margin: 0 0 12px; color: #52647a; font-size: 10px; line-height: 1.5; }
body.dashboard-page #user-module-access-options { display: grid; gap: 12px; }
body.dashboard-page .user-module-category h4 { margin: 0 0 7px; color: #52647a; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
body.dashboard-page .user-module-category .module-permission-option { margin: 0 0 6px; }
body.dashboard-page .user-module-empty { margin: 0; color: #52647a; font-size: 10px; }
:root[data-theme="dark"] body.dashboard-page .user-module-access { border-color: #344a67; }
:root[data-theme="dark"] body.dashboard-page .user-module-access legend { color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .user-module-access > p,
:root[data-theme="dark"] body.dashboard-page .user-module-category h4,
:root[data-theme="dark"] body.dashboard-page .user-module-empty { color: #c1cede; }

/* Final light-theme pass for all remaining small text on light surfaces. */
:root:not([data-theme="dark"]) .form-message { color: #a3393e; }
:root:not([data-theme="dark"]) .form-message.success { color: #176b56; }
:root:not([data-theme="dark"]) .auth-footnote a,
:root:not([data-theme="dark"]) .version-label { color: #52647a; }
:root:not([data-theme="dark"]) body.dashboard-page .panel-kicker { color: #355a9b; }
:root:not([data-theme="dark"]) body.dashboard-page .active-icon { color: #1f6953; }
:root:not([data-theme="dark"]) body.dashboard-page .permissions-note-icon,
:root:not([data-theme="dark"]) body.dashboard-page .module-step-number,
:root:not([data-theme="dark"]) body.dashboard-page .module-data-note span { color: #405f9b; }
:root:not([data-theme="dark"]) body.dashboard-page .configuration-overview > p,
:root:not([data-theme="dark"]) body.dashboard-page .configuration-entry small,
:root:not([data-theme="dark"]) body.dashboard-page .client-list-caption,
:root:not([data-theme="dark"]) body.dashboard-page .company-module-status.is-planned,
:root:not([data-theme="dark"]) body.dashboard-page .company-assignment-help,
:root:not([data-theme="dark"]) body.dashboard-page .company-no-modules,
:root:not([data-theme="dark"]) body.dashboard-page .module-permission-option small,
:root:not([data-theme="dark"]) body.dashboard-page .client-file-help,
:root:not([data-theme="dark"]) body.dashboard-page .dashboard-empty-pie::after,
:root:not([data-theme="dark"]) body.dashboard-page .module-empty-state p,
:root:not([data-theme="dark"]) body.dashboard-page .module-data-note,
:root:not([data-theme="dark"]) body.dashboard-page .users-table td { color: #52647a; }
:root:not([data-theme="dark"]) body.dashboard-page .role-pill.role-master,
:root:not([data-theme="dark"]) body.dashboard-page .master-inline,
:root:not([data-theme="dark"]) body.dashboard-page .master-badge { color: #594178; }
:root:not([data-theme="dark"]) body.dashboard-page .role-pill.role-admin { color: #2e4f86; }
:root:not([data-theme="dark"]) body.dashboard-page .role-pill.role-superadmin { color: #8a2d29; }
:root:not([data-theme="dark"]) body.dashboard-page .user-status { color: #24634f; }
:root:not([data-theme="dark"]) body.dashboard-page .user-status.is-inactive { color: #744d3d; }
body.dashboard-page .sidebar-sublink { min-height: 36px; padding-left: 48px; color: #aebbd0; font-size: 11px; }
body.dashboard-page .sidebar-sublink .sidebar-submodule-marker { width: 8px; flex: 0 0 8px; color: #7895c5; font-size: 16px; line-height: 1; text-align: center; }
body.dashboard-page .sidebar-sublink.is-active { color: #fff; background: rgb(66 105 170 / .3); }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-sublink { justify-content: center; padding-inline: 0; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-submodule-marker { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-module-head { display: block; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-module-toggle { width: 48px; min-height: 48px; justify-content: center; gap: 0; margin-inline: auto; padding: 0; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-module-toggle .sidebar-label,
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-module-chevron { display: none; }
body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-submodule-list { display: none; }

/* Compact client and unit cards; keep foreground/background pairs readable in dark mode. */
body.dashboard-page .tenant-client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; }
body.dashboard-page .tenant-client-card { padding: 9px; }
body.dashboard-page .tenant-client-card-heading { gap: 7px; padding-bottom: 7px; }
body.dashboard-page .tenant-client-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
body.dashboard-page .tenant-client-title h3 { font-size: 12px; }
body.dashboard-page .tenant-client-details { gap: 7px; margin: 9px 0; }
body.dashboard-page .tenant-client-details > div { grid-template-columns: 58px minmax(0, 1fr); gap: 5px; }
body.dashboard-page .tenant-client-details dt { font-size: 10px; }
body.dashboard-page .tenant-client-details dd { font-size: 10px; }
body.dashboard-page .tenant-client-sale-units { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; gap: 10px; }
body.dashboard-page .tenant-consignment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.dashboard-page .tenant-consignment-item { padding: 8px; }
body.dashboard-page .tenant-client-balance-grid article { padding: 8px; }
body.dashboard-page .tenant-client-sale { gap: 9px; padding: 10px; }
body.dashboard-page .tenant-client-sale-unit { align-content: start; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 9px; }
body.dashboard-page .tenant-client-sale-unit,
body.dashboard-page .tenant-client-sale-unit > *,
body.dashboard-page .tenant-consignment-invoice { min-width: 0; }
body.dashboard-page .tenant-client-sale-unit > div:first-child { flex-wrap: wrap; align-items: center; }
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-chassis { min-width: 0; overflow-wrap: anywhere; }
body.dashboard-page .tenant-consignment-invoice { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding-top: 8px; border-top: 1px solid var(--dashboard-line); overflow-wrap: break-word; word-break: normal; }
body.dashboard-page .tenant-consignment-invoice > strong,
body.dashboard-page .tenant-consignment-invoice > span { min-width: 0; line-height: 1.45; overflow-wrap: break-word; word-break: normal; }
body.dashboard-page .tenant-consignment-invoice > strong { min-width: 0; line-height: 1.4; overflow-wrap: break-word; word-break: normal; font-size: 11px; }
body.dashboard-page .tenant-consignment-invoice .tenant-client-open { margin-top: 0; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-balance-grid article,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale { border-color: #34445a; color: #f1f5fb; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-balance-grid article > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-amounts > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > div > span,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > small,
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item small,
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-state { color: #cbd7e8; }
:root[data-theme="dark"] body.dashboard-page .tenant-client-balance-grid article > strong,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-amounts > span strong,
:root[data-theme="dark"] body.dashboard-page .tenant-client-sale-unit > strong,
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-item strong { color: #f1f5fb; }
@media (max-width: 1100px) {
  body.dashboard-page.inventory-wide-layout .dashboard-content { width: calc(100% - 24px); }
  body.dashboard-page .tenant-client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.dashboard-page .tenant-client-sale-units { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
}
@media (max-width: 820px) {
  body.dashboard-page .tenant-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-page .tenant-client-sale-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-page .tenant-consignment-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.dashboard-page .tenant-client-grid,
  body.dashboard-page .tenant-client-balance-grid,
  body.dashboard-page .tenant-client-sale-units { grid-template-columns: 1fr; }
}

body.dashboard-page button.tenant-consignment-toggle { appearance: none; box-sizing: border-box; width: 100%; max-width: 220px; height: 36px; min-height: 36px; align-self: start; display: inline-flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 7px; margin: 0; padding: 5px 9px; border: 1px solid #d94b57; border-radius: 999px; color: #a52434; background: #fff0f1; font: 700 10px Manrope, sans-serif; line-height: 1; cursor: pointer; }
body.dashboard-page .tenant-consignment-toggle > span,
body.dashboard-page .tenant-consignment-toggle > strong { flex: 0 0 auto; white-space: nowrap; }
body.dashboard-page .tenant-consignment-toggle > i { position: relative; display: block; box-sizing: border-box; width: 35px; min-width: 35px; max-width: 35px; height: 19px; min-height: 19px; max-height: 19px; flex: 0 0 35px; border-radius: 999px; background: #e6a1a7; }
body.dashboard-page .tenant-consignment-toggle > i::after { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; content: ''; transition: transform .16s ease; }
body.dashboard-page .tenant-consignment-toggle.is-sold { border-color: #21845b; color: #11613e; background: #e9f8ef; }
body.dashboard-page .tenant-consignment-toggle.is-sold > i { background: #36a875; }
body.dashboard-page .tenant-consignment-toggle.is-sold > i::after { transform: translateX(16px); }
body.dashboard-page .tenant-consignment-toggle:disabled { opacity: .78; cursor: not-allowed; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-toggle.is-unsold { border-color: #e76d78; color: #ffc0c5; background: #3c202c; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-toggle.is-unsold > i { background: #ad4d59; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-toggle.is-sold { border-color: #48bc83; color: #a5f0c5; background: #153a2d; }
:root[data-theme="dark"] body.dashboard-page .tenant-consignment-toggle.is-sold > i { background: #24885b; }
body.dashboard-page .operations-commission-details { margin-top: 6px; color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .operations-commission-details > summary { color: #4569ad; cursor: pointer; font-weight: 700; }
body.dashboard-page .operations-commission-details > div { display: grid; gap: 6px; padding: 8px 0 2px; }
body.dashboard-page .operations-commission-details ul { display: grid; gap: 6px; margin: 0 0 4px; padding-left: 18px; }
body.dashboard-page .operations-commission-details li { display: grid; gap: 2px; }
body.dashboard-page .operations-commission-details small { color: #687a91; }

/* Keep consignment invoice summaries readable inside narrow client profile cards. */
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-invoice {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  overflow: hidden;
}
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-invoice > strong,
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-invoice > span {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-invoice > strong {
  font-size: 11px;
  line-height: 1.45;
}
body.dashboard-page .tenant-client-sale-unit .tenant-consignment-invoice > .tenant-client-open {
  display: flex;
  width: 100%;
  min-width: 0;
  white-space: normal;
}
body.dashboard-page .operations-commission-details a { color: #315db5; font-weight: 700; }
:root[data-theme="dark"] body.dashboard-page .operations-commission-details > summary,
:root[data-theme="dark"] body.dashboard-page .operations-commission-details a { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .operations-commission-details small { color: #cbd7e8; }

/* Reporte de Ruta */
body.dashboard-page .route-reports-page { display: grid; gap: 20px; color: var(--dashboard-ink); }
body.dashboard-page .route-reports-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
body.dashboard-page .route-reports-heading h2 { margin: 5px 0 6px; color: var(--dashboard-ink); font: 750 25px Manrope,sans-serif; letter-spacing: -.035em; }
body.dashboard-page .route-reports-heading p,
body.dashboard-page .route-report-panel-heading p { margin: 0; color: var(--dashboard-muted); font-size: 12px; line-height: 1.6; }
body.dashboard-page .route-reports-eyebrow { color: #4779d5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
body.dashboard-page .route-report-primary,
body.dashboard-page .route-report-secondary,
body.dashboard-page .route-report-print { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; border: 1px solid var(--dashboard-line); border-radius: 7px; color: var(--dashboard-ink); background: var(--dashboard-surface); font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; cursor: pointer; }
body.dashboard-page .route-report-primary { border-color: #2864d8; color: #fff; background: #2864d8; }
body.dashboard-page .route-report-primary:hover { background: #1f54bd; }
body.dashboard-page .route-report-secondary:hover,
body.dashboard-page .route-report-print:hover { border-color: #819bc2; background: var(--dashboard-soft); }
body.dashboard-page .route-report-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
body.dashboard-page .route-report-stats article,
body.dashboard-page .route-report-panel,
body.dashboard-page .route-report-form { min-width: 0; border: 1px solid var(--dashboard-line); border-radius: 10px; background: var(--dashboard-surface); }
body.dashboard-page .route-report-stats article { display: grid; gap: 7px; padding: 15px; }
body.dashboard-page .route-report-stats article > span { color: var(--dashboard-muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
body.dashboard-page .route-report-stats article > strong { color: var(--dashboard-ink); font: 750 25px Manrope,sans-serif; }
body.dashboard-page .route-report-stats article > small { color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page .route-report-panel { padding: 17px; }
body.dashboard-page .route-report-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
body.dashboard-page .route-report-panel-heading h3 { margin: 0 0 4px; color: var(--dashboard-ink); font: 750 15px Manrope,sans-serif; }
body.dashboard-page .route-report-panel-heading > span { color: var(--dashboard-muted); font-size: 10px; white-space: nowrap; }
body.dashboard-page .route-report-chart { min-height: 210px; display: grid; grid-template-columns: repeat(8,minmax(62px,1fr)); gap: 10px; align-items: end; overflow-x: auto; padding: 8px 2px 0; }
body.dashboard-page .route-report-chart-column { min-width: 62px; height: 195px; display: grid; grid-template-rows: 18px 1fr 46px; justify-items: center; align-items: end; gap: 5px; }
body.dashboard-page .route-report-chart-column > strong { color: var(--dashboard-ink); font-size: 10px; }
body.dashboard-page .route-report-chart-track { width: min(32px,70%); height: 100%; display: flex; align-items: end; overflow: hidden; border-radius: 6px 6px 2px 2px; background: var(--dashboard-soft); }
body.dashboard-page .route-report-chart-track i { width: 100%; display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg,#6c9bff,#2864d8); }
body.dashboard-page .route-report-chart-column > span { max-width: 100%; align-self: start; color: var(--dashboard-muted); font-size: 9px; line-height: 1.35; text-align: center; }
body.dashboard-page .route-report-table-wrap { overflow-x: auto; }
body.dashboard-page .route-report-table { width: 100%; border-collapse: collapse; color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .route-report-table th { padding: 10px 9px; border-bottom: 1px solid var(--dashboard-line); color: var(--dashboard-muted); font-size: 9px; text-align: left; white-space: nowrap; }
body.dashboard-page .route-report-table td { padding: 11px 9px; border-bottom: 1px solid var(--dashboard-line); color: var(--dashboard-ink); white-space: nowrap; }
body.dashboard-page .route-report-table tbody tr:last-child td { border-bottom: 0; }
body.dashboard-page .route-report-table td:first-child { white-space: normal; }
body.dashboard-page .route-report-table td strong,
body.dashboard-page .route-report-table td small { display: block; }
body.dashboard-page .route-report-table td small { margin-top: 3px; color: var(--dashboard-muted); font-size: 9px; }
body.dashboard-page .route-report-empty,
body.dashboard-page .route-report-loading { margin: 0; padding: 15px; color: var(--dashboard-muted); font-size: 12px; }
body.dashboard-page .route-report-form { display: grid; gap: 18px; padding: 20px; }
body.dashboard-page .route-report-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
body.dashboard-page .route-report-form label { min-width: 0; display: grid; align-content: start; gap: 7px; color: var(--dashboard-ink); font-size: 11px; font-weight: 700; }
body.dashboard-page .route-report-form input:not([type="checkbox"]),
body.dashboard-page .route-report-form select,
body.dashboard-page .route-report-form textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; outline: 0; color: var(--dashboard-ink); background: var(--dashboard-soft); font: 500 12px 'DM Sans',sans-serif; }
body.dashboard-page .route-report-form textarea { min-height: 92px; resize: vertical; }
body.dashboard-page .route-report-form input:focus,
body.dashboard-page .route-report-form select:focus,
body.dashboard-page .route-report-form textarea:focus { border-color: #5683d8; box-shadow: 0 0 0 3px #3b72ce22; }
body.dashboard-page .route-report-form-section { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--dashboard-line); border-radius: 9px; }
body.dashboard-page .route-report-section-title h3,
body.dashboard-page .route-report-reasons legend { margin: 0 0 4px; padding: 0; color: var(--dashboard-ink); font: 750 14px Manrope,sans-serif; }
body.dashboard-page .route-report-section-title p,
body.dashboard-page .route-report-reasons > p { margin: 0 0 12px; color: var(--dashboard-muted); font-size: 10px; line-height: 1.5; }
body.dashboard-page .route-report-model-head,
body.dashboard-page .route-report-model-row { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(2,minmax(130px,1fr)); gap: 12px; align-items: center; }
body.dashboard-page .route-report-model-head { padding: 8px 10px; color: var(--dashboard-muted); font-size: 9px; font-weight: 800; }
body.dashboard-page .route-report-model-list { display: grid; }
body.dashboard-page .route-report-model-row { padding: 10px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .route-report-model-name strong,
body.dashboard-page .route-report-model-name small { display: block; }
body.dashboard-page .route-report-model-name strong { color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .route-report-model-name small { margin-top: 4px; color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page .route-report-model-row label { gap: 5px; color: var(--dashboard-muted); font-size: 9px; }
body.dashboard-page .route-report-model-row input { min-height: 36px !important; }
body.dashboard-page .route-report-reasons { padding-top: 12px; }
body.dashboard-page .route-report-reasons legend { padding: 0 5px; }
body.dashboard-page .route-report-reason-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
body.dashboard-page .route-report-form .route-report-reason { display: flex; align-items: flex-start; gap: 8px; color: var(--dashboard-ink); font-size: 11px; font-weight: 550; line-height: 1.45; cursor: pointer; }
body.dashboard-page .route-report-reason input { width: 15px; height: 15px; flex: 0 0 15px; margin: 1px 0 0; accent-color: #2864d8; }
body.dashboard-page .route-report-observations { grid-column: span 2; }
body.dashboard-page .route-report-error { margin: 0; color: #d04d5a; font-size: 11px; }
body.dashboard-page .route-report-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 14px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .route-report-error-state { padding: 18px; border: 1px solid #df6470; border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .route-report-error-state p { margin: 7px 0 12px; color: var(--dashboard-muted); font-size: 12px; }
@media (max-width: 900px) {
  body.dashboard-page .route-report-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.dashboard-page .route-report-chart { grid-template-columns: repeat(8,minmax(68px,1fr)); }
}
@media (max-width: 640px) {
  body.dashboard-page .route-reports-heading { flex-direction: column; }
  body.dashboard-page .route-report-form-grid { grid-template-columns: 1fr; }
  body.dashboard-page .route-report-model-head { display: none; }
  body.dashboard-page .route-report-model-row { grid-template-columns: 1fr 1fr; }
  body.dashboard-page .route-report-model-name { grid-column: 1/-1; }
  body.dashboard-page .route-report-reason-grid { grid-template-columns: 1fr; }
  body.dashboard-page .route-report-observations { grid-column: auto; }
  body.dashboard-page .route-report-form { padding: 13px; }
  body.dashboard-page .route-report-form-actions { flex-direction: column-reverse; }
  body.dashboard-page .route-report-form-actions > * { width: 100%; }
}

body.dashboard-page .cheque-delivery-form .route-report-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
body.dashboard-page .cheque-delivery-form .cheque-currency { min-width: 0; display: flex; flex-wrap: wrap; align-content: start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--dashboard-line); border-radius: 8px; }
body.dashboard-page .cheque-delivery-form .cheque-currency legend { padding: 0 4px; color: var(--dashboard-ink); font-size: 11px; font-weight: 700; }
body.dashboard-page .cheque-delivery-form .cheque-currency label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 7px; color: var(--dashboard-ink); font-size: 11px; font-weight: 600; cursor: pointer; }
body.dashboard-page .cheque-delivery-form .cheque-currency input { width: 15px; min-height: 15px; height: 15px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; accent-color: #2864d8; }
body.dashboard-page .cheque-delivery-form .cheque-photo-field { grid-column: 1/-1; }
body.dashboard-page .cheque-photo-control { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.dashboard-page .cheque-photo-control small { color: var(--dashboard-muted); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
body.dashboard-page .cheque-delivery-form .cheque-notes-field { grid-column: 1/-1; }
body.dashboard-page .cheque-notifications[hidden] { display: none !important; }
body.dashboard-page .cheque-notifications { position: fixed; z-index: 1100; right: 18px; bottom: 18px; width: min(410px,calc(100vw - 36px)); max-height: min(78vh,760px); display: grid; align-content: end; gap: 10px; overflow-y: auto; pointer-events: none; }
body.dashboard-page .cheque-notification-card { max-height: 78vh; overflow-y: auto; padding: 16px; border: 1px solid #d48a2d; border-left: 4px solid #dc8c21; border-radius: 11px; color: var(--dashboard-ink); background: var(--dashboard-surface); box-shadow: 0 16px 48px #06101f55; pointer-events: auto; }
body.dashboard-page .cheque-notification-heading { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
body.dashboard-page .cheque-notification-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 9px; color: #7b4a0c; background: #ffedce; font-size: 19px; }
body.dashboard-page .cheque-notification-heading strong,
body.dashboard-page .cheque-notification-heading small { display: block; }
body.dashboard-page .cheque-notification-heading strong { color: var(--dashboard-ink); font: 750 14px Manrope,sans-serif; }
body.dashboard-page .cheque-notification-heading small { margin-top: 3px; color: var(--dashboard-muted); font-size: 10px; line-height: 1.4; }
body.dashboard-page .cheque-notification-card dl { display: grid; gap: 7px; margin: 0; }
body.dashboard-page .cheque-notification-card dl > div { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 8px; }
body.dashboard-page .cheque-notification-card dt { color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page .cheque-notification-card dd { min-width: 0; margin: 0; color: var(--dashboard-ink); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
body.dashboard-page .cheque-notification-notes { margin: 10px 0 0; padding: 9px; border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font-size: 10px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
body.dashboard-page .cheque-notification-photo { display: inline-flex; margin: 10px 0 0; color: #2864d8; font-size: 10px; font-weight: 750; }
:root[data-theme="dark"] body.dashboard-page .cheque-notification-photo { color: #9dbbff; }
body.dashboard-page .cheque-notification-deposit { width: 100%; min-height: 38px; margin-top: 12px; padding: 0 12px; border: 1px solid #23805b; border-radius: 7px; color: #fff; background: #23805b; font-size: 11px; font-weight: 750; cursor: pointer; }
body.dashboard-page .cheque-notification-deposit:hover { background: #176c4b; }
body.dashboard-page .cheque-notification-deposit:disabled { opacity: .65; cursor: progress; }
body.dashboard-page .cheque-history-status { display: inline-block; padding: 4px 7px; border: 1px solid var(--dashboard-line); border-radius: 999px; color: #8a550d; background: #fff1d8; font-size: 9px; font-weight: 750; white-space: nowrap; }
body.dashboard-page .cheque-history-status.is-deposited { border-color: #a4dbc0; color: #176944; background: #e8f7ef; }
body.dashboard-page .cheque-history-status + small { display: block; margin-top: 4px; color: var(--dashboard-muted); font-size: 9px; }
body.dashboard-page .cheque-history-panel .route-report-table td a { color: #2864d8; font-weight: 750; }
body.dashboard-page .cheque-delivery-print { min-height: 32px; padding-inline: 9px; font-size: 10px; }
:root[data-theme="dark"] body.dashboard-page .cheque-history-status.is-pending { border-color: #86632c; color: #ffd996; background: #3a2b19; }
:root[data-theme="dark"] body.dashboard-page .cheque-history-status.is-deposited { border-color: #287850; color: #a9f0c7; background: #153a2d; }
:root[data-theme="dark"] body.dashboard-page .cheque-history-panel .route-report-table td a { color: #9dbbff; }
@media (max-width: 640px) {
  body.dashboard-page .cheque-delivery-form .route-report-form-grid { grid-template-columns: 1fr; }
  body.dashboard-page .cheque-delivery-form .cheque-photo-field,
  body.dashboard-page .cheque-delivery-form .cheque-notes-field { grid-column: auto; }
  body.dashboard-page .cheque-notifications { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: 70vh; }
}

/* Installable app controls and a touch-first layout for narrow screens. */
.pwa-install-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid #31528a; border-radius: 8px; color: #fff; background: #244c91; font: 700 11px Manrope, sans-serif; cursor: pointer; }
.pwa-install-button:hover { background: #1d3f7b; }
.pwa-install-button[hidden] { display: none !important; }
.pwa-install-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pwa-install-dialog { width: min(420px, calc(100vw - 28px)); padding: 28px; border: 1px solid var(--dashboard-line, #dce3ed); border-radius: 16px; color: var(--dashboard-ink, #16283e); background: var(--dashboard-surface, #fff); box-shadow: 0 24px 80px #06101f55; }
.pwa-install-dialog::backdrop { background: #071225a8; backdrop-filter: blur(4px); }
.pwa-install-close { float: right; width: 34px; height: 34px; border: 1px solid var(--dashboard-line, #dce3ed); border-radius: 8px; color: inherit; background: var(--dashboard-soft, #f6f8fb); font-size: 21px; cursor: pointer; }
.pwa-install-eyebrow { margin: 2px 0 8px; color: #3b6bc1; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.pwa-install-dialog h2 { margin: 0 40px 10px 0; color: var(--dashboard-ink, #16283e); font: 750 22px Manrope, sans-serif; }
.pwa-install-copy { margin: 0; color: var(--dashboard-muted, #65758b); font-size: 13px; line-height: 1.7; }
.pwa-install-confirm { min-height: 42px; width: 100%; margin-top: 20px; border: 0; border-radius: 8px; color: #fff; background: #2864d8; font: 700 12px Manrope, sans-serif; cursor: pointer; }
:root[data-theme="dark"] .pwa-install-dialog { border-color: #34445a; }
:root[data-theme="dark"] .pwa-install-copy { color: #c1cede; }
:root[data-theme="dark"] .pwa-install-close { border-color: #34445a; background: #111f34; }
.topbar-sidebar-toggle { display: none; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; padding: 0; border: 1px solid #dce3ed; border-radius: 9px; color: #52657d; background: #fff; cursor: pointer; }
.topbar-sidebar-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-link-icon { display: none; }
:root[data-theme="dark"] .topbar-sidebar-toggle { border-color: #34445a; color: #d6e0ee; background: #111f34; }
@media (max-width: 800px) {
  body.dashboard-page .topbar-sidebar-toggle { display: grid; }
  body.dashboard-page .dashboard-content { max-width: 100%; }
  body.dashboard-page .dashboard-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.dashboard-page .dashboard-overview-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body.dashboard-page { min-width: 0; min-height: 100dvh; }
  body.dashboard-page .dashboard-topbar { height: calc(70px + env(safe-area-inset-top)); min-height: calc(70px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; gap: 8px; }
  body.dashboard-page .dashboard-main-shell { min-height: 100dvh; padding-top: calc(70px + env(safe-area-inset-top)); margin-left: 0; }
  body.dashboard-page .dashboard-sidebar { z-index: 15; top: calc(70px + env(safe-area-inset-top)); bottom: 0; width: 0; padding-inline: 0; border: 0; }
  body.dashboard-page .dashboard-sidebar.is-collapsed { width: 0; padding-inline: 0; }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed), body.dashboard-page .dashboard-sidebar.is-mobile-open { width: min(290px, 86vw); padding-inline: 10px; box-shadow: 16px 0 40px #06101f44; }
  body.dashboard-page .dashboard-sidebar .sidebar-head { display: none; }
  body.dashboard-page .dashboard-sidebar .sidebar-navigation-region { padding: 12px 4px; }
  body.dashboard-page .dashboard-sidebar .sidebar-link { min-height: 46px; }
  body.dashboard-page .dashboard-sidebar.is-collapsed ~ .dashboard-main-shell { margin-left: 0; }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) ~ .dashboard-backdrop, body.dashboard-page .dashboard-sidebar.is-mobile-open ~ .dashboard-backdrop { inset: calc(70px + env(safe-area-inset-top)) 0 0; }
  body.dashboard-page .dashboard-topbar-start { flex: 1 1 auto; min-width: 0; gap: 8px; }
  body.dashboard-page .dashboard-logo-canvas { width: min(170px, calc(100vw - 185px)); height: 54px; }
  body.dashboard-page .dashboard-user-area { flex: 0 0 auto; gap: 6px; }
  body.dashboard-page .dashboard-user-area .company-avatar, body.dashboard-page .dashboard-user-area .topbar-user { display: none; }
  body.dashboard-page .dashboard-user-area .profile-link { min-height: 38px; width: 36px; justify-content: center; padding: 0; }
  body.dashboard-page .topbar-profile-name-button { width: 38px; height: 38px; flex-basis: 38px; }
  body.dashboard-page .dashboard-user-area .profile-link .user-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; }
  body.dashboard-page .dashboard-user-area .pwa-install-button { width: 38px; min-width: 38px; height: 38px; padding: 0; }
  body.dashboard-page .pwa-install-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  body.dashboard-page .topbar-logout-button { width: 38px; min-width: 38px; height: 38px; }
  body.dashboard-page .dashboard-content { width: calc(100% - 28px); padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); }
  body.dashboard-page .dashboard-welcome { margin-bottom: 17px; }
  body.dashboard-page .dashboard-welcome h1 { font-size: clamp(23px, 7vw, 29px); line-height: 1.15; overflow-wrap: anywhere; }
  body.dashboard-page .dashboard-module-grid, body.dashboard-page .dashboard-overview-stats, body.dashboard-page .dashboard-debt-stats { grid-template-columns: 1fr; }
  body.dashboard-page .dashboard-debt-panel .dashboard-paperwork-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.dashboard-page .dashboard-module-card { padding: 14px; }
  body.dashboard-page .core-dashboard { gap: 14px; }
  body.dashboard-page .core-dashboard-intro { align-items: flex-start; flex-direction: column; gap: 8px; }
  body.dashboard-page .dashboard-debt-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  body.dashboard-page .dashboard-debt-table-wrap { max-width: calc(100vw - 28px); overflow-x: auto; }
  body.dashboard-page .tenant-client-grid { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  body.dashboard-page .tenant-client-sale-units, body.dashboard-page .tenant-consignment-list { grid-template-columns: 1fr; }
  body.dashboard-page .tenant-client-detail-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  body.dashboard-page .tenant-client-balance-grid { grid-template-columns: 1fr; }
  body.dashboard-page .account-page-actions { gap: 8px; }
  body.dashboard-page .account-page-actions > * { min-height: 42px; }
  body.dashboard-page .route-report-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.dashboard-page .route-report-chart-scroll, body.dashboard-page .route-report-table-scroll { max-width: calc(100vw - 28px); overflow-x: auto; }
  body.dashboard-page .route-report-table { min-width: 620px; }
  body.dashboard-page .cheque-notifications { right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.dashboard-page .configuration-overview h2 { font-size: 20px; }
  body.dashboard-page .dashboard-backdrop { background: rgb(5 13 27 / .55); }
  .pwa-install-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top)); margin: auto 10px calc(10px + env(safe-area-inset-bottom)); padding: 22px 18px; }
}
@media (max-width: 380px) {
  body.dashboard-page .dashboard-topbar { padding-inline: 9px; gap: 5px; }
  body.dashboard-page .topbar-sidebar-toggle { width: 36px; height: 36px; flex-basis: 36px; }
  body.dashboard-page .dashboard-logo-canvas { width: min(145px, calc(100vw - 170px)); }
  body.dashboard-page .dashboard-user-area { gap: 4px; }
  body.dashboard-page .dashboard-user-area .pwa-install-button, body.dashboard-page .topbar-logout-button { width: 34px; min-width: 34px; height: 36px; }
  body.dashboard-page .dashboard-content { width: calc(100% - 22px); }
  body.dashboard-page .route-report-stats { grid-template-columns: 1fr; }
}
@media (display-mode: standalone) {
  body.dashboard-page .dashboard-topbar { padding-top: env(safe-area-inset-top); }
  body.dashboard-page .dashboard-main-shell { padding-bottom: env(safe-area-inset-bottom); }
}

/* Keep dashboard figures on one line and show the company logo as a larger, rectangular mark. */
body.dashboard-page .dashboard-overview-stats strong,
body.dashboard-page .dashboard-debt-stats strong,
body.dashboard-page .dashboard-module-summary strong,
body.dashboard-page .route-report-stats article > strong { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; font-size: clamp(12px, 3.5vw, 22px); }
body.dashboard-page .dashboard-debt-table .numeric,
body.dashboard-page .dashboard-debt-table td.numeric { white-space: nowrap; }
body.dashboard-page .company-avatar { width: 108px; height: 64px; flex-basis: 108px; border-radius: 10px; }
body.dashboard-page .company-avatar { display: grid; place-items: center; }
body.dashboard-page .company-avatar img { display: block; width: 100%; height: 100%; padding: 3px; object-fit: contain; object-position: center; margin: auto; }
@media (max-width: 800px) {
  body.dashboard-page .company-avatar { width: 86px; height: 56px; flex-basis: 86px; }
}
@media (max-width: 640px) {
  body.dashboard-page .dashboard-user-area .company-avatar { display: grid; width: 54px; height: 38px; flex: 0 0 54px; border-radius: 7px; }
  body.dashboard-page .dashboard-user-area .company-avatar img { padding: 1px; }
  body.dashboard-page .dashboard-user-area .topbar-user { display: none; }
  body.dashboard-page .dashboard-logo-canvas { width: min(132px, calc(100vw - 238px)); }
  body.dashboard-page .dashboard-user-area { gap: 4px; }
  body.dashboard-page .dashboard-user-area .profile-link { width: 34px; min-width: 34px; }
  body.dashboard-page .topbar-profile-name-button { width: 34px; height: 36px; flex-basis: 34px; }
  body.dashboard-page .dashboard-user-area .pwa-install-button,
  body.dashboard-page .topbar-logout-button { width: 34px; min-width: 34px; height: 36px; }
  body.dashboard-page .dashboard-overview-stats strong,
  body.dashboard-page .dashboard-debt-stats strong,
  body.dashboard-page .dashboard-module-summary strong,
  body.dashboard-page .route-report-stats article > strong { font-size: clamp(12px, 4vw, 18px); }
}
@media (max-width: 380px) {
  body.dashboard-page .dashboard-logo-canvas { width: min(112px, calc(100vw - 250px)); }
  body.dashboard-page .dashboard-user-area .company-avatar { width: 48px; height: 34px; flex-basis: 48px; }
}

body.dashboard-page .module-access-card { overflow: hidden; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; }
body.dashboard-page .module-access-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; }
body.dashboard-page .module-access-row + .module-access-row { border-top: 1px solid #e6ebf2; }
body.dashboard-page .module-access-row > span { display: grid; gap: 3px; min-width: 0; }
body.dashboard-page .module-access-row strong { color: #263b54; font-size: 12px; }
body.dashboard-page .module-access-row small { color: #687a91; font-size: 10px; line-height: 1.4; }
body.dashboard-page .module-access-row select { width: auto; min-width: 130px; max-width: 150px; min-height: 36px; flex: 0 0 auto; }
body.dashboard-page .module-access-row.is-child { padding-left: 24px; }
body.dashboard-page .user-module-category { display: grid; gap: 7px; }
:root[data-theme="dark"] body.dashboard-page .module-access-card { border-color: #34445a; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .module-access-row + .module-access-row { border-color: #263954; }
:root[data-theme="dark"] body.dashboard-page .module-access-row strong { color: #e5ecf5; }
:root[data-theme="dark"] body.dashboard-page .module-access-row small { color: #aebdd0; }
@media (max-width: 640px) {
  body.dashboard-page .dashboard-topbar-start { flex: 1 1 auto; min-width: 0; gap: 5px; }
  body.dashboard-page .dashboard-logo-canvas { width: clamp(54px, calc(100vw - 272px), 112px); min-width: 54px; height: 48px; flex: 0 1 auto; }
  body.dashboard-page .dashboard-user-area { flex: 0 0 auto; min-width: max-content; gap: 4px; }
  body.dashboard-page .dashboard-user-area .company-avatar { display: grid; width: 44px; height: 34px; flex: 0 0 44px; }
  body.dashboard-page .dashboard-user-area .user-avatar-upload .user-avatar { width: 28px; height: 28px; }
  body.dashboard-page .dashboard-user-area .profile-link { display: flex; width: auto; min-width: 30px; min-height: 36px; flex: 0 0 auto; gap: 4px; padding: 0 2px; }
  body.dashboard-page .dashboard-user-area .profile-link .user-avatar { display: grid; width: 28px; height: 28px; flex: 0 0 28px; }
  body.dashboard-page .dashboard-user-area .topbar-user { display: block; min-width: 0; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  body.dashboard-page .dashboard-user-area .pwa-install-button { display: inline-flex; align-items: center; justify-content: center; }
  body.dashboard-page .topbar-logout-button { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: max-content; height: 36px; flex: 0 0 auto; gap: 4px; padding: 0 7px; white-space: nowrap; }
  body.dashboard-page .topbar-logout-button .logout-label { display: inline; white-space: nowrap; font-size: 10px; line-height: 1; }
}
@media (max-width: 390px) {
  body.dashboard-page .dashboard-topbar { padding-inline: 6px; gap: 3px; }
  body.dashboard-page .dashboard-logo-canvas { width: 52px; min-width: 52px; }
  body.dashboard-page .dashboard-user-area { gap: 3px; }
  body.dashboard-page .dashboard-user-area .company-avatar { width: 38px; flex-basis: 38px; }
  body.dashboard-page .dashboard-user-area .topbar-user { max-width: 38px; font-size: 9px; }
  body.dashboard-page .dashboard-user-area .profile-link { gap: 2px; }
  body.dashboard-page .topbar-logout-button { gap: 3px; padding-inline: 5px; }
  body.dashboard-page .topbar-logout-button .logout-label { font-size: 9px; }
}

:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-admin-fields { border-color: #34445a; background: #111f34; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-admin-fields h3,
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-module-category h4,
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-admin-fields > label { color: #e5ecf5; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-admin-fields > p,
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .new-password-field > small { color: #b7c5d8; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .module-permission-option { border-color: #34445a; background: #0d1a2d; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .module-permission-option strong { color: #e5ecf5; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .module-permission-option small { color: #aebdd0; }
:root[data-theme="dark"] body:not(.dashboard-page) .register-dialog .company-admin-fields > input { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }

body.dashboard-page .team-work-page { display: grid; gap: 20px; color: var(--dashboard-ink); }
body.dashboard-page .team-work-header,
body.dashboard-page .team-work-section-heading,
body.dashboard-page .team-work-filter-row,
body.dashboard-page .team-work-meeting-card > header,
body.dashboard-page .team-work-report-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.dashboard-page .team-work-header h2 { margin: 4px 0 7px; color: var(--dashboard-ink); font: 750 25px Manrope,sans-serif; letter-spacing: -.035em; }
body.dashboard-page .team-work-header > div > p:last-child,
body.dashboard-page .team-work-filter-row > div > p,
body.dashboard-page .team-work-section-heading p { margin: 0; color: var(--dashboard-muted); font-size: 12px; line-height: 1.55; }
body.dashboard-page .team-work-eyebrow { margin: 0 0 5px; color: #4779d5; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.dashboard-page .team-work-primary,
body.dashboard-page .team-work-secondary { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid #315fbd; border-radius: 7px; color: white; background: #315fbd; font-size: 11px; font-weight: 700; }
body.dashboard-page .team-work-primary:hover { background: #244e9f; }
body.dashboard-page .team-work-secondary { border-color: var(--dashboard-line); color: var(--dashboard-ink); background: var(--dashboard-soft); }
body.dashboard-page .team-work-secondary:hover { border-color: #8ea7c8; }
body.dashboard-page .team-work-link-button { padding: 5px 0; border: 0; color: #315db5; background: transparent; font-size: 11px; font-weight: 700; }
body.dashboard-page .team-work-message { padding: 11px 14px; border: 1px solid var(--dashboard-line); border-radius: 7px; color: var(--dashboard-ink); background: var(--dashboard-surface); font-size: 12px; }
body.dashboard-page .team-work-message[data-kind="error"] { border-color: #d98787; color: #ad3c3c; }
body.dashboard-page .team-work-summary-section,
body.dashboard-page .team-work-meeting-card,
body.dashboard-page .team-work-report-card { min-width: 0; padding: 18px; border: 1px solid var(--dashboard-line); border-radius: 10px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .team-work-filter-row { align-items: center; margin-bottom: 15px; }
body.dashboard-page .team-work-filter-row h3,
body.dashboard-page .team-work-section-heading h3 { margin: 0 0 5px; color: var(--dashboard-ink); font: 700 16px Manrope,sans-serif; }
body.dashboard-page .team-work-filter-row > label,
body.dashboard-page .team-work-form-grid > label,
body.dashboard-page .team-work-page form > label,
body.dashboard-page .team-work-progress-form label { display: grid; gap: 6px; min-width: 0; color: var(--dashboard-muted); font-size: 10px; font-weight: 700; }
body.dashboard-page .team-work-page input,
body.dashboard-page .team-work-page select,
body.dashboard-page .team-work-page textarea { min-width: 0; width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font: 11px 'DM Sans',sans-serif; }
body.dashboard-page .team-work-page textarea { min-height: 76px; resize: vertical; line-height: 1.55; }
body.dashboard-page .team-work-filter-row select { width: min(270px, 38vw); }
body.dashboard-page .team-work-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body.dashboard-page .team-work-metrics article { display: grid; gap: 6px; min-height: 74px; padding: 12px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .team-work-metrics article span { color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page .team-work-metrics article strong { color: var(--dashboard-ink); font: 700 20px Manrope,sans-serif; }
body.dashboard-page .team-work-user-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
body.dashboard-page .team-work-user-summary article { min-width: 0; padding: 12px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-surface); }
body.dashboard-page .team-work-user-summary-heading { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
body.dashboard-page .team-work-user-summary-heading strong { color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .team-work-user-summary-heading span { color: var(--dashboard-muted); font-size: 9px; text-align: right; }
body.dashboard-page .team-work-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--dashboard-line); }
body.dashboard-page .team-work-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#52a6e9,#326ad3); }
body.dashboard-page .team-work-records { display: grid; gap: 12px; }
body.dashboard-page .team-work-section-heading { align-items: center; padding: 2px 2px 4px; }
body.dashboard-page .team-work-meeting-card,
body.dashboard-page .team-work-report-card { display: grid; gap: 12px; }
body.dashboard-page .team-work-meeting-card h4,
body.dashboard-page .team-work-report-card h4 { margin: 0; color: var(--dashboard-ink); font: 700 15px Manrope,sans-serif; }
body.dashboard-page .team-work-prose { color: var(--dashboard-ink); font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
body.dashboard-page .team-work-task-list-heading { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .team-work-task-list-heading strong { font-size: 11px; }
body.dashboard-page .team-work-task-list-heading span,
body.dashboard-page .team-work-report-card footer { color: var(--dashboard-muted); font-size: 9px; }
body.dashboard-page .team-work-task-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
body.dashboard-page .team-work-task-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .team-work-task-main { display: grid; gap: 4px; min-width: 0; }
body.dashboard-page .team-work-task-main strong { color: var(--dashboard-ink); font-size: 11px; }
body.dashboard-page .team-work-task-main > span,
body.dashboard-page .team-work-task-main p { margin: 0; color: var(--dashboard-muted); font-size: 9px; line-height: 1.5; }
body.dashboard-page .team-work-status { padding: 5px 8px; border-radius: 99px; color: #9b5b0b; background: #fff2d9; font-size: 9px; font-weight: 700; white-space: nowrap; }
body.dashboard-page .team-work-status.is-in_progress { color: #265fb0; background: #e8f0ff; }
body.dashboard-page .team-work-status.is-completed { color: #147456; background: #e4f6ef; }
body.dashboard-page .team-work-progress-form { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(150px,.45fr) minmax(200px,1fr) auto; gap: 9px; align-items: end; padding-top: 10px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .team-work-progress-form textarea { min-height: 38px; }
body.dashboard-page .team-work-empty { padding: 25px 15px; border: 1px dashed var(--dashboard-line); border-radius: 8px; text-align: center; }
body.dashboard-page .team-work-empty strong { color: var(--dashboard-ink); font-size: 12px; }
body.dashboard-page .team-work-empty p,
body.dashboard-page .team-work-empty-inline { margin: 6px 0 0; color: var(--dashboard-muted); font-size: 10px; line-height: 1.55; }
body.dashboard-page .team-work-dialog { position: fixed; width: min(860px,calc(100% - 28px)); max-height: min(90dvh,900px); overflow-y: auto; padding: 27px; border: 1px solid var(--dashboard-line); border-radius: 12px; color: var(--dashboard-ink); background: var(--dashboard-surface); box-shadow: 0 24px 80px rgb(0 0 0 / .32); }
body.dashboard-page .team-work-dialog::backdrop { background: rgb(5 14 30 / .62); backdrop-filter: blur(3px); }
body.dashboard-page .team-work-close { position: sticky; top: 10px; z-index: 20; display: grid; place-items: center; width: 36px; height: 36px; margin: -17px -17px -36px auto; border: 1px solid var(--dashboard-line); border-radius: 8px; color: var(--dashboard-ink); background: var(--dashboard-soft); box-shadow: 0 3px 12px rgb(0 0 0 / .22); font-size: 24px; cursor: pointer; }
body.dashboard-page .team-work-dialog h3 { margin: 0 36px 18px 0; color: var(--dashboard-ink); font: 700 19px Manrope,sans-serif; }
body.dashboard-page .team-work-dialog form { display: grid; gap: 14px; }
body.dashboard-page .team-work-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
body.dashboard-page .team-work-task-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; }
body.dashboard-page .team-work-task-editor-heading h4 { margin: 0 0 4px; color: var(--dashboard-ink); font-size: 12px; }
body.dashboard-page .team-work-task-editor-heading p { margin: 0; color: var(--dashboard-muted); font-size: 9px; }
body.dashboard-page .team-work-task-editor { display: grid; gap: 8px; }
body.dashboard-page .team-work-task-editor-row { display: grid; grid-template-columns: minmax(160px,1fr) minmax(150px,.75fr) minmax(140px,.65fr) 34px; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--dashboard-line); border-radius: 7px; background: var(--dashboard-soft); }
body.dashboard-page .team-work-remove-task { height: 37px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: #ad4545; background: var(--dashboard-surface); font-size: 19px; }
body.dashboard-page .team-work-dialog-actions { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 12px 0 4px; border-top: 1px solid var(--dashboard-line); background: var(--dashboard-surface); }
body.dashboard-page .team-work-form-error { margin: 0; color: #bd4141; font-size: 11px; }
body.dashboard-page .team-report-editor { padding: 16px; border: 1px solid var(--dashboard-line); border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); }
body.dashboard-page .team-report-editor > summary { color: var(--dashboard-ink); font: 700 13px Manrope,sans-serif; cursor: pointer; }
body.dashboard-page .team-report-editor form { display: grid; gap: 13px; margin-top: 16px; }
body.dashboard-page .team-work-report-sections { display: grid; gap: 12px; }
body.dashboard-page .team-work-report-sections section { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--dashboard-line); }
body.dashboard-page .team-work-report-sections h5 { margin: 0; color: var(--dashboard-muted); font-size: 10px; }
:root[data-theme="dark"] body.dashboard-page .team-work-primary { border-color: #507dd6; background: #315fbd; }
:root[data-theme="dark"] body.dashboard-page .team-work-link-button { color: #a9c4ff; }
:root[data-theme="dark"] body.dashboard-page .team-work-status { color: #ffd18c; background: #49371f; }
:root[data-theme="dark"] body.dashboard-page .team-work-status.is-in_progress { color: #a9c4ff; background: #1c3354; }
:root[data-theme="dark"] body.dashboard-page .team-work-status.is-completed { color: #8cdec1; background: #173d34; }
@media (max-width: 760px) {
  body.dashboard-page .team-work-header { flex-direction: column; }
  body.dashboard-page .team-work-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.dashboard-page .team-work-user-summary { grid-template-columns: 1fr; }
  body.dashboard-page .team-work-progress-form { grid-template-columns: 1fr 1fr; }
  body.dashboard-page .team-work-progress-form button { grid-column: 1 / -1; }
  body.dashboard-page .team-work-task-editor-row { grid-template-columns: 1fr 1fr 34px; }
  body.dashboard-page .team-work-task-editor-row label:first-child { grid-column: 1 / -1; }
  body.dashboard-page .team-work-task-editor-row label:nth-child(3) { grid-column: 2; }
  body.dashboard-page .team-work-remove-task { grid-column: 3; grid-row: 2; }
}
@media (max-width: 520px) {
  body.dashboard-page .team-work-filter-row { align-items: flex-start; flex-direction: column; }
  body.dashboard-page .team-work-filter-row select { width: 100%; }
  body.dashboard-page .team-work-form-grid { grid-template-columns: 1fr; }
  body.dashboard-page .team-work-dialog { inset: max(8px,env(safe-area-inset-top)) 9px max(8px,env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: none; margin: 0; padding: 24px 15px calc(16px + env(safe-area-inset-bottom)); }
  body.dashboard-page .team-work-task-row { grid-template-columns: 1fr; }
  body.dashboard-page .team-work-status { justify-self: start; }
  body.dashboard-page .team-work-progress-form { grid-template-columns: 1fr; }
  body.dashboard-page .team-work-progress-form button { grid-column: auto; }
  body.dashboard-page .team-work-user-summary-heading { flex-direction: column; }
  body.dashboard-page .team-work-user-summary-heading span { text-align: left; }
}

body.dashboard-page .tenant-client-chassis-search { display: grid; gap: 6px; max-width: 460px; margin-top: 15px; color: var(--dashboard-ink); font-size: 11px; font-weight: 700; }
body.dashboard-page .tenant-client-chassis-search input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; color: var(--dashboard-ink); background: var(--dashboard-soft); font: inherit; font-weight: 400; }
body.dashboard-page .tenant-client-chassis-search-result { display: block; margin: 6px 0 10px; color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page [data-client-sale-chassis][hidden] { display: none !important; }

body.dashboard-page .dashboard-custom-layout { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; margin: 18px 0; align-items: stretch; }
body.dashboard-page .dashboard-custom-widget { display: flex; min-width: 0; }
body.dashboard-page .dashboard-custom-widget > :is(.dashboard-branch-goals,.dashboard-debt-panel,.dashboard-summary-card,.dashboard-extra-module) { width: 100%; min-height: 0; flex: 1; }
body.dashboard-page .dashboard-size-small { grid-column: span 2; }
body.dashboard-page .dashboard-size-medium { grid-column: span 3; }
body.dashboard-page .dashboard-size-large { grid-column: 1 / -1; }
body.dashboard-page .dashboard-custom-widget-detail { margin: 7px 2px 0; color: var(--dashboard-muted); font-size: 11px; line-height: 1.5; }
body.dashboard-page .dashboard-design-page { display: grid; gap: 15px; max-width: 1100px; margin: 0 auto; }
body.dashboard-page .dashboard-design-page > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid var(--dashboard-line); border-radius: 12px; background: var(--dashboard-surface); }
body.dashboard-page .dashboard-design-header-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
body.dashboard-page .dashboard-design-workspace { display: grid; grid-template-columns: minmax(220px, .27fr) minmax(0,1fr); gap: 16px; align-items: start; }
body.dashboard-page .dashboard-hidden-panel, body.dashboard-page .dashboard-design-canvas-wrap { min-width: 0; padding: 14px; border: 1px solid var(--dashboard-line); border-radius: 11px; background: var(--dashboard-surface); }
body.dashboard-page .dashboard-hidden-panel { position: sticky; top: 16px; min-height: 260px; }
body.dashboard-page .dashboard-hidden-panel > h3, body.dashboard-page .dashboard-design-canvas-wrap > h3 { margin: 0 0 5px; color: var(--dashboard-ink); font-size: 15px; }
body.dashboard-page .dashboard-hidden-panel > p { margin: 0 0 12px; color: var(--dashboard-muted); font-size: 11px; line-height: 1.5; }
body.dashboard-page .dashboard-design-canvas { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; min-height: 220px; padding: 10px; border: 1px dashed var(--dashboard-line); border-radius: 9px; background: var(--dashboard-soft); }
body.dashboard-page .dashboard-design-tile { grid-column: span 3; display: grid; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--dashboard-line); border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); cursor: grab; box-shadow: 0 5px 18px #02081716; }
body.dashboard-page .dashboard-design-tile.dashboard-size-small { grid-column: span 2; }
body.dashboard-page .dashboard-design-tile.dashboard-size-medium { grid-column: span 3; }
body.dashboard-page .dashboard-design-tile.dashboard-size-large { grid-column: 1 / -1; }
body.dashboard-page .dashboard-design-tile.is-dragging { opacity: .38; cursor: grabbing; }
body.dashboard-page .dashboard-design-tile-heading { display: flex; align-items: flex-start; gap: 10px; }
body.dashboard-page .dashboard-design-drag { color: #7693bb; font-size: 22px; line-height: 1; cursor: grab; }
body.dashboard-page .dashboard-design-tile-heading > div { display: grid; gap: 4px; }
body.dashboard-page .dashboard-design-tile-heading strong { font-size: 13px; }
body.dashboard-page .dashboard-design-tile-heading small { color: var(--dashboard-muted); font-size: 11px; }
body.dashboard-page .dashboard-design-detail { display: grid; gap: 5px; color: var(--dashboard-muted); font-size: 10px; font-weight: 700; }
body.dashboard-page .dashboard-design-detail input { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font: inherit; font-size: 11px; }
body.dashboard-page .dashboard-design-tile-actions { display: flex; gap: 7px; flex-wrap: wrap; }
body.dashboard-page .dashboard-design-tile-actions button { min-height: 33px; padding: 6px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
body.dashboard-page .dashboard-hidden-panel .dashboard-design-tile { grid-column: 1 / -1; margin-top: 9px; padding: 11px; }
body.dashboard-page .dashboard-hidden-panel .dashboard-design-detail { display: none; }
body.dashboard-page .dashboard-hidden-empty, body.dashboard-page .dashboard-canvas-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 110px; padding: 15px; border: 1px dashed var(--dashboard-line); border-radius: 8px; color: var(--dashboard-muted); text-align: center; font-size: 11px; }
body.dashboard-page .dashboard-intro-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
body.dashboard-page .dashboard-intro-actions .operations-button { white-space: nowrap; }
body.dashboard-page .dashboard-design-page h2 { margin: 0; color: var(--dashboard-ink); font: 750 22px Manrope,sans-serif; }
body.dashboard-page .dashboard-design-page > header p:not(.dashboard-design-kicker) { max-width: 760px; margin: 8px 0 0; color: var(--dashboard-muted); font-size: 12px; line-height: 1.6; }
body.dashboard-page .dashboard-design-kicker { margin: 0 0 5px; color: #5486df; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
body.dashboard-page .dashboard-design-status { margin: 0; color: var(--dashboard-muted); font-size: 11px; }
body.dashboard-page .dashboard-design-list { display: grid; gap: 9px; }
body.dashboard-page .dashboard-design-row { display: grid; gap: 12px; padding: 13px 15px; border: 1px solid var(--dashboard-line); border-radius: 9px; background: var(--dashboard-surface); }
body.dashboard-page .dashboard-design-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.dashboard-page .dashboard-design-title > label { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.dashboard-page .dashboard-design-title input[type="checkbox"] { width: 17px; height: 17px; accent-color: #4d82e5; }
body.dashboard-page .dashboard-design-title label span { display: grid; gap: 3px; }
body.dashboard-page .dashboard-design-title strong { color: var(--dashboard-ink); font-size: 12px; }
body.dashboard-page .dashboard-design-title small { color: var(--dashboard-muted); font-size: 10px; }
body.dashboard-page .dashboard-design-order { display: flex; gap: 5px; }
body.dashboard-page .dashboard-design-order button { width: 30px; height: 28px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); }
body.dashboard-page .dashboard-design-order button:disabled { opacity: .4; }
body.dashboard-page .dashboard-design-fields { display: grid; grid-template-columns: minmax(140px,.35fr) minmax(240px,1fr); gap: 10px; }
body.dashboard-page .dashboard-design-fields label { display: grid; gap: 5px; color: var(--dashboard-muted); font-size: 10px; font-weight: 700; }
body.dashboard-page .dashboard-design-fields :is(input,select) { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--dashboard-line); border-radius: 6px; color: var(--dashboard-ink); background: var(--dashboard-soft); font: inherit; font-size: 11px; }
@media (max-width: 1100px) { body.dashboard-page .dashboard-custom-layout { grid-template-columns: repeat(4,minmax(0,1fr)); } body.dashboard-page .dashboard-size-small, body.dashboard-page .dashboard-size-medium { grid-column: span 2; } }
@media (max-width: 850px) { body.dashboard-page .dashboard-custom-layout { grid-template-columns: repeat(2,minmax(0,1fr)); } body.dashboard-page .dashboard-size-small, body.dashboard-page .dashboard-size-medium { grid-column: span 1; } body.dashboard-page .dashboard-size-large { grid-column: 1 / -1; } body.dashboard-page .dashboard-design-workspace { grid-template-columns: 1fr; } body.dashboard-page .dashboard-hidden-panel { position: static; } }
@media (max-width: 600px) { body.dashboard-page .dashboard-custom-layout { grid-template-columns: 1fr; } body.dashboard-page .dashboard-custom-widget { grid-column: 1 / -1; } body.dashboard-page .dashboard-design-page > header { flex-direction: column; padding: 16px; } body.dashboard-page .dashboard-design-fields { grid-template-columns: 1fr; } body.dashboard-page .dashboard-design-header-actions { width: 100%; } body.dashboard-page .dashboard-design-canvas { grid-template-columns: 1fr; } body.dashboard-page .dashboard-design-tile.dashboard-size-small, body.dashboard-page .dashboard-design-tile.dashboard-size-medium, body.dashboard-page .dashboard-design-tile.dashboard-size-large { grid-column: 1 / -1; } }
@media print { body.dashboard-page .tenant-client-chassis-search, body.dashboard-page .tenant-client-chassis-search-result { display: none !important; } }

/* Keep complete figures inside their cards at every viewport and zoom level. */
body.dashboard-page :is(.dashboard-summary-card, .dashboard-debt-panel, .dashboard-overview-stats article, .dashboard-module-summary > div, .operations-stat, .accounting-stat, .summary-card > div) { min-width: 0; }
body.dashboard-page :is(.dashboard-debt-stats, .dashboard-overview-stats, .dashboard-module-summary, .route-report-stats, .operations-stat, .accounting-stat, .summary-card) strong,
body.dashboard-page .route-report-stats article > strong { display: block; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: normal; font-size: 17px; line-height: 1.4; transition: none; animation: none; }
/* Type size follows card width without a resize/DOM-observer feedback loop. */
body.dashboard-page .dashboard-stat-link,
body.dashboard-page .dashboard-overview-stats article { container-type: inline-size; }
body.dashboard-page .dashboard-debt-stats .dashboard-stat-link > strong,
body.dashboard-page .dashboard-overview-stats article > strong { font-size: clamp(12px, 11cqi, 17px); }
body.dashboard-page strong.value-can-wrap,
body.dashboard-page .route-report-stats article > strong.value-can-wrap { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
body.dashboard-page :is(.dashboard-debt-heading > div, .core-dashboard-intro > div) { min-width: 0; overflow-wrap: anywhere; }
body.dashboard-page :is(.dashboard-stat-link > span, .dashboard-stat-link > small, .dashboard-debt-heading p, .accounting-module-copy) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
body.dashboard-page .dashboard-debt-heading { flex-wrap: wrap; }
body.dashboard-page .dashboard-debt-heading > div { flex: 1 1 210px; }
body.dashboard-page .dashboard-debt-heading > a { white-space: normal; }

body.dashboard-page .company-avatar { border: 0; border-radius: 2px; background: transparent; box-shadow: none; overflow: visible; }
body.dashboard-page .company-avatar[hidden] { display: none; }
body.dashboard-page .company-avatar img { padding: 0; border: 0; border-radius: 2px; }
body.dashboard-page .company-avatar:hover, body.dashboard-page .company-avatar:focus-visible { box-shadow: none; }
body.dashboard-page .company-avatar .avatar-edit-mark { border-color: #15243b; border-radius: 50%; }
body.dashboard-page .company-avatar .avatar-edit-mark { color: #fff; background: #4775d1; }

body.dashboard-page .company-storage-panel { margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--dashboard-line); border-radius: 9px; color: var(--dashboard-ink); background: var(--dashboard-surface); font-size: 12px; }
body.dashboard-page .company-storage-panel[hidden] { display: none; }
body.dashboard-page .company-storage-panel > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; cursor: pointer; }
body.dashboard-page .company-storage-panel > summary::after { content: '⌄'; margin-left: auto; font-size: 17px; }
body.dashboard-page .company-storage-panel[open] > summary::after { content: '⌃'; }
body.dashboard-page .company-storage-panel summary:focus-visible { outline: 2px solid #7da4ff; outline-offset: 5px; }
body.dashboard-page .company-storage-capacity { color: var(--dashboard-muted); }
body.dashboard-page .company-storage-panel progress { appearance: none; width: min(180px, 35%); height: 8px; margin-left: 10px; overflow: hidden; border: 0; border-radius: 99px; color: #4d8eeb; background: var(--dashboard-line); accent-color: #4d8eeb; }
body.dashboard-page .company-storage-panel progress::-webkit-progress-bar { background: var(--dashboard-line); border-radius: 99px; }
body.dashboard-page .company-storage-panel progress::-webkit-progress-value { background: #4d8eeb; border-radius: 99px; }
body.dashboard-page .company-storage-panel progress::-moz-progress-bar { background: #4d8eeb; border-radius: 99px; }
body.dashboard-page .storage-near-capacity progress { accent-color: #dd9141; }
body.dashboard-page .storage-near-capacity progress::-webkit-progress-value { background: #dd9141; }
body.dashboard-page .company-storage-detail { border-top: 1px solid var(--dashboard-line); margin-top: 12px; padding-top: 12px; }
body.dashboard-page .company-storage-detail dl { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 0; }
body.dashboard-page .company-storage-detail dl > div { display: grid; gap: 5px; }
body.dashboard-page .company-storage-detail dt, body.dashboard-page .company-storage-detail p { color: var(--dashboard-muted); font-size: 11px; line-height: 1.6; }
body.dashboard-page .company-storage-detail dd { margin: 0; font-weight: 700; }
body.dashboard-page .company-storage-detail p:last-child { margin-bottom: 0; }

.core-help-tooltip { position: fixed; z-index: 20000; display: grid; gap: 6px; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 12px 14px; border: 1px solid var(--dashboard-line, #2b405c); border-radius: 9px; color: var(--dashboard-ink, #e5ecf5); background: var(--dashboard-surface, #14243a); box-shadow: 0 8px 30px rgb(0 0 0 / .25); font: 12px/1.55 'DM Sans', sans-serif; overflow-wrap: anywhere; pointer-events: none; }
.core-help-tooltip[hidden] { display: none; }
.core-help-tooltip strong { font-size: 13px; }
.core-help-tooltip span { color: var(--dashboard-muted, #a7b5c8); }
@media (max-width: 640px) {
  body.dashboard-page .dashboard-debt-heading > div { flex-basis: auto; }
  body.dashboard-page .company-storage-panel { padding: 10px 12px; font-size: 11px; }
  body.dashboard-page .company-storage-panel progress { width: 70px; margin-left: 0; }
}
@media print { .company-storage-panel, .core-help-tooltip { display: none !important; } }

.dashboard-welcome { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.core-print-page { margin-left:auto; }
body.dashboard-page .dashboard-stock-locations { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 8px; margin-top: 10px; }
body.dashboard-page .dashboard-stock-location-link { display: grid; gap: 4px; padding: 9px 11px; border: 1px solid var(--dashboard-line); border-radius: 7px; color: var(--dashboard-ink); background: var(--dashboard-surface); text-decoration: none; }
body.dashboard-page .dashboard-stock-location-link:hover { border-color: var(--dashboard-blue); background: var(--dashboard-soft); }
body.dashboard-page .dashboard-stock-location-link > span { overflow: hidden; color: var(--dashboard-muted); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body.dashboard-page .dashboard-stock-location-link > strong { color: var(--dashboard-ink); font: 700 18px Manrope,sans-serif; }
body.dashboard-page .dashboard-stock-location-link > small { color: var(--dashboard-muted); font-size: 9px; }
:root[data-theme="dark"] body.dashboard-page .dashboard-stock-location-link { border-color: #263954; background: #0d1a2d; }
/* Panel de administración central RootFocus */
body.dashboard-page .root-admin-home { margin-bottom: 24px; padding: 22px; border: 1px solid var(--dashboard-line, #e4e9f1); border-radius: 12px; background: var(--dashboard-surface, #fff); }
body.dashboard-page .root-admin-heading, body.dashboard-page .root-reports-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
body.dashboard-page .root-admin-heading h2, body.dashboard-page .root-reports-heading h2 { margin: 0; color: var(--dashboard-ink, #1b2c43); font: 700 22px Manrope,sans-serif; }
body.dashboard-page .root-admin-heading p:not(.panel-kicker), body.dashboard-page .root-reports-heading p:not(.panel-kicker) { margin: 5px 0 0; color: var(--dashboard-muted, #65758b); }
body.dashboard-page .root-admin-actions { display: flex; flex-wrap: wrap; gap: 9px; }
body.dashboard-page .root-company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
body.dashboard-page .root-company-card { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px; border: 1px solid var(--dashboard-line, #e4e9f1); border-radius: 10px; background: var(--dashboard-bg, #f8fafc); color: var(--dashboard-ink, #1b2c43); cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
body.dashboard-page .root-company-card:hover:not(:disabled), body.dashboard-page .root-company-card:focus-visible { transform: translateY(-2px); border-color: #819cf2; box-shadow: 0 8px 20px #172d5017; }
body.dashboard-page .root-company-card:disabled { opacity: .55; cursor: not-allowed; }
body.dashboard-page .root-company-logo { width: 76px; height: 76px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #e9eef9; color: #5169aa; font-size: 21px; font-weight: 800; }
body.dashboard-page .root-company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dashboard-surface, #fff); }
body.dashboard-page .root-company-card > strong { text-align: center; font-size: 14px; }
body.dashboard-page .root-company-card > small, body.dashboard-page .root-company-empty { color: var(--dashboard-muted, #65758b); font-size: 12px; }
body.dashboard-page .root-company-empty { grid-column: 1/-1; padding: 24px; text-align: center; }
body.dashboard-page .root-company-reports { margin-top: 20px; padding: 18px; border: 1px solid var(--dashboard-line, #e4e9f1); border-radius: 10px; background: var(--dashboard-bg, #f8fafc); }
body.dashboard-page .root-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
body.dashboard-page .root-report-note { margin: 14px 0 0; color: var(--dashboard-muted, #65758b); font-size: 12px; }
:root[data-theme="dark"] body.dashboard-page .root-admin-home,
:root[data-theme="dark"] body.dashboard-page .root-company-reports { border-color: #2b405c; background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .root-company-card { border-color: #34445a; color: #e5ecf5; background: #0d1a2d; }
:root[data-theme="dark"] body.dashboard-page .root-company-card:hover:not(:disabled),
:root[data-theme="dark"] body.dashboard-page .root-company-card:focus-visible { border-color: #77a4fa; box-shadow: 0 8px 22px rgb(0 0 0 / .28); }
:root[data-theme="dark"] body.dashboard-page .root-company-logo { color: #cfe0ff; background: #203b61; }
:root[data-theme="dark"] body.dashboard-page .root-company-logo img { background: #14243a; }
:root[data-theme="dark"] body.dashboard-page .root-company-card > small,
:root[data-theme="dark"] body.dashboard-page .root-company-empty,
:root[data-theme="dark"] body.dashboard-page .root-admin-heading p:not(.panel-kicker),
:root[data-theme="dark"] body.dashboard-page .root-reports-heading p:not(.panel-kicker),
:root[data-theme="dark"] body.dashboard-page .root-report-note { color: #c1cede; }
@media (max-width: 640px) { body.dashboard-page .root-admin-heading, body.dashboard-page .root-reports-heading { align-items: flex-start; flex-direction: column; } body.dashboard-page .root-admin-home { padding: 15px; } }
@media screen and (min-width: 801px) and (hover: hover) and (pointer: fine) {
  html { zoom:1.15; }
}

/* Mobile layout hardening: keep controls reachable and prevent page-level overflow. */
@media screen and (max-width: 800px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body.dashboard-page { min-width: 0; width: 100%; }
  body.dashboard-page .dashboard-main-shell,
  body.dashboard-page .dashboard-content,
  body.dashboard-page #module-content,
  body.dashboard-page #module-content > * { min-width: 0; max-width: 100%; }

  body.dashboard-page #module-content :is(.table-scroll, [class*="table-wrap"], [class*="table-scroll"], [class*="table-wrapper"], [class*="table-container"]) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.dashboard-page #module-content :is([class$="-actions"], [class$="-toolbar"], [class$="-filters"], [class$="-controls"]) {
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  body.dashboard-page :is(button, a[role="button"], .sidebar-link),
  body:not(.dashboard-page) :is(button, a[role="button"]) {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  body :is(input[type="checkbox"], input[type="radio"]) { min-width: 20px; min-height: 20px; }
  body :is(dialog.user-dialog, dialog.team-work-dialog, dialog.pwa-install-dialog) {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    overscroll-behavior: contain;
  }
  body :is(.dialog-actions, .team-work-dialog-actions) { flex-wrap: wrap; gap: 8px; }
  body :is(.dialog-actions, .team-work-dialog-actions) > button { min-height: 44px; flex: 1 1 125px; }
}

@media screen and (max-width: 640px) {
  body.dashboard-page .dashboard-topbar {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }
  body.dashboard-page .dashboard-topbar-start { flex: 1 1 0; min-width: 0; gap: 6px; }
  body.dashboard-page .topbar-sidebar-toggle { width: 44px; height: 44px; flex-basis: 44px; }
  body.dashboard-page .dashboard-logo-canvas {
    width: clamp(48px, calc(100vw - 352px), 132px);
    min-width: 48px;
    max-width: 100%;
    height: 48px;
    flex: 0 1 auto;
  }
  body.dashboard-page .dashboard-user-area { flex: 0 1 auto; min-width: 0; max-width: 62%; gap: 3px; }
  body.dashboard-page .dashboard-sidebar {
    z-index: 51;
    top: calc(70px + env(safe-area-inset-top));
    bottom: 0;
    width: 0;
    padding: 8px 0 calc(12px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
  }
  body.dashboard-page .dashboard-sidebar.is-collapsed { width: 0; padding-inline: 0; }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) {
    width: min(300px, calc(100vw - 56px));
    padding-inline: 10px;
    pointer-events: auto;
  }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) ~ .dashboard-main-shell,
  body.dashboard-page .dashboard-sidebar.is-mobile-open ~ .dashboard-main-shell { margin-left: 0; }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) ~ .dashboard-backdrop,
  body.dashboard-page .dashboard-sidebar.is-mobile-open ~ .dashboard-backdrop {
    position: fixed;
    z-index: 50;
    inset: calc(70px + env(safe-area-inset-top)) 0 0;
    display: block;
    background: rgb(5 13 27 / .58);
  }
  body.dashboard-page .dashboard-main-shell { width: 100%; margin-left: 0; }
  body.dashboard-page .dashboard-content { width: calc(100% - 28px); padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  body.dashboard-page .dashboard-user-area .topbar-user { display: none; }
  body.dashboard-page .dashboard-user-area .company-avatar { display: grid; width: 40px; height: 44px; flex: 0 0 40px; }
  body.dashboard-page .dashboard-user-area .company-avatar[hidden] { display: none !important; }
  body.dashboard-page .dashboard-user-area .user-avatar-upload { display: grid; width: 40px; min-width: 40px; height: 44px; min-height: 44px; flex: 0 0 40px; }
  body.dashboard-page .dashboard-user-area .user-avatar-upload .user-avatar { width: 30px; height: 30px; }
  body.dashboard-page .dashboard-user-area .profile-link,
  body.dashboard-page .dashboard-user-area .pwa-install-button,
  body.dashboard-page .topbar-logout-button,
  body.dashboard-page .root-company-exit:not([hidden]) {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 40px;
    justify-content: center;
    padding: 0;
  }
  body.dashboard-page .root-company-exit[hidden] { display: none !important; }
  body.dashboard-page .root-company-exit:not([hidden]) { font-size: 0; }
  body.dashboard-page .root-company-exit:not([hidden])::after { content: '↶'; font: 700 20px/1 Manrope, sans-serif; }
  body.dashboard-page .dashboard-user-area .profile-link-icon { display: grid; width: 23px; height: 23px; place-items: center; }
  body.dashboard-page .dashboard-user-area .profile-link-icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  body.dashboard-page .topbar-logout-button .logout-label,
  body.dashboard-page .pwa-install-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  body.dashboard-page .pwa-install-button svg { width: 20px; height: 20px; }
  body.dashboard-page .dashboard-sidebar .sidebar-link { min-height: 48px; }
  body.dashboard-page :is(.dashboard-welcome, .dashboard-design-page > header, .root-admin-heading, .root-reports-heading) { min-width: 0; }
  body.dashboard-page .dashboard-welcome { flex-wrap: wrap; }
  body:not(.dashboard-page) .page-shell { min-width: 0; width: 100%; }
  body:not(.dashboard-page) .site-footer { flex-wrap: wrap; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  body:not(.dashboard-page) .pwa-install-button { min-height: 44px; }
  .pwa-install-dialog { width: calc(100vw - 24px); margin: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
}

@media screen and (max-width: 390px) {
  body.dashboard-page .dashboard-topbar { gap: 4px; }
  body.dashboard-page .dashboard-topbar-start { gap: 4px; }
  body.dashboard-page .dashboard-logo-canvas { width: 48px; min-width: 48px; }
  body.dashboard-page .dashboard-user-area { gap: 2px; }
  body.dashboard-page .dashboard-user-area:has(#root-company-exit:not([hidden])) .profile-link { display: none; }
}

@media screen and (max-width: 340px) {
  body.dashboard-page .dashboard-user-area { gap: 0; }
}

/* Escritorio: deja visibles la marca y los controles de cuenta; revela el menú al acercar el cursor. */
@media screen and (min-width: 801px) and (hover: hover) and (pointer: fine) {
  body.dashboard-page .dashboard-sidebar.is-collapsed {
    width: 12px;
    padding-inline: 0;
    box-shadow: none;
  }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-navigation-region,
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-bottom {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-head {
    width: 12px;
    height: 48px;
    justify-content: center;
    padding-inline: 0;
    overflow: hidden;
  }
  body.dashboard-page .dashboard-sidebar.is-collapsed .sidebar-menu-toggle {
    opacity: 0;
  }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) .sidebar-menu-toggle {
    opacity: 1;
  }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) {
    width: 254px;
    padding: 18px 10px 14px;
  }
  body.dashboard-page .dashboard-sidebar:not(.is-collapsed) ~ .dashboard-main-shell {
    margin-left: 254px;
  }
  body.dashboard-page .dashboard-sidebar.is-collapsed ~ .dashboard-main-shell {
    margin-left: 12px;
  }
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .user-avatar-upload,
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .company-avatar,
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .topbar-user,
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .topbar-profile-name-button,
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .root-company-exit,
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .pwa-install-button {
    display: none !important;
  }
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .profile-link {
    width: 40px;
    min-width: 40px;
    justify-content: center;
    padding-inline: 0;
  }
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .topbar-logout-button {
    width: 40px;
    justify-content: center;
    padding-inline: 0;
  }
  body.dashboard-page:has(.dashboard-sidebar.is-collapsed) .dashboard-user-area .logout-label {
    display: none;
  }
}
