/* ============================================================
   HARMONY — Site.css
   Last cleaned: 2026-03-26
   ============================================================ */

/* === PAGE TRANSITIONS === */

@keyframes pgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pgFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* === RESET & BASE === */

:root {
    --primary: #0d6efd;
    --primary-dk: #0a58ca;
    --dark: #1e2230;
    --dark2: #2c3147;
    --surface: #ffffff;
    --bg: #f0f2f7;
    --border: #dee2e9;
    --text: #1a1d23;
    --muted: #6b7280;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow: 0 4px 16px rgba(0, 0, 0, .08);
    --header-h: 64px;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
}

/* Fade sur la zone de contenu uniquement (le header reste fixe) */
.content-wrapper {
    animation: pgFadeIn 0.28s ease both;
}
body.page-leaving .content-wrapper {
    animation: pgFadeOut 0.22s ease both !important;
    pointer-events: none;
}

/* Login page : pas de header, on anime le shell entier */
.login-shell {
    animation: pgFadeIn 0.28s ease both;
}
body.page-leaving .login-shell {
    animation: pgFadeOut 0.22s ease both !important;
    pointer-events: none;
}

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

a:hover,
a:focus {
    color: var(--primary-dk);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* === LAYOUT === */

.app-shell {
    min-height: 100vh;
    background: var(--bg);
}

.wrapper {
    min-height: 100vh;
}

.page {
    padding: 24px;
}

.content-wrapper,
.content-shell {
    max-width: 1500px;
    margin: 0 auto;
}

.content-wrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent;
    min-height: auto !important;
}

.content-wrapper.content-wrapper-wide {
    max-width: none;
}

/* AdminLTE override — reset legacy layout elements */
.main-header,
.navbar,
.navbar-custom-menu,
.navbar-nav,
.logo,
.content-header {
    all: unset;
}

.main-header {
    display: block;
}

/* AdminLTE override — hide legacy sidebar elements */
.sidebar,
.main-sidebar,
.sidebar-menu,
.sidebar-toggle,
.logo-mini {
    display: none !important;
}

/* AdminLTE override — neutralise float helpers */
.pull-left,
.pull-right {
    float: none !important;
}

/* === HEADER === */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.header-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.header-menu-toggle:hover,
.header-menu-toggle:focus {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .22);
    outline: none;
}

.header-menu-toggle-box {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.header-menu-toggle-line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.header-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    width: min(68vw, 1040px);
    max-width: 1040px;
    z-index: 1;
}

.header-logo-icon {
    display: block;
    height: 30px;
    width: auto;
    max-width: 30px;
    flex-shrink: 0;
}

.header-logo-font {
    display: block;
    height: 20px;
    width: auto;
    max-width: 140px;
}

.header-menu {
    display: contents;
}

/* === NAVIGATION === */

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.nav-link,
.header-chip,
.dropdown-toggle {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link:focus,
.header-chip:hover,
.header-chip:focus,
.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav-link.active,
.header-chip.active {
    background: rgba(13, 110, 253, .2);
    color: #93c5fd;
}

.header-dropdown {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.header-dropdown-trigger {
    display: contents;
}

.header-submenu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .62);
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.header-submenu-toggle:hover,
.header-submenu-toggle:focus {
    color: #fff;
    outline: none;
}

.header-dropdown .dropdown-menu {
    left: auto;
    right: 0;
    min-width: 220px;
    z-index: 2000;
    margin-top: 0;
    top: calc(100% - 2px);
}

.header-nav .header-dropdown .dropdown-menu {
    left: 0;
    right: auto;
}

.header-dropdown:hover .dropdown-menu,
.header-dropdown.open .dropdown-menu {
    display: block;
}

.header-dropdown-click:hover .dropdown-menu,
.header-dropdown-click.open .dropdown-menu {
    display: block;
}

/* === DROPDOWNS === */

.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    margin-top: 10px;
}

.dropdown-menu > li > a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--bg);
    color: var(--text);
}

.dropdown-label {
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.user-body {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
}

/* === CARDS === */

.card,
.box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    overflow: hidden;
}

.card-header,
.box-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.card-body,
.box-body,
.box-footer {
    padding: 18px;
}

/* === TABLES === */

.table-wrap,
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
}

