/* BTP Manager V2.0 - Styles personnalisés */

/*
 * Safari iOS : éviter le décalage progressif vers la droite après portrait ↔ paysage
 * (scroll horizontal résiduel + grilles sans min-width 0).
 */
html {
    overflow-x: clip;
    width: 100%;
}
body {
    overflow-x: clip;
    max-width: 100%;
    position: relative;
}
#app-screen {
    overflow-x: clip;
    max-width: 100%;
}
#main-content {
    overflow-x: clip;
    max-width: 100%;
}

/* Variables de couleurs fonctionnelles */
:root {
    --color-success: #10b981; /* Vert */
    --color-warning: #f59e0b; /* Orange */
    --color-danger: #ef4444; /* Rouge */
    --color-info: #3b82f6; /* Bleu */
}

/* Amélioration de l'accessibilité */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Boutons CTA larges pour mobile (exception : barre d'échelle Gantt ci-dessous) */
button, .btn {
    min-height: 44px; /* Taille minimale recommandée pour mobile */
    min-width: 44px;
}

/* Échelle A/M/S/J : cibles tactiles raisonnables sans forcer 4×44px sur une ligne
   (sinon débordement + le select « équipe » peut recouvrir les boutons sur téléphone) */
#view-planning .gantt-scale-pill,
#view-planning .gantt-scale-group button {
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.35rem 0.25rem;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-sizing: border-box;
}

#view-planning .gantt-scale-group {
    position: relative;
    z-index: 3;
    isolation: isolate;
}

@media (min-width: 768px) {
    #view-planning .gantt-scale-pill,
    #view-planning .gantt-scale-group button {
        min-width: 1.5rem;
    }
}

/* Navigation mobile - amélioration tactile */
.nav-tab {
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.nav-tab.active {
    border-top: 2px solid currentColor;
}

/* Cards : rendu sobre, sans effet de "flottement" — juste une bordure qui s'affirme légèrement */
.card {
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    box-shadow: 0 2px 8px -2px rgba(16, 24, 40, 0.08);
}

/* Badges de statut */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tiroirs temps / rentabilité fiche chantier */
#chantier-menu-time-progress > summary,
#chantier-menu-profitability > summary,
#chantier-time-by-user-wrap > summary {
    list-style: none;
}
#chantier-menu-time-progress > summary::-webkit-details-marker,
#chantier-menu-profitability > summary::-webkit-details-marker,
#chantier-time-by-user-wrap > summary::-webkit-details-marker {
    display: none;
}

/* Infobulle « i » à côté des titres de section (survol / focus) */
.section-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 1em; /* suit la taille du titre (text-lg / text-base) */
    line-height: 1;
}
.section-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem !important;
    min-height: 1.25rem !important;
    max-width: none;
    max-height: none;
    padding: 0 !important;
    margin: 0;
    border-radius: 9999px;
    border: 1.5px solid #9ca3af;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    font-style: normal;
    font-family: inherit;
    line-height: 0;
    cursor: help;
    user-select: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}
