/* ═══════════════════════════════════════════════════════════════════════════
   LocationSyst Theme — Light-first, dark mode supported
   v3 — 2026-06
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Font ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html { --font-family: 'Inter'; }

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Light mode ─────────────────────────────────────────────────────────── */
:root {
    --rf-primary:       #00C9A7;
    --rf-primary-hover: #00B394;
    --rf-bg:            #F8FAFC;
    --rf-border:        #E2E8F0;
    --rf-text:          #111827;
    --rf-muted:         #64748B;
    --rf-subtle:        #94A3B8;
    --rf-card:          #FFFFFF;
    --rf-secondary-bg:  #F8FAFC;
    /* Semantic tint surfaces for planning cards */
    --rf-tint-blue:     #EFF6FF;
    --rf-tint-green:    #F0FDF4;
    --rf-tint-red:      #FEF2F2;
    --rf-tint-cyan:     #ECFEFF;
    --rf-tint-purple:   #F5F3FF;
    --rf-tint-amber:    #FFFBEB;
}

/* ─── Dark mode ──────────────────────────────────────────────────────────── */
html.dark {
    --rf-bg:            #0F172A;
    --rf-border:        #334155;
    --rf-text:          #F8FAFC;
    --rf-muted:         #CBD5E1;
    --rf-subtle:        #94A3B8;
    --rf-card:          #1E293B;
    --rf-secondary-bg:  #111827;
    /* Semantic tints — darker in dark mode */
    --rf-tint-blue:     rgba(37,  99,  235, 0.15);
    --rf-tint-green:    rgba(22,  163, 74,  0.15);
    --rf-tint-red:      rgba(220, 38,  38,  0.15);
    --rf-tint-cyan:     rgba(6,   182, 212, 0.15);
    --rf-tint-purple:   rgba(124, 58,  237, 0.15);
    --rf-tint-amber:    rgba(217, 119, 6,   0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP BACKGROUND
   ─ Scoped to light only so Filament's own dark:bg-* variants can apply.
   ═══════════════════════════════════════════════════════════════════════════ */

html:not(.dark) body,
html:not(.dark) .fi-body,
html:not(.dark) main.fi-main {
    background-color: var(--rf-bg);
}

html.dark body,
html.dark .fi-body,
html.dark main.fi-main {
    background-color: #0F172A !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

/* Smooth transitions on all sidebar buttons */
.fi-sidebar-item-button {
    transition: color 180ms ease, background-color 180ms ease !important;
}

/* Light: active item left-border accent */
.fi-sidebar-item-button.fi-active {
    position: relative !important;
}
.fi-sidebar-item-button.fi-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background-color: var(--rf-primary);
    border-radius: 0 2px 2px 0;
}

/* =========================================================
   SIDEBAR ICONS — LocationSyst accent
   ========================================================= */

.fi-sidebar-item-button .fi-sidebar-item-icon {
    color: #00b596 !important;
    transition: color 180ms ease, transform 180ms ease;
}

.fi-sidebar-item-button:hover .fi-sidebar-item-icon {
    color: #00c9a7 !important;
    transform: translateY(-1px);
}

.fi-sidebar-item-button.fi-active .fi-sidebar-item-icon,
.fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon {
    color: #00c9a7 !important;
}

.dark .fi-sidebar-item-button .fi-sidebar-item-icon {
    color: #00b596 !important;
}

.dark .fi-sidebar-item-button:hover .fi-sidebar-item-icon,
.dark .fi-sidebar-item-button.fi-active .fi-sidebar-item-icon,
.dark .fi-sidebar-item-button[aria-current="page"] .fi-sidebar-item-icon {
    color: #00c9a7 !important;
}

/* Dark sidebar surfaces */
html.dark .fi-sidebar,
html.dark .fi-sidebar-nav,
html.dark .fi-sidebar > div:first-child {
    background-color: #111827 !important;
}
html.dark .fi-sidebar {
    border-right-color: #334155 !important;
}
html.dark .fi-sidebar-header {
    background-color: #111827 !important;
    border-bottom-color: #334155 !important;
}
html.dark .fi-sidebar-group-label {
    color: #94A3B8 !important;
}
html.dark .fi-sidebar-item-button {
    color: #CBD5E1 !important;
}
html.dark .fi-sidebar-item-button:not(.fi-active):hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #F8FAFC !important;
}
html.dark .fi-sidebar-item-button.fi-active {
    background-color: rgba(0, 201, 167, 0.14) !important;
    color: #5EEAD4 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════════════════════ */

/* Light topbar */
header.fi-topbar {
    border-bottom: 1px solid var(--rf-border) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Dark topbar */
html.dark header.fi-topbar,
html.dark .fi-topbar {
    background-color: #111827 !important;
    border-bottom-color: #334155 !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.fi-header-heading {
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}
html.dark .fi-header-heading {
    color: #F8FAFC !important;
}
html.dark .fi-header-subheading {
    color: #94A3B8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS & SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Light section polish */
html:not(.dark) .fi-section {
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05) !important;
}
html:not(.dark) .fi-wi-stats-overview-stat {
    border-color: var(--rf-border) !important;
}

/* Dark sections */
html.dark .fi-section {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: none !important;
}
html.dark .fi-section-header {
    background-color: #172033 !important;
    border-bottom-color: #334155 !important;
}
html.dark .fi-section-content,
html.dark .fi-section-content-ctn {
    background-color: #1E293B !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE — HORIZONTAL SCROLL FIX (unchanged)
   ═══════════════════════════════════════════════════════════════════════════ */

.fi-section              { overflow: visible !important; }
.fi-ta-content           { overflow: visible !important; }
.fi-ta-content > div:first-child,
.fi-ta-ctn               { overflow-x: auto !important; min-width: 0; }
.fi-ta-table             { min-width: max-content; }
.fi-wi                   { overflow: visible !important; }
.fi-resource-relation-manager-content,
.fi-has-content-below-header { overflow: visible !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Light header */
.fi-ta-header-cell {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--rf-muted) !important;
    white-space: nowrap !important;
}
html:not(.dark) .fi-ta-row:hover .fi-ta-cell {
    background-color: rgba(0, 201, 167, 0.04) !important;
}

/* Dark table */
html.dark .fi-ta-header-cell {
    background-color: #172033 !important;
    color: #94A3B8 !important;
    border-color: #334155 !important;
}
html.dark .fi-ta-cell {
    color: #F8FAFC !important;
    border-color: #334155 !important;
}
html.dark .fi-ta-row:hover .fi-ta-cell {
    background-color: rgba(0, 201, 167, 0.06) !important;
}
html.dark .fi-ta-empty-state-heading,
html.dark .fi-ta-empty-state-description {
    color: #94A3B8 !important;
}
html.dark .fi-pagination {
    border-top-color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-input,
html.dark .fi-input-wrp input,
html.dark .fi-input-wrp textarea,
html.dark .fi-select-input {
    background-color: #111827 !important;
    border-color: #475569 !important;
    color: #F8FAFC !important;
}
html.dark .fi-input-wrp {
    background-color: #111827 !important;
    border-color: #475569 !important;
}
html.dark .fi-input::placeholder,
html.dark .fi-input-wrp input::placeholder,
html.dark .fi-input-wrp textarea::placeholder {
    color: #94A3B8 !important;
}
html.dark .fi-fo-field-wrp label,
html.dark .fi-fo-field-wrp .fi-fo-field-wrp-label {
    color: #CBD5E1 !important;
}
html.dark .fi-fo-field-wrp-hint,
html.dark .fi-fo-helper-text {
    color: #94A3B8 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWNS & SELECT LISTS
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-dropdown-list {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}
html.dark .fi-dropdown-list-item {
    color: #CBD5E1 !important;
}
html.dark .fi-dropdown-list-item:hover,
html.dark .fi-dropdown-list-item:focus {
    background-color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-modal-window {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}
html.dark .fi-modal-header-heading {
    color: #F8FAFC !important;
}
html.dark .fi-modal-content {
    color: #CBD5E1 !important;
}
html.dark .fi-modal-footer {
    background-color: #172033 !important;
    border-top-color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-tabs {
    border-bottom-color: #334155 !important;
}
html.dark .fi-tab:not(.fi-active) {
    color: #94A3B8 !important;
}
html.dark .fi-tab.fi-active {
    color: #00C9A7 !important;
    border-bottom-color: #00C9A7 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS OVERVIEW WIDGET
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-wi-stats-overview-stat {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}
html.dark .fi-wi-stats-overview-stat-label {
    color: #94A3B8 !important;
}
html.dark .fi-wi-stats-overview-stat-value {
    color: #F8FAFC !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGO — light pill wrapper in dark mode (no logo distortion)
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .fi-logo img,
html.dark .fi-sidebar-header img {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 3px 8px;
    border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATION BELL
   ═══════════════════════════════════════════════════════════════════════════ */

.rf-notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    color: var(--rf-muted);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}
.rf-notif-bell:hover {
    background-color: rgba(0, 201, 167, 0.08);
    color: var(--rf-primary);
}
.rf-notif-bell svg {
    width: 1.25rem;
    height: 1.25rem;
    color: inherit;
}
.rf-notif-badge {
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    background-color: #EF4444;
    color: #FFFFFF;
    font-size: 0.5625rem;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.0625rem 0.3125rem;
    min-width: 0.9375rem;
    text-align: center;
    line-height: 1.5;
    border: 1.5px solid #FFFFFF;
}
html.dark .rf-notif-badge {
    border-color: #111827;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Stats card widget
   ═══════════════════════════════════════════════════════════════════════════ */

html.dark .rf-stat-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.30) !important;
}
html.dark .rf-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
html.dark .rf-stat-label {
    color: #CBD5E1 !important;
}
/* Icon background: replace light tint with neutral overlay in dark mode.
   The inline style="color:..." on the SVG is left untouched (stays semantic). */
html.dark .rf-stat-icon {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Planning widget (rf-planning-* classes)
   These are applied via the blade template (today-planning-widget.blade.php)
   ═══════════════════════════════════════════════════════════════════════════ */

.rf-planning-widget {
    background: var(--rf-card);
    border: 1px solid var(--rf-border);
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
html.dark .rf-planning-widget {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}

.rf-planning-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--rf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rf-planning-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rf-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rf-planning-date {
    font-size: 0.8125rem;
    color: var(--rf-muted);
}

.rf-planning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--rf-border);
}
.rf-planning-col {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--rf-border);
}
.rf-planning-col:last-child {
    border-right: none;
}

.rf-planning-footer {
    padding: 0.625rem 1.25rem;
    text-align: right;
    background: var(--rf-secondary-bg);
    border-top: 1px solid var(--rf-border);
}
.rf-planning-footer a {
    font-size: 0.8125rem;
    color: var(--rf-primary);
    font-weight: 600;
    text-decoration: none;
}
.rf-planning-empty {
    font-size: 0.8125rem;
    color: var(--rf-subtle);
    font-style: italic;
}

/* ─── Section labels (column headings) ──────────────────────────────────── */
.rf-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.rf-section-label--depart  { color: #2563EB; }
.rf-section-label--return  { color: #16A34A; }
.rf-section-label--maint   { color: #DC2626; }
.rf-section-label--lavage  { color: #06B6D4; }
.rf-section-label--police  { color: #7C3AED; }

html.dark .rf-section-label--depart  { color: #60A5FA; }
html.dark .rf-section-label--return  { color: #4ADE80; }
html.dark .rf-section-label--maint   { color: #F87171; }
html.dark .rf-section-label--lavage  { color: #22D3EE; }
html.dark .rf-section-label--police  { color: #A78BFA; }

.rf-subsection-label {
    margin-top: 0.875rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ─── Event cards ────────────────────────────────────────────────────────── */
.rf-event-card {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
}
.rf-event-card--sm {
    margin-bottom: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
}
.rf-event-card--depart   { background: var(--rf-tint-blue);   border-left: 3px solid #2563EB; }
.rf-event-card--return   { background: var(--rf-tint-green);  border-left: 3px solid #16A34A; }
.rf-event-card--maint    { background: var(--rf-tint-red);    border-left: 3px solid #DC2626; }
.rf-event-card--lavage   { background: var(--rf-tint-cyan);   border-left: 3px solid #06B6D4; }
.rf-event-card--police   { background: var(--rf-tint-purple); border-left: 3px solid #7C3AED; }

/* ─── Event card text ────────────────────────────────────────────────────── */
.rf-event-name {
    font-size: 0.8125rem;
    font-weight: 600;
}
.rf-event-name--depart  { color: #1D4ED8; }
.rf-event-name--return  { color: #15803D; }
.rf-event-name--maint   { color: #B91C1C; }
.rf-event-name--lavage  { color: #0E7490; }
.rf-event-name--police  { color: #6D28D9; }

html.dark .rf-event-name--depart  { color: #93C5FD; }
html.dark .rf-event-name--return  { color: #86EFAC; }
html.dark .rf-event-name--maint   { color: #FCA5A5; }
html.dark .rf-event-name--lavage  { color: #67E8F9; }
html.dark .rf-event-name--police  { color: #C4B5FD; }

.rf-event-vehicle {
    font-size: 0.75rem;
    color: var(--rf-muted);
    margin-top: 0.125rem;
}
.rf-event-time {
    font-size: 0.75rem;
    color: var(--rf-subtle);
    margin-top: 0.125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — login, forgot-password, reset-password
   ═══════════════════════════════════════════════════════════════════════════ */

/* Light auth */
html:not(.dark) .fi-simple-layout,
html:not(.dark) .fi-simple-main {
    background-color: #F8FAFC;
}

/* Dark auth background */
html.dark .fi-simple-layout,
html.dark .fi-simple-main {
    background-color: #0F172A !important;
}

/* Dark auth card (the white panel containing the form) */
html.dark .fi-simple-layout > .fi-simple-card,
html.dark .fi-simple-main .fi-simple-card,
html.dark .fi-simple-main > .fi-card,
html.dark .fi-auth-card {
    background-color: #1E293B !important;
    border-color: #334155 !important;
}

/* Auth form inputs in dark mode */
html.dark .fi-simple-main .fi-input,
html.dark .fi-simple-main .fi-input-wrp input,
html.dark .fi-simple-main .fi-input-wrp {
    background-color: #111827 !important;
    border-color: #475569 !important;
    color: #F8FAFC !important;
}

/* Auth page heading and subtext */
html.dark .fi-simple-main .fi-header-heading,
html.dark .fi-simple-main h1,
html.dark .fi-simple-main h2 {
    color: #F8FAFC !important;
}
html.dark .fi-simple-main .fi-header-subheading,
html.dark .fi-simple-main p {
    color: #CBD5E1 !important;
}

/* Forgot password link */
html.dark .fi-simple-main a:not(.fi-btn) {
    color: #5EEAD4 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REPORTS PAGE (rp-* components)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Page subtitle ──────────────────────────────────────────────────────── */
.rp-page-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: -0.375rem 0 1.25rem;
    line-height: 1.5;
}
html.dark .rp-page-subtitle { color: #94A3B8; }

/* ─── Filter card ────────────────────────────────────────────────────────── */
.rp-filter-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
html.dark .rp-filter-card {
    background: #1E293B;
    border-color: #334155;
    box-shadow: none;
}

.rp-filter-card-heading {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.125rem;
    line-height: 1.3;
}
html.dark .rp-filter-card-heading { color: #F8FAFC; }

.rp-filter-card-subheading {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0 0 1rem;
}
html.dark .rp-filter-card-subheading { color: #94A3B8; }

/* ─── Report type tabs ───────────────────────────────────────────────────── */
.rp-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E2E8F0;
}
html.dark .rp-tabs { border-bottom-color: #334155; }

.rp-tab {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    background: #FFFFFF;
    color: #475569;
    transition: all 180ms ease;
    white-space: nowrap;
    line-height: 1;
}
.rp-tab:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
    color: #1E293B;
}
.rp-tab--active {
    background: #00C9A7;
    border-color: #00C9A7;
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(0, 201, 167, 0.18);
}
.rp-tab--active:hover {
    background: #00B394;
    border-color: #00B394;
    color: #FFFFFF;
}
html.dark .rp-tab {
    background: #1E293B;
    border-color: #334155;
    color: #CBD5E1;
}
html.dark .rp-tab:hover {
    border-color: #475569;
    background: #334155;
    color: #F8FAFC;
}
html.dark .rp-tab--active,
html.dark .rp-tab--active:hover {
    background: #00C9A7;
    border-color: #00C9A7;
    color: #FFFFFF;
}

/* ─── Filter inputs grid ─────────────────────────────────────────────────── */
.rp-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .rp-filters-grid { grid-template-columns: 1fr; }
}

.rp-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rp-filter-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}
html.dark .rp-filter-label { color: #CBD5E1; }

/* ── Date inputs ─────────────────────────────────────────────────────────── */
.rp-filter-input {
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background-color: #FFFFFF;
    color: #111827;
    font-size: 0.875rem;
    transition: border-color 150ms ease;
    width: 100%;
    box-sizing: border-box;
}
.rp-filter-input:focus {
    outline: none;
    border-color: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.12);
}
html.dark .rp-filter-input {
    background-color: #111827;
    border-color: #475569;
    color: #F8FAFC;
}
html.dark .rp-filter-input::placeholder { color: #94A3B8; }
html.dark .rp-filter-input:focus {
    border-color: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

/* ── Select dropdowns — explicit single-arrow approach ───────────────────── */
/*
 * Root cause of duplicate arrows: Filament's @tailwindcss/forms injects
 *   select { background-image: url(svg-chevron); padding-right: 2.5rem; }
 * Our previous `background: #FFFFFF` shorthand should override via higher
 * specificity, but the implicit background-image reset is unreliable when
 * the longhand rule loads later. Fix: use explicit longhands + appearance:none
 * to own the entire arrow rendering explicitly.
 */
.rp-filter-select {
    /* Remove ALL browser and injected arrows */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    height: 44px;
    /* Right padding creates room for the custom arrow */
    padding: 0 42px 0 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;

    /* Explicit longhands — no shorthand so nothing is implicitly reset */
    background-color: #FFFFFF;
    /* One clean chevron, slate color for light mode */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;

    color: #111827;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 150ms ease;
    width: 100%;
    box-sizing: border-box;
    /* Prevent long option text from colliding with arrow */
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.rp-filter-select:focus {
    outline: none;
    border-color: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.12);
}

html.dark .rp-filter-select {
    background-color: #111827;
    /* Same chevron shape, lighter stroke for dark mode */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    border-color: #475569;
    color: #F8FAFC;
}
html.dark .rp-filter-select:focus {
    border-color: #00C9A7;
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

/* ─── Actions row (count + export buttons) ───────────────────────────────── */
.rp-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid #E2E8F0;
}
html.dark .rp-actions-row { border-top-color: #334155; }

.rp-count {
    font-size: 0.8125rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
html.dark .rp-count { color: #94A3B8; }

.rp-count-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00C9A7;
    flex-shrink: 0;
}
.rp-count-limit {
    color: #F59E0B;
    font-weight: 600;
}

.rp-export-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .rp-export-btns { width: 100%; }
    .rp-btn-csv, .rp-btn-pdf { flex: 1; justify-content: center; }
}

.rp-btn-csv,
.rp-btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
    line-height: 1;
}
.rp-btn-csv {
    background: #00C9A7;
    color: #FFFFFF;
}
.rp-btn-csv:hover { background: #00B394; }
.rp-btn-pdf {
    background: #111827;
    color: #FFFFFF;
}
.rp-btn-pdf:hover { background: #1E293B; }
html.dark .rp-btn-pdf { background: #334155; }
html.dark .rp-btn-pdf:hover { background: #475569; }

/* ─── KPI summary cards ──────────────────────────────────────────────────── */
.rp-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
    .rp-summary-grid { grid-template-columns: 1fr; }
}

.rp-kpi-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    border-top-width: 3px;
}
html.dark .rp-kpi-card {
    background: #1E293B;
    border-color: #334155;
    box-shadow: none;
}

.rp-kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-kpi-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748B;
    margin-top: 0.25rem;
    line-height: 1.35;
}
html.dark .rp-kpi-label { color: #94A3B8; }

/* ─── Report note ────────────────────────────────────────────────────────── */
.rp-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #E6FAF7;
    border: 1px solid #99EBD9;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #007a66;
}
html.dark .rp-note {
    background: rgba(0, 201, 167, 0.1);
    border-color: rgba(0, 201, 167, 0.3);
    color: #5EEAD4;
}

/* ─── Table card ─────────────────────────────────────────────────────────── */
.rp-table-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
html.dark .rp-table-card {
    background: #1E293B;
    border-color: #334155;
    box-shadow: none;
}

.rp-table-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
}
html.dark .rp-table-header {
    background: #172033;
    border-bottom-color: #334155;
}

.rp-table-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}
html.dark .rp-table-title { color: #F8FAFC; }

.rp-table-period {
    font-size: 0.75rem;
    color: #9CA3AF;
}
html.dark .rp-table-period { color: #94A3B8; }

/* ─── Empty state ────────────────────────────────────────────────────────── */
.rp-empty {
    padding: 3rem;
    text-align: center;
    color: #64748B;
}
.rp-empty-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rp-empty-title { font-weight: 600; font-size: 0.9375rem; color: #374151; }
.rp-empty-hint { font-size: 0.875rem; margin-top: 0.25rem; color: #94A3B8; }
html.dark .rp-empty { color: #94A3B8; }
html.dark .rp-empty-title { color: #CBD5E1; }

/* ─── Data table ─────────────────────────────────────────────────────────── */
.rp-table-overflow { overflow-x: auto; }

.rp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.rp-table thead tr {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
html.dark .rp-table thead tr {
    background: #172033;
    border-bottom-color: #334155;
}
.rp-table th {
    padding: 0.5rem 0.75rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}
html.dark .rp-table th { color: #94A3B8; }
.rp-table th.align-right { text-align: right; }

.rp-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 100ms ease;
}
html.dark .rp-table tbody tr { border-bottom-color: #334155; }

.rp-table td {
    padding: 0.5rem 0.75rem;
    color: #111827;
    white-space: nowrap;
    text-align: left;
}
html.dark .rp-table td { color: #CBD5E1; }
.rp-table td.align-right { text-align: right; }

.rp-table tbody tr:hover td { background: #F8FAFC; }
html.dark .rp-table tbody tr:hover td { background: rgba(255,255,255,0.03); }

/* Totals row */
.rp-totals-row td {
    background: #F9FAFB !important;
    border-top: 2px solid #E5E7EB !important;
    border-bottom: none !important;
    font-weight: 600;
    color: #374151;
}
html.dark .rp-totals-row td {
    background: #172033 !important;
    border-top-color: #334155 !important;
    color: #CBD5E1;
}

/* Totals footer below table */
.rp-totals-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #F9FAFB;
}
html.dark .rp-totals-footer {
    background: #172033;
    border-top-color: #334155;
}
.rp-totals-label {
    font-size: 0.75rem;
    color: #6B7280;
}
html.dark .rp-totals-label { color: #94A3B8; }
.rp-totals-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-left: 0.375rem;
}
html.dark .rp-totals-value { color: #F8FAFC; }

/* ═══════════════════════════════════════════════════════════════════════════
   PLANNING DASHBOARD WIDGET  (pd-*)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Widget shell ───────────────────────────────────────────────────────── */
.pd-widget {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
html.dark .pd-widget {
    background: #1E293B;
    border-color: #334155;
    box-shadow: none;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.pd-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.125rem 1.375rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    gap: 1rem;
}
html.dark .pd-header { border-bottom-color: #334155; }

.pd-header-left { flex: 1; min-width: 0; }

.pd-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
html.dark .pd-title { color: #F8FAFC; }

.pd-title-icon {
    color: #00C9A7;
    flex-shrink: 0;
}

.pd-subtitle {
    font-size: 0.8125rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}
html.dark .pd-subtitle { color: #94A3B8; }

.pd-date {
    font-size: 0.8125rem;
    color: #94A3B8;
    white-space: nowrap;
    padding-top: 0.125rem;
    flex-shrink: 0;
}
html.dark .pd-date { color: #94A3B8; }

/* ─── Cards grid ─────────────────────────────────────────────────────────── */
.pd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}
@media (max-width: 900px) {
    .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .pd-grid { grid-template-columns: 1fr; }
}

/* ─── Status card ────────────────────────────────────────────────────────── */
.pd-card {
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 1.125rem;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    position: relative;
    /* 3px semantic accent on the left */
    border-left: 3px solid transparent;
}
.pd-card:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
    z-index: 1;
}
/* Remove right border from last card in each row */
.pd-card:nth-child(3n) { border-right: none; }
@media (max-width: 900px) {
    .pd-card:nth-child(3n) { border-right: 1px solid #E2E8F0; }
    .pd-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
    .pd-card:nth-child(n) { border-right: none; }
}

html.dark .pd-card {
    background: #172033;
    border-right-color: #334155;
    border-bottom-color: #334155;
}
html.dark .pd-card:hover { background: #1a2640; }

/* Semantic left-border colors */
.pd-card--depart  { border-left-color: #2563EB; }
.pd-card--return  { border-left-color: #16A34A; }
.pd-card--maint   { border-left-color: #DC2626; }
.pd-card--lavage  { border-left-color: #06B6D4; }
.pd-card--police  { border-left-color: #7C3AED; }

/* ─── Card header row ────────────────────────────────────────────────────── */
.pd-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.125rem;
}
.pd-card-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.pd-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Semantic label colors */
.pd-card--depart  .pd-card-label,
.pd-card--depart  .pd-card-icon { color: #2563EB; }
.pd-card--return  .pd-card-label,
.pd-card--return  .pd-card-icon { color: #16A34A; }
.pd-card--maint   .pd-card-label,
.pd-card--maint   .pd-card-icon { color: #DC2626; }
.pd-card--lavage  .pd-card-label,
.pd-card--lavage  .pd-card-icon { color: #06B6D4; }
.pd-card--police  .pd-card-label,
.pd-card--police  .pd-card-icon { color: #7C3AED; }

/* Lighten semantic colors in dark mode */
html.dark .pd-card--depart  .pd-card-label,
html.dark .pd-card--depart  .pd-card-icon { color: #93C5FD; }
html.dark .pd-card--return  .pd-card-label,
html.dark .pd-card--return  .pd-card-icon { color: #86EFAC; }
html.dark .pd-card--maint   .pd-card-label,
html.dark .pd-card--maint   .pd-card-icon { color: #FCA5A5; }
html.dark .pd-card--lavage  .pd-card-label,
html.dark .pd-card--lavage  .pd-card-icon { color: #67E8F9; }
html.dark .pd-card--police  .pd-card-label,
html.dark .pd-card--police  .pd-card-icon { color: #C4B5FD; }

/* ─── Count ──────────────────────────────────────────────────────────────── */
.pd-count {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}
.pd-card--depart  .pd-count { color: #2563EB; }
.pd-card--return  .pd-count { color: #16A34A; }
.pd-card--maint   .pd-count { color: #DC2626; }
.pd-card--lavage  .pd-count { color: #06B6D4; }
.pd-card--police  .pd-count { color: #7C3AED; }
html.dark .pd-card--depart  .pd-count { color: #93C5FD; }
html.dark .pd-card--return  .pd-count { color: #86EFAC; }
html.dark .pd-card--maint   .pd-count { color: #FCA5A5; }
html.dark .pd-card--lavage  .pd-count { color: #67E8F9; }
html.dark .pd-card--police  .pd-count { color: #C4B5FD; }

/* ─── Item list ──────────────────────────────────────────────────────────── */
.pd-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.pd-item {
    font-size: 0.75rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
html.dark .pd-item { color: #CBD5E1; }

.pd-item-more {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    margin-top: 0.125rem;
}
html.dark .pd-item-more { color: #64748B; }

/* ─── Empty state ────────────────────────────────────────────────────────── */
.pd-empty {
    font-size: 0.8125rem;
    color: #94A3B8;
    font-style: italic;
    margin-top: 0.25rem;
}
html.dark .pd-empty { color: #475569; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.pd-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.875rem 1.375rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}
html.dark .pd-footer {
    background: #111827;
    border-top-color: #334155;
}

/* ─── CTA button ─────────────────────────────────────────────────────────── */
.pd-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #00C9A7;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
    line-height: 1;
}
.pd-cta:hover {
    background: #00B394;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 201, 167, 0.25);
    color: #FFFFFF;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV PIN BUTTONS — managed via AppPanelProvider::navPinStyles()
   Those inline styles handle both light and dark. No duplication here.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   RESERVATIONS LIST  (rf-res-* / rf-wa-* / rf-pay-*)
   All selectors are class-scoped — cannot bleed into other pages.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Reservation number ─────────────────────────────────────────────────── */
.rf-res-number {
    font-weight: 700;
    font-size: 0.875rem;
    color: #0F172A;
    letter-spacing: -0.01em;
}
html.dark .rf-res-number { color: #F1F5F9; }

.rf-res-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
}

/* ─── Client / Vehicle td constraints ───────────────────────────────────── */
.rf-res-client-td,
.rf-res-vehicle-td {
    min-width: 220px;
    max-width: 280px;
}
.rf-res-client-td .fi-ta-text,
.rf-res-vehicle-td .fi-ta-text {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

/* ─── Client cell ────────────────────────────────────────────────────────── */
.rf-res-client-cell,
.rf-res-vehicle-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.rf-res-client-name,
.rf-res-vehicle-title {
    display: block;
    font-weight: 500;
    color: #1E293B;
    font-size: 0.875rem;
    line-height: 1.35;
    max-width: 260px;
    white-space: normal;
    overflow-wrap: anywhere;
}
html.dark .rf-res-client-name,
html.dark .rf-res-vehicle-title { color: #E2E8F0; }

/* ─── Vehicle cell ───────────────────────────────────────────────────────── */
.rf-res-vehicle-plate {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    max-width: 260px;
    white-space: normal;
    overflow-wrap: anywhere;
}
html.dark .rf-res-vehicle-plate { color: #94A3B8; }

/* ─── WhatsApp compact badge ─────────────────────────────────────────────── */
.rf-wa-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 2px 7px 2px 5px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background 140ms ease, border-color 140ms ease;
}
.rf-wa-badge:hover {
    background: #dcfce7;
    border-color: #86efac;
    text-decoration: none;
}
html.dark .rf-wa-badge {
    background: rgba(21, 128, 61, 0.18);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.30);
}
html.dark .rf-wa-badge:hover {
    background: rgba(21, 128, 61, 0.28);
}
.rf-wa-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ─── Payment cell ───────────────────────────────────────────────────────── */
.rf-pay-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.rf-pay-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}
.rf-pay-remain {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #dc2626;
    white-space: nowrap;
    line-height: 1.3;
    opacity: 0.85;
}
html.dark .rf-pay-remain { color: #f87171; }

/* ─── Table row — vertical alignment ─────────────────────────────────────── */
.fi-ta-table tbody tr td {
    vertical-align: middle;
}

/* ─── Icon-only action buttons — tighter cluster ─────────────────────────── */
.fi-ta-actions .fi-icon-btn {
    width: 1.875rem !important;
    height: 1.875rem !important;
    border-radius: 0.5rem !important;
}
.fi-ta-actions .fi-icon-btn:hover {
    background-color: rgba(0, 201, 167, 0.08) !important;
}
html.dark .fi-ta-actions .fi-icon-btn:hover {
    background-color: rgba(0, 201, 167, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DATE RANGE PICKER — Reservation form  (rf-rental-period-picker / rf-drp-rental)
   Input wrapper is scoped via rf-rental-period-picker (extraAttributes on field).
   Popup is scoped via rf-drp-rental (added to .daterangepicker via x-init Alpine hook).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Input field wrapper ─────────────────────────────────────────────────── */
.rf-rental-period-picker .fi-input-wrp {
    border-radius: 10px;
    min-height: 2.625rem;
}
.rf-rental-period-picker .fi-input {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E293B;
    letter-spacing: 0.01em;
}
html.dark .rf-rental-period-picker .fi-input {
    color: #F1F5F9;
}
.rf-rental-period-picker .fi-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* ── Popup container ─────────────────────────────────────────────────────── */
.rf-drp-rental {
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden !important;
    z-index: 9990 !important;
    background: #fff !important;
    padding: 0 !important;
    margin-top: 4px !important;
    font-family: inherit !important;
}
html.dark .rf-drp-rental {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.40) !important;
}
/* Remove default arrow carets — we use a clean card design */
.rf-drp-rental:before,
.rf-drp-rental:after {
    display: none !important;
}

/* ── Calendar panels ─────────────────────────────────────────────────────── */
.rf-drp-rental .drp-calendar.left {
    padding: 14px 8px 10px 14px !important;
}
.rf-drp-rental .drp-calendar.right {
    padding: 14px 14px 10px 8px !important;
}
.rf-drp-rental .calendar-table {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}
html.dark .rf-drp-rental .calendar-table {
    background: transparent !important;
}

/* ── Table cells — size and base ─────────────────────────────────────────── */
.rf-drp-rental .calendar-table th,
.rf-drp-rental .calendar-table td {
    min-width: 33px;
    width: 33px;
    height: 33px;
    line-height: 33px;
    font-size: 13px;
    border-radius: 7px;
}

/* Month title */
.rf-drp-rental .calendar-table .month {
    font-weight: 600;
    font-size: 13px;
    color: #1E293B;
    letter-spacing: 0.01em;
}
html.dark .rf-drp-rental .calendar-table .month {
    color: #F1F5F9;
}

/* Day-of-week header row */
.rf-drp-rental .calendar-table thead tr:last-child th {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94A3B8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
html.dark .rf-drp-rental .calendar-table thead tr:last-child th {
    color: #475569 !important;
}

/* ── Navigation arrows ───────────────────────────────────────────────────── */
.rf-drp-rental .calendar-table .prev.available,
.rf-drp-rental .calendar-table .next.available {
    border-radius: 7px !important;
    transition: background 0.15s, color 0.15s;
}
.rf-drp-rental .calendar-table .prev.available:hover,
.rf-drp-rental .calendar-table .next.available:hover {
    background: rgba(0, 201, 167, 0.10) !important;
}
.rf-drp-rental .calendar-table .prev span,
.rf-drp-rental .calendar-table .next span {
    border-color: #64748B !important;
}
html.dark .rf-drp-rental .calendar-table .prev span,
html.dark .rf-drp-rental .calendar-table .next span {
    border-color: #94A3B8 !important;
}

/* ── Date cells ──────────────────────────────────────────────────────────── */

/* Available hover (don't override active cells) */
.rf-drp-rental td.available:not(.active):hover,
.rf-drp-rental th.available:hover {
    background-color: rgba(0, 201, 167, 0.10) !important;
    color: #0F766E !important;
}
html.dark .rf-drp-rental td.available:not(.active):hover {
    color: #2dd4bf !important;
}

/* Today indicator */
.rf-drp-rental td.today:not(.active) {
    color: #00c9a7 !important;
    font-weight: 700 !important;
    background-color: transparent !important;
}

/* Out-of-month dates */
.rf-drp-rental td.off:not(.active),
.rf-drp-rental td.off.in-range,
.rf-drp-rental td.off.start-date.active,
.rf-drp-rental td.off.end-date.active {
    color: #CBD5E1 !important;
    background: transparent !important;
}
html.dark .rf-drp-rental td.off:not(.active) {
    color: #475569 !important;
}

/* In-range dates */
.rf-drp-rental td.in-range {
    background-color: rgba(0, 201, 167, 0.10) !important;
    color: #0F172A !important;
    border-radius: 0 !important;
}
html.dark .rf-drp-rental td.in-range {
    background-color: rgba(0, 201, 167, 0.15) !important;
    color: #E2E8F0 !important;
}
.rf-drp-rental td.in-range:hover {
    background-color: rgba(0, 201, 167, 0.18) !important;
    color: #0F172A !important;
}
html.dark .rf-drp-rental td.in-range:hover {
    color: #E2E8F0 !important;
}

/* Start date */
.rf-drp-rental td.active.start-date {
    background-color: #00c9a7 !important;
    color: #fff !important;
    border-radius: 7px 0 0 7px !important;
}
/* End date */
.rf-drp-rental td.active.end-date {
    background-color: #00c9a7 !important;
    color: #fff !important;
    border-radius: 0 7px 7px 0 !important;
}
/* Same-day selection */
.rf-drp-rental td.active.start-date.end-date {
    border-radius: 7px !important;
}
/* Active hover — keep solid teal */
.rf-drp-rental td.active,
.rf-drp-rental td.active:hover {
    background-color: #00c9a7 !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* Disabled dates */
.rf-drp-rental td.disabled,
.rf-drp-rental option.disabled {
    color: #CBD5E1 !important;
}

/* ── Time picker ─────────────────────────────────────────────────────────── */
.rf-drp-rental .calendar-time {
    text-align: center;
    padding: 8px 0 6px !important;
    margin-top: 0 !important;
    border-top: 1px solid #F1F5F9;
    line-height: 32px;
    font-size: 13px;
    color: #64748B;
}
html.dark .rf-drp-rental .calendar-time {
    border-top-color: #334155;
    color: #64748B;
}
.rf-drp-rental select.hourselect,
.rf-drp-rental select.minuteselect {
    width: 54px !important;
    height: 30px !important;
    border-radius: 7px !important;
    border: 1px solid #E2E8F0 !important;
    background: #F8FAFC !important;
    text-align: center !important;
    text-align-last: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    padding: 0 4px !important;
    outline: none !important;
    cursor: pointer;
    margin: 0 2px !important;
}
html.dark .rf-drp-rental select.hourselect,
html.dark .rf-drp-rental select.minuteselect {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}
.rf-drp-rental select.hourselect:focus,
.rf-drp-rental select.minuteselect:focus {
    border-color: #00c9a7 !important;
    box-shadow: 0 0 0 2px rgba(0, 201, 167, 0.15) !important;
}
html.dark .rf-drp-rental select.hourselect > option,
html.dark .rf-drp-rental select.minuteselect > option {
    background: #1e293b !important;
    color: #F1F5F9 !important;
}

/* ── Footer action bar ───────────────────────────────────────────────────── */
.rf-drp-rental .drp-buttons {
    clear: both;
    border-top: 1px solid #F1F5F9 !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    line-height: 1 !important;
    vertical-align: middle;
}
html.dark .rf-drp-rental .drp-buttons {
    border-top-color: #334155 !important;
}
.rf-drp-rental .drp-selected {
    flex: 1 !important;
    font-size: 11px !important;
    color: #94A3B8 !important;
    padding-right: 0 !important;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block !important;
}
html.dark .rf-drp-rental .drp-selected {
    color: #475569 !important;
}
/* Reset btn class from Bootstrap */
.rf-drp-rental .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.rf-drp-rental .cancelBtn {
    background: transparent !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    transition: background 0.15s, border-color 0.15s;
}
.rf-drp-rental .cancelBtn:hover {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #374151 !important;
}
html.dark .rf-drp-rental .cancelBtn {
    color: #94A3B8 !important;
    border-color: #334155 !important;
}
html.dark .rf-drp-rental .cancelBtn:hover {
    background: #1E293B !important;
    color: #E2E8F0 !important;
}
.rf-drp-rental .applyBtn {
    background: #00c9a7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    transition: background 0.15s;
}
.rf-drp-rental .applyBtn:hover:not(:disabled) {
    background: #00b596 !important;
}
.rf-drp-rental .applyBtn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ── Mobile — single-column, full viewport width ─────────────────────────── */
@media (max-width: 640px) {
    .rf-drp-rental {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        left: 12px !important;
        right: auto !important;
    }
    .rf-drp-rental .drp-calendar.left {
        padding: 12px !important;
    }
    .rf-drp-rental .drp-calendar.right {
        padding: 12px !important;
    }
    .rf-drp-rental .calendar-table th,
    .rf-drp-rental .calendar-table td {
        min-width: 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    .rf-drp-rental .applyBtn,
    .rf-drp-rental .cancelBtn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DOCUMENTATION PAGE — Hero section  (rf-doc-*)
   Uses hardcoded dark navy gradient so it is immune to Tailwind primary-color
   availability in v4 builds (where primary-500 etc. produce no CSS).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero shell ──────────────────────────────────────────────────────────── */
.rf-doc-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 30px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

/* ─── Content row (text + decorative icon) ────────────────────────────────── */
.rf-doc-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ─── Copy column ─────────────────────────────────────────────────────────── */
.rf-doc-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* ─── Badge ───────────────────────────────────────────────────────────────── */
.rf-doc-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 201, 167, 0.30);
    background: rgba(0, 201, 167, 0.14);
    color: #5EEAD4 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ─── Title ───────────────────────────────────────────────────────────────── */
.rf-doc-hero-title {
    margin: 0;
    color: #FFFFFF !important;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -0.025em;
}

/* ─── Subtitle ────────────────────────────────────────────────────────────── */
.rf-doc-hero-subtitle {
    margin-top: 10px;
    max-width: 640px;
    color: #CBD5E1 !important;
    font-size: 15px;
    line-height: 1.65;
}

/* ─── Decorative SVG visual ───────────────────────────────────────────────── */
.rf-doc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    min-width: 190px;
    opacity: 0.13;
    color: #FFFFFF;
    pointer-events: none;
    flex-shrink: 0;
}

.rf-doc-hero-visual svg {
    display: block;
    width: 170px !important;
    height: 170px !important;
    max-width: 170px !important;
    max-height: 170px !important;
    stroke: currentColor;
    fill: none;
}

/* ─── Search row ──────────────────────────────────────────────────────────── */
.rf-doc-search-wrap {
    margin-top: 18px;
    position: relative;
}

.rf-doc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.rf-doc-search-icon svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    stroke: currentColor;
}

.rf-doc-search-input {
    display: block;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    padding: 10px 14px 10px 40px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: background 180ms ease, border-color 180ms ease;
}

.rf-doc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.rf-doc-search-input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(0, 201, 167, 0.50);
}

.rf-doc-search-count {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.rf-doc-search-count strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.80);
}

/* ─── Responsive — tablet ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .rf-doc-hero {
        padding: 24px;
    }
    .rf-doc-hero-visual {
        width: 130px;
        min-width: 130px;
    }
    .rf-doc-hero-visual svg {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

/* ─── Responsive — mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .rf-doc-hero {
        padding: 20px;
    }
    .rf-doc-hero-visual {
        display: none;
    }
    .rf-doc-hero-title {
        font-size: 24px;
    }
    .rf-doc-search-input {
        max-width: 100%;
    }
}

/* Force reservations client column to avoid letter-by-letter breaking */
.rf-res-client-td {
    min-width: 260px !important;
    width: 260px !important;
    max-width: 320px !important;
}

.rf-res-client-td .fi-ta-text {
    width: 100% !important;
    min-width: 220px !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.rf-res-client-cell {
    min-width: 220px !important;
    width: 240px !important;
    max-width: 300px !important;
}

.rf-res-client-name {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.35 !important;
}
