﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.grid-column {
    font-size: 18px; /* Adjust the font size as needed */
    color: black;
}

.collapsible {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 10px;
    text-align: left;
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
}

.custom-width {
    width: max-content;
}

.add-style {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    padding: 10px 20px;
    color: white;
    text-align: center;
}

.custom-nav-item{
    width: max-content;
}

.input-style {
    margin-bottom: 1px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%;
}

.center-content {
    text-align: center;
}

.text-wrap {
    white-space: normal; /* Allow the text to wrap */
    word-wrap: break-word; /* Break long words if needed */
    word-break: break-word; /* Handle long words */
    overflow-wrap: break-word; /* Break words in case of overflow */
}

#unassignedCustomers {
    max-height: 200px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .program-description {
        font-size: 1.5rem;
    }

    .program-dates {
        font-size: 1rem;
    }

    .table th, .table td {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .program-description {
        font-size: 1.25rem;
    }

    .program-dates {
        font-size: 0.9rem;
    }

    .table th, .table td {
        font-size: 0.8rem;
    }
}

@media (max-width: 382px) {
    body .hide-phone {
        display: none !important;
    }
}

/* Add responsiveness */
@media (max-width: 768px) {
    /* Mobile and tablet adjustments */
    #roomsContainer {
        flex-direction: column;
        gap: 10px;
        margin-right: 20px;
    }

    .add-room-btn, #saveBtn, #cancelBtn {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Adjust button styles */
    button {
        font-size: 1rem;
        padding: 10px;
    }

    /* Ensure flex elements take full width */
    #roomsContainer > div {
        width: 100%;
        margin-right: 20px;
    }

    /* Text alignment */
    h3 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Further adjustments for small phones */
    .add-room-btn, #saveBtn, #cancelBtn {
        font-size: 0.9rem;
        padding: 8px;
    }

    /* Reduce padding and spacing */
    .droparea {
        padding: 5px;
    }

    #roomsContainer {
        gap: 10px;
        margin-right: 20px;
    }
}

.passport-img {
    width: 50px;
    height: auto;
    border-radius: 5px;
}

/* Blinking effect */
.blink {
    animation: blink-animation 0.3s steps(2, start) forwards; /* 'forwards' keeps the last keyframe */
}

@keyframes blink-animation {
    0% {
        background-color: white; /* Original color */
    }

    50% {
        background-color: yellow; /* Flash color */
    }

    100% {
        background-color: white; /* Back to original color */
    }
}

@media print {
    #connect, #printReport {
        display: none; /* Hide buttons when printing */
    }

    table {
        border: 1px solid black; /* Print table border */
    }

    th, td {
        border: 1px solid black; /* Print cell borders */
    }
}
/* HTML: <div class="loader"></div> */
#loader {
    width: 120px;
    height: 22px;
    border-radius: 40px;
    color: #514b82;
    border: 2px solid;
    position: relative;
    margin: auto;
    margin-block: 30px;
}

    #loader::before {
        content: "";
        position: absolute;
        margin: 2px;
        width: 25%;
        top: 0;
        bottom: 0;
        left: 0;
        border-radius: inherit;
        background: currentColor;
        animation: l3 1s infinite linear;
    }

@keyframes l3 {
    50% {
        left: 100%;
        transform: translateX(calc(-100% - 4px))
    }
}

@media print {
    #financialRecordsTable {
        width: 100%;
        table-layout: fixed;
    }

    #financialRecordsTable th, #financialRecordsTable td {
        word-wrap: break-word;
        font-size: 12px; /* Adjust font size to fit content */
    }

    .header-identities {
        text-align: center;
        font-size: 24px; /* Adjust as needed */
        margin-block: 20px; /* Optional for better spacing */
    }

    #printReport {
        display: none; /* Hide the button in print */
    }
}

#financialRecordsTable {
    width: 100%;
    table-layout: auto; /* Ensures the table resizes based on content */
}

#financialRecordsTable th, #financialRecordsTable td {
    padding: 5px;
    text-align: center;
    vertical-align: middle;
}