.section-info-glyph {
    display: block;
    font-style: italic;
    font-weight: 700;
    font-size: 0.85em;
    line-height: 1;
    /* recentrage optique du « i » italique */
    transform: translate(-0.1em, 0.02em);
}
.section-info:hover .section-info-btn,
.section-info:focus-within .section-info-btn,
.section-info--open .section-info-btn {
    border-color: #3b82f6;
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
}
.dark .section-info-btn {
    border-color: #6b7280;
    color: #9ca3af;
}
.dark .section-info:hover .section-info-btn,
.dark .section-info:focus-within .section-info-btn,
.dark .section-info--open .section-info-btn {
    border-color: #60a5fa;
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.12);
}
.section-info-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.25rem);
    z-index: 60;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(45vh, 16rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.45;
    box-shadow: 0 8px 24px -8px rgba(16, 24, 40, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}
.dark .section-info-panel {
    border-color: #4b5563;
    background: #1f2937;
    color: #d1d5db;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
}
.section-info:hover .section-info-panel,
.section-info--open .section-info-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.section-info--open .section-info-panel {
    position: fixed;
    z-index: 80;
}
.section-info-extra {
    display: block;
    margin-top: 0.5rem;
}
.section-info-extra:empty {
    display: none;
    margin: 0;
}

/* Téléphone : pastille plus grande, contraste bleu, zone de tap ~44px */
@media (max-width: 767px) {
    .section-info-btn {
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem !important;
        min-height: 1.75rem !important;
        font-size: 0.9375rem;
        border-width: 2px;
        border-color: #2563eb;
        color: #1d4ed8;
        background: #eff6ff;
    }
    .dark .section-info-btn {
        border-color: #60a5fa;
        color: #93c5fd;
        background: rgba(37, 99, 235, 0.28);
    }
    .section-info-btn::after {
        content: '';
        position: absolute;
        inset: -0.45rem;
    }
    .section-info-panel {
        width: min(22rem, calc(100vw - 1.5rem));
        font-size: 0.875rem;
        line-height: 1.5;
        max-height: min(55vh, 20rem);
    }
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-warning);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-purple {
    background-color: rgba(147, 51, 234, 0.1);
    color: #7c3aed;
}

.badge-neutral {
    background-color: rgba(107, 114, 128, 0.12);
    color: #374151;
}

.dark .badge-neutral {
    background-color: rgba(156, 163, 175, 0.2);
    color: #e5e7eb;
}

/* Responsive - Correction des tableaux */
@media (max-width: 640px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* FullCalendar (réplique Google Calendar) est une grille HTML <table> :
       display:block écrase les 7 colonnes et affiche un calendrier illisible. */
    #fullcalendar-main table,
    .gcal-mini-wrap table,
    .fc table {
        display: table !important;
        width: 100%;
        overflow: visible;
        white-space: normal;
        table-layout: fixed;
    }
    
    /* Empêcher le zoom sur les inputs iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="month"],
    select,
    textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
    
    /* Grille responsive pour les statistiques */
    .grid {
        grid-template-columns: 1fr !important;
    }

    #fullcalendar-main .grid,
    .gcal-mini-wrap .grid,
    #agenda-container .grid {
        grid-template-columns: unset !important;
    }
    
    /* Navigation mobile - ajustements */
    .nav-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .nav-tab svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Cards - espacement réduit */
    .card {
        padding: 0.75rem;
    }
    
    /* Formulaire de pointage - colonnes empilées */
    #pointage-form .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* iOS : éviter zoom au focus + largeur intrinsèque des champs heure */
    input[type="time"] {
        font-size: 16px;
    }
}

/* Pointage : 2 colonnes avec minmax(0,1fr) pour éviter le débordement WebKit (Safari iPhone) */
.pointage-heures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pointage-form input[type="time"],
#edit-pointage-modal input[type="time"] {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#pointage-date,
.pointage-date-input {
    text-align: center;
}

#pointage-date::-webkit-date-and-time-value,
.pointage-date-input::-webkit-date-and-time-value {
    text-align: center;
}

.pointage-heures-grid > * {
    min-width: 0;
}

/* Animation de chargement */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Transitions pour les vues */
.view {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gantt - Layout split (labels fixes + timeline scrollable) */
#gantt-container {
    position: relative;
    touch-action: pan-x pan-y;
    min-height: 400px;
}

.gantt-split {
    height: 100%;
}

/* Planning : vue compacte (téléphone / paysage) — timeline plus large */
.gantt-split.gantt-compact {
    min-height: 240px;
}

.gantt-split.gantt-compact .gantt-labels-col {
    min-width: 0;
}

.gantt-labels-col {
    overflow-y: auto;
    position: relative;
    z-index: 2;
    align-self: stretch;
}

.gantt-labels-col > div:first-child {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgb(243 244 246);
}

.dark .gantt-labels-col > div:first-child {
    background: rgba(55, 65, 81, 0.85);
}

.gantt-timeline-wrap {
    touch-action: none;
}

.gantt-canvas {
    touch-action: none; /* Désactive le scroll natif pendant l'interaction */
}

.gantt-edit-mode .gantt-canvas {
    touch-action: pan-x pan-y; /* Réactive le scroll en mode édition */
}

/* Ligne "Aujourd'hui" dans le Gantt */
.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ef4444;
    z-index: 10;
    pointer-events: none;
}

