/* I33: one allocated right-rail column shared by all Home workspaces. */
@media(min-width:700px){
 .mahya-home-dig [data-mh-workspace-root] > .mh-ws-view {
   box-sizing:border-box!important;
   padding-right:94px!important;
   padding-left:0;
   min-width:0;
 }
 /* Canonical embedded pages had stronger legacy padding:0!important and
    must also reserve a gutter for the fixed rail. */
 .mahya-home-dig [data-mh-workspace-root] > .mh-ws-view.mh-ws-canonical-page:not([hidden]) {
    box-sizing:border-box!important;
    padding:0 94px 0 0!important;
 }
 .mahya-home-dig [data-mh-workspace-view="home"] .mh-home-grid{
   margin-right:0!important;width:100%!important;
 }
}
.mh-home-task-menu-wrap{position:relative;align-self:center;flex-shrink:0}
.mh-home-task-menu-wrap .mh-more{display:flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--mh-home-muted,#64748b);min-width:30px;min-height:30px;cursor:pointer}
.mh-home-task-menu{position:absolute;z-index:75;top:calc(100% + 3px);left:0;min-width:145px;padding:4px;direction:rtl;border:1px solid var(--mh-home-border,#dce5f0);border-radius:9px;background:#fff;box-shadow:0 8px 25px rgba(25,40,67,.14)}
.mh-home-task-menu[hidden]{display:none!important}
.mh-home-task-menu button{width:100%;display:block;text-align:right;border:0;border-radius:7px;background:transparent;padding:8px 10px;cursor:pointer;font:inherit;font-size:11px;color:var(--mh-home-fg,#1d293c)}
.mh-home-task-menu button:hover,.mh-home-task-menu button:focus-visible{background:var(--mh-home-primary-subtle,#e9f0fb)}
.mh-home-task-menu button[data-home-task-delete]{color:#ad3434}
.mh-home-task-overlay[hidden],.mh-home-task-overlay iframe[hidden]{display:none!important}
.mh-home-task-overlay{position:fixed;inset:0;z-index:12000;background:rgba(30,45,67,.29);display:flex;align-items:center;justify-content:center}
.mh-home-task-overlay:focus{outline:0}
.mh-home-task-overlay iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;z-index:1}
.mh-home-task-overlay-tools{position:absolute;z-index:4;top:16px;left:16px;display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid var(--mh-home-border,#dce5f0);border-radius:9px;background:#fff;box-shadow:0 6px 21px rgba(25,45,70,.13);font-size:11px}
.mh-home-task-overlay-tools button{border:0;background:transparent;color:var(--mh-home-primary,#1769dd);font:inherit;cursor:pointer}
.mh-home-task-overlay-tools span:empty{display:none}
body.mh-i33-task-open{overflow:hidden}
.mh-home-task-delete-dialog{width:min(390px,calc(100vw - 32px));direction:rtl;padding:18px;border-radius:14px;border:1px solid var(--mh-home-border,#dce5f0);background:#fff;color:var(--mh-home-fg,#1d293c);box-shadow:0 16px 45px rgba(25,45,70,.17)}
.mh-home-task-delete-dialog::backdrop{background:rgba(25,40,65,.30)}
.mh-home-task-delete-dialog h2{font-size:15px;margin:0 0 10px}
.mh-home-task-delete-dialog p{font-size:12px;line-height:1.7}
.mh-home-task-delete-dialog strong{display:block;font-size:12px}
.mh-home-task-delete-dialog [data-home-task-delete-error]{color:#b42318}
.mh-home-task-delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.mh-home-task-delete-actions button{border:1px solid var(--mh-home-border,#dce5f0);padding:8px 12px;border-radius:8px;background:#fff;font:inherit;font-size:12px;cursor:pointer}
.mh-home-task-delete-actions [data-home-task-delete-confirm]{background:#b42318;border-color:#b42318;color:#fff}
.mh-home-task-delete-actions button:disabled{opacity:.55;cursor:wait}
/* Embedded Phonebook: only one compact search field and the contact list. */
body:has(.phonebook-search-v4260 input[aria-label="جستجوی زنده مخاطبین"]) .phonebook-toolbar-v4260{padding:0!important;margin:0 0 12px!important;border:0!important;background:transparent!important;box-shadow:none!important}
body:has(.phonebook-search-v4260 input[aria-label="جستجوی زنده مخاطبین"]) .phonebook-search-field-v42240{width:100%;max-width:none}
body:has(.phonebook-search-v4260 input[aria-label="جستجوی زنده مخاطبین"]) .phonebook-search-v4260{width:100%}


/* Under 700px: bottom dock avoids any content overlay, and body has scroll room. */
@media(max-width:699px){
 .mahya-home-dig .mh-section-rail{
   inset-inline-start:8px!important;
   inset-inline-end:8px!important;
   inset-block-start:auto!important;
   inset-block-end:8px!important;
   top:auto!important;bottom:8px!important;
   width:auto!important;max-height:56px!important;
   transform:none!important;
   flex-direction:row!important;
   justify-content:space-around!important;
   gap:2px!important;
   padding:5px 6px!important;
   z-index:70;
 }
 .mahya-home-dig [data-mh-workspace-root] > .mh-ws-view{
   padding-bottom:88px!important;
 }
 .mahya-home-dig [data-mh-workspace-root] > .mh-ws-view.mh-ws-canonical-page:not([hidden]){
   padding:0 0 88px!important;
 }
}

/* P34: Dashboard-specific top nav is redundant with the right workspace rail.
   Other pages retain full top links because that rail is not present there. */
body.mahya-home-dig .primary-nav-v42181>a:not(:first-child){display:none!important}
body.mahya-home-dig .mahya-search--header{
  flex:1 1 650px;min-width:240px;max-width:none;width:auto!important;
}
body.mahya-home-dig .topbar-v42181 .global-search{flex-grow:1;min-width:0;max-width:none}
body.mahya-home-dig .mh-home-tasks .mh-row-main:hover,
body.mahya-home-dig .mh-home-tasks .mh-row-main:hover strong,
body.mahya-home-dig .mh-home-tasks .mh-row-main:focus-visible,
body.mahya-home-dig .mh-home-tasks .mh-row-main:focus-visible strong {
 text-decoration:none!important;
}
/* The overlay has been hoisted to body: top-level modal is above the fixed header. */
body>.mh-home-task-overlay{z-index:2147483000!important}
body>.mh-home-task-delete-dialog{z-index:2147483001!important}
body:has(form[data-i34-live-only]) .cities-search{display:flex;gap:0;max-width:none}
body:has(form[data-i34-live-only]) .cities-search>input[type=search]{
 width:100%;min-width:0;box-sizing:border-box;flex:1;direction:rtl
}