thead th {
    background: var(--bg);
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

tbody tr:hover td {
    background: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* === BUTTONS === */

.btn,
.btn-primary,
.btn-secondary,
.btn-default,
.btn-flat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary,
.btn.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    color: #fff;
}

.btn-secondary,
.btn-default,
.btn-flat,
.btn.btn-default {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover,
.btn-default:hover,
.btn-flat:hover,
.btn.btn-default:hover {
    background: var(--bg);
    color: var(--text);
}

/* === BADGES & LABELS === */

.label,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success,
.label-success {
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, .25);
}

.badge-warning,
.label-warning {
    background: rgba(217, 119, 6, .12);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, .25);
}

.badge-danger,
.label-danger {
    background: rgba(220, 38, 38, .12);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, .25);
}

.badge-info,
.label-info {
    background: rgba(8, 145, 178, .12);
    color: var(--info);
    border: 1px solid rgba(8, 145, 178, .25);
}

/* === FORMS === */

.form-control,
input,
select,
textarea {
    width: 100%;
    max-width: none;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

/* ── Flèche chevron sur tous les selects ── */
select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 14px 10px !important;
    padding-right: 2rem !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: block;
}

/* === PAGE-SPECIFIC: LOGIN === */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/loginbg.svg") center center / cover no-repeat;
    padding: 32px 16px;
}

.login-shell {
    width: 100%;
    max-width: 440px;
}

.login-language-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.login-language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.login-language-chip:hover,
.login-language-chip:focus {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.login-language-chip.active {
    background: rgba(255, 255, 255, .96);
    color: var(--dark);
    border-color: rgba(255, 255, 255, .96);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(30, 34, 48, .12);
    overflow: hidden;
}

.login-card-header {
    padding: 24px 28px 12px;
    text-align: center;
}

.login-card-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.login-card-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.login-card-logo-icon {
    display: block;
    height: 44px;
    width: auto;
    max-width: 44px;
    flex-shrink: 0;
}

.login-card-logo-font {
    display: block;
    height: 28px;
    width: auto;
    max-width: 200px;
}

.login-card-body {
    padding: 20px 28px 28px;
}

.login-card .form-group {
    margin-bottom: 16px;
}

.login-field {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    z-index: 2;
}

.login-input {
    height: 46px;
    padding-left: 44px;
    border-radius: 12px;
}

.login-actions {
    margin-top: 20px;
}

.login-submit {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.login-footer-note {
    margin: 16px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
}

.login-footer-note a {
    color: #fff;
    font-weight: 700;
}

.login-card .checkbox,
.login-card .remember-me {
    color: var(--muted);
}

/* === PAGE-SPECIFIC: SCHEDULER (Requisition/Task) === */

.scheduler-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scheduler-toolbar-inline {
    display: none;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}

.scheduler-filter-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.scheduler-filter-form label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.scheduler-filter {
    min-width: 140px;
    background: #fff;
    height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 11px;
    border-radius: 9999px;
    border-color: var(--border);
    box-shadow: none;
}

.scheduler-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
}

.scheduler-footer-note {
    margin: 12px 4px 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

#calendar {
    padding: 8px;
}

#scheduler {
    min-height: 0;
    height: auto;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    max-height: none;
}

#scheduler .k-scheduler-toolbar,
#scheduler .k-header.k-scheduler-toolbar {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border-bottom: 1px solid var(--border);
    padding: 6px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#scheduler .k-scheduler-toolbar ul,
#scheduler .k-scheduler-toolbar .k-scheduler-navigation,
#scheduler .k-scheduler-toolbar .k-scheduler-views {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

#scheduler .k-scheduler-toolbar ul,
#scheduler .k-scheduler-toolbar li,
#scheduler .k-scheduler-toolbar .k-state-default,
#scheduler .k-scheduler-toolbar .k-nav-current,
#scheduler .k-scheduler-toolbar .k-scheduler-navigation li,
#scheduler .k-scheduler-toolbar .k-scheduler-views li {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#scheduler .k-nav-current,
#scheduler .k-link.k-nav-current,
#scheduler .k-scheduler-toolbar .k-button,
#scheduler .k-scheduler-toolbar .k-link,
#scheduler .k-scheduler-views li {
    border-radius: 9999px;
}

#scheduler .k-scheduler-toolbar .k-nav-today,
#scheduler .k-scheduler-toolbar .k-scheduler-navigation .k-link,
#scheduler .k-scheduler-toolbar .k-scheduler-views li a {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

