/* Pop-ups and patient information (owner 11/19). */
/* A pop-up that fits the screen: its own scroll in the body, header and footer buttons always visible. */
.modal-content.modal-fit { display: flex; flex-direction: column; max-height: 92vh; overflow: hidden; }
.modal-content.modal-fit > .modal-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-content.modal-fit > .modal-header, .modal-content.modal-fit > .modal-footer { flex: none; }
/* Patient information: two columns of label and value rows (owner 11/19); one column on a narrow screen. */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
.ai-col { min-width: 0; }
.ai-row { display: flex; align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; min-width: 0; }
.ai-label { flex: 0 0 9.5em; width: 9.5em; text-align: right; color: var(--mid); }
.ai-value { flex: 1 1 auto; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.ai-edit { background: none; border: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; text-decoration: underline; }
.ai-warning { background: #fef9c3; border: 1px solid #eab308; color: #713f12; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr; } .ai-label { flex-basis: 8em; width: 8em; } }
/* The close X is red across the EHR (a plain X button, not a Cancel button). */
button[aria-label="Close"]:not(.btn), .modal-header > button:not(.btn), .modal-header button[data-action="closeModal"]:not(.btn), .modal-inner > .modal-header > button:not(.btn) { color: #c0392b !important; font-weight: 700; }
button[aria-label="Close"]:not(.btn):hover, .modal-header > button:not(.btn):hover { color: #8e1b10 !important; }
