/*
 * Central submit-button indicator visibility rules.
 * Pairs with public/assets/app/submit-guard.js and the existing
 * crud-page-runtime.js submit handler. Buttons are expected to ship the
 * KTUI v9 dual-label markup:
 *   <span class="indicator-label">...</span>
 *   <span class="indicator-progress">... <span class="kt-spinner"></span></span>
 *
 * Default state: "Please wait" / progress label is hidden. It only becomes
 * visible while a button carries data-kt-indicator="on".
 */

.indicator-progress {
    display: none;
}

[data-kt-indicator="on"]>.indicator-label {
    display: none;
}

[data-kt-indicator="on"]>.indicator-progress {
    display: inline-flex;
    align-items: center;
}

/* Submit-guard busy state hardens the disabled appearance even when the
 * button does not natively expose [disabled] (e.g. anchor-styled triggers). */
[data-app-submit-busy="true"] {
    pointer-events: none;
    cursor: progress;
    opacity: 0.85;
}
