/* Base HTML Styles */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

/* Root Variables */
:root {
    --body-bg: white;
    --layer-on-bg: rgba(220, 220, 220, 0.1);
    --border: solid rgb(220, 220, 220) 1px;
    --rounding: .3pc;
    --spacing: 1em;
    --res-status-color: white;
    --res-s-background-color: #0dcaf0; /*submitted*/
    --res-rs-background-color: #0dcaf0; /*submitted*/
    --res-sr-background-color: purple; /*Ready for Supervisor Approval*/
    --res-ra-background-color: cadetblue; /*ready for approve*/
    --res-af-background-color: blue; /*Awaiting Fee Payment*/
    --res-p-background-color: #0d6efd; /*Processing*/
    --res-r-background-color: #ffc107; /*Returned to Applicant*/
    --res-a-background-color: #198754; /*Approved*/
    --res-c-background-color: #dc3545; /*Canceled*/
    --res-d-background-color: #6f42c1; /*Denied*/
}

/* Calendar Styles */
advanced-calendar, advanced-timespan {
    border: var(--border);
    border-radius: var(--rounding);
}

advanced-calendar {
   /* height: 450px;*/
}

/* Flexbox Utility Classes */
.auto-cols {
    display: flex;
/*    color: khaki
*/}

.auto-cols > * {
    flex: 1;
    flex-basis: 0px;
    margin-right: 0.5em;
    margin-left: 0.5em;
}

.auto-cols > *:last-of-type {
    margin-right: 0px;
}

.auto-cols > *:first-of-type {
    margin-left: 0px;
}

/* Form Labels */
.form-label {
    margin-top: 1em;
}

/* Form Submit Button */
/*form button[type=submit] {
    padding: 0.3em 2em;
    float: right;
}
*/
/* Card Header with Button */
.card-header-with-button {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .card-header-with-button p {
        font-size: 1.3em;
        flex: 1;
        margin: 0px;
    }

/* Navbar Styles */
nav {
    background: #004080;
}

/*nav *, .nav-link {
    color: white !important;
}
*/
.nav-link {
    font-size: 1.2em;
}

/* This is for User Name Icon */
.navbar .fa-user-circle::before {
    vertical-align: -0.18em; 
}

#navbar-logo {
    height: 60px;
}

a.navbar-brand {
    display: flex;
    align-items: center;
}

    a.navbar-brand > div {
        display: flex;
        flex-direction: column;
        margin-left: 1em;
    }

        a.navbar-brand > div > h1 {
            font-size: 1.3em;
            margin-bottom: 0px;
        }

        a.navbar-brand > div > p {
            font-size: 0.6em;
            margin: 0px;
            line-height: 1;
            font-style: italic;
        }

/* Action Row Icons */
td.action-row > i {
    cursor: pointer;
    user-select: none;
    margin-right: 0.5em;
}

    td.action-row > i:last-of-type {
        margin-right: 0px;
    }

    td.action-row > i:hover {
        color: cornflowerblue;
    }

.action-row {
    text-align: center;
}

/* Facility Option Container */
.facility-option-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.facility-option {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    width: 350px;
}

/* Facility Grid Image */
.facility-grid-image {
    height: 200px;
    background-size: cover;
    background-position: center center;
    border-radius: 0.3pc;
}

.facility-grid-image-placeholder {
    height: 200px;
    background-color: rgb(180, 180, 180);
    border-radius: 0.3pc;
    font-size: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Loading Blocker */
#loading-blocker {
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    color: #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(100, 100, 100, 0.8);
    backdrop-filter: blur(3px);
    z-index: 9999;
}

/* Facility Card */
.facility-card {
    height: 350px;
    display: flex;
    flex-direction: column;
}

    .facility-card img {
        height: 200px;
        object-fit: cover;
    }

    .facility-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

