/* P30 – shared Dig-style progressive form consistency. Active renderer only. */
.mh30-visually-hidden-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
:is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"],form>div.actions){justify-content:flex-end!important}
a:is(.mahya-button,.btn,[class*="-btn"],[class*="-button"],[role="button"]),a:is(.mahya-button,.btn,[class*="-btn"],[class*="-button"],[role="button"]):is(:hover,:focus-visible,:active),a.mh30-file-picker:is(:hover,:focus-visible){text-decoration:none!important;text-decoration-line:none!important}
body.mh11-layout .mh28-form-footer{justify-content:flex-end!important}
body .mh29-modal-footer{justify-content:flex-end!important}
body.mh11-layout .mh29-public-toggle{min-height:27px!important;gap:5px!important}
body.mh11-layout .mh29-public-toggle input[type="checkbox"]{width:14px!important;height:14px!important;min-height:14px!important;max-height:14px!important;margin:0!important;flex:none!important}
body.mh11-layout .mh29-public-toggle>span{font-size:11px!important;font-weight:620!important;gap:0!important}
body.mh11-layout .mh29-public-toggle small{display:none!important}
body.mh11-layout .mh28-choice-field legend{font-size:11px!important}
.mh30-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.mh30-file-widget{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;width:100%!important;box-sizing:border-box!important;direction:rtl!important;padding:7px!important;min-height:44px!important;border:1px dashed #c7d8ed!important;border-radius:9px!important;background:#f9fbff!important;color:#536986!important;font-size:12px!important;font-weight:500!important}
.mh30-file-button{display:inline-flex!important;align-items:center!important;gap:6px!important;justify-content:center!important;white-space:nowrap!important;min-width:104px!important;height:32px!important;padding:0 11px!important;border-radius:7px!important;border:1px solid #bfd5f4!important;background:#eaf3ff!important;color:#235da7!important;font:inherit!important;font-size:11.5px!important;font-weight:700!important;cursor:pointer!important;text-decoration:none!important}
.mh30-file-button:hover{background:#e0edff!important}
.mh30-file-button:focus-visible{outline:2px solid #4a90e9!important;outline-offset:2px!important}
.mh30-file-name{flex:1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;direction:auto!important;text-align:right!important;font-size:11px!important;color:#6e819a!important}
.mh30-file-widget[hidden],.mh30-file-name[hidden]{display:none!important}
body.mh11-layout .mh28-form .mh30-file-widget{height:44px!important}
body.mh11-layout .mh28-form .mh30-file-widget :is(button,span){box-sizing:border-box!important}
.mh30-live-wait{opacity:.6!important;transition:opacity .12s ease!important}
.mh30-live-announcer{position:absolute!important;width:1px!important;height:1px!important;clip:rect(0,0,0,0)!important;overflow:hidden!important;white-space:nowrap!important}
@media(max-width:540px){.mh30-file-widget{flex-wrap:wrap!important}.mh30-file-name{flex-basis:calc(100% - 130px)!important}}
body.mh11-layout .mh28-form .mh28-field input[type=file].mh30-file-input,
body .mh28-form .mh28-field input[type=file].mh30-file-input,
body label input[type=file].mh30-file-input{
 position:absolute!important;width:1px!important;min-width:1px!important;max-width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important
}

/* R1: guarantee every form action footer ends at visual left in RTL. */
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"],form>div.actions){
 direction:rtl!important;justify-content:flex-end!important
}
body.mh11-layout .mh28-resource-modal .mh28-form .mh28-form-footer{
 direction:rtl!important;justify-content:flex-end!important
}


/* P77 — shared resource visibility toggle: true checkbox/label vertical baseline,
   without relying on font line-box quirks or misaligned global label controls. */
body.mh11-layout .mh28-resource-modal .mh29-public-toggle{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-direction:row!important;align-self:flex-start!important;
 gap:7px!important;min-height:32px!important;height:32px!important;
 padding:0!important;margin:0!important;line-height:18px!important;
 vertical-align:middle!important;
}
body.mh11-layout .mh28-resource-modal .mh29-public-toggle input[type="checkbox"]{
 position:static!important;display:block!important;float:none!important;
 transform:none!important;vertical-align:middle!important;
 width:16px!important;height:16px!important;min-width:16px!important;max-width:16px!important;
 min-height:16px!important;max-height:16px!important;
 padding:0!important;margin:0!important;align-self:center!important;flex:0 0 16px!important;
}
body.mh11-layout .mh28-resource-modal .mh29-public-toggle>span{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 align-self:center!important;white-space:nowrap!important;
 line-height:18px!important;height:18px!important;min-height:18px!important;
 margin:0!important;padding:0!important;vertical-align:middle!important;
 font-size:11px!important;font-weight:620!important;
}
body.mh11-layout .mh28-resource-modal .mh29-public-toggle:focus-within{
 outline:2px solid var(--primary,#276fe6)!important;outline-offset:2px!important;border-radius:4px!important
}
