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;
}

.autofit-input {
    width: auto;
    min-width: 100%;
    max-width: 700px;
}






.table-containerMedications {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 270px; /* Adjust height as needed */
    max-width: 100%; /* or a fixed width like 1000px */
    position: relative;
    border: 1px solid #ddd; /* Adds a border around the table */
    margin-top: 10px;
    margin-bottom: 10px;
}


.table-containerOther {
    overflow-x: auto;
    width: 100%;
    position: relative;
    border: 1px solid #ddd; /* Adds a border around the table */
    margin-top: 10px;
    margin-bottom: 10px;
}



.tablePlus {
    table-layout: auto;
    min-width: 1200px;
    white-space: nowrap;
}

    /* Add borders to all cells */
    .tablePlus th, .tablePlus td {
        padding: 8px;
        text-align: left;
    }

/* Freeze Header Row */
thead tr {
    position: sticky;
    top: 0;
    background: white;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Freeze First Column */
.sticky-colPlus {
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Ensure header sticky column is above other cells */
thead .sticky-colPlus {
    z-index: 4;
}
/* Main Info group - Light Green */
.th-main-info {
    background-color: #d4edda; /* Light green background */
    color: #155724;
}

.btn-main-info {
    background-color: #c3e6cb; /* Slightly lighter green */
    color: #155724;
    border-color: #c3e6cb;
    transition: background-color 0.3s ease-in-out;
    font-weight:bold;
}

    .btn-main-info:hover {
        background-color: #b1dfbb; /* Darker green on hover */
        border-color: #a8d5a2;
    }

/* Beer's Criteria group - Light Blue */
.th-beers {
    background-color: #d1ecf1; /* Light blue background */
    color: #0c5460; /* Dark blue text */
}

.btn-beers {
    background-color: #bee5eb; /* Slightly lighter blue */
    color: #0c5460;
    border-color: #bee5eb;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
}

    .btn-beers:hover {
        background-color: #abdde5; /* Darker blue on hover */
        border-color: #98cdd5;
    }

/* Stop/Start Criteria group - Light Red */
.th-stopstart {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
}

.btn-stopstart {
    background-color: #f5c6cb; /* Slightly lighter red */
    color: #721c24;
    border-color: #f5c6cb;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;


}/* Stop/Start Criteria group - Light Red */


    .btn-stopstart:hover {
        background-color: #e5abab; /* Darker blue on hover */
        border-color: #d59898;
    }


.th-MOHSA {
    background-color: #f8f4d7; /* Light red background */
    color: #725b1c; /* Dark red text */
}

.btn-MOHSA {
    background-color: #f6eec5; /* Slightly lighter red */
    color: #725b1c;
    border-color: #f6eec5;
    transition: background-color 0.3s ease-in-out;
    font-weight: bold;
}

    .btn-MOHSA:hover {
        background-color: #f1ebb0; /* Darker red on hover */
        border-color: #e8e88b;
    }
