/* ═══════════════════════════════════════════════════════════════
   PRINT DIALOG — Section Selector Modal
   Shared across Doctor Daily Entry, NICU Discharge, PN Discharge
   ═══════════════════════════════════════════════════════════════ */

.print-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pdFadeIn 0.2s ease;
}

@keyframes pdFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.print-dialog {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 520px;
    max-width: 94vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: pdSlideUp 0.25s ease;
    overflow: hidden;
}

@keyframes pdSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.print-dialog-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #e8e8e8;
}

.print-dialog-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1a237e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-dialog-header p {
    margin: 0;
    font-size: 13px;
    color: #777;
}

/* Toggle bar */
.print-dialog-toggle {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.print-dialog-toggle button {
    padding: 6px 14px;
    border: 1px solid #1976D2;
    border-radius: 6px;
    background: #e3f2fd;
    color: #1565C0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.print-dialog-toggle button:hover {
    background: #bbdefb;
}

/* Section list */
.print-dialog-sections {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 16px;
}

.print-dialog-sections label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.print-dialog-sections label:hover {
    background: #f5f5f5;
}

.print-dialog-sections label.checked {
    background: #e8f5e9;
}

.print-dialog-sections input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2E7D32;
    cursor: pointer;
    flex-shrink: 0;
}

.print-dialog-sections .section-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Footer */
.print-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.print-dialog-footer button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.pd-btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd !important;
}

.pd-btn-cancel:hover {
    background: #e8e8e8;
}

.pd-btn-print {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: #fff;
}

.pd-btn-print:hover {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* Hide dialog on print */
@media print {
    .print-dialog-overlay {
        display: none !important;
    }
    .print-exclude {
        display: none !important;
    }
}
