/*
 * Design tokens + overrides, layered over vendored Bootstrap 5 CSS (loaded first via importmap).
 * Light theme only. Look: soft grey canvas, floating white rounded cards, an accent highlight (lime unless the owner chose a colour), periwinkle
 * as the second colour, black pill buttons for the main action, big numbers.
 */
:root {
    /* The accent: lime by default; an owner's brand colour replaces these five (see base.html.twig). */
    --accent: #d4f20c;
    --accent-dark: #c4e000;
    --accent-light: #f1ffa8;
    --accent-soft: #f6fbd9;
    --accent-on: #111111;
    --periwinkle: #8fb0f7;
    --periwinkle-soft: #e7eefd;
    --periwinkle-ink: #2f56b0;
    --ink: #111111;
    --ink-hover: #2b2b2b;

    --canvas-bg: #ececec;
    --panel-bg: #f5f5f5;
    --surface: #ffffff;
    --border-subtle: #e6e6e6;
    --text-strong: #111111;
    --text-body: #3d3d3d;
    --text-muted: #8c8c8c;

    --status-green-bg: #e7f6ec;   --status-green-text: #198a45;
    --status-amber-bg: #fff3df;   --status-amber-text: #b86e00;
    --status-blue-bg: var(--periwinkle-soft); --status-blue-text: var(--periwinkle-ink);
    --status-lime-bg: #f6fbd9;     --status-lime-text: #4d5a00;
    --status-grey-bg: #efefef;    --status-grey-text: #6b6b6b;
    --status-red-bg: #fdecec;     --status-red-text: #d93036;

    --radius-card: 28px;
    --radius-control: 16px;
    --sidebar-width: 280px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .04);

    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--text-body);
    --bs-body-bg: var(--canvas-bg);
    --bs-primary: var(--ink);
    --bs-primary-rgb: 17, 17, 17;
    --bs-link-color: var(--periwinkle-ink);
    --bs-link-color-rgb: 47, 86, 176;
    --bs-link-hover-color: var(--ink);
    --bs-border-color: var(--border-subtle);
}

body { background: var(--canvas-bg); color: var(--text-body); font-family: var(--bs-body-font-family); }
h1, h2, h3, h4, h5, h6 { color: var(--text-strong); font-weight: 700; letter-spacing: -.02em; }
.text-strong { color: var(--text-strong); font-weight: 600; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 22px; line-height: 1; vertical-align: middle;
}

