:root {
    color-scheme: light;
    --background: #eef4f8;
    --foreground: #152033;
    --card: rgba(255, 255, 255, 0.72);
    --card-strong: rgba(255, 255, 255, 0.9);
    --muted: rgba(219, 229, 236, 0.78);
    --muted-foreground: #63728a;
    --primary: #2563eb;
    --primary-foreground: #f8fbff;
    --accent: #4fd1b3;
    --accent-foreground: #092f31;
    --danger: #dc2626;
    --border: rgba(100, 116, 139, 0.28);
    --shadow: rgba(15, 23, 42, 0.22);
    --radius: 14px;
    --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark {
    color-scheme: dark;
    --background: oklch(0.115 0.04 248);
    --foreground: oklch(0.98 0.006 250);
    --card: oklch(0.23 0.055 248 / 58%);
    --card-strong: oklch(0.18 0.05 248 / 84%);
    --muted: oklch(0.22 0.035 248 / 56%);
    --muted-foreground: oklch(0.72 0.032 242);
    --primary: oklch(0.78 0.11 248);
    --primary-foreground: oklch(0.105 0.032 248);
    --accent: oklch(0.82 0.13 166);
    --accent-foreground: oklch(0.12 0.035 166);
    --danger: oklch(0.68 0.18 25);
    --border: oklch(0.86 0.04 238 / 18%);
    --shadow: rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
}

.glass-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--background) 88%, #ffffff) 0%, var(--background) 48%, color-mix(in srgb, var(--background) 74%, var(--primary)) 100%),
        linear-gradient(180deg, color-mix(in srgb, var(--primary) 18%, transparent), transparent 46%);
}

.glass-page::before,
.glass-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.glass-page::before {
    background-image:
        linear-gradient(color-mix(in srgb, var(--foreground) 9%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--foreground) 9%, transparent) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
    opacity: 0.36;
}

.glass-page::after {
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
        linear-gradient(300deg, color-mix(in srgb, var(--primary) 20%, transparent), transparent 36%);
    opacity: 0.8;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand small {
    display: block;
    color: var(--muted-foreground);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-icon,
.card-icon,
.avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 800;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 12px;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 22%, transparent);
}

.card-icon,
.avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 12px;
}

.surface,
.soft,
.metric-card,
.auth-card,
.invite-card,
.modal-card,
.drawer-panel,
.preview-shell,
.feature-card,
.connection-card,
.account-badge {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 28px 80px -42px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(132%);
}

.soft,
.connection-card {
    background: color-mix(in srgb, var(--card) 72%, transparent);
}

.btn,
.icon-button,
.icon-link,
.danger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--primary) 18%, transparent);
}

.btn-outline {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 58%, transparent);
    color: var(--foreground);
}

.btn-danger {
    background: color-mix(in srgb, var(--danger) 15%, transparent);
    color: var(--danger);
}

.btn-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.icon-button {
    width: 38px;
    height: 38px;
    background: color-mix(in srgb, var(--card) 54%, transparent);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.icon-button.primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.icon-link,
.danger-link {
    min-height: 30px;
    padding: 0 9px;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
}

.danger-link {
    color: var(--danger);
}

.theme-control {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
}

.theme-control button {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-foreground);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.theme-control button.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.eyebrow,
.eyebrow-text {
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--card) 50%, transparent);
    padding: 8px 12px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--primary);
}

.lead {
    color: var(--muted-foreground);
    font-size: 18px;
    line-height: 1.7;
}

.landing-page {
    padding-bottom: 56px;
}

.landing-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px;
}

.landing-links,
.nav-actions,
.hero-actions,
.trust-row,
.header-actions,
.heading-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-links {
    color: var(--muted-foreground);
    font-size: 14px;
}

.landing-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 62px 24px 96px;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 28px 0 0;
    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.95;
    font-weight: 800;
}

.hero-copy h1 span {
    color: var(--primary);
}

.hero-copy .lead {
    max-width: 600px;
    margin: 24px 0 0;
}

.hero-actions {
    margin-top: 34px;
    flex-wrap: wrap;
}

.trust-row {
    margin-top: 28px;
    flex-wrap: wrap;
    color: var(--muted-foreground);
    font-size: 12px;
}

.hero-preview {
    position: relative;
}

.preview-shell {
    border-radius: 28px;
    padding: 18px;
}

.preview-top,
.board-heading,
.side-title,
.section-title,
.detail-head,
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.preview-top {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    color: var(--muted-foreground);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.preview-top strong {
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary);
    padding: 5px 9px;
}

.mini-metrics,
.workflow-grid,
.feature-grid,
.metrics-grid,
.detail-items,
.movement-grid {
    display: grid;
    gap: 16px;
}

.mini-metrics {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 0;
}

.mini-metrics div,
.service-board,
.job-mini,
.soft-card,
.detail-items div,
.assignment-card,
.stock-picker article,
.drawer-stock-list article,
.staged-card,
.staged-list article,
.supply-list article,
.movement-grid article {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 52%, transparent);
}

.mini-metrics div {
    padding: 14px;
}

.mini-metrics small,
.job-mini small,
.board-heading small,
.side-panel small,
.data-table small,
.watchlist small,
.metric-card small {
    display: block;
    color: var(--muted-foreground);
    font-size: 12px;
}

.mini-metrics strong {
    display: block;
    margin-top: 14px;
    font-size: 24px;
}

.service-board {
    padding: 18px;
}

.job-mini {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
}

.job-mini em {
    color: var(--muted-foreground);
    font-size: 11px;
    font-style: normal;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot.warning {
    background: #f59e0b;
}

.dot.muted {
    background: var(--muted);
}

.dot.primary {
    background: var(--primary);
}

.workflow-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

.soft-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 20px;
}

.soft-card h2,
.feature-card h3,
.section-title h2,
.side-panel strong,
.movement-card h2 {
    margin: 0;
}

.soft-card p,
.feature-card p,
.section-heading p,
.page-heading p,
.section-title p,
.movement-card p,
.auth-main p,
.auth-side p,
.invite-heading p,
.modal-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.feature-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 68px;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card {
    border-radius: 20px;
    padding: 26px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 0;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 12px;
}

.site-footer a {
    color: var(--primary);
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    width: min(100%, 980px);
    min-height: 600px;
    overflow: hidden;
    border-radius: 28px;
}

.auth-side,
.auth-main,
.invite-card {
    display: flex;
    flex-direction: column;
}

.auth-side {
    justify-content: space-between;
    border-right: 1px solid var(--border);
    padding: 42px;
    background: color-mix(in srgb, var(--card) 64%, transparent);
}

.auth-side h1,
.auth-main h2,
.invite-heading h1 {
    margin: 12px 0 0;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
}

.auth-features {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 45%, transparent);
    backdrop-filter: blur(8px);
}

.auth-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-feature-icon svg {
    width: 17px;
    height: 17px;
}

.auth-feature-item strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2px;
}

.auth-feature-item p {
    font-size: 12px;
    color: var(--muted-foreground);
    line-height: 1.4;
    margin: 0;
}

.auth-main {
    justify-content: center;
    padding: 42px;
}

.mobile-brand {
    display: none;
    margin-bottom: 34px;
}

.auth-footnote {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
}

.invite-card {
    width: min(100%, 520px);
    gap: 26px;
    border-radius: 22px;
    padding: 34px;
}

.form-stack {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.field {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.required-asterisk {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-field input,
.stock-picker input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-strong) 74%, transparent);
    color: var(--foreground);
    outline: none;
}

.field input,
.field select,
.search-field input,
.stock-picker input {
    height: 44px;
    padding: 0 12px;
}

.stock-image-field input[type="file"] {
    height: auto;
    cursor: pointer;
    padding: 10px 12px;
    line-height: 1.35;
}

.stock-image-field input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--primary-foreground);
    cursor: pointer;
    margin-right: 12px;
    padding: 9px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
}

.stock-image-field small {
    color: var(--muted-foreground);
    font-size: 11px;
    font-weight: 400;
}

.stock-product-picker {
    position: relative;
    z-index: 8;
}

.stock-product-picker input {
    padding-right: 42px;
}

.stock-product-picker::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 43px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: var(--muted-foreground);
    pointer-events: none;
    transform: rotate(45deg);
    transition: transform 0.16s ease, color 0.16s ease;
}

.stock-product-picker.open::after {
    color: var(--primary);
    transform: translateY(3px) rotate(225deg);
}

.stock-product-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--border) 86%, white);
    border-radius: 14px;
    background:
        linear-gradient(145deg, color-mix(in srgb, white 70%, transparent), color-mix(in srgb, var(--card) 78%, transparent)),
        color-mix(in srgb, var(--card-strong) 92%, white);
    box-shadow: 0 24px 54px color-mix(in srgb, var(--foreground) 16%, transparent);
    padding: 8px;
    backdrop-filter: blur(18px);
}

.stock-product-options[hidden] {
    display: none;
}

.stock-product-options [hidden] {
    display: none !important;
}

.stock-product-options .is-filtered-out {
    display: none !important;
}

.stock-product-options button {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    padding: 10px;
    text-align: left;
}

.stock-product-options button:hover,
.stock-product-options button:focus-visible {
    background: color-mix(in srgb, var(--primary) 11%, transparent);
    outline: 0;
}

.stock-product-options strong {
    font-size: 13px;
    font-weight: 600;
}

.stock-product-options span,
.stock-product-options p {
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.stock-product-options p {
    margin: 0;
    padding: 12px 10px;
}

.password-control {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: normal;
}

.password-control input {
    padding-right: 46px;
}

.password-control button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-foreground);
    padding: 0;
    transform: translateY(-50%);
}

.password-control button:hover,
.password-control button:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--foreground);
}

.password-control span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-control span[hidden] {
    display: none;
}

.password-control .autoenablt-icon, .fleetline-icon,
.dashboard-page .password-control .autoenablt-icon, .fleetline-icon {
    display: block;
    width: 17px;
    height: 17px;
    color: currentColor;
    opacity: 1;
    stroke-width: 2;
}

.field textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-field input:focus {
    border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.alert {
    border-radius: 14px;
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: color-mix(in srgb, #10b981 14%, transparent);
    color: color-mix(in srgb, #10b981 72%, var(--foreground));
}

.alert-error {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    color: var(--danger);
}

.alert-muted {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--muted) 70%, transparent);
    color: var(--muted-foreground);
}

.alert-muted span {
    word-break: break-all;
}

.dashboard-page {
    height: 100vh;
    overflow: hidden;
}

.dashboard-frame {
    display: flex;
    height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    width: 248px;
    height: 100vh;
    flex-shrink: 0;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: color-mix(in srgb, var(--card-strong) 72%, transparent);
    padding: 22px 16px;
    backdrop-filter: blur(22px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-nav {
    display: grid;
    gap: 8px;
    margin-top: 46px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.2) transparent;
}

.side-nav::-webkit-scrollbar {
    width: 5px;
}

.side-nav::-webkit-scrollbar-track {
    background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 999px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.45);
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 13px;
    color: var(--muted-foreground);
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
}

.side-nav a.active,
.side-nav a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.nav-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    font-size: 11px;
}

.connection-card {
    display: grid;
    gap: 8px;
    margin-top: auto;
    border-radius: 18px;
    padding: 16px;
    font-size: 14px;
}

.connection-card span {
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.5;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.sidebar-user > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-user strong,
.sidebar-user small {
    display: block;
}

.sidebar-user small {
    color: var(--muted-foreground);
}

.dashboard-main {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.dashboard-header {
    position: relative;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--card) 64%, transparent);
    padding: 0 32px;
    backdrop-filter: blur(18px);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted-foreground);
    font-size: 14px;
}

.breadcrumbs strong {
    color: var(--foreground);
}

.workspace {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.dashboard-page .site-footer {
    max-width: 1500px;
    padding-inline: 0;
}

.dashboard-scroll {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--primary) 72%, var(--foreground)) transparent;
}

.page-heading {
    align-items: flex-end;
    margin: 0 auto;
    max-width: 1500px;
}

.page-heading h1 {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
}

.page-heading p {
    max-width: 620px;
}

.account-badge {
    display: grid;
    gap: 4px;
    min-width: 210px;
    border-radius: 15px;
    padding: 14px;
    font-size: 14px;
}

.account-badge span {
    color: var(--muted-foreground);
    font-size: 12px;
}

.overview-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 22px;
    align-items: stretch;
    max-width: 1500px;
    margin: 0 auto;
}

.command-copy,
.command-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
    box-shadow: 0 18px 54px -42px var(--shadow);
    backdrop-filter: blur(18px);
}

.command-copy {
    padding: 22px;
}

.command-copy h1 {
    max-width: 760px;
    margin: 10px 0 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.04;
}

.command-copy p:last-child {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted-foreground);
    line-height: 1.55;
}

.command-panel {
    display: grid;
    align-content: space-between;
    gap: 18px;
    padding: 18px;
}

.operator-chip {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.operator-chip > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 12px;
    font-weight: 800;
}

.operator-chip strong,
.operator-chip small {
    display: block;
}

.operator-chip small {
    margin-top: 3px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ops-metrics {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1500px;
    margin: 16px auto 0;
}

.ops-metric {
    display: grid;
    align-content: space-between;
    min-height: 118px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--card) 68%, transparent);
    box-shadow: 0 20px 62px -48px var(--shadow);
    padding: 16px;
}

.ops-metric.primary {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, transparent), transparent 70%),
        color-mix(in srgb, var(--card) 78%, transparent);
}

.ops-metric span,
.ops-metric small {
    color: var(--muted-foreground);
    font-size: 12px;
}

.ops-metric span {
    font-weight: 800;
    text-transform: uppercase;
}

.ops-metric strong {
    display: block;
    margin: 12px 0 4px;
    font-size: 32px;
    line-height: 1;
}

.ops-metric.primary strong {
    font-size: 42px;
}

.pipeline-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 1500px;
    margin: 14px auto 0;
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
}

.pipeline-strip article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: color-mix(in srgb, var(--card) 44%, transparent);
    padding: 14px 16px;
}

.pipeline-strip span {
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pipeline-strip strong {
    font-size: 24px;
}

.overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 390px;
    gap: 18px;
    max-width: 1500px;
    margin: 18px auto 0;
}

.board-panel,
.risk-panel,
.pulse-mini {
    border-radius: 18px;
}

.overview-side {
    display: grid;
    align-content: start;
    gap: 18px;
}

.section-title.dense {
    gap: 14px;
}

.section-title.dense h2 {
    font-size: 18px;
}

.section-title.dense p {
    margin: 5px 0 0;
    font-size: 13px;
}

.compact-list {
    gap: 10px;
    margin-top: 16px;
}

.compact-list article {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 11px;
}

.compact-list .card-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}

.pulse-mini h2 {
    margin: 0;
    font-size: 18px;
}

.pulse-mini p {
    margin: 6px 0 0;
    color: var(--muted-foreground);
    font-size: 13px;
}

.pulse-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.pulse-rows article {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--card) 48%, transparent);
    padding: 12px;
}

.pulse-rows span {
    display: block;
    color: var(--muted-foreground);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.pulse-rows strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.1;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1500px;
    margin: 32px auto 0;
}

.metrics-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 22px;
}

.metric-card span,
.metric-card small {
    color: var(--muted-foreground);
}

.metric-card strong {
    display: block;
    margin-top: 20px;
    font-size: 36px;
    line-height: 1;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.9fr;
    gap: 24px;
    max-width: 1500px;
    margin: 28px auto 0;
}

.panel-padded {
    border-radius: 20px;
    padding: 22px;
}

.section-title {
    align-items: center;
}

.search-field {
    display: grid;
    gap: 7px;
    min-width: 220px;
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 700;
}

.search-field.full {
    min-width: 0;
}

.table-wrap {
    margin-top: 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
    vertical-align: middle;
}

.data-table td {
    color: color-mix(in srgb, var(--foreground) 84%, var(--muted-foreground));
}

.data-table td strong,
.data-table td span {
    display: block;
}

.data-table .avatar-mini {
    display: inline-flex;
    margin-right: 8px;
    vertical-align: middle;
}

.data-table .status-pill {
    display: inline-flex;
}

.actions-col,
.actions-cell {
    text-align: right;
}

.actions-cell {
    white-space: nowrap;
}

.empty-table,
.empty-state {
    color: var(--muted-foreground);
    text-align: center;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 16px;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.status-warning {
    background: rgba(251, 146, 60, 0.18);
    color: #f97316;
}

.status-primary {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary);
}

.status-success {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.status-danger {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    color: var(--danger);
}

.status-muted {
    background: var(--muted);
    color: var(--muted-foreground);
}

.watchlist {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.watchlist article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 13px;
}

.watchlist em {
    display: grid;
    gap: 4px;
    text-align: right;
    font-style: normal;
    font-weight: 800;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.pulse-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 1500px;
    margin: 24px auto 0;
    border-radius: 20px;
    padding: 28px;
}

.pulse-card h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 32px);
}

.pulse-stats {
    display: flex;
    gap: 38px;
}

.pulse-stats strong {
    display: grid;
    gap: 4px;
    font-size: 30px;
}

.pulse-stats small {
    color: var(--muted-foreground);
    font-size: 12px;
}

.movement-card,
.detail-grid,
.overview-grid,
.metrics-grid,
.page-heading {
    width: 100%;
}

.movement-card {
    max-width: 1500px;
    margin: 24px auto 0;
    border-radius: 20px;
}

.movement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.movement-grid article {
    padding: 18px;
}

.movement-grid span {
    color: var(--muted-foreground);
    font-size: 12px;
}

.movement-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

.detail-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1500px;
    margin: 0 auto 24px;
}

.detail-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    max-width: 1500px;
    margin: 0 auto;
}