#scheduler .k-scheduler-toolbar .k-nav-today:hover,
#scheduler .k-scheduler-toolbar .k-scheduler-navigation .k-link:hover,
#scheduler .k-scheduler-toolbar .k-scheduler-views li a:hover {
    background: #f8fafc;
    border-color: #cfd7e3;
}

#scheduler .k-scheduler-toolbar .k-state-selected,
#scheduler .k-scheduler-toolbar .k-state-active,
#scheduler .k-scheduler-toolbar .k-scheduler-views li.k-state-selected a {
    background: rgba(13, 110, 253, .12);
    border-color: rgba(13, 110, 253, .25);
    color: var(--primary);
}

#scheduler .k-nav-current {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--dark);
    font-size: 12px;
    font-weight: 800;
    padding: 0 4px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
}

#scheduler .k-scheduler-toolbar #schedulerFilterHost {
    display: inline-flex;
    align-items: center;
    margin: 0 auto;
}

#scheduler .k-scheduler-toolbar .k-scheduler-views {
    margin-left: 0;
}

#scheduler .k-scheduler-layout {
    border-top: 0;
}

#scheduler .k-scheduler-table th,
#scheduler .k-scheduler-table td,
#scheduler .k-scheduler-content td,
#scheduler .k-scheduler-header th {
    border-color: #e9eef5;
}

#scheduler .k-scheduler-header th {
    background: #fbfcfe;
    padding: 10px 8px;
}

#scheduler .k-scheduler-datecolumn,
#scheduler .k-scheduler-groupcolumn {
    background: #fbfcfe;
}

#scheduler .k-scheduler-times,
#scheduler .k-scheduler-times th,
#scheduler .k-scheduler-times td {
    background: #fbfcfe;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

#scheduler .k-scheduler-content {
    background:
        linear-gradient(to right, rgba(13, 110, 253, .03), rgba(13, 110, 253, .03)) left top / 100% 100% no-repeat,
        #fff;
}

#scheduler .k-today,
#scheduler .k-scheduler-content .k-today {
    background: rgba(13, 110, 253, .05);
}

#scheduler .k-nonwork-hour,
#scheduler .k-scheduler-content .k-nonwork-hour {
    background: #f8fafc;
}

#scheduler .k-event {
    border: 0 !important;
    border-left: 4px solid rgba(0, 0, 0, .18) !important;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(20, 32, 61, .14);
    padding: 0;
    overflow: hidden;
}

#scheduler .k-event > div,
#scheduler .k-event-template {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    padding: 4px 10px 6px;
    color: inherit !important;
    background: transparent;
    min-height: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}

#scheduler .k-event .k-event-time,
#scheduler .k-event .k-i-clock,
#scheduler .k-event .k-event-actions {
    display: none !important;
}

#scheduler .k-event .k-event-template > div,
#scheduler .k-event .k-event-template > span,
#scheduler .k-event > div > div,
#scheduler .k-event > div > span {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#scheduler .k-more-events,
#scheduler .k-scheduler-content .k-more-events {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 3px 8px;
}

#scheduler .k-more-events {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

#scheduler .k-scheduler-footer,
#scheduler .k-scheduler-layout .k-scheduler-footer {
    background: #fbfcfe;
    border-top: 1px solid var(--border);
}

#calendar .k-widget.k-tooltip {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 12px;
}

#calendar .template-wrapper p {
    margin: 0;
    white-space: normal;
    line-height: 1.45;
}

/* === PAGE-SPECIFIC: DEALER === */

.dealer-details-page.dealer-details-v1 {
    padding-top: 0;
}

.dealer-details-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.dealer-details-grid {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(480px, 1fr);
    gap: 16px;
    align-items: start;
}

.dealer-details-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.dealer-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dealer-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.dealer-panel-header i {
    color: var(--primary);
    font-size: 14px;
}

.dealer-panel-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
}

.dealer-panel-header-inline {
    justify-content: space-between;
    gap: 18px;
}

.dealer-panel-header-compact {
    padding: 10px 14px;
    gap: 8px;
}

.dealer-panel-header-compact i {
    font-size: 12px;
}

.dealer-panel-header-compact h2 {
    font-size: 14px;
}

.dealer-panel-header-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.dealer-panel-body {
    padding: 14px 16px;
}

.dealer-panel-body-compact {
    padding-top: 12px;
    padding-bottom: 12px;
}

