/**
 * FCMS shared stylesheet
 * Full Circle Machine Services brand (light mode):
 *   gear red + black wordmark + neutral grays (not corporate blue).
 * Responsive: phone ≤640px, tablet ≤1024px, desktop default.
 * Dark mode overrides live in fcms-theme.css.
 */

/* ---------- Full Circle brand tokens (light) ---------- */
:root {
    /* Logo gear red family */
    --fc-red: #c41e3a;
    --fc-red-deep: #8b1528;
    --fc-red-soft: #a01828;
    --fc-red-wash: #fdf2f3;
    --fc-red-border: #e8b4ba;
    /* Ink / gray chrome (wordmark black → steel) */
    --fc-ink: #1a1a1a;
    --fc-body: #333333;
    --fc-muted: #6b6b6b;
    --fc-steel: #8a8a8a;
    --fc-border: #d0d0d0;
    --fc-border-strong: #b8b8b8;
    --fc-panel: #f0f0f0;
    --fc-panel-2: #f7f7f7;
    --fc-page: #fafafa;
    --fc-white: #ffffff;
    /* Nav bar (charcoal like logo lettering) */
    --fc-nav-bg: #2a2a2a;
    --fc-nav-text: #e8e8e8;
    --fc-nav-muted: #9a9a9a;
    /* Semantic */
    --fc-primary: var(--fc-red);
    --fc-primary-hover: var(--fc-red-deep);
    --fc-link: var(--fc-red-soft);
    --fc-link-hover: var(--fc-red-deep);
    --fc-focus: var(--fc-red);
    /* Room to scroll last table rows / Open buttons above Help + Feedback pills */
    --fc-float-clearance: 12rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* clip (not hidden) so position:sticky on the top bar still works */
    overflow-x: clip;
    scroll-padding-bottom: var(--fc-float-clearance);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--fc-body);
    margin: 20px;
    margin-bottom: 0;
    padding-bottom: var(--fc-float-clearance);
    background: var(--fc-page);
    max-width: 100%;
}

/* Copyright / IP notice (screen only; hidden in print via .no-print) */
.fcms-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 6px 72px 6px 12px; /* room for version on the right */
    font-size: 11px;
    line-height: 1.35;
    color: var(--fc-muted);
    background: rgba(250, 250, 250, 0.97);
    border-top: 1px solid var(--fc-border);
    text-align: center;
}
.fcms-copyright-line {
    font-weight: 600;
    color: var(--fc-body);
}
.fcms-copyright-meta {
    display: inline;
    opacity: 0.9;
}
/* Program version — bottom-right corner of every page */
.fcms-version {
    position: absolute;
    right: 12px;
    bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #556;
    opacity: 0.9;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ---------- Floating actions: Help toggle + Feedback/Bugs (bottom-right) ---------- */
.fcms-float-stack {
    position: fixed !important;
    right: 14px !important;
    bottom: 48px !important; /* above copyright strip */
    left: auto !important;
    top: auto !important;
    z-index: 90;
    display: flex;
    flex-direction: column; /* Help above Feedback/Bugs */
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    width: auto;
    max-width: calc(100vw - 28px);
    pointer-events: none; /* stack itself doesn't block; children re-enable */
}
.fcms-float-stack > * {
    pointer-events: auto;
}
.fcms-help-toggle {
    display: inline-block;
    margin: 0;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--fc-primary);
    border: 1px solid var(--fc-primary-hover);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    white-space: nowrap;
}
.fcms-help-toggle:hover {
    filter: brightness(1.06);
    background: var(--fc-primary-hover);
}
.fcms-help-toggle[aria-pressed="false"] {
    background: #6e6e6e;
    border-color: #555;
    color: #fff;
}
/* Hide help links + instructional page copy when Help is Off */
html[data-show-help="0"] .fcms-help-link,
html[data-show-help="0"] li.fcms-help-item,
html[data-show-help="0"] .fcms-help-copy,
body.fcms-hide-help .fcms-help-link,
body.fcms-hide-help li.fcms-help-item,
body.fcms-hide-help .fcms-help-copy {
    display: none !important;
}
/* Nested help copy should not reappear if parent is shown for other reasons */
.fcms-help-copy {
    /* marker class only — visibility driven by data-show-help */
}

.fcms-ri-launch {
    display: inline-block;
    margin: 0;
    padding: 9px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: var(--fc-primary);
    border: 1px solid var(--fc-primary-hover);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}
.fcms-ri-launch:hover {
    filter: brightness(1.06);
    background: var(--fc-primary-hover);
}
.fcms-ri-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(18, 22, 28, 0.45);
}
.fcms-ri-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px 40px;
    overflow: auto;
}
.fcms-ri-modal[hidden],
.fcms-ri-backdrop[hidden] {
    display: none !important;
}
.fcms-ri-dialog {
    width: 100%;
    max-width: 480px;
    margin-top: 8vh;
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 16px 18px 18px;
    color: var(--fc-ink);
}
.fcms-ri-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
}
.fcms-ri-head h2 {
    margin: 0;
    font-size: 1.2rem;
    border: none;
    padding: 0;
    color: var(--fc-ink);
}
.fcms-ri-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #556;
    padding: 0 4px;
}
.fcms-ri-lead {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #445;
}
.fcms-ri-form label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    font-size: 13px;
}
.fcms-ri-form input[type="text"],
.fcms-ri-form textarea,
.fcms-ri-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font: inherit;
    padding: 7px 9px;
    border: 1px solid #99a;
    border-radius: 6px;
}
.fcms-ri-form textarea {
    resize: vertical;
    min-height: 88px;
}
.fcms-ri-types {
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    padding: 8px 10px 10px;
    margin: 0 0 4px;
}
.fcms-ri-types legend {
    font-size: 12px;
    font-weight: 700;
    padding: 0 4px;
    color: #445;
}
.fcms-ri-type {
    display: block;
    font-weight: 500;
    margin: 4px 0;
    cursor: pointer;
}
.fcms-ri-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #667;
}
.fcms-ri-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}
.fcms-ri-actions button.primary {
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid var(--fc-primary);
    background: var(--fc-primary);
    color: #fff;
    cursor: pointer;
}
.fcms-ri-cancel {
    padding: 8px 12px;
    font: inherit;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--fc-border-strong);
    background: var(--fc-panel);
    color: var(--fc-ink);
    cursor: pointer;
}
.fcms-ri-flash {
    position: fixed;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    z-index: 220;
    max-width: min(480px, 92vw);
    padding: 10px 16px;
    background: #e7f6ec;
    border: 1px solid #8bc9a0;
    color: #1e6b3a;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.35s ease;
}
.fcms-ri-flash.is-hide {
    opacity: 0;
}
body.fcms-ri-open {
    overflow: hidden;
}
@media print {
    .fcms-ri,
    .fcms-ri-flash,
    .fcms-float-stack {
        display: none !important;
    }
}
@media (max-width: 640px) {
    .fcms-float-stack {
        right: 10px !important;
        bottom: 52px !important;
    }
    .fcms-ri-launch,
    .fcms-help-toggle {
        font-size: 12px;
        padding: 8px 12px;
    }
    .fcms-ri-dialog {
        margin-top: 4vh;
    }
}
@media print {
    .fcms-copyright,
    .no-print {
        display: none !important;
    }
    body {
        margin-bottom: 20px;
        padding-bottom: 20px;
        background: #fff !important;
        color: #000 !important;
    }
    /* Safety net: dark-theme global heading colors must not print as light-on-white. */
    h1, h2, h3, h4, h5 {
        color: #000 !important;
    }
    p, li, td, th, label {
        color: #000 !important;
    }
    a {
        color: #000 !important;
        text-decoration: none;
    }
}

