/* ============================================================
   MODALS.CSS — Centralized Modal Styles for Fishing Logger
   ============================================================
   All modal layout, overlay, header, close button, and responsive
   rules live here. Individual templates should NOT contain modal CSS.
   
   Modal IDs:
   - #fl-catch-upload-modal     → Ajouter une prise
   - #cf_catch_edit_modal       → Détails & Modification
   - .fl-js-post-modal          → Créer une publication
   - #fl-catches-modal          → Prises de [user]
   - #fl-image-modal            → Image Lightbox
   ============================================================ */

/* ------------------------------------------------
   1. BODY SCROLL LOCK
   ------------------------------------------------ */
body.fl-modal-open-locked {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ------------------------------------------------
   2. SHARED OVERLAY (Frosted Glass Form Modals)
   ------------------------------------------------
   Used by: catch upload, edit, post, catches viewer
*/
.fl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ------------------------------------------------
   3. SHARED CONTAINER (Dialog / Content)
   ------------------------------------------------ */
.fl-modal-container {
    background: rgba(20,25,8,0.97);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ------------------------------------------------
   4. SHARED HEADER
   ------------------------------------------------ */
.fl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* ------------------------------------------------
   5. SHARED TITLE
   ------------------------------------------------ */
.fl-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9A227;
    text-align: left;
}

/* ------------------------------------------------
   6. SHARED CLOSE BUTTON
   ------------------------------------------------ */
.fl-modal-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
    background: rgba(107,122,42,0.15);
    border: none;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
    outline: none;
}
.fl-modal-close-btn:hover {
    background: rgba(107,122,42,0.3);
}
.fl-modal-close-btn span {
    font-size: 22px;
    color: #D0D8B0;
    line-height: 1;
    pointer-events: none;
}

/* ------------------------------------------------
   7. SHARED BODY
   ------------------------------------------------ */
.fl-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* ------------------------------------------------
   8. SHARED SUBMIT BUTTON (Purple gradient)
   ------------------------------------------------ */
.fl-modal-submit {
    width: 100%;
    background: linear-gradient(135deg, #6B7A2A 0%, #3D5016 100%);
    color: #fff !important;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(107, 122, 42, 0.35);
    letter-spacing: -0.01em;
}
.fl-modal-submit:hover {
    background: linear-gradient(135deg, #8A9A3A, #3D5016);
    transform: scale(1.02);
}
.fl-modal-submit:active {
    transform: scale(0.98);
}
.fl-modal-submit:disabled {
    background: #e4e6eb;
    color: #bcc0c4 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ================================================
   PER-MODAL OVERRIDES — DESKTOP
   ================================================ */

/* --- CATCH UPLOAD (#fl-catch-upload-modal) ---
   Container = .fl-apple-catch-form (styled in apple-ui.css)
   The form IS the container (has its own bg, padding, radius)
*/
#fl-catch-upload-modal .fl-modal-dialog {
    position: relative;
    z-index: 10;
    width: auto;
    max-width: 95%;
    background: transparent !important;
}
#fl-catch-upload-modal .fl-apple-catch-form {
    margin: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: rgba(20,25,8,0.97) !important;
    color: #D0D8B0 !important;
    border-radius: 18px !important;
}
#fl-catch-upload-modal .fl-apple-catch-form .fl-modal-title,
#fl-catch-upload-modal .fl-apple-catch-form h2 {
    color: #C9A227 !important;
}
#fl-catch-upload-modal .fl-apple-catch-form label,
#fl-catch-upload-modal .fl-apple-catch-form .fl-ranking-toggle-label,
#fl-catch-upload-modal .fl-apple-catch-form .fl-required {
    color: #D0D8B0 !important;
}
#fl-catch-upload-modal .fl-apple-catch-form input[type="number"],
#fl-catch-upload-modal .fl-apple-catch-form input[type="text"],
#fl-catch-upload-modal .fl-apple-catch-form select,
#fl-catch-upload-modal .fl-apple-catch-form textarea {
    background: rgba(12,15,4,0.85) !important;
    border-color: rgba(107,122,42,0.35) !important;
    color: #D0D8B0 !important;
}
#fl-catch-upload-modal .fl-ranking-proof-box {
    background: rgba(26,30,8,0.8) !important;
    border-color: rgba(107,122,42,0.25) !important;
}
#fl-catch-upload-modal .fl-modal-close-btn span {
    color: #D0D8B0 !important;
}
#fl-catch-upload-modal .fl-file-name {
    color: #8A9A3A !important;
}

