* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Variablen */
    --basis: #205BE7;
    --accent: #25ffc9;
    --text: #464555;
    --white: #F9F8FF;
    --success: #008355;
    --error: #E6002C;
}

html,
body {
    overflow: hidden;
    touch-action: none;
    -ms-touch-action: none;

    /* Verhindern des Überscrollens/Ziehens */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
    position: fixed;
    width: 100%;
    height: 100%;
}

#app {
    height: 100dvh;
    width: 100dvw;

    color: var(--text);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    grid-template-areas:
        "header main"
        "sidebar main"
        "sidebar nav";
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto 1fr 80px;
    gap: 0.5rem 0.5rem;
    padding: 0.5rem;
}


/* Loader: Beim Start sichtbar. */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--basis);
}

.loader h1 {
    font-variation-settings: "slnt" 0, "opsz" 18, "wght" 500;
    font-size: 3rem;
    margin: 0;
}

.loader small {
    font-size: 1rem;
    margin: 0;
}

/* Part Styles */

/* LoginPart */
.login {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

/* DashboardPart */

header {
    grid-area: header;
    background-color: var(--white);
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
}

nav {
    grid-area: nav;
    background-color: var(--basis);
    color: var(--white);
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
}

aside {
    grid-area: sidebar;
    background-color: var(--white);
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
}

main {
    grid-area: main;
    /*overflow: auto;*/
    background-color: var(--white);
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
}

.teleSettings {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.teleSettings button {
    margin: 0;
    height: 3rem
}

.telekonsultation {
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.telekonsultation h2 {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 1rem;
}

/* ============================================================
   Telekonsultation GDA Styles
   ============================================================ */

#app:has(#teleconsultation),
#app:has(.telePart-gda) {
    display: block !important;
}

/* Connecting View */
.telePart-gda.connecting {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.telePart-gda.connecting .connecting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.telePart-gda.connecting .connecting-animation i {
    font-size: 2.5rem;
    color: var(--basis);
}

.telePart-gda.connecting .connecting-text {
    font-size: 1.1rem;
    color: var(--text);
}

.telePart-gda.connecting .connecting-patient {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--basis);
}

/* Calling View (F-01 Optionen) */
.telePart-gda.calling {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.telePart-gda.calling .calling-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    max-width: 400px;
}

.telePart-gda.calling .calling-icon i {
    font-size: 3rem;
    color: #ff9800;
}

.telePart-gda.calling h2 {
    margin: 0;
    color: var(--text);
}

.telePart-gda.calling .calling-patient {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--basis);
}

.telePart-gda.calling .calling-error {
    color: #666;
    font-size: 0.9rem;
}

.calling-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

.calling-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.calling-actions .btn:hover {
    opacity: 0.9;
}

.calling-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calling-actions .btn-primary {
    background-color: var(--basis);
    color: var(--white);
}

.calling-actions .btn-secondary {
    background-color: #e0e0e0;
    color: var(--text);
}

.calling-actions .btn-danger-outline {
    background-color: transparent;
    color: var(--error);
    border: 1px solid var(--error);
}

.calling-actions .btn-ghost {
    background: transparent;
    color: #666;
}

.calling-actions .btn-ghost:hover {
    color: var(--text);
}

/* Call View */
#teleconsultation {
    display: grid;
    grid-template-columns: 1fr 80px;
    grid-template-areas: "video sidebar";
    column-gap: 1rem;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

#teleconsultation video {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#teleconsultation video::-webkit-media-controls {
    display: none !important;
}

#teleconsultation video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

#teleconsultation video#localVideo {
    object-fit: cover;
    position: absolute;
    height: auto;
    width: 15rem;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    left: 1rem;
    bottom: 1rem;
    transform: scaleX(-1);
    z-index: 99;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.remote-video-wrapper {
    grid-area: video;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 0;
}

#teleconsultation video#remoteVideo {
    border-radius: 1rem;
    object-fit: cover;
    height: 100%;
    min-height: 0;
    transform: scaleX(-1);
}

.video-off-gda {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #e8e8e8;
    color: #888;
    z-index: 5;
    border-radius: 1rem;
}

.video-off-gda i {
    font-size: 3rem;
}

.video-off-gda span {
    font-size: 0.95rem;
}

.call-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    z-index: 100;
    max-width: 80%;
}