h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--fc-ink);
    font-weight: 700;
}

h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

h3 {
    margin: 18px 0 10px;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--fc-border);
    padding-bottom: 4px;
}

p {
    margin: 0.5em 0;
}

a {
    color: var(--fc-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--fc-link-hover);
}

/* ---------- Navigation (responsive) ---------- */
/* Sticky charcoal bar — Full Circle black wordmark energy + red active */
.fcms-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    /* Pull full-bleed to viewport edges (body has side margin) */
    margin: -20px -20px 16px;
    padding: 10px 20px 10px;
    border-bottom: 3px solid var(--fc-red);
    background: var(--fc-nav-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--fc-nav-text);
}

.fcms-nav-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Top strip: mobile menu (left) + Mode / Logout (right) */
.fcms-nav-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
}

.fcms-nav-bar {
    display: none;
}

.fcms-nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* Logout — top-right; brand-red outline (exit, not delete) */
.fcms-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 6px 12px;
    min-height: 36px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid var(--fc-red);
    background: transparent;
    color: #f0c0c8;
    box-sizing: border-box;
}
.fcms-logout-btn:hover {
    background: var(--fc-red);
    border-color: var(--fc-red);
    color: #fff;
    text-decoration: none;
}
.fcms-logout-btn:focus-visible {
    outline: 2px solid var(--fc-focus);
    outline-offset: 2px;
}

.fcms-nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
}

.fcms-nav-toggle-icon {
    display: inline-block;
    width: 22px;
    height: 16px;
    position: relative;
    flex: 0 0 auto;
}

.fcms-nav-toggle-icon::before,
.fcms-nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--fc-red);
    border-radius: 1px;
}

.fcms-nav-toggle-icon::before {
    top: 0;
    box-shadow: 0 7px 0 var(--fc-red);
}

.fcms-nav-toggle-icon::after {
    bottom: 0;
}

.fcms-nav-toggle-text {
    font-weight: 700;
    color: #fff;
}

.fcms-nav-current-label {
    margin-left: auto;
    font-weight: 600;
    font-size: 13px;
    color: var(--fc-nav-muted);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop/tablet: classic single strip — Dashboard | My Week | Hours | … */
.fcms-nav {
    margin: 0;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
}

.fcms-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.fcms-nav-list li {
    display: inline;
    margin: 0;
    padding: 0;
}

.fcms-nav-list li:not(:last-child)::after {
    content: ' | ';
    color: var(--fc-nav-muted);
    font-weight: 400;
    white-space: pre;
}

.fcms-nav a {
    color: var(--fc-nav-text);
    font-weight: 500;
    display: inline;
    padding: 0 0 2px;
    min-height: 0;
    line-height: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.fcms-nav a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom-color: var(--fc-red);
}

.fcms-nav .nav-current,
.fcms-nav strong {
    color: #fff;
    font-weight: 700;
    display: inline;
    padding: 0 0 2px;
    min-height: 0;
    line-height: inherit;
    border-bottom: 2px solid var(--fc-red);
}

.fcms-nav .sep {
    color: var(--fc-nav-muted);
    margin: 0 4px;
}

/* Mode switcher on charcoal bar */
.fcms-nav-wrap .role-switcher,
.fcms-nav-wrap .role-switcher label,
.fcms-nav-wrap #fcms-mode-switcher {
    color: var(--fc-nav-text);
}
.fcms-nav-wrap .role-switcher select,
.fcms-nav-wrap #fcms-mode-switcher select {
    background: #3a3a3a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 4px 8px;
    font: inherit;
    font-size: 13px;
}
.fcms-nav-wrap .role-switcher select:focus {
    outline: 2px solid var(--fc-focus);
    outline-offset: 1px;
}

/* ---------- Messages ---------- */
.success {
    color: #1f6b2d;
    font-weight: bold;
}

.error {
    color: var(--fc-red);
    font-weight: bold;
}

.hint {
    color: var(--fc-muted);
    margin: 8px 0 0;
}
/* Instructional copy hidden by Help: Off — keep width readable, same muted token */
p.hint.fcms-help-copy,
.pw-meta.fcms-help-copy,
.td-sub.fcms-help-copy {
    max-width: 720px;
}

.readonly-note {
    color: var(--fc-muted);
    font-style: italic;
}

.info-box,
.rates {
    background: var(--fc-panel);
    border: 1px solid var(--fc-border);
    padding: 10px 14px;
    margin: 14px 0;
    display: inline-block;
    border-radius: 4px;
}

/* ---------- Forms ---------- */
label {
    display: inline-block;
    margin-top: 6px;
}

.filters label {
    margin-right: 10px;
    margin-top: 0;
}

.filters select,
.filters input[type="date"],
.filters input[type="text"] {
    padding: 5px 8px;
    border: 1px solid #999;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

form.stack label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

/* Checkbox labels stay inline */
form.stack label:has(input[type="checkbox"]) {
    font-weight: 500;
}

form.stack input[type="text"],
form.stack input[type="password"],
form.stack input[type="email"],
form.stack input[type="date"],
form.stack input[type="number"],
form.stack select,
form.stack textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #999;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

form.stack textarea {
    max-width: 640px;
    min-height: 80px;
}

form.stack input[type="file"] {
    display: block;
    margin-top: 6px;
    max-width: 420px;
    font-family: inherit;
    font-size: 14px;
}
form.stack input.ex-receipt-file,
input.ex-receipt-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ex-receipt-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
}
.ex-receipt-btn,
form.stack .ex-receipt-pick label.ex-receipt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    margin-top: 0;
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--fc-primary);
    background: var(--fc-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}
