/* P32 / Mahya Unified Form UI — token / component / pattern. */
:root{
 --mh-form-height:40px;--mh-form-radius:9px;--mh-form-gap:12px;
 --mh-placeholder-color:#8594a9;--mh-placeholder-size:12px;
 --mh-focus-ring:rgba(38,111,231,.16);
}
body :is(input:not([type="hidden"]),textarea)::placeholder{color:var(--mh-placeholder-color)!important;font-size:var(--mh-placeholder-size)!important;font-weight:400!important;opacity:1!important;font-style:normal!important;letter-spacing:normal!important}
body :is(input:not([type="hidden"]),textarea):focus::placeholder{opacity:.42!important}
body input[type="tel"],body input[type="email"],body input[type="url"]{direction:ltr;unicode-bidi:plaintext}
body .mh32-sr-only{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}
body :is(.mh11-toolbar,.mh-p25-contacts-toolbar) .mh11-field>span.mh32-sr-only{position:absolute!important}
body :is(.mh11-toolbar,.mh-p25-contacts-toolbar) .mh11-field{min-width:0}
body .mh11-toolbar .mahya-select__trigger{min-height:39px!important;border-radius:9px!important}
body .mh11-toolbar .mahya-select__chevron{margin-inline-start:8px!important;margin-inline-end:3px!important;flex-shrink:0!important;width:16px!important;height:16px!important;color:#657f9d!important}
body .mh11-toolbar .mahya-select{min-width:0!important}
/* Fallback SVG chevron for native legacy selects if canonical MahyaUiSelect cannot bind. */
body :is(.mh11-toolbar,.mahya-form,.work-form-panel-v42178) select:not([multiple]):not(.mh31-native-select):not([data-mahya-enhanced="1"]){
 appearance:none!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-size:16px 16px!important;background-position:left 12px center!important;background-repeat:no-repeat!important;
 padding-left:34px!important
}
/* All form footers: PRIMARY action is the visual leftmost, with secondary on its right. */
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,.organization-name-form-v42237 footer,.important-form-actions-v4272,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"]){
 display:flex!important;direction:rtl!important;flex-direction:row-reverse!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important
}
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,.organization-name-form-v42237 footer,.important-form-actions-v4272,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"])> :is(button,a,input[type="submit"]){order:1!important}
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,.organization-name-form-v42237 footer,.important-form-actions-v4272,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"])> :is(button[type="submit"],button[name="action"],input[type="submit"],.mh29-save,.mahya-button:not(.is-secondary),.btn:not(.secondary)){order:0!important}
/* Prevent optional empty label surfaces stretching vertically in resource link variant. */
body.mh11-layout .mh28-resource-modal .mh28-form-fields>.mh11-resource-login{grid-column:auto!important;margin:0!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;gap:0!important;align-self:stretch!important}
body.mh11-layout .mh28-resource-modal .mh28-form-fields>.mh11-resource-login[hidden]{display:none!important}
body.mh11-layout .mh28-resource-modal .mh28-form-fields>.mh11-resource-login>input{box-sizing:border-box!important;margin:0!important;width:100%!important;height:40px!important;min-height:40px!important}
body.mh11-layout .mh28-resource-modal .mh28-form-fields>.mh11-resource-login>span{display:none!important}
body.mh11-layout .mh28-resource-modal .mh28-form-fields>.mh28-tags{grid-column:1/-1!important;margin:0!important}
body .mh31-combo-arrow svg{display:block;width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
body .mh29-contact-modal .mh31-combo-arrow{display:grid!important;place-items:center!important;width:24px!important;height:28px!important;left:7px!important;color:#6b7d97!important}
body .mh29-contact-modal .mh31-combo-input{padding-inline-end:11px!important;padding-inline-start:31px!important}
/* Persian tag-chips, stored as legacy comma-separated tags. */
body .mh32-tags-surface{display:flex;align-items:center;flex-wrap:wrap;gap:6px;box-sizing:border-box;width:100%;min-height:40px;padding:5px 8px;border:1px solid #dae5f3;border-radius:var(--mh-form-radius);background:#fff;direction:rtl;cursor:text}
body .mh32-tags-surface:focus-within{border-color:#6a9ef3;box-shadow:0 0 0 3px var(--mh-focus-ring)}
body .mh32-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%;height:26px;border-radius:6px;padding:0 7px;background:#edf4ff;border:1px solid #d2e3fc;color:#2f639f;font-weight:650;font-size:11px;white-space:nowrap}
body .mh32-tag span{overflow:hidden;text-overflow:ellipsis;max-width:165px}
body .mh32-tag-remove{height:20px;width:20px;padding:0;display:grid;place-items:center;border:0!important;outline:0;background:transparent!important;color:#6586b2;cursor:pointer}
body .mh32-tag-remove:hover{color:#b33447}
body .mh32-tag-remove:focus-visible{outline:2px solid #4d8eed!important;border-radius:4px}
body .mh32-tags-editor{flex:1 1 100px;min-width:78px!important;min-height:27px!important;width:auto!important;height:27px!important;margin:0!important;padding:2px 3px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:12px!important;direction:rtl!important}
body .mh32-tags-editor:focus{outline:none!important;box-shadow:none!important}
body .mh32-tags-original{position:absolute!important;clip:rect(0,0,0,0)!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
body :is(.organization-name-modal-v42237,.mh29-contact-modal,.mh28-resource-modal) :is(input:not([type=checkbox]),textarea){border-radius:9px}
body .organization-name-modal-v42237{border:1px solid #dce6f3!important;border-radius:15px!important;box-shadow:0 15px 48px rgba(22,43,77,.13)!important}
body .organization-name-modal-v42237 header{padding:17px 20px!important}
body .organization-name-modal-v42237 header p{font-size:11px!important;line-height:1.6!important;color:#7b899e!important}
body .organization-name-modal-v42237 form{padding:0!important}
body .organization-name-modal-v42237 form>label{margin:0 20px!important;display:block!important}
body .organization-name-modal-v42237 form>label input{height:42px!important;box-sizing:border-box!important}
body .organization-name-modal-v42237 footer{padding:13px 20px!important;min-height:61px!important;border-top:1px solid #e9eef6!important}
body .organization-name-modal-v42237 footer>:is(button,a){min-height:38px!important;height:38px!important;border-radius:9px!important;padding:0 14px!important;font-size:12px!important}
body [data-org-create-open-v42237]{height:40px!important;min-height:40px!important;border-radius:10px!important;padding:0 15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;line-height:1!important}
@media(max-width:620px){body .mh28-resource-modal .mh28-form-fields>.mh11-resource-login{grid-column:1/-1!important}body .organization-name-modal-v42237{max-width:calc(100vw - 22px)!important}}

/* P32R1: shared footer consistently anchored at VISUAL LEFT even when P29/P31 specify flex-end. */
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,.organization-name-form-v42237 footer,.important-form-actions-v4272,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"]){
 direction:ltr!important;flex-direction:row!important;justify-content:flex-start!important
}
body .mh29-contact-modal .mh29-modal-footer,
body.mh11-layout .mh28-resource-modal .mh28-form .mh28-form-footer,
body .organization-name-modal-v42237 form footer{
 direction:ltr!important;flex-direction:row!important;justify-content:flex-start!important
}
body :is(.mahya-form-footer,.mh28-form-footer,.mh29-modal-footer,.work-form-actions-v42178,.phonebook-form-actions-v4260,.mh-i35-footer,.organization-name-form-v42237 footer,.important-form-actions-v4272,form>.actions,form>footer[class*="footer"],form>footer[class*="actions"]) > :is(button,a,input[type="submit"]){direction:rtl!important}
body.mh11-layout .mh-p25-contacts-toolbar .mh11-field>span,
body.mh11-layout .mh11-toolbar .mh11-field>span{
 display:none!important;position:absolute!important;width:0!important;height:0!important;margin:0!important;padding:0!important
}
/* Chip sub-actions and editor must not inherit legacy mahya-field input/button formatting. */
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-surface{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;
 box-sizing:border-box!important;width:100%!important;padding:5px 8px!important;min-height:40px!important
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;flex-direction:row!important;
 vertical-align:middle!important;gap:5px!important;height:26px!important;padding:0 7px!important;
 position:relative!important;flex:0 0 auto!important
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag>.mh32-tag-remove{
 position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;
 max-height:16px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;
 border-radius:3px!important;box-shadow:none!important;line-height:1!important;flex:0 0 16px!important
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag>.mh32-tag-remove svg{
 display:block!important;width:12px!important;height:12px!important;min-width:12px!important
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-editor,
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-editor:focus{
 border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
 min-height:26px!important;height:26px!important;margin:0!important;padding:0 4px!important;border-radius:0!important
}

/* P32R2: shared SVG fallback for unenhanced native selects.
   Canonical MahyaUiSelect, searchable P31 and multiple selection excluded. */
body form select:not([multiple]):not(.mh31-native-select):not([data-mahya-enhanced="1"]):not([hidden]):not([data-no-mahya-chevron]){
 appearance:none!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7d97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-size:16px 16px!important;background-repeat:no-repeat!important;background-position:left 11px center!important;
 padding-left:max(32px,1.95rem)!important
}

/* MH33 USER ADVANCED FOLD: canonical collapsible pattern, current form only. */
body .user-form-v42194 .mh33-advanced-fold{
 display:block;box-sizing:border-box;margin:10px 0;border:1px solid var(--border,#e2e8f0);
 border-radius:12px;background:var(--surface,#fff);min-width:0;
}
body .user-form-v42194 .mh33-advanced-summary{
 display:flex;direction:rtl;align-items:center;gap:12px;min-height:53px;
 padding:9px 13px;cursor:pointer;list-style:none;outline-offset:-2px;
}
body .user-form-v42194 .mh33-advanced-summary::-webkit-details-marker{display:none}
body .user-form-v42194 .mh33-advanced-summary:focus-visible{
 outline:2px solid var(--primary,#1a73e8);border-radius:11px;
}
body .user-form-v42194 .mh33-advanced-titles{display:grid;gap:3px;flex:1;min-width:0;text-align:right}
body .user-form-v42194 .mh33-advanced-titles strong{font-size:13px;font-weight:700;color:var(--text,#172033)}
body .user-form-v42194 .mh33-advanced-titles small{
 font-size:11px;color:var(--muted,#64748b);line-height:1.5;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
}
body .user-form-v42194 .mh33-advanced-count{
 flex:none;padding:3px 8px;border-radius:6px;background:var(--surface-2,#f1f5f9);
 color:var(--muted,#64748b);font-size:11px;white-space:nowrap;
}
body .user-form-v42194 .mh33-advanced-chevron{
 width:17px;height:17px;flex:none;transform:rotate(0deg);transition:transform .16s ease;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/16px 16px no-repeat;
}
body .user-form-v42194 details[open]>.mh33-advanced-summary .mh33-advanced-chevron{transform:rotate(180deg)}
body .user-form-v42194 .mh33-advanced-fold>:is(section,div){
 box-sizing:border-box;margin:0!important;padding:12px!important;border:0!important;
 border-top:1px solid var(--border,#e2e8f0)!important;border-radius:0 0 12px 12px!important;
 box-shadow:none!important;background:transparent!important;max-width:100%;min-width:0;
}
body .user-form-v42194 .mh33-advanced-summary .voip-user-state-v42125{flex:none}
@media(max-width:620px){
 body .user-form-v42194 .mh33-advanced-summary{padding:10px;gap:8px}
 body .user-form-v42194 .mh33-advanced-titles small{white-space:normal;max-height:34px}
}
@media(prefers-reduced-motion:reduce){
 body .user-form-v42194 .mh33-advanced-chevron{transition:none}
}


/* MH34E1 USER CORE FORM REDESIGN -- scoped pattern; no POST/permission mutation. */
body form.mh34-user-form{
 width:min(910px,calc(100vw - 28px))!important;
 max-height:calc(100dvh - 38px)!important;
 padding:16px!important;scrollbar-gutter:stable;overflow-y:auto!important;
 background:var(--surface,#fff)!important;
}
body form.mh34-user-form:before{
 content:attr(data-mh34-title)!important;display:block!important;
 font-size:17px!important;font-weight:800!important;
 text-align:right!important;line-height:1.4!important;
 margin:0 0 14px!important;padding:0 0 14px!important;
 border-bottom:1px solid var(--border,#e2e8f0)!important;
}
body form.mh34-user-form>.grid-form{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:14px 16px!important;
 padding:16px!important;
 align-items:start!important;
 background:var(--surface,#fff)!important;
 border:1px solid var(--border,#e2e8f0)!important;border-radius:12px!important;
}
body form.mh34-user-form>.grid-form>label.mahya-field{
 display:flex!important;flex-direction:column!important;
 min-width:0!important;gap:5px!important;
 font-size:12px!important;font-weight:650!important;line-height:1.6!important;
 text-align:right!important;margin:0!important;color:var(--text,#172033)!important;
}
body form.mh34-user-form>.grid-form>label.mahya-field> :is(input,select),
body form.mh34-user-form .mh34-saaa-body input{
 width:100%!important;min-width:0!important;box-sizing:border-box!important;
 height:42px!important;min-height:42px!important;
 padding:0 12px!important;margin:0!important;
 font-size:13px!important;
 border-radius:10px!important;
}
body form.mh34-user-form>.grid-form>label.mahya-field>small{
 font-size:11px!important;line-height:1.55!important;color:var(--muted,#64748b)!important;
 margin:0!important;
}
body form.mh34-user-form>.grid-form>.mahya-toggle.check{
 grid-column:1/-1!important;justify-content:flex-start!important;
 height:42px!important;min-height:42px!important;
 padding:0 12px!important;margin:0!important;
 gap:10px!important;
 border-radius:10px!important;
}
body form.mh34-user-form .access-rbac-note-v42220{
 border-radius:10px!important;
 margin:12px 0!important;padding:10px 12px!important;
 font-size:11px!important;line-height:1.6!important;
}
body form.mh34-user-form .mh33-advanced-fold{margin:8px 0!important}
body form.mh34-user-form .mh33-advanced-summary{min-height:51px!important}
body form.mh34-user-form>.actions{
 position:sticky!important;bottom:-16px!important;z-index:10!important;
 margin:14px -16px -16px!important;padding:12px 16px!important;
 background:var(--surface,#fff)!important;
 border-top:1px solid var(--border,#e2e8f0)!important;
}
body form.mh34-user-form .mh34-saaa-block{
 margin-top:10px!important;
 border:1px solid var(--border,#e2e8f0)!important;border-radius:12px!important;
 background:var(--surface,#fff)!important;
}
body form.mh34-user-form .mh34-saaa-block>summary{
 display:flex;align-items:center;gap:10px;cursor:pointer;
 padding:12px 14px;min-height:50px;
 list-style:none;border-radius:12px;direction:rtl;
}
body form.mh34-user-form .mh34-saaa-block>summary::-webkit-details-marker{display:none}
body form.mh34-user-form .mh34-saaa-block>summary:focus-visible{
 outline:2px solid var(--primary,#1a73e8);outline-offset:-2px;
}
body form.mh34-user-form .mh34-saaa-block>summary strong{font-size:13px;color:var(--text,#172033);flex:1}
body form.mh34-user-form .mh34-saaa-status{
 font-size:11px;color:var(--muted,#64748b);background:var(--surface-2,#f1f5f9);
 border-radius:6px;padding:3px 8px;
}
body form.mh34-user-form .mh34-saaa-block>summary svg{
 width:16px;height:16px;stroke:var(--muted,#64748b);fill:none;stroke-width:2;
 transition:transform .15s ease;
}
body form.mh34-user-form .mh34-saaa-block[open]>summary svg{transform:rotate(180deg)}
body form.mh34-user-form .mh34-saaa-body{
 border-top:1px solid var(--border,#e2e8f0);padding:14px;
 display:grid;gap:10px;
}
body form.mh34-user-form .mh34-saaa-body>label{
 display:flex;flex-direction:column;gap:6px;width:min(100%,440px);
 font-size:12px!important;font-weight:650!important;color:var(--text,#172033);
}
body form.mh34-user-form .mh34-saaa-body>label small{font-size:11px!important;color:var(--muted,#64748b)!important;line-height:1.7}
body form.mh34-user-form .mh34-saaa-body .saaa-account-summary-v42153{
 margin:0!important;font-size:11px!important;
}
@media(max-width:680px){
 body form.mh34-user-form{width:calc(100vw - 16px)!important;padding:12px!important;max-height:calc(100dvh - 18px)!important}
 body form.mh34-user-form>.grid-form{grid-template-columns:minmax(0,1fr)!important;padding:12px!important}
 body form.mh34-user-form>.grid-form>.mahya-toggle.check{grid-column:1!important}
 body form.mh34-user-form>.actions{margin:12px -12px -12px!important;padding:10px 12px!important;bottom:-12px!important}
}
@media(prefers-reduced-motion:reduce){body form.mh34-user-form .mh34-saaa-block>summary svg{transition:none}}

/* MH34E2 SINGLE USER MODAL HEADER: hide legacy head rendered in modal router. */

/* MH34E3 keep semantic page heading from PHP, never synthetic duplicate pseudo-title. */
body form.mh34-user-form:before{display:none!important;content:none!important}


/* MH34A1 shared compact organization modal and file widget alignment. */
body .organization-name-modal-v42237{width:min(480px,calc(100vw - 24px))!important}
body .organization-name-modal-v42237 header{
 padding:18px 20px 15px!important;display:flex!important;
 flex-direction:column!important;gap:6px!important;align-items:stretch!important;
}
body .organization-name-modal-v42237 header h2{
 margin:0!important;min-height:32px!important;line-height:32px!important;
 font-size:17px!important;font-weight:800!important;text-align:right!important;
}
body .organization-name-modal-v42237 header p{
 margin:0!important;font-size:11.5px!important;line-height:1.7!important;
 color:var(--muted,#64748b)!important;text-align:right!important;
}
body .organization-name-modal-v42237>.modal-close{
 position:absolute!important;left:16px!important;right:auto!important;top:17px!important;
 display:grid!important;place-items:center!important;
 width:32px!important;height:32px!important;min-height:32px!important;
 border-radius:10px!important;line-height:1!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label{
 display:block!important;margin:4px 20px 16px!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label input{
 height:42px!important;min-height:42px!important;margin:0!important;
 text-align:right!important;padding:0 12px!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237 footer{
 background:var(--surface,#fff)!important;padding:12px 20px!important;
 min-height:60px!important;border-top:1px solid var(--border,#e2e8f0)!important;
}
body .mh30-file-widget{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 min-height:44px!important;box-sizing:border-box!important;
}
body .mh30-file-widget>.mh30-file-button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:none!important;align-self:center!important;line-height:1.2!important;
}
body .mh30-file-widget>.mh30-file-name{
 display:flex!important;align-items:center!important;align-self:stretch!important;
 flex:1 1 0!important;min-width:0!important;line-height:1.5!important;
 margin:0!important;padding:0!important;
}
@media(max-width:560px){
 body .organization-name-modal-v42237 header{padding:14px 16px!important}
 body .organization-name-modal-v42237>.modal-close{top:13px!important;left:12px!important}
 body .organization-name-modal-v42237 .organization-name-form-v42237>label{margin:4px 16px 14px!important}
}


/* MH34B1 SERVER TAGS CONSUMER reuses canonical chip input without changing CSV backend. */
body .srv2-tags-field[data-mh34-tag-editor]{grid-column:1/-1!important;min-width:0!important}
body .srv2-tags-field[data-mh34-tag-editor] .mh32-tags-surface{
 display:flex!important;align-items:center!important;gap:6px!important;
 flex-wrap:wrap!important;min-height:42px!important;margin-top:5px!important;
}
body .srv2-tags-field[data-mh34-tag-editor] .mh32-tags-editor{
 width:auto!important;flex:1 1 100px!important;min-width:100px!important;
 height:30px!important;min-height:30px!important;box-shadow:none!important;
}
body .srv2-tags-field[data-mh34-tag-editor] .mh32-tags-original{display:none!important}


/* P35-11R1 USER FORM FOOTER SAFE VIEWPORT: never drop primary action below modal WorkingArea. */
body form.mh34-user-form>.actions{
 bottom:0!important;
 margin-block-end:0!important;
 padding-block-end:max(12px,env(safe-area-inset-bottom,0px))!important;
 box-sizing:border-box!important;
}
@media(max-width:620px){
 body form.mh34-user-form{
  max-height:calc(100dvh - 24px)!important;
  overscroll-behavior:contain!important;
 }
 body form.mh34-user-form>.actions{
  bottom:0!important;
  margin:12px -12px 0!important;
  padding:10px 12px max(14px,env(safe-area-inset-bottom,0px))!important;
  min-height:60px!important;
 }
}


/* P72 shared tag-chip line alignment: never let the hidden model or editor
   use full-width legacy field styles. Same component also serves server tags. */
body.mh11-layout .mh28-resource-modal .mh28-tags{
 align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-surface{
 direction:rtl!important;display:flex!important;flex-flow:row wrap!important;
 align-items:center!important;justify-content:flex-start!important;align-content:center!important;
 gap:5px!important;min-height:40px!important;padding:5px 9px!important;
 border:1px solid var(--border,#dce5f2)!important;border-radius:9px!important;
 background:var(--surface,#fff)!important;line-height:1.5!important;overflow:visible!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-editor,
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-editor:focus{
 display:block!important;flex:1 1 115px!important;width:auto!important;max-width:none!important;
 min-width:70px!important;min-height:26px!important;height:26px!important;
 padding:0 5px!important;margin:0!important;line-height:26px!important;
 text-align:right!important;direction:rtl!important;align-self:center!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-editor::placeholder{
 color:var(--muted,#8897aa)!important;opacity:1!important;font-size:11px!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag{
 align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;min-height:26px!important;height:26px!important;line-height:1.3!important;
 margin:0!important;padding:0 7px!important;max-width:100%!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag>span{
 line-height:1.4!important;max-width:250px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tag-remove{
 align-self:center!important;margin:0!important;display:grid!important;place-items:center!important;
}
body.mh11-layout .mh28-resource-modal .mh28-tags .mh32-tags-surface:focus-within{
 border-color:var(--primary,#3276cf)!important;outline:2px solid var(--primary-weak,#bad6fc)!important;outline-offset:1px!important;
}


/* P73 component-wide TagChip vertical centering, across archive and server edit.
   Work on the reusable surface, never duplicate in individual forms. */
body.mh11-layout .mh28-resource-modal .mh32-tags-surface .mh32-tag,
body [data-mh34-tag-editor] .mh32-tags-surface .mh32-tag{
 display:inline-flex!important;flex-direction:row!important;
 justify-content:center!important;align-items:center!important;
 vertical-align:middle!important;height:26px!important;min-height:26px!important;
 padding:0 6px!important;gap:5px!important;line-height:1!important;
}
body.mh11-layout .mh28-resource-modal .mh32-tags-surface .mh32-tag>span,
body [data-mh34-tag-editor] .mh32-tags-surface .mh32-tag>span{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 height:20px!important;line-height:20px!important;font-size:11px!important;
 padding:0!important;margin:0!important;vertical-align:middle!important;
}
body.mh11-layout .mh28-resource-modal .mh32-tags-surface .mh32-tag>.mh32-tag-remove,
body [data-mh34-tag-editor] .mh32-tags-surface .mh32-tag>.mh32-tag-remove{
 position:static!important;display:grid!important;place-items:center!important;
 align-self:center!important;width:17px!important;height:17px!important;
 min-width:17px!important;max-width:17px!important;min-height:17px!important;max-height:17px!important;
 padding:0!important;margin:0!important;border:0!important;flex:0 0 17px!important;
 line-height:1!important;font-size:0!important;
}
body.mh11-layout .mh28-resource-modal .mh32-tags-surface .mh32-tag>.mh32-tag-remove svg,
body [data-mh34-tag-editor] .mh32-tags-surface .mh32-tag>.mh32-tag-remove svg{
 position:static!important;display:block!important;width:12px!important;height:12px!important;
 min-width:12px!important;max-width:12px!important;min-height:12px!important;max-height:12px!important;
 margin:auto!important;flex:none!important;
}


/* P78 DigDesign organization create form: simple one-field modal, no oversized
   title/description, primary visual LEFT (LTR footer with inline RTL labels). */
body .organization-name-modal-v42237{
 width:min(430px,calc(100vw - 24px))!important;
 max-width:430px!important;
 border:1px solid var(--border,#dce5f2)!important;
 border-radius:13px!important;
 background:var(--surface,#fff)!important;
 overflow:hidden!important;
}
body .organization-name-modal-v42237>header{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 min-height:56px!important;height:56px!important;
 padding:0 18px!important;margin:0!important;gap:0!important;
 border-bottom:1px solid var(--border,#e3e9f2)!important;
 background:var(--surface,#fff)!important;
}
body .organization-name-modal-v42237>header h2{
 font-size:14px!important;line-height:24px!important;min-height:24px!important;
 font-weight:730!important;padding:0!important;margin:0!important;
 text-align:right!important;
}
body .organization-name-modal-v42237>.modal-close{
 left:13px!important;right:auto!important;top:12px!important;
 width:30px!important;height:30px!important;min-height:30px!important;
 border:1px solid var(--border,#dce5f2)!important;border-radius:8px!important;
 background:var(--surface,#fff)!important;color:var(--muted,#7889a2)!important;
 font-size:17px!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label{
 display:block!important;min-width:0!important;margin:16px 18px 18px!important;
 padding:0!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label input{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;height:42px!important;min-height:42px!important;
 margin:0!important;padding:0 12px!important;
 border:1px solid var(--border,#d6e1f0)!important;border-radius:9px!important;
 background:var(--surface,#fff)!important;
 color:var(--text,#253852)!important;text-align:right!important;direction:rtl!important;
 font-size:12px!important;line-height:1.5!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label input:focus{
 outline:2px solid var(--mahya-primary,#3878d7)!important;outline-offset:1px!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>label input::placeholder{
 color:var(--muted,#8997aa)!important;opacity:1!important;font-size:11.5px!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>footer{
 display:flex!important;flex-direction:row!important;direction:ltr!important;
 justify-content:flex-start!important;align-items:center!important;
 gap:8px!important;min-height:61px!important;padding:11px 18px!important;margin:0!important;
 border-top:1px solid var(--border,#e3e9f2)!important;
 background:var(--surface,#fff)!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>footer>button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;height:38px!important;min-height:38px!important;
 min-width:88px!important;padding:0 14px!important;margin:0!important;
 border-radius:9px!important;font-size:11.5px!important;line-height:1!important;
 direction:rtl!important;white-space:nowrap!important;cursor:pointer!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>footer>.mh78-org-create-primary{
 order:0!important;background:var(--mahya-primary,var(--primary,#216ce1))!important;
 color:#fff!important;border:1px solid var(--mahya-primary,var(--primary,#216ce1))!important;
 box-shadow:none!important;font-weight:700!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>footer>.mh78-org-create-cancel{
 order:1!important;background:var(--surface,#fff)!important;
 color:var(--text,#475569)!important;border:1px solid var(--border,#dce5f2)!important;
 box-shadow:none!important;font-weight:560!important;
}
body .organization-name-modal-v42237 .organization-name-form-v42237>footer>button:focus-visible{
 outline:2px solid var(--mahya-primary,#216ce1)!important;outline-offset:2px!important;
}
@media(max-width:560px){
 body .organization-name-modal-v42237>header{padding-inline:16px!important}
 body .organization-name-modal-v42237 .organization-name-form-v42237>label{margin:14px 16px 16px!important}
 body .organization-name-modal-v42237 .organization-name-form-v42237>footer{padding-inline:16px!important}
}
