﻿html, body {
    touch-action: manipulation; /* Prevent zooming on double-tap */
    font-size: 16px; /* Prevents iOS auto-zooming */
}

body {
    background-color: lightgrey;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.mobile-container {
    background-color: inherit;
    padding-left: 8px;
    padding-right: 8px;
}

.employee-profile {
    margin-left: -14px;
    padding-left: 14px;
    background-color: white;
    text-align: center;
    position: fixed;
    width: 104%;
    top: 63px;
    z-index: 1000;
}

.AUTH-ihss-client {
    height: 3.7rem;
    margin-left: -14px;
    padding-left: 14px;
    background-color: lightgoldenrodyellow;
    text-align: center;
    position: fixed;
    width: 104%;
    top: 59px;
    font-size: 20pt;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stacks elements vertically */
}

    .AUTH-ihss-client span {
        display: flex;
        align-items: center; /* Centers the text vertically */
    }


.profile-image {
    float: left;
    width: 65px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 0px solid #ddd;
    border-color: black;
    margin-top: 5px;
    margin-left: 3px;
}

.page-title {
    background-color: inherit;
    margin-top: 160px;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.page-title2 {
    background-color: inherit;
    margin-top: 65px;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.page-title3 {
    background-color: inherit;
    margin-top: 90px;
    padding-top: 20px;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.AUTH-page-title {
    background-color: inherit;
    margin-top: 208px;
    padding-top: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

    .page-title h4 {
        color: navy;
    }

.horizontal-line {
    height: 1px;
    background-color: black;
    margin-top: 22px;
    margin-left: -15px;
}

.h2-empname {
    color: white;
    font-size: 14pt;
    border: black 1px solid;
    width: 300px;
    height: 60px;
    margin: 14px 0px 0px 2px;
    padding-left: 70px;
    padding-top: 5px;
    border-radius: 35px;
    background-color: cadetblue;
    text-align: left;
}

.custom-hr {
    margin-top: 25px;
    margin-bottom: 5px;
}

hr.custom-hr {
    margin: 6px 0; /* tighter spacing */
    border: 0; /* neutralize BS5 hr border */
    height: 2px; /* actual thickness */
    background-color: #e6e9ef; /* light gray line */
    opacity: 1; /* ignore BS5's default .25 */
}

.global-messages {
    margin-top: 200px;
}

.bold {
    font-weight: bold;
}


/* HOME INDEX — full-width rows, fixed icon/caret, nowrap text */
.home-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 10px 0;
    width: 100%; /* row uses full available width */
    box-sizing: border-box;
    flex-wrap: wrap; /* lets the HR take its own line */
    font-size: 0; /* kills &nbsp; width */
}

    /* Left icon: fixed column */
    .home-links > i[aria-hidden="true"] {
        float: none !important;
        flex: 0 0 42px; /* fixed width so text always starts here */
        text-align: center;
        line-height: 1;
        font-size: 35px; /* your icon size */
    }

    /* Middle text link: fills remaining space, no wrap */
    .home-links > a:first-of-type {
        flex: 1 1 auto; /* stretch to take all remaining width */
        min-width: 0; /* REQUIRED so ellipsis can work in flex */
        display: flex;
        align-items: center;
        text-decoration: none;
        min-height: 35px;
        font-size: 13pt; /* restore after font-size:0 on parent */
        overflow: hidden; /* enable ellipsis */
    }

        .home-links > a:first-of-type label {
            margin: 0;
            line-height: 1.25;
            white-space: nowrap; /* keep on one line */
            overflow: hidden;
            text-overflow: ellipsis; /* … when too long */
        }

    /* Right caret: fixed column, aligned */
    .home-links > a:last-of-type {
        flex: 0 0 30px; /* fixed width so all carets align */
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 13pt;
    }

        .home-links > a:last-of-type i {
            float: none !important;
            line-height: 1;
            font-size: 30px;
        }

    /* HR spans the full row; hide manual <br/> */
    .home-links > br {
        display: none;
    }

    .home-links > .custom-hr {
        flex-basis: 100%;
        margin: 6px 0 10px;
    }

    /* Remove underline under the right chevron link (all states) */
    .home-links > a:last-of-type,
    .home-links > a:last-of-type:link,
    .home-links > a:last-of-type:visited,
    .home-links > a:last-of-type:hover,
    .home-links > a:last-of-type:active {
        text-decoration: none !important;
        border-bottom: none !important; /* in case a global rule uses borders */
        box-shadow: none !important; /* in case a global rule fakes underlines */
        color: inherit; /* avoid default blue link color */
    }

        /* Keep a visible keyboard focus ring without an underline */
        .home-links > a:last-of-type:focus {
            outline: none; /* remove default outline if any */
        }

        .home-links > a:last-of-type:focus-visible {
            outline: 2px solid #2b6cb0; /* or whatever brand color you prefer */
            outline-offset: 2px;
        }

.client-button {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between name and image */
    height: 4.1rem;
    padding: 10px;
    margin-bottom: 4px;
    background-color: white;
    color: navy;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    border-radius: 4px; /* corner curvature */
    font-size: 2rem;
    cursor: pointer;
    text-decoration: none;
}

.timeframe-button {
    display: flex;
    flex-direction: column; /* Arrange children vertically */
    align-items: center; /* Center horizontally */
    justify-content: flex-start; /* Align items to the top */
    height: 7rem;
    padding: .5rem;
    margin-bottom: 4px;
    background-color: lightgoldenrodyellow;
    color: black;
    border: 1px solid grey;
    border-bottom: 4px solid grey;
    border-right: 4px solid grey;
    border-radius: 20px;
    font-size: 1.7rem;
    cursor: pointer;
    text-decoration: none;
}

    .timeframe-button span {
        font-size: 1.2rem;
    }

    .timeframe-button input {
        font-size: 2.2rem;
    }

#tf-datepicker {
    background-color: inherit; /* Inherit the background color from the parent element */
    text-align: center; /* Center the text horizontally */
    width: 88%;
    cursor: pointer; /* Show pointer cursor on hover */
    font-size: 2.2rem; /* Adjust the font size as desired */
    color: inherit; /* Inherit text color from parent */
    border: none; /* select date border */
}

/* Increase datepicker container width and padding */
.datepicker.dropdown-menu {
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    margin-top: 0.5rem; /* optional spacing below input */
    width: 90% !important; /* Adjust the width of the popup */
    padding: 2px !important; /* Add more padding around the content */
}


.table-condensed {
    width: 100%;
    border: 1px solid black;
}

/* Center table content and adjust internal padding */
.datepicker table {
    margin: 0 auto; /* Center the datepicker table */
    border-collapse: separate; /* Ensure padding adjustments apply */
    border-spacing: 15px; /* Space between each date cell */
}

/* Add padding inside the cells and adjust font size for readability */
.datepicker td, .datepicker th {
    padding: 2px !important; .lcs-header-aug .lcs-header-tools a,ore padding inside cells */
    text-align: center; /* Center-align text in each cell */
    vertical-align: middle; /* Center content vertically */
    font-size: 24px; /* Optional: Increase font size */
}

/* Adjust header styles and padding */
.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next {
    padding: 20px !important; /* Padding for navigation elements */
    font-weight: bold; /* Emphasize navigation buttons */
}

/* Adjust spacing for month and year view */
.datepicker-months .month,
.datepicker-years .year {
    padding: 8px 22px !important; /* Control padding around month/year cells */
    margin: 1px; /* Add slight margin for spacing */
}

.list-container {
    padding: 5px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: #e0e0e0;
    width: 100%;
    margin-left: -15px;
}

.client-detail-container {
    flex: 1;
    margin-top: 10px;
    min-height: 1000px;
    padding: 5px;
    max-height: calc(100vh - 70px);
    background-color: white;
    width: 100%;
    margin-left: 2px;
    margin-right: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-details {
    width: 100%;
}

.AUTH-page-title2 {
    padding-top: 110px;
}

.AUTH-page-title3 {
    padding-top: 140px;
}

.AUTH-details {
    width: 100%;
}

.AUTH-detail-upper-box {
    display: flex; /* Enable flexbox */
    gap: 1rem; /* Space between the <p> elements */
    align-items: center; /* Vertically center the items */
    justify-content: space-between; /* Space items evenly */
    height: 3rem;
    padding-top: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    font-size: 12pt;
}

.IHSS-detail-lower-box {
    display: flex; /* Enable flexbox */
    gap: 1rem; /* Space between the <p> elements */
    align-items: center; /* Vertically center the items */
    justify-content: space-between; /* Space items evenly */
    height: 3.5rem;
    padding-top: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 1.2rem;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    background-color: white;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 18pt;
}
.IHSS-detail-lower-box span {
    font-size: 14pt;
}

.POS-detail-lower-box {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    gap: 1rem; /* Space between the items */
    padding: .2rem .5rem;
    margin-bottom: .5rem;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    background-color: white;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 18pt;
}

.mileage-list {
    display: flex; /* Enable flexbox */
    gap: 1rem; /* Space between the <p> elements */
    align-items: center; /* Vertically center the items */
    justify-content: space-between; /* Space items evenly */
    height: 3.5rem;
    padding-top: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 1.2rem;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    background-color: white;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-size: 18pt;
}

.detail-item {
    display: flex;
    flex-direction: column; /* Stack label above the value */
    align-items: center; /* Center content within each cell */
}

    .detail-item label {
        font-size: 14pt;
        color: grey;
        margin-bottom: 0.3rem; /* Space between label and value */
    }

.last-item {
    text-align: center; /* Center-align the last item */
    padding-right: 0; /* Remove extra padding */
}

.client-detail-title-box {
    background-color: cadetblue;
    color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding-left: 15px;
}

.client-detail-box {
    margin-bottom: 4px;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    background-color: white;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-left: 15px;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: 18pt;
}


.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns label and p vertically */
}

    .detail-row label {
        margin: 0;
        flex-basis: 50%; /* Adjusts width if needed */
        text-align: left;
        color: grey;
        font-size: 1.2rem;
    }

    .detail-row p {
        margin: 0;
        flex-basis: 50%; /* Adjusts width if needed */
        text-align: left;
        padding-right: 15px;
        white-space: nowrap;
    }

.detail-row-ec {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Aligns label and p vertically */
}

    .detail-row-ec.map {
        display: flex;
        justify-content: flex-start;
    }

    .detail-row-ec label {
        margin: 0;
        flex-basis: 50%; /* Adjusts width if needed */
        text-align: left;
        color: grey;
        font-size: 1.2rem;
    }

    .detail-row-ec p {
        margin: 0;
        flex-basis: 50%; /* Adjusts width if needed */
        text-align: left;
        padding-right: 15px;
        white-space: nowrap;
        font-size: 1.5rem;
    }

.detail-addr {
    display: flex;
}
    .detail-addr p {
        margin: 0; /* Removes default margin from <p> */
        padding-left: 0; /* Ensures the text aligns with the label */
    }
    .detail-addr label {
        font-size: 14pt;
    }

.detail-row-inline {
    display: flex;
    justify-content: space-between; /* Distributes the items evenly with space between them */
    align-items: flex-start; /* Aligns the items at the top */
    margin-bottom: 4px; /* Adds some space below the row */
}

    .detail-row-inline .detail-item {
        flex: 1; /* Makes each item take up an equal amount of space */
        margin-right: 5px; /* Adds some space between items */
        white-space: nowrap;
    }

        .detail-row-inline .detail-item:last-child {
            margin-right: 0; /* Removes the margin from the last item */
        }

.detail-item.reduced-font p {
    font-size: 18pt;
}
.detail-item label {
    font-size: 14pt;
    color: grey;
}

.auth-row {
    display: flex;
    height: 60px;
    justify-content: space-between;
    width: 100%;
}

.auth-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    flex-direction: column; /* Stack the icon and text vertically */
    width: 100%; /* Ensure it takes up full width */
}

h2.client-name {
    flex-grow: 1; /* Take up remaining space */
    text-align: left;
    color: navy;
    font-size: large;
}

.client-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    margin-top: 3px;
    margin-right: -12px;
    border: 1px solid grey;
    border-left: none;
    border-bottom: 3px solid grey;
    border-top-right-radius: 10%; /* Adjust top right corner */
    border-bottom-right-radius: 10%; /* Adjust bottom right corner */
    border-top-left-radius: 0; /* Ensure top left corner is square */
    border-bottom-left-radius: 0; /* Ensure bottom left corner is square */
}

.client-image-large {
    width: 115px;
    height: 115px;
    object-fit: cover;
    margin-top: 10px;
    border: 1px solid grey;
    border-top-right-radius: 5%; /* Adjust top right corner */
    border-bottom-right-radius: 5%; /* Adjust bottom right corner */
    border-top-left-radius: 5%; /* Ensure top left corner is square */
    border-bottom-left-radius: 5%; /* Ensure bottom left corner is square */
}

.details-container {
    background-color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start; /* Ensures content starts from the top */
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

    .details-container dd {
        color: darkslategrey;
        font-size: 14pt;
    }

.header-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: navy;
    position: fixed;
    top: 0;
    left: 0; /* Ensure it starts from the left edge */
    width: calc(100% + 30px); /* Adjust for the negative margin */
    margin-left: -15px; /* Keep the intended alignment */
    height: 63px;
    z-index: 1000;
    padding: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    .header-band a, .header-band label {
        position: absolute;
        color: white;
    }

    .header-band .home-icon {
        left: 30px;
    }

    .header-band .back-icon {
        left: 70px;
    }

    .header-band label {
        left: 50%;
        transform: translateX(-50%);
    }

    .header-band .power-icon {
        right: 30px;
    }

    .header-band i {
        transform: translateY(-3px);
        color: white;
    }

.contact-name {
    flex: 1;
}

.contact-phone {
    flex: 1;
    text-align: right;
    padding-right: 15px;
}

.contact-hr {
    border: 1px solid black;
    margin-right: 10px;
}

.contact-row {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    max-width: 100%; /* Ensure it stays within parent bounds */
    text-align: center; /* Center-align text inside the div */
}

    .contact-row p {
        white-space: nowrap;
        font-size: clamp(14px, 2vw, 26px); /* Dynamically scales font */
        margin: 0; /* Remove any default margins */
    }


.timesheet-group {
    width: 100%;
    background-color: white; /* White background for the entire group */
    padding: 5px; /* Add padding around the content */
    border: 1px solid grey;
    border-radius: 8px; /* Optional: rounded corners for a cleaner look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: add subtle shadow for separation */
}

.timesheet-item-upper {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    font-size: 16px;
    width: 100%;
}

    .timesheet-item-upper p {
        width: 100%; /* Make each <p> take the full width of the container */
        margin: 0;
    }


.timesheet-item-lower {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bolder;
    height: 23px;
    width: 100%;
    margin-bottom: 8px;
}

    /* Both paragraphs share equal width */
    .timesheet-item-lower p {
        flex: 1;
        margin: 0;
    }

        /* Left align for Time In */
        .timesheet-item-lower p.time-in {
            text-align: left;
        }

        /* Right align for Time Out */
        .timesheet-item-lower p.time-out {
            text-align: right;
        }

.full-width-form {
    width: 100%;
}

.message-container {
    width: 100%;
    background-color: inherit;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 60vh;
}

.message-body {
    width: 98%;
    border: 1px solid black;
    border-radius: 10px;
    flex-grow: 1;
    padding: 15px;
    background-color: white;
}

.message-button {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 6px;
    color: black;
    //font-size: 25pt;
    padding: 0;
}

.message-row-upper, .message-row-lower {
    display: flex;
    justify-content: space-between; /* Space between items */
    width: 100%;
}

.message-button .message-row-lower {
    position: relative;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 0;
}

    .message-button .message-row-lower::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 2px;
        background: #e6e9ef;
    }

.message-item {
    flex: 1; /* Flex-grow for filling space if needed */
}

    .message-item label {
        text-align: left;
        display: block;
        margin-bottom: 2px;
        color: #8c8c8c;
        padding-top: 3px;
        padding-left: 5px;
        white-space:nowrap;
    }


    .message-item p {
        color: black;
        text-align: left;
        padding-left: 10px;
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 285px;
    }

    .message-item.last-item {
        text-align: right; /* Ensures right alignment */
    }

        .message-item.last-item label, .message-item.last-item p {
            text-align: right;
            padding-right: 10px;
            margin: 0;
        }

.big-icon {
    color: cadetblue;
    font-size: 5rem;
    margin-top: 8rem;
}

.AUTH-client-container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem; /* Reduced padding */
    margin-bottom: 0.3rem;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    border-radius: 4px;
    background-color: white;
}

