/* The legacy themes use unlayered !important sizes. Scope their overrides to these directory controls. */
@layer vertex-directory-accessibility {
@media screen {
  body.zace-desktop.zace-modern #content .vp-tree[aria-label="دليل الحسابات العام"],
  body.zace-desktop.zace-modern #content .vp-tree[aria-label="دليل الحسابات العام"] :is(details,summary,[role=treeitem],.vp-tree-label,.vp-tree-name) {
    direction: rtl !important; text-align: right !important;
    font: 15px/1.6 "Segoe UI", Tahoma, sans-serif !important;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"] :is(summary,[role=treeitem]) {
    height:auto!important; min-height:26px!important; max-height:none!important;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"] details {
    margin-left:0!important; margin-right:14px; padding-left:0!important; padding-right:5px;
    border-left:0!important; border-right:1px dotted #becddd;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"]>details {margin-right:0;border-right:0}
  #content .vp-tree .vp-tree-code {direction:ltr!important; unicode-bidi:isolate; font-size:14px!important}
  /* Keep each account in its own row across compact and custom themes. */
  #content .vp-tree[aria-label="دليل الحسابات العام"] :is(summary,[role=treeitem]) {
    box-sizing:border-box!important; position:relative!important;
    height:auto!important; min-height:26px!important; line-height:1.6!important;
    white-space:nowrap!important; padding-block:2px!important;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"] .vp-leaf {
    display:block!important;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"] .vp-tree-label {
    display:inline-flex!important; align-items:baseline!important;
    gap:0.5em!important; vertical-align:middle!important;
    position:static!important; line-height:inherit!important;
  }
  #content .vp-tree[aria-label="دليل الحسابات العام"] :is(.vp-tree-code,.vp-tree-name) {
    position:static!important; flex:none!important; white-space:nowrap!important;
  }
  body.zace-desktop #content #openStockRevalue,
  body.zace-desktop #content [data-action="new-item"] {
    position:static!important; inset:auto!important; display:inline-flex!important; align-items:center;
    flex:0 0 auto!important; width:max-content!important; max-width:100%!important; min-height:32px!important;
    height:auto!important; white-space:normal!important; padding:4px 9px!important; line-height:1.45!important;
  }
  body.zace-desktop #content .rwc-caption:has(#openStockRevalue) {height:auto!important;flex-wrap:wrap!important;gap:6px!important}
  body.zace-desktop #desktopToolbar [data-vn-icon="list"],
  body.zace-desktop #desktopToolbar [data-vn-icon="list"] button,
  body.zace-desktop #desktopToolbar [data-vn-icon="list"] .shortcut-label {
    width:max-content!important; max-width:none!important; min-width:max-content!important;
    flex:0 0 auto!important; white-space:nowrap!important; text-overflow:clip!important;
  }
  #content .vx-records-grid .table-wrap {max-width:100%;overflow:auto!important}
  #content .vx-records-grid table :is(th,td):first-child {white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip!important;line-height:1.45!important;height:auto!important}
  #content .vx-records-grid tfoot :is(th,td) {min-width:max-content!important;white-space:normal!important}
  #content .catalog-empty:not([hidden]) {display:block;padding:.7em;color:#384d62;text-align:center;direction:rtl}
  #content .catalog-empty[hidden]{display:none!important}
}

}
