/*
*/
/* 
    Created on : Nov 10, 2025, 4:04:21 PM
    Author     : Richard.Dumphrey
*/

.nav-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

    /* Ensure icons and text share the same color */
    .nav-tabs .nav-link i {
        color: inherit !important;
    }

    /* Hover + active states (color darkens slightly) */
    .nav-tabs .nav-link.text-primary:hover,
    .nav-tabs .nav-link.text-primary.active {
        color: var(--bs-primary);
    }

    .nav-tabs .nav-link.text-success:hover,
    .nav-tabs .nav-link.text-success.active {
        color: var(--bs-success);
    }

    .nav-tabs .nav-link.text-danger:hover,
    .nav-tabs .nav-link.text-danger.active {
        color: var(--bs-danger);
    }

/* Center and style DataTables "No data" message */
table.dataTable td.dataTables_empty {
    text-align: center; /* Center horizontally */
    vertical-align: middle; /* Center vertically */
    /*    height: 100px;                Controls vertical centering area */
    color: #6c757d; /* Bootstrap secondary text color */
    font-style: italic; /* Optional: italics */
    font-size: 1rem; /* Adjust for readability */
}

#addAppointment .modal-body {
    overflow: visible;
}
/* Pill styling */
.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: #3699FF !important; /* Metronic primary */
    border: none !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 15px !important;
    font-weight: 600 !important; /* Bold text */
    font-size: 13px !important;
}

/* Make the X white */
.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 6px !important;
    font-weight: bold !important;
    opacity: 1 !important;
}

    /* Hover effect on the X */
    .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
        color: #000 !important; /* Optional: black on hover */
    }

/* Force the remove "x" inside pills to be white */
.select2-container .select2-selection--multiple
.select2-selection__choice__remove {
    color: #fff !important;
    opacity: 1 !important;
}

    /* Metronic sometimes uses a pseudo-element for the X */
    .select2-container .select2-selection--multiple
    .select2-selection__choice__remove::before {
        color: #fff !important;
        opacity: 1 !important;
    }

/* Make pill text bold + white */
.select2-container .select2-selection--multiple
.select2-selection__choice {
    background-color: #3699FF !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 15px !important;
    padding: 3px 10px !important;
}

.select2-selection.is-invalid {
    border-color: #f64e60 !important;
}

.border-thick {
    border: 3px solid #e4e6ef;
}

/* Invoice Details */

.card-header a {
    cursor: pointer;
    color: inherit;
}

    .card-header a:hover {
        text-decoration: none;
    }

.card-custom {
    transition: box-shadow .2s ease;
}

    .card-custom:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
    }

.font-size-xs {
    font-size: 0.75rem;
}

.line-height-sm {
    line-height: 1.25;
}

.border {
    border-color: #EBEDF3 !important;
}

.card-header {
    border-bottom: 1px solid #EBEDF3;
}

.menu-separator {
    height: 1px;
    margin: 10px 0;
    background-color: #e0e0e0; /* or your theme color */
    list-style: none;
}

/* Smooth animation for password meter bars */
#password_strength_meter {
    display: flex;
    gap: 2px;
}

    #password_strength_meter div {
        flex-grow: 1;
        height: 5px;
        border-radius: 2px;
        background-color: #ccc;
        transition: background-color 0.3s ease;
    }

/* Smooth animation for password meter bars */
#password_strength_meter_reset div {
    flex: 1;
    height: 5px;
    margin-right: 2px;
    background-color: #E0E0E0;
    border-radius: 2px;
}

.cursor-pointer {
    cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none; /* remove Bootstrap SVG */
    width: 2.2rem;
    height: 2.2rem;
    color: #0d6efd;
}

    .carousel-control-prev-icon::after,
    .carousel-control-next-icon::after {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        border-top: 6px solid currentColor;
        border-right: 6px solid currentColor;
    }

    .carousel-control-prev-icon::after {
        transform: rotate(-135deg);
    }

    .carousel-control-next-icon::after {
        transform: rotate(45deg);
    }