.AUTH-client-name {
    text-align: center;
    font-size: 16pt; /* Reduced font size */
    color: black;
    margin: 0.1rem 0;
}
    .AUTH-client-name p {
        margin: 0; 
    }

.AUTH-button-container {
    display: flex;
    width: 100%;
    gap: 0.5rem; /* Reduced gap */
    justify-content: center;
}

.AUTH-client-button {
    flex: 1;
    padding: 0.4rem; /* Reduced padding */
    background-color: lightgrey;
    color: navy;
    border: 1px solid grey;
    border-bottom: 2px solid grey;
    border-right: 2px solid grey;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

    .AUTH-client-button p {
        font-size: 18px; /* Slightly smaller */
        margin: 0.1rem 0;
        line-height: 1.1; /* Slightly tighter line height */
    }

#auth-tothrs {
    padding-top: 1rem;
    font-size: 2.5rem;
}

.auth-button {
    font-family: 'Roboto', sans-serif;
    display: flex; /* Use flexbox for layout inside the button */
    flex-direction: column; /* Stack items vertically */
    width: 100%;
    height: 13rem;
    background-color: white;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    border-radius: 4px; /* Corner curvature */
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 6px; /* Space between buttons */
    padding: 0;
    text-align: center; /* Center content horizontally */
}