.call-controls-gda {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    height: 100%;
    background-color: var(--basis);
    border-radius: 1rem;
    padding: 0.5rem;
}

.call-controls-gda .btn-round {
    aspect-ratio: 1/1;
    margin: 0;
    border-radius: 0.5rem;
    background-color: var(--accent);
    color: var(--text);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.call-controls-gda .btn-round:hover {
    opacity: 0.85;
}

.call-controls-gda .btn-round.active {
    background-color: #555;
    color: #fff;
}

.call-controls-gda .btn-round.btn-danger {
    background-color: var(--error);
    color: var(--white);
}

/* Ended View */
.telePart-gda.ended {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.telePart-gda.ended .ended-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.telePart-gda.ended .ended-icon i {
    font-size: 3rem;
    color: #4caf50;
}

.telePart-gda.ended h2 {
    margin: 0;
    color: var(--text);
}

.telePart-gda.ended .ended-message {
    color: #666;
}

.ended-actions {
    margin-top: 1rem;
}

.ended-actions .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.ended-actions .btn-primary {
    background-color: var(--basis);
    color: var(--white);
}

.ended-actions .btn:hover {
    opacity: 0.9;
}

/* General GDA TelePart button */
.telePart-gda .btn-secondary {
    background-color: #e0e0e0;
    color: var(--text);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.telePart-gda .btn-secondary:hover {
    opacity: 0.85;
}

/* Überschreibt das Scrolling für die Orders-Seite */
main:has(.orders.page) {
    overflow: hidden;
}

/* Fallback für Browser ohne :has() Support */
main.orders-main-container {
    overflow: hidden;
}


#nav {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
}

#nav .nav-link {
    color: var(--white);
    font-size: 1.8rem;
    padding: 5px;
    position: relative;
}

#nav .nav-link-active {
    color: var(--accent)
}

.nav-badge {
    display: none;
    position: absolute;
    top: 2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--basis);
}

.nav-badge.visible {
    display: block;
}

/* Button Badge (z.B. Neue Patienten) */
.btn-with-badge {
    position: relative;
}

.btn-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--error);
    color: #fff;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.btn-badge.visible {
    display: inline-block;
}

#main hr {
    margin: 2rem 0;
    border: 2px solid var(--basis);
}

#main .important {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
}

/* HeaderPart */
#header {
    padding: 0.5rem;
}

#header .greeting {
    color: var(--basis);
    margin: 0;
}

#header .quote {
    font-variation-settings: "slnt" -6, "opsz" 6, "wght" 300;
}

#header hr {
    border: 1px solid var(--basis);
    margin: 0.5rem 0;
}

#header .timeAndDate {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    font-size: 1.5rem;
}

/* WarteschlangePart */
#sidebar {
    padding: 0.5rem;
    height: 100%;
}

#warteschlange {
    position: relative;
    height: 100%;
    width: 100%;
    min-width: 280px;
}

#warteschlangeList {
    height: 100%;
    overflow-y: auto;
}

#overlay {
    position: absolute;
    z-index: 99;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0.5rem;
}

.overlay-content {
    padding: 0.5rem;
}

#overlay_queue_settings_open {
    position: absolute;
    z-index: 99;
    bottom: 0;
    right: 0;
    height: auto;
    width: auto;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

#overlay_queue_settings_open i {
    font-size: 1.5rem;
    color: var(--basis);
    cursor: pointer;
}

#overlay .form-title {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    margin-bottom: .5rem;
}

#overlay .form-text {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

#overlay .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--basis);
    padding: .25rem;
    margin-bottom: 1rem;
}

#overlay .form-group:nth-last-child(2) {
    margin-bottom: 0;
}

#overlay .form-checkbox {
    background-color: rgba(32, 91, 231, 0.25);
    color: var(--basis);
    border-radius: 0.5rem;
    padding: .25rem;
    margin-bottom: .5rem;
}

#overlay .form-checkbox:nth-last-child(1) {
    margin-bottom: 0;
}

#overlay .form-checkbox input,
label {
    width: auto;
    margin: 0;
}

#overlay .form-checkbox #overlay .form-group input {
    width: 100%;
    padding: .25rem;
    margin: 0;
}

#overlay .form-group input {
    margin: 0;
}

#overlay .form-group input:focus {
    outline: none;
}

