/* ============================================================================
   LARGE MODAL - 75% OF SCREEN SIZE
   ============================================================================ */

/* Make modal 75% of screen, centered */
#editSummaryModal .modal-dialog,
#editSummaryModal .modal-dialog.modal-xl {
    width: 75vw !important;
    max-width: 75vw !important;
    height: 75vh !important;
    margin: 12.5vh auto !important; /* Center vertically: (100vh - 75vh) / 2 = 12.5vh */
}

#editSummaryModal .modal-content {
    height: 75vh !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

#editSummaryModal .modal-header {
    flex-shrink: 0 !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

#editSummaryModal .modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px !important;
}

#editSummaryModal .modal-footer {
    flex-shrink: 0 !important;
    padding: 15px 20px !important;
    border-top: 1px solid #dee2e6 !important;
}

#editSummaryModal textarea {
    width: 100% !important;
    min-height: 50vh !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 15px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    resize: vertical !important;
}

/* Z-index management */
#editSummaryModal {
    z-index: 9999 !important;
}

#editSummaryModal ~ .modal-backdrop {
    z-index: 9998 !important;
}