.authbuttonlabel {
    color: black;
    font-size: 2rem;
    font-weight: bold;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.auth-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    flex-direction: column; /* Stack the icon and text vertically */
    width: 100%; /* Ensure it takes up full width */
}

.modal-header {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.mobile-modal-body {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    text-align: center; /* Optional: Ensures text itself is centered */
}

.openTicket-modal-content {
    margin-top: 90px; /* Adjust if necessary */
    margin-left: 20px;
    border-radius: 5px;
    border-width: 8px;
    border-style: solid;
    border-color: cadetblue;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    height: auto; /* Allow height to adjust based on content */
    overflow-y: auto; /* Allow scrolling if needed */
}

.openNotes-modal-content {
    margin-top: 150px; /* Adjust if necessary */
    margin-left: 20px;
    border-radius: 5px;
    border-width: 8px;
    border-style: solid;
    border-color: cadetblue;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    height: auto; /* Allow height to adjust based on content */
    overflow-y: auto; /* Allow scrolling if needed */
}

.openMeds-modal-content {
    margin-top: 90px; /* Adjust if necessary */
    margin-left: 20px;
    border-radius: 5px;
    border-width: 8px;
    border-style: solid;
    border-color: cadetblue;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    height: auto; /* Allow height to adjust based on content */
    overflow-y: auto; /* Allow scrolling if needed */
}

.timesheet-checkbox {
    display: flex;
    justify-content: space-between; /* Space between elements */
    align-items: center; /* Vertically center align */
}

/* Hide the default checkbox */
.accepted-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.custom-checkbox {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid green;
    background-color: #f5f5f5; /* Default grey background */
    border-radius: 4px; /* Rounded corners */
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

/* Style the custom checkbox when checked */
.accepted-checkbox:checked + .custom-checkbox {
    background-color: green; /* Green background when checked */
}

/* Create a checkmark */
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 10px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when the checkbox is checked */
.accepted-checkbox:checked + .custom-checkbox::after {
    display: block;
}

/* Style for the label text */
.accept-label {
    font-size: 14pt;
    color: green; /* Text color */
    font-weight: 500; /* Font weight */
}

#requestReasonModal .modal-dialog {
    margin-top: 20px;
}

.review-requested-button {
    margin-left: auto; /* Push button to the right */
}

.review-requested-button {
    background-color: red; /* Red background */
    color: white; /* White text */
    padding: 0; /* Remove padding to center text with flex */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 16px; /* Text size */
    height: 2rem; /* Set height */
    width: 10.5rem; /* Set width */
    display: flex; /* Use flexbox */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}
    

.request-review-button {
    margin-left: auto; /* Push button to the right */
}

.request-review-button {
    background-color: lightgrey;
    color: black;
    padding: 0; /* Remove padding to center text with flex */
    border: 1px solid grey; /* Remove border */
    border-bottom: 2px solid grey;
    border-right: 2px solid grey;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 16px; /* Text size */
    height: 2rem; /* Set height */
    width: 10.5rem; /* Set width */
    display: flex; /* Use flexbox */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}


.request-review-button:hover {
    background-color: darkred; /* Darken on hover */
    color: white;
}

.timesheet-period-container {
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center the content horizontally */
    text-align: center; /* Center text within the container */
    padding: 5px;
    border: none;
    border-radius: 10px;
    width: fit-content; /* Fit the width to the content */
    margin: 1px auto; /* Center the container horizontally */
    background-color: inherit;
}

    .timesheet-period-container h4 {
        margin: 5px 0;
        font-size: 24pt;
        color: black;
    }

    .timesheet-period-container p {
        margin: 5px 0;
        font-size: 16pt;
        //font-weight: bold;
        color: black;
    }


.event-button {
    background-color: var(--background-color); /* Dynamic background-color */
    color: var(--text-color); /* Dynamic text color */
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Ensure the button takes full width */
    border: 1px solid grey; /* Added border */
    font-size: 14px;
}

    .event-button .event-time,
    .event-button .event-program-info {
        display: flex;
        justify-content: space-between;
        width: 100%; /* Ensure that each section takes up the full width */
        text-align: left; /* Ensures text is aligned left by default */
    }

        .event-button .event-time span,
        .event-button .event-program-info span {
            display: inline-block; /* Ensure the spans behave like blocks in flex container */
        }

            .event-button .event-time span:first-child {
                margin-right: auto; /* Push the first span (time) to the left */
                text-align: left; /* Explicitly align this span to the left */
            }

            .event-button .event-time span:last-child {
                padding-left: 20px; /* Add space between the name and time */
                text-align: right; /* Align this span to the right */
            }

    .event-button .event-program-info {
        justify-content: space-between; /* Ensure elements are spaced correctly */
        text-align: left; /* Ensure text is aligned left by default */
    }

        .event-button .event-program-info span:first-child {
            flex-grow: 1; /* Allow this span to take up the remaining space on the left */
            margin-right: auto; /* Align it to the left */
            text-align: left; /* Ensure it aligns to the left */
        }

        .event-button .event-program-info span:last-child {
            margin-left: auto; /* Align the last span (hours) to the right */
            text-align: right; /* Align this span to the right */
        }





.full-height {
    height: calc(var(--vh, 1vh) * 100);
}

.underline-space {
    display: inline-block; /* Ensures margin-bottom applies */
    margin-bottom: 5px; /* Adds space below the underline */
}

.med-upper-container {
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center the content horizontally */
    text-align: center; /* Center text within the container */
    padding: 5px;
    border: none;
    border-radius: 10px;
    width: fit-content; /* Fit the width to the content */
    margin: 1px auto; /* Center the container horizontally */
    background-color: inherit;
}
    .med-upper-container h4 {
        margin: 2px 0;
        font-size: 22pt;
        color: black;
    }

.med-lower-container {
    display: flex;
    flex-direction: row; /* Arrange elements in a row */
    justify-content: space-between; /* Push items to left and right */
    align-items: center; /* Align vertically */
    text-align: center;
    padding: 5px;
    border: none;
    border-radius: 10px;
    width: 100%; /* Ensures it takes up the available space */
    margin: 1px auto;
    background-color: inherit;
}

    .med-lower-container p {
        margin: 5px 0;
        font-size: 14pt;
        color: black;
    }

        .med-lower-container p:first-child {
            text-align: left;
            flex: 1; /* Allows equal space distribution */
            margin-left: 15px;
        }

        .med-lower-container p:last-child {
            text-align: right;
            flex: 1;
            margin-right: 15px;
        }



/* Error Message Container */
.errorMessage-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text color */
    padding: 15px;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%); /* Hidden by default */
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    border-top: 2px solid #f5c6cb;
    border-radius: 8px 8px 0 0;
}