.overlay_no_display {
    display: none;
}

.queue-item {
    padding: 0.25rem;
    background-color: white;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    user-select: none;
    display: grid;
    grid-template-columns: 0px 1fr;
    transition: grid-template-columns 0.3s ease;
    overflow: hidden;

    /* Vendor-Präfixe für ältere Browser-Unterstützung */
    -webkit-user-select: none;
    /* Für Chrome, Safari, Opera */
    -moz-user-select: none;
    /* Für Firefox */
    -ms-user-select: none;
}

.queue-item:first-child .queue-item-move-up {
    visibility: hidden;
}

.queue-item:last-child .queue-item-move-down {
    visibility: hidden;
}

.queue-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item:hover {
    cursor: pointer;
    grid-template-columns: 25px 1fr;
}

.queue-item-controls {
    display: flex;
    flex-direction: column;
    margin: auto 0;
    gap: 5px;
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.queue-item-controls i {
    cursor: pointer;
    font-size: 0.75rem;
    color: darkgrey;
}

.queue-item:hover .queue-item-controls {
    opacity: 1;
    transform: translateX(0);
}

body.is-app .queue-item-controls {
    display: none;
}

body.is-app .queue-item,
body.is-app .queue-item:hover {
    grid-template-columns: 1fr;
}

.queue-item-main-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.queue-item-secondary-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.queue-item-patient {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 1rem;
}

.queue-item-main-info-data {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 450;
    font-size: .9rem;
    color: darkgrey;
}

.status-waiting {
    color: #FFC107;
}

.status-inprogress {
    color: #007BFF;
}

.status-scheduled {
    color: #6C757D;
}

.status-completed {
    color: #D4EDDA;
}

.status-cancelled {
    color: #ADB5BD;
}

#queue_entry_form>div {
    margin-bottom: 0.5rem;
}

#queue_entry_form>div:last-child {
    margin-bottom: 0;
}

.queue-entry-input {
    margin: 0;
    border: 1.7px solid rgba(166, 166, 166, 0.621);
}

#queue_entry_form label {
    font-variation-settings: "slnt" -6, "opsz" 6, "wght" 400;
    font-size: .8rem;
    color: rgb(68, 68, 68)
}

.queue-entry-main-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.queue-item-attention {
    padding: 0 3px;
    border-radius: 0.25rem;
    margin-right: 3px;
    background-color: #25ffc9;
    color: grey;
}

#queue-entry-patient {
    font-variation-settings: "slnt" 0, "opsz" 18, "wght" 500;
    font-size: 1.25rem;
}

.queue-entry-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.queue-entry-secondary-info {
    background-color: #F5f5f5;
    padding: .5rem .25rem;
    border-radius: .5rem;
    font-size: .9rem;
    color: var(--text);
}

.queue-entry-status-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.queue-entry-status-location div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    width: 100%;
    gap: .25rem;
}

.queue-entry-status-location div select {
    max-width: 100%;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.queue-entry-appointment-controls {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    width: 100%;
}

.queue-entry-appointment-controls div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    width: 100%;
    gap: 0.25rem;
}

.queue-entry-appointment-controls div input {
    max-width: 100%;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

#queue-entry-info {
    border-radius: .5rem;
    padding: .5rem .25rem;
}

#queue-entry-info::placeholder {
    font-variation-settings: "slnt" -8, "opsz" 6, "wght" 300;
}

.queue-entry-delete-submit {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.queue-entry-delete-submit button {
    margin: 0;
    border-radius: .5rem;
}

.queue-entry-delete-submit .delete-icon {
    color: var(--error);
}

.queue-entry-delete-submit .delete-icon:hover {
    cursor: pointer;
}

/* Undo Banner */
.undo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.25rem;
    background-color: #333;
    color: #fff;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    animation: slideDown 0.3s ease;
}

.undo-banner span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.undo-banner .btn-warning {
    background-color: #f0ad4e;
    color: #333;
    border: none;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.undo-banner .btn-warning:hover {
    background-color: #ec971f;
}

.undo-banner.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* KarteiPart */
#karteiSearch {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#karteiSearch #menuContainer {
    width: 60%;
}

#karteiSearch #menuContainer #search {
    padding: 1rem;
}

#karteiSearch #menuContainer #search::placeholder {
    color: var(--text);
}