.ex-receipt-btn-secondary {
    background: var(--fc-white, #fff);
    color: var(--fc-ink);
    border-color: var(--fc-border-strong, #999);
}
.ex-receipt-btn:hover {
    background: var(--fc-primary-hover);
    color: #fff;
}
.ex-receipt-btn-secondary:hover {
    background: var(--fc-panel-2, #f0f0f0);
    color: var(--fc-ink);
}
.ex-receipt-name {
    margin: 0;
    flex: 1 1 10rem;
}

form.stack button,
button.primary,
.btn-primary {
    margin-top: 14px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--fc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
}

form.stack button:hover,
button.primary:hover,
.btn-primary:hover {
    background: var(--fc-primary-hover);
}

form.stack button:focus-visible,
button.primary:focus-visible,
.btn-primary:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--fc-focus);
    outline-offset: 2px;
}

button,
input[type="submit"] {
    font-family: inherit;
}

/* Login only — centered narrow column (no full app nav) */
body.page-login {
    max-width: 420px;
    margin: 60px auto;
}

body.page-login h2 {
    text-align: left;
}

/*
 * Account / settings pages share full-width layout with other app pages.
 * Content is constrained by .settings-layout (not the whole body).
 */
body.page-narrow {
    max-width: none;
    margin: 20px;
    margin-bottom: 0;
    padding-bottom: var(--fc-float-clearance);
}

body.page-narrow h2 {
    text-align: left;
}

/* Settings content column — desktop-friendly, still fine on phone */
.settings-layout {
    max-width: 760px;
    width: 100%;
    margin: 0;
}

.settings-panel {
    margin: 16px 0 24px;
    padding: 18px 20px 20px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: var(--fc-panel-2);
    box-sizing: border-box;
}

.settings-panel h3 {
    margin: 0 0 6px;
    border: none;
    font-size: 1.1rem;
    color: var(--fc-ink);
}

.settings-panel > .hint {
    margin: 0 0 14px;
}

.settings-layout form.stack {
    max-width: none;
}

.settings-layout form.stack input[type="text"],
.settings-layout form.stack input[type="password"],
.settings-layout form.stack input[type="email"],
.settings-layout form.stack select {
    max-width: 420px;
}

/* Theme picker: three columns on desktop, stack on phone */
.theme-choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 8px 0 18px;
    max-width: none;
}

.theme-choice {
    flex: none;
    min-width: 0;
    max-width: none;
    width: 100%;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-choice-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    padding: 16px 14px;
    border-radius: 10px;
    border: 2px solid var(--fc-border);
    background: #fff;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    box-sizing: border-box;
}

.theme-choice-card .theme-choice-title {
    display: block;
    font-size: 1.05rem;
    color: var(--fc-ink);
}

.theme-choice-card .theme-choice-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #667;
    line-height: 1.35;
}

.theme-choice input:checked + .theme-choice-card {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 1px var(--fc-primary);
    background: var(--fc-red-wash);
}

.theme-choice input:focus-visible + .theme-choice-card {
    outline: 2px solid var(--fc-primary);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    body.page-narrow {
        margin: 12px;
        margin-bottom: 0;
        padding-bottom: var(--fc-float-clearance);
    }

    .settings-layout {
        max-width: 100%;
    }

    .settings-panel {
        padding: 14px 12px 16px;
    }

    .theme-choice-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .theme-choice-card {
        min-height: 72px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 12px;
        padding: 14px 14px;
    }

    .theme-choice-card .theme-choice-title {
        min-width: 5.5rem;
    }

    .theme-choice-card .theme-choice-hint {
        margin-top: 0;
    }

    .settings-layout form.stack input[type="text"],
    .settings-layout form.stack input[type="password"],
    .settings-layout form.stack input[type="email"],
    .settings-layout form.stack select {
        max-width: 100%;
    }
}

body.page-login input[type="text"],
body.page-login input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #999;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
}

