/*
 ============================================================
 ASPIRIN_V2147_CRM_UX

 1. Redundant "Карточка" controls hidden.
 2. Dead issue reset × hidden.
 3. Media counter moved away from download button.
 ============================================================
*/


/*
 * Reception journal:
 * whole journal card is already clickable,
 * therefore separate Карточка button is redundant.
 */
.a148-show-card {
    display: none !important;
}


/*
 * Detailed reception summary:
 * JS V214.7 makes the summary itself clickable.
 */
.a148-open-card {
    display: none !important;
}


/*
 * Schedule:
 * keep the original button invisibly in DOM only as
 * a reliable appointment-ID marker for V214.7.
 */
.a5-card-open {
    display: none !important;
}


/*
 * Dead × next to Добавить проблему.
 */
.a145-issue-buttons .a145-reset {
    display: none !important;
}


.a145-issue-buttons .a145-issue-save {
    flex: 1 1 auto !important;
    width: 100% !important;
}


/*
 * Media position indicator.
 *
 * Previously:
 *   bottom center -> overlapped Download.
 *
 * Now:
 *   compact top-right indicator.
 */
.a21441-counter {
    top:
        calc(
            env(
                safe-area-inset-top,
                0px
            )
            + 96px
        )
        !important;

    right: 18px !important;

    bottom: auto !important;
    left: auto !important;

    transform: none !important;

    min-width: 58px !important;

    padding:
        7px
        12px
        !important;

    font-size: 15px !important;

    z-index: 45 !important;

    pointer-events: none !important;
}


/*
 * Runtime-discovered clickable cards.
 */
.a2147-whole-card {
    cursor: pointer;
    -webkit-tap-highlight-color:
        rgba(
            205,
            255,
            51,
            0.08
        );
}


/*
 * After hiding one action button, remaining action controls
 * may use the available width naturally.
 */
.a148-card-actions .a148-open {
    flex: 1 1 100%;
}
