/* Scheduler changes are intentionally limited to the requests panel and quick-card internals. */

/* Requests already have a dedicated page. Keep the calendar at full width. */
.schedule-head-div + .row > .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
}

.schedule-head-div + .row > .col-3 {
    display: none !important;
}

/* Appointment right-click menu is retired. The existing three-dot quick card remains. */
#schedulerContextMenuApptBox {
    display: none !important;
}

/* Do not style or reposition #apptSummary itself. Only improve its existing inner content. */
#apptSummary .ruh-quick-summary {
    gap: 10px;
    padding: 12px !important;
    background: #fff !important;
}

#apptSummary .ruh-quick-summary .patient-img img {
    width: 58px !important;
    height: 58px !important;
    margin-right: 10px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(41, 29, 58, .12);
}

#apptSummary .ruh-quick-summary .add-new-patient-fields-wrapper {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 7px;
    min-width: 0;
    padding-left: 0 !important;
}

#apptSummary .ruh-quick-summary .dropdown-fields {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 5px 7px;
    border: 1px solid #eeeaf1;
    border-radius: 7px;
    background: #faf9fb;
}

#apptSummary .ruh-quick-summary .dropdown-fields:first-child {
    grid-column: 1 / -1;
    padding: 0 0 3px;
    border: 0;
    background: transparent;
}

#apptSummary .ruh-quick-summary p {
    margin: 0 !important;
    color: #625c68;
    font-size: 11px !important;
    line-height: 1.3;
    white-space: normal;
}

#apptSummary .ruh-quick-summary .dropdown-fields:first-child p {
    color: #2d2733;
    font-size: 14px !important;
    font-weight: 700;
}

#apptSummary .ruh-quick-summary strong {
    color: #514a57;
    font-size: 10px !important;
    font-weight: 700;
    text-transform: uppercase;
}

#apptSummary .ruh-quick-primary-actions {
    padding: 8px 12px 10px !important;
    border-top: 1px solid #f0edf3;
    background: #fff !important;
}

#apptSummary .ruh-quick-primary-actions .add-new-patient-fields-wrapper {
    display: flex;
    gap: 7px;
}

#apptSummary .ruh-quick-primary-actions .btn {
    min-width: 88px;
    min-height: 31px;
    margin: 0 !important;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none !important;
}

#apptSummary .ruh-appointment-quick-card__actions {
    padding: 10px 12px 12px;
    border-top: 1px solid #ece8ef;
    background: #faf9fb;
}

#apptSummary .ruh-appointment-quick-card__actions-title {
    margin-bottom: 7px;
    color: #38313f;
    font-size: 11px;
    font-weight: 700;
}

#apptSummary .ruh-appointment-quick-card__actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#apptSummary .ruh-appointment-action {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #e7e2eb;
    border-radius: 8px;
    color: #51485b;
    background: #fff;
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease, background-color .14s ease, color .14s ease;
}

#apptSummary .ruh-appointment-action i {
    width: 15px;
    color: #72519a;
    font-size: 11px;
    text-align: center;
}

#apptSummary .ruh-appointment-action:hover:not(:disabled) {
    border-color: #cdbfda;
    color: #4b3269;
    background: #f5f0fa;
}

#apptSummary .ruh-appointment-action:disabled {
    color: #aaa4ae;
    background: #f5f4f6;
    cursor: not-allowed;
    opacity: .65;
}

#apptSummary .ruh-appointment-action:disabled i {
    color: #aaa4ae;
}

#apptSummary .ruh-appointment-action--danger {
    border-color: #efd9d9;
    color: #a54a4a;
    background: #fffafa;
}

#apptSummary .ruh-appointment-action--danger i {
    color: #b65050;
}

@media (max-width: 520px) {
    #apptSummary .ruh-quick-summary .add-new-patient-fields-wrapper,
    #apptSummary .ruh-appointment-quick-card__actions-grid {
        grid-template-columns: 1fr;
    }

    #apptSummary .ruh-quick-summary .dropdown-fields:first-child {
        grid-column: auto;
    }
}