.detail-head {
    align-items: flex-start;
}

.detail-head h1 {
    margin: 12px 0 0;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
}

.status-card {
    width: 280px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 50%, transparent);
    padding: 16px;
}

.status-card > span {
    color: var(--muted-foreground);
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.status-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-top: 15px;
}

.status-steps i {
    height: 6px;
    border-radius: 999px;
    background: var(--muted);
}

.status-steps i.done {
    background: var(--primary);
}

.detail-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.detail-items div {
    padding: 16px;
}

.detail-items span {
    color: var(--muted-foreground);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-items strong {
    display: block;
    margin-top: 8px;
}

.worker-assigner {
    position: relative;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.worker-assigner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.worker-avatar-group {
    isolation: isolate;
    display: flex;
    align-items: center;
    padding-bottom: 12px;
}

.worker-avatar-form {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    margin-left: -8px;
}

.worker-avatar-form:first-child {
    margin-left: 0;
}

.worker-avatar-form:hover,
.worker-avatar-form:focus-within {
    z-index: 30;
}

.worker-avatar,
.worker-option-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--muted);
    color: var(--foreground);
    font-weight: 800;
}

.worker-avatar {
    width: 36px;
    height: 36px;
    border: 2px solid var(--background);
    font-size: 11px;
    transition: transform 0.16s ease;
}

.worker-avatar-form:hover .worker-avatar,
.worker-avatar-form:focus-within .worker-avatar {
    transform: translateY(-2px);
}

.worker-avatar-count {
    margin-left: -8px;
    background: color-mix(in srgb, var(--primary) 12%, var(--muted));
    color: var(--primary);
}

.worker-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 45;
    max-width: 180px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(239, 247, 253, 0.74)),
        color-mix(in srgb, var(--card-strong) 94%, transparent);
    color: var(--foreground);
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--shadow) 36%, transparent);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.worker-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--card-strong) 94%, transparent);
    transform: translate(-50%, -4px) rotate(45deg);
}

.worker-avatar-form:hover .worker-tooltip,
.worker-avatar-form:focus-within .worker-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.worker-remove-button {
    position: absolute;
    top: 39px;
    left: 50%;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    opacity: 0;
    padding: 0;
    transform: translateX(-50%);
    transition: opacity 0.16s ease;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--danger) 28%, transparent);
}

.worker-avatar-form:hover .worker-remove-button,
.worker-avatar-form:focus-within .worker-remove-button {
    opacity: 1;
}

.worker-remove-button .autoenablt-icon, .fleetline-icon {
    width: 12px;
    height: 12px;
}

.worker-dropdown {
    position: relative;
}

.worker-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-strong) 76%, transparent);
    color: var(--foreground);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--shadow) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.worker-add-button:hover,
.worker-add-button:focus-visible,
.worker-assigner.open .worker-add-button {
    background: var(--primary);
    color: var(--primary-foreground);
}

.worker-add-button .autoenablt-icon, .fleetline-icon {
    width: 20px;
    height: 20px;
}

.worker-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    width: 288px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(237, 246, 253, 0.66)),
        color-mix(in srgb, var(--card-strong) 92%, transparent);
    box-shadow: 0 24px 54px color-mix(in srgb, var(--shadow) 56%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    padding: 8px;
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}

.worker-panel[hidden] {
    display: none;
}

.worker-panel-label {
    display: block;
    padding: 7px 8px 8px;
    font-size: 13px;
    font-weight: 700;
}

.worker-panel form {
    margin: 0;
}

.worker-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--foreground);
    padding: 8px;
    text-align: left;
}

.worker-option:hover,
.worker-option:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.worker-option:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.worker-option-avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
}

.worker-option-copy {
    min-width: 0;
    flex: 1;
}

.worker-option-copy strong,
.worker-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.worker-option-copy strong {
    font-size: 14px;
    font-weight: 700;
}

.worker-option-copy small {
    margin-top: 2px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.worker-assigned-badge {
    flex-shrink: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    padding: 5px 8px;
    font-size: 10px;
    font-weight: 800;
}

.worker-empty {
    margin: 0;
    padding: 10px 8px 12px;
    color: var(--muted-foreground);
    font-size: 13px;
}

.assignment-card {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 16px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.side-panel {
    border-radius: 18px;
    padding: 18px;
}

.side-title {
    align-items: center;
}

.supply-list {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 18px;
}

.supply-list article {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 13px;
}

.supply-list article form {
    grid-column: 1 / -1;
    justify-self: end;
}

.side-panel p {
    color: var(--muted-foreground);
}

.side-panel blockquote {
    margin: 12px 0 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 46%, transparent);
    color: var(--muted-foreground);
    padding: 13px;
    line-height: 1.6;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--background) 55%, transparent);
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: min(100%, 460px);
    max-height: min(720px, calc(100dvh - 2rem));
    overflow-y: auto;
    border-radius: 16px;
    padding: 20px;
    outline: none;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--primary) 62%, var(--foreground)) transparent;
}

.modal-card::-webkit-scrollbar {
    width: 8px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 62%, var(--foreground));
    background-clip: padding-box;
}

.manual-staff-card {
    width: min(100%, 480px);
    padding: 22px;
}

.manual-staff-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding-right: 42px;
}

.manual-staff-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 22%, transparent);
}

.manual-staff-head .autoenablt-icon, .fleetline-icon {
    width: 19px;
    height: 19px;
}

.manual-staff-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.manual-staff-card .manual-staff-head p {
    margin: 7px 0 0;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.5;
}

.manual-staff-form {
    gap: 13px;
    margin-top: 20px;
}

.manual-staff-card .form-grid.two {
    gap: 12px;
}

.manual-staff-card .field {
    gap: 7px;
    min-width: 0;
    font-size: 13px;
}

.manual-staff-card .field > span:first-child {
    display: block;
    color: var(--foreground);
    font-size: 13px;
    line-height: 1.2;
}

.manual-staff-card .field input,
.manual-staff-card .field select {
    height: 43px;
    border-radius: 11px;
    background:
        linear-gradient(145deg, color-mix(in srgb, #fff 22%, transparent), transparent 58%),
        color-mix(in srgb, var(--card-strong) 72%, transparent);
}

.manual-staff-card .btn-block {
    height: 43px;
    margin-top: 4px;
    border-radius: 11px;
}

.manual-staff-card .password-control input {
    padding-right: 48px;
}

.manual-staff-card .password-toggle {
    right: 7px;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    background: color-mix(in srgb, var(--card) 46%, transparent);
}

.manual-staff-card .password-toggle:hover,
.manual-staff-card .password-toggle:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
}

.manual-staff-card .modal-close {
    top: 15px;
    right: 15px;
}

.modal-wide {
    width: min(100%, 680px);
}

.modal-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card) 64%, transparent);
    color: var(--muted-foreground);
}

.modal-close:hover,
.modal-close:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--foreground);
}

.modal-close .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    background: color-mix(in srgb, var(--background) 55%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.drawer[hidden] {
    display: none;
}

.drawer-panel {
    position: relative;
    display: flex;
    width: min(100vw, 34rem);
    height: 100dvh;
    margin-left: auto;
    flex-direction: column;
    border-width: 0 0 0 1px;
    border-radius: 0;
    padding: 24px;
    outline: none;
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card) 64%, transparent);
    color: var(--foreground);
}

.drawer-close .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.drawer-head {
    padding-right: 44px;
}

.drawer-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.drawer-head p {
    margin: 8px 0 0;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.6;
}

.drawer-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    margin-top: 24px;
}

.drawer-scroll {
    display: grid;
    min-height: 0;
    flex: 1;
    gap: 20px;
    overflow-y: auto;
    padding-right: 4px;
}

.drawer-stock-list {
    display: grid;
    gap: 8px;
    max-height: 44vh;
    overflow-y: auto;
    padding-right: 4px;
}

.drawer-stock-list article {
    display: grid;
    grid-template-columns: 1fr 86px auto;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 12px;
}

.drawer-stock-list strong,
.staged-list strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.drawer-stock-list small,
.staged-list small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.drawer-stock-list input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-strong) 74%, transparent);
    color: var(--foreground);
    padding: 0 8px;
    outline: none;
}

.drawer-stock-list input:focus {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.staged-card {
    display: grid;
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
}

.staged-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.staged-card > div:first-child strong {
    font-size: 14px;
}

.staged-card > div:first-child span,
.staged-list p {
    color: var(--muted-foreground);
    font-size: 12px;
}

.staged-list {
    display: grid;
    gap: 8px;
    max-height: 176px;
    overflow-y: auto;
    padding-right: 4px;
}

.staged-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    padding: 10px 12px;
}

.staged-list article > div {
    min-width: 0;
    flex: 1;
}

.drawer-error {
    margin: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    color: var(--danger);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
}

.drawer-error[hidden] {
    display: none;
}

.drawer-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.stock-picker {
    display: grid;
    gap: 10px;
    max-height: 46vh;
    overflow-y: auto;
}

.stock-picker article {
    display: grid;
    grid-template-columns: 1fr 96px;
    align-items: center;
    gap: 12px;
    padding: 13px;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

@media (max-width: 1100px) {
    .landing-hero,
    .overview-grid,
    .overview-command,
    .overview-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .ops-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-metric.primary {
        grid-column: span 2;
    }

    .detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .landing-links,
    .auth-side {
        display: none;
    }

    .auth-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mobile-brand {
        display: block;
    }

    .workflow-grid,
    .feature-grid,
    .section-heading,
    .metrics-grid,
    .metrics-grid.three,
    .ops-metrics,
    .pipeline-strip,
    .detail-items,
    .movement-grid,
    .mini-metrics,
    .form-grid.two,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .ops-metric.primary {
        grid-column: auto;
    }

    .ops-metric {
        min-height: 104px;
    }

    .pipeline-strip article {
        padding: 12px 14px;
    }

    .sidebar {
        position: fixed;
        z-index: 40;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none !important;
    }

    .dashboard-header,
    .workspace {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-heading,
    .overview-command,
    .section-title,
    .detail-head,
    .detail-toolbar,
    .pulse-card {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-actions {
        justify-content: flex-start;
    }

    .detail-side {
        grid-template-columns: 1fr;
    }

    .status-card {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .landing-nav,
    .nav-actions,
    .header-actions,
    .hero-actions,
    .site-footer,
    .quick-actions,
    .pulse-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .command-copy,
    .command-panel,
    .panel-padded {
        padding: 16px;
    }

    .ops-metric strong {
        font-size: 28px;
    }

    .ops-metric.primary strong {
        font-size: 34px;
    }

    .pulse-rows {
        grid-template-columns: 1fr;
    }

    .landing-nav,
    .dashboard-header {
        align-items: flex-start;
    }

    .landing-hero {
        padding-top: 36px;
    }

    .auth-main,
    .invite-card,
    .modal-card {
        padding: 20px;
    }

    .manual-staff-card .form-grid.two {
        grid-template-columns: 1fr;
    }

    .drawer-panel {
        width: 100vw;
        padding: 20px;
    }

    .drawer-stock-list article {
        grid-template-columns: 1fr;
    }

    .drawer-stock-list .btn {
        justify-self: start;
    }

    .data-table {
        min-width: 700px;
    }

    .worker-assigner {
        align-items: flex-start;
    }

    .worker-panel {
        right: auto;
        left: 0;
        width: min(288px, calc(100vw - 36px));
    }

}

/* Screenshot-matched dashboard glass theme */
.dashboard-page {
    --background: #dfeaf4;
    --foreground: #071424;
    --card: rgba(244, 249, 253, 0.52);
    --card-strong: rgba(247, 251, 255, 0.72);
    --muted: rgba(222, 234, 244, 0.74);
    --muted-foreground: #425f77;
    --primary: #075aa8;
    --primary-foreground: #ffffff;
    --border: rgba(129, 157, 179, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(182, 205, 225, 0.82)),
        #dce8f3;
}

.dashboard-page::before {
    background-image:
        linear-gradient(rgba(82, 112, 136, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(82, 112, 136, 0.09) 1px, transparent 1px),
        linear-gradient(163deg, transparent 0 42%, rgba(80, 110, 136, 0.12) 42.1%, transparent 42.4%),
        linear-gradient(163deg, transparent 0 61%, rgba(80, 110, 136, 0.16) 61.1%, transparent 61.35%);
    background-size: 144px 144px, 144px 144px, 100% 100%, 100% 100%;
    mask-image: none;
    opacity: 1;
}

.dashboard-page::after {
    background:
        radial-gradient(circle at 86% 30%, rgba(105, 153, 196, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.30), rgba(154, 184, 211, 0.55));
    opacity: 1;
}

.dashboard-frame {
    background: transparent;
}

.sidebar {
    width: 360px;
    padding: 33px 24px 26px;
    border-right: 1px solid rgba(103, 132, 154, 0.25);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(232, 238, 245, 0.54)),
        rgba(238, 243, 248, 0.76);
    box-shadow: 18px 0 70px rgba(53, 78, 101, 0.12);
    backdrop-filter: blur(28px) saturate(145%);
}

.sidebar .brand {
    gap: 18px;
    align-items: flex-start;
}

.sidebar .brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: #075aa8;
    box-shadow: 0 18px 42px rgba(7, 90, 168, 0.26);
    font-size: 25px;
}

.sidebar .brand small {
    margin-top: 4px;
    color: #425f77;
    font-size: 12px;
    letter-spacing: 0.36em;
}

.sidebar .brand span:last-child {
    color: #071424;
    font-size: 24px;
    line-height: 1.15;
}

.side-nav {
    gap: 21px;
    margin-top: 102px;
}

.side-nav a {
    min-height: 66px;
    gap: 17px;
    border-radius: 20px;
    color: #425f77;
    padding: 0 20px;
    font-size: 20px;
    font-weight: 800;
}

.side-nav a.active {
    background: #075aa8;
    color: #ffffff;
    box-shadow: 0 15px 34px rgba(7, 90, 168, 0.24);
}

.side-nav a:hover {
    background: rgba(7, 90, 168, 0.10);
    color: #075aa8;
}

.side-nav a.active:hover {
    background: #075aa8;
    color: #ffffff;
}

.nav-dot {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: transparent;
    font-size: 21px;
    line-height: 1;
}

.connection-card {
    gap: 18px;
    margin-top: auto;
    border-radius: 25px;
    border-color: rgba(113, 143, 166, 0.22);
    background: rgba(247, 251, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
    padding: 28px 26px;
    color: #071424;
    font-size: 20px;
}

.connection-card strong {
    display: flex;
    align-items: center;
    gap: 13px;
}

.connection-icon {
    color: #075aa8;
    font-size: 24px;
}

.connection-card span {
    color: #425f77;
    font-size: 18px;
    line-height: 1.6;
}

.sidebar-user {
    margin-top: 24px;
    border-top-color: rgba(103, 132, 154, 0.22);
    padding: 28px 4px 0;
}

.sidebar-user > span {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: #20272d;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(12, 24, 36, 0.18);
    font-size: 19px;
}

.sidebar-user strong {
    color: #071424;
    font-size: 20px;
}

.sidebar-user small {
    color: #425f77;
    font-size: 17px;
}

.dashboard-main {
    background: transparent;
}

.dashboard-header {
    min-height: 121px;
    border-bottom: 1px solid rgba(103, 132, 154, 0.22);
    background: rgba(242, 248, 253, 0.48);
    padding: 0 59px 0 61px;
    backdrop-filter: blur(24px) saturate(145%);
}

.breadcrumbs {
    gap: 16px;
    color: #425f77;
    font-size: 22px;
}

.breadcrumbs strong {
    color: #071424;
    font-weight: 500;
}

.header-actions {
    gap: 17px;
}

.theme-control {
    height: 64px;
    gap: 8px;
    padding: 7px;
    border-color: rgba(103, 132, 154, 0.22);
    border-radius: 26px;
    background: rgba(247, 251, 255, 0.38);
}

.theme-control button {
    width: 49px;
    height: 49px;
    border-radius: 17px;
    padding: 0;
    color: #425f77;
    font-size: 22px;
}

.theme-control button.active {
    background: #075aa8;
    color: #ffffff;
}

.notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(103, 132, 154, 0.22);
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.38);
    color: #071424;
    font-size: 24px;
}

.header-divider {
    width: 1px;
    height: 48px;
    background: rgba(103, 132, 154, 0.22);
}

.user-pill {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-width: 216px;
    height: 66px;
    border: 1px solid rgba(103, 132, 154, 0.22);
    border-radius: 24px;
    background: rgba(226, 239, 249, 0.58);
    padding: 10px 14px;
}

.user-pill > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #d3e8f7;
    color: #071424;
    font-size: 14px;
    font-weight: 900;
}

.user-pill strong,
.user-pill small {
    display: block;
}

.user-pill strong {
    color: #071424;
    font-size: 16px;
    line-height: 1.15;
}

.user-pill small {
    margin-top: 3px;
    color: #425f77;
    font-size: 14px;
    font-weight: 500;
}

.user-pill button {
    border: 0;
    background: transparent;
    color: #425f77;
    font-size: 22px;
}

.workspace {
    padding: 63px 59px 72px 61px;
}

.page-heading {
    max-width: 1425px;
    align-items: center;
}

.page-heading h1 {
    max-width: 1000px;
    margin-top: 22px;
    color: #071424;
    font-size: clamp(58px, 4.4vw, 72px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.page-heading p {
    margin-top: 22px;
    max-width: 920px;
    color: #425f77;
    font-size: 22px;
}

.eyebrow-text {
    color: #075aa8;
    font-size: 14px;
    letter-spacing: 0.42em;
}

.account-badge {
    min-width: 218px;
    border-radius: 20px;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(236, 246, 253, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    padding: 24px;
}

.account-badge strong {
    color: #071424;
    font-size: 20px;
}

.account-badge span {
    margin-top: 8px;
    color: #425f77;
    font-size: 17px;
}

.metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    max-width: 1425px;
    margin-top: 64px;
}

.metric-card,
.surface,
.soft {
    border-color: rgba(255, 255, 255, 0.46);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(228, 238, 247, 0.34)),
        rgba(244, 249, 253, 0.32);
    box-shadow:
        0 22px 54px rgba(50, 75, 98, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -1px 0 rgba(100, 126, 148, 0.18);
    backdrop-filter: blur(24px) saturate(150%);
}

.metric-card {
    min-height: 211px;
    border-radius: 24px;
    padding: 32px 30px;
}

.metric-card span {
    display: inline-block;
    color: #425f77;
    font-size: 21px;
}

.metric-card i {
    float: right;
    color: #075aa8;
    font-size: 24px;
    font-style: normal;
}

.metric-card strong {
    clear: both;
    margin-top: 36px;
    color: #071424;
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.055em;
}

.metric-card small {
    margin-top: 16px;
    color: #425f77;
    font-size: 17px;
}

.overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.84fr);
    gap: 36px;
    max-width: 1425px;
    margin-top: 50px;
}

.panel-padded {
    border-radius: 24px;
    padding: 37px;
}

.section-title h2 {
    color: #071424;
    font-size: 24px;
    font-weight: 800;
}

.section-title p {
    margin-top: 10px;
    color: #425f77;
    font-size: 20px;
}

.search-field {
    min-width: 312px;
}

.search-field span {
    display: none;
}

.search-field input {
    height: 60px;
    border-radius: 20px;
    border-color: rgba(103, 132, 154, 0.22);
    background: rgba(239, 247, 253, 0.46);
    color: #071424;
    font-size: 18px;
    padding: 0 22px;
}

.search-field input::placeholder {
    color: #425f77;
}

.table-wrap {
    margin-top: 38px;
}

.data-table {
    color: #071424;
    font-size: 17px;
}

.data-table th {
    color: #071424;
    font-size: 20px;
    font-weight: 800;
}

.data-table th,
.data-table td {
    border-bottom-color: rgba(103, 132, 154, 0.16);
    padding: 18px 12px;
}

.data-table td,
.data-table small {
    color: #425f77;
}

.data-table td strong {
    color: #071424;
}

.watchlist {
    gap: 13px;
    margin-top: 37px;
}

.watchlist article {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-color: rgba(255, 255, 255, 0.36);
    border-radius: 18px;
    background: rgba(238, 247, 253, 0.44);
    padding: 16px 20px;
}

.watchlist .card-icon {
    width: 59px;
    height: 59px;
    border-radius: 14px;
    background: #d9ebf7;
    color: #425f77;
    font-size: 27px;
}

.watchlist strong {
    color: #071424;
    font-size: 20px;
}

.watchlist small {
    margin-top: 4px;
    color: #425f77;
    font-size: 14px;
}

.watchlist em {
    color: #071424;
    font-size: 20px;
}

.btn-primary {
    border-radius: 14px;
    background: #075aa8;
    color: #ffffff;
}

.btn-small {
    min-height: 48px;
    padding: 0 21px;
    font-size: 16px;
}

.text-link {
    margin-top: 24px;
    color: #075aa8;
    font-size: 15px;
}

.status-pill {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
}

@media (max-width: 1400px) {
    .sidebar {
        width: 300px;
    }

    .workspace,
    .dashboard-header {
        padding-left: 38px;
        padding-right: 38px;
    }

    .page-heading h1 {
        font-size: clamp(44px, 4.2vw, 62px);
    }
}

@media (max-width: 1100px) {
    .overview-grid,
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .sidebar {
        width: min(86vw, 340px);
    }

    .dashboard-header {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .page-heading,
    .section-title {
        align-items: stretch;
    }

    .account-badge {
        width: 100%;
    }

    .metrics-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .search-field {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .workspace {
        padding: 24px 16px 40px;
    }

    .page-heading h1 {
        font-size: 38px;
    }

    .page-heading p {
        font-size: 17px;
    }

    .metric-card {
        min-height: 170px;
    }
}

/* Compact pass: old Next dashboard proportions with screenshot glass styling */
.dashboard-page .sidebar {
    width: 260px;
    padding: 24px 18px 20px;
}

.dashboard-page .sidebar .brand {
    gap: 12px;
}

.dashboard-page .sidebar .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
}

.dashboard-page .sidebar .brand small {
    font-size: 10px;
    letter-spacing: 0.28em;
}

.dashboard-page .sidebar .brand span:last-child {
    font-size: 20px;
}

.dashboard-page .side-nav {
    gap: 11px;
    margin-top: 72px;
}

.dashboard-page .side-nav a {
    min-height: 54px;
    gap: 12px;
    border-radius: 18px;
    padding: 0 15px;
    font-size: 16px;
}

.dashboard-page .nav-dot {
    width: 22px;
    height: 22px;
    font-size: 17px;
}

.dashboard-page .connection-card {
    gap: 10px;
    border-radius: 18px;
    padding: 18px;
    font-size: 15px;
}

.dashboard-page .connection-card span {
    font-size: 14px;
}

.dashboard-page .sidebar-user {
    margin-top: 18px;
    padding-top: 18px;
}

.dashboard-page .sidebar-user > span {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.dashboard-page .sidebar-user strong {
    font-size: 15px;
}

.dashboard-page .sidebar-user small {
    font-size: 13px;
}

.dashboard-page .dashboard-header {
    min-height: 82px;
    padding: 0 42px;
}

.dashboard-page .breadcrumbs {
    gap: 10px;
    font-size: 18px;
}

.dashboard-page .header-actions {
    gap: 12px;
}

.dashboard-page .theme-control {
    height: 48px;
    border-radius: 19px;
    padding: 5px;
}

.dashboard-page .theme-control button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 17px;
}

.dashboard-page .notification-button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 18px;
}

.dashboard-page .header-divider {
    height: 38px;
}

.dashboard-page .user-pill {
    min-width: 190px;
    height: 52px;
    border-radius: 19px;
    gap: 10px;
    padding: 7px 10px;
}

.dashboard-page .user-pill > span {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.dashboard-page .user-pill strong {
    font-size: 14px;
}

.dashboard-page .user-pill small {
    font-size: 12px;
}

.dashboard-page .workspace {
    padding: 56px 42px 56px;
}

.dashboard-page .page-heading {
    max-width: 1300px;
}

.dashboard-page .page-heading h1 {
    margin-top: 18px;
    max-width: 860px;
    font-size: clamp(42px, 4vw, 58px);
    letter-spacing: -0.05em;
}

.dashboard-page .page-heading p {
    margin-top: 16px;
    max-width: 760px;
    font-size: 19px;
    line-height: 1.5;
}

.dashboard-page .eyebrow-text {
    font-size: 12px;
    letter-spacing: 0.38em;
}

.dashboard-page .account-badge {
    min-width: 190px;
    border-radius: 18px;
    padding: 20px;
}

.dashboard-page .account-badge strong {
    font-size: 17px;
}

.dashboard-page .account-badge span {
    font-size: 14px;
}

.dashboard-page .metrics-grid {
    max-width: 1300px;
    gap: 20px;
    margin-top: 50px;
}

.dashboard-page .metric-card {
    min-height: 158px;
    border-radius: 22px;
    padding: 24px;
}

.dashboard-page .metric-card span {
    font-size: 17px;
}

.dashboard-page .metric-card i {
    font-size: 19px;
}

.dashboard-page .metric-card strong {
    margin-top: 28px;
    font-size: 36px;
    letter-spacing: -0.045em;
}

.dashboard-page .metric-card small {
    margin-top: 10px;
    font-size: 14px;
}

.dashboard-page .overview-grid {
    max-width: 1300px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.78fr);
    gap: 24px;
    margin-top: 36px;
}

.dashboard-page .panel-padded {
    border-radius: 22px;
    padding: 26px;
}

.dashboard-page .section-title h2 {
    font-size: 18px;
}

.dashboard-page .section-title p {
    margin-top: 6px;
    font-size: 15px;
}

.dashboard-page .search-field {
    min-width: 260px;
}

.dashboard-page .search-field input {
    height: 46px;
    border-radius: 16px;
    font-size: 15px;
    padding: 0 16px;
}

.dashboard-page .table-wrap {
    margin-top: 26px;
}

.dashboard-page .data-table {
    font-size: 14px;
}

.dashboard-page .data-table th {
    font-size: 15px;
}

.dashboard-page .data-table th,
.dashboard-page .data-table td {
    padding: 13px 10px;
}

.dashboard-page .avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    font-size: 10px;
}