/* Week-ends grisés */
.gantt-weekend {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .gantt-weekend {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Poignées de redimensionnement Gantt */
.gantt-resize-handle {
    position: absolute;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    background-color: #3b82f64d;
    opacity: 0;
    transition: opacity 0.2s;
}

.gantt-task:hover .gantt-resize-handle {
    opacity: 1;
}

.gantt-resize-handle-left {
    left: 0;
}

.gantt-resize-handle-right {
    right: 0;
}

/* Planning mobile - cartes chantiers */
.gantt-mobile-card {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
    #gantt-container.gantt-split {
        min-height: 0;
    }
}

/* Planning : moins de marge sur petit écran pour gagner de la place utile */
@media (max-width: 1023px) {
    #view-planning #gantt-container {
        max-width: 100vw;
    }
}

/* Planning Gantt — téléphone / très petit écran : barre d’outils compacte, plus de place pour le canvas */
@media (max-width: 767px) {
    #view-planning .gantt-card-shell {
        border-radius: 0.375rem;
    }
    #view-planning .gantt-toolbar {
        margin-bottom: 0.5rem;
    }
    #view-planning .gantt-toolbar-controls {
        flex-direction: column;
        align-items: stretch;
        row-gap: 0.5rem;
    }
    #view-planning .gantt-scale-group {
        width: 100%;
        max-width: 100%;
    }
    #view-planning .gantt-scale-row {
        display: flex;
        width: 100%;
    }
    #view-planning .gantt-scale-pill,
    #view-planning .gantt-scale-group button {
        flex: 1 1 0;
        min-height: 2.75rem;
    }
    #view-planning .gantt-team-row {
        width: 100%;
        min-width: 0;
    }
    #view-planning .gantt-btn-edit {
        max-width: 100%;
    }
}

#view-planning.gantt-view-phone .gantt-title {
    font-size: 0.8125rem;
    line-height: 1.2;
}

#view-planning.gantt-view-phone .gantt-btn-edit {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.2;
}

#view-planning.gantt-view-phone .gantt-scale-pill.ring-2 {
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.5);
}

/* Empêcher le chevauchement de la bague focus sur les mini-boutons d’échelle */
#view-planning .gantt-scale-pill.ring-2 {
    z-index: 1;
    position: relative;
}

/* Checklist logistique */
.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Galerie photos chantier : ligne par ligne (plus récent en haut à gauche, puis à droite). */
#photo-gallery.photo-gallery {
    display: grid;
    grid-auto-flow: row;
    direction: ltr;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    #photo-gallery.photo-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #photo-gallery.photo-gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    #photo-gallery.photo-gallery {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

#photo-select-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.5rem;
    border: none;
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

#photo-select-mode-btn:hover {
    background: #4338ca;
}

#photo-select-mode-btn.is-cancel {
    background: #e5e7eb;
    color: #111827;
}

#photo-select-mode-btn.is-cancel:hover {
    background: #d1d5db;
}

.dark #photo-select-mode-btn.is-cancel {
    background: #374151;
    color: #f3f4f6;
}

.dark #photo-select-mode-btn.is-cancel:hover {
    background: #4b5563;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pointage — thème clair : cartes blanches, liseré discret (plus de pastels jaune/bleu) */
html:not(.dark) #view-pointage .pointage-slot {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-left-width: 4px;
}

html:not(.dark) #view-pointage .pointage-slot-matin {
    border-left-color: #0284c7;
}

html:not(.dark) #view-pointage .pointage-slot-aprem {
    border-left-color: #2563eb;
}

html:not(.dark) #view-pointage .pointage-slot-extra {
    border-left-color: #4f46e5;
}

html:not(.dark) #view-pointage .pointage-check-bar {
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

html:not(.dark) #view-pointage .pointage-add-lieu {
    border-color: #d1d5db;
    color: #4f46e5;
}

html:not(.dark) #view-pointage .pointage-add-lieu:hover {
    border-color: #818cf8;
    background-color: #eef2ff;
    color: #3730a3;
}

html:not(.dark) #view-pointage .pointage-recap {
    background-color: #fff;
    border-color: #e5e7eb;
}

.dark #view-pointage .pointage-add-lieu {
    border-color: #6366f1;
    color: #a5b4fc;
}

.dark #view-pointage .pointage-add-lieu:hover {
    background-color: rgba(79, 70, 229, 0.18);
    border-color: #818cf8;
    color: #c7d2fe;
}

.dark #view-pointage .pointage-slot-matin {
    border-left: 4px solid #eab308;
}

.dark #view-pointage .pointage-slot-aprem {
    border-left: 4px solid #60a5fa;
}

