/*
 * The Care Desk - Add Appointment extras
 * - "Add New Patient" button + popup (js/appointment-patient.js)
 * - Lab Tests Show / Hide header (appointment form in assets/index-*.js)
 */

/* Button sits on the right of the "Patient" label */
.cd-ap-new {
    float: right;
    margin-top: -2px;
    font-size: 13px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 6px;
}

/* Keep the patient dropdown full width below the button */
.cd-ap-new + .mb-3 > label + div,
.cd-ap-overlay + .mb-3 > label + div {
    clear: both;
}

/* Popup above the appointment window */
.cd-ap-overlay {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 16px 16px;
    overflow-y: auto;
}

.cd-ap-box {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.cd-ap-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.cd-ap-body {
    padding: 18px 20px;
}

/* ---------- Lab Tests: Show / Hide header ---------- */

.cd-lab-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cd-lab-toggle.cd-lab-closed {
    border-bottom: 0;
}

.cd-lab-link {
    color: var(--bs-primary, #0d6efd);
    font-size: 13px;
    font-weight: 600;
}
