/*#region Kiosk Estate Tools Management Modal Actions */

/*
 * Scope
 * -----
 * Every rule in this section is deliberately limited to the Kiosk Estate Tools
 * Management custom partial. This prevents the layout changes below from
 * affecting any other admin modal that also uses #adminModal, #AdminEditModal,
 * #btnSubmit, Bootstrap .row/.col classes, or the standard modal footer.
 *
 * The modal is identified by the hidden CustomPartialEditView input rendered by
 * the Kiosk Estate Tools Management control.
 *
 * Note: this selector uses :has(). The project already uses :has() elsewhere,
 * so this follows the same browser/support approach as the existing stylesheet.
 */

/*
 * The standard Close / Update controls are rendered inside a Bootstrap row and
 * column structure. Hide only that specific row (identified by #btnSubmit).
 *
 * No other .row or Bootstrap column in the modal is changed.
 */
#adminModal:has(input[name="CustomPartialEditView"][value="KioskEstateToolsManagementViewDto_Admin_CSCFastTrack"]) .AdminEditModalFormWrapper > .row:has(#btnSubmit) {
    display: none !important;
}

/*
 * Style the Manual Payment Push and Manual Barrier Raise headings to provide
 * clear separation between the two Kiosk Estate Tools actions.
 */
#adminModal:has(input[name="CustomPartialEditView"][value="KioskEstateToolsManagementViewDto_Admin_CSCFastTrack"]) h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #ddd;
    font-size: 1.15rem;
    font-weight: 600;
}

    #adminModal:has(input[name="CustomPartialEditView"][value="KioskEstateToolsManagementViewDto_Admin_CSCFastTrack"]) h4:first-of-type {
        margin-top: 0.5rem;
    }

/*
 * Keep the Kiosk action buttons consistently sized and provide spacing between
 * the controls and their associated fields.
 */
#adminModal:has(input[name="CustomPartialEditView"][value="KioskEstateToolsManagementViewDto_Admin_CSCFastTrack"]) button[name="command"] {
    min-width: 100px;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

/*#endregion Kiosk Estate Tools Management Modal Actions */