body.page-login button {
    padding: 12px 24px;
    margin-top: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: var(--fc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
}

body.page-login button:hover {
    background: var(--fc-primary-hover);
}

/* ---------- Tables ---------- */
/* Horizontal scroll on phones so wide tables don't pan the whole page (#98) */
.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 12px 0;
    /* subtle edge cue when content is wider than the viewport */
    background:
        linear-gradient(to right, var(--fc-page, #fff) 30%, transparent),
        linear-gradient(to left, var(--fc-page, #fff) 30%, transparent),
        linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent 12px),
        linear-gradient(to left, rgba(0, 0, 0, 0.06), transparent 12px);
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat;
    background-size: 24px 100%, 24px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
}

.table-scroll:focus {
    outline: 2px solid var(--fc-primary, #1a5a9a);
    outline-offset: 2px;
}

.table-scroll > table,
.table-scroll table.data,
.table-scroll table.grid,
.table-scroll table.ls-table {
    margin: 0;
    /* Prefer natural column width so overflow-x actually scrolls */
    width: max-content;
    min-width: 100%;
    max-width: none !important;
}

table.data,
table.grid {
    border-collapse: collapse;
    width: 100%;
    max-width: min(1600px, 100%);
    margin: 12px 0;
    font-size: 14px;
}

@media (min-width: 1600px) {
    table.data,
    table.grid {
        max-width: min(1800px, 100%);
    }
}

table.data th,
table.data td,
table.grid th,
table.grid td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}

table.data th,
table.grid th {
    background: var(--fc-panel);
    font-weight: 700;
    color: var(--fc-ink);
}

table.data th.fcms-th-sort,
table.data th.asg-th-sort {
    white-space: nowrap;
}
table.data th.fcms-th-sort a,
table.data th.asg-th-sort a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}
table.data th.fcms-th-sort a:hover,
table.data th.asg-th-sort a:hover {
    text-decoration: underline;
    color: var(--fc-link);
}

table.data tr:hover,
table.grid tbody tr:hover {
    background: #f5f8fb;
}

table.data tr.clickable,
table.grid tr.clickable {
    cursor: pointer;
}

table.grid th,
table.grid td {
    text-align: center;
}

table.grid th.day-col,
table.grid td.day-col,
table.data th.day-col,
table.data td.day-col {
    text-align: left;
    min-width: 100px;
    font-weight: bold;
    background: #fafafa;
}

table.grid th.miles-col,
table.grid td.miles-col {
    background: #f7faf7;
    min-width: 100px;
}

table.grid th.miles-col {
    background: #e4efe4;
}

table.grid tfoot td,
table.data tfoot td {
    font-weight: bold;
    background: #f0f0f0;
}

table.grid tfoot td.miles-col {
    background: #e8f0e8;
}

/* ---------- Per diem meal buttons ---------- */
.bulk-bar {
    margin: 10px 0 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bulk-bar button {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #666;
    background: var(--fc-panel);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.bulk-bar button:hover:not(:disabled) {
    background: #dde6f2;
}

.bulk-bar button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bulk-bar button.danger {
    background: #f8e8e8;
    border-color: #a66;
}

button.meal-btn,
button.bulk-day-btn {
    min-width: 92px;
    padding: 10px 8px;
    border: 2px solid #888;
    border-radius: 6px;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

button.meal-btn:hover:not(:disabled),
button.bulk-day-btn:hover:not(:disabled) {
    border-color: #333;
}

button.meal-btn.on {
    background: #2a7a3a;
    border-color: #1f5c2b;
    color: #fff;
}

button.bulk-day-btn {
    min-width: 64px;
    background: #e8f0e8;
    border-color: #5a8;
}

button.meal-btn:disabled,
button.bulk-day-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

button.meal-btn.busy,
button.bulk-day-btn.busy {
    opacity: 0.7;
}

.day-total {
    font-variant-numeric: tabular-nums;
    min-width: 64px;
}

input.miles {
    width: 80px;
    padding: 8px;
    font-size: 14px;
    font-family: inherit;
    text-align: right;
    border: 1px solid #999;
    border-radius: 4px;
}

input.miles:focus {
    outline: 2px solid #5a8;
    border-color: #5a8;
}

/* ---------- Page actions ---------- */
.page-actions {
    margin-top: 18px;
    max-width: min(1600px, 100%);
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (min-width: 1600px) {
    .page-actions {
        max-width: min(1800px, 100%);
    }
}

.page-actions button#save-update,
button.btn-save {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    background: var(--fc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
}

.page-actions button#save-update:hover:not(:disabled),
button.btn-save:hover:not(:disabled) {
    background: var(--fc-primary-hover);
}

.page-actions button#save-update:disabled,
button.btn-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dirty-note {
    color: #886600;
    font-size: 0.95em;
    display: none;
}

.dirty-note.show {
    display: inline;
}

/* ---------- Service editor ---------- */
.editor-wrap {
    max-width: 900px;
    margin-top: 6px;
}

.preview {
    color: #444;
    font-size: 0.95em;
}

.entry-view {
    border: 1px solid #ccc;
    padding: 12px;
    background: #fafafa;
    margin-top: 8px;
    max-width: 900px;
}

.entry-view img {
    max-width: 100%;
    height: auto;
}

/* ---------- Hours void ---------- */
.void-banner {
    background: #fff3cd;
    border: 1px solid #e0c36a;
    padding: 10px 12px;
    margin: 12px 0;
    border-radius: 4px;
    max-width: 560px;
}

.void-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ccc;
    max-width: 560px;
}

.btn-void {
    background: #c00 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.btn-restore {
    background: #2a7 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Utilities ---------- */
.badge-void {
    display: inline-block;
    background: #c00;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

tr.voided {
    background: #f8f0f0;
    color: #666;
    text-decoration: line-through;
}

tr.voided:hover {
    background: #f0e0e0;
}

.page-narrow-form {
    max-width: 560px;
}

.page-wide-form {
    max-width: 900px;
}

ul.quick-links {
    line-height: 1.8;
    padding-left: 1.4em;
}

.status-msg {
    min-height: 1.2em;
    margin-top: 8px;
}

/* ---------- Project tasks ---------- */
.task-table {
    max-width: min(1600px, 100%);
}

.task-table .task-col-drag {
    width: 28px;
    text-align: center;
    color: #789;
    cursor: grab;
    user-select: none;
}

.task-table .task-col-pri {
    width: 36px;
    text-align: center;
}

.task-table .task-col-status {
    width: 110px;
}

.task-table .task-col-actions {
    width: 240px;
    white-space: nowrap;
}

.task-handle {
    font-size: 16px;
    line-height: 1;
}

tr.task-row.task-dragging {
    opacity: 0.55;
    background: #eef4fb;
}

tr.task-row.task-drag-over {
    outline: 2px dashed #4a7ab0;
    outline-offset: -2px;
}

tr.task-completed td {
    color: #666;
}

tr.task-completed .task-desc {
    text-decoration: line-through;
}

.badge-task-open,
.badge-task-done {
    display: inline-block;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

.badge-task-open {
    background: #fff3cd;
    color: #7a5b00;
    border: 1px solid #e0c36a;
}

.badge-task-done {
    background: #d4edda;
    color: #155724;
    border: 1px solid #a3d9b1;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.btn-task {
    background: #e8eef5;
    border: 1px solid #b0c0d4;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    color: var(--fc-ink);
}

.btn-task:hover:not(:disabled) {
    background: #d5e2f0;
}

.btn-task:disabled {
    opacity: 0.4;
    cursor: default;
}

.btn-task-link {
    font-size: 12px;
    padding: 2px 6px;
}

.task-edit-form {
    max-width: 480px;
    margin: 4px 0;
}

.task-reorder-form {
    display: none;
}

/* ---------- Project photos gallery ---------- */
.photo-filters {
    margin-bottom: 8px;
}

.photo-gallery-wrap {
    margin-top: 24px;
}

.photo-category-block {
    margin: 18px 0 28px;
}

.photo-category-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--fc-ink);
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 4px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    max-width: min(1600px, 100%);
}

@media (min-width: 1600px) {
    .photo-grid {
        max-width: min(1800px, 100%);
    }
}

.photo-card {
    margin: 0;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.photo-thumb-link {
    display: block;
    background: var(--fc-ink);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-meta {
    padding: 8px 10px 10px;
    font-size: 13px;
    line-height: 1.35;
}

.photo-caption {
    font-weight: 600;
    color: var(--fc-ink);
    margin-bottom: 2px;
}

.photo-delete-form {
    margin-top: 6px;
}



/* ---------- Hub / list pages (wide desktop) ---------- */
.hub-main {
    width: 100%;
    max-width: min(1600px, 100%);
}

@media (min-width: 1600px) {
    .hub-main {
        max-width: min(1800px, 100%);
    }
}

.hub-main table.data,
.hub-main table.grid,
.hub-main table.mpe-table {
    max-width: none;
    width: 100%;
}

.hub-panel {
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px 16px 14px;
    margin: 0 0 16px;
    min-width: 0;
}

.hub-toolbar {
    width: 100%;
    max-width: min(1600px, 100%);
    margin: 12px 0 16px;
    padding: 12px 14px;
    background: var(--fc-panel);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    box-sizing: border-box;
}

@media (min-width: 1600px) {
    .hub-toolbar {
        max-width: min(1800px, 100%);
    }
}

.hub-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #334;
    margin: 0;
}

.hub-toolbar input,
.hub-toolbar select {
    font: inherit;
    padding: 6px 8px;
    min-height: 36px;
    border: 1px solid #999;
    border-radius: 4px;
}

.hub-lead {
    max-width: 72ch;
}

/* ---------- Week context / overview ---------- */
.week-strip {
    max-width: min(1600px, 100%);
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #eef4fb;
    border: 1px solid #b8cce4;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.4;
}

@media (min-width: 1600px) {
    .week-strip {
        max-width: min(1800px, 100%);
    }
}

.week-strip-main {
    color: var(--fc-ink);
}

.week-strip-check {
    flex: 1 1 100%;
    font-size: 12px;
    color: #445;
}

.week-step-done {
    color: #1a6b3c;
    font-weight: 600;
}

.week-step-todo {
    color: #667;
}
.week-strip-check a.week-step-done,
.week-strip-check a.week-step-todo {
    text-decoration: none;
    color: inherit;
}
.week-strip-check a.week-step-done:hover,
.week-strip-check a.week-step-todo:hover {
    text-decoration: underline;
}

.week-next-btn,
.week-primary-btn,
.week-secondary-btn {
    display: inline-block;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.2;
    box-sizing: border-box;
}
.week-next-btn,
.week-primary-btn {
    background: var(--fc-primary);
    border: 1px solid var(--fc-primary);
    color: #fff !important;
}
.week-secondary-btn {
    background: var(--fc-panel);
    border: 1px solid var(--fc-border-strong);
    color: var(--fc-ink);
}
.week-next-btn:hover,
.week-primary-btn:hover {
    background: var(--fc-primary-hover);
    border-color: var(--fc-primary-hover);
}
.week-secondary-btn:hover {
    filter: brightness(0.97);
    color: var(--fc-ink);
}

.week-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.week-badge-done {
    background: #d4edda;
    color: #155724;
}

.week-badge-need {
    background: #fff3cd;
    color: #7a5b00;
}

.week-badge-opt {
    background: #e8eef5;
    color: #556;
}

.week-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-width: min(1600px, 100%);
    margin: 16px 0;
}

@media (min-width: 1200px) {
    .week-checklist {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (min-width: 1600px) {
    .week-checklist {
        max-width: min(1800px, 100%);
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.week-card {
    display: block;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    background: var(--fc-white);
    transition: box-shadow 0.12s, border-color 0.12s;
}

.week-card:hover {
    border-color: var(--fc-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--fc-primary) 14%, transparent);
}

.week-card-done {
    border-left: 4px solid #2a8f5a;
}

.week-card-need {
    border-left: 4px solid #d4a017;
    background: color-mix(in srgb, #fff8e6 70%, var(--fc-white));
}

.week-card-empty {
    border-left: 4px solid var(--fc-border);
}

.week-card-current {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fc-primary) 45%, transparent);
    border-color: var(--fc-primary);
}

.week-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.week-card-detail {
    font-size: 13px;
    color: var(--fc-muted);
    min-height: 2.4em;
}

.week-card-go {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-primary);
}

.week-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 20px 0 40px;
    max-width: min(1600px, 100%);
}
.week-report-actions > .hint,
.week-report-actions > p {
    flex: 1 1 100%;
}

/* ---------- Today (field landing) — light defaults; dark in fcms-theme.css ---------- */
.td-wrap {
    width: 100%;
    max-width: min(1600px, 100%);
}
.td-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fc-primary);
    margin: 0 0 4px;
}
.td-sub {
    margin: 0 0 14px;
    color: #556;
    font-size: 14px;
    line-height: 1.45;
}
.td-section-title {
    margin: 18px 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fc-primary);
    border: none;
}
.td-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.td-job {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    background: #f7fafc;
    text-decoration: none;
    color: var(--fc-ink);
    max-width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.td-job:hover {
    border-color: var(--fc-primary);
    box-shadow: 0 2px 10px rgba(42, 90, 140, 0.12);
    color: var(--fc-ink);
}
.td-job.is-selected {
    border-color: var(--fc-primary);
    background: #e8f2fc;
    box-shadow: 0 0 0 2px rgba(42, 90, 140, 0.25);
}
.td-job .rid {
    font-weight: 700;
    color: var(--fc-primary);
    font-size: 14px;
}
.td-job .pname {
    display: block;
    font-size: 13px;
    color: #334455;
    margin-top: 2px;
    line-height: 1.35;
}
.td-job .st {
    display: block;
    font-size: 12px;
    color: #556677;
    margin-top: 4px;
}
.td-empty {
    padding: 16px;
    border: 1px dashed var(--fc-border);
    border-radius: 10px;
    background: #fafbfc;
    margin: 0 0 16px;
    color: #334455;
}
.td-empty strong {
    color: var(--fc-ink);
}
.td-check {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
    max-width: none;
}
.td-check.week-checklist {
    max-width: none;
}
.td-check .week-card {
    min-height: 0;
}
.td-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 8px 0 18px;
}
@media (max-width: 520px) {
    .td-actions {
        grid-template-columns: 1fr;
    }
}
.td-actions .btn,
.td-actions a.btn {
    display: block;
    text-align: center;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #666;
    background: var(--fc-panel);
    color: var(--fc-ink);
    cursor: pointer;
}
.td-actions .btn:hover,
.td-actions a.btn:hover {
    background: #e4e4e4;
    color: var(--fc-ink);
}
.td-actions .btn-primary,
.td-actions a.btn-primary,
.td-actions .btn.primary,
.td-actions a.btn.primary {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: #fff;
}
.td-actions .btn-primary:hover,
.td-actions a.btn-primary:hover,
.td-actions .btn.primary:hover,
.td-actions a.btn.primary:hover {
    background: var(--fc-primary-hover);
    color: #fff;
}
.td-gap {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e8;
    border: 1px solid #e0c36a;
    font-size: 14px;
    color: #3a3420;
    line-height: 1.45;
}

/* Job to-do scratch pad (personal — not reports) */
.td-todo-warn {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--fc-red-wash, #fdf2f3);
    border: 1px solid var(--fc-red-border, #e8b4ba);
    font-size: 14px;
    color: var(--fc-ink, #1a1a1a);
    line-height: 1.45;
}
.td-todo-warn a {
    font-weight: 600;
    margin-left: 6px;
}
.td-todos {
    margin-top: 10px;
}
.td-todo-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.td-todo-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--fc-border, #d0d0d0);
}
.td-todo-item.is-done .td-todo-body {
    text-decoration: line-through;
    color: var(--fc-muted, #6b6b6b);
}
.td-todo-check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid var(--fc-border-strong, #b8b8b8);
    border-radius: 6px;
    background: var(--fc-white, #fff);
    color: var(--fc-primary, #c41e3a);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.td-todo-item.is-done .td-todo-check {
    background: var(--fc-primary, #c41e3a);
    border-color: var(--fc-primary, #c41e3a);
    color: #fff;
}
.td-todo-body {
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.4;
    padding-top: 4px;
    color: var(--fc-body, #333);
}
.td-todo-x {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--fc-muted, #6b6b6b);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.td-todo-x:hover {
    color: var(--fc-red, #c41e3a);
}
.td-todo-add {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}
.td-todo-add input[type="text"] {
    flex: 1 1 12rem;
    min-width: 0;
    font: inherit;
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid var(--fc-border-strong, #b8b8b8);
    border-radius: 6px;
}
.td-todo-add .btn {
    margin: 0;
    padding: 8px 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--fc-border-strong, #b8b8b8);
    background: var(--fc-panel, #f0f0f0);
    color: var(--fc-ink, #1a1a1a);
    cursor: pointer;
}
.td-todo-toggle,
.td-todo-del {
    margin: 0;
    display: inline;
}
.td-expenses {
    margin-top: 10px;
}
.td-ex-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}
.td-ex-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--fc-border, #d0d0d0);
    cursor: pointer;
}
.td-ex-item:first-child {
    border-top: none;
    padding-top: 0;
}
.td-ex-meta {
    flex: 1 1 12rem;
    min-width: 0;
}
.td-ex-amt {
    font-weight: 700;
    font-size: 15px;
}
.td-ex-add {
    margin: 0;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background: var(--fc-primary);
    color: #fff;
}
.td-ex-add:hover {
    background: var(--fc-primary-hover);
}
.td-gap a {
    font-weight: 600;
}
.td-links {
    font-size: 14px;
    margin: 16px 0 8px;
    color: #445;
}
.td-links a {
    margin-right: 12px;
}

/* Today single-day entry form (dense / phone-first) */
.td-form {
    max-width: none;
    margin: 0 0 12px;
}
.td-job-meta {
    margin: 0 0 8px;
    font-size: 13px;
    color: #445;
    line-height: 1.35;
}
.td-block {
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: #f7fafc;
}
.td-block-compact {
    padding: 8px 10px;
}
.td-block .td-section-title {
    margin: 0 0 6px;
    font-size: 0.95rem;
}
.td-inline-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fc-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    align-self: center;
    min-width: 5.5rem;
    flex: 0 0 auto;
}
.td-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: flex-end;
}
.td-row-hours .td-field-sm input,
.td-row-costs .td-field-sm input {
    width: 4.25rem;
}
.td-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #445;
}
.td-field input[type="number"],
.td-field select,
.td-field textarea {
    font-family: inherit;
    font-size: 16px; /* avoid iOS zoom */
    font-weight: 500;
    padding: 8px 10px;
    border: 1px solid #999;
    border-radius: 6px;
    min-height: 40px;
    color: var(--fc-ink);
    background: #fff;
    max-width: 100%;
}
.td-field select {
    min-width: 8rem;
}
.td-field-grow {
    flex: 1 1 8rem;
}
.td-field-full {
    width: 100%;
}
.td-field-full textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    line-height: 1.35;
    padding: 8px 10px;
}
.td-field-editor {
    display: block;
}
.td-field-editor .tox-tinymce {
    border-radius: 6px;
    max-width: 100%;
}
.td-notes-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin: 0 0 6px;
}
.td-notes-head .td-section-title {
    margin: 0;
    flex: 0 1 auto;
}
.td-notes-hint {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    flex: 1 1 auto;
}
.td-mini-link {
    font-size: 12px;
    font-weight: 600;
}
.td-meals {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    margin-left: auto;
}
.td-meal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 2.75rem;
    padding: 8px 10px;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-ink);
    cursor: pointer;
    user-select: none;
}
.td-meal input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--fc-primary);
    margin: 0;
}
.td-meal:has(input:checked) {
    background: #e8f2fc;
    border-color: var(--fc-primary);
}
.td-save-bar {
    position: sticky;
    bottom: 8px;
    margin: 10px 0 4px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    z-index: 5;
}
.td-save-btn {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: var(--fc-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(26, 90, 154, 0.35);
}
.td-save-btn:hover {
    background: #1e456c;
}
.td-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* Tighter page chrome on Today */
.td-wrap h2 {
    margin-bottom: 2px;
}
.td-date {
    margin-bottom: 2px;
}
.td-sub {
    margin-bottom: 10px;
    font-size: 13px;
}
.td-jobs {
    gap: 6px;
    margin-bottom: 10px;
}
.td-job {
    padding: 8px 10px;
}
.td-job .rid {
    font-size: 13px;
}
.td-job .pname {
    font-size: 12px;
}
.td-job .st {
    font-size: 11px;
    margin-top: 2px;
}
.td-links {
    margin-top: 10px;
    font-size: 13px;
}
@media (max-width: 520px) {
    .td-inline-label {
        flex: 1 1 100%;
        min-width: 0;
        margin-bottom: -2px;
    }
    .td-row-hours .td-field-sm,
    .td-row-costs .td-field-sm {
        flex: 0 0 auto;
    }
    .td-row-hours .td-field-sm input,
    .td-row-costs .td-field-sm input {
        width: 4.5rem;
    }
    .td-field-grow {
        flex: 1 1 100%;
    }
    .td-meals {
        margin-left: 0;
        flex: 1 1 auto;
        justify-content: flex-start;
    }
}

.week-summary {
    max-width: min(1600px, 100%);
}

.week-summary h2 {
    margin: 0 0 8px;
    border: none;
    font-size: 1.25rem;
}
.week-summary h3 {
    margin-top: 18px;
}

.week-overview-filters {
    max-width: min(1600px, 100%);
}

.week-hub-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: min(1600px, 100%);
    margin: 8px 0 0;
    align-items: start;
}

.week-hub-panels > .week-tasks-panel {
    max-width: none;
    width: 100%;
    margin: 0;
}

@media (min-width: 1200px) {
    .week-hub-panels {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (min-width: 1600px) {
    .week-report-actions,
    .week-summary,
    .week-overview-filters,
    .week-hub-panels,
    .td-wrap {
        max-width: min(1800px, 100%);
    }
}

/* Role switcher (multi-role accounts) — sits left of Logout in .fcms-nav-tools */
.role-switcher {
    margin: 0;
    font-size: 13px;
}
.role-switch-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.role-switch-form label {
    font-weight: 600;
    color: #334;
}
.role-switch-form select {
    font: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #b0c0d4;
    min-height: 36px;
}

/* Filters row */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    margin: 10px 0 14px;
}

.filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

/* Dashboard quick links (width controlled by .dash-sections on dashboard) */
.quick-links {
    padding-left: 1.2em;
    max-width: 100%;
}
.quick-links li {
    margin: 8px 0;
    line-height: 1.45;
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
    :root {
        --fc-float-clearance: 13.5rem;
    }
    body {
        margin: 16px;
        margin-bottom: 0;
        padding-bottom: calc(var(--fc-float-clearance) + env(safe-area-inset-bottom, 0px));
    }

    .fcms-nav-wrap {
        margin: -16px -16px 14px;
        padding: 10px 16px 10px;
    }

    form.stack input[type="text"],
    form.stack input[type="password"],
    form.stack input[type="email"],
    form.stack input[type="date"],
    form.stack input[type="number"],
    form.stack select,
    form.stack textarea,
    form.stack input[type="file"] {
        max-width: 100%;
    }
}

/* ---------- Responsive: phone (portrait, or landscape short viewport) ---------- */
/* Landscape iPhone is ~844×390: width > 640 so without the height clause the
   desktop link strip wraps and eats the screen (TL/Manager, bug #116). */
@media (max-width: 640px), (max-width: 1024px) and (max-height: 520px) {
    :root {
        --fc-float-clearance: 14rem;
    }
    body {
        margin: 12px;
        margin-bottom: 0;
        padding-bottom: calc(var(--fc-float-clearance) + env(safe-area-inset-bottom, 0px));
        font-size: 15px;
    }

    h2 {
        font-size: 1.28rem;
    }

    h3 {
        font-size: 1.05rem;
    }

    /* Top bar: hamburger left, Mode + Logout right */
    .fcms-nav-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: -12px -12px 12px;
        padding: 8px 12px 8px;
    }

    .fcms-nav-top {
        order: 0;
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 0;
    }

    .fcms-nav-bar {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }

    .fcms-nav-tools {
        flex: 0 0 auto;
    }

    .fcms-nav {
        order: 1;
        display: none;
        padding: 8px 0 10px;
        width: 100%;
    }

    .fcms-nav-checkbox:checked ~ .fcms-nav {
        display: block;
    }

    .fcms-nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .fcms-nav-list li {
        display: block;
        border-bottom: 1px solid #3a3a3a;
    }

    .fcms-nav-list li:not(:last-child)::after {
        content: none;
        margin: 0;
        white-space: normal;
    }

    .fcms-nav a,
    .fcms-nav .nav-current {
        display: block;
        padding: 12px 10px;
        min-height: 44px;
        line-height: 20px;
        border-bottom: none;
    }

    .fcms-nav-list li.is-current {
        background: #3a2228;
        border-left: 3px solid var(--fc-red);
    }
    .fcms-nav-list li.is-current .nav-current {
        border-bottom: none;
        color: #fff;
    }

    .role-switcher {
        margin: 0;
    }

    .role-switch-form {
        width: auto;
    }

    .role-switch-form select {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 9.5rem;
        font-size: 16px; /* avoid iOS zoom */
        min-height: 44px;
    }

    .fcms-logout-btn {
        min-height: 44px;
        padding: 8px 12px;
    }

    /* Forms: full width, 16px inputs (iOS) */
    form.stack input[type="text"],
    form.stack input[type="password"],
    form.stack input[type="email"],
    form.stack input[type="date"],
    form.stack input[type="number"],
    form.stack input[type="month"],
    form.stack select,
    form.stack textarea,
    .filters select,
    .filters input[type="date"],
    .filters input[type="text"],
    .filters input[type="month"],
    .filters input[type="number"] {
        max-width: 100%;
        width: 100%;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    form.stack textarea {
        min-height: 100px;
    }

    form.stack button,
    button.primary,
    .btn-primary,
    button[type="submit"],
    input[type="submit"] {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px;
        margin-top: 12px;
    }

    /* Corner Save stays compact top-right (#116) — not a full-width bottom bar */
    button.fcms-float-save,
    button.fcms-float-preview,
    button.td-save-btn {
        width: auto;
        max-width: none;
        min-width: 5.75rem;
        min-height: 44px;
        margin-top: 0;
        padding: 10px 16px;
        font-size: 14px;
    }
    .td-save-bar {
        position: fixed;
        top: 4.6rem;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: auto;
        left: auto;
        width: auto;
        margin: 0;
        z-index: 850;
    }
    /* #121: do not indent Today’s form for the overlay Save */

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filters label {
        width: 100%;
    }

    .filters button,
    .filters .btn {
        width: 100%;
        min-height: 44px;
    }

    /* Tables */
    table.data,
    table.grid {
        font-size: 13px;
        max-width: none;
    }

    table.data th,
    table.data td,
    table.grid th,
    table.grid td {
        padding: 8px;
    }

    /* Login */
    body.page-login,
    body.page-narrow {
        max-width: none;
        margin: 24px 16px 0;
        padding: 0;
        padding-bottom: var(--fc-float-clearance);
    }

    body.page-login input[type="text"],
    body.page-login input[type="password"] {
        font-size: 16px;
        min-height: 48px;
        box-sizing: border-box;
    }

    body.page-login button {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    /* Copyright: slightly tighter */
    .fcms-copyright {
        font-size: 10px;
        padding: 6px 56px 6px 8px;
        padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    }

    .fcms-copyright-meta {
        display: none;
    }

    .fcms-version {
        right: 8px;
        bottom: max(6px, env(safe-area-inset-bottom, 0px));
        font-size: 10px;
    }

    /* Dashboard */
    .quick-links li {
        margin: 12px 0;
    }

    .quick-links a {
        display: inline-block;
        padding: 4px 0;
        min-height: 40px;
    }

    /* Photo strip already flex-wraps */
    .fcms-photo-thumb {
        width: 96px;
        height: 72px;
    }

    /* Bulk / action bars */
    .bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-bar button {
        width: 100%;
    }
}

/* Large desktop: optional content comfort width for plain pages */
@media (min-width: 1200px) {
    body {
        /* keep full width for calendars; content naturally maxes via table/form caps */
    }
}

/* ---------- Delete-reason confirmation modal ---------- */
body.fcms-delete-modal-open {
    overflow: hidden;
}

.fcms-delete-modal[hidden] {
    display: none !important;
}

.fcms-delete-modal {
    position: fixed;
    inset: 0;
    /* Above project hub modals (10030) for Remove task / delete-from-modal flows */
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.fcms-delete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 45, 0.55);
}

.fcms-delete-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #c5d0de;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    padding: 18px 18px 16px;
}

.fcms-delete-modal-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--fc-ink);
}

.fcms-delete-modal-msg {
    margin: 0 0 12px;
    color: #445;
    font-size: 14px;
    line-height: 1.4;
}

.fcms-delete-modal-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 4px;
    color: #334;
}

.fcms-delete-modal-label .req {
    color: #b00020;
}

.fcms-delete-modal-reason {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px; /* avoid iOS zoom */
    padding: 8px 10px;
    border: 1px solid #99a;
    border-radius: 6px;
    min-height: 72px;
    resize: vertical;
}

.fcms-delete-modal-error {
    color: #b00020;
    font-size: 13px;
    margin: 8px 0 0;
}

.fcms-delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.fcms-delete-modal-actions .btn-void {
    min-width: 96px;
}

@media (max-width: 480px) {
    .fcms-delete-modal-actions {
        flex-direction: column-reverse;
    }
    .fcms-delete-modal-actions button {
        width: 100%;
    }
}

/* ========== In-app entry modal (hours / expenses / service) ========== */
body.fcms-entry-modal-open {
    overflow: hidden;
}
.fcms-entry-modal[hidden] {
    display: none !important;
}
.fcms-entry-modal {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.fcms-entry-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 30, 45, 0.5);
}
.fcms-entry-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    height: min(88vh, 820px);
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    color: #222;
}
.fcms-entry-modal-panel.is-wide {
    width: min(960px, 100%);
}
.fcms-entry-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #d8e0ea;
    background: var(--fc-panel);
    flex-shrink: 0;
}
.fcms-entry-modal-header h3 {
    margin: 0;
    border: none;
    font-size: 1.05rem;
    color: var(--fc-ink);
}
.fcms-entry-modal-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #556;
    padding: 0 4px;
}
.fcms-entry-modal-close:hover {
    color: var(--fc-ink);
}
.fcms-entry-modal-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
}
/* Compact chrome when an edit form is loaded inside the modal iframe */
body.page-entry-modal {
    margin: 12px 14px 24px;
    padding-bottom: 24px;
    max-width: none;
}
body.page-entry-modal .field-nav,
body.page-entry-modal .fcms-report-issue-fab,
body.page-entry-modal .fcms-copyright-footer {
    display: none !important;
}
body.page-entry-modal .page-entry-modal-hide {
    display: none !important;
}

