/*
 * Perfect Transcription customizations (loaded on every page via StyleFilterEvent).
 * Replaces the 6.0 fork's edits to theme-defaults.scss and demographics.php.
 */

/* Patient dashboard: show only the Demographics card. Perfect Transcription records hold a
   patient's name, tracking number and documents; the clinical, billing and scheduling cards
   (Allergies, Care Team, Care Plan, Insurance, Vitals, ...) are empty for every patient.
   This also hides OpenEMR's patient notes card ("Messages"), replaced by oe-mi-messages,
   and any card a future OpenEMR release adds. */
body.patient-demographic section.card:not(:has(#demographics_ps_expand)) {
    display: none !important;
}

/* Patient Finder: hide "Add New Patient"; patients are created by the transcription importer. */
.btn-add[id$="/interface/new/new.php"],
.btn-add[href$="/interface/new/new.php"],
a[href$="/interface/new/new.php"].btn-add {
    display: none !important;
}

/* Login page: retention notice banner (see templates/perfecttranscription/login.html.twig). */
.ptomr-login-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    margin: 0;
    padding: 0.6rem 1rem;
    text-align: center;
    color: #a00;
    background-color: #fff3f3;
    border-bottom: 1px solid #f1c0c0;
    font-weight: 600;
}
.ptomr-login-notice p {
    margin: 0;
}