/* Status Filter Styles */
.status-filter .status-checkbox {
    display: inline-block;
    margin: 2px;
    padding: 3px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .status-filter .status-checkbox input[type="checkbox"] {
        margin-right: 5px;
    }

/* Filters Section */
.filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f4f8;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Table Responsive Styles */
/*.table-responsive {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
}*/

/* Dashboard Header */
.dashboard-header {
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: #014c82;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    margin-bottom: 10px;
    text-align: left;
    width: 100%;
}

/* Dashboard Container */
.dashboard-container {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Container Fluid */
.container-fluid {
    padding: 20px;
    background-color: #f7f9fc;
}

/* Pagination Styles */
/*.pagination .page-link {
    color: #0b69ab;
    background-color: #ffffff;
    border: 1px solid #6e9fc3;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #6e9fc3;
    border-color: #6e9fc3;
}*/

/* Button Styling */
/*.btn {
    background-color: #0b69ab;
    color: #ffffff;
    border: none;
}
*/

/* Filters Row Styling */
.filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

    .filters-row .page-size-container,
    .filters-row input[type="text"],
    .filters-row .excel-reset-container {
        flex: 1;
        max-width: 200px;
    }

    .filters-row input[type="text"] {
        flex: 2;
        max-width: 35%;
    }

/* Page Size Container Styling */
.page-size-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

    .page-size-container label {
        margin: 0;
        white-space: nowrap;
    }

    .page-size-container select {
        max-width: 60px;
        flex-shrink: 0;
        padding-right: 20px;
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIHZlcnNpb249IjEuMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUwxMCAxTDYgNkwyIDEiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4=') no-repeat right center;
        appearance: none;
        -webkit-appearance: none; /* For Safari */
    }

/* Select Element Styling */
select {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIHZlcnNpb249IjEuMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUwxMCAxTDYgNkwyIDEiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
    appearance: none;
    -webkit-appearance: none;
}
/* Status Filter Styles */
.status-filter .status-checkbox {
    display: inline-block;
    margin: 2px;
    padding: 3px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .status-filter .status-checkbox input[type="checkbox"] {
        margin-right: 5px;
    }

/* Filters Section */
.filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f4f8;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

/* Table Responsive Styles */
.table-responsive {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
}

/* Dropdown Arrow Styling */
.filters select {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIHZlcnNpb249IjEuMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMUwxMCAxTDYgNkwyIDEiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4=');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
    appearance: none;
    -webkit-appearance: none;
}

/* Excel and Reset Buttons Green Styling */
.filters-row .btn-reset,
.filters-row .btn-excel {
    background-color: #28a745 !important; /* Green */
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
}

/* Specific adjustments to make the buttons appear as one */
.filters-row .btn-reset {
    border-radius: 4px 0 0 4px;
}

.filters-row .btn-excel {
    border-radius: 0 4px 4px 0;
}

    .filters-row .btn-reset:hover,
    .filters-row .btn-excel:hover,
    .filters-row .btn-reset:focus,
    .filters-row .btn-excel:focus,
    .filters-row .btn-reset:active,
    .filters-row .btn-excel:active {
        background-color: #218838 !important; /* Darker green on hover and active */
        color: white;
        border: none;
    }

/* Index page Container for the whole page */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Main heading */
.Index-page-header {
    font-size: 28px; /* Smaller size for main heading */
    font-weight: bold;
    color: white;
    background-color: #014c82; /* Match with nav bar background */
    padding: 15px 20px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* Quick Access text */
.quick-access-text {
    font-size: 18px; /* Slightly smaller size */
    margin-top: 10px;
}

/* Most Used Links & Resources heading */
.most-used-links-header {
    font-size: 22px; /* Reduced size */
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}



/* Facility Grid */
.facility-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    position: relative; 
    z-index: 0;
}

/* Facility Tile */
.facility-tile {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
    z-index: 0; 
    overflow: visible;
}

    .facility-tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

/* Facility Image */
.facility-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.facility-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 10px;
    color: #999;
    font-size: 24px;
}

/* Facility Info */
.facility-info {
    margin-top: 15px;
}

/* Facility Name */
.facility-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Facility Location */
.facility-location {
    font-size: 14px;
    color: #666;
}

.facility-location a {
    color: #337ab7;
    text-decoration: none;
}

.facility-location a:hover {
    text-decoration: underline;
}

/* Facility Links */
.facility-links {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

    .facility-links a {
        color: #337ab7;
        text-decoration: none;
    }

        .facility-links a:hover {
            text-decoration: underline;
        }
/*Facility PopOver form Facilities Page*/
.facility-info-trigger {
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.facility-hover-card {
    position: absolute;
    z-index: 9999;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 400px;
    max-width: 600px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.9rem;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    will-change: opacity, transform;
}

    .facility-hover-card ul {
        padding-left: 1.2rem;
    }

    .facility-hover-card li {
        margin-bottom: 6px;
    }

    .facility-hover-card strong {
        display: inline-block;
        margin-top: 6px;
    }

    .facility-hover-card.right {
        top: 50%;
        left: 100%;
        transform: translate(12px, -50%);
    }

    .facility-hover-card.left {
        top: 50%;
        right: 100%;
        left: auto;
        transform: translate(-12px, -50%);
    }

    .facility-hover-card.right.open-above {
        top: auto;
        bottom: 100%;
        left: 100%;
        transform: translate(12px, -12px);
    }

    .facility-hover-card.left.open-above {
        top: auto;
        bottom: 100%;
        right: 100%;
        left: auto;
        transform: translate(-12px, -12px);
    }

.wrapper-sign {
    position: relative;
    width: auto;
    height: 155px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid black;
}

.signature-pad {
    /*position: absolute;*/
    left: 0;
    top: 0;
    width: 400px;
    height: 150px;
    background-color: white;
}

.my-date-field {
    width: 150px;
}

.required-field:before {
    color: red;
    content: "*"
}

.two-dot:after {
    content: ":"
}

.has-error .form-control, .has-error .form-control:focus {
    border-color: rgba(var(--bs-danger-rgb));
}

form.my-alpine-can-show-errors .my-alpine-has-error .form-control, form.my-alpine-can-show-errors .my-alpine-has-error .form-control:focus {
    border-color: rgba(var(--bs-danger-rgb));
}


form.my-alpine-can-show-errors .my-alpine-group.my-alpine-group-bordered.my-alpine-has-error {
    border: 1px solid rgba(var(--bs-danger-rgb)) !important;
    border-radius: .25rem;
    color: rgba(var(--bs-danger-rgb)) !important;
}

.has-error .control-label {
    color: rgba(var(--bs-danger-rgb));
}

form.my-alpine-can-show-errors .my-alpine-has-error .control-label, form.my-alpine-can-show-errors .my-alpine-has-error .my-label {
    color: rgba(var(--bs-danger-rgb));
}

.my-check-box {
    width: 20px;
    height: 20px;
    /*margin-left: 20px;*/
}

.control-label {
    /*padding-top: 7px;
    font-family: Verdana, Geneva, sans-serif;*/
    /*font-size: 13px;*/
    font-weight: bold;
    color: black;
    /*padding-bottom: 0px !important;*/
    margin-bottom: .2rem;
}
.my-phone-ext {
    width: 100px!important;
}

/*Validate ToolTips*/
.tooltip-inner {
    max-width: 300px;
    padding: 0;
}

.tooltip-alert {
    padding: 8px 10px;
    font-weight: bolder;
    color: #A94442;
}
/*Validate ToolTips*/


.my-bg-primary {
    background-color: #3071a9;
}

/*hide and show datatable columns */
.first-of-type\:rounded-t-md:first-of-type {
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
}

.last-of-type\:rounded-b-md:last-of-type {
    border-bottom-right-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

.column-visible, .column-visible:focus, .column-visible:hover {
    background-color: #0b69ab;
    color: #fff;
}

/**/

/*borders*/
.my-border-black {
    --bs-border-opacity: 1;
    border-color: black !important;
}
/**/

/*Select2*/
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    height: calc(1.5em + .75rem + 2px) !important;
}


form.my-alpine-can-show-errors .my-alpine-has-error .select2-container .select2-selection--single,
form.my-alpine-can-show-errors .my-alpine-has-error .select2-container .select2-selection--single:focus
form.my-alpine-can-show-errors .my-alpine-has-error .select2-container .select2-selection--multiple,
form.my-alpine-can-show-errors .my-alpine-has-error .select2-container .select2-selection--multiple:focus {
    border-color: rgba(var(--bs-danger-rgb));
}

/* ADA Compliance: Fix Select2 placeholder contrast - WCAG 2.2 Level AA */
.select2-container--default .select2-selection__placeholder {
    color: #595959 !important; 
}

/**/

/*recaptcha*/
.fake-recaptcha {
    width: 300px;
    padding: 14px;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}

.fake-recaptcha-box {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.fake-recaptcha-checkbox {
    display: none;
}

.fake-recaptcha-ui {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    background: #fff;
    margin-right: 12px;
    position: relative;
}

.fake-recaptcha-text {
    font-size: 14px;
    color: #000;
}

/* Checkmark */
.checkmark {
    display: none;
    position: absolute;
    top: 2px;
    left: 7px;
    font-size: 18px;
    color: #34a853;
}

/* Checked state */
.fake-recaptcha-checkbox:checked + .fake-recaptcha-ui {
    border-color: #4285f4;
}

    .fake-recaptcha-checkbox:checked + .fake-recaptcha-ui .checkmark {
        display: block;
    }

/**/