.dealer-panel-body-compact-extended {
    padding-top: 10px;
    padding-bottom: 10px;
}

.dealer-panel-services {
}

.dealer-keyfacts,
.dealer-info-list {
    margin: 0;
}

.dealer-keyfacts {
    display: grid;
    gap: 8px;
}

.dealer-keyfact,
.dealer-info-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 6px 0;
}

.dealer-keyfact + .dealer-keyfact,
.dealer-info-row + .dealer-info-row {
    border-top: 1px solid rgba(222, 226, 233, 0.72);
}

.dealer-keyfact dt,
.dealer-info-row dt {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.dealer-keyfact dd,
.dealer-info-row dd {
    margin: 0;
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.dealer-keyfact-url {
    overflow-wrap: anywhere;
}

.dealer-color-inline-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    min-width: 0;
}

.dealer-color-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dealer-color-inline-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.dealer-color-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(30, 34, 48, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.dealer-flag-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.dealer-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(222, 226, 233, 0.82);
    border-radius: 14px;
    background: #fbfcff;
}

.dealer-setting-row.is-enabled {
    border-color: rgba(22, 163, 74, 0.26);
    background: rgba(22, 163, 74, 0.08);
}

.dealer-setting-row.is-disabled {
    border-color: rgba(107, 114, 128, 0.22);
    background: rgba(107, 114, 128, 0.08);
}

.dealer-setting-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dealer-setting-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dealer-setting-hint {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dealer-setting-control {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

.dealer-setting-state {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dealer-setting-state.is-enabled {
    background: rgba(22, 163, 74, 0.15);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.28);
}

.dealer-setting-state.is-disabled {
    background: rgba(107, 114, 128, 0.16);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.24);
}

.dealer-config-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.dealer-action-save {
    width: auto;
    min-width: 120px;
}

.dealer-action-return {
    width: auto;
    min-width: 90px;
}

.dealer-details-action-inline {
    width: 100%;
    min-width: 0;
}

.dealer-hours-compact {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.dealer-hours-compact th,
.dealer-hours-compact td {
    padding: 4px 0;
    vertical-align: middle;
}

.dealer-hours-compact th {
    width: 92px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dealer-hours-separator {
    width: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.dealer-hours-picker .k-timepicker,
.dealer-hours-picker .k-picker {
    width: 100%;
}

.dealer-hours-picker .k-input-inner,
.dealer-hours-picker .k-input {
    font-size: 11px;
}

.dealer-hours-picker .k-picker,
.dealer-hours-picker .k-timepicker {
    min-height: 28px;
}

.dealer-notification-wrap {
    overflow: hidden;
}

.dealer-notification-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 12px;
}

.dealer-notification-table thead th {
    padding: 0 6px 8px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-align: center;
}

.dealer-notification-table thead th:first-child {
    width: 118px;
    text-align: left;
}

.dealer-notification-table thead th:nth-child(2) {
    width: 86px;
    text-align: left;
}

.dealer-notification-table tbody th,
.dealer-notification-table tbody td {
    padding: 6px 6px;
    border-bottom: 1px solid rgba(222, 226, 233, 0.72);
}

/* Les <th> de section (Cédule, Tâches) utilisent rowspan et ne doivent pas avoir de border-bottom
   car leur border s'affiche physiquement en bas de la dernière ligne qu'ils couvrent */
.dealer-notification-table tbody th {
    border-bottom: none;
}

.dealer-notification-table tbody tr:last-child td {
    border-bottom: none;
}

.dealer-notification-table tbody th {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    text-align: left;
    vertical-align: top;
}

.dealer-notification-table tbody td:first-of-type {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: left;
}

.dealer-notification-table tbody td {
    text-align: center;
}

.dealer-notification-table input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    cursor: default;
}

.dealer-details-action {
    min-width: 110px;
    border-radius: 16px;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dealer-details-return {
    width: 100%;
}

.dealer-edit-form {
    display: block;
}

.dealer-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dealer-form-row {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.dealer-form-label {
    margin: 0;
    padding-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.dealer-form-control {
    min-width: 0;
}

.dealer-form-control .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.dealer-form-control-input,
.dealer-form-control .form-control,
.dealer-form-control select {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: none;
}

.dealer-hours-compact-edit .k-timepicker,
.dealer-hours-compact-edit .k-picker {
    width: 100%;
}

.dealer-notification-table-edit input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.dealer-notification-table-edit .dealer-notification-all {
    text-align: left;
}

.dealer-notification-table-edit .dealer-notification-all label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

/* Schedule type inline row */
.schedule-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-type-select {
    flex: 1 1 0;
    min-width: 0;
}

.schedule-type-custom-input {
    flex: 1 1 0;
    min-width: 0;
}

/* Color chip picker */
.dealer-color-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dealer-color-chip-wrap {
    display: contents;
}

.dealer-color-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.10);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dealer-color-popover-label {
    margin-top: 8px;
    font-size: 12px;
    padding: 5px 8px;
    height: auto;
    border-radius: 6px;
}

.dealer-color-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.14);
}

.dealer-color-chip-view {
    cursor: default;
    pointer-events: none;
}

.dealer-color-chip-view:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.dealer-color-popover {
    position: fixed;
    z-index: 9999;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    min-width: 200px;
}

.dealer-color-popover-swatch {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    transition: background-color 0.1s;
}

.dealer-color-popover-native {
    width: 100%;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
}

.dealer-color-popover-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.dealer-color-btn-ok {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 8px;
    background: var(--primary, #3788d8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.1s;
}

.dealer-color-btn-ok:hover { opacity: 0.88; }

.dealer-color-btn-cancel {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.dealer-color-btn-cancel:hover { background: var(--hover, #f5f5f5); }

.dealer-color-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dealer-color-inline-list-edit {
    gap: 14px;
}

.dealer-color-inline-item-edit {
    cursor: pointer;
    user-select: none;
}

.dealer-color-dot-preview {
    position: relative;
    box-shadow: 0 0 0 1px rgba(26, 29, 35, 0.12);
}

.dealer-color-editor-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dealer-color-editor-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.dealer-color-input {
    width: 100%;
    height: 40px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.dealer-color-dot-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    cursor: pointer;
    border-radius: 9999px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0;
}

.dealer-color-dot-input::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 9999px;
}

.dealer-color-dot-input::-webkit-color-swatch {
    border: none;
    border-radius: 9999px;
}

.dealer-color-dot-input::-moz-color-swatch {
    border: none;
    border-radius: 9999px;
}

.dealer-setting-row-edit {
    gap: 16px;
}

.dealer-setting-control-edit {
    margin-left: auto;
}

.dealer-panel-configuration {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.dealer-config-oneliner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    flex-wrap: nowrap;
}

.dealer-config-label {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.dealer-config-select {
    height: 26px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 200px;
}

.dealer-inline-toggle-sm {
    width: 36px;
    height: 20px;
    flex: 0 0 36px;
}

.dealer-inline-toggle-sm .dealer-inline-toggle-slider::after {
    width: 14px;
    height: 14px;
}

.dealer-inline-toggle-sm > .dealer-inline-toggle-input:checked + .dealer-inline-toggle-slider::after {
    transform: translateX(16px);
}

.dealer-inline-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 30px;
    margin: 0;
    cursor: pointer;
    flex: 0 0 54px;
}

.dealer-inline-toggle-input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dealer-inline-toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(107, 114, 128, 0.26);
    transition: background .15s ease;
}

.dealer-inline-toggle-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    transition: transform .15s ease;
}

.dealer-inline-toggle-input:checked + .dealer-inline-toggle-slider {
    background: rgba(22, 163, 74, 0.42);
}

.dealer-inline-toggle-input:checked + .dealer-inline-toggle-slider::after {
    transform: translateX(24px);
}

/* === UI STANDARDS === */

/* -- Float utilities (Bootstrap 3 compat) -- */
.float-right { float: right !important; }
.float-left  { float: left  !important; }

/* -- Button variants -- */
.btn-danger,
.btn.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
.btn-danger:hover,
.btn.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.btn-warning,
.btn.btn-warning {
    background: var(--warning);
    color: #fff;
    border-color: var(--warning);
}
.btn-warning:hover,
.btn.btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

.btn-success,
.btn.btn-success {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}
.btn-success:hover,
.btn.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.btn-outline-secondary,
.btn.btn-outline-secondary {
    background: transparent;
    color: var(--muted);
    border-color: var(--border);
}
.btn-outline-secondary:hover,
.btn.btn-outline-secondary:hover {
    background: var(--bg);
    color: var(--text);
    border-color: #c4cad4;
}

/* -- Button sizes -- */
.btn.btn-sm,
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    gap: 4px;
}

.btn.btn-lg,
.btn-lg {
    padding: 10px 28px;
    font-size: 15px;
}

/* -- Icon-only button (table actions) -- */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
}
.btn-icon:hover {
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
}
.btn-icon.btn-icon-danger {
    color: var(--danger);
    border-color: rgba(220, 38, 38, .22);
}
.btn-icon.btn-icon-danger:hover {
    background: rgba(220, 38, 38, .08);
    color: var(--danger);
}
.btn-icon.btn-icon-primary {
    color: var(--primary);
    border-color: rgba(13, 110, 253, .22);
}
.btn-icon.btn-icon-primary:hover {
    background: rgba(13, 110, 253, .08);
    color: var(--primary);
}

/* -- Table action group -- */
.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* -- Standard form action bar -- */
.form-actions {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 4px;
}

/* -- Page header with actions -- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.page-header h1,
.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* -- Alert messages -- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-success {
    background: rgba(22, 163, 74, .10);
    border-color: rgba(22, 163, 74, .28);
    color: var(--success);
}
.alert-danger,
.alert-error {
    background: rgba(220, 38, 38, .10);
    border-color: rgba(220, 38, 38, .28);
    color: var(--danger);
}
.alert-warning {
    background: rgba(217, 119, 6, .10);
    border-color: rgba(217, 119, 6, .28);
    color: var(--warning);
}
.alert-info {
    background: rgba(8, 145, 178, .10);
    border-color: rgba(8, 145, 178, .28);
    color: var(--info);
}

/* -- Flash toasts (TempData feedback banners) -- */
@keyframes flash-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes flash-toast-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}
.flash-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    animation: flash-toast-in .22s ease both;
}
.flash-toast.flash-toast-hiding {
    animation: flash-toast-out .22s ease both;
}
.flash-toast-success {
    background: rgba(22, 163, 74, .12);
    border-color: rgba(22, 163, 74, .32);
    color: var(--success);
}
.flash-toast-error {
    background: rgba(220, 38, 38, .10);
    border-color: rgba(220, 38, 38, .28);
    color: var(--danger);
}
.flash-toast-warning {
    background: rgba(217, 119, 6, .10);
    border-color: rgba(217, 119, 6, .28);
    color: var(--warning);
}
.flash-toast-icon { flex-shrink: 0; font-size: 15px; }
.flash-toast-text { flex: 1; }
.flash-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: inherit;
    opacity: .55;
    font-size: 12px;
    line-height: 1;
}
.flash-toast-close:hover { opacity: .9; }