#karteiSearch #menuContainer #menuButtons {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
}

.karteiHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: var(--basis);
    height: 100%;
    border-radius: 1rem;
    padding: 0.5rem;
}

.karteiHeader h1 {
    color: var(--white);
    margin: 0;
}

.karteiHeader #backButton {
    background-color: var(--accent);
    color: var(--text);
    width: auto;
    margin: 0;
}

.karteiHeader #backButton:hover {
    cursor: pointer;
}

.newPatientButtons {
    display: flex;
    flex-direction: row;
    gap: .5rem;
}

.newPatientButtons button {
    width: auto;
    margin: 0;
}

.activatePatient {
    background-color: #28a745;
    color: white;
}

.rejectPatient {
    background-color: #dc3545;
    color: white;
}

.activatePatient:hover {
    background-color: #28a745;
    color: white;
}

.rejectPatient:hover {
    background-color: #dc3545;
    color: white;
}

.kartei {
    display: grid;
    grid-template-rows: 60px 1fr;
    height: 100%;
}

.karteiContent {
    padding: 1rem;
    overflow: auto;
}

.patientRow {
    cursor: pointer;
}

/*Patientenansicht*/
#patient-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--basis);
    border-radius: 0.5rem;
}

#patient-actions {
    display: flex;
    gap: 0.5rem;
}

#patient-header h1 {
    color: var(--white);
    margin: 0;
}

#patient-header button {
    background-color: var(--accent);
    color: var(--basis);
    width: auto;
    margin: 0;
}

#patient-content {
    display: grid;
    grid-template-rows: 200px 1fr auto;
    grid-template-columns: 1fr;
    gap: 1rem;
    grid-template-areas:
        "patient-info"
        "patient-documents"
        "patient-document-form";
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.hidden {
    display: none;
}

#patient-picture {
    display: block;
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

#patient-info {
    grid-area: patient-info;
    display: flex;
    flex-direction: row;
}

#patient-info p {
    margin: 0;
}

#patientName {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 600;
    font-size: 1.5rem;
}

#patientSvNrAndAge {
    font-variation-settings: "slnt" -3, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

#patientSvNrAndAge strong {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 600;
    background-color: var(--basis);
    color: var(--white);
    padding: 0 0.5rem;
    border-radius: 0.25rem;
}

#patientGender {
    font-variation-settings: "slnt" -3, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

#patient-info #patient-info-separator {
    border: 1px solid var(--basis);
    margin: 0.5rem 0;
}

#patientAddress,
#patientCityAndPostalCodeAndCountry {
    font-variation-settings: "slnt" -3, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

#patient-documents {
    grid-area: patient-documents;
    overflow-y: auto;
    min-height: 0;
    /* important for grid children to scroll */
    max-height: 100%;
}

#patient-document-form {
    grid-area: patient-document-form;
    display: flex;
    flex-direction: column;
}

#patient-document-form .form-row {
    display: flex;
    gap: 0.5rem;
}

#patient-document-form .form-row>* {
    flex: 1;
}

#patient-document-form .form-row input[name="name"] {
    flex: 2;
}

#patient-document-form .form-row select[name="typeId"] {
    flex: 1;
}

#patient-document-form .form-row input[type="file"] {
    flex: 2;
}

#patient-document-form .btn-sign {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    background-color: var(--accent);
    color: var(--basis);
    border-radius: 50%;
    font-size: 0.75rem;
    margin: 0;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SettingsPart */
.settings .page-content {
    overflow-y: auto;
}

.small {
    font-size: 0.8rem;
}

.settingsForm {
    background-color: white;
    padding: 0.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.settingsForm input {
    border: 1px solid rgba(32, 91, 231, 0.25);
}

.settingsForm:last-child {
    margin-bottom: 0;
}

.settingsForm button {
    width: auto;
}

.settingsForm label {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 1.2rem;
}

#settingsLocationsForm hr {
    margin: 1rem 0;
}

#settingsLocationsForm #locations ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

#settingsLocationsForm #locations ul li {
    border: 1px solid rgba(32, 91, 231, 0.25);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

#settingsLocationsForm #locations .location-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#settingsLocationsForm #locations .location-item button {
    margin: 0;
}