.dashboard-page .watchlist {
    gap: 10px;
    margin-top: 26px;
}

.dashboard-page .watchlist article {
    min-height: 58px;
    border-radius: 16px;
    padding: 12px 14px;
}

.dashboard-page .watchlist .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
}

.dashboard-page .watchlist strong {
    font-size: 15px;
}

.dashboard-page .watchlist small {
    font-size: 12px;
}

.dashboard-page .watchlist em {
    font-size: 16px;
}

.dashboard-page .btn-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

@media (max-width: 1400px) {
    .dashboard-page .sidebar {
        width: 268px;
    }

    .dashboard-page .workspace,
    .dashboard-page .dashboard-header {
        padding-left: 28px;
        padding-right: 28px;
    }

    .dashboard-page .page-heading h1 {
        font-size: clamp(36px, 4vw, 48px);
    }
}

@media (max-width: 1100px) {
    .dashboard-page .sidebar {
        width: 256px;
    }

    .dashboard-page .overview-grid,
    .dashboard-page .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .dashboard-page .sidebar {
        width: min(86vw, 300px);
        overflow-x: hidden !important;
        overflow-y: auto;
    }

    .dashboard-page .dashboard-header {
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .dashboard-page .page-heading,
    .dashboard-page .section-title {
        align-items: stretch;
    }

    .dashboard-page .metrics-grid,
    .dashboard-page .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .dashboard-page .workspace {
        padding: 22px 14px 36px;
    }

    .dashboard-page .page-heading h1 {
        font-size: 34px;
    }

    .dashboard-page .page-heading p {
        font-size: 16px;
    }

    .dashboard-page .metric-card {
        min-height: 138px;
    }
}

/* Base dashboard sidebar sizing */
.dashboard-page .sidebar {
    width: 280px;
    padding: 22px 16px 18px;
    overflow-x: hidden !important;
}

.dashboard-page .sidebar .brand {
    gap: 12px;
}

.dashboard-page .sidebar .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
}

.dashboard-page .sidebar .brand small {
    font-size: 9.5px;
    letter-spacing: 0.24em;
}

.dashboard-page .sidebar .brand span:last-child {
    font-size: 19px;
}

.dashboard-page .side-nav {
    gap: 8px;
    margin-top: 36px;
    overflow-x: hidden !important;
    overflow-y: auto;
}

.dashboard-page .side-nav a {
    min-height: 46px;
    gap: 12px;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14.5px;
}

.dashboard-page .nav-dot {
    width: 20px;
    height: 20px;
    font-size: 13px;
}

.dashboard-page .connection-card {
    margin-top: 22px;
    gap: 7px;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 13px;
}

.dashboard-page .connection-card span {
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-page .sidebar-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    margin-top: auto;
    padding: 13px 2px 0;
}

.dashboard-page .sidebar-user > span {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.dashboard-page .sidebar-user strong,
.dashboard-page .sidebar-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .sidebar-user strong {
    font-size: 13px;
}

.dashboard-page .sidebar-user small {
    font-size: 11px;
}

.dashboard-page .sidebar-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #425f77;
    font-size: 15px;
    cursor: pointer;
}

.dashboard-page .sidebar-settings:hover {
    background: rgba(17, 93, 171, 0.1);
    color: #0f5fab;
}

.dashboard-page .dashboard-header {
    min-height: 72px;
    padding: 0 28px;
}

.dashboard-page .breadcrumbs {
    gap: 9px;
    font-size: 16px;
}

.dashboard-page .header-actions {
    gap: 10px;
}

.dashboard-page .theme-control {
    height: 40px;
    border-radius: 15px;
    padding: 4px;
}

.dashboard-page .theme-control button {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 14px;
}

.dashboard-page .notification-button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 15px;
}

.dashboard-page .header-divider {
    height: 34px;
}

.dashboard-page .user-pill {
    min-width: 168px;
    height: 44px;
    border-radius: 16px;
    gap: 8px;
    padding: 6px 9px;
}

.dashboard-page .user-pill > span {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.dashboard-page .user-pill strong {
    font-size: 13px;
}

.dashboard-page .user-pill small {
    font-size: 11px;
}

.dashboard-page .workspace {
    padding: 36px 28px 44px;
}

.dashboard-page .page-heading,
.dashboard-page .metrics-grid,
.dashboard-page .overview-grid,
.dashboard-page .pulse-card {
    max-width: 1180px;
}

.dashboard-page .page-heading {
    align-items: center;
}

.dashboard-page .page-heading h1 {
    max-width: 820px;
    margin-top: 14px;
    font-size: clamp(34px, 3.6vw, 48px);
    letter-spacing: 0;
    line-height: 1.03;
}

.dashboard-page .page-heading p {
    max-width: 650px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
}

.dashboard-page .eyebrow-text {
    font-size: 10px;
    letter-spacing: 0.32em;
}

.dashboard-page .account-badge {
    min-width: 168px;
    border-radius: 16px;
    padding: 15px 18px;
}

.dashboard-page .account-badge strong {
    font-size: 15px;
}

.dashboard-page .account-badge span {
    font-size: 13px;
}

.dashboard-page .metrics-grid {
    gap: 14px;
    margin-top: 34px;
}

.dashboard-page .metric-card {
    min-height: 126px;
    border-radius: 18px;
    padding: 18px 20px;
}

.dashboard-page .metric-card span {
    font-size: 15px;
}

.dashboard-page .metric-card i {
    font-size: 15px;
}

.dashboard-page .metric-card strong {
    margin-top: 20px;
    font-size: 30px;
    letter-spacing: 0;
}

.dashboard-page .metric-card small {
    margin-top: 6px;
    font-size: 12px;
}

.dashboard-page .overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.75fr);
    gap: 18px;
    margin-top: 24px;
}

.dashboard-page .panel-padded {
    border-radius: 18px;
    padding: 20px;
}

.dashboard-page .section-title h2 {
    font-size: 17px;
}

.dashboard-page .section-title p {
    margin-top: 4px;
    font-size: 14px;
}

.dashboard-page .search-field {
    min-width: 220px;
}

.dashboard-page .search-field input {
    height: 40px;
    border-radius: 14px;
    font-size: 14px;
    padding: 0 14px;
}

.dashboard-page .table-wrap {
    margin-top: 20px;
}

.dashboard-page .data-table {
    min-width: 690px;
    font-size: 13px;
}

.dashboard-page .data-table th {
    font-size: 13px;
}

.dashboard-page .data-table th,
.dashboard-page .data-table td {
    padding: 10px 9px;
}

.dashboard-page .avatar-mini {
    width: 26px;
    height: 26px;
    font-size: 9px;
}

.dashboard-page .watchlist {
    gap: 8px;
    margin-top: 20px;
}

.dashboard-page .watchlist article {
    min-height: 50px;
    border-radius: 14px;
    padding: 10px 12px;
}

.dashboard-page .watchlist .card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
}

.dashboard-page .watchlist strong {
    font-size: 13px;
}

.dashboard-page .watchlist small {
    font-size: 11px;
}

.dashboard-page .watchlist em {
    font-size: 14px;
}

.dashboard-page .btn-small {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 13px;
}

.dashboard-page .pulse-card {
    align-items: center;
    margin-top: 18px;
    border-radius: 18px;
    padding: 18px 20px;
}

.dashboard-page .pulse-card h2 {
    margin-top: 6px;
    font-size: 20px;
}

.dashboard-page .pulse-stats {
    gap: 22px;
}

.dashboard-page .pulse-stats strong {
    gap: 3px;
    font-size: 24px;
}

.dashboard-page .pulse-stats small {
    font-size: 11px;
}

@media (max-width: 1400px) {
    .dashboard-page .sidebar {
        width: 268px;
    }

    .dashboard-page .workspace,
    .dashboard-page .dashboard-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .dashboard-page .page-heading h1 {
        font-size: clamp(32px, 3.5vw, 44px);
    }

    .dashboard-page .side-nav {
        margin-top: 34px;
    }
}