/* ---------- Buttons & controls ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.25rem; display: inline-flex; align-items: center; gap: .5rem; }
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink-hover); --bs-btn-hover-border-color: var(--ink-hover);
    --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
    --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink);
}
.btn-accent { background: var(--accent); border: 1px solid var(--accent); color: var(--accent-on); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--accent-on); }
.btn-soft { background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text-strong); }
.btn-soft:hover { background: var(--panel-bg); color: var(--text-strong); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-sm .material-symbols-outlined { font-size: 18px; }
.form-control, .form-select { border-radius: var(--radius-control); border-color: var(--border-subtle); padding: .75rem 1rem; background-color: var(--surface); }
.form-control:focus, .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 .2rem rgba(212, 242, 12, .45); }
.form-label { font-weight: 600; color: var(--text-strong); font-size: .9rem; }
.form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.input-group-text { border-radius: var(--radius-control); border-color: var(--border-subtle); background: var(--panel-bg); }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }
.app-sidebar { width: var(--sidebar-width); background: var(--panel-bg); }
@media (min-width: 992px) {
    .app-sidebar { position: fixed; top: 1rem; bottom: 1rem; left: 1rem; border-radius: var(--radius-card); display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
    .app-main { margin-left: calc(var(--sidebar-width) + 1rem); }
}
.app-sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0 1rem; height: 100%; }

.app-brand {
    display: flex; align-items: center; gap: .65rem;
    padding: 2rem .75rem 1.75rem;
    font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
    color: var(--ink); text-decoration: none;
}
.app-brand:hover { color: var(--ink); }
.app-brand-mark {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: var(--accent);
}
.app-brand-mark .material-symbols-outlined { font-size: 22px; }

.app-nav-label { padding: 1rem .75rem .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b5b5b5; }
.app-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.app-nav-link {
    display: flex; align-items: center; gap: .85rem;
    padding: .8rem 1rem; border-radius: 999px;
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.app-nav-link:hover { background: var(--surface); color: var(--text-strong); }
.app-nav-link.active { background: var(--surface); color: var(--text-strong); font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.app-nav-count { margin-left: auto; min-width: 1.5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--status-red-bg); color: var(--status-red-text); font-size: .75rem; font-weight: 700; text-align: center; }
.app-nav-badge { margin-left: auto; min-width: 26px; height: 26px; border-radius: 999px; background: var(--periwinkle); color: var(--ink); font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.app-sidebar-footer { margin-top: auto; padding: 1rem 0 1rem; }
.app-org-card { background: var(--surface); border-radius: 22px; padding: 1.25rem; }
.app-org-card-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .85rem; }
.app-org-card-name { font-weight: 700; font-size: 1.05rem; color: var(--text-strong); }
.app-org-card-meta { font-size: .85rem; color: var(--text-muted); }

.app-topbar { display: flex; align-items: center; gap: 1rem; padding: 2rem 2.5rem 1rem; }
.app-greeting { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); margin: 0; }
.app-greeting-sub { color: var(--text-muted); font-size: .9rem; }

.app-icon-button {
    width: 50px; height: 50px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 0; color: var(--text-strong); box-shadow: var(--shadow-card);
}
.app-icon-button:hover { background: var(--panel-bg); }
.app-user-chip { display: inline-flex; align-items: center; gap: .75rem; background: var(--surface); border-radius: 999px; padding: .35rem 1.1rem .35rem .35rem; box-shadow: var(--shadow-card); border: 0; text-align: left; }
.app-user-chip-label { font-size: .75rem; color: var(--text-muted); line-height: 1.1; }
.app-user-chip-name { font-weight: 600; color: var(--text-strong); line-height: 1.2; }
.app-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--periwinkle); color: var(--ink); font-weight: 700;
}

.app-content { padding: 1rem 2.5rem 3rem; }

@media (max-width: 991.98px) {
    .app-topbar { padding: 1rem 1rem .5rem; }
    .app-greeting { font-size: 1.45rem; }
    .app-content { padding: .75rem 1rem 2rem; }
    .app-user-chip-text { display: none; }
    .app-user-chip { padding: .3rem; }
}

/* ---------- Page header ---------- */
.page-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-header-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.page-header-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.page-header-title { font-size: 2rem; font-weight: 800; margin: 0; }
.page-header-subtitle { color: var(--text-muted); margin: 0; font-size: .9rem; }
.page-header-actions { margin-left: auto; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.app-card { background: var(--surface); border: 0; border-radius: var(--radius-card); padding: 1.75rem; box-shadow: var(--shadow-card); }
.app-card-header { display: flex; align-items: center; gap: .85rem; justify-content: space-between; margin-bottom: 1.25rem; }
.app-card-title { font-size: 1.3rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: .75rem; }
.app-card-title-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--panel-bg); display: inline-flex; align-items: center; justify-content: center; }

/* Stat cards: icon top-left, arrow top-right, big number, quiet caption. The highlighted one wears the accent. */
.stat-card { display: flex; flex-direction: column; min-height: 210px; height: 100%; text-decoration: none; color: inherit; }
.stat-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.stat-card-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--panel-bg); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.stat-card-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.stat-card-value { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); line-height: 1.1; margin-top: 1.5rem; }
.stat-card-label { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }
.stat-card--highlight { background: linear-gradient(160deg, var(--accent-light) 0%, var(--accent) 55%); color: var(--accent-on); }
.stat-card--highlight .stat-card-value { color: var(--accent-on); }
.stat-card--highlight .stat-card-icon { background: var(--surface); }
.stat-card--highlight .stat-card-label { color: var(--accent-on); opacity: .75; }
@media (max-width: 575.98px) { .stat-card { min-height: 160px; padding: 1.25rem; } .stat-card-value { font-size: 1.55rem; } }