/* PatientPart */
.document {
    padding: 0.5rem;
    background-color: rgba(32, 91, 231, 0.25);
    margin-bottom: 1rem;
    border-radius: 0.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    cursor: pointer;
}

.document .documentName {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 1.25rem;
}

.document .documentDescription {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

.document .documentHeader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid var(--basis);
}

.document .documentFooter p {
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 400;
    font-size: 0.9rem;
}

.document .documentFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-top: 0.5rem;
}

.document .documentFooter .fa-trash {
    cursor: pointer;
}

/* Orders Page Styles */
.orders.page {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.orders .page-content {
    flex: 1;
    overflow: hidden;
    /* Verhindert Scrollen des Main-Containers */
    min-height: 0;
    /* allow child layouts to calculate scrollable space */
    overflow: hidden;
    /* avoid scrolling on the overall page-content */
}

.orders-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    height: 100%;
    overflow: hidden;
    /* Verhindert Scrollen des gesamten Containers */
}

.orders-sidebar {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(32, 91, 231, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow: hidden;
    /* Verhindert Scrollen der Sidebar selbst */
}

.orders-filter select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(32, 91, 231, 0.3);
    border-radius: 0.5rem;
    background-color: var(--white);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.orders-filter select:focus {
    outline: none;
    border-color: var(--basis);
    box-shadow: 0 0 0 2px rgba(32, 91, 231, 0.1);
}

.orders-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Wichtig für Flexbox-Scrolling */
}