@media (max-width: 1100px) {
    .dashboard-page .sidebar {
        width: 256px;
    }

    .dashboard-page .overview-grid,
    .dashboard-page .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-page .page-heading {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .dashboard-page .sidebar {
        width: min(86vw, 300px);
        overflow-x: hidden !important;
        overflow-y: auto;
    }

    .dashboard-page .dashboard-header {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .dashboard-page .page-heading,
    .dashboard-page .section-title,
    .dashboard-page .pulse-card {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-page .metrics-grid,
    .dashboard-page .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .dashboard-page .workspace {
        padding: 20px 14px 34px;
    }

    .dashboard-page .page-heading h1 {
        font-size: 32px;
    }

    .dashboard-page .page-heading p {
        font-size: 15px;
    }

    .dashboard-page .metric-card {
        min-height: 120px;
    }
}

/* SVG icon pass, aligned with the old Next/Lucide dashboard. */
.dashboard-page {
    --svg-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4.4 4.4 0 0 0-5.4 5.4L3 18v3h3l6.3-6.3a4.4 4.4 0 0 0 5.4-5.4l-3 3-3-3Z'/%3E%3C/svg%3E");
    --svg-shield-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    --svg-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2m-7.1-17.1 1.4 1.4m11.4 11.4 1.4 1.4M2 12h2M20 12h2M6.3 17.7l-1.4 1.4M19.1 4.9l-1.4 1.4'/%3E%3C/svg%3E");
    --svg-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 7.3A8 8 0 1 1 12 3Z'/%3E%3C/svg%3E");
    --svg-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3C/svg%3E");
    --svg-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --svg-car-front: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9L19 10l-1.4-4.2A3 3 0 0 0 14.8 4H9.2a3 3 0 0 0-2.8 1.8L5 10l-1.5 1.1A2.4 2.4 0 0 0 2 13v3c0 .6.4 1 1 1h2'/%3E%3Cpath d='M7 17h10M6 21v-3M18 21v-3M5 10h14'/%3E%3Ccircle cx='7' cy='14' r='1.2'/%3E%3Ccircle cx='17' cy='14' r='1.2'/%3E%3C/svg%3E");
    --svg-clipboard-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5h6M9 3h6v4H9z'/%3E%3Cpath d='M16 5h2a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-5'/%3E%3C/svg%3E");
    --svg-package-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7.5 4.3 9 5.2M21 8.5v7M3 8.5v7a2 2 0 0 0 1 1.7l6.4 3.7M3.3 7.4 12 2.5l8.7 4.9M12 12v5'/%3E%3Ccircle cx='17' cy='17' r='3'/%3E%3Cpath d='m19.3 19.3 2.2 2.2'/%3E%3C/svg%3E");
    --svg-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
    --svg-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.autoenablt-icon, .fleetline-icon {
    display: block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.dashboard-page .brand-icon,
.dashboard-page .connection-icon,
.dashboard-page .theme-control button,
.dashboard-page .notification-button,
.dashboard-page .user-pill button,
.dashboard-page .metric-card i,
.dashboard-page .watchlist .card-icon {
    font-size: 0;
}

.dashboard-page .brand-icon::before,
.dashboard-page .connection-icon::before,
.dashboard-page .theme-control button::before,
.dashboard-page .notification-button::before,
.dashboard-page .user-pill button::before,
.dashboard-page .metric-card i::before,
.dashboard-page .watchlist .card-icon::before {
    content: "";
    display: block;
    width: 1em;
    height: 1em;
    background: currentColor;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.dashboard-page .brand-icon::before {
    width: 18px;
    height: 18px;
    mask-image: var(--svg-wrench);
    -webkit-mask-image: var(--svg-wrench);
}

.dashboard-page .nav-dot .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.dashboard-page .side-nav a.active .autoenablt-icon, .fleetline-icon {
    stroke-width: 2.4;
}

.dashboard-page .connection-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: -3px;
}

.dashboard-page .connection-icon::before {
    width: 16px;
    height: 16px;
    mask-image: var(--svg-shield-check);
    -webkit-mask-image: var(--svg-shield-check);
}

.dashboard-page .sidebar-settings .autoenablt-icon, .fleetline-icon,
.dashboard-page .icon-button .autoenablt-icon, .fleetline-icon,
.dashboard-page .btn .autoenablt-icon, .fleetline-icon {
    width: 15px;
    height: 15px;
}

.dashboard-page .brand-icon .autoenablt-icon, .fleetline-icon,
.dashboard-page .connection-icon .autoenablt-icon, .fleetline-icon,
.dashboard-page .theme-control button .autoenablt-icon, .fleetline-icon,
.dashboard-page .notification-button .autoenablt-icon, .fleetline-icon,
.dashboard-page .user-pill button .autoenablt-icon, .fleetline-icon,
.dashboard-page .metric-card i .autoenablt-icon, .fleetline-icon,
.dashboard-page .watchlist .card-icon .autoenablt-icon, .fleetline-icon {
    width: 18px;
    height: 18px;
}

.dashboard-page .brand-icon:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .connection-icon:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .theme-control button:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .notification-button:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .user-pill button:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .metric-card i:has(.autoenablt-icon, .fleetline-icon)::before,
.dashboard-page .watchlist .card-icon:has(.autoenablt-icon, .fleetline-icon)::before {
    content: none;
}

.dashboard-page .theme-control button::before {
    width: 17px;
    height: 17px;
}

.dashboard-page .theme-control button[data-theme-value="light"]::before {
    mask-image: var(--svg-sun);
    -webkit-mask-image: var(--svg-sun);
}

.dashboard-page .theme-control button[data-theme-value="dark"]::before {
    mask-image: var(--svg-moon);
    -webkit-mask-image: var(--svg-moon);
}

.dashboard-page .notification-button {
    position: relative;
}

.dashboard-page .notification-button::before {
    width: 17px;
    height: 17px;
    mask-image: var(--svg-bell);
    -webkit-mask-image: var(--svg-bell);
}

.dashboard-page .notification-button::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #075aa8;
}

.dashboard-page .user-pill button::before {
    width: 14px;
    height: 14px;
    mask-image: var(--svg-chevron-down);
    -webkit-mask-image: var(--svg-chevron-down);
}

.dashboard-page .metric-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.dashboard-page .metric-card i::before {
    width: 18px;
    height: 18px;
}

.dashboard-page .metrics-grid .metric-card:nth-child(1) i::before {
    mask-image: var(--svg-car-front);
    -webkit-mask-image: var(--svg-car-front);
}

.dashboard-page .metrics-grid .metric-card:nth-child(2) i::before {
    mask-image: var(--svg-clipboard-check);
    -webkit-mask-image: var(--svg-clipboard-check);
}

.dashboard-page .metrics-grid .metric-card:nth-child(3) i::before {
    mask-image: var(--svg-package-search);
    -webkit-mask-image: var(--svg-package-search);
}

.dashboard-page .metrics-grid .metric-card:nth-child(4) i::before {
    mask-image: var(--svg-arrow-up-right);
    -webkit-mask-image: var(--svg-arrow-up-right);
}

.dashboard-page .search-field {
    position: relative;
}

.dashboard-page .search-field span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #425f77;
    transform: translateY(-50%);
    pointer-events: none;
}

.dashboard-page .search-field .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.dashboard-page .search-field input {
    padding-left: 40px;
}

.dashboard-page .watchlist .card-icon::before {
    width: 17px;
    height: 17px;
    mask-image: var(--svg-wrench);
    -webkit-mask-image: var(--svg-wrench);
}

.dashboard-page .profile-menu {
    position: relative;
}

.dashboard-page .user-pill {
    cursor: pointer;
}

.dashboard-page .user-pill-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #425f77;
}

.dashboard-page .user-pill-chevron .autoenablt-icon, .fleetline-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.dashboard-page .profile-menu.open .user-pill-chevron .autoenablt-icon, .fleetline-icon {
    transform: rotate(180deg);
}

.dashboard-page .profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    width: 338px;
    overflow: hidden;
    border: 1px solid rgba(103, 132, 154, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 243, 250, 0.66)),
        rgba(247, 251, 255, 0.86);
    box-shadow:
        0 18px 45px rgba(29, 51, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.dashboard-page .profile-panel[hidden] {
    display: none;
}

.dashboard-page .profile-panel-head {
    display: grid;
    gap: 4px;
    padding: 20px 24px 14px;
}

.dashboard-page .profile-panel-head strong {
    color: #071424;
    font-size: 18px;
    line-height: 1.1;
}

.dashboard-page .profile-panel-head span {
    color: #425f77;
    font-size: 15px;
}

.dashboard-page .profile-panel form {
    margin: 0;
    border-top: 1px solid rgba(103, 132, 154, 0.28);
    padding: 14px 18px 16px;
}

.dashboard-page .profile-signout {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #ef4444;
    padding: 10px 8px;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

.dashboard-page .profile-signout:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dashboard-page .profile-signout .autoenablt-icon, .fleetline-icon {
    width: 18px;
    height: 18px;
}

/* Dark theme ported from the old Next project. */
html.dark .dashboard-page {
    --background: oklch(0.115 0.04 248);
    --foreground: oklch(0.98 0.006 250);
    --card: oklch(0.23 0.055 248 / 58%);
    --card-strong: oklch(0.18 0.05 248 / 84%);
    --muted: oklch(0.22 0.035 248 / 56%);
    --muted-foreground: oklch(0.72 0.032 242);
    --primary: oklch(0.78 0.11 248);
    --primary-foreground: oklch(0.105 0.032 248);
    --accent: oklch(0.82 0.13 166);
    --accent-foreground: oklch(0.12 0.035 166);
    --danger: oklch(0.68 0.18 25);
    --border: oklch(0.86 0.04 238 / 18%);
    --shadow: rgba(0, 0, 0, 0.56);
    background:
        linear-gradient(115deg, color-mix(in oklch, var(--background) 94%, black) 0%, var(--background) 48%, color-mix(in oklch, var(--background) 90%, var(--primary)) 100%),
        linear-gradient(180deg, color-mix(in oklch, var(--primary) 16%, transparent), transparent 46%);
}

html.dark .dashboard-page::before {
    background-image:
        linear-gradient(color-mix(in oklch, var(--foreground) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in oklch, var(--foreground) 8%, transparent) 1px, transparent 1px),
        linear-gradient(165deg, transparent 0 54%, color-mix(in oklch, var(--foreground) 12%, transparent) 54.2%, transparent 54.5%);
    background-size: 96px 96px, 96px 96px, 100% 100%;
    opacity: 0.46;
}

html.dark .dashboard-page::after {
    background:
        linear-gradient(120deg, color-mix(in oklch, var(--accent) 16%, transparent), transparent 28%),
        linear-gradient(300deg, color-mix(in oklch, var(--primary) 18%, transparent), transparent 34%),
        linear-gradient(to bottom, transparent 0%, color-mix(in oklch, black 18%, transparent) 100%);
    opacity: 0.75;
}

html.dark .dashboard-page .sidebar {
    border-right-color: color-mix(in oklch, var(--border) 88%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 8%, transparent), transparent 44%),
        color-mix(in oklch, var(--card-strong) 84%, transparent);
    box-shadow: 18px 0 70px color-mix(in oklch, black 48%, transparent);
}

html.dark .dashboard-page .dashboard-header {
    border-bottom-color: color-mix(in oklch, var(--border) 88%, transparent);
    background: color-mix(in oklch, var(--card) 62%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in oklch, white 16%, transparent);
}

html.dark .dashboard-page .metric-card,
html.dark .dashboard-page .surface,
html.dark .dashboard-page .soft,
html.dark .dashboard-page .account-badge,
html.dark .dashboard-page .connection-card,
html.dark .dashboard-page .drawer-panel {
    border-color: color-mix(in oklch, var(--border) 88%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card) 82%, transparent);
    box-shadow:
        0 28px 80px -42px color-mix(in oklch, black 72%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 34%, transparent),
        inset 0 -1px 0 color-mix(in oklch, black 18%, transparent);
}

html.dark .dashboard-page .soft,
html.dark .dashboard-page .connection-card,
html.dark .dashboard-page .watchlist article,
html.dark .dashboard-page .data-table tr,
html.dark .dashboard-page .assignment-card,
html.dark .dashboard-page .drawer-stock-list article,
html.dark .dashboard-page .staged-card,
html.dark .dashboard-page .staged-list article,
html.dark .dashboard-page .detail-items div {
    border-color: color-mix(in oklch, var(--border) 78%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 6%, transparent), transparent 44%),
        color-mix(in oklch, var(--card) 58%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in oklch, white 20%, transparent);
}

html.dark .dashboard-page .worker-panel {
    border-color: color-mix(in oklch, var(--border) 88%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 88%, transparent);
    box-shadow:
        0 24px 54px color-mix(in oklch, black 54%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 24%, transparent);
}

html.dark .dashboard-page .worker-add-button {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background: color-mix(in oklch, var(--card-strong) 84%, transparent);
    box-shadow:
        0 16px 34px color-mix(in oklch, black 40%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 18%, transparent);
}

html.dark .dashboard-page .worker-tooltip {
    border-color: color-mix(in oklch, var(--border) 88%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 94%, transparent);
    box-shadow: 0 14px 30px color-mix(in oklch, black 44%, transparent);
}

html.dark .dashboard-page .worker-tooltip::after {
    border-color: color-mix(in oklch, var(--border) 88%, transparent);
    background: color-mix(in oklch, var(--card-strong) 94%, transparent);
}

html.dark .dashboard-page .stock-product-options {
    border-color: color-mix(in oklch, var(--border) 88%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 92%, transparent);
    box-shadow:
        0 24px 54px color-mix(in oklch, black 54%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 22%, transparent);
}

html.dark .dashboard-page .stock-product-options button:hover,
html.dark .dashboard-page .stock-product-options button:focus-visible {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
}

html.dark .dashboard-page .worker-option:hover,
html.dark .dashboard-page .worker-option:focus-visible {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
}

html.dark .dashboard-page .manual-staff-card .field input,
html.dark .dashboard-page .manual-staff-card .field select {
    background:
        linear-gradient(145deg, color-mix(in oklch, white 8%, transparent), transparent 58%),
        color-mix(in oklch, var(--card) 58%, transparent);
}

html.dark .dashboard-page .manual-staff-card .password-toggle {
    background: color-mix(in oklch, var(--card) 46%, transparent);
}

html.dark .dashboard-page .brand span:last-child,
html.dark .dashboard-page .page-heading h1,
html.dark .dashboard-page .breadcrumbs strong,
html.dark .dashboard-page .account-badge strong,
html.dark .dashboard-page .metric-card strong,
html.dark .dashboard-page .section-title h2,
html.dark .dashboard-page .data-table,
html.dark .dashboard-page .watchlist strong,
html.dark .dashboard-page .pulse-card h2,
html.dark .dashboard-page .sidebar-user strong {
    color: var(--foreground);
}

html.dark .dashboard-page .brand small,
html.dark .dashboard-page .page-heading p,
html.dark .dashboard-page .breadcrumbs,
html.dark .dashboard-page .account-badge span,
html.dark .dashboard-page .metric-card span,
html.dark .dashboard-page .metric-card small,
html.dark .dashboard-page .section-title p,
html.dark .dashboard-page .data-table th,
html.dark .dashboard-page .watchlist small,
html.dark .dashboard-page .watchlist em small,
html.dark .dashboard-page .pulse-stats small,
html.dark .dashboard-page .sidebar-user small {
    color: var(--muted-foreground);
}

html.dark .dashboard-page .brand-icon,
html.dark .dashboard-page .side-nav a.active,
html.dark .dashboard-page .btn-primary,
html.dark .dashboard-page .theme-control button.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

html.dark .dashboard-page .side-nav a:not(.active),
html.dark .dashboard-page .sidebar-settings,
html.dark .dashboard-page .notification-button,
html.dark .dashboard-page .theme-control,
html.dark .dashboard-page .user-pill,
html.dark .dashboard-page .profile-panel,
html.dark .dashboard-page .search-field input,
html.dark .dashboard-page .icon-button {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background: color-mix(in oklch, var(--card) 42%, transparent);
    color: var(--muted-foreground);
    box-shadow: inset 0 1px 0 color-mix(in oklch, white 18%, transparent);
}

html.dark .dashboard-page .side-nav a:not(.active):hover,
html.dark .dashboard-page .sidebar-settings:hover,
html.dark .dashboard-page .notification-button:hover,
html.dark .dashboard-page .icon-button:hover {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
    color: var(--foreground);
}

html.dark .dashboard-page .metric-card i,
html.dark .dashboard-page .connection-icon,
html.dark .dashboard-page .search-field span,
html.dark .dashboard-page .text-link {
    color: var(--primary);
}

html.dark .dashboard-page .watchlist .card-icon {
    background: color-mix(in oklch, var(--accent) 42%, transparent);
    color: var(--accent);
}

html.dark .dashboard-page .sidebar-user > span {
    border-color: color-mix(in oklch, white 36%, transparent);
    background: color-mix(in oklch, var(--foreground) 12%, black);
    color: var(--foreground);
}

html.dark .dashboard-page .user-pill-chevron,
html.dark .dashboard-page .profile-panel-head span {
    color: var(--muted-foreground);
}

html.dark .dashboard-page .profile-panel {
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--popover, var(--card-strong)) 86%, transparent);
    box-shadow:
        0 22px 60px color-mix(in oklch, black 48%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 24%, transparent);
}

html.dark .dashboard-page .profile-panel-head strong {
    color: var(--foreground);
}

html.dark .dashboard-page .profile-panel form {
    border-top-color: color-mix(in oklch, var(--border) 86%, transparent);
}

html.dark .dashboard-page .dashboard-scroll {
    scrollbar-color: color-mix(in oklch, var(--primary) 68%, var(--foreground)) color-mix(in oklch, var(--background) 88%, transparent);
}

/* Profile dropdown compact pass: old Next header sizing. */
.dashboard-page .profile-menu {
    position: relative;
}

.dashboard-page .user-pill {
    min-width: 0;
    width: auto;
    height: 40px;
    min-height: 0;
    gap: 8px;
    border-radius: 12px;
    padding: 6px 8px;
}

