:root {
    --app-font-family: "Google Sans", "Noto Sans Thai", Arial, sans-serif;
    --color-primary: #0b57d0;
    --color-primary-hover: #0842a0;
    --color-primary-soft: #e8f0fe;
    --color-background: #f6f8fb;
    --color-surface: #ffffff;
    --color-surface-muted: #eef2f7;
    --color-text: #202124;
    --color-text-muted: #5f6368;
    --color-border: #dfe4ea;
    --color-success: #137333;
    --color-success-soft: #e6f4ea;
    --color-warning: #b06000;
    --color-warning-soft: #fff4e5;
    --color-danger: #b3261e;
    --color-danger-soft: #fce8e6;
    --color-info: #075985;
    --color-info-soft: #e0f2fe;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.08);
    --topbar-height: 68px;
    --sidebar-width: 272px;
}

html,
body,
button,
input,
select,
textarea,
table,
.tooltip,
.popover,
.modal,
.dropdown-menu,
.swal2-popup,
.swal2-title,
.swal2-html-container,
.swal2-confirm,
.swal2-cancel {
    font-family: var(--app-font-family) !important;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-optical-sizing: auto;
    font-weight: 400;
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
}

.btn,
.form-control,
.form-select {
    min-height: 44px;
}

.btn-primary {
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-bg: var(--color-primary-hover);
    --bs-btn-hover-border-color: var(--color-primary-hover);
    --bs-btn-focus-shadow-rgb: 11, 87, 208;
    font-weight: 600;
}

.icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.admin-entry-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #c7d7fe;
    border-radius: 0.7rem;
    background: #f8fbff;
    color: var(--color-primary);
    padding: 0.55rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(11, 87, 208, 0.08);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-entry-button i {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.admin-entry-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.admin-entry-button:hover,
.admin-entry-button:focus {
    border-color: #8fb1ff;
    background: var(--color-primary-soft);
    color: var(--color-primary-hover);
    box-shadow: 0 8px 18px rgba(11, 87, 208, 0.12);
    transform: translateY(-1px);
}

.admin-entry-button:active {
    transform: translateY(0);
}

.app-topbar {
    min-height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--color-text);
    font-weight: 700;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.brand-mark-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.5rem;
}

.user-name {
    font-weight: 600;
    line-height: 1.2;
}

.user-role,
.page-kicker,
.page-description,
.section-heading p,
.metric-label {
    color: var(--color-text-muted);
}

.app-sidebar {
    position: fixed;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
}

.sidebar-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1rem;
}