/* ---------- Setup checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.checklist li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--radius-control); background: var(--panel-bg); color: var(--text-strong); font-weight: 500; }
.checklist-mark { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid #cfcfcf; color: transparent; flex-shrink: 0; }
.checklist li.is-done { color: var(--text-muted); }
.checklist li.is-done .checklist-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.checklist-mark .material-symbols-outlined { font-size: 18px; }
.progress-track { height: 10px; border-radius: 999px; background: var(--panel-bg); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--accent); }

/* ---------- Status pills ---------- */
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; white-space: nowrap; }
.status-pill--green { background: var(--status-green-bg); color: var(--status-green-text); }
.status-pill--amber { background: var(--status-amber-bg); color: var(--status-amber-text); }
.status-pill--blue { background: var(--status-blue-bg); color: var(--status-blue-text); }
.status-pill--lime { background: var(--status-lime-bg); color: var(--status-lime-text); }
.status-pill--grey { background: var(--status-grey-bg); color: var(--status-grey-text); }
.status-pill--red { background: var(--status-red-bg); color: var(--status-red-text); }
.branch-chip { display: inline-block; background: var(--periwinkle-soft); color: var(--periwinkle-ink); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; font-weight: 600; margin: .1rem .15rem .1rem 0; }

/* ---------- Tables ---------- */
.app-table { width: 100%; margin: 0; }
.app-table th { font-weight: 600; color: var(--text-muted); font-size: .82rem; padding: .75rem; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.app-table td { padding: 1rem .75rem; vertical-align: middle; color: var(--text-body); border-bottom: 1px solid var(--border-subtle); }
.app-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-muted); }
.empty-state .material-symbols-outlined { font-size: 44px; color: #c8c8c8; display: block; margin: 0 auto .5rem; }

/* ---------- Flashes ---------- */
.app-flashes .alert, .auth-card .alert { border-radius: var(--radius-control); border: 0; }
.alert-success { background: var(--status-green-bg); color: var(--status-green-text); }
.alert-danger { background: var(--status-red-bg); color: var(--status-red-text); }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: radial-gradient(900px 500px at 0% 0%, var(--accent-light) 0%, transparent 55%), radial-gradient(800px 500px at 100% 100%, var(--periwinkle-soft) 0%, transparent 55%), var(--canvas-bg); }
.auth-card { width: 100%; max-width: 440px; }

.modal-content { border-radius: var(--radius-card); border: 0; }
.modal-content > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.modal-header, .modal-footer { border: 0; padding: 1.5rem 1.75rem; }
.modal-body { padding: 0 1.75rem; }

/* ---------- Detail lists & activity ---------- */
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0; }
.detail-list dt { font-weight: 500; color: var(--text-muted); }
.detail-list dd { margin: 0; color: var(--text-strong); word-break: break-word; }
.activity-feed { list-style: none; margin: 0; padding: 0; }
.activity-feed li { position: relative; padding: 0 0 1.1rem 1.4rem; border-left: 2px solid var(--border-subtle); margin-left: .35rem; }
.activity-feed li:last-child { padding-bottom: 0; }
.activity-feed li::before { content: ''; position: absolute; left: -7px; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px #d0d0d0; }
.activity-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: .15rem; }
.activity-text { color: var(--text-strong); }