/* --- SESSION MODAL (#fl-sess-modal-overlay) ---
   Same pattern as catch upload
*/
#fl-sess-modal-overlay .fl-modal-dialog {
    position: relative;
    z-index: 10;
    width: 750px;
    max-width: 95%;
    background: transparent !important;
}
#fl-sess-modal-overlay .fl-apple-catch-form {
    margin: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
/* Icône calendrier visible sur fond sombre — rendu natif en mode sombre (icône blanche) */
#fl-sess-modal-overlay input[type="date"] {
    color-scheme: dark;
}

/* --- EDIT MODAL (#cf_catch_edit_modal) ---
   Container = .fl-apple-catch-form inside .fl-modal-dialog
*/
#cf_catch_edit_modal .fl-modal-dialog {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: transparent !important;
}
#cf_catch_edit_modal > .fl-modal-dialog > .fl-apple-catch-form {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    padding-bottom: 0 !important;
    background: rgba(20,25,8,0.97);
    border-radius: 18px;
}
#cf_catch_edit_modal #cf_catch_edit_body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    padding-bottom: 24px;
}
#cf_catch_edit_modal select {
    min-height: 48px !important;
    height: auto !important;
    padding: 12px 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* --- POST MODAL (.fl-js-post-modal) ---
   Uses .fl-modal-dialog as container
*/
.fl-js-post-modal .fl-modal-dialog {
    background: rgba(20,25,8,0.98);
    width: 750px;
    max-width: 95%;
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201,162,39,0.18);
    border: none;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}
.fl-modal-overlay.fl-js-post-modal {
    animation: none !important;
    transition: none !important;
}
.fl-js-post-modal .fl-modal-dialog * {
    animation: none !important;
}
/* Post modal body padding */
.fl-js-post-modal .fl-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(201,162,39,0.25);
    background: rgba(201,162,39,0.04);
    border-radius: 18px 18px 0 0;
}
.fl-js-post-modal .fl-modal-body {
    padding: 18px 20px;
}

/* --- CATCHES MODAL (#fl-catches-modal) ---
   Uses .fl-modal-container as container
*/
#fl-catches-modal .fl-modal-container {
    padding: 32px 28px;
}

/* ================================================
   IMAGE LIGHTBOX (#fl-image-modal)
   ================================================ */
#fl-image-modal.fl-modal-overlay {
    background: rgba(0, 0, 0, 0.15);
    z-index: 2147483647 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
}
#fl-image-modal.fl-modal-overlay.fl-show {
    opacity: 1;
    pointer-events: auto;
}
.fl-image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    overflow: hidden;
}
.fl-image-modal-content img {
    pointer-events: auto;
}
#fl-image-viewport {
    pointer-events: auto;
}
/* Zoom control buttons */
.fl-zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
    line-height: 1;
}
.fl-zoom-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.fl-zoom-btn:active {
    transform: scale(0.9);
}
#fl-image-modal #fl-image-modal-close {
    top: 10px;
    right: 10px;
    position: absolute;
    pointer-events: auto !important;
    cursor: pointer;
    background: #f2f2f7;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: none;
    z-index: 99999;
    padding: 0;
}
#fl-image-modal #fl-image-modal-close span {
    font-size: 22px;
    color: #8e8e93;
    line-height: 1;
    pointer-events: none;
}
#fl-image-modal #fl-image-modal-close:hover {
    background: #e5e5ea;
}

/* ================================================
   MOBILE — FULL SCREEN MODALS
   ================================================ */
