.home-health-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    max-width: 1450px;
    margin-left: 0;
    margin-right: auto;
}

.home-health-container .content-text {
    flex: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.home-health-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
    flex-shrink: 0;
    background-color: #fff;
    margin-top: 40px;
    padding: 20px;
    border-radius: 4px;
}

.home-health-nav a {
    padding: 10px 12px;
    border-radius: 4px;
    color: #333;
}

.home-health-nav a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

.home-health-nav .nav-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    color: #333;
    font-family: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.home-health-nav .nav-submenu-toggle:hover {
    background-color: #f0f0f0;
}

.home-health-nav .nav-submenu-toggle svg {
    width: 12px;
    height: 12px;
    fill: #333;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.home-health-nav .nav-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.home-health-nav .nav-submenu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
}

.home-health-nav .nav-submenu-links[hidden] {
    display: none;
}

.home-health-nav-filter {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.home-health-nav-filter .full-width-input {
    margin-bottom: 0;
}

.home-health-nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
}

.home-health-nav-toggle:hover {
    background: none;
}

.home-health-nav-toggle svg {
    fill: #333;
}

@media screen and (max-width: 899px) {
    .home-health-container {
        flex-direction: column;
        align-items: stretch;
    }

    .home-health-container .content-text {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .home-health-nav {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;
        width: 260px;
        max-width: 80%;
        margin-top: 0;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    }

    body.home-health-nav-open .home-health-nav {
        display: flex;
    }

    .home-health-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.home-health-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 20px;
}

.home-health-title-row .soc-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

@media screen and (max-width: 899px) {
    .home-health-title-row {
        flex-direction: column;
    }
}

#patientListTable tbody tr.row-even {
    background-color: #f5f5f5;
}

#patientListTable tbody tr.row-odd {
    background-color: #fff;
}

th.phone-cell,
td.phone-cell {
    white-space: nowrap;
    min-width: 150px;
}

table thead th.home-health-cell,
table tbody td.home-health-cell {
    max-width: 65px;
}

table tbody td.home-health-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.reminder-overdue,
.reminder-overdue a {
    color: #a33;
}

#recertNextMonthTable tr.recert-past-due td,
#recertNextMonthTable tr.recert-past-due td a,
#pendingSocTable tr.pending-soc-past-due td,
#pendingSocTable tr.pending-soc-past-due td a {
    color: #a33;
    font-weight: bold;
}

.form-error {
    color: #a33;
    font-weight: bold;
}

.form-success {
    color: #2e7d32;
    font-weight: bold;
}

.field-hint {
    font-size: 12px;
    color: #969696;
    margin: 4px 0 0;
}

.patient-accordion-section {
    margin-bottom: 20px;
}

.patient-accordion-header {
    display: block;
    width: 100%;
    text-align: left;
    background-color: #6a8880;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 20px;
    font-size: 20px;
    font-family: "Noto Serif", serif;
    font-weight: 200;
    cursor: pointer;
    position: relative;
}

.patient-accordion-header::after {
    content: "\25BC";
    position: absolute;
    right: 20px;
    font-size: 14px;
}

.patient-accordion-section.collapsed .patient-accordion-header::after {
    content: "\25B6";
}

.patient-accordion-body {
    padding-top: 16px;
}

.patient-accordion-section.collapsed .patient-accordion-body {
    display: none;
}

.patient-tile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media screen and (min-width: 700px) {
    .patient-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1050px) {
    .patient-tile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.patient-tile {
    border: 1px solid #a4d3c9;
    border-radius: 4px;
    padding: 16px;
}

.patient-tile-name a {
    font-size: 18px;
    font-weight: bold;
}

.patient-tile-phone {
    margin-bottom: 8px;
    display: block;
}

.patient-tile-reminder {
    font-size: 13px;
    margin: 4px 0 8px;
}

.patient-tile-checklist {
    margin-bottom: 12px;
}

.patient-tile-checklist .checklist-checkbox {
    margin: 4px 0;
}

.patient-tile-checklist label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.patient-tile-empty {
    color: #969696;
}

dialog#changeStatusDialog, dialog#deletePatientDialog {
    border: none;
    border-radius: 4px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
}

dialog#changeStatusDialog::backdrop, dialog#deletePatientDialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

button.delete-button, input.delete-button {
    background-color: #b23b3b;
}

button.delete-button:hover, input.delete-button:hover {
    background-color: #963232;
}

.submit-button button.delete-button,
.submit-button button#copyPatientInfoButton {
    margin-left: 10px;
}

dialog#deletePatientDialog .submit-button button.delete-button {
    margin-left: 0;
}

.todo-item-actions form.inline-form + form.inline-form {
    margin-top: 16px;
}