/* ---------- Tabulator, blended into the card look ---------- */
.tabulator { border: 0; background: transparent; font-size: .95rem; }
.tabulator .tabulator-header { border-bottom: 1px solid var(--border-subtle); background: transparent; }
.tabulator .tabulator-header .tabulator-col { background: transparent; border-right: 0; }
.tabulator .tabulator-header .tabulator-col .tabulator-col-title { color: var(--text-muted); font-weight: 600; }
.tabulator .tabulator-header .tabulator-col input { border-radius: 10px; border: 1px solid var(--border-subtle); padding: .35rem .6rem; font-weight: 400; }
.tabulator-row { border-bottom: 1px solid var(--border-subtle); min-height: 56px; background: transparent; }
.tabulator-row .tabulator-cell { padding: .85rem .75rem; border-right: 0; display: inline-flex; align-items: center; }
.tabulator-row.tabulator-row-even { background: transparent; }
.tabulator-row.tabulator-selectable:hover { background: var(--panel-bg); }
.tabulator .tabulator-footer { background: transparent; border-top: 0; padding-top: 1rem; }
.tabulator .tabulator-footer .tabulator-page { border-radius: 999px; }
.tabulator .tabulator-footer .tabulator-page.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- "View as" banner (super admin impersonating a user) ---------- */
.impersonation-banner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 2.5rem 1rem; padding: .85rem 1.1rem; background: var(--ink); color: #fff; border-radius: var(--radius-control); }
.impersonation-banner .material-symbols-outlined { color: #d4f20c; }
@media (max-width: 991.98px) { .impersonation-banner { margin: 0 1rem .75rem; } }

.dropdown-menu { border: 0; border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: .5rem; }
.dropdown-item { border-radius: 12px; padding: .55rem .8rem; }
.dropdown-item .material-symbols-outlined { font-size: 20px; margin-right: .35rem; }

/* ---------- Tabs (branch switcher) ---------- */
.branch-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.branch-tab { padding: .55rem 1.1rem; border-radius: 999px; background: var(--surface); color: var(--text-muted); text-decoration: none; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-card); }
.branch-tab:hover { color: var(--text-strong); }
.branch-tab.active { background: var(--ink); color: #fff; }

/* ---------- Choice pills (big tap targets for phones) ---------- */
.pill-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-choice { position: relative; cursor: pointer; margin: 0; }
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px; background: var(--panel-bg); border: 1.5px solid transparent; color: var(--text-strong); font-weight: 500; transition: background .15s ease, border-color .15s ease; }
.pill-choice input:checked + span { background: var(--accent); border-color: var(--ink); color: var(--accent-on); font-weight: 600; }
.pill-choice input:focus-visible + span { outline: 2px solid var(--periwinkle-ink); outline-offset: 2px; }
.pill-choices--small .pill-choice span { min-height: 36px; padding: .35rem .85rem; font-size: .9rem; }

.service-choices { display: flex; flex-direction: column; gap: .5rem; }
.service-choice { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius-control); background: var(--panel-bg); border: 1.5px solid transparent; cursor: pointer; margin: 0; }
.service-choice input { width: 1.3rem; height: 1.3rem; accent-color: var(--ink); flex-shrink: 0; }
.service-choice-name { font-weight: 600; color: var(--text-strong); }
.service-choice-price { margin-left: auto; font-weight: 700; color: var(--text-strong); }
.service-choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }

.form-control-registration { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .8rem 1.1rem; }
.known-vehicle { display: flex; align-items: center; gap: .6rem; background: var(--periwinkle-soft); color: var(--periwinkle-ink); border-radius: var(--radius-control); padding: .7rem 1rem; font-weight: 500; }
.customer-details summary { cursor: pointer; font-weight: 600; color: var(--text-strong); padding: .5rem 0; }

.choice-card { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: var(--radius-control); background: var(--panel-bg); cursor: pointer; border: 1.5px solid transparent; }
.choice-card input { margin-top: .3rem; accent-color: var(--ink); }
.choice-card:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Price grid ---------- */
.price-grid tr.is-inactive td { opacity: .55; }
.price-grid td { white-space: nowrap; }
.price-editor { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.price-editor-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; align-items: start; }
.price-editor-label { font-weight: 600; color: var(--text-strong); padding-top: .35rem; }
@media (max-width: 575.98px) { .price-editor-row { grid-template-columns: 1fr 1fr; } .price-editor-label { grid-column: 1 / -1; } }