/* -- Modals -- */
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.modal-body {
    padding: 20px;
}
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.modal-footer .btn {
    min-width: 90px;
}

/* Bootbox modal standardization */
.bootbox .modal-footer {
    justify-content: flex-end;
    gap: 8px;
}
.bootbox .modal-footer .btn {
    min-width: 90px;
    border-radius: 9999px;
}

/* === RESPONSIVE === */

@media (max-width: 1380px) {
    .dealer-details-grid {
        grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    }

    .dealer-keyfact,
    .dealer-info-row {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 14px;
    }

    .dealer-notification-table thead th:first-child {
        width: 110px;
    }
}

@media (max-width: 1280px) {
    body.header-menu-open .header {
        z-index: 7000;
    }

    .header {
        height: var(--header-h);
        min-height: var(--header-h);
        padding: 0 16px;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .header-menu-toggle {
        display: inline-flex;
    }

    .header-brand {
        position: static;
        left: auto;
        transform: none;
        margin: 0 auto;
        width: min(52vw, 420px);
        height: auto;
    }

    .header-logo-icon {
        height: 26px;
        max-width: 26px;
    }

    .header-logo-font {
        height: 18px;
        max-width: 120px;
    }

    .header-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 14px;
        max-height: calc(100vh - var(--header-h));
        padding: 16px;
        overflow-y: auto;
        background: rgba(30, 34, 48, 0.985);
        border-top: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
        z-index: 5000;
    }

    body.header-menu-open {
        overflow: hidden;
    }

    body.header-menu-open .header-menu {
        display: flex;
    }

    body.header-menu-open .page,
    body.header-menu-open .content-wrapper,
    body.header-menu-open #scheduler,
    body.header-menu-open #calendar {
        position: relative;
        z-index: 0 !important;
    }

    body.header-menu-open #scheduler .k-scheduler-toolbar,
    body.header-menu-open #scheduler .k-header.k-scheduler-toolbar,
    body.header-menu-open #scheduler .k-scheduler-navigation,
    body.header-menu-open #scheduler .k-scheduler-views,
    body.header-menu-open #scheduler .k-scheduler-toolbar .k-link,
    body.header-menu-open #scheduler .k-scheduler-toolbar .k-button,
    body.header-menu-open #scheduler .k-scheduler-views li,
    body.header-menu-open #scheduler .k-scheduler-views li a,
    body.header-menu-open #scheduler .k-nav-today,
    body.header-menu-open #scheduler .k-nav-current {
        position: relative;
        z-index: 0 !important;
    }

    .header-nav,
    .header-actions {
        width: 100%;
        flex: 0 0 auto;
        margin: 0;
        min-width: 0;
        position: static;
    }

    .header-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow: visible;
        justify-content: flex-start;
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        justify-content: flex-start;
    }

    .page {
        padding: 16px;
    }

    .scheduler-filter-form,
    .scheduler-filter {
        min-width: 0;
        width: auto;
    }

    .header-dropdown {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .header-dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-link,
    .header-chip {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 42px;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .header-dropdown .nav-link,
    .header-dropdown .header-chip {
        flex: 1 1 auto;
    }

    .header-submenu-toggle {
        display: inline-flex;
        border-radius: 12px;
        background: rgba(255, 255, 255, .04);
    }

    .header-dropdown.mobile-open .header-submenu-toggle {
        color: #fff;
        background: rgba(255, 255, 255, .10);
    }

    .header-dropdown.mobile-open .header-submenu-toggle i {
        transform: rotate(180deg);
    }

    .header-submenu-toggle i {
        transition: transform .15s ease;
    }

    .header-dropdown .dropdown-menu,
    .header-nav .header-dropdown .dropdown-menu {
        position: static;
        left: auto;
        right: auto;
        display: none;
        min-width: 0;
        margin-top: 6px;
        padding: 6px;
        background: rgba(255, 255, 255, .03);
        border-color: rgba(255, 255, 255, .08);
        box-shadow: none;
    }

    .header-dropdown:hover .dropdown-menu,
    .header-dropdown-click:hover .dropdown-menu {
        display: none;
    }

    .header-dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .header-dropdown .dropdown-menu > li > a {
        color: rgba(255, 255, 255, .82);
    }

    .header-dropdown .dropdown-menu > li > a:hover,
    .header-dropdown .dropdown-menu > li > a:focus {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }

    .dropdown-label {
        color: rgba(255, 255, 255, .52);
    }
}

@media (max-width: 1120px) {
    .dealer-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .dealer-keyfact,
    .dealer-info-row,
    .dealer-hours-compact tr {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .dealer-panel-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .dealer-color-inline-list {
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .dealer-color-editor-grid {
        grid-template-columns: 1fr;
    }

    .dealer-color-inline-list-edit {
        width: 100%;
        justify-content: flex-start;
    }

    .dealer-setting-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dealer-setting-state {
        min-width: 0;
    }

    .dealer-hours-compact,
    .dealer-hours-compact tbody,
    .dealer-hours-compact tr,
    .dealer-hours-compact th,
    .dealer-hours-compact td {
        display: block;
        width: 100%;
    }

    .dealer-hours-compact tr {
        padding: 8px 0;
        border-bottom: 1px solid rgba(222, 226, 233, 0.72);
    }

    .dealer-hours-compact tr:last-child {
        border-bottom: none;
    }

    .dealer-hours-separator {
        display: none !important;
    }

    .dealer-notification-wrap {
        overflow-x: auto;
    }

    .dealer-notification-table {
        min-width: 700px;
    }

    .dealer-details-action {
        flex: 1 1 180px;
    }

    .dealer-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dealer-form-label {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-logo-icon {
        height: 26px;
        max-width: 26px;
    }

    .header-logo-font {
        height: 18px;
        max-width: 120px;
    }

    .nav-link,
    .header-chip,
    .dropdown-toggle {
        font-size: 12px;
    }

    .header-brand {
        width: min(62vw, 540px);
        max-width: 540px;
    }

    .login-card-header,
    .login-card-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    #calendar {
        padding: 4px;
    }
}
