body:has(.factory-workspace-mount) :is(.next-view-header, .next-mobile-navbar, .next-sidebar, .next-view-footer, .portal-topbar, .portal-sidebar, .portal-footer) {
    display: none !important;
}

.factory-workspace-mount {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: auto;
    background: #f5f5f7;
    color: #1c1c24;
}

.factory-entry-message {
    width: min(460px, calc(100% - 32px));
    margin: min(16vh, 132px) auto 24px;
    padding: clamp(24px, 6vw, 36px);
    border: 1px solid #e1e6ef;
    border-radius: 20px;
    background: white;
    color: #172338;
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.factory-entry-message img { display: block; border-radius: 8px; }
.factory-entry-message .factory-entry-label { margin: 15px 0 2px; color: #526179; font-size: 13px; }
.factory-entry-message h1 { margin: 0; font-size: clamp(24px, 6vw, 30px); line-height: 1.2; font-weight: 700; }
.factory-entry-message p { margin: 12px 0; color: #526179; }
.factory-entry-message nav { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 20px; }
.factory-entry-message :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.factory-entry-message a.factory-entry-primary { color: white; background: #165ccc; text-decoration: none; }
.factory-entry-message .factory-entry-logout { color: #344f75; background: #edf2fb; border: 0; cursor: pointer; }
.factory-entry-message :is(a, button):focus-visible { outline: 2px solid #4986e2; outline-offset: 3px; }
body:has(.factory-schedule) :is(.next-view-header, .next-mobile-navbar, .next-sidebar, .next-view-footer, .portal-topbar, .portal-sidebar, .portal-footer) {
    display: none !important;
}

.factory-schedule {
    --fs-background: #f5f6f8;
    --fs-surface: #fff;
    --fs-ink: #172338;
    --fs-muted: #526179;
    --fs-line: #e4e9f1;
    --fs-blue: #165ccc;
    --fs-danger: #a42621;
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: auto;
    color: var(--fs-ink);
    background: var(--fs-background);
    color-scheme: light;
    font: 16px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

:where(.factory-schedule) :where(button, input, select, textarea) { font: inherit; }
:where(.factory-schedule) :where(*) { box-sizing: border-box; }
:where(.factory-schedule) :where(button) { appearance: none; padding: 0; border: 0; background: transparent; }
.factory-schedule :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #4986e2;
    outline-offset: 3px;
}
.factory-schedule :is(h1, h2)[tabindex]:focus { outline: none; }
.factory-schedule button:not(:disabled) { cursor: pointer; }
.factory-schedule button:disabled { opacity: .6; }
.factory-schedule a { text-decoration: none; }
.fs-wrap { width: min(940px, calc(100% - 32px)); margin-inline: auto; }
.fs-top { background: white; border-bottom: 1px solid var(--fs-line); }
.fs-bar, .fs-brand { display: flex; align-items: center; }
.fs-bar { min-height: 59px; justify-content: space-between; gap: 12px; }
.fs-brand { gap: 8px; min-width: 0; font-size: 15px; font-weight: 650; color: var(--fs-ink); line-height: 1.35; }
.fs-brand img { display: block; flex-shrink: 0; width: 31px; height: 31px; }
.fs-logout, .fs-refresh { min-height: 44px; padding: 0 7px; color: var(--fs-muted); font-weight: 550; white-space: nowrap; }
.fs-main { padding: clamp(24px, 5vw, 52px) 0 max(36px, env(safe-area-inset-bottom)); }
.fs-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.fs-page-heading :is(h1, p) { margin: 0; }
.fs-page-heading h1, .fs-narrow > h1 { font-size: clamp(28px, 4.1vw, 42px); line-height: 1.17; font-weight: 720; letter-spacing: -.043em; }
.fs-page-heading p { margin-top: 6px; color: var(--fs-muted); font-size: 14px; }
.fs-identity { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.fs-identity span:first-child { color: #284769; font-weight: 650; }
.fs-identity span + span::before { content: "·"; padding-right: 10px; color: #6b819a; }
.fs-form-hint { margin: -7px 0 0; color: var(--fs-muted); font-size: 13px; }
.fs-attachments { display: grid; gap: 7px; color: var(--fs-ink); font-size: 14px; }
.fs-attachments p { margin: 0; color: var(--fs-muted); font-size: 13px; }
.fs-attachments .fs-attachment-error { color: var(--fs-danger); }
.fs-attachments ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.fs-attachments li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px 5px 10px; border: 1px solid var(--fs-line); border-radius: 9px; }
.fs-attachments li span { min-width: 0; overflow-wrap: anywhere; }
.fs-attachments button { min-height: 34px; padding-inline: 9px; }
.fs-toolbar { display: flex; gap: 10px; align-items: center; }
.fs-board-button { flex-shrink: 0; }
.fs-primary, .fs-reject-primary, .fs-secondary, .fs-danger, .fs-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 620;
    white-space: nowrap;
}
.fs-primary { background: var(--fs-blue); color: #fff; }
.fs-primary:hover:not(:disabled) { background: #124fae; }
.fs-reject-primary { background: var(--fs-danger); color: #fff; }
.fs-secondary, .fs-back { background: #eaf1fb; color: #184c96; }
.fs-danger { background: #faeae9; color: var(--fs-danger); }
.fs-back { margin-bottom: 14px; padding-inline: 8px 12px; min-height: 40px; }
.fs-back::before { content: ""; height: 7px; width: 7px; margin: 0 8px 0 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.fs-panel { min-width: 0; border: 1px solid var(--fs-line); border-radius: 18px; background: var(--fs-surface); }
.fs-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(58px, 1fr));
    overflow: auto;
    gap: 3px;
    margin-bottom: 13px;
    padding: 4px;
    border-radius: 13px;
    background: #e9edf4;
}
.fs-filters button { min-height: 39px; padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--fs-muted); border-radius: 9px; white-space: nowrap; }
.fs-filters button[aria-pressed=true] { color: var(--fs-ink); background: white; box-shadow: 0 1px 3px #1625381f; }
.fs-columns.has-detail .fs-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fs-overview .fs-filters.fs-request-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 300px); }
.fs-filters span { font-size: 11px; font-variant-numeric: tabular-nums; color: #265992; }
.fs-list { padding: 0 13px; margin: 0; list-style: none; }
.fs-list li + li { border-top: 1px solid var(--fs-line); }
.fs-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) max-content 8px;
    width: 100%;
    gap: 10px;
    min-height: 82px;
    align-items: center;
    text-align: left;
    color: var(--fs-ink);
}
.fs-row:is(:hover, [aria-current=true]) .fs-row-content strong { color: var(--fs-blue); }
.fs-row-time, .fs-row-content { display: grid; min-width: 0; gap: 4px; }
.fs-row-time strong { font-size: 17px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fs-row-time small { white-space: nowrap; }
.fs-row-content strong { font-size: 15px; font-weight: 630; line-height: 1.3; overflow-wrap: anywhere; }
.fs-row small { font-size: 12px; color: var(--fs-muted); }
.fs-direction { color: #526c91; }
.fs-chevron { width: 6px; height: 6px; border: solid #75849a; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.fs-status { display: inline-flex; align-items: center; width: max-content; min-height: 23px; padding: 2px 7px; border-radius: 20px; color: #435977; background: #edf2fb; font-size: 12px; font-weight: 610; white-space: nowrap; }
.fs-status[data-status=pending] { color: #78470a; background: #fff0d6; }
.fs-status[data-status=approved] { color: #1e4f99; background: #eaf1ff; }
.fs-status[data-status=assigned] { color: #1f633d; background: #e6f4ea; }
.fs-status[data-status=accepted] { color: #07695e; background: #dff3ef; }
.fs-status[data-status=completed] { color: #435977; background: #edf2fb; }
.fs-status[data-status=rejected] { color: #9c2c27; background: #faeae9; }
.fs-empty { display: grid; place-items: center; padding: 54px 20px; text-align: center; }
.fs-empty strong { margin-top: 13px; }
.fs-empty p { max-width: 29ch; margin: 5px 0 0; color: var(--fs-muted); font-size: 13px; }
.fs-empty-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; color: #5272a1; background: #edf2fb; }
.fs-empty-icon::after { content: ""; width: 13px; height: 17px; border: 1.6px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) no-repeat center 5px / 7px 1px, linear-gradient(currentColor, currentColor) no-repeat center 9px / 7px 1px; }
.fs-narrow { max-width: 620px; margin-inline: auto; }
.fs-form-panel { display: grid; gap: 18px; padding: clamp(15px, 4vw, 28px); }
.fs-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fs-time-fields { grid-template-columns: minmax(0, 1.6fr) minmax(80px, 1fr); }
.fs-field { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 610; }
.factory-schedule .fs-field :is(input, select, textarea) {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    width: 100%;
    max-width: 100%;
    padding: 9px 10px;
    border: 1px solid #d6deeb;
    border-radius: 10px;
    color: var(--fs-ink);
    background: #f9fbfe;
    font-size: 16px;
    font-weight: 450;
}
.factory-schedule .fs-field textarea { resize: vertical; }
.factory-schedule .fs-field :is(input, textarea)::placeholder { color: #657388; opacity: 1; }
.fs-vehicle-choice { min-width: 0; padding: 0; margin: 0; border: 0; }
.fs-vehicle-choice legend { margin-bottom: 6px; font-size: 14px; font-weight: 610; }
.fs-vehicle-choice > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fs-vehicle-choice label { display: block; position: relative; }
.fs-vehicle-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fs-vehicle-choice span { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 0 15px; border: 1px solid #d6deeb; border-radius: 11px; cursor: pointer; }
.fs-vehicle-choice span i { width: 15px; height: 15px; border: 1px solid #788ba7; border-radius: 50%; }
.fs-vehicle-choice input:checked + span { border-color: #749ce2; color: #194f9d; background: #eff5ff; font-weight: 620; }
.fs-vehicle-choice input:checked + span i { border: 4px solid var(--fs-blue); }
.fs-vehicle-choice input:focus-visible + span { outline: 3px solid #4986e2; outline-offset: 2px; }
.fs-form-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 17px; }
.fs-form-footer p { margin: 0 auto 0 0; color: var(--fs-muted); font-size: 13px; }
.fs-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--fs-line); }
.fs-detail-header h2 { margin: 0; font-size: 18px; font-weight: 680; }
.fs-detail-content { display: grid; gap: 16px; padding: 16px; }
.fs-detail-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fs-detail-summary strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.fs-detail-summary > span { color: var(--fs-muted); font-size: 14px; }
.fs-detail-sites { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.fs-detail-sites > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.fs-detail-sites dt { color: var(--fs-muted); font-size: 13px; }
.fs-detail-sites dd { margin: 0; font-size: 14px; font-weight: 620; }
.fs-route { position: relative; display: grid; gap: 9px; margin: 0; padding: 11px 12px; border-radius: 11px; background: #f4f7fc; }
.fs-route::before { content: ""; position: absolute; inset: 22px auto 22px 18px; width: 1px; background: #afc0dd; }
.fs-route > div { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 9px; }
.fs-route dt { position: relative; display: flex; align-items: start; gap: 7px; color: var(--fs-muted); font-size: 13px; line-height: 22px; white-space: nowrap; }
.fs-route dt::before { content: ""; width: 9px; height: 9px; flex-shrink: 0; margin: 6px 0 0 2px; border: 2px solid #346dc4; border-radius: 50%; background: #fff; }
.fs-route > div:last-child dt::before { background: #346dc4; }
.fs-route dd, .fs-detail-purpose p, .fs-reason p { overflow-wrap: anywhere; white-space: pre-wrap; }
.fs-route dd { margin: 0; font-weight: 610; }
.fs-detail-purpose, .fs-reason { font-size: 14px; }
.fs-detail-purpose p, .fs-reason p { margin: 4px 0 0; }
.fs-reason { padding: 12px; border-radius: 10px; color: #85352e; background: #fff1ef; }
.fs-contacts { display: grid; gap: 8px; }
.fs-contact { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--fs-line); border-radius: 11px; }
.fs-contact-person { display: grid; min-width: 0; gap: 1px; overflow-wrap: anywhere; }
.fs-contact-person :is(span, small), .fs-unavailable { color: var(--fs-muted); font-size: 12px; }
.fs-contact-person strong { font-size: 15px; font-weight: 650; }
.fs-call { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #154e9e; font-size: 13px; font-weight: 620; white-space: nowrap; }
.fs-call span { padding: 4px 8px; border-radius: 8px; color: #154e9e; background: #eaf1fb; }
.fs-progress { border-top: 1px solid var(--fs-line); padding-top: 14px; }
.fs-progress h3 { margin: 0 0 9px; font-size: 15px; font-weight: 680; }
.fs-progress ol { list-style: none; margin: 0; padding: 0; }
.fs-progress li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-left: 4px; padding: 5px 0 10px 13px; font-size: 13px; }
.fs-progress li:not(:last-child) { border-left: 1px solid #d5e0ef; }
.fs-progress li:last-child { padding-left: 14px; }
.fs-progress li::before { content: ""; position: absolute; top: 11px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #8ca3c4; }
.fs-progress li:last-child::before { background: var(--fs-blue); }
.fs-progress time { color: var(--fs-muted); font-variant-numeric: tabular-nums; }
.fs-inline-form { display: grid; gap: 13px; }
.fs-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-action-message, .fs-notice, .fs-initial { margin: 0; font-size: 14px; }
.fs-action-message { color: var(--fs-muted); }
.fs-notice { margin-bottom: 15px; padding: 11px 13px; border-radius: 10px; background: #e9f5ed; color: #246244; }
.fs-notice.is-error { background: #faeae9; color: #8d2924; }
.fs-initial { margin-top: 18px; color: var(--fs-muted); }
.fs-location { display: grid; gap: 8px; min-width: 0; margin-top: -5px; }
.fs-location-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.fs-location-tools .fs-secondary { padding-inline: 11px; font-size: 13px; }
.fs-location-tools p, .fs-map-hint { margin: 0; color: var(--fs-muted); font-size: 12px; }
.fs-location-error { margin: 0; color: var(--fs-danger); font-size: 13px; }
.fs-map { min-height: 205px; overflow: hidden; position: relative; z-index: 0; border: 1px solid var(--fs-line); border-radius: 11px; background: #edf2f7; }
.fs-map:empty::after { content: "正在加载地图…"; display: grid; min-height: 205px; place-items: center; color: var(--fs-muted); font-size: 13px; }

.fs-main:has(.fs-admin-shell) { width: min(1120px, calc(100% - 32px)); }
.fs-admin-shell { display: grid; gap: 20px; align-items: start; }
.fs-admin-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 5px; border: 1px solid var(--fs-line); border-radius: 14px; background: var(--fs-surface); }
.fs-admin-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 3px; border-radius: 9px; color: var(--fs-muted); text-align: center; font-size: 13px; font-weight: 600; }
.fs-admin-nav a[aria-current=page] { color: #174b93; background: #eaf1fb; }
.fs-admin-nav a:hover:not([aria-current]) { color: var(--fs-ink); background: #f3f6fb; }
.fs-admin-panel { display: grid; gap: 15px; min-width: 0; padding: clamp(14px, 3vw, 24px); }
.fs-admin-panel h2 { margin: 0; font-size: 18px; font-weight: 680; }
.fs-admin-panel h2 span { margin-left: 5px; color: var(--fs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fs-admin-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.fs-admin-create { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 10px; }
.fs-admin-create > :first-child, .fs-admin-bulk > label { grid-column: 1 / -1; }
.fs-admin-create button { justify-self: start; }
.fs-admin-bulk { margin-top: 10px; }
.fs-admin-disclosure { border-block: 1px solid var(--fs-line); padding: 9px 0; }
.fs-admin-disclosure summary { min-height: 30px; color: #284769; font-size: 14px; font-weight: 620; cursor: pointer; }
.fs-admin-results { max-height: min(560px, 60vh); overflow-y: auto; overscroll-behavior-y: contain; }
.fs-admin-entry, .fs-admin-row { display: grid; min-width: 0; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--fs-line); }
.fs-admin-entry { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.fs-admin-entry span, .fs-admin-row small, .fs-admin-empty { color: var(--fs-muted); font-size: 13px; }
.fs-admin-entry strong, .fs-admin-row strong { font-size: 14px; font-weight: 630; overflow-wrap: anywhere; }
.fs-admin-row { grid-template-columns: minmax(0, 1fr) minmax(135px, 1fr) auto; }
.fs-admin-row div { display: grid; min-width: 0; }
.fs-admin-row small { overflow-wrap: anywhere; }
.fs-admin-row select { width: 100%; min-width: 0; min-height: 44px; padding: 0 6px; border: 1px solid #d6deeb; border-radius: 9px; color: var(--fs-ink); background: #fff; font-size: 14px; }
.fs-admin-row[hidden], .fs-admin-entry[hidden] { display: none; }
.fs-admin-site { grid-template-columns: minmax(0, 1fr) auto; border-top: 0; padding: 0; align-items: end; }
.fs-admin-empty { margin: 0; }
.fs-access-empty { display: grid; gap: 13px; justify-items: start; padding: 18px; }
.fs-access-empty p { margin: 0; }

@media (min-width: 720px) {
    .fs-wrap { width: min(940px, calc(100% - 60px)); }
    .fs-columns.has-detail { display: grid; grid-template-columns: minmax(280px, .94fr) minmax(0, 1.1fr); gap: 15px; align-items: start; }
    .fs-list { padding-inline: 17px; }
    .fs-main:has(.fs-admin-shell) { width: min(1120px, calc(100% - 60px)); }
    .fs-admin-shell { grid-template-columns: 170px minmax(0, 1fr); }
    .fs-admin-nav { grid-template-columns: minmax(0, 1fr); padding: 8px; position: sticky; top: 16px; }
    .fs-admin-nav a { justify-content: flex-start; padding-inline: 12px; font-size: 14px; }
}
@media (max-width: 719px) {
    .fs-columns.has-detail .fs-list-area, .fs-overview:has(.has-detail) .fs-page-heading { display: none; }
    .fs-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fs-form-footer { flex-wrap: wrap; }
    .fs-form-footer p { flex: 1 1 100%; }
    .fs-form-footer .fs-primary { width: 100%; }
}
@media (max-width: 375px) {
    .fs-toolbar { gap: 3px; }
    .fs-page-heading:has(.fs-board-button) { flex-wrap: wrap; align-items: start; }
    .fs-admin-nav { gap: 2px; padding: 4px; }
    .fs-admin-nav a { padding-inline: 1px; font-size: 12px; }
    .fs-admin-row:has(> select) { grid-template-columns: minmax(0, 1fr) auto; }
    .fs-admin-row:has(> select) > div { grid-column: 1 / -1; }
    .fs-page-heading h1 { font-size: 26px; }
    .fs-toolbar .fs-primary { padding-inline: 9px; }
    .fs-call { gap: 5px; white-space: normal; }
    .fs-call span { padding-inline: 5px; flex-shrink: 0; }
}
.factory-dispatcher :is(.fs-main, .fs-bar) {
    width: min(1440px, calc(100% - 64px));
}
.factory-dispatcher .fs-main { padding-top: clamp(24px, 3vw, 40px); }
.fdd-workspace {
    --fdd-border: #dce4ef;
    --fdd-quiet: #f4f6fa;
    --fdd-conflict-ink: #8e2c29;
    --fdd-conflict-fill: #fbe0de;
    --fdd-occupied-fill: #dceafd;
    --fdd-completed-fill: #e9edf3;
    display: grid;
    grid-template-columns: minmax(302px, 350px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}
.fdd-workspace > * { min-width: 0; }
.fdd-workspace :is(.fdd-queue, .fdd-calendar) :is(h2, p) { margin: 0; }
.fdd-workspace :is(.fdd-queue, .fdd-calendar) h2 { font-size: 19px; font-weight: 680; }
.fdd-queue, .fdd-calendar {
    border: 1px solid var(--fdd-border);
    border-radius: 17px;
    background: var(--fs-surface);
}
.fdd-queue > header { padding: 17px 17px 13px; }
.fdd-scope {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 0 16px 10px;
    padding: 3px;
    border-radius: 10px;
    background: #eaf0f8;
}
.fdd-scope button {
    min-height: 38px;
    border-radius: 8px;
    color: var(--fs-muted);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}
.fdd-scope button[aria-pressed=true] {
    color: #174e9e;
    background: #fff;
    box-shadow: 0 1px 3px #29466b20;
}
.fdd-scope span, .fdd-status-filters span {
    margin-inline-start: 2px;
    font-size: .88em;
    font-variant-numeric: tabular-nums;
}
.fdd-status-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--fdd-border);
}
.fdd-status-filters button {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--fs-muted);
    font-size: 13px;
    white-space: nowrap;
}
.fdd-status-filters button[aria-pressed=true] {
    border-color: #b6d2fb;
    color: #174e9e;
    background: #eef5ff;
    font-weight: 650;
}
.fdd-status-filters button:hover:not([aria-pressed=true]) { background: var(--fdd-quiet); }
.fdd-queue-list {
    max-height: 475px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}
.fdd-queue-list li + li { border-top: 1px solid var(--fdd-border); }
.fdd-queue-row {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 13px 17px;
    color: var(--fs-ink);
    text-align: left;
}
.fdd-queue-row:hover { background: #f4f8ff; }
.fdd-queue-row:focus-visible { outline-offset: -3px; }
.fdd-queue-row > strong { min-width: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.fdd-queue-row > strong span { color: #576d88; }
.fdd-queue-time {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    color: #3c526f;
    font-size: 13px;
    font-weight: 630;
    font-variant-numeric: tabular-nums;
}
.fdd-queue-context, .fdd-queue-route { color: var(--fs-muted); font-size: 13px; overflow-wrap: anywhere; }
.fdd-queue-route { color: #174e9e; }
.fdd-queue-route small { margin-inline-start: 4px; color: var(--fs-muted); font-size: 12px; }
.fdd-empty {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    min-height: 156px;
    padding: 16px;
    color: var(--fs-muted);
    font-size: 14px;
    text-align: center;
}
.fdd-calendar .fdd-empty { min-height: 270px; }
.fdd-workspace .fs-detail { border-color: var(--fdd-border); }
.fdd-workspace .fs-back { margin-bottom: 8px; }
.fdd-assignment-fields { display: grid; gap: 13px; }
.fdd-assignment-field { min-width: 0; }
.fdd-workspace .fdd-assignment-hint { margin: 5px 0 0; color: var(--fs-muted); font-size: 12px; }
.fdd-assignment-conflicts {
    max-height: 132px;
    margin: 6px 0 0;
    padding: 0 8px;
    border: 1px solid #e8bbb7;
    border-radius: 8px;
    color: var(--fdd-conflict-ink);
    background: #fff5f4;
    font-size: 12px;
    list-style: none;
    overflow: auto;
}
.fdd-assignment-conflicts li { display: grid; gap: 2px; padding-block: 5px; overflow-wrap: anywhere; }
.fdd-assignment-conflicts[role=status] { padding-block: 6px; }
.fdd-assignment-conflicts li + li { border-top: 1px solid #eed2cf; }
.fdd-assignment-conflicts span { font-variant-numeric: tabular-nums; }
.fdd-calendar-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 14px;
    padding: 16px 17px 11px;
}
.fdd-workspace .fdd-calendar-heading p { margin-top: 3px; color: var(--fs-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.fdd-calendar-controls, .fdd-date-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.fdd-calendar-controls :is(button,input,select) {
    min-width: 0;
    min-height: 40px;
    border: 1px solid var(--fdd-border);
    border-radius: 8px;
    color: var(--fs-ink);
    background: #f9fbfe;
    font-size: 14px;
}
.fdd-calendar-controls :is(input,select) { max-width: 140px; padding: 5px 8px; }
.fdd-calendar-controls button:hover:not(:disabled) { background: #edf4ff; }
.fdd-calendar-controls .fdd-day-step { display: grid; width: 37px; place-items: center; color: var(--fs-blue); }
.fdd-calendar-controls .fdd-today-button { padding: 0 8px; white-space: nowrap; }
.fdd-day-step i {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
    transform: translateX(-1px) rotate(45deg);
}
.fdd-day-step.fdd-previous i { transform: translateX(1px) rotate(-135deg); }
.fdd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin: 0;
    padding: 0 17px 12px;
    color: var(--fs-muted);
    font-size: 12px;
    list-style: none;
}
.fdd-legend li { display: inline-flex; gap: 6px; align-items: center; }
.fdd-legend i { width: 13px; height: 9px; border: 1px solid var(--fdd-border); border-radius: 3px; background: #fff; }
.fdd-legend i[data-key=occupied] { border-color: #82aded; background: var(--fdd-occupied-fill); }
.fdd-legend i[data-key=completed] { border-color: #a7b3c5; background: var(--fdd-completed-fill); }
.fdd-legend i[data-key=conflict] { border-color: #c76864; background: var(--fdd-conflict-fill); }
.fdd-legend i[data-key=window], .fdd-request-window { border-color: #967fcd; background: repeating-linear-gradient(130deg, #f8f2ff 0 5px, #ebe0fa 5px 7px); }
.fdd-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0 17px 11px;
    padding: 6px 9px;
    border: 1px solid #e8ddf5;
    border-radius: 8px;
    color: #593984;
    background: #fbf8ff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.fdd-selection strong { color: var(--fdd-conflict-ink); }
.fdd-calendar-scroll {
    position: relative;
    max-height: 552px;
    border-top: 1px solid var(--fdd-border);
    border-radius: 0 0 16px 16px;
    overflow: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.fdd-calendar-scroll:focus-visible { outline: 2px solid #4986e2; outline-offset: -2px; }
.fdd-timeline {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.fdd-vehicle-column { width: 145px; }
.fdd-timeline :is(th,td) { padding: 0; border-bottom: 1px solid var(--fdd-border); text-align: left; }
.fdd-timeline thead th { position: sticky; top: 0; z-index: 3; color: #40536f; background: #f0f4fa; }
.fdd-timeline .fdd-vehicle { position: sticky; left: 0; z-index: 2; border-right: 1px solid #d6e0ed; padding: 6px 10px; }
.fdd-timeline thead .fdd-vehicle { z-index: 4; }
.fdd-timeline tbody .fdd-vehicle { min-height: 46px; height: 46px; background: #f8fafd; }
.fdd-timeline tbody td { position: relative; }
.fdd-timeline :is(tbody strong,tbody small) { display: block; overflow-wrap: anywhere; }
.fdd-timeline tbody small { margin-top: 2px; color: var(--fs-muted); font-size: 11px; font-weight: 500; }
.fdd-axis {
    position: relative;
    height: 40px;
    background-image: linear-gradient(to right, #d6dfed 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
}
.fdd-axis span { position: absolute; left: var(--fdd-tick); top: 10px; font-size: 12px; font-weight: 630; transform: translateX(-50%); }
.fdd-axis span:first-child { padding-left: 5px; transform: none; }
.fdd-axis span:last-child { padding-right: 5px; transform: translateX(-100%); }
.fdd-track {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #dde5f1 1px, transparent 1px), linear-gradient(to right, #edf2f8 1px, transparent 1px);
    background-size: calc(100% / 12) 100%, calc(100% / 24) 100%;
}
.fdd-request-window, .fdd-booking-bar { position: absolute; left: var(--fdd-start); right: var(--fdd-end); }
.fdd-request-window { top: 0; bottom: 0; border-inline: 1px dashed #967fcd; }
.fdd-workspace .fdd-booking-bar {
    display: grid;
    align-items: center;
    z-index: 1;
    top: 7px;
    bottom: 7px;
    min-width: 5px;
    border: 1px solid #81a9e3;
    border-radius: 6px;
    color: #173c75;
    background: var(--fdd-occupied-fill);
    font-size: 10.5px;
    font-weight: 680;
    text-align: left;
}
.fdd-booking-bar span { padding-inline: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdd-workspace .fdd-booking-bar[data-state=completed] { border-color: #a7b3c5; color: #415470; background: var(--fdd-completed-fill); }
.fdd-workspace .fdd-booking-bar[data-state=conflict] { z-index: 2; border-color: #c76864; color: var(--fdd-conflict-ink); background: var(--fdd-conflict-fill); }
.fdd-booking-bar:hover, .fdd-booking-bar:focus-visible, .fdd-booking-bar[aria-current=true] { outline: 2px solid currentColor; outline-offset: 0; }
@media (min-width: 878px) {
    .fdd-workspace:has(.fs-detail-area) .fdd-calendar { position: sticky; top: 16px; }
    .fdd-workspace:has(.fs-detail-area) .fdd-calendar-scroll { max-height: min(552px, 60vh); }
}
@media (max-width: 877px) {
    .factory-dispatcher :is(.fs-main, .fs-bar) { width: calc(100% - 32px); }
    .fdd-workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .fdd-queue-list { max-height: 360px; }
    .fdd-calendar-scroll { max-height: 450px; }
}
@media (max-width: 445px) {
    .fdd-overview > .fs-page-heading { flex-wrap: wrap; gap: 7px; align-items: center; }
    .fdd-calendar-head, .fdd-legend { padding-inline: 12px; }
    .fdd-selection { margin-inline: 12px; }
    .fdd-calendar-controls { display: grid; width: 100%; }
    .fdd-calendar-controls select { max-width: 100%; }
    .fdd-date-controls { display: grid; grid-template-columns: 35px minmax(0, 1fr) 35px auto; }
    .fdd-calendar-controls .fdd-day-step { width: 35px; }
    .fdd-calendar-controls input { width: 100%; max-width: none; }
    .fdd-vehicle-column { width: 108px; }
    .fdd-timeline .fdd-vehicle { padding-inline: 7px; }
}
.fboard-host {
    --fboard-bg: #0c1625;
    --fboard-panel: #142337;
    --fboard-layer: #182b42;
    --fboard-ink: #edf4ff;
    --fboard-muted: #a7bbd1;
    --fboard-line: #2a405a;
    --fboard-cyan: #62d9e8;
    --fboard-amber: #ffcb79;
    --fboard-mint: #8be2bc;
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow: auto;
    background: var(--fboard-bg);
    color: var(--fboard-ink);
    color-scheme: dark;
    font: 16px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.fboard-host :where(*) { box-sizing: border-box; }
.fboard-host :where(h1, h2, p, dl, dd, ol, ul) { margin: 0; }
.fboard-host :where(ol, ul) { padding: 0; list-style: none; }
.fboard-host [hidden] { display: none; }
.fboard-host :where(button, select, input) { font: inherit; }
.fboard-host :is(button, input, select):focus-visible { outline: 2px solid var(--fboard-cyan); outline-offset: 3px; }
.fboard-title h1:focus { outline: 0; }
.fboard-host :is(time, td strong, dd, .fboard-kpi strong, .fboard-total strong) { font-variant-numeric: tabular-nums; }

.fboard-main, .fboard-head-inner { width: min(1850px, calc(100% - clamp(32px, 4vw, 100px))); margin-inline: auto; }
.fboard-header { background: #101f32; border-bottom: 1px solid var(--fboard-line); }
.fboard-head-inner { display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); align-items: center; gap: 20px; min-height: 83px; }
.fboard-title, .fboard-clock, .fboard-header-actions, .fboard-toolbar, .fboard-filters, .fboard-update { display: flex; align-items: center; }
.fboard-title { min-width: 0; gap: 13px; }
.fboard-title img { display: block; flex-shrink: 0; border-radius: 9px; background: white; }
.fboard-title h1 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 720; line-height: 1.15; }
.fboard-title p { margin-top: 5px; color: var(--fboard-muted); font-size: 13px; }
.fboard-clock { justify-content: center; gap: 12px; }
.fboard-clock time { font-size: 26px; font-weight: 670; letter-spacing: .05em; }
.fboard-clock span { color: var(--fboard-muted); font-size: 13px; }
.fboard-header-actions { justify-content: flex-end; gap: 9px; }

.fboard-host button, .fboard-field :is(input, select) {
    min-height: 39px;
    padding: 0 11px;
    border: 1px solid #3a526e;
    border-radius: 7px;
    background: var(--fboard-layer);
    color: var(--fboard-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.fboard-host button:not(:disabled) { cursor: pointer; }
.fboard-host button:hover:not(:disabled) { background: #243d57; }
.fboard-host button:disabled { opacity: .43; }
.fboard-host .fboard-full, .fboard-host .fboard-full:hover:not(:disabled) {
    border-color: var(--fboard-cyan);
    background: var(--fboard-cyan);
    color: #0b2430;
}
.fboard-host .fboard-full:hover:not(:disabled) { filter: brightness(1.09); }

.fboard-main { padding: 16px 0 27px; }
.fboard-toolbar { justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
.fboard-filters, .fboard-update { flex-wrap: wrap; gap: 9px; }
.fboard-field { display: flex; align-items: center; gap: 8px; color: var(--fboard-muted); font-weight: 600; font-size: 14px; }
.fboard-field :is(input, select) { appearance: auto; min-width: 0; }
.fboard-field input { width: 140px; }
.fboard-field select { width: 144px; }
.fboard-today { margin-right: 7px; }
.fboard-update { justify-content: flex-end; color: var(--fboard-muted); font-size: 13px; }
.fboard-update-time { min-width: 111px; text-align: center; font-variant-numeric: tabular-nums; }
.fboard-update-time:empty { display: none; }
.fboard-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--fboard-muted);
    font-weight: 630;
    white-space: nowrap;
}
.fboard-live::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fboard-live[data-state=live] { color: var(--fboard-mint); }
.fboard-live[data-state=reconnecting] { color: var(--fboard-amber); }
.fboard-live[data-state=denied] { color: #ffb3af; }

.fboard-kpis { display: grid; grid-template-columns: 1.2fr repeat(6, minmax(0, 1fr)); gap: 12px; }
.fboard-total, .fboard-kpi {
    --fboard-kpi-ink: var(--fboard-cyan);
    min-width: 0;
    min-height: 100px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    border: 1px solid var(--fboard-line);
    border-top: 2px solid var(--fboard-kpi-ink);
    border-radius: 8px;
    background: var(--fboard-panel);
    padding: 13px 15px;
    font-size: 15px;
    font-weight: 600;
}
.fboard-total { background: linear-gradient(110deg, #19374e, #162a40); }
.fboard-kpi[data-state=pending] { --fboard-kpi-ink: var(--fboard-amber); }
.fboard-kpi[data-state=approved] { --fboard-kpi-ink: #8ab8ff; }
.fboard-kpi[data-state=assigned] { --fboard-kpi-ink: #9ac9ff; }
.fboard-kpi[data-state=accepted], .fboard-kpi[data-state=completed] { --fboard-kpi-ink: var(--fboard-mint); }
.fboard-kpi[data-state=rejected] { --fboard-kpi-ink: #ffadad; }
.fboard-kpis strong {
    color: var(--fboard-kpi-ink);
    font-size: clamp(28px, 2.7vw, 45px);
    font-weight: 720;
    line-height: 1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.fboard-kpis small { color: var(--fboard-muted); font-size: 13px; font-weight: 500; margin-left: 6px; }

.fboard-operations, .fboard-dispatch { display: grid; gap: 13px; margin-top: 13px; }
.fboard-operations { grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.72fr) minmax(220px, .92fr); }
.fboard-dispatch { grid-template-columns: minmax(420px, 1.72fr) minmax(320px, 1fr); }
.fboard-panel {
    min-width: 0;
    padding: 16px 17px;
    border: 1px solid var(--fboard-line);
    border-radius: 8px;
    background: var(--fboard-panel);
}
.fboard-panel-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fboard-line); }
.fboard-panel-title h2 { font-size: 18px; font-weight: 690; line-height: 1.4; }
.fboard-panel-title > span { color: var(--fboard-muted); font-size: 12px; }

.fboard-site-list { display: grid; gap: 17px; padding-top: 15px; }
.fboard-site { min-width: 0; }
.fboard-site-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.fboard-site-name strong { font-size: 15px; font-weight: 670; overflow-wrap: anywhere; }
.fboard-site-name span { flex-shrink: 0; color: var(--fboard-muted); font-size: 12px; }
.fboard-site-track { height: 6px; background: #213650; border-radius: 4px; overflow: hidden; }
.fboard-site-track div { height: 100%; background: #41647f; }
.fboard-site-track i { display: block; height: 100%; background: var(--fboard-cyan); }

.fboard-trend-key { display: flex; justify-content: flex-end; gap: 14px; margin-top: 9px; color: var(--fboard-muted); font-size: 12px; }
.fboard-trend-key span { display: inline-flex; gap: 6px; align-items: center; }
.fboard-trend-key span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--fboard-cyan); }
.fboard-trend-key span + span::before { background: var(--fboard-amber); }
.fboard-trend { --fboard-plot-height: 110px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px; margin-top: 13px; }
.fboard-axis { display: flex; flex-direction: column; justify-content: space-between; height: var(--fboard-plot-height); margin: -4px 0 0; text-align: right; }
.fboard-axis li, .fboard-bars span { color: var(--fboard-muted); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1; }
.fboard-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: repeating-linear-gradient(to top, var(--fboard-line) 0px, var(--fboard-line) 1px, transparent 1px, transparent 25%) top left / 100% var(--fboard-plot-height) no-repeat;
}
.fboard-bars li { display: grid; align-content: start; gap: 8px; min-width: 0; text-align: center; }
.fboard-bar-plot { display: flex; justify-content: center; height: var(--fboard-plot-height); }
.fboard-bar-plot > div { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-start; width: min(53%, 30px); height: 100%; }
.fboard-bar-plot i { height: var(--same); background: var(--fboard-cyan); }
.fboard-bar-plot i + i { height: var(--cross); background: var(--fboard-amber); }
.fboard-bar-plot b { position: absolute; bottom: calc(var(--same) + var(--cross) + 1px); left: 50%; transform: translateX(-50%); color: var(--fboard-ink); line-height: 1; font-size: 11px; }

.fboard-queue-list { display: grid; }
.fboard-queue-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 43px; padding: 3px 1px; border-bottom: 1px solid var(--fboard-line); }
.fboard-queue-list > div:last-child { border-bottom: 0; }
.fboard-queue-list dt { font-size: 14px; }
.fboard-queue-list dd { color: var(--fboard-cyan); font-size: 22px; font-weight: 700; }
.fboard-queue-list [data-state=pending] dd { color: var(--fboard-amber); }
.fboard-queue-list [data-state=accepted] dd { color: var(--fboard-mint); }

.fboard-next { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 11px; padding: 9px 10px; border-radius: 5px; background: var(--fboard-layer); color: var(--fboard-muted); font-size: 14px; }
.fboard-next strong { color: var(--fboard-cyan); }
.fboard-table-wrap, .fboard-activity-list { max-height: 280px; overflow-y: auto; }
.fboard-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.fboard-table :is(th, td) { padding: 9px 8px; overflow-wrap: anywhere; }
.fboard-table th { position: sticky; top: 0; background: var(--fboard-panel); color: var(--fboard-muted); font-size: 12px; font-weight: 620; }
.fboard-table th:first-child { width: 33%; }
.fboard-table th:last-child { width: 16%; }
.fboard-table td { border-top: 1px solid var(--fboard-line); font-size: 14px; }
.fboard-state { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #233e65; color: #d3e6ff; font-size: 12px; font-weight: 650; white-space: nowrap; }
.fboard-state[data-state=pending] { background: #493921; color: #ffe0ad; }
.fboard-state[data-state=accepted], .fboard-state[data-state=completed] { background: #25453f; color: #b6f2d5; }
.fboard-state[data-state=rejected] { background: #4a2d37; color: #ffc0c1; }
.fboard-activity-list li { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--fboard-line); }
.fboard-activity-list li:last-child { border-bottom: 0; }
.fboard-activity-list time, .fboard-activity-list div span { color: var(--fboard-muted); font-size: 12px; }
.fboard-activity-list div { display: grid; overflow-wrap: anywhere; }
.fboard-activity-list strong { font-size: 14px; font-weight: 620; }
.fboard-empty { padding: 17px 0; color: var(--fboard-muted); font-size: 14px; }
.fboard-loading { padding-block: 35px; text-align: center; }
.fboard-error { margin-bottom: 12px; padding: 9px 12px; border: 1px solid #775062; border-radius: 6px; background: #372b42; color: #ffd3d3; font-size: 14px; }

@media (min-width: 1350px) and (min-height: 900px) {
    .fboard-panel { padding: 19px 21px; }
    .fboard-trend { --fboard-plot-height: 128px; }
    .fboard-table-wrap, .fboard-activity-list { max-height: 320px; }
}
@media (max-width: 1020px) {
    .fboard-head-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; min-height: 80px; }
    .fboard-clock { grid-row: 2; justify-content: flex-start; padding-bottom: 9px; }
    .fboard-clock time { font-size: 20px; }
    .fboard-title { padding-top: 8px; }
    .fboard-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fboard-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fboard-trend-panel { grid-row: 2; grid-column: span 2; }
    .fboard-dispatch { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
    .fboard-main, .fboard-head-inner { width: calc(100% - 24px); }
    .fboard-head-inner { min-height: 64px; }
    .fboard-title { gap: 7px; }
    .fboard-title img { width: 27px; height: 27px; }
    .fboard-title h1 { font-size: 21px; }
    .fboard-title p, .fboard-clock span { font-size: 11px; }
    .fboard-header [data-board-control=full] { display: none; }
    .fboard-header button { padding: 0 7px; font-size: 12px; }
    .fboard-clock { flex-wrap: wrap; grid-column: span 2; gap: 3px 8px; }
    .fboard-main { padding-top: 12px; }
    .fboard-toolbar { align-items: stretch; flex-direction: column; }
    .fboard-filters { gap: 6px; }
    .fboard-field { font-size: 12px; }
    .fboard-field input { width: 135px; }
    .fboard-update { justify-content: flex-start; }
    .fboard-update button { margin-left: auto; }
    .fboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .fboard-kpi, .fboard-total { min-height: 72px; padding: 9px; font-size: 13px; }
    .fboard-total { grid-column: span 3; grid-template-columns: 1fr auto; min-height: 51px; align-items: center; }
    .fboard-operations { grid-template-columns: minmax(0, 1fr); }
    .fboard-trend-panel { grid-row: auto; grid-column: auto; }
    .fboard-panel { padding: 12px; }
    .fboard-panel-title h2 { font-size: 16px; }
    .fboard-table :is(th, td) { padding: 7px 4px; font-size: 12px; }
    .fboard-table th:last-child { width: 23%; }
    .fboard-state { padding-inline: 5px; font-size: 11px; }
}