/* ---------- Job board ---------- */
.job-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 1199.98px) { .job-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .job-board { grid-template-columns: 1fr; } }
.job-column { background: var(--panel-bg); border-radius: var(--radius-card); padding: .85rem; display: flex; flex-direction: column; gap: .75rem; }
.job-column-header { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text-strong); padding: .25rem .35rem; }
.job-column-count { margin-left: auto; min-width: 28px; height: 28px; border-radius: 999px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.job-column--in_progress .job-column-count { background: var(--accent); color: var(--accent-on); }
.job-column--done .job-column-count { background: var(--periwinkle); }
.job-column-empty { color: var(--text-muted); font-size: .9rem; text-align: center; padding: .75rem 0; }
.job-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card); overflow: hidden; }
.job-card-link { display: block; padding: 1rem 1rem .75rem; color: inherit; text-decoration: none; }
.job-card-registration { font-weight: 800; font-size: 1.15rem; letter-spacing: .03em; color: var(--text-strong); }
.job-card-number { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.job-card-items { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.job-card-items li { display: flex; justify-content: space-between; gap: .5rem; }
.job-card-items li span:last-child { text-align: right; }
.job-card-action { padding: 0 1rem 1rem; }

/* ---------- Job page ---------- */
.job-item { padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.job-item:first-of-type { padding-top: 0; }
.job-total { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; font-size: 1.3rem; font-weight: 800; color: var(--text-strong); }
.payment-row { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--border-subtle); }

/* ---------- Payouts ---------- */
.date-range { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.date-range-inputs { display: flex; gap: .5rem; align-items: center; }
.date-range-inputs .form-control { width: auto; padding: .5rem .8rem; }
.payout-table .payout-select { width: 2.5rem; }
.payout-table .form-check-input { width: 1.3rem; height: 1.3rem; margin: 0; }
.payout-footer { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); }
.payout-footer .form-control { flex: 1 1 200px; }
.payrun-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 0; border-top: 1px solid var(--border-subtle); color: inherit; text-decoration: none; }
.payrun-row:first-of-type { border-top: 0; }
.payrun-row:hover .text-strong { text-decoration: underline; }
.payout-signature { width: 30%; }

@media print {
    .app-sidebar, .app-topbar, .page-header-actions, .app-flashes, .impersonation-banner, .sf-toolbar { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0; }
    body, .app-card { background: #fff; box-shadow: none; }
    .payout-signature { border-bottom: 1px solid #999; }
}

/* ---------- Reports ---------- */
.chart-box { position: relative; height: 240px; }
.report-table td, .report-table th { white-space: nowrap; }
.report-table tfoot th { color: var(--text-strong); border-top: 2px solid var(--border-subtle); border-bottom: 0; padding-top: 1rem; }
.report-table tr.is-quiet td { color: #b5b5b5; }

/* ---------- Plans & subscriptions ---------- */
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); line-height: 1.1; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.subscription-notice { border-radius: var(--radius-control); border: 0; }
.alert-info { background: var(--periwinkle-soft); color: var(--periwinkle-ink); }
.subscription-actions { display: grid; gap: 1rem; }
.subscription-actions form { background: var(--panel-bg); border-radius: var(--radius-control); padding: 1rem; }

/* ---------- Branding: logo in the sidebar ---------- */
.app-brand-logo { max-height: 52px; max-width: 220px; object-fit: contain; }
.app-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.app-brand-name { overflow: hidden; text-overflow: ellipsis; }
.app-brand-tagline { font-size: .72rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); white-space: normal; }
.app-avatar--image { object-fit: cover; background: var(--surface); }
.brand-preview { border-radius: var(--radius-control); background: var(--panel-bg); padding: 1.25rem; display: flex; align-items: center; min-height: 96px; }
.brand-preview .app-brand { padding: 0; }
.colour-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.colour-swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-subtle); cursor: pointer; padding: 0; }

/* ---------- Customers ---------- */
.customer-search { display: flex; align-items: center; gap: .75rem; background: var(--surface); border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: var(--shadow-card); }
.customer-search .form-control { border: 0; box-shadow: none; padding-left: 0; background: transparent; }
.customer-search .material-symbols-outlined { color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); }
.pagination-pages { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination-link { min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-bg); color: var(--text-strong); text-decoration: none; font-weight: 600; }
.pagination-link:hover { background: var(--border-subtle); color: var(--text-strong); }
.pagination-link.is-current { background: var(--ink); color: #fff; }
.pagination-link.is-disabled { opacity: .4; }
.pagination-gap { display: inline-flex; align-items: center; height: 40px; padding: 0 .25rem; color: var(--text-muted); }
