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 {
    min-height: 100%;
    position: relative;
}

body {
    margin-bottom: 60px;
}

.room-available {
    border: 1px black;
    margin: 10px;
}

.min-w-90 {
    min-width: 90px;
}

.min-w-120 {
    min-width: 120px;
}

:root {
    --bs-body-font-family: 'Arial Narrow', sans-serif;
}

.cleaning-dashboard-switch {
    background-color: #dc3545;
    border-color: #dc3545;
}

    .cleaning-dashboard-switch:checked {
        background-color: #28a745 !important;
        border-color: #28a745 !important;
        background-position: right center !important;
    }

    .cleaning-dashboard-switch:focus {
        box-shadow: none;
    }

.form-switch .form-check-input.cleaning-dashboard-switch {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    margin-left: -2.5em;
    transition: background-position .15s ease-in-out;
    width: 2em;
}

    .form-switch .form-check-input.cleaning-dashboard-switch:focus {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
        border: unset;
        box-shadow: none;
        outline: none;
    }

#styled-forms .page-container {
    margin: 0 auto;
    max-width: 1320px;
    padding: 2rem;
}


.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #ced4da !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-right: unset !important;
}

.was-validated .form-check-input:checked,
.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    box-shadow: none !important;
}

.was-validated .form-check-input[type="radio"]:checked,
.form-check-input[type="radio"]:checked {
    background-color: #0d6efd !important;
}

.was-validated .form-check-input:invalid,
.form-check-input.is-invalid {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.was-validated .form-check-input:valid ~ .form-check-label,
.form-check-input.is-valid ~ .form-check-label {
    color: inherit !important;
}

.valid-feedback {
    display: none !important;
}

.form-check-input.is-valid, .was-validated .form-check-input:valid {
    border-color: lightgray;
}


/*diagram page */
.diagram-wrapper .table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.diagram-wrapper .table-container::-webkit-scrollbar-track {
    background: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.diagram-wrapper .table-container::-webkit-scrollbar-thumb {
    background: #4da3ff;
    background: rgba(77, 163, 255, 0.6);
    border-radius: 4px;
}

    .diagram-wrapper .table-container::-webkit-scrollbar-thumb:hover {
        background: #4da3ff;
        background: rgba(77, 163, 255, 0.8);
    }

.diagram-wrapper table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    min-width: 800px;
    overflow: hidden;
}

.diagram-wrapper th {
    box-shadow: 0 2px 10px #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 58px;
}

    .diagram-wrapper th.red {
        color: #ff6b6b !important;
    }

    .diagram-wrapper th.blue {
        color: #4da3ff !important;
        font-weight: 900;
    }

.diagram-wrapper tbody td:hover {
    background: #4da3ff;
    background: rgba(77, 163, 255, 0.08);
}

.diagram-wrapper tbody tr:nth-child(even) {
    background: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.diagram-wrapper tbody td:nth-child(even):hover {
    background: #4da3ff;
    background: rgba(77, 163, 255, 0.08);
}

.diagram-wrapper a {
    color: #4da3ff;
    font-weight: 600;
    text-decoration: none;
}

.diagram-wrapper .status-dot {
    background: green;
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
}

    .diagram-wrapper .status-dot.RESERVED {
        background: yellow;
    }

    .diagram-wrapper .status-dot.OCCUPIED {
        background: red;
    }

.diagram-wrapper table {
    padding-left: 250px;
}

.diagram-wrapper .sticky-col-base {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0, rgba(30, 30, 30, 0.95) 100%);
    border-right: 2px solid #4da3ff;
    border-right: 2px solid rgba(77, 163, 255, 0.3);
    font-weight: 600;
    position: fixed;
    z-index: 99;
}

.diagram-wrapper .sticky-col-1 {
    left: 0;
    width: 60px;
}

.diagram-wrapper .sticky-col-2 {
    left: 60px;
    width: 80px;
}

.diagram-wrapper .sticky-col-3 {
    left: 140px;
    width: 60px;
}

.diagram-wrapper .sticky-col-4 {
    left: 200px;
    width: 50px;
}


/* ReSharper disable CssNotResolved */
.diagram-wrapper :is(td, th):not(:is(.sticky-col-1, .sticky-col-2, .sticky-col-3, .sticky-col-4)) {
    /* ReSharper restore CssNotResolved */
    max-width: 85px;
    min-width: 85px;
}

.diagram-wrapper .loading {
    position: relative;
}

    .diagram-wrapper .loading::after {
        align-items: center;
        backdrop-filter: blur(2px);
        background: #000;
        background: rgba(0, 0, 0, 0.5);
        bottom: 0;
        content: '';
        display: flex;
        justify-content: center;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 1000;
    }

    .diagram-wrapper .loading::before {
        animation: spin 1s linear infinite;
        border: 3px solid #4da3ff;
        border: 3px solid rgba(77, 163, 255, 0.3);
        border-radius: 50%;
        border-top: 3px solid #4da3ff;
        content: '';
        height: 40px;
        left: 50%;
        margin: -20px 0 0 -20px;
        position: absolute;
        top: 50%;
        width: 40px;
        z-index: 1001;
    }

@media (max-width: 768px) {
    .diagram-wrapper table {
        padding-left: 170px;
    }

    .diagram-wrapper.sticky-col-base {
        font-size: 12px;
    }

    .diagram-wrapper .sticky-col-1 {
        min-width: 40px;
        width: 40px;
    }

    .diagram-wrapper .sticky-col-2 {
        left: 40px;
        min-width: 60px;
        width: 60px;
    }

    .diagram-wrapper .sticky-col-3 {
        left: 100px;
        min-width: 40px;
        width: 40px;
    }


    .diagram-wrapper .sticky-col-4 {
        left: 140px;
        min-width: 30px;
        width: 30px;
    }
}

input[readonly], select[data-readonly="True"],
select[data-readonly="true"] {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

/* Expense preset buttons - grayed out when disabled */
.expense-preset:disabled,
.expense-preset[disabled] {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #6c757d;
    opacity: 0.65;
}