.sidebar-section-title {
    margin: 0.5rem 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.sidebar-nav {
    gap: 0.25rem;
}

.sidebar-nav .nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    color: var(--color-text);
    font-weight: 500;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus,
.sidebar-nav .nav-link.active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.sidebar-help {
    margin-top: auto;
    border-radius: var(--radius-lg);
    background: var(--color-surface-muted);
    padding: 1rem;
    color: var(--color-text-muted);
}

.help-title {
    color: var(--color-text);
    font-weight: 700;
}

.app-main {
    padding: calc(var(--topbar-height) + 1.5rem) 1rem 2rem;
}

@media (min-width: 992px) {
    .app-main {
        margin-left: var(--sidebar-width);
        padding: calc(var(--topbar-height) + 2rem) 2rem 2.5rem;
    }
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
}

.page-kicker {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.page-description {
    margin: 0.375rem 0 0;
}

.content-panel,
.metric-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.content-panel {
    padding: 1rem;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 112px;
    padding: 1rem;
}

.metric-icon,
.visual-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.35rem;
}

.metric-icon.primary,
.visual-icon {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.metric-icon.success {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.metric-icon.warning {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}

.metric-icon.info {
    background: var(--color-info-soft);
    color: var(--color-info);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.section-heading,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.section-heading p {
    margin: 0.25rem 0 0;
}

.filter-bar .form-select {
    max-width: 220px;
}

.report-filter-bar {
    align-items: end;
    flex-wrap: wrap;
}

.report-filter-bar .form-control {
    min-width: 220px;
}

.report-filter-bar .form-select {
    min-width: 240px;
    max-width: 280px;
}

.report-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.report-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    font-weight: 700;
}

.report-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.report-row-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    white-space: nowrap;
}

.report-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.6rem 0.85rem;
    color: #334155;
    font-weight: 700;
}

.report-summary-pill i {
    color: var(--color-primary);
}

.report-table td {
    vertical-align: top;
}

.report-number-cell {
    width: 64px;
    text-align: center;
}

.monthly-report-print-area {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.report-print-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
}

.report-print-heading p,
.report-print-heading h2 {
    margin: 0;
}

.report-print-heading p {
    color: var(--color-text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.report-print-heading h2 {
    margin-top: 0.15rem;
    color: var(--color-text);
    font-size: 1.35rem;
    font-weight: 800;
}

.report-print-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: #334155;
    font-weight: 700;
}

.report-print-meta span {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #f8fafc;
    padding: 0.4rem 0.7rem;
}

.report-approval-region {
    margin-bottom: 1rem;
}

.report-approval-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 72px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.report-approval-empty i {
    color: var(--color-success);
}

.report-approval-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #bbf7d0;
    border-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: #f0fdf4;
    padding: 0.85rem 1rem;
}

.report-approval-head p,
.report-approval-head h2 {
    margin: 0;
}

.report-approval-head p {
    color: #15803d;
    font-size: 0.8rem;
    font-weight: 800;
}

.report-approval-head h2 {
    margin-top: 0.15rem;
    color: #14532d;
    font-size: 1rem;
    font-weight: 800;
}

.report-approval-head > span {
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    padding: 0.4rem 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-approval-table {
    border: 1px solid #bbf7d0;
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-box i {
    position: absolute;
    top: 50%;
    left: 0.875rem;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-box .form-control {
    padding-left: 2.5rem;
}

.table-region {
    min-height: 280px;
}

.app-table {
    margin: 0;
}

.app-table thead th {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-table td {
    vertical-align: middle;
}

.empty-cell,
.state-cell {
    color: var(--color-text-muted);
    text-align: center;
    padding: 3rem 1rem !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-available,
.status-returned {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.status-in_use,
.status-approved {
    background: var(--color-info-soft);
    color: var(--color-info);
}

.status-maintenance,
.status-pending {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}

.status-inactive,
.status-rejected,
.status-cancelled {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.pagination-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.auth-page {
    min-height: 100dvh;
    background:
        linear-gradient(135deg, rgba(11, 87, 208, 0.08), rgba(19, 115, 51, 0.06)),
        var(--color-background);
}

.auth-shell {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
}

.auth-panel {
    width: min(100%, 520px);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-back-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-back-link:focus-visible {
    outline: 3px solid rgba(26, 115, 232, 0.35);
    outline-offset: 3px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.brand-subtitle,
.auth-copy {
    color: var(--color-text-muted);
}

.auth-copy {
    margin-bottom: 1.5rem;
}

.app-main-public {
    max-width: 1680px;
    margin: 0 auto;
}

.booking-request-page {
    background: #f5f0ea;
}

.booking-request-page .app-topbar {
    background: rgba(253, 250, 246, 0.96);
}

.request-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.request-hero h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
}

.request-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.request-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 440px) minmax(720px, 1fr);
    gap: 1rem;
    align-items: start;
}

.request-editor,
.print-preview-panel,
.booking-calendar-panel {
    background: #fdfaf6;
    border: 1px solid #e2d3c5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.request-editor {
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 1rem;
}

.panel-title-row,
.preview-heading,
.calendar-filter-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.panel-title-row h2,
.preview-heading h2,
.calendar-title-block h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.panel-title-row p,
.calendar-title-block p {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
}

.form-block {
    margin-top: 1rem;
    border: 0;
    border-top: 1px solid #eaded3;
    padding: 1rem 0 0;
}

.form-block legend {
    float: none;
    width: auto;
    margin: 0 0 0.75rem;
    color: #5b4033;
    font-size: 0.9375rem;
    font-weight: 700;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.segmented-control label {
    position: relative;
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.segmented-control span {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7c4b4;
    border-radius: 0.75rem;
    background: #fffdfa;
    color: #493a33;
    font-weight: 600;
}

.segmented-control input:checked + span {
    border-color: #c81e1e;
    background: #fff1ef;
    color: #b42318;
}

.segmented-control input:focus-visible + span {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.form-submit-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.25rem;
}

.submit-hint {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.print-preview-panel {
    padding: 1rem;
}

.preview-heading {
    margin-bottom: 0.75rem;
}

.preview-heading span {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.company-car-document {
    width: min(100%, 1020px);
    min-height: 720px;
    margin: 0 auto;
    padding: 28px;
    background: #fffefa;
    border: 1px solid #222;
    color: #111;
    font-family: "Times New Roman", "Noto Sans Thai", serif;
    font-size: 15px;
    line-height: 1.55;
}

.document-header {
    text-align: center;
}

.document-header h2,
.document-header h1 {
    margin: 0;
    font-family: "Times New Roman", "Noto Sans Thai", serif;
    font-weight: 700;
}

.document-header h2 {
    font-size: 20px;
}

.document-header h1 {
    margin-top: 16px;
    font-size: 18px;
}

.document-area {
    display: inline-flex;
    gap: 1rem;
    margin-left: 0.75rem;
    font-size: 16px;
}

.document-date {
    margin: 1.75rem 0 0.75rem;
    text-align: right;
}

.document-line-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.375rem;
}

.document-line,
.document-line-grid > div {
    min-height: 34px;
}

.line-value,
.short-line {
    display: inline-block;
    min-width: 140px;
    border-bottom: 1px dotted #222;
    padding: 0 0.375rem;
    vertical-align: baseline;
}

.document-line .line-value {
    min-width: 62%;
}

.short-line {
    min-width: 80px;
}

.driver-choice {
    margin-left: 1rem;
    white-space: nowrap;
}

.two-signatures {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.4fr);
    gap: 1rem;
}

.document-eta {
    margin-top: 1.25rem;
    border-top: 1px solid #222;
    padding-top: 0.5rem;
}

.document-eta h3 {
    margin: 0 0 0.5rem;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
}

.document-eta label {
    display: block;
    min-height: 28px;
}

.checkbox-print {
    width: 18px;
    height: 18px;
    display: inline-block;
    border: 1.6px solid #111;
    border-radius: 50%;
    margin-right: 0.375rem;
    vertical-align: -2px;
}

.eta-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.booking-calendar-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.calendar-title-block {
    display: flex;
    gap: 0.75rem;
}

.calendar-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fee4e2;
    color: #b42318;
    flex: 0 0 auto;
}

.calendar-month-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-day-name {
    color: #6b5a50;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #2f2723;
    font-weight: 600;
}

.calendar-day:hover,
.calendar-day:focus {
    border-color: #d7c4b4;
    background: #fffdfa;
}

.calendar-day.muted {
    color: #9a8d86;
}

.calendar-day.today {
    border-color: #c81e1e;
}

.calendar-day.selected {
    background: #c81e1e;
    color: #fffefa;
}

.calendar-results {
    min-width: 0;
}

.calendar-filter-row {
    margin-bottom: 1rem;
}

.calendar-filter-row h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.calendar-filter-row .form-select {
    max-width: 260px;
}

.calendar-booking-list {
    display: grid;
    gap: 0.75rem;
}

.calendar-booking-item {
    display: grid;
    grid-template-columns: 170px 1fr 220px;
    gap: 1rem;
    align-items: center;
    border: 1px solid #eaded3;
    border-radius: 0.875rem;
    background: #fffdfa;
    padding: 0.875rem 1rem;
}

.calendar-booking-item span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.calendar-empty {
    border: 1px dashed #d7c4b4;
    border-radius: 0.875rem;
    color: var(--color-text-muted);
    padding: 2rem 1rem;
    text-align: center;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    body {
        background: #fff !important;
    }

    .no-print,
    .app-topbar,
    .booking-calendar-panel,
    .request-editor {
        display: none !important;
    }

    .app-main,
    .app-main-public,
    .request-workspace,
    .print-preview-panel {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .company-car-document {
        width: 100%;
        min-height: 0;
        border: 1px solid #111;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Office car request v2: calendar-first flow and A4 portrait document */
.booking-request-page .request-hero {
    margin-bottom: 1rem;
}

.booking-request-page .booking-calendar-panel {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    overflow: hidden;
    background: #fffdf9;
    border-color: #e4d6c9;
}

.calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #2a1d1d, #4a2724);
    color: #fffaf4;
}

.calendar-topbar .page-kicker,
.calendar-topbar h2 {
    color: inherit;
}

.calendar-topbar .form-select {
    min-width: 240px;
    background-color: rgba(255, 250, 244, 0.96);
}

.calendar-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
}

.booking-request-page .calendar-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fffaf4;
}

.booking-request-page .calendar-sidebar {
    border: 1px solid #eaded3;
    border-radius: 1rem;
    background: #fffaf4;
    padding: 1rem;
}

.booking-request-page .calendar-month-control {
    margin-top: 0;
}

.booking-request-page .calendar-day {
    min-height: 42px;
    border-radius: 0.75rem;
}

.booking-request-page .calendar-day.selected {
    background: #c81e1e;
    box-shadow: 0 10px 24px rgba(200, 30, 30, 0.22);
}

.booking-request-page .calendar-day.today:not(.selected) {
    background: #fff1ef;
    color: #b42318;
}

.selected-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: #fff1ef;
    color: #982018;
    padding: 0.5rem 0.875rem;
    font-weight: 700;
}

.booking-request-page .calendar-booking-item {
    grid-template-columns: 170px 1fr 220px;
    border-color: #e8d9cc;
    background: #fffdf9;
}

.availability-status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: start;
    border: 1px solid #d7c4b4;
    border-radius: 0.875rem;
    background: #fffdfa;
    padding: 0.75rem;
    color: #5f514a;
}

.availability-status small {
    grid-column: 2;
    display: block;
    color: #7a2e24;
}

.availability-status.available {
    border-color: #b7dfc0;
    background: #f0fbf2;
    color: #137333;
}

.availability-status.unavailable {
    border-color: #f1b8b3;
    background: #fff1ef;
    color: #b42318;
}

.request-workspace {
    grid-template-columns: minmax(360px, 430px) minmax(650px, 1fr);
}

.company-car-document {
    width: 794px;
    min-height: 1123px;
    padding: 42px 48px;
    border: 0;
    box-shadow: 0 16px 40px rgba(49, 35, 28, 0.14);
    font-size: 13px;
    line-height: 1.45;
}

.document-company-bar {
    border-left: 5px solid #c81e1e;
    background: #f2f5fa;
    padding: 0.75rem 1rem;
    color: #173b6d;
    font-family: var(--app-font-family);
    font-weight: 700;
    text-align: left;
}

.document-header h1 {
    margin-top: 1rem;
    color: #111;
    font-size: 17px;
}

.document-area {
    margin: 0.25rem 0 1rem;
}

.document-date {
    border-top: 3px solid #173b6d;
    border-bottom: 1px solid #c9d2df;
    margin: 0 0 1rem;
    padding: 0.5rem 0;
}

.document-section {
    margin-bottom: 0.875rem;
}

.document-grid {
    display: grid;
    gap: 0.625rem;
}

.document-grid.four {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.8fr;
}

.document-grid.two {
    grid-template-columns: 1fr 1fr;
}

.document-grid > div,
.document-field {
    min-height: 36px;
}

.document-grid strong,
.document-field strong {
    display: block;
    color: #173b6d;
    font-family: var(--app-font-family);
    font-size: 10px;
    font-weight: 700;
}

.document-grid span,
.document-field span {
    display: block;
    min-height: 20px;
    border-bottom: 1px solid #aeb9c7;
    padding: 0.125rem 0.25rem;
}

.document-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    border: 1px solid #c9d2df;
    background: #f8fafc;
    padding: 0.625rem;
}

.document-eta {
    border: 1px solid #c9d2df;
    background: #f8fafc;
    margin-top: 0.75rem;
    padding: 0.75rem;
}

.document-eta h2 {
    margin: 0 0 0.5rem;
    color: #173b6d;
    font-family: var(--app-font-family);
    font-size: 13px;
    font-weight: 700;
}

.checkbox-print.checked::after {
    content: "✓";
    display: block;
    margin-top: -4px;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.line-value.compact {
    min-width: 160px;
}

.eta-note {
    margin-top: 0.5rem;
    color: #b42318;
    font-family: var(--app-font-family);
    font-size: 11px;
    font-weight: 700;
}

.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.75rem;
}

.signature-box {
    min-height: 96px;
    border: 1px solid #c9d2df;
    background: #f8fafc;
    padding: 1.25rem 1rem 0.75rem;
    text-align: center;
}

.signature-line {
    border-bottom: 1px dotted #667085;
    margin: 1.4rem 0 0.5rem;
}

.signature-box strong,
.signature-box span {
    display: block;
    font-family: var(--app-font-family);
}

.signature-box strong {
    color: #173b6d;
    font-size: 11px;
}

.signature-box span {
    color: #3f4a5a;
    font-size: 10px;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    .company-car-document {
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* Office car navy-gray refresh */
.booking-request-page {
    --office-navy: #172033;
    --office-navy-2: #24314a;
    --office-blue: #2563eb;
    --office-blue-dark: #1d4ed8;
    --office-bg: #f3f6fb;
    --office-surface: #ffffff;
    --office-panel: #f8fafc;
    --office-border: #d7dee8;
    --office-muted: #64748b;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, var(--office-bg) 100%);
    color: #1f2937;
}

.booking-request-page .app-topbar {
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid var(--office-border);
}

.booking-request-page .brand-mark {
    background: linear-gradient(135deg, var(--office-navy), var(--office-navy-2));
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.18);
}

.booking-request-page .text-muted,
.booking-request-page .page-description,
.booking-request-page .panel-title-row p {
    color: var(--office-muted) !important;
}

.booking-request-page .page-kicker {
    color: #475569;
    letter-spacing: 0;
}

.booking-request-page .request-hero {
    align-items: flex-end;
    border-bottom: 1px solid var(--office-border);
    padding-bottom: 1rem;
}

.booking-request-page .request-hero h1 {
    color: #111827;
}

.booking-request-page .request-editor,
.booking-request-page .print-preview-panel,
.booking-request-page .booking-calendar-panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--office-border);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.booking-request-page .panel-title-row {
    align-items: flex-start;
    gap: 1rem;
}

.booking-request-page .request-actions {
    justify-content: flex-end;
    margin-left: auto;
}

.booking-request-page .request-actions .btn {
    min-height: 40px;
    border-radius: 0.65rem;
    font-weight: 700;
}

.booking-request-page .btn-primary {
    --bs-btn-bg: var(--office-blue-dark);
    --bs-btn-border-color: var(--office-blue-dark);
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: #1e40af;
    --bs-btn-active-bg: #1e3a8a;
    --bs-btn-active-border-color: #1e3a8a;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.18);
}

.booking-request-page .btn-outline-secondary {
    --bs-btn-color: #334155;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-bg: #eef2f7;
    --bs-btn-hover-border-color: #94a3b8;
    --bs-btn-hover-color: #172033;
}

.booking-request-page .form-control,
.booking-request-page .form-select {
    border-color: #cbd5e1;
    background-color: #fff;
}

.booking-request-page .form-control:focus,
.booking-request-page .form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.13);
}

.booking-request-page .segmented-control span {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.booking-request-page .segmented-control input:checked + span {
    border-color: var(--office-blue);
    background: #eff6ff;
    color: var(--office-blue-dark);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.booking-request-page .availability-status.neutral {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.booking-request-page .availability-status.available {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.booking-request-page .availability-status.unavailable {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.booking-request-page .calendar-topbar {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(135deg, var(--office-navy) 0%, var(--office-navy-2) 100%);
    color: #f8fafc;
    padding: 1.15rem 1.25rem;
}

.booking-request-page .calendar-topbar .form-select {
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.42);
    color: #172033;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.booking-request-page .calendar-topbar .page-kicker {
    color: #cbd5e1;
    font-weight: 800;
}

.booking-request-page .calendar-topbar h2 {
    color: #ffffff;
}

.booking-request-page .calendar-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.booking-request-page .calendar-layout {
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.25rem;
}

.booking-request-page .calendar-sidebar {
    border-color: var(--office-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.booking-request-page .calendar-month-control button {
    border: 1px solid transparent;
    border-radius: 0.65rem;
    color: #334155;
}

.booking-request-page .calendar-month-control button:hover,
.booking-request-page .calendar-month-control button:focus {
    border-color: #cbd5e1;
    background: #eef2f7;
}

.booking-request-page .calendar-day-name {
    color: #64748b;
}

.booking-request-page .calendar-day {
    border-radius: 0.75rem;
    color: #172033;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.booking-request-page .calendar-day:hover,
.booking-request-page .calendar-day:focus {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
}

.booking-request-page .calendar-day.muted {
    color: #94a3b8;
}

.booking-request-page .calendar-day.today:not(.selected) {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
}

.booking-request-page .calendar-day.selected {
    background: var(--office-blue-dark);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(29, 78, 216, 0.24);
}

.booking-request-page .selected-date-pill {
    background: #e0e7ff;
    color: #1e3a8a;
}

.booking-request-page .calendar-results {
    border-color: var(--office-border);
}

.booking-request-page .calendar-booking-item {
    border-color: var(--office-border);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.booking-request-page .calendar-booking-item strong {
    color: #172033;
}

.booking-request-page .calendar-time {
    color: var(--office-blue-dark);
}

.booking-request-page .document-company-bar {
    border-left-color: var(--office-blue-dark);
    background: #eef2ff;
    color: #172033;
}

.booking-request-page .document-date,
.booking-request-page .document-check-row,
.booking-request-page .document-eta,
.booking-request-page .signature-box {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.booking-request-page .document-title h1,
.booking-request-page .document-grid strong,
.booking-request-page .document-field strong,
.booking-request-page .document-eta h2,
.booking-request-page .signature-box strong {
    color: #172033;
}

.booking-request-page .eta-note {
    color: #c2410c;
}

@media (max-width: 767.98px) {
    .booking-request-page .panel-title-row {
        flex-direction: column;
    }

    .booking-request-page .request-actions {
        width: 100%;
        margin-left: 0;
    }

    .booking-request-page .request-actions .btn {
        width: 100%;
    }
}

/* Local flatpickr and print form refinements */
.booking-request-page .flatpickr-calendar {
    border: 1px solid #d7dee8;
    border-radius: 0.9rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    font-family: var(--app-font-family);
    overflow: hidden;
}

.booking-request-page .flatpickr-months,
.booking-request-page .flatpickr-weekdays {
    background: #f8fafc;
}

.booking-request-page .flatpickr-current-month,
.booking-request-page .flatpickr-weekday,
.booking-request-page .flatpickr-day {
    font-family: var(--app-font-family);
}

.booking-request-page .flatpickr-day {
    border-radius: 0.6rem;
    color: #172033;
}

.booking-request-page .flatpickr-day:hover,
.booking-request-page .flatpickr-day:focus {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.booking-request-page .flatpickr-day.today {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.booking-request-page .flatpickr-day.selected,
.booking-request-page .flatpickr-day.startRange,
.booking-request-page .flatpickr-day.endRange {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #f8fafc;
}

.booking-request-page .flatpickr-time input,
.booking-request-page .flatpickr-time .flatpickr-am-pm {
    color: #172033;
    font-family: var(--app-font-family);
    font-weight: 700;
}

.booking-request-page .flatpickr-input[readonly] {
    background-color: #fff;
}

.booking-request-page input[readonly]:not(.flatpickr-input) {
    background: #f8fafc;
    color: #334155;
}

.booking-request-page #employeeLookupStatus {
    min-height: 1.25rem;
}

.booking-request-page .preview-heading .request-actions {
    align-items: center;
}

.booking-request-page .company-car-document,
.booking-request-page .company-car-document *,
.company-car-document,
.company-car-document * {
    font-family: var(--app-font-family) !important;
}

.booking-request-page .company-car-document {
    background: #fffefa;
    color: #111827;
}

.booking-request-page .document-header h1 {
    letter-spacing: 0;
}

@media print {
    .company-car-document,
    .company-car-document * {
        font-family: var(--app-font-family) !important;
    }
}

/* TATC office-car request form */
.booking-request-page .draft-workflow-card {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #d7e3f4;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.booking-request-page .draft-workflow-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-request-page .draft-workflow-title > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #0d6efd;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
}

.booking-request-page .draft-workflow-title strong {
    display: block;
    color: #1f2d3d;
    font-weight: 700;
}

.booking-request-page .draft-workflow-title small,
.booking-request-page .draft-workflow-status {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
}

.booking-request-page .draft-workflow-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.booking-request-page .draft-workflow-grid .btn {
    min-height: 46px;
}

@media (max-width: 575.98px) {
    .booking-request-page .draft-workflow-grid {
        grid-template-columns: 1fr;
    }
}

.booking-request-page .form-card-block {
    border: 1px solid #d9e0ea;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 1rem;
}

.booking-request-page .form-card-block + .form-card-block {
    margin-top: 0.875rem;
}

.booking-request-page .form-card-block legend {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: #172033;
    font-size: 0.98rem;
    line-height: 1.35;
}

.booking-request-page .form-card-block legend span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.35rem;
    background: #ef233c;
    color: #fff;
    font-weight: 800;
}

.booking-request-page .request-editor {
    padding: 1rem;
}

.booking-request-page .request-workspace {
    grid-template-columns: minmax(420px, 480px) minmax(760px, 1fr);
    gap: 1rem;
}

.booking-request-page .print-preview-panel {
    overflow-x: auto;
}

.booking-request-page .print-preview-panel .tatc-office-form {
    zoom: 1;
    margin-bottom: 0;
}

.booking-request-page .form-card-block .row {
    --bs-gutter-x: 0.875rem;
    --bs-gutter-y: 0.95rem;
}

.booking-request-page .form-card-block .form-label {
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.booking-request-page .form-card-block .label-nowrap {
    white-space: nowrap;
}

.booking-request-page .form-card-block .form-text {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.booking-request-page .form-card-block .form-control,
.booking-request-page .form-card-block .form-select {
    border-radius: 0.7rem;
    padding: 0.62rem 0.78rem;
    line-height: 1.45;
}

.booking-request-page .form-card-block textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.vehicle-select-shell {
    position: relative;
}

.vehicle-select-native {
    color: transparent;
}

.vehicle-select-native option {
    color: #111827;
}

.vehicle-select-display {
    position: absolute;
    inset: 0 2.45rem 0 0;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.62rem 0 0.62rem 0.78rem;
    color: #1f2937;
    line-height: 1.45;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-select-display.is-placeholder {
    color: #64748b;
}

.vehicle-select-separator {
    margin: 0 0.45rem;
    color: #94a3b8;
    font-weight: 400;
}

.booking-request-page .form-card-block .segmented-control {
    margin-bottom: 0.95rem;
}

.booking-request-page .form-card-block .segmented-control span {
    justify-content: center;
    min-height: 46px;
    padding: 0.5rem 0.7rem;
    text-align: center;
    line-height: 1.3;
}

.booking-request-page .area-type-control {
    align-items: stretch;
}

.booking-request-page .area-type-control label,
.booking-request-page .area-type-control span {
    height: 100%;
}

.booking-request-page .area-type-control span {
    min-height: 48px;
    white-space: nowrap;
}

.booking-request-page .passenger-count-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 0.75rem;
    align-items: center;
}

.booking-request-page .travel-count-grid {
    display: grid;
    gap: 0.75rem;
}

.booking-request-page .input-with-unit {
    position: relative;
}

.booking-request-page .input-with-unit .form-control {
    padding-right: 3.1rem;
}

.booking-request-page .input-with-unit span {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 800;
    pointer-events: none;
}

.booking-request-page .passenger-count-row .form-label {
    margin-bottom: 0;
}

.booking-request-page .passenger-count-row .form-label span {
    display: block;
}

.booking-request-page .passenger-count-row .invalid-feedback {
    grid-column: 1 / -1;
}

.booking-request-page .companion-fields {
    display: grid;
    gap: 0.65rem;
}

.booking-request-page .companion-field {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.booking-request-page .companion-index {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
}

.booking-request-page .date-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.booking-request-page .js-time-picker,
.booking-request-page .time-picker-display {
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-position: right 0.78rem center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 2.5rem;
}

.booking-request-page .time-input-wrap {
    position: relative;
}

.booking-request-page .time-input-wrap .js-time-picker {
    cursor: pointer;
    background-color: #f8fafc;
}

.booking-request-page .time-input-wrap.is-open .js-time-picker {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.14);
}

.booking-request-page .time-input-wrap::after {
    content: "\F293";
    position: absolute;
    right: 0.9rem;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    color: #334155;
    font-family: "bootstrap-icons";
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.booking-request-page .time-input-wrap .time-picker-display,
.booking-request-page .time-input-wrap .js-time-picker {
    padding-right: 2.7rem;
}

.booking-request-page .time-menu {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 0.45rem);
    z-index: 30;
    display: none;
    width: max-content;
    min-width: 172px;
    max-width: calc(100vw - 2rem);
    border: 1px solid #d7e1ee;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    padding: 0.65rem;
}

.booking-request-page .time-input-wrap.align-right .time-menu {
    left: auto;
    right: 0;
}

.booking-request-page .time-input-wrap.drop-up .time-menu {
    top: auto;
    bottom: calc(100% + 0.45rem);
}

.booking-request-page .time-input-wrap.is-open .time-menu {
    display: block;
}

.booking-request-page .time-menu-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.booking-request-page .time-menu-title i {
    color: #2563eb;
}

.booking-request-page .time-spinner-grid {
    display: grid;
    grid-template-columns: 1fr 12px 1fr;
    align-items: end;
    gap: 0.35rem;
}

.booking-request-page .time-spinner {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.booking-request-page .time-spinner span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.booking-request-page .time-spinner strong {
    width: 52px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #172033;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1;
}

.booking-request-page .time-separator {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.25rem;
    font-weight: 900;
}

.booking-request-page .time-spinner-btn {
    width: 52px;
    height: 28px;
    border: 1px solid #dbe4f0;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 800;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.booking-request-page .time-spinner-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.booking-request-page .time-spinner-btn:active {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
    transform: translateY(1px);
}

.booking-request-page .eta-control-card {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.booking-request-page .eta-toggle-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 0.75rem;
    min-height: 52px;
    margin: 0;
    border: 1px solid #dbe4f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem 0.85rem;
}

.booking-request-page .eta-toggle-row .form-check-input {
    width: 2.35rem;
    height: 1.28rem;
    margin: 0.12rem 0 0;
    cursor: pointer;
}

.booking-request-page .eta-toggle-row .form-check-label {
    color: #172033;
    font-weight: 700;
    line-height: 1.35;
}

.booking-request-page .eta-toggle-row small {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.booking-request-page .tatc-office-form {
    width: 794px;
    min-height: 1123px;
    padding: 16px 20px;
    border: 0;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    color: #111827;
    font-size: 12.6px;
    line-height: 1.42;
}

.tatc-document-header {
    margin-bottom: 10px;
}

.tatc-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 35px;
}

.tatc-logo {
    width: 70px;
    height: 35px;
    display: block;
    flex: 0 0 70px;
    object-fit: contain;
    object-position: left center;
}

.tatc-brand-text {
    display: grid;
    gap: 2px;
    padding-top: 2px;
}

.tatc-brand strong,
.tatc-brand span {
    display: block;
}

.tatc-brand strong {
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.tatc-brand span {
    color: #1f2937;
    font-size: 9.6px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.tatc-red-line {
    height: 4px;
    margin-top: 6px;
    background: #ef233c;
}

.tatc-title-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    border: 1px solid #d9e0ea;
    border-top: 0;
    min-height: 128px;
}

.tatc-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
}

.tatc-title-box h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

.tatc-title-box p {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.tatc-signatures-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid #d9e0ea;
}

.tatc-signature-cell {
    display: grid;
    grid-template-rows: 40px 1fr;
    border-left: 1px solid #d9e0ea;
    text-align: center;
}

.tatc-signature-cell:first-child {
    border-left: 0;
}

.tatc-signature-cell strong {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f8;
    border-bottom: 1px solid #d9e0ea;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.tatc-signature-cell span {
    align-self: end;
    margin: 0 18px 22px;
    border-bottom: 1px solid #9aa4b2;
    min-height: 20px;
}

.tatc-form-section {
    border: 1px solid #d9e0ea;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.tatc-form-section h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    border-bottom: 1px solid #d9e0ea;
    background: #f7f8fa;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 9px;
}

.tatc-form-section h2 span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef233c;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.tatc-form-section h2 i {
    color: #334155;
    font-size: 18px;
}

.tatc-line-grid,
.tatc-line-list,
.tatc-check-row,
.tatc-date-grid {
    padding: 8px 13px;
}

.tatc-line-grid {
    display: grid;
    gap: 9px 18px;
}

.tatc-line-grid.requester {
    grid-template-columns: minmax(285px, 1.58fr) 132px minmax(230px, 1.12fr);
    column-gap: 14px;
    row-gap: 7px;
}

.tatc-line-grid.requester > div:nth-child(1) {
    grid-column: span 1;
}

.tatc-line-grid.requester > div:nth-child(4) {
    grid-column: span 2;
}

.tatc-line-grid.requester > div:nth-child(2) {
    grid-template-columns: max-content 46px;
    column-gap: 7px;
}

.tatc-line-grid.requester > div:nth-child(3) {
    grid-template-columns: max-content minmax(112px, 1fr);
    column-gap: 8px;
}

.tatc-line-grid.travel {
    grid-template-columns: 1fr 1fr;
}

.tatc-line-grid.vehicle {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 1.14fr) minmax(0, 0.88fr);
}

.tatc-line-grid .wide {
    grid-column: 1 / -1;
}

.tatc-line-grid.travel .wide {
    grid-template-columns: 136px minmax(120px, 1fr);
}

.tatc-line-grid > div,
.tatc-line-list > div {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 28px;
    min-width: 0;
}

.tatc-line-grid.vehicle > div {
    grid-template-columns: auto minmax(0, 1fr);
}

.tatc-line-grid.vehicle > div:first-child {
    grid-template-columns: auto minmax(86px, 1fr);
}

.tatc-line-grid.vehicle > div:nth-child(5) {
    grid-template-columns: auto minmax(42px, 1fr);
}

.tatc-line-grid > div.count-row {
    grid-template-columns: auto minmax(54px, 1fr) auto;
}

.tatc-line-grid > div.count-row > span {
    text-align: center;
}

.tatc-line-grid strong,
.tatc-line-list strong,
.tatc-check-row strong,
.tatc-date-grid strong {
    color: #111827;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.08;
    white-space: nowrap;
}

.tatc-line-grid strong small,
.tatc-line-list strong small,
.tatc-check-row strong small,
.tatc-date-grid strong small,
.tatc-driver-name-row strong small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.05;
}

.tatc-line-grid span,
.tatc-line-list span,
.tatc-date-grid span,
.tatc-eta-panel .line-value {
    display: inline-block;
    min-height: 19px;
    border-bottom: 1px solid #a7b1bf;
    padding: 0 5px;
    color: #111827;
    font-weight: 600;
}

.tatc-line-grid.requester > div:nth-child(3) > span,
.tatc-line-grid.vehicle > div:first-child > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.tatc-line-grid .count-row em {
    color: #111827;
    font-style: normal;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.tatc-line-list {
    display: grid;
    gap: 6px;
}

.tatc-check-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 14px;
}

.tatc-check-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #172033;
    flex: 0 0 auto;
    font-size: 10.8px;
    line-height: 1.35;
    white-space: nowrap;
}

.tatc-driver-option-row {
    padding-bottom: 8px;
}

.tatc-driver-name-row {
    display: grid;
    align-items: end;
    grid-template-columns: max-content minmax(120px, 1fr);
    gap: 8px;
    margin: 3px 0 14px;
    min-height: 23px;
    padding: 0 13px 7px;
}

.tatc-driver-name-row strong {
    color: #111827;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.04;
    white-space: nowrap;
}

.tatc-driver-name-row span {
    display: inline-block;
    min-height: 19px;
    border-bottom: 1px solid #a7b1bf;
    padding: 0 5px;
    color: #111827;
    font-weight: 600;
}

.tatc-date-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #d9e0ea;
    margin: 0 14px 10px;
    padding: 0;
}

.tatc-date-grid > div {
    min-height: 62px;
    border-left: 1px solid #d9e0ea;
    padding: 8px 12px;
}

.tatc-date-grid > div:first-child {
    border-left: 0;
}

.tatc-date-grid strong,
.tatc-date-grid > div > span {
    display: block;
}

.tatc-date-grid > div > span {
    margin-top: 12px;
    text-align: center;
}

.tatc-date-grid .time-with-unit {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    min-height: 18px;
    border-bottom: 1px solid #a7b1bf;
    color: #111827;
    font-weight: 600;
    line-height: 1;
}

.tatc-date-grid .time-with-unit span {
    display: inline;
    min-height: 0;
    border-bottom: 0;
    padding: 0;
}

.tatc-date-grid .time-with-unit em {
    color: #111827;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-1px);
    white-space: nowrap;
}

.tatc-eta-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    margin-top: 8px;
    border: 1px solid #ffd7d7;
    background: linear-gradient(90deg, #fff7f7 0%, #ffffff 70%);
    padding: 10px 14px;
    min-height: 112px;
}

.tatc-eta-panel.is-hidden {
    display: none;
}

.tatc-eta-panel h2 {
    margin: 0 0 7px;
    color: #ef233c;
    font-size: 14px;
    font-weight: 800;
}

.tatc-eta-panel p {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin: 0 0 6px;
    color: #172033;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
    white-space: nowrap;
}

.tatc-eta-panel p:last-child {
    margin-bottom: 0;
}

.tatc-eta-panel .eta-nowrap {
    white-space: nowrap;
}

.tatc-eta-panel .eta-text {
    flex: 0 0 auto;
}

.tatc-eta-panel .line-value {
    align-self: flex-end;
    flex: 1 1 120px;
    min-width: 120px;
    min-height: 18px;
}

.tatc-eta-panel .line-value.compact {
    max-width: 170px;
}

.tatc-eta-panel .line-value.wide {
    max-width: none;
}

.eta-indent {
    margin-left: 21px;
}

.eta-manager-box {
    display: grid;
    grid-template-rows: 34px minmax(66px, 1fr);
    min-height: 100px;
    border: 1px solid #d9e0ea;
    background: #fff;
    text-align: center;
}

.eta-manager-box strong {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef6;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.eta-manager-box span {
    align-self: end;
    margin: 0 18px 26px;
    border-bottom: 1px solid #9aa4b2;
}

.tatc-office-form .checkbox-print {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex: 0 0 18px;
    align-self: center;
    margin: 0;
    border: 1.6px solid #111827;
    border-radius: 50%;
    background: #fff;
    vertical-align: middle;
}

.tatc-office-form .checkbox-print.manual-check {
    margin-top: 0;
}

.tatc-office-form .checkbox-print.checked::after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    margin: 0;
    border: solid #111827;
    border-width: 0 2.2px 2.2px 0;
    transform: rotate(45deg);
}

.tatc-document-footer {
    display: flex;
    justify-content: space-between;
    border-bottom: 3px solid #ef233c;
    padding: 10px 6px 4px;
    color: #475569;
    font-size: 10px;
}

@media print {
    .tatc-office-form {
        width: 210mm !important;
        min-height: 297mm !important;
        padding: 5.3mm !important;
        border: 0.53mm solid #1f2937 !important;
        box-shadow: none !important;
    }
}

@media print {
    @page monthly-report-landscape {
        size: A4 landscape;
        margin: 8mm;
    }

    body.reports-page {
        background: #fff !important;
    }

    body.reports-page * {
        visibility: hidden !important;
    }

    body.reports-page .app-topbar,
    body.reports-page .app-sidebar,
    body.reports-page .offcanvas,
    body.reports-page .page-header,
    body.reports-page .filter-bar,
    body.reports-page .report-approval-region,
    body.reports-page .no-print {
        display: none !important;
    }

    body.reports-page .app-main,
    body.reports-page .content-panel,
    body.reports-page .monthly-report-print-area {
        position: static !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    body.reports-page .monthly-report-print-area,
    body.reports-page .monthly-report-print-area * {
        visibility: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.reports-page .monthly-report-print-area {
        page: monthly-report-landscape;
        color: #111827 !important;
        font-size: 11px !important;
    }

    body.reports-page .report-print-heading {
        border: 1px solid #111827 !important;
        border-bottom: 0 !important;
        padding: 7mm 7mm 4mm !important;
    }

    body.reports-page .report-print-heading h2 {
        font-size: 18px !important;
    }

    body.reports-page .report-print-heading p,
    body.reports-page .report-print-meta {
        color: #334155 !important;
        font-size: 11px !important;
    }

    body.reports-page .report-print-meta span {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
        padding: 3px 8px !important;
    }

    body.reports-page .table-responsive {
        overflow: visible !important;
    }

    body.reports-page .report-table {
        width: 100% !important;
        border: 1px solid #111827 !important;
        border-collapse: collapse !important;
        table-layout: fixed !important;
    }

    body.reports-page .report-table th,
    body.reports-page .report-table td {
        border: 1px solid #94a3b8 !important;
        padding: 6px 7px !important;
        color: #111827 !important;
        vertical-align: top !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    body.reports-page .report-table th {
        background: #e2e8f0 !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        text-align: center !important;
    }

    body.reports-page .report-table .report-number-cell {
        width: 12mm !important;
    }

    body.reports-page .report-table th:nth-child(2),
    body.reports-page .report-table td:nth-child(2) {
        width: 34mm !important;
    }

    body.reports-page .report-table th:nth-child(3),
    body.reports-page .report-table td:nth-child(3) {
        width: 32mm !important;
    }

    body.reports-page .report-table th:nth-child(4),
    body.reports-page .report-table td:nth-child(4) {
        width: 34mm !important;
    }

    body.reports-page .report-table th:nth-child(5),
    body.reports-page .report-table td:nth-child(5) {
        width: 58mm !important;
    }

    body.reports-page .state-cell {
        border: 1px solid #111827 !important;
        padding: 16mm !important;
    }

    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    body.booking-request-page {
        position: relative !important;
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        overflow: hidden !important;
    }

    body.booking-request-page * {
        visibility: hidden !important;
    }

    body.booking-request-page .app-topbar,
    body.booking-request-page .app-sidebar,
    body.booking-request-page .offcanvas,
    body.booking-request-page .no-print,
    body.booking-request-page .booking-calendar-panel,
    body.booking-request-page .request-editor,
    body.booking-request-page .preview-heading {
        display: none !important;
    }

    body.booking-request-page .app-main,
    body.booking-request-page .app-main-public,
    body.booking-request-page .request-workspace,
    body.booking-request-page .print-preview-panel {
        position: static !important;
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.booking-request-page #printDocument,
    body.booking-request-page #printDocument * {
        visibility: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.booking-request-page #printDocument.tatc-office-form {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        display: block !important;
        width: 206mm !important;
        min-width: 0 !important;
        max-width: 206mm !important;
        height: 286mm !important;
        min-height: 0 !important;
        max-height: 286mm !important;
        margin: 0 !important;
        padding: 4.2mm !important;
        overflow: hidden !important;
        zoom: 1 !important;
        transform: translateX(-50%) !important;
        box-sizing: border-box !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        page-break-after: avoid !important;
        break-inside: avoid !important;
        break-after: avoid !important;
    }

    body.booking-request-page .tatc-document-footer {
        margin-top: 6px !important;
    }
}
