/* ============================================================
   COMMUNICATIONTRACK_R29E8_PRINT_SAVE_ACTIONS
   Exactly one Print + one Save PDF button
   ============================================================ */

.ct-r29e8-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin: 0 0 14px 0;
    padding: 0;
}

.ct-r29e8-actions button {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 38px;
    padding: 8px 14px;

    border-radius: 7px;

    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.ct-r29e8-actions svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex: 0 0 15px;
}

/* PRINT = secondary action */
.ct-r29e8-print {
    border: 1px solid #cbd3df !important;
    background: #ffffff !important;
    color: #302851 !important;

    box-shadow:
        0 1px 2px rgba(16, 24, 40, .05);
}

.ct-r29e8-print:hover {
    border-color: #aeb8c7 !important;
    background: #f7f8fb !important;
}

/* SAVE PDF = primary action */
.ct-r29e8-save {
    border: 1px solid #302851 !important;
    background: #302851 !important;
    color: #ffffff !important;

    box-shadow:
        0 1px 3px rgba(16, 24, 40, .10);
}

.ct-r29e8-save:hover {
    border-color: #262044 !important;
    background: #262044 !important;

    box-shadow:
        0 2px 5px rgba(16, 24, 40, .14);
}

.ct-r29e8-actions button:active {
    transform: translateY(1px);
}

.ct-r29e8-actions button:focus-visible {
    outline: 3px solid rgba(48, 40, 81, .18);
    outline-offset: 2px;
}

/*
 * Keep the old R2.9E2 action container as a hidden sentinel.
 * R2.9E2 checks for this element before generating another button.
 * Removing it was what caused the four duplicate buttons.
 */
.r29e2-screen-actions.ct-r29e8-engine-sentinel {
    display: none !important;
    visibility: hidden !important;

    position: absolute !important;
    left: -100000px !important;
    top: -100000px !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

/* No document action buttons inside printed/PDF output. */
@media print {
    .ct-r29e8-actions,
    .ct-r29e8-engine-sentinel {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .ct-r29e8-actions {
        justify-content: stretch;
    }

    .ct-r29e8-actions button {
        flex: 1 1 0;
        min-width: 0;
    }
}