.orders-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-item {
    background-color: rgba(32, 91, 231, 0.05);
    border: 1px solid rgba(32, 91, 231, 0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-item:hover {
    background-color: rgba(32, 91, 231, 0.1);
    border-color: rgba(32, 91, 231, 0.3);
}

.order-item.active {
    background-color: rgba(32, 91, 231, 0.15);
    border-color: var(--basis);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.order-title {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 600;
    font-size: 1.1rem;
    color: var(--basis);
    margin: 0;
}

.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    text-transform: uppercase;
}

.status-1 {
    background-color: rgba(230, 0, 44, 0.1);
    color: var(--error);
}

.status-2 {
    background-color: rgba(255, 193, 7, 0.2);
    color: #b8860b;
}

.status-3 {
    background-color: rgba(37, 255, 201, 0.2);
    color: #1a9d7a;
}

.status-4 {
    background-color: rgba(0, 131, 85, 0.1);
    color: var(--success);
}

.status-5 {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-6 {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-default {
    background-color: rgba(32, 91, 231, 0.1);
    color: var(--basis);
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

.order-date {
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 400;
}

.order-patient {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
}

.orders-main {
    background-color: var(--white);
    border-radius: 0.5rem;
    border: 1px solid rgba(32, 91, 231, 0.1);
    overflow: hidden;
}

.order-detail {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Verhindert Scrollen des gesamten Detail-Containers */
    background-color: var(--white);
    border-radius: 0.5rem;
    border: 1px solid rgba(32, 91, 231, 0.1);
}

.order-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(70, 69, 85, 0.6);
    text-align: center;
    padding: 2rem;
}

.order-detail-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(32, 91, 231, 0.3);
}

.order-detail-placeholder h3 {
    margin: 0 0 0.5rem 0;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    color: var(--text);
}

.order-detail-placeholder p {
    margin: 0;
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 400;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(70, 69, 85, 0.6);
    text-align: center;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(32, 91, 231, 0.3);
}

.empty-state p {
    margin: 0;
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 400;
}

/* Order Detail Styles */
.order-detail-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 0 1.5rem;
    /* Kein Bottom-Padding, da Body eigenes Padding hat */
}

.order-detail-header {
    border-bottom: 1px solid rgba(32, 91, 231, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.order-detail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-detail-title h2 {
    margin: 0;
    color: var(--basis);
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 600;
}

.order-detail-meta {
    display: flex;
    gap: 2rem;
}

.order-detail-meta p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
}

.order-detail-meta i {
    color: var(--basis);
    width: 16px;
}

.order-detail-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Wichtig für Flexbox-Scrolling */
    padding: 0 1.5rem;
}

.order-section {
    margin-bottom: 2rem;
}

.order-section h3 {
    margin: 0 0 1rem 0;
    color: var(--basis);
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 1.1rem;
}

.order-items-list {
    list-style: none;
    background-color: rgba(32, 91, 231, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
}

.order-detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(32, 91, 231, 0.1);
}

.order-detail-item:last-child {
    border-bottom: none;
}

.item-name {
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    color: var(--text);
}

.no-items {
    color: rgba(70, 69, 85, 0.6);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.order-notes {
    background-color: rgba(32, 91, 231, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid var(--basis);
}

.order-notes p {
    margin: 0;
    color: var(--text);
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 400;
    line-height: 1.5;
}

.order-detail-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    /* Konsistentes Padding mit Content */
    border-top: 1px solid rgba(32, 91, 231, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.order-status-select {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--basis);
    color: var(--white);
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    cursor: pointer;
}

.btn-secondary {
    background-color: rgba(32, 91, 231, 0.1);
    color: var(--basis);
}

.btn-secondary:hover {
    background-color: rgba(32, 91, 231, 0.2);
}



/* Generelle Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--basis);
}

h1 {
    font-size: 1.70rem;
    font-variation-settings: "slnt" 0, "opsz" 18, "wght" 500;
    margin-bottom: 0.5rem;
}

p {
    font-variation-settings: "slnt" 0, "opsz" 18, "wght" 400;
    font-size: 1.2rem;
}

button {
    width: 100%;
    padding: .5rem;
    margin-top: 1rem;

    border-radius: 1rem;
    border: none;
    background-color: var(--basis);
    color: var(--white);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
}

button:hover {
    cursor: pointer;
    background-color: var(--accent);
    color: var(--basis);

    transition: all 1s ease-in-out;
}

button:disabled {
    background-color: grey;
    cursor: progress;
    color: white;
}

input,
select {
    width: 100%;
    padding: .5rem;
    margin-top: 1rem;

    border-radius: 1rem;
    border: none;
    color: var(--text);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
}

input:focus,
select:focus {
    outline: var(--basis) solid 1px;
}

hr {
    border: none;
    height: 2px;
    background-color: var(--basis);
}

.content {
    padding: 0.5rem;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
    color: var(--text);
    background-color: var(--white);
    border: 1px solid #dcdcdc;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.03);
}

thead {
    background-color: var(--basis);
    color: white;
    text-align: left;
}

th {
    padding: 0.875rem 1rem;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 600;
    border-bottom: 0.125rem solid #e0e0e0;
}


tbody tr {
    border-bottom: 0.0625rem solid #eaeaea;
    transition: background-color 0.2s ease-in-out;
}

tbody tr:hover {
    background-color: #eef3ff;
}

td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--text);
}

td button {
    padding: 0.375rem 0.75rem;
    background-color: var(--basis);
    border: none;
    color: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
}

td button:hover {
    background-color: #1c4fc1;
}

.page {
    display: grid;
    grid-template-rows: 60px 1fr;
    grid-template-columns: 1fr;

    height: 100%;
    width: 100%;
}

.page-content {
    padding: 0.5rem;
    min-height: 0;
    /* allow child layouts to calculate scrollable space */
    overflow: hidden;
    /* avoid scrolling on the overall page-content */
}

.page-header {
    padding: 0.5rem;
}

/*Modal*/
#modal {
    border: 2px solid var(--accent);
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    min-height: 80px;
    border-radius: 1rem;
    background-color: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    justify-content: center;

    display: none;
}

.modal-header h2 {
    margin: 0;
    color: var(--basis);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 18, "wght" 500;
    font-size: 1.5rem;
}

.modal-content p {
    margin: 0;
    color: var(--text);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
    font-size: 1rem;
}

/* Search Results Styling */
#searchResults {
    margin-top: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.patient-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.patient-info strong {
    color: var(--text);
    font-size: 16px;
}

.patient-details {
    color: #666;
    font-size: 14px;
}

.temp {
    font-variation-settings: "slnt" -9, "opsz" 6, "wght" 300;
}

/* Update Banner */
#update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--basis);
    color: #fff;
    padding: 12px 20px;
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

#update-banner .update-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

#update-banner button {
    width: auto;
    margin: 0;
    margin-top: 0;
    border-radius: 0.5rem;
    font-family: "adelphi-pe-variable", sans-serif;
}

#update-banner-btn {
    background: var(--accent);
    color: var(--text);
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 14px;
}

#update-banner-btn:hover {
    background: #fff;
    color: var(--basis);
}