.dashboard-page .user-pill > span {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.dashboard-page .user-pill strong {
    max-width: 112px;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.15;
}

.dashboard-page .user-pill small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.dashboard-page .user-pill-chevron {
    font-style: normal;
}

.dashboard-page .user-pill-chevron .autoenablt-icon, .fleetline-icon {
    width: 14px;
    height: 14px;
}

.dashboard-page .profile-panel {
    top: calc(100% + 8px);
    width: 224px;
    border-radius: 12px;
    padding: 8px;
    overflow: hidden;
    box-shadow:
        0 14px 30px rgba(29, 51, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.dashboard-page .profile-panel-head {
    gap: 2px;
    padding: 4px 8px 8px;
}

.dashboard-page .profile-panel-head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.dashboard-page .profile-panel-head span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.dashboard-page .profile-panel form {
    margin-top: 2px;
    padding: 8px 0 0;
}

.dashboard-page .profile-signout {
    gap: 8px;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-page .profile-signout .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

/* Table actions dropdowns, matching the old Next TableActions component. */
.dashboard-page .actions-col {
    width: 52px;
    text-align: right;
}

.dashboard-page .actions-cell {
    position: relative;
    text-align: right;
}

.dashboard-page .table-action-menu {
    display: inline-flex;
}

.dashboard-page .table-action-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-foreground);
    transition: background 0.16s ease, color 0.16s ease;
}

.dashboard-page .table-action-trigger:hover,
.dashboard-page .table-action-menu.open .table-action-trigger {
    background: var(--muted);
    color: var(--foreground);
}

.dashboard-page .table-action-trigger .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.dashboard-page .table-action-panel {
    position: fixed;
    z-index: 90;
    width: 242px;
    border: 1px solid rgba(103, 132, 154, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 244, 251, 0.68)),
        rgba(247, 251, 255, 0.9);
    box-shadow:
        0 16px 34px rgba(29, 51, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}

.dashboard-page .table-action-panel[hidden] {
    display: none;
}

.dashboard-page .table-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #071424;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
}

.dashboard-page .table-action-item:hover {
    background: rgba(17, 93, 171, 0.1);
}

.dashboard-page .table-action-item.danger {
    color: #ef4444;
}

.dashboard-page .table-action-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.dashboard-page .table-action-item .autoenablt-icon, .fleetline-icon {
    width: 20px;
    height: 20px;
}

.dashboard-page .table-action-separator {
    display: block;
    height: 1px;
    margin: 7px 0;
    background: rgba(103, 132, 154, 0.24);
}

.dashboard-page .record-view-card {
    width: min(100%, 430px);
}

.dashboard-page .record-view-card .eyebrow-text {
    margin: 0 0 8px;
}

.dashboard-page .record-detail-grid {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-page .record-detail-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
    padding: 12px;
}

.dashboard-page .record-detail-grid span {
    color: var(--muted-foreground);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-page .record-detail-grid strong {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

/* Stock workspace compact pass: old Next page rhythm on the Laravel route. */
.dashboard-page .workspace-panel,
.dashboard-page .movement-card {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-page .workspace-panel {
    margin-top: 24px;
    border-radius: 18px;
    padding: 20px;
}

.dashboard-page .movement-card {
    margin-top: 18px;
    border-radius: 18px;
    padding: 20px;
}

.dashboard-page .metrics-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page .heading-actions .btn {
    min-height: 40px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 13px;
}

.dashboard-page .heading-actions .autoenablt-icon, .fleetline-icon {
    width: 15px;
    height: 15px;
}

.dashboard-page .workspace-panel .section-title {
    align-items: center;
}

.dashboard-page .stock-panel .table-wrap {
    margin-top: 20px;
    border-radius: 14px;
}

.dashboard-page .stock-panel .data-table {
    min-width: 760px;
}

.dashboard-page .stock-panel .data-table th {
    font-size: 12px;
    letter-spacing: 0;
}

.dashboard-page .stock-panel .data-table td {
    font-size: 13px;
}

.dashboard-page .stock-panel .actions-cell {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.dashboard-page .movement-card h2 {
    font-size: 17px;
}

.dashboard-page .movement-card p {
    margin-top: 4px;
    font-size: 14px;
}

.dashboard-page .movement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.dashboard-page .movement-grid article {
    border-radius: 14px;
    padding: 16px;
}

.dashboard-page .movement-grid article span {
    color: var(--muted-foreground);
    font-size: 12px;
}

.dashboard-page .movement-grid article strong {
    display: block;
    margin-top: 8px;
    color: var(--foreground);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 860px) {
    .dashboard-page .metrics-grid.three,
    .dashboard-page .movement-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .workspace-panel .section-title {
        align-items: stretch;
    }
}

html.dark .dashboard-page .table-action-trigger:hover,
html.dark .dashboard-page .table-action-menu.open .table-action-trigger {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
    color: var(--foreground);
}

html.dark .dashboard-page .table-action-panel {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 88%, transparent);
    box-shadow:
        0 18px 40px color-mix(in oklch, black 50%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 24%, transparent);
}

html.dark .dashboard-page .table-action-item {
    color: var(--foreground);
}

html.dark .dashboard-page .table-action-item:hover {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
}

html.dark .dashboard-page .table-action-item.danger {
    color: var(--danger);
}

html.dark .dashboard-page .table-action-item.danger:hover {
    background: color-mix(in oklch, var(--danger) 16%, transparent);
}

html.dark .dashboard-page .table-action-separator {
    background: color-mix(in oklch, var(--border) 86%, transparent);
}

/* Portaled table action menu: same compact sizing as the old Next dropdown. */
.table-action-panel {
    position: fixed;
    z-index: 999;
    width: 160px;
    border: 1px solid rgba(103, 132, 154, 0.28);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 244, 251, 0.68)),
        rgba(247, 251, 255, 0.94);
    box-shadow:
        0 16px 34px rgba(29, 51, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 4px;
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
}

.table-action-panel[hidden] {
    display: none;
}

.table-action-item {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #071424;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.table-action-item:hover {
    background: rgba(17, 93, 171, 0.1);
}

.table-action-item.danger {
    color: #ef4444;
}

.table-action-item.danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.table-action-item .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.table-action-separator {
    display: block;
    height: 1px;
    margin: 4px 2px;
    background: rgba(103, 132, 154, 0.24);
}

html.dark .table-action-panel {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 88%, transparent);
    box-shadow:
        0 18px 40px color-mix(in oklch, black 50%, transparent),
        inset 0 1px 0 color-mix(in oklch, white 24%, transparent);
}

html.dark .table-action-item {
    color: var(--foreground);
}

html.dark .table-action-item:hover {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
}

html.dark .table-action-item.danger {
    color: var(--danger);
}

html.dark .table-action-item.danger:hover {
    background: color-mix(in oklch, var(--danger) 16%, transparent);
}

html.dark .table-action-separator {
    background: color-mix(in oklch, var(--border) 86%, transparent);
}

/* Global text weight baseline from the old Next project. */
body {
    font-weight: 400;
}

.btn,
.icon-button,
.icon-link,
.danger-link,
.field,
.search-field,
.status-pill,
.text-link {
    font-weight: 500;
}

input,
select,
textarea {
    font-weight: 400;
}

.landing-hero h1,
.auth-card h1,
.auth-card h2,
.invite-card h1,
.invite-card h2,
.modal-card h2,
.drawer-head h2 {
    font-weight: 600;
}

.brand-icon,
.card-icon,
.avatar-mini {
    font-weight: 600;
}

/* Typography normalization ported from the old Next dashboard.
   The old UI mostly uses 400 body text, 500 controls/table text, and 600 headings. */
.dashboard-page {
    font-weight: 400;
}

.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page h4,
.dashboard-page .page-heading h1,
.dashboard-page .detail-head h1,
.dashboard-page .pulse-card h2,
.dashboard-page .modal-card h2,
.dashboard-page .drawer-head h2 {
    font-weight: 600;
}

.dashboard-page .eyebrow-text,
.dashboard-page .brand small,
.dashboard-page .status-card > span,
.dashboard-page .detail-items span,
.dashboard-page .data-table th,
.dashboard-page .field,
.dashboard-page .search-field,
.dashboard-page .worker-panel-label {
    font-weight: 500;
}

.dashboard-page .btn,
.dashboard-page .side-nav a,
.dashboard-page .profile-signout,
.dashboard-page .worker-option,
.dashboard-page .table-action-item,
.dashboard-page .danger-link,
.dashboard-page .text-link {
    font-weight: 500;
}

.dashboard-page .brand span:last-child,
.dashboard-page .sidebar-user strong,
.dashboard-page .user-pill strong,
.dashboard-page .profile-panel-head strong,
.dashboard-page .connection-card strong,
.dashboard-page .side-title strong,
.dashboard-page .section-title h2,
.dashboard-page .service-board h2,
.dashboard-page .watchlist strong,
.dashboard-page .staged-card > div:first-child strong,
.dashboard-page .drawer-stock-list strong,
.dashboard-page .staged-list strong,
.dashboard-page .worker-option-copy strong,
.dashboard-page .record-detail-grid strong,
.dashboard-page .data-table td strong,
.dashboard-page .data-table td:first-child,
.dashboard-page .metric-card strong,
.dashboard-page .movement-grid article strong,
.dashboard-page .pulse-stats strong {
    font-weight: 500;
}

.dashboard-page .page-heading h1,
.dashboard-page .detail-head h1,
.dashboard-page .modal-card h2,
.dashboard-page .drawer-head h2,
.dashboard-page .section-title h2,
.dashboard-page .pulse-card h2 {
    font-weight: 600;
}

.dashboard-page .avatar-mini,
.dashboard-page .worker-avatar,
.dashboard-page .worker-option-avatar,
.dashboard-page .worker-tooltip,
.dashboard-page .worker-assigned-badge,
.dashboard-page .status-pill,
.dashboard-page .pipeline-strip span,
.dashboard-page .metric-card span {
    font-weight: 500;
}

.dashboard-page .data-table,
.dashboard-page .data-table td,
.dashboard-page .data-table td span:not(.status-pill):not(.avatar-mini),
.dashboard-page .data-table small,
.dashboard-page .metric-card small,
.dashboard-page .page-heading p,
.dashboard-page .section-title p,
.dashboard-page .drawer-head p,
.dashboard-page .modal-card p,
.dashboard-page .side-panel p,
.dashboard-page .side-title small,
.dashboard-page .worker-option-copy small,
.dashboard-page .profile-panel-head span {
    font-weight: 400;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page .field input,
.dashboard-page .field select,
.dashboard-page .field textarea,
.dashboard-page .search-field input,
.dashboard-page .drawer-stock-list input,
.dashboard-page .stock-picker input {
    font-weight: 400;
}

/* Match the old Next.js parts watchlist tone: low stock gets the accent tile. */
.dashboard-page .watchlist .card-icon:not(:has(.autoenablt-icon, .fleetline-icon)) {
    display: none;
}

.dashboard-page .watchlist .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-foreground);
}

.dashboard-page .watchlist .card-icon.is-low-stock {
    background: color-mix(in srgb, var(--danger) 18%, var(--card));
    color: var(--danger);
}

.dashboard-page .watchlist .level-label {
    color: var(--muted-foreground);
}

.dashboard-page .watchlist .level-label.is-low-stock {
    color: var(--danger);
}

/* Header theme switcher: final icon alignment pass. */
.dashboard-page .theme-control {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    height: 40px;
    padding: 4px;
    border-radius: 15px;
}

.dashboard-page .theme-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    border-radius: 10px;
    padding: 0;
    line-height: 1;
}

.dashboard-page .theme-control button::before {
    content: none;
}

.dashboard-page .theme-control button .autoenablt-icon, .fleetline-icon {
    display: block;
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.dashboard-page .sidebar .brand-icon::before {
    content: none;
}

.dashboard-page .sidebar .brand-icon .autoenablt-icon, .fleetline-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
}

/* POS workspace: original simple layout with corrected component spacing. */
.dashboard-page .pos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
}

.dashboard-page .pos-register,
.dashboard-page .pos-receipts {
    min-width: 0;
}

.dashboard-page .pos-register .section-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    gap: 24px;
    align-items: start;
}

.dashboard-page .pos-register .section-title p,
.dashboard-page .pos-receipts .section-title p {
    max-width: 470px;
    line-height: 1.55;
}

.dashboard-page .pos-register .search-field {
    width: 100%;
    align-self: start;
}

.dashboard-page .pos-customer {
    max-width: none;
    margin: 28px 0 0;
}

.dashboard-page .pos-stock-list,
.dashboard-page .receipt-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.dashboard-page .pos-stock-list {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    align-items: stretch;
    gap: 12px;
}

.dashboard-page .pos-stock-list article,
.dashboard-page .receipt-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 16px;
}

.dashboard-page .pos-stock-list article {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    min-height: 220px;
    padding: 10px;
    position: relative;
}

.dashboard-page .pos-stock-list article.is-filtered-out,
.dashboard-page .pos-stock-list [data-pos-empty][hidden] {
    display: none;
}

.dashboard-page .pos-add-button {
    width: 34px;
    height: 34px;
    justify-self: end;
    border-radius: 11px;
    background: var(--primary);
    color: var(--primary-foreground);
}

.dashboard-page .pos-add-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dashboard-page .receipt-row {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    color: inherit;
    text-align: left;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.dashboard-page .receipt-row:hover,
.dashboard-page .receipt-row:focus-visible {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
    background: color-mix(in srgb, var(--card) 66%, transparent);
    outline: 0;
    transform: translateY(-1px);
}

.dashboard-page .pos-stock-list .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--muted);
    color: var(--muted-foreground);
}

.dashboard-page .pos-stock-list .card-icon.is-low-stock {
    background: color-mix(in srgb, var(--danger) 18%, var(--card));
    color: var(--danger);
}

.dashboard-page .pos-stock-list .autoenablt-icon, .fleetline-icon {
    width: 17px;
    height: 17px;
}

.dashboard-page .pos-product,
.dashboard-page .receipt-row > div {
    min-width: 0;
}

.dashboard-page .pos-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1.55;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    border-radius: 12px;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--card) 70%, transparent), color-mix(in srgb, var(--muted) 46%, transparent));
}

.dashboard-page .pos-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dashboard-page .pos-product strong,
.dashboard-page .receipt-list strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.dashboard-page .pos-stock-card .pos-product strong {
    min-height: 36px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-page .pos-product small,
.dashboard-page .pos-price small,
.dashboard-page .receipt-list small,
.dashboard-page .receipt-list em small {
    display: block;
    margin-top: 3px;
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.35;
}

.dashboard-page .pos-price {
    min-width: 0;
    text-align: left;
}

.dashboard-page .pos-price strong,
.dashboard-page .receipt-list em {
    color: var(--foreground);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.dashboard-page .pos-card-foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.dashboard-page .pos-level-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, var(--card));
    color: var(--primary);
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--foreground) 8%, transparent);
}

.dashboard-page .pos-level-chip.is-low-stock {
    background: color-mix(in srgb, var(--danger) 18%, var(--card));
    color: var(--danger);
}

.dashboard-page .pos-stock-list input {
    width: 88px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 62%, transparent);
    padding: 0 10px;
    text-align: center;
}

.dashboard-page .pos-stock-list input:focus {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
    outline: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

/* Keep the signed-in account block pinned to the sidebar footer. */
.dashboard-page .sidebar {
    display: flex;
    flex-direction: column;
}

.dashboard-page .connection-card {
    margin-top: 22px;
}

.dashboard-page .sidebar-user {
    margin-top: auto;
}

.dashboard-page .pos-checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.dashboard-page .pos-checkout span {
    display: block;
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
}

.dashboard-page .pos-checkout strong {
    display: block;
    margin-top: 2px;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-page .pos-receipts {
    align-self: start;
    min-height: 320px;
}

.dashboard-page .pos-cart-panel {
    position: sticky;
    top: 24px;
}

.dashboard-page .pos-cart-list {
    max-height: 390px;
    overflow-y: auto;
    padding-right: 4px;
}

.dashboard-page .pos-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 14px;
}

.dashboard-page .pos-cart-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.dashboard-page .pos-cart-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted-foreground);
    font-size: 11px;
}

.dashboard-page .pos-cart-row em {
    color: var(--foreground);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    text-align: right;
}

.dashboard-page .pos-cart-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-page .pos-cart-controls .icon-button {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.dashboard-page .pos-cart-controls span {
    min-width: 26px;
    color: var(--foreground);
    font-size: 13px;
    text-align: center;
}

.dashboard-page .pos-cart-controls .danger {
    color: #ef4444;
}

.dashboard-page .invoice-table .clickable-row {
    cursor: pointer;
}

.dashboard-page .invoice-table .clickable-row:hover,
.dashboard-page .invoice-table .clickable-row:focus-visible {
    background: color-mix(in srgb, var(--card) 54%, transparent);
    outline: 0;
}

.dashboard-page .invoice-download {
    width: 34px;
    height: 34px;
    margin-left: auto;
    color: var(--primary);
}

.dashboard-page .roles-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    max-width: 1500px;
    margin: 30px auto 0;
}

.dashboard-page .roles-panel,
.dashboard-page .role-help-panel {
    min-width: 0;
}

.dashboard-page .role-matrix {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.dashboard-page .role-matrix-head,
.dashboard-page .role-matrix-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, 112px);
    gap: 14px;
    align-items: center;
}

.dashboard-page .role-matrix-head {
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
}

.dashboard-page .role-matrix-head strong {
    color: var(--foreground);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: none;
}

.dashboard-page .role-matrix-row {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 14px;
}

.dashboard-page .role-matrix-row.is-locked {
    background: color-mix(in srgb, var(--muted) 32%, transparent);
}

.dashboard-page .role-matrix-row strong {
    display: block;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

.dashboard-page .role-matrix-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.45;
}

.dashboard-page .access-toggle {
    display: inline-flex;
    justify-content: center;
    position: relative;
}

.dashboard-page .access-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.dashboard-page .access-toggle span {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 70%, transparent);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.dashboard-page .access-toggle span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
    transition: transform 0.16s ease;
}

.dashboard-page .access-toggle input:checked + span {
    border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
    background: var(--primary);
}

.dashboard-page .access-toggle input:checked + span::after {
    transform: translateX(20px);
}