/* Show and Hide Classes */
.show-errorMessage {
    transform: translateY(0); /* Slide up to show */
}

.hide-errorMessage {
    transform: translateY(100%); /* Slide down to hide */
}

.appointment-add-wrapper {
    background-color: cadetblue;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
}
.appointment-add {
    cursor: pointer;
    color: white;
    text-decoration: none;
}
.appointment-button {
    width: 100%;
    padding: 5px;
    border-radius: 10px;
    background-color: white;
    color: black;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

.appointment-button-container {
    margin-bottom: 10px;
}

.appointment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

    .appointment-info .appointment-label {
        width: auto; /* Makes the label width flexible */
        margin-right: 5px; /* Reduces the space between the label and the value */
    }

    .appointment-info .appointment-value {
        flex: 1;
    }

    .appointment-info span {
        color: #333;
    }

    .appointment-info .doctor-reason {
        display: flex;
        flex-direction: column;
        margin-top: 10px;
    }

        .appointment-info .doctor-reason span {
            margin-top: 5px;
        }

.utility-wrapper {
    background-color: white;
    width: 100%;
    padding: 10px;
}

.timesheet-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12pt;
    padding-left: 10px;
}

.fw-bold div {
    margin-bottom: 0.25rem;
}

.approve-btn {
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    min-width: 160px;
    max-width: 220px;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s;
}

    .approve-btn:hover {
        background-color: #218838;
        box-shadow: 0 0 0 0.2rem rgba(72, 180, 97, 0.25);
    }