@media screen and (max-width: 768px) {

    /* --- SHARED: All form modals go full-screen --- */
    .fl-modal-overlay {
        padding: 0 !important;
    }

    .fl-modal-container {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(20,25,8,0.97) !important;
        flex: 1 1 auto !important;
    }

    .fl-modal-title {
        font-size: 1.2rem !important;
    }

    .fl-modal-close-btn {
        width: 36px !important;
        height: 36px !important;
    }

    /* --- CATCH UPLOAD — Mobile full-screen --- */
    #fl-catch-upload-modal .fl-modal-dialog {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: 100% !important;
        margin: 0 !important;
        background: transparent !important;
    }
    #fl-catch-upload-modal .fl-apple-catch-form {
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100% !important;
        max-height: 100% !important;
        padding: 16px 16px 0 16px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        background: rgba(20,25,8,0.97) !important;
    }

    /* --- EDIT MODAL — Mobile full-screen --- */
    #cf_catch_edit_modal .fl-modal-dialog {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: 100% !important;
        margin: 0 !important;
        background: transparent !important;
    }
    #cf_catch_edit_modal > .fl-modal-dialog > .fl-apple-catch-form {
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: none !important;
        padding: 16px 16px 0 16px !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: rgba(20,25,8,0.97) !important;
    }
    #cf_catch_edit_modal #cf_catch_edit_body {
        max-height: none;
        flex: 1 1 0;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
    }
    /* Prevent iOS auto-zoom */
    #cf_catch_edit_modal input,
    #cf_catch_edit_modal select,
    #cf_catch_edit_modal textarea {
        font-size: 16px !important;
    }
    #cf_catch_edit_modal .fl-half-row-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* --- POST MODAL — Mobile full-screen --- */
    .fl-modal-overlay.fl-js-post-modal {
        padding: 0 !important;
    }
    .fl-js-post-modal .fl-modal-dialog {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border: none !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        background: rgba(20,25,8,0.97) !important;
    }
    .fl-js-post-modal .fl-modal-header {
        height: 50px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(107,122,42,0.25);
    }
    .fl-js-post-modal .fl-modal-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 12px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Post modal — compact mobile elements */
    .fl-js-post-modal .fl-user-row { margin-bottom: 10px; gap: 10px; flex-shrink: 0; }
    .fl-js-post-modal .fl-user-avatar { width: 36px; height: 36px; }
    .fl-js-post-modal .fl-user-name { font-size: 15px; }
    .fl-js-post-modal .fl-privacy-selector { font-size: 16px !important; padding: 4px 8px; border-radius: 6px; }
    .fl-js-post-modal .fl-feed-content-input { flex: 1; min-height: 120px; font-size: 16px !important; margin-bottom: 10px; line-height: 1.5; }
    .fl-js-post-modal .fl-feed-post-form-v2 { flex: 1; display: flex; flex-direction: column; }
    .fl-js-post-modal .fl-feed-post-form-v2 > div:has(select[name='cf_feeling']) { flex-shrink: 0; margin-bottom: 10px; }
    .fl-js-post-modal select[name='cf_feeling'] { font-size: 16px !important; padding: 8px 14px; border-radius: 20px; height: 40px; }
    .fl-js-post-modal #fl-link-container input,
    .fl-js-post-modal #fl-tag-search { font-size: 16px !important; padding: 8px 14px; height: 40px; }
    .fl-js-post-modal .fl-media-preview img,
    .fl-js-post-modal .fl-media-preview video { max-height: 200px; }
    .fl-js-post-modal .fl-media-preview-container { flex-shrink: 0; margin-bottom: 10px; }
    .fl-js-post-modal .fl-add-to-post { flex-shrink: 0; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; }
    .fl-js-post-modal .fl-add-to-post span { font-size: 13px; }
    .fl-js-post-modal .fl-tool-icon { padding: 10px; min-width: 44px; min-height: 44px; }
    .fl-js-post-modal .fl-tool-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
    .fl-js-post-modal .fl-modal-submit { flex-shrink: 0; padding: 14px; font-size: 16px; border-radius: 10px; margin-top: auto; }
    .fl-js-post-modal .fl-upload-progress-container { flex-shrink: 0; }
    /* Prevent iOS auto-zoom */
    .fl-js-post-modal .fl-feed-content-input,
    .fl-js-post-modal .fl-privacy-selector,
    .fl-js-post-modal select,
    .fl-js-post-modal input,
    .fl-js-post-modal textarea { font-size: 16px !important; }

    /* --- SESSION MODAL — Mobile full-screen --- */
    #fl-sess-modal-overlay .fl-modal-dialog {
        position: absolute !important;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        height: 100% !important;
        margin: 0 !important;
        background: transparent !important;
    }
    #fl-sess-modal-overlay .fl-apple-catch-form {
        border-radius: 0 !important;
        box-shadow: none !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: none !important;
        padding: 16px 16px 0 16px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: rgba(20,25,8,0.97) !important;
    }
    /* Prevent iOS auto-zoom */
    #fl-sess-modal-overlay input,
    #fl-sess-modal-overlay select,
    #fl-sess-modal-overlay textarea { font-size: 16px !important; }

    /* --- CATCHES MODAL — Mobile full-screen --- */
    #fl-catches-modal.fl-modal-overlay {
        padding: 0 !important;
        margin: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2147483647 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        border-radius: 0 !important;
    }
    #fl-catches-modal .fl-modal-container {
        padding: 16px 16px 0 16px !important;
    }
    #fl-catches-modal .fl-modal-body {
        padding: 0 !important;
        padding-bottom: 16px !important;
    }
    /* Cards compact on mobile */
    #fl-catches-modal .fl-catches-modal-list > div {
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    /* Photo grid: stack on mobile, shorter images */
    #fl-catches-modal .fl-catches-modal-list div[style*='display:grid'] {
        grid-template-columns: 1fr !important;
    }
    #fl-catches-modal .fl-catches-modal-list div[style*='height:350px'] {
        height: 220px !important;
    }
    /* Details grid: 2 columns on mobile */
    #fl-catches-modal .fl-catches-modal-list div[style*='grid-template-columns: repeat(4'] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* --- IMAGE LIGHTBOX — Mobile --- */
    .fl-image-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100svh;
    }
    #fl-image-popup-img {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 0;
        object-fit: contain;
    }
    #fl-image-modal #fl-image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.6);
    }
    .fl-zoom-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ------------------------------------------------
   FIX: .entry-content img { height: auto !important } (Astra theme)
   overrides inline height on avatar images → oval shape.
   We counter-override with !important for all plugin avatar classes.
   ------------------------------------------------ */