.instruction-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 220px; /* MUST match carousel height */
    overflow: hidden; /* prevents large images escaping */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.step-badge {
    position: absolute;
    top: 10px; /* distance from top of slide */
    left: 50%;
    transform: translateX(-50%);
    background: #0d6efd; /* Automfix / Metronic primary */
    color: #fff;
    font-weight: 600;
    font-size: 2.0rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    z-index: 10;
}

.automfix-modal-close {
    right: 20px;
    top: 20px;
    font-size: 4rem; /* SIZE */
    color: #0d6efd; /* COLOR */
    opacity: 1; /* remove Bootstrap fade */
    z-index: 1051;
}

    .automfix-modal-close:hover {
        color: #0b5ed7; /* darker on hover */
    }

/* Pagination */
.pagination .page-link {
    border: 0 !important;
    background: transparent;
    padding: 6px 10px;
}

.pagination .page-item.active .page-link {
    background-color: #3699ff; /* Metronic primary */
    color: #fff;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background-color: #f3f6f9;
    border-radius: 4px;
}

/* census wizard formatting */

/*.census-table-wrapper {
    max-height: 70vh;
    overflow: auto;
    border: none;
}

.census-table {
    border-collapse: separate;
    border-spacing: 0;
}*/

/* Freeze header */
/*.census-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #F3F6F9;
        white-space: nowrap;
    }*/

/* Freeze first column */
/*.census-table td:first-child,
    .census-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 9;
        background: white;
    }*/

/* Top-left corner */
/*.census-table thead th:first-child {
        z-index: 11;
        background: #F3F6F9;
    }*/

/* Nice shadow */
/*.census-table thead th {
        box-shadow: inset 0 -1px 0 #E4E6EF;
    }

    .census-table td:first-child {
        font-weight: 600;
    }*/

/* =====================================================
   Census Table Formatting
   ===================================================== */


/* Main scroll area */

.census-table-wrapper {
    max-height: 70vh;
    overflow: auto;
    border: none;
}


/* Table */

.census-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}


    /* Keep cells aligned */

    .census-table th,
    .census-table td {
        vertical-align: middle;
        white-space: nowrap;
    }


    /* =====================================================
   Frozen Header
   ===================================================== */

    .census-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #F3F6F9;
        box-shadow: inset 0 -1px 0 #E4E6EF;
    }



    /* =====================================================
   Frozen First Column
   ===================================================== */


    .census-table td:first-child,
    .census-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 9;
        background: #FFFFFF;
    }



    /* Top-left intersection */

    .census-table thead th:first-child {
        z-index: 11;
        background: #F3F6F9;
    }


    /* First column emphasis */

    .census-table td:first-child {
        font-weight: 600;
    }


    /* =====================================================
   Borders
   ===================================================== */

    .census-table th,
    .census-table td {
        border-bottom: 1px solid #E4E6EF;
        border-right: 1px solid #E4E6EF;
    }

#schoolEmploymentStep {
    pointer-events: none !important;
    cursor: default !important;
}

    #schoolEmploymentStep .wizard-label {
        pointer-events: none !important;
    }
#schoolEmploymentStep {
    pointer-events: none !important;
    cursor: default !important;
}

    #schoolEmploymentStep .wizard-label {
        pointer-events: none !important;
    }

#personnelStep {
    pointer-events: none !important;
    cursor: default !important;
}

    #personnelStep .wizard-label {
        pointer-events: none !important;
    }


/* =====================================================
   Special Disabilities table
   ===================================================== */

.census-grid-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

    .census-grid-container table {
        width: max-content;
        min-width: 100%;
    }

.wizard-body,
.wizard-body .row,
.wizard-body .col-xl-12 {
    min-width: 0;
    max-width: 100%;
}

.school-detail-value {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.school-info-row {
    border-bottom: 1px solid #ebedf3;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

    .school-info-row:last-child {
        border-bottom: none;
    }

/* =====================================================
       Global spinner
       ===================================================== */

.global-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .global-spinner.active {
        display: flex;
    }

.spinner-container {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.spinner-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
}