/* ===== LCS header tools (toggle + search) — flex layout with fixed button widths ===== */

/* Make header taller when tools row is present */
.header-band.lcs-header-aug {
    height: 104px;
}

/* Tools row anchored to the right (content-sized, no overflow) */
.lcs-header-aug .lcs-header-tools {
    position: absolute;
    right: 12px;
    left: auto;
    bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: nowrap;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    padding-right: 0;
    z-index: 1001; /* above the header icons (your header is 1000) */
}

    /* Keep links inside the tools row in normal flow (override global absolute) */
    .lcs-header-aug .lcs-header-tools a {
        position: static !important;
    }

/* Small toggle form behaves like a compact flex item */
.lcs-header-aug .lcs-toggle-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

/* TOGGLE BUTTON (now a <button>) — ensure look & layout, prevent "big green" overrides */
.lcs-header-aug .lcs-scope-toggle {
    position: static !important; /* stay in the flex row */
    width: auto; /* size to text */
    min-width: 120px; /* enough room for “My Caseload” */
    flex: 0 0 auto;
    text-align: center;
    /* reset any global button styles */
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    background-color: #fff !important;
    color: navy !important;
    border: 1px solid grey !important;
    border-bottom: 3px solid grey !important;
    border-right: 2px solid grey !important;
    border-radius: 4px;
    height: 26px;
    padding: 0 .6rem;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 0.99;
}

/* Search form sits to the right of the toggle */
.lcs-header-aug .lcs-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

/* Input preferred width 240px → 120px; min-width 120px → 60px */
.lcs-header-aug .lcs-search-input {
    height: 26px;
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    flex: 1 1 120px;
    min-width: 60px;
    max-width: none;
}

/* Fixed-width Search button — width basis 35px, extra padding for clickability */
.lcs-header-aug .lcs-search-btn {
    flex: 0 0 35px;
    text-align: center;
    background: #fff;
    color: navy;
    border: 1px solid grey;
    border-bottom: 3px solid grey;
    border-right: 2px solid grey;
    border-radius: 4px;
    height: 26px;
    padding: 0;
    line-height: 0.9;
    font-size: .85rem;
    margin-right: 15px;
    padding-right: 10px; /* you asked for right padding */
    padding-left: 10px;
}

/* Let the button size to its label ("Search" or "Clear") */
.lcs-header-aug .lcs-search-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 0 .45rem;
    font-size: .85rem;
}

/* Style the Clear button subtly different (and make sure it doesn't inherit "green") */
.lcs-header-aug .lcs-clear-btn {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-color: grey !important;
}