.dashboard-page .access-toggle input:focus-visible + span {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.dashboard-page .access-badge {
    justify-self: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary);
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-page .access-badge.muted {
    background: color-mix(in srgb, var(--muted) 68%, transparent);
    color: var(--muted-foreground);
}

.dashboard-page .role-help-panel {
    align-self: start;
}

.dashboard-page .role-help-panel h2 {
    margin: 0;
    font-size: 18px;
}

.dashboard-page .role-help-panel p {
    margin: 10px 0 0;
    color: var(--muted-foreground);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-page .role-help-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-page .role-help-list article {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 48%, transparent);
    padding: 12px;
}

.dashboard-page .role-help-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-page .role-help-list strong {
    display: block;
    font-size: 14px;
}

.dashboard-page .role-help-list small {
    display: block;
    margin-top: 3px;
    color: var(--muted-foreground);
    font-size: 11px;
}

.dashboard-page .role-accordion {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.dashboard-page .role-accordion-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--card) 50%, transparent);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--shadow) 14%, transparent);
}

.dashboard-page .role-accordion-trigger {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--foreground);
    padding: 16px 18px;
    text-align: left;
    cursor: pointer;
}

.dashboard-page .role-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-page .role-trigger-copy {
    min-width: 0;
}

.dashboard-page .role-trigger-copy strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
}

.dashboard-page .role-trigger-copy small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 12px;
}

.dashboard-page .role-trigger-meta {
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 600;
}

.dashboard-page .role-accordion-trigger > .autoenablt-icon, .fleetline-icon {
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-page .role-accordion-item.open .role-accordion-trigger > .autoenablt-icon, .fleetline-icon {
    color: var(--primary);
    transform: rotate(180deg);
}

.dashboard-page .role-accordion-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

.dashboard-page .role-accordion-item.open .role-accordion-panel {
    max-height: 1500px;
    opacity: 1;
}

.dashboard-page .role-access-list {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding: 14px 16px 16px;
}

.dashboard-page .role-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--card) 44%, transparent);
    padding: 13px 14px;
}

.dashboard-page .role-access-row.is-locked {
    background: color-mix(in srgb, var(--muted) 30%, transparent);
}

.dashboard-page .role-access-row strong {
    display: block;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
}

.dashboard-page .role-access-row small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 11px;
    line-height: 1.45;
}

/* Service job supplies drawer and invoice totals. */
.dashboard-page .add-supplies-card {
    display: flex;
    flex-direction: column;
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    padding: 28px;
}

.dashboard-page .add-supplies-card .drawer-head {
    padding-right: 52px;
}

.dashboard-page .add-supplies-card .drawer-form {
    min-height: 0;
    margin-top: 22px;
}

.dashboard-page .add-supplies-card .drawer-scroll {
    overflow: hidden;
    padding-right: 0;
}

.dashboard-page .add-supplies-card .drawer-footer {
    flex-shrink: 0;
}

.dashboard-page .side-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.dashboard-page .side-total span {
    color: var(--muted-foreground);
    font-size: 12px;
}

.dashboard-page .side-total strong {
    color: var(--foreground);
    font-size: 15px;
    font-weight: 600;
}

.dashboard-page .supply-pos-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.72fr) minmax(360px, 1fr);
    gap: 22px;
    min-height: 0;
}

.dashboard-page .supply-products-panel,
.dashboard-page .supply-cart-panel {
    min-width: 0;
}

.dashboard-page .section-title.compact {
    align-items: center;
    margin-bottom: 14px;
}

.dashboard-page .section-title.compact h3 {
    margin: 0;
    font-size: 16px;
}

.dashboard-page .section-title.compact p {
    margin: 4px 0 0;
}

.dashboard-page .section-title.compact .search-field {
    max-width: 260px;
}

.dashboard-page .supply-pos-grid .drawer-stock-list {
    max-height: min(54vh, 520px);
}

.dashboard-page .supply-pos-grid .drawer-stock-list article {
    grid-template-columns: minmax(0, 1fr) 88px 64px 38px;
    gap: 10px;
}

.dashboard-page .drawer-stock-price {
    min-width: 0;
    text-align: right;
}

.dashboard-page .drawer-stock-price strong {
    font-size: 13px;
}

.dashboard-page .supply-cart-panel {
    align-self: start;
    position: static;
}

.dashboard-page .supply-cart-panel .staged-list {
    max-height: min(45vh, 430px);
}

.dashboard-page .supply-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.dashboard-page .supply-cart-total span,
.dashboard-page .service-total-card span {
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
}

.dashboard-page .supply-cart-total strong,
.dashboard-page .service-total-card strong {
    color: var(--foreground);
    font-size: 16px;
    font-weight: 600;
}

.dashboard-page .staged-list article em {
    color: var(--foreground);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    white-space: nowrap;
}

.dashboard-page .service-total-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-page .service-supplies-breakdown {
    display: grid;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 44%, transparent);
    padding: 13px;
}

.dashboard-page .service-supplies-breakdown > strong {
    font-size: 14px;
    font-weight: 600;
}

.dashboard-page .service-supplies-breakdown article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}

.dashboard-page .service-supplies-breakdown span,
.dashboard-page .service-supplies-breakdown p {
    color: var(--muted-foreground);
    font-size: 12px;
}

.dashboard-page .service-supplies-breakdown small {
    color: var(--muted-foreground);
}

.dashboard-page .service-supplies-breakdown em {
    color: var(--foreground);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.dashboard-page .service-total-card div {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 13px;
}

.dashboard-page .service-total-card strong {
    display: block;
    margin-top: 6px;
}

/* Landing page polish to match the dashboard glass controls. */
.landing-page {
    color: #071424;
    font-weight: 400;
}

.landing-page .landing-nav {
    max-width: 1280px;
    padding: 28px 36px 18px;
}

.landing-page .brand {
    gap: 14px;
    color: #071424;
    font-size: 22px;
    font-weight: 600;
}

.landing-page .brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #075aa8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 22px 42px rgba(7, 90, 168, 0.24);
}

.landing-page .landing-links {
    gap: 22px;
    color: #425f77;
    font-size: 14px;
    font-weight: 400;
}

.landing-page .landing-links a {
    transition: color 0.16s ease;
}

.landing-page .landing-links a:hover {
    color: #071424;
}

.landing-page .nav-actions {
    gap: 14px;
}

.landing-page .theme-control {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    height: 40px;
    border: 1px solid rgba(103, 132, 154, 0.22);
    border-radius: 15px;
    background: rgba(247, 251, 255, 0.38);
    padding: 4px;
    backdrop-filter: blur(18px) saturate(145%);
}

.landing-page .theme-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #425f77;
    padding: 0;
    line-height: 1;
}

.landing-page .theme-control button.active {
    background: #075aa8;
    color: #ffffff;
}

.landing-page .theme-control button .autoenablt-icon, .fleetline-icon {
    display: block;
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.landing-page .btn {
    min-height: 42px;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
}

.landing-page .btn-primary {
    background: #075aa8;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(7, 90, 168, 0.2);
}

.landing-page .btn-outline {
    border-color: rgba(103, 132, 154, 0.22);
    background: rgba(247, 251, 255, 0.38);
    color: #071424;
}

.landing-page .landing-hero {
    max-width: 1280px;
    gap: 58px;
    padding-top: 66px;
}

.landing-page .eyebrow,
.landing-page .eyebrow-text {
    color: #075aa8;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.landing-page .eyebrow {
    border-color: rgba(103, 132, 154, 0.22);
    background: rgba(247, 251, 255, 0.38);
}

.landing-page .eyebrow span {
    background: #075aa8;
}

.landing-page .hero-copy h1 {
    color: #071424;
    font-weight: 600;
    letter-spacing: 0;
}

.landing-page .hero-copy h1 span {
    color: #075aa8;
}

.landing-page .hero-copy .lead,
.landing-page .section-heading > p,
.landing-page .feature-card p,
.landing-page .soft-card p,
.landing-page .trust-row {
    color: #425f77;
    font-weight: 400;
}

.landing-page .preview-shell,
.landing-page .feature-card,
.landing-page .soft-card {
    border-color: rgba(103, 132, 154, 0.22);
    background: rgba(247, 251, 255, 0.38);
    backdrop-filter: blur(24px) saturate(145%);
}

.landing-page .preview-shell {
    border-radius: 24px;
}

.landing-page .preview-top strong,
.landing-page .job-mini em {
    background: rgba(7, 90, 168, 0.12);
    color: #075aa8;
    font-weight: 500;
}

.landing-page .mini-metrics strong,
.landing-page .board-heading strong,
.landing-page .job-mini strong,
.landing-page .soft-card h2,
.landing-page .feature-card h3,
.landing-page .section-heading h2 {
    color: #071424;
    font-weight: 600;
}

.landing-page .card-icon {
    background: #075aa8;
    color: #ffffff;
}

.landing-page .site-footer {
    color: #425f77;
    font-weight: 400;
}

html.dark .landing-page {
    color: var(--foreground);
}

html.dark .landing-page .brand,
html.dark .landing-page .landing-links a:hover,
html.dark .landing-page .btn-outline,
html.dark .landing-page .hero-copy h1,
html.dark .landing-page .mini-metrics strong,
html.dark .landing-page .board-heading strong,
html.dark .landing-page .job-mini strong,
html.dark .landing-page .soft-card h2,
html.dark .landing-page .feature-card h3,
html.dark .landing-page .section-heading h2 {
    color: var(--foreground);
}

html.dark .landing-page .landing-links,
html.dark .landing-page .hero-copy .lead,
html.dark .landing-page .section-heading > p,
html.dark .landing-page .feature-card p,
html.dark .landing-page .soft-card p,
html.dark .landing-page .trust-row,
html.dark .landing-page .site-footer {
    color: var(--muted-foreground);
}

html.dark .landing-page .brand-icon,
html.dark .landing-page .theme-control button.active,
html.dark .landing-page .btn-primary,
html.dark .landing-page .card-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

html.dark .landing-page .eyebrow,
html.dark .landing-page .eyebrow-text,
html.dark .landing-page .hero-copy h1 span,
html.dark .landing-page .preview-top strong,
html.dark .landing-page .job-mini em {
    color: var(--primary);
}

html.dark .landing-page .theme-control,
html.dark .landing-page .btn-outline,
html.dark .landing-page .eyebrow,
html.dark .landing-page .preview-shell,
html.dark .landing-page .feature-card,
html.dark .landing-page .soft-card {
    border-color: var(--border);
    background: color-mix(in srgb, var(--card) 58%, transparent);
}

html.dark .landing-page .theme-control button {
    color: var(--muted-foreground);
}

.pos-sale-card {
    width: min(100%, 680px);
}

.pos-sale-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-right: 42px;
}

.pos-sale-head h2 {
    margin-top: 5px;
}

.pos-sale-head p:last-child {
    margin: 6px 0 0;
}

.pos-sale-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.pos-sale-meta div {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 12px;
}

.pos-sale-meta span {
    display: block;
    color: var(--muted-foreground);
    font-size: 11px;
    text-transform: uppercase;
}

.pos-sale-meta strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.pos-sale-items {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pos-sale-items article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 52%, transparent);
    padding: 12px;
}

.pos-sale-items strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.pos-sale-items small {
    display: block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 11px;
}

.pos-sale-items em {
    color: var(--foreground);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    text-align: right;
}

@media (max-width: 1180px) {
    .dashboard-page .pos-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .roles-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-page .supply-pos-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .pos-register .section-title {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .dashboard-page .role-matrix {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .dashboard-page .role-matrix-head,
    .dashboard-page .role-matrix-row {
        grid-template-columns: minmax(220px, 1fr) repeat(3, 92px);
        min-width: 540px;
    }

    .dashboard-page .roles-panel .section-title {
        align-items: stretch;
        display: grid;
        gap: 16px;
    }

    .dashboard-page .role-accordion-trigger {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dashboard-page .role-trigger-meta {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-page .role-access-row {
        grid-template-columns: 1fr;
    }

    .dashboard-page .role-access-row .access-toggle,
    .dashboard-page .role-access-row .access-badge {
        justify-self: start;
    }

    .dashboard-page .supply-pos-grid .drawer-stock-list article {
        grid-template-columns: 1fr;
    }

    .dashboard-page .drawer-stock-price {
        text-align: left;
    }

    .dashboard-page .service-total-card {
        grid-template-columns: 1fr;
    }

    .dashboard-page .pos-stock-list article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dashboard-page .pos-price,
    .dashboard-page .pos-add-button {
        grid-column: 2;
        text-align: left;
    }

    .dashboard-page .pos-add-button {
        justify-self: start;
    }

    .dashboard-page .pos-checkout {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-sale-head,
    .pos-sale-meta {
        grid-template-columns: 1fr;
    }

    .pos-sale-head {
        display: grid;
    }
}

/* Final dark contrast pass: later compact rules use light-theme ink values. */
html.dark .dashboard-page,
html.dark .dashboard-page .brand span:last-child,
html.dark .dashboard-page .sidebar-user strong,
html.dark .dashboard-page .user-pill strong,
html.dark .dashboard-page .profile-panel-head strong,
html.dark .dashboard-page .breadcrumbs strong,
html.dark .dashboard-page .page-heading h1,
html.dark .dashboard-page .detail-head h1,
html.dark .dashboard-page .detail-items strong,
html.dark .dashboard-page .side-panel strong,
html.dark .dashboard-page .side-total strong,
html.dark .dashboard-page .account-badge strong,
html.dark .dashboard-page .metric-card strong,
html.dark .dashboard-page .section-title h2,
html.dark .dashboard-page .section-title h3,
html.dark .dashboard-page .pulse-card h2,
html.dark .dashboard-page .pulse-stats strong,
html.dark .dashboard-page .data-table,
html.dark .dashboard-page .data-table th,
html.dark .dashboard-page .data-table td strong,
html.dark .dashboard-page .watchlist strong,
html.dark .dashboard-page .watchlist em,
html.dark .dashboard-page .profile-panel,
html.dark .dashboard-page .table-action-item,
html.dark .dashboard-page .record-detail-grid strong,
html.dark .dashboard-page .stock-product-options button,
html.dark .dashboard-page .role-trigger-copy strong,
html.dark .dashboard-page .role-access-row strong,
html.dark .dashboard-page .service-supplies-breakdown > strong,
html.dark .dashboard-page .pos-product strong,
html.dark .dashboard-page .pos-price strong,
html.dark .dashboard-page .pos-cart-row strong,
html.dark .dashboard-page .pos-cart-row em,
html.dark .dashboard-page .pos-checkout strong,
html.dark .dashboard-page .receipt-list strong,
html.dark .dashboard-page .receipt-list em,
html.dark .dashboard-page .modal-card h2,
html.dark .dashboard-page .modal-card strong,
html.dark .dashboard-page .field,
html.dark .dashboard-page .field input,
html.dark .dashboard-page .field select,
html.dark .dashboard-page .field textarea {
    color: var(--foreground);
}

html.dark .dashboard-page .brand small,
html.dark .dashboard-page .side-nav a:not(.active),
html.dark .dashboard-page .sidebar-user small,
html.dark .dashboard-page .user-pill small,
html.dark .dashboard-page .user-pill-chevron,
html.dark .dashboard-page .profile-panel-head span,
html.dark .dashboard-page .breadcrumbs,
html.dark .dashboard-page .page-heading p,
html.dark .dashboard-page .detail-head p,
html.dark .dashboard-page .detail-items span,
html.dark .dashboard-page .side-panel p,
html.dark .dashboard-page .side-panel blockquote,
html.dark .dashboard-page .side-total span,
html.dark .dashboard-page .account-badge span,
html.dark .dashboard-page .metric-card span,
html.dark .dashboard-page .metric-card small,
html.dark .dashboard-page .section-title p,
html.dark .dashboard-page .pulse-stats small,
html.dark .dashboard-page .data-table td,
html.dark .dashboard-page .data-table small,
html.dark .dashboard-page .watchlist small,
html.dark .dashboard-page .watchlist em small,
html.dark .dashboard-page .record-detail-grid span,
html.dark .dashboard-page .stock-product-options span,
html.dark .dashboard-page .stock-product-options p,
html.dark .dashboard-page .field input::placeholder,
html.dark .dashboard-page .field textarea::placeholder,
html.dark .dashboard-page .search-field input::placeholder,
html.dark .dashboard-page .role-trigger-copy small,
html.dark .dashboard-page .role-access-row small,
html.dark .dashboard-page .service-supplies-breakdown span,
html.dark .dashboard-page .service-supplies-breakdown p,
html.dark .dashboard-page .service-supplies-breakdown small,
html.dark .dashboard-page .pos-product small,
html.dark .dashboard-page .pos-price small,
html.dark .dashboard-page .pos-cart-row small,
html.dark .dashboard-page .receipt-list small,
html.dark .dashboard-page .modal-card p,
html.dark .dashboard-page .empty-state {
    color: var(--muted-foreground);
}

html.dark .dashboard-page .search-field input,
html.dark .dashboard-page .field input,
html.dark .dashboard-page .field select,
html.dark .dashboard-page .field textarea {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 8%, transparent), transparent 58%),
        color-mix(in oklch, var(--card) 58%, transparent);
}

html.dark .dashboard-page .table-action-panel,
html.dark .dashboard-page .profile-panel,
html.dark .dashboard-page .stock-product-options {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background:
        linear-gradient(145deg, color-mix(in oklch, white 9%, transparent), transparent 42%),
        color-mix(in oklch, var(--card-strong) 90%, transparent);
}

html.dark .dashboard-page .table-action-item:hover,
html.dark .dashboard-page .stock-product-options button:hover,
html.dark .dashboard-page .stock-product-options button:focus-visible {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
}

html.dark .dashboard-page .table-action-item.danger,
html.dark .dashboard-page .profile-signout {
    color: var(--danger);
}

html.dark .dashboard-page .theme-control button:not(.active) {
    color: var(--muted-foreground);
}

html.dark .dashboard-page .theme-control button.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.password-wrapper,
.password-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input,
.password-control input {
    width: 100%;
    padding-right: 46px !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    color: var(--muted-foreground);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    opacity: 1;
    color: var(--foreground);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.password-toggle span,
.password-toggle .eye-show,
.password-toggle .eye-hide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.password-toggle span[hidden],
.password-toggle .eye-hide[hidden],
.password-toggle .eye-show[hidden] {
    display: none !important;
}

.password-toggle svg,
.password-toggle .autoenablt-icon, .fleetline-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    display: block;
    pointer-events: none;
}

/* ==========================================================================
   Shrinkable & Expandable Sidebar System
   ========================================================================== */

.dashboard-page .sidebar {
    position: sticky;
    top: 0;
    width: 280px;
    height: 100vh;
    flex-shrink: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
    overflow-x: hidden !important;
    overflow-y: hidden;
    padding: 22px 16px 18px;
    box-sizing: border-box;
}

.dashboard-page .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    min-width: 0;
}

.dashboard-page .sidebar-brand .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.dashboard-page .sidebar-brand .brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    transition: opacity 0.2s ease;
}

.dashboard-page .sidebar-brand .brand-text small {
    font-size: 9.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    font-weight: 700;
    display: block;
}

.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.sidebar-toggle-btn:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}