#update-banner-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    opacity: 0.8;
}

#update-banner-close:hover {
    opacity: 1;
    background: none;
    color: #fff;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Telekonsultation Status */
.telekonsultation {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--white);
    border: 1px solid #dcdcdc;
}

.telekonsultation h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.teleStatus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.3s, color 0.3s;
    background: #f0f0f0;
    color: #666;
}

.teleStatus--active {
    background: #e6f4ea;
    color: #1a7f37;
}

.teleStatus--active .teleStatus-icon {
    color: #1a7f37;
    font-size: 1.1rem;
}

.teleStatus--inactive {
    background: #fdecea;
    color: #c62828;
}

.teleStatus--inactive .teleStatus-icon {
    color: #c62828;
    font-size: 1.1rem;
}

.teleSettings {
    display: flex;
    gap: 0.5rem;
}

.teleBtn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 500;
    transition: opacity 0.2s, background-color 0.2s;
}

.teleBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.teleBtn-activate {
    background: #1a7f37;
    color: #fff;
}

.teleBtn-activate:not(:disabled):hover {
    background: #15692d;
    color: #fff;
}

.teleBtn-deactivate {
    background: #c62828;
    color: #fff;
}

.teleBtn-deactivate:not(:disabled):hover {
    background: #a51d1d;
    color: #fff;
}

/* Sign & Share */
.signature-preview-container {
    margin: 0.5rem 0;
}

.signature-preview {
    max-width: 200px;
    max-height: 120px;
    border: 2px solid rgba(32, 91, 231, 0.25);
    border-radius: 0.5rem;
    padding: 0.25rem;
    background: white;
    object-fit: contain;
}

.signature-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.signature-actions button {
    width: auto;
}

.btn-danger {
    background-color: var(--error) !important;
    color: var(--white) !important;
}

.btn-danger:hover {
    background-color: #b8001f !important;
    color: var(--white) !important;
}

.sig-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
    margin: 0.5rem 0;
}

.sig-status-ok {
    background-color: rgba(0, 131, 85, 0.1);
    color: var(--success);
}

.sig-status-missing {
    background-color: rgba(230, 0, 44, 0.08);
    color: var(--error);
}

#patient-document-form .sign-checkbox-row {
    margin: 0;
    padding: 0;
}

#patient-document-form .sign-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    margin-top: 1rem;
    border-radius: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    font-family: "adelphi-pe-variable", sans-serif;
    font-variation-settings: "slnt" 0, "opsz" 6, "wght" 400;
}

#patient-document-form .sign-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

#patient-document-form .sign-label i {
    font-size: 0.85rem;
    color: var(--basis);
}

/* Signature Editor */
.signature-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.se-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(32, 91, 231, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.se-sig-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.se-sig-btn {
    width: auto;
    margin: 0;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

.se-complete-btn {
    width: auto;
    margin: 0;
    margin-left: auto;
    padding: 0.4rem 1rem;
    background-color: var(--success) !important;
    color: var(--white) !important;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.se-complete-btn:hover {
    background-color: #006a44 !important;
    color: var(--white) !important;
}

.se-cancel-btn {
    width: auto;
    margin: 0;
    padding: 0.4rem 1rem;
    background-color: var(--error) !important;
    color: var(--white) !important;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.se-cancel-btn:hover {
    background-color: #b8001f !important;
    color: var(--white) !important;
}

.se-canvas-area {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 0.5rem;
    min-height: 0;
}

.se-page-wrapper {
    position: relative;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    background: white;
}

.se-page-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.se-page-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

.se-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.se-bottom-bar button {
    width: auto;
    margin: 0;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
}

.se-page-info {
    font-size: 0.9rem;
    color: var(--text);
}

.se-placement {
    position: absolute;
    border: 2px dashed var(--basis);
    background: rgba(32, 91, 231, 0.05);
    cursor: move;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
}

.se-placement.se-dragging {
    opacity: 0.8;
    border-color: var(--accent);
}

.se-placement img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.se-placement-delete {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    z-index: 11;
}

.se-placement-delete:hover {
    background: #b8001f;
    color: white;
}

.se-placement-resize {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--basis);
    cursor: nwse-resize;
    border-radius: 2px;
    z-index: 11;
}

.patient-sign .page-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}