/* ========== In-app coach (first-login / notices) ========== */
.fcms-coach {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
}
.fcms-coach-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 40, 0.35);
    pointer-events: auto;
}
.fcms-coach-bubble {
    position: fixed;
    z-index: 2;
    max-width: min(360px, calc(100vw - 24px));
    padding: 14px 16px 12px;
    background: #fff;
    border: 2px solid var(--fc-primary);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
    color: var(--fc-ink);
    pointer-events: auto;
}
.fcms-coach-title {
    margin: 0 0 8px;
    border: none;
    font-size: 1.15rem;
    color: var(--fc-ink);
}
.fcms-coach-body {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 12px;
    color: #334;
}
.fcms-coach-body strong {
    color: var(--fc-ink);
}
.fcms-coach-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.fcms-coach-arrow {
    position: fixed;
    z-index: 2;
    height: 0;
    transform-origin: 0 50%;
    pointer-events: none;
}
.fcms-coach-arrow-shaft {
    display: block;
    height: 6px;
    width: 100%;
    background: #e8a020;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.fcms-coach-arrow-head {
    position: absolute;
    right: -2px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -12px;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #e8a020;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
/* Pulse ring on Mode switcher / Help toggle while coach is open */
#fcms-mode-switcher.fcms-coach-target-pulse,
#fcms-help-toggle.fcms-coach-target-pulse,
.fcms-coach-target-pulse {
    position: relative;
    z-index: 10051;
    border-radius: 8px;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 6px #e8a020,
        0 0 18px 4px rgba(232, 160, 32, 0.55);
    animation: fcms-coach-pulse 1.4s ease-in-out infinite;
}
#fcms-help-toggle.fcms-coach-target-pulse {
    border-radius: 999px; /* keep pill shape */
}
@keyframes fcms-coach-pulse {
    0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e8a020, 0 0 14px 2px rgba(232, 160, 32, 0.4); }
    50% { box-shadow: 0 0 0 3px #fff, 0 0 0 9px #f0b840, 0 0 24px 6px rgba(232, 160, 32, 0.65); }
}
body.fcms-coach-open {
    /* allow page scroll so Mode control can stay in view on short screens */
}

