html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* CALPIA added everything below this*/
.navbar-brand {
    width: 200px;
    background-repeat: no-repeat;
    background-image: url('../logo.png');
    direction: ltr;
    text-indent: -9999px;
}

body {
    background-color: #fcfdfd;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-24 {
    margin-top: 24px;
}

.ml-0 {
    margin-left: 0px;
}

.mr-0 {
    margin-right: 0px;
}

.pl-0 {
    padding-left: 0px;
}

.pr-0 {
    padding-right: 0px;
}

.pt-0 {
    padding-top: 0px;
}

.pb-0 {
    padding-bottom 0px;
}

.mb-70 {
    margin-bottom: 70px;
}

.height-50 {
    height: 50px;
}

.pr-20 {
    padding-right: 20px;
}

.pl-20 {
    padding-left: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-10 {
    margin-right: 10px;
}

.width-60 {
    width: 60px;
}

.mt-70 {
    margin-top: 70px;
}

.mt-15 {
    margin-top: 15rem;
}

div.table {
    display: table;
    border: none;
    border-collapse: collapse;
}

form.tr, div.tr {
    display: table-row;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

div.table div.td:first-child {
    border-left: none;
}

div.table div.td:last-child {
    border-right: none;
}

span.td, span.th, div.td {
    display: table-cell;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

span.th {
    font-weight: bold;
}

div.thead {
    display: table-header-group;
}

div.tbody {
    display: table-row-group;
}

.mt-6 {
    margin-top: 6px;
}

.height-30 {
    height: 30px;
}

.font-10 {
    font-size: 10px;
}

.mr-4 {
    margin-right: 4px;
}

.mt-2 {
    margin-top: 2px;
}

.delivDt:disabled {
    background-color: #F1EBE4;
    /*border: 0px solid #F1EBE4;*/
}

.delivDtChanged {
    background-color: #FDFF93;
}

.disabled {
    /*color: #F1EBE4;*/
}

.zFormTitle {
    background-color: #AFCBD5;
    width: 350px;
    height: 45px;
    display: flex;
    justify-content: center;
    font-size: 19px;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: relative;
    z-index: -100;
    left: -12px;
    top: 12px;
}

.zFormBackground {
    padding: 15px;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #cddee5;
}

#zLogin.zFormBackground {
    width: 500px;
}

.zSubFormBackground {
    padding: 15px;
    margin: 5px;
    border-radius: 10px;
    border: 1px solid #99bdca;
    background-color: #F1EBE4;
}

.zProductBackground {
    padding: 15px;
    margin-top: 0px;
    margin-bottom: 10px;
    border-radius: 15px !important;
    background-color: #edf3f6;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

#zHeader.container {
    padding: 15px;
    margin: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #c9e1e5;
}

/*#zBody.container {
    padding: 15px;
    margin: 0px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: white;
    border: 1px solid #e8e8e8
}*/

.nav-tabs {
    margin-bottom: 0px;
}

.btn-calpia {
    color: #FFF !important;
    background-color: #329CCD;
    font-weight: bold;
    border-color: #2f3e46;
    letter-spacing: 0.05em;
    border-radius: 10px;
    font-size: 16px;
}

.btn.btn-calpia:hover,
.btn.btn-calpia:active,
.btn.btn-calpia:focus,
.btn.btn-calpia.active {
    /* let's darken #004E64 a bit for hover effect */
    background-color: #5BB0D7;
    color: #E1E9F0 !important;
    border-color: #2f3e46;
}

.btn-calpia-sm {
    font-weight: normal !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    padding: 3px !important;
}

.form-control {
    border-radius: 10px 10px;
}

.form-select {
    border-radius: 10px 10px;
}

#attachmentsTable .btnDownloadAtch {
    margin-right: 10px;
}

.fa-download, .fa-trash-alt {
    color: #329CCD;
}

    .fa-download:hover, .fa-trash-alt:hover {
        color: #5BB0D7;
    }

/* Tooltip container */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip-text {
    font-weight: bold;
    visibility: hidden;
    width: 120px;
    background-color: #5BB0D7;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip text when hovering over the container */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.calpia-nav-style a, .calpia-nav-style button {
    font-size: 22px !important;
    color: white !important;
    margin-right: 10px;
    margin-left: 10px;
}

    .calpia-nav-style a:hover, .calpia-nav-style button:hover {
        font-size: 22px;
        color: antiquewhite !important;
    }


.adminBody .nav {
    margin-left: 10px !important;
}

.adminBody button {
    color: black;
}

.adminBody .nav-link {
    margin-right: 3px;
    color: #000;
    background-color: #F7FAFB;
    font-weight: bold;
    border-color: #2f3e46;
    letter-spacing: 0.05em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 15px;
}

    .adminBody .nav-link.active {
        color: #FFF;
        background-color: #329CCD;
        border-color: #2f3e46;
    }

    .adminBody .nav-link:hover {
        color: #000;
        background-color: #F7F2EF;
        border-color: #2f3e46;
    }


/* Create a custom checkbox */
.calpia-checkbox {
    width: 20px;
    height: 20px;
}

.zRequiredProduct {
    border: 4px solid #F5B43A;
    background-color: #F7C76B !important;
}

.zRequiredProductTxt {
    font-weight: bold;
    font-size: 18px;
    color: #B4361E;
    text-align: center;
}

.table-row .row {
    display: flex;
    border-bottom: 1px solid #93AAB7;
}

.table-row .cell {
    padding: 8px;
    border-right: 1px solid #93AAB7;
}

.cell:last-child {
    border-right: none;
}

.header {
    height: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: bold;
    font-size: 19px;
    background-color: #f8f9fa;
}

.zFormPicker {
    width: 500px;
}

@media (max-width: 500px) {
    .zFormPicker {
        width: 100%;
    }
}


select option:checked {
    background-color: #329CCD;
    color: white;
}

select[multiple] {
    height: 300px;
    background-color: white;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.calpia-search{
    padding:10px;
    margin:10px;
    border: 1px solid grey;
}

.zmodal {
    min-width: 768px;
}

.modal-body h3{
    font-size: 18px !important;
}

.multi-column-list {
    columns: 2; /* Number of columns */
    -webkit-columns: 2;
    -moz-columns: 2;
    column-gap: 20px; /* Space between columns */
}

    .multi-column-list li {
        break-inside: avoid-column; /* Ensure items don't break across columns */
    }

/* 1. Common Overlay Style (Same as before) */
.spinner-overlay {
    position: fixed; /* Sit on top of the page content */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
    z-index: 9999; /* Specify a high z-index */
    display: flex; /* Use flexbox to center spinner */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    /* Optional: Hide by default, show with a class or JS */
    /* display: none; */
}

    /* Optional: Class to show the overlay */
    .spinner-overlay.show {
        display: flex;
    }


/* --- Style 4: Gradient Spinner --- */

.spinner-gradient {
    width: 100px; /* Size of the spinner */
    height: 100px;
    border-radius: 50%; /* Make it a circle */
    position: relative; /* Needed for the pseudo-element mask */
    z-index: 10000; /* Higher than the overlay */
    /* The Gradient Background */
    /* Adjust colors and rotation ('from Xdeg') as needed */
    background: conic-gradient( from 0deg, #3498db, /* Blue */
    #9b59b6, /* Purple */
    #e74c3c, /* Red */
    #f1c40f, /* Yellow */
    #2ecc71, /* Green */
    #3498db /* Blue again for smooth transition */
    );
    animation: spin 1.5s linear infinite; /* Apply rotation */
}

    /* The Mask: Create the ring effect */
    .spinner-gradient::before {
        content: '';
        position: absolute;
        top: 10px; /* Thickness of the ring = 5px */
        left: 10px;
        right: 10px;
        bottom: 10px;
        background-color: #93AAB7; /* Mask color - **IMPORTANT** */
        border-radius: 50%;
        z-index: 1; /* Ensure mask is on top of the gradient background */
    }

/* --- Keyframe Animations (Reusing spin) --- */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}