/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/
.fc .fc-event {
    background-color: var(--fc-event-bg-color) !important;
    border-color: var(--fc-event-border-color) !important;
    color: var(--fc-event-text-color) !important;
}

.fc-theme-standard .fc-event,
.fc-theme-standard .fc-event-dot {
    background-color: var(--fc-event-bg-color) !important;
    border-color: var(--fc-event-border-color) !important;
}

/* ==========================================
   FullCalendar – cubrir TODAS las vistas
   ========================================== */

/* Month */
.fc-daygrid-event {
    background-color: var(--fc-event-bg-color) !important;
    border-color: var(--fc-event-border-color) !important;
    color: var(--fc-event-text-color) !important;
}

/* Week / Day */
.fc-timegrid-event {
    background-color: var(--fc-event-bg-color) !important;
    border-color: var(--fc-event-border-color) !important;
    color: var(--fc-event-text-color) !important;
}

/* List view */
.fc-list-event,
.fc-list-event:hover {
    background-color: var(--fc-event-bg-color) !important;
    color: var(--fc-event-text-color) !important;
}

/* Event dot */
.fc-event-dot {
    background-color: var(--fc-event-bg-color) !important;
}

/* ===============================
   FullCalendar – centrar texto
   =============================== */

/* Eventos en Week / Day (timeGrid) */
.fc-timegrid-event .fc-event-main {
    display: flex;
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
    text-align: center;
    font-weight: 600;
}

/* Eventos en Month */
.fc-daygrid-event .fc-event-title {
    text-align: center;
    width: 100%;
    font-weight: 600;
}

/* Eventos en List */
.fc-list-event-title {
    text-align: center;
    width: 100%;
}

/* ==========================================
   FullCalendar – centrar título en timeGrid
   (Day/Week)
   ========================================== */

/* Quita padding que empuja el texto hacia arriba */
.fc .fc-timegrid-event .fc-event-main {
    padding: 0 !important;
    height: 100%;
}

/* Este es el contenedor real del contenido: hay que centrar aquí */
.fc .fc-timegrid-event .fc-event-main-frame {
    height: 100%;
    display: flex !important;
    align-items: center !important;
    /* centro vertical */
    justify-content: center !important;
    /* centro horizontal */
    text-align: center !important;
}

/* Asegura que el título ocupe todo */
.fc .fc-timegrid-event .fc-event-title-container,
.fc .fc-timegrid-event .fc-event-title {
    width: 100%;
    text-align: center !important;
    font-weight: 700;
}

/* ==========================================
   FullCalendar – centrar texto en TIMEGRID DAY
   ========================================== */

/* El harness debe estirarse al alto del evento */
.fc .fc-timegrid-event-harness,
.fc .fc-timegrid-event-harness-inset,
.fc .fc-timegrid-event-harness-abs {
    height: 100%;
}

/* El evento debe ocupar todo el alto disponible */
.fc .fc-timegrid-event {
    height: 100% !important;
}

/* Quita padding que empuja el título */
.fc .fc-timegrid-event .fc-event-main {
    padding: 0 !important;
    height: 100%;
}

/* Este es el contenedor real del contenido: centrar aquí */
.fc .fc-timegrid-event .fc-event-main-frame {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Título a ancho completo */
.fc .fc-timegrid-event .fc-event-title-container,
.fc .fc-timegrid-event .fc-event-title {
    width: 100%;
    text-align: center !important;
    font-weight: 700;
}

/* ==========================================
   Retaceo Detail - Action Buttons
   ========================================== */
.btn-fixed-width-retaceo {
    width: 250px;
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   Custom Calaca Branding Buttons
   ========================================== */
.btn-orange {
    background-color: #f1963b !important;
    border-color: #f1963b !important;
    color: #ffffff !important;
}

.btn-orange:hover, .btn-orange:focus, .btn-orange:active {
    background-color: #d97904 !important;
    border-color: #d97904 !important;
    color: #ffffff !important;
}

.btn-calaca-primary {
    background-color: #E30076 !important;
    border-color: #E30076 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.btn-calaca-primary:hover {
    background-color: #c20065 !important;
    border-color: #c20065 !important;
    color: #ffffff !important;
}

.btn-calaca-secondary {
    background-color: #0d6efd !important; /* Changed to a distinct blue */
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-calaca-success {
    background-color: #11B598 !important;
    border-color: #11B598 !important;
    color: #ffffff !important;
}

/* ==========================================
   Custom Borders & Utility
   ========================================== */
.border-calaca-pink-soft { border: 1px solid rgba(227, 0, 118, 0.2) !important; }
.border-calaca-blue-soft { border: 1px solid rgba(13, 110, 253, 0.2) !important; }
.border-calaca-green-soft { border: 1px solid rgba(17, 181, 152, 0.2) !important; }
.border-calaca-yellow-soft { border: 1px solid rgba(241, 150, 59, 0.2) !important; }

.bg-calaca-pink-subtle { background-color: rgba(227, 0, 118, 0.15) !important; }
.bg-calaca-blue-subtle { background-color: rgba(13, 110, 253, 0.15) !important; }
.bg-calaca-green-subtle { background-color: rgba(17, 181, 152, 0.15) !important; }
.bg-calaca-yellow-subtle { background-color: rgba(241, 150, 59, 0.15) !important; }

.text-calaca-pink { color: #E30076 !important; }
.text-calaca-blue { color: #0d6efd !important; }
.text-calaca-green { color: #11B598 !important; }
.text-calaca-yellow { color: #f1963b !important; }

.bg-light-success {
    background-color: #e8f5e9 !important;
}

.min-w-1500 {
    min-width: 1500px !important;
}

.min-h-70vh {
    min-height: 70vh !important;
}

.badge-id-operation {
    display: inline-block !important;
    min-width: 85px !important;
    border-radius: 4px !important;
}

.spinner-3rem {
    width: 3rem !important;
    height: 3rem !important;
}

/* Card Top Border Branding */
.card-border-top-pink { border-top: 3px solid #E30076 !important; }
.card-border-top-blue { border-top: 3px solid #0d6efd !important; } /* Distinct blue */
.card-border-top-green { border-top: 3px solid #11B598 !important; }
.card-border-top-yellow { border-top: 3px solid #f1963b !important; }

.text-122 { font-size: 1.22rem !important; }

/* ==========================================
   Premium Modals
   ========================================== */
.rounded-modal .modal-content {
    border-radius: 1.2rem !important;
    border: none !important;
    overflow: hidden !important;
}

.modal-pink-header {
    background-color: #E30076 !important;
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 1.25rem 1.75rem !important;
}

.modal-pink-header .modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.modal-pink-header .btn-close {
    filter: brightness(0) invert(1) !important; /* Make white */
}

/* Alternative Scroll Solution (Sticky Headers) */
.table-scroll-container {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
    border-bottom: 1px solid #eff2f7;
}

.table-scroll-container table {
    border-collapse: separate !important; /* Required for sticky borders */
    border-spacing: 0;
}

.table-scroll-container thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 10;
    background-color: #ffffff !important; /* Restore white background */
    border-top: none !important;
    border-bottom: 2px solid #eff2f7 !important;
}

/* Fix for potential column misalignment in sticky */
.table-scroll-container table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================
   Flatpickr Settings
   Prevents static calendar wrappers from
   displacing the input horizontally
   ========================================== */
.flatpickr-wrapper {
    display: block !important;
    width: 100% !important;
}