.dark #view-pointage .pointage-slot-extra {
    border-left: 4px solid #c084fc;
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background-color: #10b981;
    color: white;
}

.notification-error {
    background-color: #ef4444;
    color: white;
}

.notification-info {
    background-color: #3b82f6;
    color: white;
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    /* Les classes dark: de Tailwind gèrent déjà cela */
}

/* Amélioration de la lisibilité sur petits écrans */
@media (max-width: 375px) {
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    /* Padding réduit pour économiser l'espace */
    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Boutons plus compacts */
    button, .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Focus visible pour accessibilité */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Empêcher la sélection de texte sur les boutons tactiles */
button, .nav-tab {
    user-select: none;
    -webkit-user-select: none;
}

/* ====== Styles Choices.js adaptés au thème sombre BTP Manager ====== */
.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: #394556 !important; /* bg-gray-900-ish */
    border-radius: 0.375rem;
    border: 1px solid #394556 !important; /* gray-600 */
    color: #f9fafb; /* gray-50 */
    min-height: 2.5rem;
    padding: 0.35rem 0.75rem;
}

.choices__list--single .choices__item {
    color: #394556;
}

.choices__input {
    background-color: #394556 !important;
    color: #F3F4F6;
    border: 1px solid #d4d4df !important;
    border-radius: 0.375rem;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background-color: #394556 !important;
    border-radius: 0.375rem;
    border: 1px solid #394556 !important;
}

.choices__list--dropdown .choices__item--selectable,
.choices__list[aria-expanded] .choices__item--selectable {
    padding: 0.5rem 0.75rem;
    color: #F3F4F6;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: #394556; /* gray-800 */
    color: #394556;
}

.choices__placeholder {
    color: #9ca3af !important; /* gray-400 */
}

/* Mode paysage sur appareil tactile (téléphone/tablette) : affichage intégral, barre masquée */
/* Restreint aux petits écrans (max-height 500px) pour exclure les ordinateurs en pleine écran */
/* Ordinateur = barre toujours visible, pas de masquage */
@media (orientation: landscape) and (hover: none) and (max-height: 500px) {
    /* Barre du haut ; le padding-bas du contenu vient de #main-content */
    #app-screen {
        min-height: 100dvh;
        min-height: 100vh;
    }
    #main-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        flex: 1;
    }
    /* Vues en pleine hauteur en paysage */
    #main-content .view {
        min-height: calc(100dvh - 1rem);
        min-height: calc(100vh - 1rem);
    }
    /* Planning : occupe toute la place UNIQUEMENT quand c'est la vue active */
    #view-planning.active {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 100%;
    }
    #view-planning.active > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0.5rem !important;
    }
    #view-planning.active > div > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
    #view-planning.active #gantt-container {
        flex: 1;
        min-height: 0;
    }
    #view-planning.active .gantt-split {
        flex: 1;
        min-height: 280px;
    }
    #view-planning.active .gcal-main {
        flex: 1;
        min-width: 0;
    }
}

/* ─── Planning type Google Calendar (FullCalendar) ─── */
.gcal-shell {
    --gcal-bg: #ffffff;
    --gcal-border: #dadce0;
    --gcal-text: #3c4043;
    --gcal-text-muted: #70757a;
    --gcal-today: #1a73e8;
    --gcal-hover: #f1f3f4;
    --gcal-btn-active: #e8f0fe;
    --gcal-font: 'Google Sans', Roboto, Arial, sans-serif;
}

.dark .gcal-shell {
    --gcal-bg: #1f2937;
    --gcal-border: #374151;
    --gcal-text: #e5e7eb;
    --gcal-text-muted: #9ca3af;
    --gcal-today: #8ab4f8;
    --gcal-hover: #374151;
    --gcal-btn-active: #1e3a5f;
}

.gcal-sidebar-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gcal-text-muted);
    margin-bottom: 0.5rem;
}

.gcal-team-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.gcal-btn-outline {
    min-height: 36px;
}

/* Mini-calendrier latéral (FullCalendar v6 pose .fc sur le conteneur lui-même) */
.gcal-mini-wrap.fc,
.gcal-mini-wrap .fc {
    font-family: var(--gcal-font);
    font-size: 0.75rem;
}

.gcal-mini-wrap .fc-toolbar {
    margin-bottom: 0.5rem !important;
}