.sidebar-toggle-btn .autoenablt-icon, .fleetline-icon {
    width: 17px;
    height: 17px;
}

.sidebar-toggle-btn .icon-collapse,
.sidebar-toggle-btn .icon-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn .icon-expand {
    display: none;
}

.header-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--card) 60%, transparent);
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.18s ease;
    margin-right: 6px;
}

.header-sidebar-toggle:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    transform: translateY(-1px);
}

.header-sidebar-toggle .autoenablt-icon, .fleetline-icon {
    width: 16px;
    height: 16px;
}

.dashboard-page .side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 36px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.22) transparent;
}

.dashboard-page .side-nav::-webkit-scrollbar {
    width: 4px;
    height: 0;
}

.dashboard-page .side-nav::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-page .side-nav::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.22);
    border-radius: 999px;
}

.dashboard-page .side-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.45);
}

.dashboard-page .side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 600;
    box-sizing: border-box;
    overflow: hidden;
}

.dashboard-page .side-nav a .nav-label {
    display: inline-block;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.dashboard-page .sidebar-user {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    overflow: hidden;
    min-width: 0;
}

.dashboard-page .sidebar-user .user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--muted);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.dashboard-page .sidebar-user .user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.dashboard-page .sidebar-user .user-meta strong {
    font-size: 13.5px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .sidebar-user .user-meta small {
    font-size: 11.5px;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Collapsed Sidebar Rules (Desktop only)
   ========================================================================== */
@media (min-width: 861px) {
    html.sidebar-collapsed .dashboard-page .sidebar {
        width: 76px;
        padding: 20px 8px 16px;
        align-items: center;
        overflow: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html.sidebar-collapsed .dashboard-page .sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-brand {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-brand .brand {
        justify-content: center;
        margin: 0 auto;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-brand .brand-text {
        display: none !important;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-brand .sidebar-toggle-btn {
        margin: 0 auto;
    }

    html.sidebar-collapsed .sidebar-toggle-btn .icon-collapse {
        display: none;
    }

    html.sidebar-collapsed .sidebar-toggle-btn .icon-expand {
        display: inline-flex;
    }

    html.sidebar-collapsed .header-sidebar-toggle {
        background: color-mix(in srgb, var(--primary) 14%, transparent);
        color: var(--primary);
        border-color: color-mix(in srgb, var(--primary) 32%, transparent);
    }

    html.sidebar-collapsed .dashboard-page .side-nav {
        margin-top: 24px;
        padding: 0;
        width: 100%;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html.sidebar-collapsed .dashboard-page .side-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }

    html.sidebar-collapsed .dashboard-page .side-nav a {
        width: 44px;
        min-height: 44px;
        height: 44px;
        padding: 0;
        margin: 0 auto;
        justify-content: center;
        border-radius: 12px;
        position: relative;
        flex-shrink: 0;
    }

    html.sidebar-collapsed .dashboard-page .side-nav a .nav-label {
        display: none !important;
    }

    html.sidebar-collapsed .dashboard-page .side-nav .nav-dot {
        margin: 0;
        width: 22px;
        height: 22px;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-user {
        display: flex;
        justify-content: center;
        padding: 14px 0 0;
        margin-top: auto;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-user .user-avatar {
        width: 38px;
        height: 38px;
        font-size: 13px;
        margin: 0 auto;
        cursor: pointer;
    }

    html.sidebar-collapsed .dashboard-page .sidebar-user .user-meta,
    html.sidebar-collapsed .dashboard-page .sidebar-user .sidebar-settings {
        display: none !important;
    }

    /* Glassmorphic Floating Tooltip on Collapsed Nav Items */
    html.sidebar-collapsed .side-nav a[data-tooltip] {
        position: relative;
    }

    html.sidebar-collapsed .side-nav a[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(-6px);
        background: rgba(11, 19, 32, 0.95);
        color: #f8fafc;
        padding: 7px 13px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.2;
        white-space: nowrap;
        border-radius: 9px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    html.sidebar-collapsed .side-nav a[data-tooltip]::before {
        content: '';
        position: absolute;
        left: calc(100% + 4px);
        top: 50%;
        transform: translateY(-50%) translateX(-4px);
        border: 5px solid transparent;
        border-right-color: rgba(11, 19, 32, 0.95);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    html.sidebar-collapsed .side-nav a[data-tooltip]:hover::after,
    html.sidebar-collapsed .side-nav a[data-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }

    /* Light Theme Floating Tooltip */
    html.light.sidebar-collapsed .side-nav a[data-tooltip]::after {
        background: rgba(15, 23, 42, 0.92);
        color: #f8fafc;
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35);
    }

    html.light.sidebar-collapsed .side-nav a[data-tooltip]::before {
        border-right-color: rgba(15, 23, 42, 0.92);
    }
}

/* Dark theme overrides for toggles */
html.dark .sidebar-toggle-btn {
    color: var(--muted-foreground);
}

html.dark .sidebar-toggle-btn:hover {
    background: color-mix(in oklch, var(--primary) 18%, transparent);
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 28%, transparent);
}

html.dark .header-sidebar-toggle {
    border-color: color-mix(in oklch, var(--border) 86%, transparent);
    background: color-mix(in oklch, var(--card) 42%, transparent);
    color: var(--muted-foreground);
    box-shadow: inset 0 1px 0 color-mix(in oklch, white 18%, transparent);
}

html.dark .header-sidebar-toggle:hover {
    background: color-mix(in oklch, var(--muted) 82%, transparent);
    color: var(--foreground);
}

/* ==========================================================================
   Universal Theme Blue Profile Avatars (Initials & Capitals)
   ========================================================================== */

.dashboard-page .sidebar-user .user-avatar,
.dashboard-page .sidebar-user > span,
.dashboard-page .user-pill .user-avatar,
.dashboard-page .user-pill > span,
.dashboard-page .avatar-badge,
.dashboard-page .avatar-mini,
.dashboard-page .worker-avatar,
.dashboard-page .worker-option-avatar,
.sidebar-user .user-avatar,
.sidebar-user > span,
.user-pill .user-avatar,
.user-pill > span,
.avatar-badge,
.avatar-mini,
.worker-avatar,
.worker-option-avatar {
    background: #075aa8 !important;
    background-color: #075aa8 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 4px 14px rgba(7, 90, 168, 0.32) !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.dashboard-page .sidebar-user .user-avatar,
.dashboard-page .sidebar-user > span {
    width: 38px;
    height: 38px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

html.sidebar-collapsed .dashboard-page .sidebar-user .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 13.5px;
    margin: 0 auto;
}

.dashboard-page .user-pill .user-avatar,
.dashboard-page .user-pill > span {
    width: 30px;
    height: 30px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.avatar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 11.5px;
    margin-right: 8px;
    vertical-align: middle;
}

.avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 10px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Dark Mode Consistency for Profile Avatars */
html.dark .dashboard-page .sidebar-user .user-avatar,
html.dark .dashboard-page .sidebar-user > span,
html.dark .dashboard-page .user-pill .user-avatar,
html.dark .dashboard-page .user-pill > span,
html.dark .dashboard-page .avatar-badge,
html.dark .dashboard-page .avatar-mini,
html.dark .dashboard-page .worker-avatar,
html.dark .dashboard-page .worker-option-avatar {
    background: #075aa8 !important;
    background-color: #075aa8 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 4px 16px rgba(7, 90, 168, 0.45) !important;
}

/* POS Stock Finished Warning Modal & Card States */
.modal-card.pos-warning-card {
    max-width: 480px;
    padding: 24px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: posWarningPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes posWarningPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pos-warning-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pos-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.25);
    flex-shrink: 0;
}

.pos-warning-icon .autoenablt-icon, .fleetline-icon {
    width: 22px;
    height: 22px;
}

.pos-warning-head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.pos-warning-head p {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0;
}

.pos-warning-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pos-warning-product-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card) 60%, var(--background));
    border: 1px solid var(--border);
}

.pos-warning-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pos-warning-product-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-warning-product-info span {
    font-size: 11.5px;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
}

.pos-warning-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.28);
    white-space: nowrap;
    flex-shrink: 0;
}

.pos-warning-badge.is-zero {
    background: rgba(225, 29, 72, 0.16);
    color: #f43f5e;
    border-color: rgba(225, 29, 72, 0.35);
}

.pos-warning-message {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--foreground);
    margin: 0;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--background) 75%, transparent);
    border-radius: 10px;
    border-left: 3px solid #e11d48;
}

.pos-warning-actions {
    margin-top: 4px;
}

/* Out of Stock Card & Button States */
.dashboard-page .pos-stock-card.is-out-of-stock {
    opacity: 0.78;
    border-color: rgba(225, 29, 72, 0.25);
    background: color-mix(in srgb, rgba(225, 29, 72, 0.04) 100%, var(--card));
}

.dashboard-page .pos-stock-card.is-out-of-stock:hover {
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.12);
}

.dashboard-page .pos-add-button.is-finished,
.dashboard-page .icon-button.primary.is-finished {
    background: rgba(225, 29, 72, 0.14) !important;
    color: #e11d48 !important;
    border: 1px dashed rgba(225, 29, 72, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.18s ease;
}

.dashboard-page .pos-add-button.is-finished:hover,
.dashboard-page .icon-button.primary.is-finished:hover {
    background: rgba(225, 29, 72, 0.24) !important;
    color: #ffffff !important;
    border-color: #e11d48 !important;
    transform: scale(1.05);
}

.dashboard-page .pos-level-chip.is-out-of-stock,
.dashboard-page .card-icon.is-out-of-stock {
    background: rgba(225, 29, 72, 0.14) !important;
    color: #e11d48 !important;
    border: 1px solid rgba(225, 29, 72, 0.3) !important;
}

.dashboard-page .is-out-of-stock-text {
    color: #e11d48 !important;
    font-weight: 600;
}

.dashboard-page .pos-cart-controls .icon-button.is-at-limit {
    opacity: 0.65;
    cursor: pointer;
    border-color: rgba(225, 29, 72, 0.35);
}

/* ==========================================================================
   Company Settings & Brand Profile Styles
   ========================================================================== */
.company-settings-view {
    max-width: 1260px;
    margin: 0 auto;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Header Banner */
.company-settings-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.company-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.hero-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 4px;
}

.hero-avatar-initials {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-title-row h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.header-subtitle {
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted-foreground);
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Super Admin Multi-Company Switcher Banner */
.company-target-banner {
    background: color-mix(in srgb, var(--primary) 8%, var(--card));
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
    border-radius: var(--radius);
    padding: 14px 20px;
}

.target-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.target-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.target-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.target-details strong {
    font-size: 0.94rem;
    color: var(--foreground);
}

.target-details small {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.target-select-wrap {
    min-width: 240px;
}

.company-select-dropdown {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--card-strong);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--foreground);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Main Layout Grid */
.company-settings-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .company-settings-layout {
        grid-template-columns: 1fr;
    }
}

/* Main Column & Section Cards */
.settings-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
}

.section-card-header p {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

/* Logo Uploader Layout */
.logo-uploader-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
}

@media (max-width: 700px) {
    .logo-uploader-container {
        grid-template-columns: 1fr;
    }
}

.logo-preview-card {
    width: 100%;
    height: 140px;
    background: #ffffff;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.active-logo-preview {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
}

.logo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-align: center;
}

.logo-empty-state svg {
    width: 34px;
    height: 34px;
    opacity: 0.6;
}

.logo-empty-state strong {
    font-size: 0.86rem;
    color: #64748b;
}

.logo-empty-state small {
    font-size: 0.75rem;
}

.logo-controls-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.logo-button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-upload-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-weight: 600;
}

.remove-logo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease;
}

.remove-logo-toggle:hover {
    background: rgba(220, 38, 38, 0.14);
}

.logo-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent, #4fd1b3);
}

/* Sticky Bottom Footer */
.settings-sticky-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(12px);
    margin-top: 4px;
}

.footer-status-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--muted-foreground);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-save-large {
    padding: 10px 24px;
    font-weight: 700;
}

/* Right Column: Live Mockup Preview & Checklist */
.settings-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 18px;
}

.side-preview-card,
.side-info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 16px var(--shadow);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-card-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-card-title h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--foreground);
}

.side-card-title small {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.preview-badge {
    align-self: flex-start;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

/* Receipt Mockup Frame */
.receipt-mockup-frame {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

.receipt-header-mockup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.receipt-logo-slot {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.mockup-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mockup-logo-placeholder svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.receipt-brand-meta {
    display: flex;
    flex-direction: column;
}

.receipt-brand-meta strong {
    font-size: 0.9rem;
    color: #075aa8;
    line-height: 1.2;
}

.receipt-brand-meta small {
    font-size: 0.72rem;
    color: #64748b;
}

.receipt-contact-row {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.35;
}

.receipt-divider {
    border-top: 1px dashed #cbd5e1;
    margin: 2px 0;
}

.receipt-meta-mockup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
}

.mockup-inv-title {
    font-weight: 800;
    color: #0f172a;
    display: block;
}

.mockup-paid-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-block;
}

/* Profile Checklist */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    transition: color 0.16s ease;
}

.check-item .check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--foreground) 6%, transparent);
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.16s ease;
}

.check-item .check-icon svg {
    width: 11px;
    height: 11px;
}

.check-item.is-done {
    color: var(--foreground);
    font-weight: 600;
}

.check-item.is-done .check-icon {
    background: #10b981;
    color: #ffffff;
}


/* ==========================================================================
   Invoice Builder Styles
   ========================================================================== */
.invoice-builder-panel {
    padding: 18px 24px;
}

.builder-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-top: 18px;
    align-items: start;
}

@media (max-width: 1180px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

/* Left Toolbox */
.builder-toolbox {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: auto;
    overflow: visible;
}

.toolbox-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 4px 14px var(--shadow);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.toolbox-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.toolbox-card-header strong {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--foreground);
}

.toolbox-card-header small {
    display: block;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-foreground);
}

.btn-segmented {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
    background: color-mix(in srgb, var(--foreground) 5%, transparent);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.btn-segmented.five-cols {
    grid-template-columns: repeat(5, 1fr);
}

.font-size-indicator {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
}

.seg-btn {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.16s ease;
}

.seg-btn svg {
    width: 15px;
    height: 15px;
}

.seg-btn:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.1);
}

.seg-btn.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 40%, transparent);
}

.color-palette {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.16s, border-color 0.16s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.is-active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--foreground);
    transform: scale(1.15);
}

