/* P125: shared compact table header, menu, empty row, rename dialog. Reuse Mahya tokens. */
:root{--mh125-radius:var(--mahya-radius,10px);--mh125-line:var(--org-line,var(--border,#dce5f0))}
.mh125-row-action-menu{position:relative;flex:0 0 auto}
.mh125-more-trigger{width:32px;height:32px;min-height:32px;display:grid;place-items:center;padding:0;border:1px solid var(--mh125-line);border-radius:8px;background:#fff;color:var(--org-muted,#62758e);cursor:pointer}
.mh125-more-trigger:hover{background:var(--org-soft,#f2f6fc)}
.mh125-row-action-panel{min-width:164px;z-index:5000;padding:5px;border-radius:10px}
.mh125-row-action-panel.is-floating-v42253{position:fixed!important;margin:0!important;transform:none!important}
.mh125-row-action-panel>:is(a,button),.mh125-row-action-panel form>button{
 display:flex;align-items:center;width:100%;min-height:35px;padding:8px 11px;border:0;border-radius:8px;
 font-family:inherit;font-weight:500;font-size:11.5px;line-height:1.5;text-decoration:none;cursor:pointer;text-align:right;background:transparent;color:var(--org-ink,#253653)
}
.mh125-row-action-panel .is-danger{color:var(--mahya-danger,#bd3c42)!important}
.mh125-row-action-panel :is(a,button):hover{background:var(--org-soft,#f2f6fc)}
.mh125-row-action-panel .is-danger:hover{background:#fff1f1}
.mh125-row-action-panel form{margin:0}
.mh125-row-action-menu :is(button,a):focus-visible{outline:2px solid var(--mahya-primary,#2563eb);outline-offset:2px}
.mh103-org-workspace .mh121-org-access{overflow:visible}
.mh103-org-workspace .mh121-org-access .mh121-access-table{overflow:visible}
.mh103-org-workspace .mh121-access-action{display:flex;align-items:center;justify-content:center;gap:16px;white-space:nowrap;min-width:0}
.mh103-org-workspace .mh121-access-action .mh125-row-view{min-width:65px;min-height:32px;height:32px;padding:6px 11px}
.mh103-org-workspace .mh125-access-empty{min-height:86px;display:flex;align-items:center;justify-content:center;color:var(--org-muted,#728098);font-size:12px;padding:18px;text-align:center}
.mh103-org-workspace .mh125-primary{background:var(--mahya-primary,#2669dc)!important;border:1px solid var(--mahya-primary,#2669dc)!important;color:#fff!important;border-radius:9px;font-weight:650}
.mh103-org-workspace .mh125-primary:hover{filter:brightness(.95)}
.mh103-org-workspace .mh103-contact-actions .mh125-contact-more{margin-inline-start:14px}
.mh103-org-workspace .mh103-contact-actions .mh125-row-action-panel{z-index:5000}
.mh103-org-workspace .mh103-contact-actions.mh103-contact-actions-empty{display:flex;justify-content:center}
.mh125-focused-access{background:var(--org-soft,#edf3fc)}
/* Standard edit dialog shared between organization detail and organization index */
.mh125-org-dialog{position:fixed;inset:0;margin:auto;width:min(510px,calc(100vw - 32px));max-height:calc(100dvh - 45px);
 box-sizing:border-box;padding:0;border:1px solid var(--mh125-line);border-radius:16px;box-shadow:0 22px 60px rgba(15,32,67,.2);background:#fff;color:var(--org-ink,#243650);direction:rtl;overflow:auto}
.mh125-org-dialog::backdrop{background:rgba(23,38,64,.42)}
.mh125-org-form{display:flex;flex-direction:column}
.mh125-org-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--mh125-line)}
.mh125-dialog-title-wrap{display:flex;align-items:center;gap:11px}
.mh125-dialog-title-wrap h2{font-size:16px;font-weight:700;margin:0 0 3px}
.mh125-dialog-title-wrap small{font-size:11px;color:var(--org-muted,#72829a)}
.mh125-dialog-symbol{width:36px;height:36px;display:grid;place-items:center;background:var(--org-soft,#edf4ff);color:var(--mahya-primary,#2669dc);border-radius:10px}
.mh125-dialog-close{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:#fff;color:var(--org-muted,#74829a);cursor:pointer}
.mh125-dialog-close:hover{background:var(--org-soft,#f1f5fc)}
.mh125-org-dialog-body{padding:19px 20px 22px;display:grid;gap:9px}
.mh125-org-dialog-body label{font-size:12px;font-weight:650}
.mh125-org-dialog-body label span{color:#c53b46}
.mh125-org-dialog-body input{width:100%;height:42px;box-sizing:border-box;border:1px solid var(--mh125-line);border-radius:9px;background:#fff;padding:8px 12px;font:inherit;font-size:13px;outline:none}
.mh125-org-dialog-body input:focus{border-color:var(--mahya-primary,#2669dc);box-shadow:0 0 0 3px rgba(43,111,220,.13)}
.mh125-org-hint{font-size:11px;color:var(--org-muted,#72819a);margin:0;line-height:1.6}
.mh125-org-dialog-footer{padding:13px 20px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--mh125-line);background:var(--org-soft,#f9fbff)}
.mh125-org-dialog-footer button{min-height:38px;padding:8px 16px;border-radius:9px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.mh125-org-dialog-footer .mh125-secondary{border:1px solid var(--mh125-line);background:white;color:var(--org-ink,#243650)}
.mh125-org-dialog-footer .mh125-primary{background:var(--mahya-primary,#2669dc);border:1px solid var(--mahya-primary,#2669dc);color:#fff}
.mh125-org-dialog :is(button,input):focus-visible{outline:2px solid var(--mahya-primary,#2669dc);outline-offset:2px}
@media(max-width:760px){
 .mh103-org-workspace .mh121-org-access .mh121-access-columns{display:none}
 .mh103-org-workspace .mh121-org-access .mh121-access-row:not(.mh121-access-columns){grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
 .mh103-org-workspace .mh121-org-access .mh121-access-row>span:nth-child(4){grid-column:2;grid-row:1/4}
 .mh125-org-dialog-header{padding:14px 16px}.mh125-org-dialog-body{padding:16px}.mh125-org-dialog-footer{padding:12px 16px}
}

/* P127 — Unified quiet organization table system.
   Three consumers share the same compact header / column / row vocabulary.
   Preserve server category colors, actions and permission logic. */
.mh103-org-workspace{
 --mh127-surface:var(--surface,#fff);
 --mh127-head-surface:var(--surface,#fff);
 --mh127-column-surface:#eaf0f6;
 --mh127-line:var(--mh-dir-border,#dce4ee);
 --mh127-muted:var(--mh-dir-muted,#61718a);
 --mh127-heading:var(--mh-dir-fg,#233550);
 --mh127-hover:var(--surface-2,#f7f9fc);
 --mh127-accent:var(--mahya-primary,#2467dc);
}

/* Pattern: header remains calm and clean — no gradient or strong vertical stripe. */
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head.mh99-list-header,
 .mh121-org-access>.mh105-section-head,
 .mh103-contacts>.mh105-section-head.mh103-contacts-head
){
 --mh105-bg:var(--mh127-head-surface);
 background:var(--mh127-head-surface)!important;
 border-bottom:1px solid var(--mh127-line)!important;
 min-height:58px!important;
 padding:10px 17px!important;
 box-shadow:none!important;
}
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head.mh99-list-header,
 .mh121-org-access>.mh105-section-head,
 .mh103-contacts>.mh105-section-head.mh103-contacts-head
)::before{display:none!important}
.mh103-org-workspace .mh105-section-head :is(.mh105-head-icon,.mh99-server-mark.mh105-head-icon){
 color:var(--mh127-muted)!important;
 background:var(--mh127-hover)!important;
 border-color:var(--mh127-line)!important;
}
.mh103-org-workspace .mh105-section-head :is(h2,.mh99-list-title h2){
 color:var(--mh127-heading)!important;
 font-size:13px!important;font-weight:720!important;
}
.mh103-org-workspace .mh105-section-head :is(.mh105-head-count,.mh103-contact-count){
 color:var(--mh127-muted)!important;
 background:#f4f6fa!important;
 border:1px solid var(--mh127-line)!important;
 font-weight:500!important;
 min-width:21px;min-height:21px;border-radius:7px!important;
}

/* Pattern: a single neutral and legible column band separates header from data. */
.mh103-org-workspace :is(
 .mh103-servers .mh99-server-columns,
 .mh121-access-columns,
 .mh103-contact-columns
){
 background:var(--mh127-column-surface)!important;
 background-image:none!important;
 color:#34465d!important;
 border-top:0!important;
 border-bottom:1px solid var(--mh127-line)!important;
 box-shadow:none!important;
 min-height:38px!important;
 font-size:11px!important;
 font-weight:660!important;
}
.mh103-org-workspace :is(.mh121-access-columns,.mh103-contact-columns)>span{
 color:#34465d!important;
 font-weight:660!important;
}

/* Pattern: white rows, quiet separators and a light on-hover affordance. */
.mh103-org-workspace :is(
 .mh103-servers .mh99-server-row,
 .mh121-access-row:not(.mh121-access-columns),
 .mh103-contact-row
){
 background:var(--mh127-surface)!important;
 border-bottom-color:var(--mh127-line)!important;
 transition:background-color .12s ease;
}
@media(hover:hover){
 .mh103-org-workspace :is(
  .mh103-servers .mh99-server-row,
  .mh121-access-row:not(.mh121-access-columns),
  .mh103-contact-row
 ):hover{background:var(--mh127-hover)!important}
}
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root,
 .mh121-org-access,
 .mh103-contacts
){
 background:var(--mh127-surface)!important;
 border:1px solid var(--mh127-line)!important;
 border-radius:13px!important;
 box-shadow:0 2px 8px -7px rgba(23,42,72,.18)!important;
}

/* Same-size secondary actions at section level; content outranks three
   simultaneous solid-blue buttons. Shared field/button sizing is unchanged. */
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head [data-srv2-add],
 .mh121-org-access>.mh105-section-head .mh121-access-open,
 .mh103-contacts>.mh105-section-head .mh104-add-contact
){
 display:inline-flex!important;align-items:center;justify-content:center;gap:7px;
 min-height:36px!important;height:36px!important;
 padding:7px 12px!important;
 font-size:11.5px!important;font-weight:650!important;
 border-radius:9px!important;
 border:1px solid var(--mh127-line)!important;
 background:var(--mh127-surface)!important;
 color:var(--mh127-heading)!important;
 box-shadow:none!important;
 text-decoration:none!important;
}
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head [data-srv2-add],
 .mh121-org-access>.mh105-section-head .mh121-access-open,
 .mh103-contacts>.mh105-section-head .mh104-add-contact
) svg{color:var(--mh127-accent)!important}
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head [data-srv2-add],
 .mh121-org-access>.mh105-section-head .mh121-access-open,
 .mh103-contacts>.mh105-section-head .mh104-add-contact
):hover{
 background:#f4f8ff!important;
 border-color:#c6d5ec!important;
 color:var(--mh127-heading)!important;
 filter:none!important;
}
.mh103-org-workspace :is(
 .mh103-servers>.srv2-org-root>.mh105-section-head [data-srv2-add],
 .mh121-org-access>.mh105-section-head .mh121-access-open,
 .mh103-contacts>.mh105-section-head .mh104-add-contact
):focus-visible{outline:2px solid var(--mh127-accent)!important;outline-offset:2px!important}
@media(max-width:600px){
 .mh103-org-workspace :is(
  .mh103-servers>.srv2-org-root>.mh105-section-head.mh99-list-header,
  .mh121-org-access>.mh105-section-head,
  .mh103-contacts>.mh105-section-head.mh103-contacts-head
 ){min-height:54px!important;padding:9px 12px!important}
}
@media(prefers-reduced-motion:reduce){
 .mh103-org-workspace :is(.mh99-server-row,.mh121-access-row,.mh103-contact-row){transition:none!important}
}