/* ========== What’s New (admin broadcast multi-item modal) ========== */
.fcms-whats-new {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.fcms-whats-new-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 40, 0.45);
}
.fcms-whats-new-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    padding: 18px 18px 14px;
    background: #fff;
    border: 2px solid var(--fc-primary);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32);
    color: var(--fc-ink);
}
.fcms-whats-new-title {
    margin: 0 0 12px;
    border: none;
    font-size: 1.25rem;
    color: var(--fc-ink);
}
.fcms-whats-new-list {
    overflow: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 14px;
    padding-right: 2px;
}
.fcms-whats-new-card {
    padding: 12px 12px 10px;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    background: #f8fafc;
}
.fcms-whats-new-card-title {
    margin: 0 0 6px;
    border: none;
    font-size: 1rem;
    color: #1a3a5a;
}
.fcms-whats-new-card-body {
    font-size: 14px;
    line-height: 1.45;
    color: #334;
    margin: 0;
}
.fcms-whats-new-card-body strong {
    color: var(--fc-ink);
}
.fcms-whats-new-link-wrap {
    margin: 10px 0 0;
}
.fcms-whats-new-link {
    display: inline-block;
    text-decoration: none;
}
.fcms-whats-new-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 0 0 auto;
}
body.fcms-whats-new-open {
    overflow: hidden;
}

/* ---------- Multipart upload progress (machine/project files, photos, etc.) ---------- */
.fcms-upload-progress {
    margin: 10px 0 4px;
    max-width: 28rem;
}
.fcms-upload-progress[hidden] {
    display: none !important;
}
.fcms-upload-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: var(--fc-panel, #f0f0f0);
    border: 1px solid var(--fc-border, #d0d0d0);
    overflow: hidden;
}
.fcms-upload-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--fc-primary, var(--fc-red, #c41e3a));
    transition: width 0.12s ease;
}
.fcms-upload-progress-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-muted, #6b6b6b);
}
.fcms-upload-progress.is-error .fcms-upload-progress-fill {
    background: #a03030;
}
.fcms-upload-progress.is-error .fcms-upload-progress-text {
    color: #a03030;
}
html[data-theme="dark"] .fcms-upload-progress-bar {
    background: var(--fc-panel-2);
    border-color: var(--fc-border);
}