.custom-color-picker {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

/* Component Control List */
.component-list-help {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border-left: 3px solid var(--primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.component-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.component-item {
    background: var(--card-strong);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
    user-select: none;
}

.component-item.is-dragging {
    opacity: 0.45;
    transform: scale(0.98);
}

.component-item.drag-over-top {
    border-top: 3px solid var(--primary);
}

.component-item.drag-over-bottom {
    border-bottom: 3px solid var(--primary);
}

.component-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comp-drag-handle {
    cursor: grab;
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
}

.comp-drag-handle:active {
    cursor: grabbing;
}

.comp-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.comp-title-group strong {
    font-size: 0.86rem;
    color: var(--foreground);
}

.comp-order-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}

.comp-order-btn {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.comp-order-btn:hover {
    color: var(--foreground);
    background: var(--muted);
}

.component-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.comp-align-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.comp-align-btn {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}

.comp-align-btn:hover {
    color: var(--foreground);
}

.comp-align-btn.is-active {
    background: var(--primary);
    color: #ffffff;
}

.comp-size-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: color-mix(in srgb, var(--foreground) 4%, transparent);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.comp-size-btn {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s;
}

.comp-size-btn:hover {
    color: var(--foreground);
    background: var(--muted);
}

.comp-size-btn.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 4px color-mix(in srgb, var(--primary) 40%, transparent);
}

.comp-delete-btn {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comp-delete-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* Right Canvas Area */
.builder-canvas-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
    min-height: 800px;
    overflow: hidden;
}

.canvas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    color: #ffffff;
}

.canvas-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-paper-info {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-zoom-info {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: var(--font-mono, monospace);
}

.canvas-zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-range {
    width: 110px;
    accent-color: var(--primary);
}

.canvas-viewport {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    border-radius: 8px;
    min-height: 700px;
}

/* Paper Sheet Layout on Canvas */
.paper-sheet {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border-radius: 2px;
    transition: transform 0.15s ease, width 0.2s ease, min-height 0.2s ease, font-size 0.12s ease;
    transform-origin: top center;
    position: relative;
    font-size: var(--sheet-font-size, 13.5px);
    line-height: 1.5;
}

.paper-sheet table,
.paper-sheet th,
.paper-sheet td,
.sheet-container,
.canvas-block {
    font-size: inherit;
}

.paper-sheet.paper-a4.paper-portrait {
    width: 210mm;
    min-height: 297mm;
    padding: 16mm 14mm;
}

.paper-sheet.paper-a4.paper-landscape {
    width: 297mm;
    min-height: 210mm;
    padding: 14mm 16mm;
}

.paper-sheet.paper-a5.paper-portrait {
    width: 148mm;
    min-height: 210mm;
    padding: 10mm 10mm;
}

.paper-sheet.paper-a5.paper-landscape {
    width: 210mm;
    min-height: 148mm;
    padding: 10mm 12mm;
}

.paper-sheet.paper-thermal {
    width: 80mm;
    min-height: auto;
    padding: 5mm 4mm;
    font-size: var(--sheet-font-size, 11px);
}

.sheet-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* Canvas Draggable Block Elements */
.canvas-block {
    border: 1px dashed transparent;
    border-radius: 6px;
    padding: 8px 10px;
    position: relative;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    cursor: grab;
    font-size: inherit;
}

.canvas-block:hover {
    border-color: color-mix(in srgb, var(--primary) 50%, #cbd5e1);
    background-color: color-mix(in srgb, var(--primary) 2.5%, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.canvas-block.is-canvas-dragging {
    opacity: 0.35;
}

.canvas-block.canvas-drag-over-top {
    border-top: 2px solid var(--primary);
}

.canvas-block.canvas-drag-over-bottom {
    border-bottom: 2px solid var(--primary);
}

.canvas-block-toolbar {
    position: absolute;
    top: -14px;
    right: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 3px 6px 3px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 30;
    pointer-events: auto;
    animation: fadeInToolbar 0.15s ease-out;
}

@keyframes fadeInToolbar {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.canvas-block:hover .canvas-block-toolbar {
    display: flex;
}

.canvas-block-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.canvas-block-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.canvas-block-align-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.canvas-trash-btn {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.canvas-trash-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
    transform: scale(1.04);
}

.canvas-trash-btn svg {
    flex-shrink: 0;
}

.component-item.is-disabled {
    opacity: 0.55;
    background: color-mix(in srgb, var(--card) 60%, transparent);
}

.component-item.is-disabled strong {
    text-decoration: line-through;
    color: var(--muted-foreground);
}

/* Alignment rules on Canvas blocks */
.canvas-align-left {
    text-align: left;
}

.canvas-align-center {
    text-align: center;
}

.canvas-align-right {
    text-align: right;
}

.canvas-align-justify {
    text-align: justify;
}

/* Canvas Spacer Visual Indicator */
.canvas-spacer-visual {
    border: 1.5px dashed rgba(100, 116, 139, 0.45);
    background: rgba(148, 163, 184, 0.08);
    border-radius: 4px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.15s ease;
    user-select: none;
}

.canvas-block:hover .canvas-spacer-visual {
    border-color: color-mix(in srgb, var(--primary) 60%, transparent);
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.spacer-indicator-line {
    flex: 1;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    margin: 0 8px;
}

.spacer-indicator-tag {
    padding: 1px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.canvas-block:hover .spacer-indicator-tag {
    color: var(--primary);
}

/* ==========================================================================
   Company Settings View & Authentic Live Invoice Template Preview
   ========================================================================== */
.company-settings-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.company-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 24px;
    box-shadow: 0 4px 16px var(--shadow);
    gap: 16px;
    flex-wrap: wrap;
}

.company-settings-header .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
}

.hero-avatar-initials {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.company-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-title-row h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--foreground);
    margin: 0;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin: 3px 0 0 0;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-target-banner {
    background: color-mix(in srgb, var(--primary) 10%, var(--card));
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.target-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.target-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.target-details {
    flex: 1;
    min-width: 240px;
}

.target-details strong {
    display: block;
    font-size: 0.95rem;
    color: var(--foreground);
}

.target-details small {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.company-select-dropdown {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-strong);
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.company-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1100px) {
    .company-settings-layout {
        grid-template-columns: 1fr;
    }
}

.settings-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.section-card-header p {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    margin: 2px 0 0 0;
}

/* Logo Uploader Card Styles */
.logo-uploader-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-preview-card {
    width: 220px;
    height: 120px;
    border-radius: 10px;
    border: 2px dashed var(--border);
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.active-logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    color: var(--muted-foreground);
}

.logo-empty-state svg {
    width: 28px;
    height: 28px;
    opacity: 0.6;
}

.logo-empty-state strong {
    font-size: 0.82rem;
    color: var(--foreground);
}

.logo-empty-state small {
    font-size: 0.72rem;
}

.logo-controls-box {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-upload-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
}

.remove-logo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #ef4444;
    cursor: pointer;
}

.logo-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.logo-specs-list .spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-specs-list .spec-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.required-asterisk {
    color: #ef4444;
    font-weight: 700;
}

/* Sticky Save Footer */
.settings-sticky-footer {
    position: sticky;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    z-index: 90;
    gap: 14px;
}

.footer-status-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.btn-save-large {
    padding: 10px 22px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Right Sidebar Cards */
.settings-side-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.side-preview-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--card);
}

.side-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.side-card-title h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 4px 0 0 0;
}

.side-card-title small {
    font-size: 0.78rem;
    color: var(--muted-foreground);
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

.paper-badge-pill {
    color: #ffffff;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Authentic Live Template Mockup Frame */
.receipt-mockup-frame {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    max-height: 520px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mockup-paper-sheet {
    background: #ffffff;
    color: #0f172a;
    border-radius: 4px;
    padding: 14px 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.mockup-block {
    width: 100%;
}

.mockup-block.align-left {
    text-align: left;
}

.mockup-block.align-center {
    text-align: center;
}

.mockup-block.align-right {
    text-align: right;
}

.mockup-block.align-justify {
    text-align: justify;
}

/* Header Mockup */
.mockup-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.mockup-header.align-left {
    justify-content: flex-start;
    text-align: left;
}

.mockup-header.align-center {
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.mockup-header.align-right {
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: right;
}

.mockup-header.align-justify {
    justify-content: space-between;
    align-items: center;
}

.mockup-brand-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-color, #075aa8);
    display: block;
}

.mockup-meta-sub {
    font-size: 9.5px;
    color: #64748b;
    line-height: 1.35;
}

.mockup-logo-slot {
    max-height: 36px;
    max-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-logo-img {
    max-height: 36px;
    max-width: 90px;
    object-fit: contain;
}

.mockup-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-logo-placeholder svg {
    width: 16px;
    height: 16px;
}

/* Meta Mockup */
.mockup-meta {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.mockup-meta.align-left {
    flex-direction: column;
    align-items: flex-start;
}

.mockup-meta.align-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mockup-meta.align-right {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.mockup-inv-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mockup-meta-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-family: monospace;
}

.mockup-meta-tag {
    color: #475569;
}

.mockup-paid-badge {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 800;
    font-size: 8.5px;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Customer Mockup */
.mockup-customer {
    background: #f8fafc;
    padding: 6px 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 9.5px;
}

.mockup-customer.align-center {
    justify-content: center;
    text-align: center;
}

.mockup-customer.align-right {
    justify-content: flex-end;
    text-align: right;
}

.mockup-lbl {
    display: block;
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
}

.mockup-subtext {
    display: block;
    color: #64748b;
    font-size: 8.5px;
}

/* Table Mockup */
.mockup-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
}

.mockup-items-table th {
    background: #f1f5f9;
    padding: 3px 4px;
    text-align: left;
    font-size: 8px;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
}

.mockup-items-table td {
    padding: 4px;
    border-bottom: 1px solid #f1f5f9;
}

.mockup-mono {
    font-family: monospace;
}

/* Totals Mockup */
.mockup-totals {
    display: flex;
    width: 100%;
}

.mockup-totals.align-left {
    justify-content: flex-start;
}

.mockup-totals.align-center {
    justify-content: center;
}

.mockup-totals.align-right {
    justify-content: flex-end;
}

.mockup-totals.align-justify {
    justify-content: space-between;
}

.mockup-totals-box {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9.5px;
}

.mockup-tot-row {
    display: flex;
    justify-content: space-between;
    color: #64748b;
}

.mockup-grand {
    font-weight: 800;
    padding-top: 3px;
    margin-top: 2px;
}

/* Bank Mockup */
.mockup-bank-box {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    color: #334155;
}

/* Notes & Terms Mockup */
.mockup-notes, .mockup-terms {
    font-size: 9px;
    color: #64748b;
}

.mockup-notes p, .mockup-terms p {
    margin: 2px 0 0 0;
    line-height: 1.3;
}

/* Signatures Mockup */
.mockup-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.mockup-sign-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
    font-size: 8px;
    color: #64748b;
}

.mockup-sign-line {
    width: 100%;
    border-top: 1px solid #64748b;
    margin-bottom: 2px;
}

.mockup-stamp-box {
    width: 48px;
    height: 32px;
    border: 1px dashed #94a3b8;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    color: #94a3b8;
    font-weight: 700;
}

/* QR & Barcode Mockup */
.mockup-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mockup-qr-box {
    width: 32px;
    height: 32px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.mockup-barcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: monospace;
    font-size: 7.5px;
}

.mockup-barcode-lines {
    height: 16px;
    width: 70px;
    background: repeating-linear-gradient(90deg, #000 0, #000 1.5px, transparent 1.5px, transparent 3px, #000 3px, #000 5px, transparent 5px, transparent 6.5px);
}

.mockup-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 6px;
    font-size: 8.5px;
    color: #64748b;
    text-align: center;
}

.mockup-divider {
    border-top: 1px solid #cbd5e1;
    margin: 4px 0;
}

/* Checklist Side Card */
.side-info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--muted-foreground);
    transition: color 0.16s;
}

.check-item .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.16s ease;
}

.check-item .check-icon svg {
    width: 12px;
    height: 12px;
}

.check-item.is-done {
    color: var(--foreground);
    font-weight: 600;
}

.check-item.is-done .check-icon {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* ==========================================================================
   PUBLIC INVOICE SEARCH & VERIFICATION PORTAL
   ========================================================================== */

.verify-portal-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: 
        radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-color, #2563eb) 12%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, color-mix(in srgb, #4fd1b3 8%, transparent) 0%, transparent 50%),
        var(--background);
    color: var(--foreground);
    position: relative;
    font-family: var(--font);
}

.verify-top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--card) 80%, transparent);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
}

.verify-nav-container {
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.verify-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--foreground);
}

.verify-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-color, var(--primary));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-color, var(--primary)) 30%, transparent);
}

.verify-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.verify-brand-text small {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.verify-brand-text strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.verify-main-container {
    flex: 1;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Search Banner */
.verify-search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color, var(--primary)) 12%, transparent);
    color: var(--accent-color, var(--primary));
    border: 1px solid color-mix(in srgb, var(--accent-color, var(--primary)) 25%, transparent);
}

.verify-search-section h1 {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.2;
}

.verify-search-section p {
    max-width: 580px;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.5;
}

.verify-search-form {
    width: 100%;
    max-width: 680px;
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.search-input-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box .search-icon {
    position: absolute;
    left: 16px;
    color: var(--muted-foreground);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-input-box input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 46px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: color-mix(in srgb, var(--card) 90%, transparent);
    color: var(--foreground);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 18px -4px var(--shadow);
}

.search-input-box input:focus {
    outline: none;
    border-color: var(--accent-color, var(--primary));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color, var(--primary)) 18%, transparent);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    transition: background 0.15s;
}

.search-clear-btn:hover {
    background: color-mix(in srgb, var(--foreground) 20%, transparent);
    color: var(--foreground);
}

.search-submit-btn {
    height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sample-search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}

.sample-tag {
    padding: 4px 10px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--card) 75%, transparent);
    border: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    color: var(--foreground);
    text-decoration: none;
    transition: all 0.15s ease;
}

.sample-tag:hover {
    border-color: var(--accent-color, var(--primary));
    color: var(--accent-color, var(--primary));
    background: color-mix(in srgb, var(--accent-color, var(--primary)) 8%, transparent);
}

/* Verified Status Banner */
.verification-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.04) 100%);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.18);
}

.verification-status-banner .status-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verification-status-banner .status-badge-icon svg {
    width: 24px;
    height: 24px;
}

.verification-status-banner .status-content {
    flex: 1;
}

.status-headline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #059669;
}

.status-headline strong {
    letter-spacing: 0.04em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.verification-status-banner p {
    margin: 3px 0 0;
    font-size: 0.83rem;
    color: var(--foreground);
    opacity: 0.85;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Digital Invoice Sheet */
.digital-invoice-sheet {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 2.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dark .digital-invoice-sheet {
    background: #111827;
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.6);
}

.invoice-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.sheet-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 6px;
}

.sheet-brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.sheet-company-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
}

.dark .sheet-company-meta {
    color: #94a3b8;
}

.sheet-invoice-meta-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sheet-invoice-meta-right .meta-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sheet-invoice-meta-right .meta-item {
    font-size: 0.83rem;
    color: #64748b;
}

.dark .sheet-invoice-meta-right .meta-item {
    color: #94a3b8;
}

.sheet-invoice-meta-right .highlight-no {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.dark .sheet-invoice-meta-right .highlight-no {
    color: #ffffff;
}

.badge-status-paid {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dark .badge-status-paid {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.sheet-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.25rem 0;
}

.dark .sheet-divider {
    background: #334155;
}

.sheet-customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border-left: 4px solid var(--accent-color, var(--primary));
}

.dark .sheet-customer-grid {
    background: #1e293b;
}

.sheet-customer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-caption {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #64748b;
}

.dark .field-caption {
    color: #94a3b8;
}

.plate-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.85rem;
    width: fit-content;
}

.dark .plate-badge {
    background: #334155;
    color: #f8fafc;
}

/* Line items table */
.sheet-table-wrapper {
    overflow-x: auto;
}

.sheet-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.sheet-items-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.dark .sheet-items-table th {
    border-color: #334155;
    color: #94a3b8;
}

.sheet-items-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.dark .sheet-items-table td {
    border-color: #1e293b;
}

.item-type-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
    margin-left: 6px;
}

.dark .item-type-tag {
    background: #334155;
    color: #94a3b8;
}

/* Footer Grid & Totals */
.sheet-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.sheet-notes-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notes-box {
    padding: 12px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dark .notes-box {
    background: #1e293b;
    border-color: #334155;
}

.notes-box p {
    margin: 4px 0 0;
    font-size: 0.83rem;
    line-height: 1.4;
    color: #334155;
}

.dark .notes-box p {
    color: #cbd5e1;
}

.security-seal-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.35);
}

.security-seal-box .seal-icon {
    color: #10b981;
    display: flex;
}

.security-seal-box strong {
    display: block;
    font-size: 0.82rem;
    color: #065f46;
}

.dark .security-seal-box strong {
    color: #34d399;
}

.security-seal-box small {
    display: block;
    font-size: 0.72rem;
    color: #047857;
    line-height: 1.2;
}

.dark .security-seal-box small {
    color: #a7f3d0;
}

.sheet-totals-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dark .sheet-totals-box {
    background: #1e293b;
    border-color: #334155;
}

.tot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: #475569;
}

.dark .tot-row {
    color: #94a3b8;
}

.tot-row.tot-grand {
    padding-top: 8px;
    margin-top: 4px;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Codes row */
.sheet-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 6px;
}

.code-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.barcode-container,
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.code-caption {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

.dark .code-caption {
    color: #94a3b8;
}

/* Not Found State */
.verify-not-found-section {
    display: flex;
    justify-content: center;
}

.not-found-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 580px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.not-found-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--danger) 15%, transparent);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-icon svg {
    width: 28px;
    height: 28px;
}

.not-found-card h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.not-found-card p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
}

.not-found-tips {
    text-align: left;
    background: var(--muted);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--foreground);
    width: 100%;
}

.not-found-tips ul {
    margin: 6px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted-foreground);
}

.not-found-tips code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: color-mix(in srgb, var(--foreground) 10%, transparent);
    padding: 1px 4px;
    border-radius: 4px;
}

/* Landing Features Grid */
.verify-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.verify-features-grid .feature-card {
    background: color-mix(in srgb, var(--card) 65%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verify-features-grid .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-color, var(--primary)) 14%, transparent);
    color: var(--accent-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-features-grid .feature-icon svg {
    width: 20px;
    height: 20px;
}

.verify-features-grid h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.verify-features-grid p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Public Footer */
.verify-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.82rem;
    margin-top: auto;
}

.verify-footer p {
    margin: 2px 0;
}

/* Print Optimization */
@media print {
    .verify-top-nav,
    .verify-search-section,
    .verification-status-banner .status-actions,
    .verify-footer {
        display: none !important;
    }

    .verify-portal-wrapper {
        background: none !important;
        padding: 0 !important;
    }

    .verify-main-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .digital-invoice-sheet {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        color: #000000 !important;
        background: #ffffff !important;
    }

    .digital-invoice-sheet * {
        color: #000000 !important;
    }

    .sheet-customer-grid,
    .sheet-totals-box,
    .notes-box {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .verify-search-form {
        flex-direction: column;
    }

    .search-submit-btn {
        width: 100%;
    }

    .verification-status-banner {
        flex-direction: column;
        text-align: center;
    }

    .status-headline {
        justify-content: center;
    }

    .status-actions {
        width: 100%;
        justify-content: center;
    }

    .invoice-header-row {
        flex-direction: column;
    }

    .sheet-invoice-meta-right {
        text-align: left;
    }

    .sheet-footer-grid {
        grid-template-columns: 1fr;
    }

    .sheet-code-row {
        flex-direction: column;
    }
}



