: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;
}

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;
}

.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;
}

.demo-logins {
    display: grid;
    gap: 9px;
}

.demo-logins button {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--card) 46%, transparent);
    color: var(--foreground);
    padding: 11px 12px;
    text-align: left;
}

.demo-logins small {
    color: var(--muted-foreground);
}

.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;
}

.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 .fleetline-icon,
.dashboard-page .password-control .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;
}

.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: 5;
    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-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 .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 .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 .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 .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 .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;
}

@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;
    }

    .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: 240px;
    }

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

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

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

@media (max-width: 860px) {
    .dashboard-page .sidebar {
        width: min(82vw, 280px);
    }

    .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;
    }
}

/* Final compact dashboard pass: match the reference proportions more closely. */
.dashboard-page .sidebar {
    width: 224px;
    padding: 20px 14px 16px;
    overflow: hidden;
}

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

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

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

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

.dashboard-page .side-nav {
    gap: 8px;
    margin-top: 40px;
}

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

.dashboard-page .nav-dot {
    width: 18px;
    height: 18px;
    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: 212px;
    }

    .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 .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(82vw, 270px);
        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");
}

.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 .fleetline-icon {
    width: 16px;
    height: 16px;
}

.dashboard-page .side-nav a.active .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 .fleetline-icon,
.dashboard-page .icon-button .fleetline-icon,
.dashboard-page .btn .fleetline-icon {
    width: 15px;
    height: 15px;
}

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

.dashboard-page .brand-icon:has(.fleetline-icon)::before,
.dashboard-page .connection-icon:has(.fleetline-icon)::before,
.dashboard-page .theme-control button:has(.fleetline-icon)::before,
.dashboard-page .notification-button:has(.fleetline-icon)::before,
.dashboard-page .user-pill button:has(.fleetline-icon)::before,
.dashboard-page .metric-card i:has(.fleetline-icon)::before,
.dashboard-page .watchlist .card-icon:has(.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 .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 .fleetline-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

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

.dashboard-page .profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    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 .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 .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 .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 .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 .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 .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 .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(.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: var(--accent);
    color: var(--accent-foreground);
}

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

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

/* 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 .fleetline-icon {
    display: block;
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

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

.dashboard-page .sidebar .brand-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: 30px auto 0;
}

.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: var(--accent);
    color: var(--accent-foreground);
}

.dashboard-page .pos-stock-list .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(--accent) 72%, var(--card));
    color: var(--accent-foreground);
}

.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 > .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 > .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 .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);
}