.gcal-mini-wrap .fc-toolbar-title {
    font-size: 0.875rem !important;
    font-weight: 500;
    color: var(--gcal-text);
    text-transform: capitalize;
}

.gcal-mini-wrap .fc-button {
    padding: 0.15rem 0.35rem !important;
    font-size: 0.75rem !important;
    background: transparent !important;
    border: none !important;
    color: var(--gcal-text-muted) !important;
    box-shadow: none !important;
}

.gcal-mini-wrap .fc-button:hover {
    background: var(--gcal-hover) !important;
    border-radius: 50% !important;
}

.gcal-mini-wrap .fc-daygrid-day-number {
    font-size: 0.75rem;
    padding: 0.15rem;
    color: var(--gcal-text);
}

.gcal-mini-wrap .fc-daygrid-day-frame {
    min-height: 1.75rem;
}

.gcal-mini-wrap .gcal-mini-today .fc-daygrid-day-number {
    background: var(--gcal-today);
    color: #fff;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.gcal-mini-wrap .fc-col-header-cell {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--gcal-text-muted);
    padding: 0.25rem 0;
}

.gcal-mini-wrap .fc-scrollgrid,
.gcal-mini-wrap.fc-theme-standard td,
.gcal-mini-wrap.fc-theme-standard th,
.gcal-mini-wrap .fc-theme-standard td,
.gcal-mini-wrap .fc-theme-standard th {
    border-color: transparent !important;
}

/* Calendrier principal (FullCalendar v6 pose .fc sur le conteneur lui-même) */
#fullcalendar-main.fc,
#fullcalendar-main .fc {
    font-family: var(--gcal-font);
    color: var(--gcal-text);
}

#fullcalendar-main .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem !important;
}

#fullcalendar-main .fc-toolbar-title {
    font-size: 1.25rem !important;
    font-weight: 400;
    color: var(--gcal-text);
    text-transform: capitalize;
}

#fullcalendar-main .fc-button {
    background: var(--gcal-bg) !important;
    border: 1px solid var(--gcal-border) !important;
    color: var(--gcal-text) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    box-shadow: none !important;
    text-transform: none;
    border-radius: 4px;
}

#fullcalendar-main .fc-button:hover {
    background: var(--gcal-hover) !important;
}

#fullcalendar-main .fc-button-active,
#fullcalendar-main .fc-button-active:hover {
    background: var(--gcal-btn-active) !important;
    color: var(--gcal-today) !important;
    border-color: var(--gcal-border) !important;
}

#fullcalendar-main .fc-button-group > .fc-button {
    border-radius: 0;
}

#fullcalendar-main .fc-button-group > .fc-button:first-child {
    border-radius: 4px 0 0 4px;
}

#fullcalendar-main .fc-button-group > .fc-button:last-child {
    border-radius: 0 4px 4px 0;
}

#fullcalendar-main .fc-prev-button,
#fullcalendar-main .fc-next-button {
    padding: 0.4rem 0.55rem;
}

#fullcalendar-main .fc-col-header-cell {
    font-weight: 500;
    font-size: 0.6875rem;
    color: var(--gcal-text-muted);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#fullcalendar-main .fc-col-header-cell a {
    color: inherit;
    text-decoration: none;
}

#fullcalendar-main .fc-daygrid-day-number,
#fullcalendar-main .fc-timegrid-slot-label-cushion {
    color: var(--gcal-text-muted);
    font-size: 0.75rem;
}

#fullcalendar-main .fc-day-today {
    background: rgba(26, 115, 232, 0.04) !important;
}

.dark #fullcalendar-main .fc-day-today {
    background: rgba(138, 180, 248, 0.08) !important;
}

#fullcalendar-main .fc-day-today .fc-daygrid-day-number {
    background: var(--gcal-today);
    color: #fff;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0.25rem;
}

#fullcalendar-main .fc-event {
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 1px 4px;
    cursor: pointer;
    border: none;
    box-shadow: none;
}

#fullcalendar-main .fc-event:hover {
    filter: brightness(0.92);
}

#fullcalendar-main .fc-daygrid-more-link {
    color: var(--gcal-today);
    font-weight: 500;
    font-size: 0.75rem;
}

#fullcalendar-main .fc-scrollgrid,
#fullcalendar-main.fc-theme-standard td,
#fullcalendar-main.fc-theme-standard th,
#fullcalendar-main .fc-theme-standard td,
#fullcalendar-main .fc-theme-standard th {
    border-color: var(--gcal-border) !important;
}