.fl-avatar-container img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
}
.fl-trigger-avatar,
.fl-user-avatar {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.fl-feed-avatar {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.fl-mini-avatar {
    height: 32px !important;
    width: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.fl-widget-avatar {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}


/* ============================================================
   FLATPICKR — Thème sombre fishing (override du thème dark CDN)
   ============================================================ */
.flatpickr-calendar {
    background: rgba(12, 15, 4, 0.98) !important;
    border: 1px solid rgba(107, 122, 42, 0.5) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
    border-bottom-color: rgba(107, 122, 42, 0.5) !important;
}
/* En-tête mois */
.flatpickr-months {
    background: rgba(12, 15, 4, 0.98) !important;
    border-bottom: 1px solid rgba(107, 122, 42, 0.25);
    padding: 4px 0;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #D0D8B0 !important;
    color: #D0D8B0 !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #C9A227 !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: rgba(12, 15, 4, 0.98) !important;
    color: #D0D8B0 !important;
    font-weight: 600;
}
.flatpickr-current-month input.cur-year {
    color: #D0D8B0 !important;
    font-weight: 600;
}
/* Jours de la semaine */
.flatpickr-weekdays {
    background: rgba(12, 15, 4, 0.98) !important;
}
span.flatpickr-weekday {
    background: transparent !important;
    color: #8A9A3A !important;
    font-weight: 600;
    font-size: 0.75rem;
}
/* Corps du calendrier */
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days {
    background: rgba(12, 15, 4, 0.98) !important;
}
/* Jours */
.flatpickr-day {
    color: #D0D8B0 !important;
    border-radius: 8px !important;
}

/* ── Hourly detail scroll container ── */
.fl-hourly-scroll {
    scrollbar-width: thin;
    scrollbar-color: #8A9A3A rgba(12,15,4,0.5);
}
.fl-hourly-scroll::-webkit-scrollbar {
    width: 6px;
}
.fl-hourly-scroll::-webkit-scrollbar-track {
    background: rgba(12,15,4,0.5);
    border-radius: 3px;
}
.fl-hourly-scroll::-webkit-scrollbar-thumb {
    background: #8A9A3A;
    border-radius: 3px;
}
.fl-hourly-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8c048;
}

/* Day separator row */
.fl-hourly-day-sep td {
    background: rgba(107,122,42,0.15);
    color: #C9A227;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 8px;
    border-top: 1px solid rgba(201,162,39,0.3);
    border-bottom: 1px solid rgba(201,162,39,0.3);
}
.flatpickr-day:hover {
    background: rgba(107, 122, 42, 0.35) !important;
    border-color: rgba(107, 122, 42, 0.6) !important;
    color: #D0D8B0 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #8A9A3A !important;
    border-color: #8A9A3A !important;
    color: #fff !important;
    font-weight: 700;
}
.flatpickr-day.today {
    border-color: #C9A227 !important;
    color: #C9A227 !important;
    font-weight: 700;
}
.flatpickr-day.today.selected {
    background: #8A9A3A !important;
    border-color: #8A9A3A !important;
    color: #fff !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(208, 216, 176, 0.3) !important;
}
.flatpickr-day.disabled {
    color: rgba(208, 216, 176, 0.2) !important;
}