#fullcalendar-main .fc-timegrid-now-indicator-line {
    border-color: #ea4335;
    border-width: 2px;
}

#fullcalendar-main .fc-timegrid-now-indicator-arrow {
    border-color: #ea4335;
}

#fullcalendar-main .fc-list-event:hover td {
    background: var(--gcal-hover);
}

#fullcalendar-main .fc-list-day-cushion {
    background: var(--gcal-hover) !important;
    font-weight: 500;
    color: var(--gcal-text);
}

/* ─── Chrome Google Calendar : topbar, boutons, sidebar rétractable ─── */

.gcal-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    color: var(--gcal-text-muted, #5f6368);
    background: transparent;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.gcal-icon-btn:hover {
    background: var(--gcal-hover, #f1f3f4);
}

.gcal-btn-today {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    border: 1px solid var(--gcal-border, #dadce0);
    border-radius: 4px;
    background: var(--gcal-bg, #fff);
    color: var(--gcal-text, #3c4043);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.gcal-btn-today:hover {
    background: var(--gcal-hover, #f1f3f4);
}

.gcal-title {
    font-family: var(--gcal-font);
}

.gcal-view-select {
    height: 36px;
    padding: 0 2rem 0 0.9rem;
    border: 1px solid var(--gcal-border, #dadce0);
    border-radius: 4px;
    background-color: var(--gcal-bg, #fff);
    color: var(--gcal-text, #3c4043);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
    cursor: pointer;
}

.gcal-view-select:hover {
    background-color: var(--gcal-hover, #f1f3f4);
}

/* Bouton « Créer » avec ombre Material et logo + multicolore */
.gcal-create-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 1.4rem 0 0.8rem;
    height: 48px;
    border-radius: 24px;
    background: var(--gcal-bg, #fff);
    color: var(--gcal-text, #3c4043);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.gcal-create-btn:hover {
    box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    background: #f8f9fa;
}

.dark .gcal-create-btn:hover {
    background: #374151;
}

.gcal-sidebar-header {
    display: none;
}

.gcal-sidebar-reduce-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem 0.4rem 0.35rem;
    min-height: 40px;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid var(--gcal-border, #dadce0);
    background: var(--gcal-bg, #fff);
    color: var(--gcal-text, #3c4043);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
}

.gcal-sidebar-reduce-btn:hover {
    background: var(--gcal-hover, #f1f3f4);
}

.dark .gcal-sidebar-reduce-btn {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
}

.gcal-sidebar {
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.gcal-sidebar.gcal-sidebar-hidden {
    transform: translateX(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Zone calendrier : occupe le reste de l’écran, comme Google Calendar */
.gcal-shell {
    min-height: calc(100vh - 7.5rem);
}

.gcal-layout {
    flex: 1;
    min-height: 0;
}

.gcal-main,
#agenda-container {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#agenda-container,
#fullcalendar-main {
    width: 100%;
}

#fullcalendar-main {
    flex: 1;
    min-height: 28rem;
    height: 100%;
}

#fullcalendar-main .fc-list {
    border-radius: 4px;
}

#fullcalendar-main .fc-list-event-title,
#fullcalendar-main .fc-list-event-time {
    color: var(--gcal-text, #3c4043);
}

.dark #fullcalendar-main .fc-list-event-title,
.dark #fullcalendar-main .fc-list-event-time {
    color: var(--gcal-text, #e5e7eb);
}

/* Popovers (création rapide + détail) façon carte Google */
.gcal-popover {
    position: fixed;
    z-index: 80;
    background: var(--gcal-bg, #fff);
    border-radius: 8px;
    box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
    font-family: var(--gcal-font);
    animation: gcal-pop-in 0.12s ease-out;
    max-width: calc(100vw - 16px);
}

.dark .gcal-popover {
    background: #1f2937;
    border: 1px solid #374151;
}

@keyframes gcal-pop-in {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gcal-quick-title:focus {
    outline: none;
    box-shadow: none;
}

.gcal-btn-text {
    padding: 0 1rem;
    height: 36px;
    border-radius: 4px;
    color: var(--gcal-today, #1a73e8);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
}

.gcal-btn-text:hover {
    background: var(--gcal-btn-active, #e8f0fe);
}

.gcal-btn-filled {
    padding: 0 1.5rem;
    height: 36px;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--gcal-font);
    transition: box-shadow 0.15s ease;
}

.gcal-btn-filled:hover {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    background: #1765cc;
}

/* Palette de couleurs (modale) */
.gcal-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.gcal-color-swatch:hover {
    transform: scale(1.15);
}

.gcal-color-swatch.gcal-color-selected::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Point rouge sur la ligne « heure actuelle » (comme Google) */
#fullcalendar-main .fc-timegrid-now-indicator-arrow {
    border: none !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ea4335;
    margin-top: -6px;
    margin-left: -6.5px;
}

/* Congés : chips légèrement translucides */
#fullcalendar-main .gcal-leave-event {
    opacity: 0.85;
}

/* Sélection d'une plage (drag) */
#fullcalendar-main .fc-highlight {
    background: rgba(26, 115, 232, 0.12);
}

/* Mobile : sidebar en tiroir, calendrier pleine largeur */
@media (max-width: 1023px) {
    #view-planning.active > div {
        padding: 0.25rem !important;
    }

    .gcal-layout {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: calc(100dvh - 8.5rem);
    }

    .gcal-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 25;
        background: rgba(0, 0, 0, 0.4);
    }

    .gcal-sidebar-backdrop.is-visible {
        display: block;
    }

    .gcal-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 30;
        width: min(18rem, 88vw);
        max-width: 88vw;
        background: var(--gcal-bg, #fff);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        padding-top: 0.75rem;
    }

    .dark .gcal-sidebar {
        background: #1f2937;
    }

    .gcal-sidebar.gcal-sidebar-hidden {
        transform: translateX(-105%);
    }

    .gcal-main {
        width: 100%;
        padding: 0;
        position: relative;
        z-index: 1;
        flex: 1;
        min-height: 28rem;
    }

    #fullcalendar-main .fc-daygrid-day-number {
        font-size: 0.9375rem;
        font-weight: 500;
    }

    #fullcalendar-main .fc-col-header-cell {
        font-size: 0.6875rem;
    }

    #fullcalendar-main .fc-event {
        font-size: 0.6875rem;
    }

    .gcal-title {
        flex-basis: 100%;
        order: -1;
        margin-left: 0;
        font-size: 1.15rem;
        font-weight: 400;
    }

    .gcal-btn-today {
        padding: 0 0.6rem;
        font-size: 0.8125rem;
    }

    .gcal-view-select {
        padding: 0 1.5rem 0 0.5rem;
        font-size: 0.8125rem;
        max-width: 6.5rem;
    }

    .gcal-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 0.75rem;
        padding-top: env(safe-area-inset-top, 0);
    }

    .gcal-topbar {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }
}

@media (min-width: 1024px) {
    .gcal-sidebar {
        position: relative;
        transform: none;
    }

    .gcal-sidebar.gcal-sidebar-hidden {
        margin-left: -16rem;
        width: 0;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        border: none;
        transform: none;
        opacity: 0;
        visibility: hidden;
    }
}

/* Override min-height boutons globaux pour toolbar FC */
#view-planning .fc-button {
    min-height: 36px;
    min-width: 36px;
}

#view-planning .gcal-mini-wrap .fc-button {
    min-height: 28px;
    min-width: 28px;
}

/* =========================================================
   Design system — interface claire, moderne et épurée
   (chargé après tailwind-built.css : les overrides gagnent)
   ========================================================= */

/* Typographie : Inter avec repli système (hors ligne : police système) */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Cartes : ombre quasi plate + bordure fine — lisibilité avant effet, façon tableau de bord sobre.
   Cible le motif dominant de l'app : bg-white/dark:bg-gray-800 + .shadow */
.shadow, .shadow-lg, .shadow-xl {
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.04) !important;
}
.bg-white.shadow,
.bg-white.shadow-lg,
.bg-white.shadow-xl {
    border: 1px solid rgba(17, 24, 39, 0.08);
}
.dark .dark\:bg-gray-800.shadow,
.dark .dark\:bg-gray-800.shadow-lg,
.dark .dark\:bg-gray-800.shadow-xl {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Rayons resserrés : coins nets, rendu sobre plutôt que "bulle" */
.rounded-lg {
    border-radius: 0.625rem;
}
.rounded-md {
    border-radius: 0.5rem;
}

/* Tableaux : en-tête discret, lignes fines, survol léger — cohérent sur toutes les vues */
table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
table tbody tr {
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}
.dark table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}
table tbody tr:last-child {
    border-bottom: none;
}
table tbody tr:hover {
    background-color: rgba(17, 24, 39, 0.02);
}
.dark table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* ─── Sidebar desktop (≥1024px) ───
   #app-nav-drawer sert à la fois de tiroir mobile (JS : translate-x) et de sidebar fixe
   sur grand écran (voir classes lg: dans index.html). Ici : uniquement de la densité visuelle. */
@media (min-width: 1024px) {
    #app-nav-drawer .nav-tab {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    #app-nav-drawer .nav-tab svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    #app-nav-drawer .nav-tab.active {
        font-weight: 600;
    }
}

/* Squelettes de chargement (remplacent les textes « Chargement… ») */
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(17, 24, 39, 0.06);
}
.dark .skeleton {
    background: rgba(255, 255, 255, 0.07);
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.dark .skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
}
@keyframes skeleton-shimmer {
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .skeleton::after { animation: none; }
}

/* Menu latéral : masquer l'intitulé d'un groupe dont toutes les entrées sont cachées (rôles) */
.nav-group:not(:has(button.nav-tab:not([style*='none']))) {
    display: none;
}

/* Barre d'onglets défilante (fiche chantier) : sans barre de défilement native */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Mini-barre « glisser » sous les onglets chantier (téléphone uniquement) */
.chantier-tabs-wrap {
    position: relative;
}
.chantier-tabs-fade {
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 1.75rem;
    height: 2.65rem;
    background: linear-gradient(to right, transparent, #fff);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.dark .chantier-tabs-fade {
    background: linear-gradient(to right, transparent, #1f2937);
}
.chantier-tabs-wrap.has-overflow:not(.is-scrolled-end) .chantier-tabs-fade {
    opacity: 1;
}
.chantier-tabs-swipe-hint {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 0 0.55rem;
}
.chantier-tabs-swipe-hint.is-visible {
    display: flex;
}
.chantier-tabs-swipe-track {
    position: relative;
    width: 3.35rem;
    height: 3px;
    border-radius: 999px;
    background: #d1d5db;
    overflow: hidden;
}
.dark .chantier-tabs-swipe-track {
    background: #4b5563;
}
.chantier-tabs-swipe-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 42%;
    border-radius: 999px;
    background: #6b7280;
}
.dark .chantier-tabs-swipe-thumb {
    background: #9ca3af;
}
@media (min-width: 1024px) {
    .chantier-tabs-fade,
    .chantier-tabs-swipe-hint,
    .chantier-tabs-swipe-hint.is-visible {
        display: none;
    }
}

/* ── Tutoriel d'onboarding (première utilisation) ── */
body.onboarding-active {
    overflow: hidden;
}

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: auto;
}

.onboarding-spotlight {
    position: fixed;
    border: 3px solid #22c55e;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72);
    pointer-events: none;
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
    z-index: 10051;
}

.onboarding-spotlight.hidden {
    display: none;
}

.onboarding-tooltip {
    position: fixed;
    z-index: 10052;
    width: min(92vw, 22rem);
    padding: 1.25rem 1.25rem 1rem;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.onboarding-tooltip--center {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: min(92vw, 24rem);
    text-align: center;
}

.onboarding-tooltip-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.onboarding-tooltip-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1rem;
    color: #d1d5db;
}

.onboarding-tooltip-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.onboarding-btn {
    flex: 1;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.onboarding-btn.invisible {
    visibility: hidden;
    pointer-events: none;
}

.onboarding-btn-prev {
    background: transparent;
    border: 2px solid #6b7280;
    color: #e5e7eb;
}

.onboarding-btn-prev:hover:not(:disabled) {
    border-color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
}

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

.onboarding-btn-next {
    background: #22c55e;
    border: 2px solid #22c55e;
    color: #052e16;
}

.onboarding-btn-next:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.onboarding-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.onboarding-dots {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.onboarding-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6b7280;
    transition: background 0.2s, transform 0.2s;
}

.onboarding-dot.active {
    background: #fff;
    transform: scale(1.15);
}

.onboarding-skip {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0;
    min-height: auto;
    min-width: auto;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.onboarding-skip:hover {
    color: #e5e7eb;
}