#enterprise-root .enterprise-card { padding: 20px; }

/* Area managers use the branch workspace's compact navigation inside the page. */
body.area-manager-compact-shell .dashboard-container > .sidebar { display: none !important; }
body.area-manager-compact-shell .dashboard-container > .content-area { flex: 1 1 100%; min-width: 0; width: 100%; }
#enterprise-root.area-manager-workspace:not(:has(.enterprise-branch-page)) { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
#enterprise-root.area-manager-workspace:not(:has(.enterprise-branch-page)) > .enterprise-area-nav { position: sticky; top: 16px; display: grid; gap: 5px; padding: 12px; border-radius: 10px; background: #19212e; color: #f1f5f9; }
#enterprise-root.area-manager-workspace .enterprise-area-nav button { min-height: 44px; padding: 10px 13px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; text-align: start; cursor: pointer; }
#enterprise-root.area-manager-workspace .enterprise-area-nav button:hover,
#enterprise-root.area-manager-workspace .enterprise-area-nav button[aria-current="page"] { background: #333e50; box-shadow: inset -3px 0 #e64963; }

#enterprise-root .enterprise-branch-page { min-width: 0; padding: 24px; }
#enterprise-root .enterprise-branch-page [hidden] { display: none !important; }
#enterprise-root .enterprise-branch-header,
#enterprise-root .enterprise-branch-panel-head,
#enterprise-root .enterprise-branch-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#enterprise-root .enterprise-branch-header,
#enterprise-root .enterprise-branch-panel-head { justify-content: space-between; }
#enterprise-root .enterprise-branch-header { margin-block-end: 20px; }
#enterprise-root .enterprise-branch-header h2 { margin: 2px 0; font-size: 28px; overflow-wrap: anywhere; }
#enterprise-root .enterprise-branch-header p { margin: 0; color: var(--text-secondary, #475569); }
#enterprise-root .enterprise-branch-header .enterprise-branch-ancestor { font-size: 13px; }
#enterprise-root .enterprise-branch-title-line,
#enterprise-root .enterprise-branch-header-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#enterprise-root .enterprise-branch-header-actions { align-items: end; }
#enterprise-root .enterprise-branch-status { padding: 2px 8px; border-radius: 50px; background: var(--bg-secondary, #f2f4f7); font-size: 12px; font-weight: 600; }
#enterprise-root .enterprise-branch-status[data-active="true"] { background: #e8f4ed; color: #245c40; }
#enterprise-root [data-branch-picker-status]:empty { display: none; }
#enterprise-root .enterprise-branch-panel-head { margin-block-end: 16px; }
#enterprise-root .enterprise-branch-panel h3 { margin: 0; font-size: 17px; }
#enterprise-root .enterprise-branch-tabs { display: flex; gap: 0 12px; flex-wrap: wrap; margin-block-end: 14px; border-block-end: 1px solid var(--border-color, #dce2ea); }
#enterprise-root .enterprise-branch-tabs button,
#enterprise-root .enterprise-branch-name { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
#enterprise-root .enterprise-branch-tabs button { padding: 8px; min-height: 44px; border-block-end: 2px solid transparent; }
#enterprise-root .enterprise-branch-tabs button[aria-pressed="true"] { color: #a71940; border-block-end-color: #c61e47; }
#enterprise-root .enterprise-branch-tabs button:hover { background: var(--bg-secondary, #f2f4f7); }
#enterprise-root .enterprise-area-layout { display: grid; grid-template-columns: minmax(160px, 210px) minmax(0, 1fr); align-items: start; gap: 18px; }
#enterprise-root .enterprise-area-layout .enterprise-branch-tabs { display: grid; gap: 4px; background: #19212e; color: #f1f5f9; border: 0; padding: 10px; border-radius: 8px; }
#enterprise-root .enterprise-area-layout .enterprise-branch-tabs button { color: inherit; text-align: start; padding-inline: 12px; border-radius: 5px; }
#enterprise-root .enterprise-area-layout .enterprise-branch-tabs button:is(:hover,[aria-pressed="true"]) { background: #333e50; color: white; }
#enterprise-root .enterprise-area-layout .enterprise-branch-panel { min-width: 0; }
#enterprise-root .enterprise-area-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-block-end: 18px; }
#enterprise-root .enterprise-area-stats div { display: grid; padding: 12px; border: 1px solid var(--border-color, #dce2ea); border-radius: 7px; }
#enterprise-root .enterprise-area-stats strong { font-size: 24px; }
@media(max-width: 690px) {
  #enterprise-root.area-manager-workspace:not(:has(.enterprise-branch-page)) { grid-template-columns: 1fr; }
  #enterprise-root.area-manager-workspace:not(:has(.enterprise-branch-page)) > .enterprise-area-nav { position: static; display: flex; flex-wrap: wrap; }
  #enterprise-root .enterprise-area-layout { grid-template-columns: 1fr; }
  #enterprise-root .enterprise-area-layout .enterprise-branch-tabs { display: flex; flex-wrap: wrap; }
}
#enterprise-root .enterprise-branch-name { text-align: start; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
#enterprise-root .enterprise-branch-panel { min-width: 0; padding: 20px; background: var(--ui-paper, #fff); border: 1px solid var(--border-color, #dce2ea); border-radius: 10px; }
#enterprise-root .enterprise-branch-panel [role="alert"]:empty,
#enterprise-root .enterprise-branch-panel [role="status"]:empty { display: none; }
#enterprise-root .enterprise-branch-summary,
#enterprise-root .enterprise-branch-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
#enterprise-root .enterprise-branch-summary dt { color: var(--text-secondary, #475569); font-size: 13px; }
#enterprise-root .enterprise-branch-summary dd { font-weight: 600; }
#enterprise-root .enterprise-branch-coverage { margin-block-start: 18px; padding-block-start: 14px; border-block-start: 1px solid var(--border-color, #dce2ea); }
#enterprise-root .enterprise-branch-coverage ul { padding: 0; margin: 8px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
#enterprise-root .enterprise-branch-coverage li { background: var(--bg-secondary, #f2f4f7); padding: 4px 10px; border-radius: 6px; overflow-wrap: anywhere; }
#enterprise-root .branch-coverage-map { min-height: 330px; margin-block: 16px; overflow: hidden; border: 1px solid var(--border-color, #dce2ea); border-radius: 10px; background: var(--bg-secondary, #f2f4f7); }
#enterprise-root .branch-coverage-list { display: grid; gap: 12px; }
#enterprise-root .branch-coverage-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--border-color, #dce2ea); border-radius: 10px; background: var(--ui-paper, #fff); }
#enterprise-root .branch-coverage-card h4 { margin: 0 0 8px; }
#enterprise-root .branch-coverage-card p { margin: 4px 0; color: var(--text-muted, #64748b); }
#enterprise-root .branch-coverage-empty { padding: 24px; border: 1px dashed var(--border-color, #dce2ea); border-radius: 10px; text-align: center; }
@media(max-width:700px) { #enterprise-root .branch-coverage-map { min-height: 260px; } #enterprise-root .branch-coverage-card { flex-direction: column; } }
#enterprise-root .enterprise-branch-panel .table-responsive { overflow-x: auto; }
#enterprise-root .enterprise-branch-panel table { width: 100%; border-collapse: collapse; }
#enterprise-root .enterprise-branch-panel th { white-space: nowrap; }
#enterprise-root .enterprise-branch-panel td { overflow-wrap: anywhere; }
#enterprise-root .enterprise-branch-panel table [data-branch-access] { white-space: nowrap; }
#enterprise-root .enterprise-branch-panel [data-branch-more] { margin-block-start: 12px; }
#enterprise-root .enterprise-branch-editor { display: grid; gap: 16px; }
#enterprise-root [data-branch-account-form]:not(:empty) { padding-block: 16px; margin-block-end: 12px; border-block: 1px solid var(--border-color, #dce2ea); }
#enterprise-root .enterprise-branch-editor h4 { margin: 0; }
#enterprise-root .enterprise-branch-editor fieldset { min-width: 0; padding: 12px 0 0; border: 0; border-block-start: 1px solid var(--border-color, #dce2ea); margin: 0; }
#enterprise-root .enterprise-branch-editor legend { padding-inline-end: 10px; font-weight: 600; }
#enterprise-root .enterprise-branch-editor summary { cursor: pointer; min-height: 38px; }
#enterprise-root .enterprise-branch-editor label { min-width: 0; }
#enterprise-root .enterprise-branch-fields :is(input,select) { width: 100%; min-width: 0; }
#enterprise-root .enterprise-branch-fields input[readonly] { background: var(--bg-secondary, #f2f4f7); }
#enterprise-root .enterprise-branch-options { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
#enterprise-root .enterprise-branch-options label { min-height: 40px; }
@media (max-width: 800px) {
  #enterprise-root .enterprise-branch-summary,
  #enterprise-root .enterprise-branch-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  #enterprise-root .enterprise-branch-page { padding: 10px; }
  #enterprise-root .enterprise-branch-panel { padding: 14px; }
  #enterprise-root .enterprise-branch-header h2 { font-size: 22px; }
  #enterprise-root .enterprise-branch-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Unified navigation keeps the original tab nodes and their authorization owners. */
.sidebar.enterprise-organized #nav-enterprise { display: none !important; }
.sidebar.enterprise-organized .nav-section { display: none; }
.sidebar.enterprise-organized .sidebar-workspace { display: none; }
#enterprise-sidebar-navigation { display: block; padding: 0; margin: 0; cursor: default; color: #b9c4d3; }
#enterprise-sidebar-navigation:hover { background: transparent; color: #b9c4d3; }
#enterprise-sidebar-navigation nav { width: 100%; min-width: 0; }
#enterprise-sidebar-navigation .enterprise-workspace-picker { display: grid; gap: 7px; padding: 8px 10px 18px; font-size: 12px; color: #aab7c9; }
#enterprise-sidebar-navigation .enterprise-workspace-picker select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #384353; border-radius: 8px; background: #222c3b; color: #f3f5f8; font: inherit; }
#enterprise-sidebar-navigation .enterprise-nav-group { margin-block: 3px; }
#enterprise-sidebar-navigation .enterprise-direct-link { display: flex; align-items: center; gap: 11px; margin-block: 3px; }
body .sidebar #enterprise-sidebar-navigation .enterprise-direct-link { min-height: 50px; padding-inline: 12px; font-size: 16px; font-weight: 500; }
#enterprise-root .enterprise-zone-options { max-height: 240px; overflow: auto; }
#enterprise-sidebar-navigation .enterprise-nav-group[hidden] { display: none; }
#enterprise-sidebar-navigation summary { display: flex; align-items: center; gap: 11px; padding: 12px 10px; min-height: 46px; box-sizing: border-box; font-size: 14px; line-height: 1.6; cursor: pointer; border-radius: 8px; list-style: none; }
#enterprise-sidebar-navigation summary::-webkit-details-marker { display: none; }
#enterprise-sidebar-navigation .enterprise-nav-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #94a5bc; }
#enterprise-sidebar-navigation .enterprise-group-chevron { margin-inline-start: auto; width: 14px; height: 14px; flex: 0 0 14px; }
#enterprise-sidebar-navigation details[open] > summary { background: #263244; color: #fff; font-weight: 700; }
#enterprise-sidebar-navigation details[open] > summary .enterprise-group-chevron { transform: rotate(180deg); }
#enterprise-sidebar-navigation .enterprise-nav-links { display: grid; gap: 2px; padding: 0 12px 6px 0; }
#enterprise-sidebar-navigation .enterprise-legacy-links { list-style: none; padding: 4px 12px 0 0; margin: 0; }
#enterprise-sidebar-navigation .enterprise-legacy-links:empty { display: none; }
#enterprise-sidebar-navigation .enterprise-section-link, .sidebar #enterprise-sidebar-navigation li[data-tab] { width: 100%; box-sizing: border-box; min-width: 0; min-height: 42px; padding: 10px 12px; margin: 0 0 2px; border: 0; border-radius: 7px; background: transparent; color: #b9c4d3; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.7; text-align: start; overflow-wrap: anywhere; cursor: pointer; box-shadow: none; }
.sidebar #enterprise-sidebar-navigation li[data-tab] > i { display: none; }
.sidebar #enterprise-sidebar-navigation li[data-tab]::before, .sidebar #enterprise-sidebar-navigation li[data-tab]::after { display: none; }
#enterprise-sidebar-navigation .enterprise-section-link:hover, #enterprise-sidebar-navigation summary:hover, .sidebar #enterprise-sidebar-navigation li[data-tab]:hover { background: #263244; color: #fff; }
#enterprise-sidebar-navigation .enterprise-section-link[aria-current="page"], .sidebar #enterprise-sidebar-navigation li[data-tab].active { background: #343b49; color: #fff; font-weight: 700; box-shadow: inset -3px 0 #e64963; }
#enterprise-sidebar-navigation button:focus-visible, #enterprise-sidebar-navigation summary:focus-visible, #enterprise-sidebar-navigation select:focus-visible { outline: 2px solid #e64963; outline-offset: -2px; }
#enterprise-root .enterprise-page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-block-end: 22px; }
#enterprise-root .enterprise-page-header h2 { margin: 0; font-size: 24px; line-height: 1.5; }
#enterprise-root .enterprise-page-header .enterprise-breadcrumb { margin: 0 0 6px; font-size: 12px; }
#enterprise-root .enterprise-scope-panel { padding: 16px; margin-block-end: 20px; background: var(--bg-secondary, #f4f6f9); border-radius: 10px; }
#enterprise-root .enterprise-scope-panel[hidden] { display: none; }
#enterprise-root .enterprise-scope-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
#enterprise-root .enterprise-scope-toolbar > label { flex: 1 1 220px; min-width: 0; max-width: 360px; font-size: 12px; }
#enterprise-root .enterprise-scope-toolbar select { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font: inherit; }
#enterprise-root .enterprise-advanced-filters { margin-block-start: 12px; font-size: 12px; }
#enterprise-root .enterprise-advanced-filters > summary { width: fit-content; cursor: pointer; padding-block: 6px; color: var(--text-secondary, #475569); }
#enterprise-root .enterprise-advanced-filters .enterprise-toolbar { margin-block-end: 0; }
#enterprise-root .enterprise-advanced-filters label { flex: 1 1 180px; min-width: 0; max-width: 360px; }
#enterprise-root .enterprise-advanced-filters input { width: 100%; min-width: 0; box-sizing: border-box; }
#enterprise-root .enterprise-page-search { max-width: 460px; font-size: 12px; margin-block: 16px; }
#enterprise-root .enterprise-page-search input { width: 100%; min-width: 0; box-sizing: border-box; }
#enterprise-root .enterprise-toolbar:empty, #enterprise-root [data-enterprise-status]:empty { display: none; }
#enterprise-root .enterprise-security-note { max-width: 600px; line-height: 1.8; }
@media (max-width: 600px) {
  #enterprise-root .enterprise-card { padding: 16px; }
  #enterprise-root .enterprise-page-header h2 { font-size: 21px; }
  #enterprise-root .enterprise-scope-toolbar > label { max-width: none; }
}
#enterprise-root .enterprise-setup { padding-block: 16px; border-block: 1px solid var(--border-color, #cbd5e1); }
#enterprise-root .enterprise-setup h2, #enterprise-root .enterprise-setup h3 { margin-block: 0 12px; }
#enterprise-root .enterprise-setup p { color: var(--text-secondary, #475569); line-height: 1.7; }
#enterprise-root .enterprise-setup .enterprise-form h3, #enterprise-root .enterprise-setup .enterprise-form > p { grid-column: 1 / -1; }
#enterprise-root .enterprise-setup-summary { margin-block-start: 24px; }
#enterprise-root .enterprise-setup button { min-height: 44px; }
#enterprise-root .enterprise-setup table { width: 100%; border-collapse: collapse; }
#enterprise-root .enterprise-setup td, #enterprise-root .enterprise-setup th { text-align: start; padding: 12px; border-bottom: 1px solid var(--border-color, #cbd5e1); }
#enterprise-root .enterprise-setup .table-responsive { overflow-x: auto; }
#enterprise-root .enterprise-setup select { min-width: min(220px, 100%); }
#enterprise-root .enterprise-form > label { min-width: 0; }
#enterprise-root .enterprise-form select { width: 100%; }
#enterprise-root .enterprise-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-block: 14px; }
#enterprise-root label { display: grid; gap: 5px; font-weight: 600; }
#enterprise-root input, #enterprise-root select { padding: 9px; border: 1px solid var(--border-color, #cbd5e1); border-radius: 8px; max-width: 100%; background: var(--card-bg, #fff); color: inherit; }
#enterprise-root .enterprise-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 15px; padding: 16px; border: 1px solid var(--border-color, #cbd5e1); border-radius: 12px; }
#enterprise-root .enterprise-form fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; padding: 16px; }
#enterprise-root .enterprise-check { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
#enterprise-root .enterprise-detail dl { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr; gap: 10px; padding: 16px; }
#enterprise-root dd { margin: 0; overflow-wrap: anywhere; }
#enterprise-root .enterprise-detail dd { white-space: pre-wrap; }
#enterprise-root textarea { min-height: 120px; padding: 10px; border: 1px solid var(--border-color, #cbd5e1); border-radius: 8px; background: var(--card-bg, #fff); color: inherit; font: inherit; }
#enterprise-root td, #enterprise-root th { padding: 12px; text-align: start; }
#enterprise-root [role="alert"], #enterprise-root [role="status"] { overflow-wrap: anywhere; }
.enterprise-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; }
.enterprise-kpis strong { font-size:1.7rem; }
.enterprise-breadcrumb { color:var(--text-secondary,#64748b); margin-block:1rem; }

.branch-cash-workspace { padding: 24px; max-width: 1100px; margin-block-end: 24px; }
.branch-cash-workspace .card-header { padding: 0 0 16px; }
.branch-cash-workspace h2 { margin: 0; font-size: 1.3rem; }
.branch-cash-workspace form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-start: 24px; }
.branch-cash-workspace label { display: grid; gap: 8px; }
.branch-cash-workspace input { width: 100%; min-width: 0; padding: 12px; font: inherit; border: 1px solid var(--border-color, #d1d5db); border-radius: 8px; background: var(--bg-card, #fff); color: var(--text-primary, #111827); }
.branch-cash-workspace input[type="checkbox"] { width: 18px; height: 18px; }
.branch-cash-workspace fieldset label { display: flex; align-items: center; padding-block: 8px; }
.branch-cash-workspace fieldset, .branch-cash-workspace .table-responsive, .branch-cash-workspace [role="status"] { grid-column: 1 / -1; min-width: 0; }
.branch-cash-workspace fieldset { padding: 12px; border: 1px solid var(--border-color, #d1d5db); border-radius: 8px; }
.branch-cash-workspace .table-responsive { overflow-x: auto; }
.branch-cash-workspace table { width: 100%; border-collapse: collapse; }
.branch-cash-workspace th, .branch-cash-workspace td { text-align: start; padding: 12px; border-bottom: 1px solid var(--border-color, #d1d5db); }
.branch-cash-workspace td:first-child { max-width: 160px; overflow-wrap: anywhere; }
.branch-cash-workspace button { min-height: 44px; }
.branch-cash-workspace [role="status"] { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .branch-cash-workspace { padding: 16px; }
  .branch-cash-workspace form { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the financial date range inside narrow screens; tables scroll locally. */
@media (max-width: 700px) {
  .accounting-manager-dashboard .am-date-range { flex-wrap: wrap; }
  .accounting-manager-dashboard .am-date-range label { flex: 1 1 150px; min-width: 0; }
}
/* Root-only refinement. Other roles keep the current composition and branding. */
.sidebar.root-enterprise-sidebar { background: #171d27; }
.sidebar.root-enterprise-sidebar .sidebar-header { min-height: 84px; gap: 10px; padding: 16px; }
.sidebar.root-enterprise-sidebar .sidebar-header h2 { font-size: 17px; white-space: nowrap; }
.sidebar.root-enterprise-sidebar .sidebar-brand-name > span { display: block; font-size: 11px; letter-spacing: 0; color: #aeb9c9; margin-block-start: 4px; }
.sidebar.root-enterprise-sidebar .sidebar-footer-note { display: none; }
.sidebar.root-enterprise-sidebar .sidebar-footer { padding: 12px; }
.sidebar.root-enterprise-sidebar [data-root-account] { display: grid; gap: 4px; padding: 10px; background: #232d3b; border-radius: 9px; overflow-wrap: anywhere; }
.sidebar.root-enterprise-sidebar [data-root-account] strong { font-size: 13px; color: #f4f6f8; }
.sidebar.root-enterprise-sidebar [data-root-account] > span { font-size: 11px; color: #b9c4d3; text-align: start; }
.sidebar.root-enterprise-sidebar [data-root-account] small { font-size: 11px; color: #9eafc5; }
.sidebar.root-enterprise-sidebar .root-account-settings { min-height: 36px; margin-block-start: 5px; border: 0; background: transparent; color: #f4f6f8; font: inherit; font-size: 12px; text-align: start; cursor: pointer; }
.sidebar.root-enterprise-sidebar .root-account-settings:focus-visible { outline: 2px solid #e64963; outline-offset: 2px; }
.sidebar.root-enterprise-sidebar #enterprise-sidebar-navigation summary { min-height: 44px; padding: 10px; transition: background-color 180ms ease, color 180ms ease; }
.sidebar.root-enterprise-sidebar #enterprise-sidebar-navigation .enterprise-group-chevron { transition: transform 180ms ease; }
.sidebar.root-enterprise-sidebar #enterprise-sidebar-navigation .enterprise-section-link,
.sidebar.root-enterprise-sidebar #enterprise-sidebar-navigation li[data-tab] { min-height: 44px; }
#enterprise-root .enterprise-advanced-filters[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sidebar.root-enterprise-sidebar, .sidebar.root-enterprise-sidebar * { transition: none !important; animation: none !important; }
}
body.root-navigation-pending #dashboard-container .nav-links { visibility: hidden; }
body.root-navigation-pending #dashboard-container .content-area > .tab-content { visibility: hidden; }
body.root-navigation-pending #dashboard-container .content-area::before { content: 'جاري تجهيز مساحة الإدارة…'; display: block; padding: 24px; color: var(--text-secondary, #475569); }
/* Root HR: readable employee/account relationships, scoped to directory tables. */
.enterprise-hr-directory td { white-space: pre-line; overflow-wrap: anywhere; min-width: 98px; vertical-align: middle; line-height: 1.65; }
.enterprise-hr-directory td:first-child { min-width: 145px; }
.enterprise-hr-directory th { white-space: nowrap; }
.enterprise-hr-directory .table-responsive { border: 1px solid var(--border-color, #e2e8f0); border-radius: 10px; }
.enterprise-hr-account { white-space: pre-line; line-height: 1.8; }
#enterprise-root .enterprise-hr-workspace {
  --hr-surface: var(--card-bg, var(--bg-primary, #fff));
  --hr-muted-surface: var(--bg-secondary, #f5f6f8);
  --hr-border: var(--border-color, #e3e7ed);
  --hr-accent: light-dark(#b62647, #ff90a7);
  background: var(--hr-muted-surface);
  border: 0;
}
#enterprise-root .enterprise-hr-workspace .enterprise-breadcrumb { display: none; }
#enterprise-root .enterprise-hr-list { min-width: 0; }
#enterprise-root .enterprise-hr-workspace:has([data-enterprise-form]:not(:empty)) .enterprise-hr-list { display: none; }
#enterprise-root .enterprise-hr-workspace .enterprise-hr-caption {
  margin-block: 4px 0;
  color: var(--text-secondary, #5f6c7d);
}
#enterprise-root .enterprise-hr-workspace .enterprise-header-actions { flex-wrap: wrap; gap: 8px; }
#enterprise-root .enterprise-hr-workspace .enterprise-scope-panel { margin-block: 16px 10px; padding: 0; background: transparent; }
#enterprise-root .enterprise-hr-workspace .enterprise-scope-toolbar { align-items: end; gap: 12px; }
#enterprise-root .enterprise-hr-workspace .enterprise-scope-toolbar > label { min-width: min(132px, 100%); width: auto; }
#enterprise-root .enterprise-hr-workspace .enterprise-scope-toolbar > .enterprise-page-search { flex: 1 1 210px; max-width: none; margin: 0; }
#enterprise-root .enterprise-hr-workspace .enterprise-scope-toolbar :is(input, select) { background: var(--hr-surface); }
#enterprise-root .enterprise-hr-workspace .enterprise-advanced-filters { margin-block-start: 6px; }
#enterprise-root .enterprise-hr-count { font-size: 12px; color: var(--text-secondary, #5f6c7d); margin-block: 10px; }
#enterprise-root .enterprise-hr-workspace [data-enterprise-status]:empty { display: none; }
#enterprise-root .enterprise-hr-directory table {
  width: 100%;
  margin: 0;
  background: var(--hr-surface);
  text-align: start;
  font-size: 13px;
}
#enterprise-root .enterprise-hr-directory :is(th, td) {
  padding: 13px 12px;
  text-align: start;
  border: 0;
}
#enterprise-root .enterprise-hr-directory th { background: var(--hr-muted-surface); color: var(--text-secondary, #5f6c7d); font-weight: 500; }
#enterprise-root .enterprise-hr-directory tbody td { padding-block: 16px; background: var(--hr-surface); border-block-start: 1px solid var(--hr-border); }
#enterprise-root :is(.enterprise-hr-directory, .enterprise-hr-record) small { display: block; margin-block-start: 3px; color: var(--text-secondary, #5f6c7d); font-size: 12px; white-space: pre-line; }
#enterprise-root .enterprise-hr-cell-title { font-weight: 500; }
#enterprise-root .enterprise-hr-cell-badge { display: block; margin-block-start: 4px; }
#enterprise-root .enterprise-hr-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: var(--text-secondary, #5f6c7d);
  background: var(--hr-muted-surface);
}
#enterprise-root .enterprise-hr-identity { display: flex; align-items: center; gap: 9px; }
#enterprise-root :is(.enterprise-hr-row-action button, .enterprise-hr-back) {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--hr-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#enterprise-root .enterprise-hr-row-action { min-width: 72px; }
#enterprise-root [data-hr-empty] td { text-align: center; padding: 35px 12px; }
#enterprise-root [data-hr-empty] p { color: var(--text-secondary, #5f6c7d); margin: 6px 0 0; }
#enterprise-root .enterprise-hr-cell-title[data-state] {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  background: light-dark(#eef1f5, #333c4c);
  color: light-dark(#46566b, #e2e8f0);
}
#enterprise-root .enterprise-hr-cell-title[data-state="active"] {
  background: light-dark(#eaf6ef, #204436);
  color: light-dark(#176044, #b0ead1);
}
#enterprise-root .enterprise-hr-cell-title[data-state="attention"] {
  background: light-dark(#fff3db, #47391f);
  color: light-dark(#7c4e00, #ffe3ab);
}
#enterprise-root .enterprise-hr-workspace [data-enterprise-form] > form,
#enterprise-root .enterprise-hr-detail-panel {
  background: var(--hr-surface);
  border: 1px solid var(--hr-border);
  border-radius: 9px;
  padding: 20px;
}
#enterprise-root .enterprise-hr-workspace .enterprise-hr-profile { padding: 0; border: 0; background: transparent; }
#enterprise-root .enterprise-hr-workspace [data-enterprise-form] .enterprise-hr-form-title { grid-column: 1 / -1; }
#enterprise-root .enterprise-hr-wizard > * { grid-column: 1 / -1; }
#enterprise-root .enterprise-hr-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-inline-start: 20px;
  margin-block: 0;
}
#enterprise-root .enterprise-hr-steps [aria-current="step"],
#enterprise-root .enterprise-hr-profile [aria-pressed="true"] { font-weight: 700; }
#enterprise-root .enterprise-hr-wizard fieldset[hidden],
#enterprise-root .enterprise-hr-wizard [data-position-existing][hidden] { display: none; }
#enterprise-root .enterprise-hr-wizard [data-position-new] {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
#enterprise-root .enterprise-hr-wizard [data-position-new][hidden] { display: none; }
#enterprise-root .enterprise-hr-profile header { display: flex; align-items: center; gap: 12px; margin-block: 16px; }
#enterprise-root .enterprise-hr-profile header .enterprise-hr-avatar { width: 48px; height: 48px; background: var(--hr-surface); }
#enterprise-root .enterprise-hr-profile header :is(h3, p), #enterprise-root .enterprise-hr-detail-panel h4 { margin: 0; }
#enterprise-root .enterprise-hr-profile > [role="group"] { border-block-end: 1px solid var(--hr-border); gap: 16px; margin-block-end: 20px; }
#enterprise-root .enterprise-hr-profile [data-profile-tab] { border: 0; border-block-end: 2px solid transparent; border-radius: 0; padding-inline: 0; background: transparent; }
#enterprise-root .enterprise-hr-profile [data-profile-tab][aria-pressed="true"] { color: var(--hr-accent); border-block-end-color: var(--hr-accent); }
#enterprise-root :is(.enterprise-hr-detail-panel, .enterprise-hr-wizard) dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  gap: 18px 28px;
  overflow-wrap: anywhere;
}
#enterprise-root .enterprise-hr-detail-panel dt { font-size: 12px; color: var(--text-secondary, #5f6c7d); }
#enterprise-root .enterprise-hr-detail-panel dd { white-space: pre-line; margin: 3px 0 0; }
#enterprise-root .enterprise-hr-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-block: 10px 16px; }
#enterprise-root .enterprise-hr-detail-heading h3 { margin: 0; }
#enterprise-root .enterprise-hr-account-note { background: light-dark(#fff1f4, #432734); color: var(--hr-accent); border-radius: 7px; padding: 10px 12px; }
#enterprise-root .enterprise-hr-profile-records { margin-block: 16px; }
@media (max-width: 600px) {
  #enterprise-root .enterprise-hr-workspace .enterprise-page-header { align-items: start; flex-direction: column; }
  #enterprise-root .enterprise-hr-directory thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #enterprise-root .enterprise-hr-directory :is(table, tbody, tr, td) { display: block; }
  #enterprise-root .enterprise-hr-directory tr[hidden] { display: none; }
  #enterprise-root .enterprise-hr-directory tr + tr { border-block-start: 1px solid var(--border-color, #cbd5e1); }
  #enterprise-root .enterprise-hr-directory td { min-width: 0; padding: 8px 12px; }
  #enterprise-root .enterprise-hr-directory td[data-hr-column]::before {
    display: block;
    content: attr(data-hr-column);
    color: var(--text-secondary, #5f6c7d);
    font-weight: 500;
  }
  #enterprise-root :is(.enterprise-hr-detail-panel, .enterprise-hr-wizard) dl { grid-template-columns: minmax(0, 1fr); }
}
#enterprise-root .enterprise-staff-wizard [hidden] { display: none !important; }
#enterprise-root .enterprise-staff-wizard { padding: 20px; background: #f5f6fa; border-radius: 12px; }
#enterprise-root .enterprise-staff-wizard nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-block: 16px; }
#enterprise-root .enterprise-staff-wizard nav span,
#enterprise-root .enterprise-staff-panel { padding: 12px; background: white; border: 1px solid #e0e5ed; border-radius: 8px; }
#enterprise-root .enterprise-staff-wizard nav [aria-current] { background: #fff0f3; border-color: #d92f53; color: #ab2141; }
#enterprise-root .enterprise-staff-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 25%); gap: 16px; align-items: start; }
#enterprise-root .enterprise-staff-panel { min-width: 0; padding: 20px; }
#enterprise-root .enterprise-staff-grid,
#enterprise-root .enterprise-staff-wizard dl[data-review] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#enterprise-root .enterprise-staff-wizard select,
#enterprise-root .enterprise-staff-wizard input:not([type=radio]) { display: block; width: 100%; margin-block-start: 5px; }
#enterprise-root .enterprise-staff-wizard fieldset { border: 0; padding: 0; margin-block: 0 16px; }
#enterprise-root .enterprise-staff-wizard fieldset label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 14px; }
#enterprise-root .enterprise-staff-wizard dd { margin-inline: 0; overflow-wrap: anywhere; }
#enterprise-root .enterprise-staff-wizard dt { color: #526278; }
#enterprise-root .enterprise-staff-actions { display: flex; gap: 8px; justify-content: end; flex-wrap: wrap; margin-block-start: 16px; }
@media(max-width: 760px) {
  #enterprise-root .enterprise-staff-layout { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  #enterprise-root .enterprise-staff-grid,
  #enterprise-root .enterprise-staff-wizard nav,
  #enterprise-root .enterprise-staff-wizard dl[data-review] { grid-template-columns: 1fr; }
  #enterprise-root .enterprise-staff-wizard,
  #enterprise-root .enterprise-staff-panel { padding: 12px; }
}
#enterprise-root .enterprise-branch-onboarding [hidden] { display: none !important; }
#enterprise-root .enterprise-branch-onboarding { display: block; padding: 20px; background: var(--bg-secondary, #f5f6fa); border-radius: 10px; }
#enterprise-root .enterprise-onboarding-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
#enterprise-root .enterprise-onboarding-steps span { flex: 1; padding: 10px 14px; background: var(--bg-primary, white); border: 1px solid var(--border-color, #dce2ea); border-radius: 6px; }
#enterprise-root .enterprise-onboarding-steps [aria-current] { border-color: #c8294c; color: #b41f40; }
#enterprise-root .enterprise-onboarding-person { padding-block: 16px; border-bottom: 1px solid var(--border-color, #dce2ea); }
#enterprise-root .enterprise-branch-onboarding [data-staff-content] { background: var(--bg-primary, white); padding: 16px; border-radius: 8px; }
#enterprise-root .enterprise-branch-onboarding [data-person-fields] { margin-block-start: 12px; }
/* Unified area workspace: persistent navigation, content changes independently. */
body.area-manager-compact-shell .content-area { max-width:none!important; padding:0!important; }
body.area-manager-compact-shell #enterprise-root { max-width:none; width:100%; padding:0; display:block!important; }
#enterprise-root .area-manager-shell { display:grid; grid-template-columns:270px minmax(0,1fr); min-height:calc(100dvh - 70px); align-items:start; }
#enterprise-root .area-manager-rail { position:sticky; top:0; height:calc(100dvh - 70px); display:flex; flex-direction:column; padding:25px 18px; background:#18212e; color:#f6f8fc; overflow:auto; }
#enterprise-root .area-manager-brand {font-size:23px;font-weight:700;text-align:right;}
#enterprise-root .area-manager-brand span {color:#ff6c89;}
#enterprise-root .area-manager-location {padding:22px 9px; margin-bottom:12px; border-bottom:1px solid #3c4757;}
#enterprise-root .area-manager-location strong {display:block;font-size:20px;overflow-wrap:anywhere;}
#enterprise-root .area-manager-rail small {display:block;color:#c3ccda;font-size:13px;}
#enterprise-root [data-area-menu] {display:grid;gap:5px;}
#enterprise-root [data-area-menu] button {min-height:47px;padding:10px 15px;border:0;border-radius:6px;background:transparent;color:#cbd4e1;text-align:start;font:inherit;font-size:14px;font-weight:600;cursor:pointer;}
#enterprise-root [data-area-menu] button:hover {background:#263345;color:white;}
#enterprise-root [data-area-menu] button[aria-current="page"] {background:#344257;color:white;}
#enterprise-root .area-manager-account {margin-top:auto;padding:24px 10px 0;border-top:1px solid #3c4757;}
#enterprise-root .area-manager-account strong {display:block;}
#enterprise-root .area-manager-body {min-width:0;}
#enterprise-root .area-manager-top {display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px 32px;background:white;border-bottom:1px solid #dde3ec;}
#enterprise-root .area-manager-top small {color:#52617a;}
#enterprise-root [data-area-content] {padding:30px 32px;min-width:0;}
#enterprise-root [data-area-content] .enterprise-branch-page {padding:0;}
#enterprise-root [data-area-content] .enterprise-area-layout {display:block;}
#enterprise-root [data-area-content] .enterprise-area-layout > .enterprise-branch-tabs {display:none;}
#enterprise-root [data-area-content] .enterprise-branch-header {display:none;}
#enterprise-root .area-manager-shell .enterprise-card {padding:24px;font-size:15px;}
#enterprise-root [data-area-content] .enterprise-page-header h2 {font-size:28px;}
#enterprise-root [data-area-content] .enterprise-branch-panel {padding:24px;}
#enterprise-root [data-area-content] .enterprise-branch-panel h3 {font-size:19px;}
#enterprise-root [data-area-content] .enterprise-branch-summary {gap:24px;}
#enterprise-root [data-area-menu-toggle] {display:none;}
#enterprise-root .area-manager-shell button:focus-visible {outline:3px solid #ef8ca2;outline-offset:2px;}
@media(max-width:1000px){#enterprise-root .area-manager-shell{grid-template-columns:240px minmax(0,1fr)}#enterprise-root [data-area-content]{padding:24px}}
@media(max-width:700px){#enterprise-root .area-manager-shell{display:block}#enterprise-root .area-manager-rail{display:none;position:fixed;top:65px;right:0;width:270px;z-index:60;box-shadow:-12px 0 30px #18212e35}#enterprise-root .area-manager-rail.is-open{display:flex}#enterprise-root [data-area-menu-toggle]{display:block}#enterprise-root .area-manager-top{padding:14px 18px;flex-wrap:wrap}#enterprise-root [data-area-content]{padding:18px}#enterprise-root .area-manager-shell .enterprise-card,#enterprise-root [data-area-content] .enterprise-branch-panel{padding:18px}}
#enterprise-root .area-manager-account button {display:block;margin-top:16px;background:none;border:0;color:#ff9aaf;font:inherit;cursor:pointer;padding:8px 0}
#enterprise-root .area-order-chart{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid #dde4ee}
#enterprise-root .area-order-chart h3{margin:0;font-size:18px}
#enterprise-root .area-order-chart p{font-size:13px;color:#52617a;margin:6px 0 18px}
#enterprise-root .area-order-chart>div{display:grid;grid-template-columns:140px minmax(0,1fr) 40px;gap:14px;align-items:center;margin:10px 0}
#enterprise-root .area-order-chart meter{width:100%;height:18px;accent-color:#cf3458}
#enterprise-root .area-order-chart meter::-webkit-meter-optimum-value{background:#cf3458}
#enterprise-root [data-area-content] .enterprise-branch-header {display:flex;margin-bottom:24px}
#enterprise-root [data-area-content] .enterprise-branch-header .enterprise-branch-ancestor,
#enterprise-root [data-area-content] .enterprise-branch-header [data-area-account]{display:none}
#enterprise-root [data-area-content] .enterprise-area-stats {display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid #dde4ee;padding-bottom:22px;margin-bottom:24px}
#enterprise-root [data-area-content] .enterprise-area-stats div {border:0;border-radius:0;padding:0 24px;min-width:170px;border-inline-end:1px solid #e3e8f0}
#enterprise-root [data-area-content] .enterprise-area-stats div:first-child{padding-inline-start:0}
#enterprise-root [data-area-content] .enterprise-area-stats strong{font-size:25px}
#enterprise-root .area-manager-shell table {font-size:14px}
#enterprise-root .area-manager-shell th,#enterprise-root .area-manager-shell td{padding:14px 12px}
#enterprise-root .area-manager-top [data-area-current]{font-weight:600}

body.area-manager-compact-shell:has(#tab-enterprise:not(.hidden)) .topbar {display:none}
#enterprise-root .area-manager-top {min-height:70px}
#enterprise-root .area-manager-rail {height:100dvh}
#enterprise-root .area-path {flex:1;min-width:0;overflow-wrap:anywhere}
#enterprise-root .area-user {position:relative}
#enterprise-root .area-user summary,#enterprise-root [data-area-menu] summary {cursor:pointer;padding:10px 15px}
#enterprise-root .area-user small {display:block;margin-inline-start:16px}
#enterprise-root .area-user > div {position:absolute;inset-inline-end:0;z-index:5;min-width:165px;background:white;border:1px solid #cbd4df;border-radius:8px;padding:6px}
#enterprise-root .area-user button {width:100%;padding:10px;background:white;border:0;text-align:start;font:inherit;cursor:pointer}
#enterprise-root .area-user button:hover {background:#f1f3f7}
#enterprise-root [data-area-menu] details button {display:block;width:100%;padding-inline-start:32px}
#enterprise-root [data-area-menu] button[aria-current=page] {box-shadow:inset -3px 0 #ff7894}
#enterprise-root [data-area-content] .enterprise-breadcrumb,#enterprise-root [data-area-home] {display:none}
#enterprise-root .area-profile {max-width:1050px;margin-inline:auto;color:#1e293b}
#enterprise-root .area-profile h2 {margin:0 0 20px;font-size:1.8rem}
#enterprise-root .area-profile h3 {margin:0 0 16px;font-size:1.15rem}
#enterprise-root .area-profile-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#enterprise-root .area-profile-grid > section {padding:24px;border:1px solid #dce2e9;border-radius:12px;background:white}
#enterprise-root .area-profile-grid > section:last-child {grid-column:1/-1}
#enterprise-root .area-profile dl {margin:0 0 14px}
#enterprise-root .area-profile dl div {padding:8px 0}
#enterprise-root .area-profile dt,#enterprise-root .area-profile small {color:#536379}
#enterprise-root .area-profile dd {margin:3px 0 0;text-align:start;overflow-wrap:anywhere}
#enterprise-root [data-password-editor] summary {cursor:pointer;color:#90304c;font-weight:600}
#enterprise-root [data-password-editor] form {display:grid;gap:14px;max-width:400px;margin-top:20px}
#enterprise-root [data-password-editor] label {display:grid;gap:5px}
#enterprise-root [data-password-editor] input {width:100%;direction:ltr;min-height:44px}
#enterprise-root .area-profile p:empty {display:none}
#enterprise-root .area-list-modes {display:flex;flex-wrap:wrap;gap:8px;margin-block:14px}
#enterprise-root .area-list-modes [aria-pressed=true] {background:#28384b;color:white}
@media(max-width:700px){
  #enterprise-root .area-manager-rail {top:78px;height:calc(100dvh - 78px)}
  #enterprise-root .area-manager-top {padding:8px 12px;gap:8px}
  #enterprise-root .area-profile-grid {grid-template-columns:minmax(0,1fr)}
  #enterprise-root .area-profile-grid > section {padding:18px}
}
#enterprise-root .enterprise-charts{margin:20px 0 30px;border-bottom:1px solid #dce3ed;padding-bottom:26px}
#enterprise-root .enterprise-charts>header,#enterprise-root .enterprise-chart-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#enterprise-root .enterprise-charts h3{font-size:21px;margin:0}
#enterprise-root .enterprise-charts h4{font-size:18px;margin:0 0 12px}
#enterprise-root .enterprise-chart-controls label{display:grid;gap:5px;font-size:13px}
#enterprise-root .enterprise-chart-controls select{padding:8px;border:1px solid #d8e0eb;border-radius:6px;background:white;font:inherit}
#enterprise-root .enterprise-charts-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px;margin:20px 0}
#enterprise-root .enterprise-charts-grid>article{border:1px solid #dce3ed;border-radius:9px;padding:22px;min-width:0;background:#fff}
#enterprise-root .enterprise-charts svg{width:100%;height:auto;min-height:170px;display:block}
#enterprise-root .enterprise-charts svg text{font:12px Tahoma,Arial;fill:#53627b}
#enterprise-root .enterprise-chart-bar{display:grid;grid-template-columns:minmax(90px,1fr) minmax(60px,2fr) auto;align-items:center;gap:12px;margin:16px 0;font-size:14px}
#enterprise-root .enterprise-chart-bar meter{width:100%;height:22px;accent-color:#c83255}
#enterprise-root .enterprise-chart-bar meter::-webkit-meter-optimum-value{background:#c83255}
#enterprise-root .enterprise-chart-note,#enterprise-root .enterprise-chart-coverage{font-size:13px;color:#52617a;line-height:1.8;margin:12px 0}
#enterprise-root .enterprise-chart-insight{background:#f4f6fa;padding:14px;color:#35465f;font-size:14px}
#enterprise-root .enterprise-charts details{margin-top:16px}
#enterprise-root .enterprise-charts table{width:100%;border-collapse:collapse}
#enterprise-root .enterprise-charts th,#enterprise-root .enterprise-charts td{padding:9px;border-bottom:1px solid #e4e9f1;text-align:start}
@media(max-width:1000px){#enterprise-root .enterprise-charts-grid{grid-template-columns:1fr}}
#enterprise-root .enterprise-charts [hidden] {display:none !important}
.branch-account-details {margin-block:20px;padding-block:18px;border-block:1px solid #dce2e9;min-width:0}
.branch-account-details header,.branch-account-details nav {display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}
.branch-account-details header {justify-content:space-between}
.branch-account-details nav [aria-pressed=true] {background:#28384b;color:white}
.branch-account-details table {min-width:640px}
.branch-account-details td small {display:block}
.branch-account-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.branch-account-fields dt {color:#536379}
.branch-account-fields dd {margin:4px 0;overflow-wrap:anywhere}
@media(max-width:700px){.branch-account-fields{grid-template-columns:minmax(0,1fr)}}
/* Province shell shares the stable area layout; only its scope/content differs. */
.province-filter {display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:20px 28px;border-bottom:1px solid #dbe2ec;background:#fff;}
.province-filter label {display:flex;gap:12px;align-items:center;font-weight:600;}
.province-filter select {min-width:230px;max-width:100%;padding:9px;border:1px solid #c5d0dd;border-radius:6px;background:#fff;color:#243247;}
.province-filter span {font-size:13px;color:#52627a;}
.province-person {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.province-person small {color:#52627a;}
.province-workspace [data-province-content] {padding:24px;min-width:0;}
.province-workspace .enterprise-table-wrap {overflow:auto;}
.province-workspace .enterprise-card {background:#fff;border:1px solid #dbe2ec;border-radius:12px;}
.province-workspace [data-province-section][aria-current=page] {background:#344257;color:#fff;}
.province-workspace [data-province-menu] {display:none;}
.province-bars meter::-webkit-meter-bar {background:#edf1f6;border:0;}
.province-bars meter::-webkit-meter-optimum-value {background:#b82d50;}
.province-password {display:grid;gap:14px;max-width:460px;margin-top:18px;}
.province-password label {display:grid;gap:6px;}
.province-password input {width:100%;padding:10px;border:1px solid #c5d0dd;border-radius:6px;font:inherit;}
.province-workspace table {width:100%;border-collapse:collapse;text-align:right;}
.province-workspace th,.province-workspace td {padding:12px;border-bottom:1px solid #dbe2ec;}
.province-bars>div {display:grid;grid-template-columns:140px 1fr 70px;gap:16px;align-items:center;margin:16px 0;}
.province-bars meter {width:100%;height:24px;accent-color:#b82d50;}
@media(max-width:600px){.province-filter{padding:16px}.province-filter label{width:100%}.province-filter select{min-width:0;width:100%}.province-workspace [data-province-content]{padding:14px}.province-bars>div{grid-template-columns:80px 1fr 40px;gap:8px}.province-person{gap:8px;max-width:100%}}
@media(max-width:700px){.province-workspace [data-province-menu]{display:block;}}
/* Root geography shares the admin typography, controls and semantic colors. */
.root-geography { color: var(--text-primary, #202c3c); }
.geo-header, .geo-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.geo-header h2, .geo-title h3 { margin: 0; }
.geo-title > div { display: flex; flex-wrap: wrap; gap: 8px; }
.geo-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 24px; }
.geo-directory { position: sticky; top: 20px; max-height: calc(100dvh - 160px); overflow: auto; background: var(--bg-card, #fff); border: 1px solid var(--border, #dce2eb); border-radius: 12px; padding: 16px; }
.geo-directory label, .geo-filters label { display: grid; gap: 7px; color: var(--text-secondary, #48576d); font-size: 14px; }
.geo-directory input, .geo-filters input, .geo-filters select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border, #dce2eb); border-radius: 8px; font: inherit; color: var(--text-primary, #202c3c); background: var(--bg-card, #fff); }
.geo-directory nav { margin-top: 14px; }
.geo-directory ul { list-style: none; padding: 0 14px 0 0; margin: 4px 0 12px; border-inline-start: 1px solid var(--border, #dce2eb); }
.geo-directory summary { padding: 12px 4px; font-weight: 700; cursor: pointer; }
.geo-directory li { margin-block: 5px; }
.geo-directory small { display: block; padding-inline: 10px; color: var(--text-secondary, #48576d); font-size: 12px; }
.root-geography [data-geo-node] { border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; border-radius: 7px; padding: 9px 10px; }
.geo-directory [data-geo-node] { width: 100%; }
.root-geography [data-geo-node]:hover { background: var(--bg-hover, #f1f3f7); }
.root-geography [data-geo-node][aria-current], .geo-tabs [aria-pressed="true"] { color: var(--primary, #c62f50); background: #fff0f3; font-weight: 700; }
.geo-main { min-width: 0; }
.geo-breadcrumb { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; }
.geo-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border, #dce2eb); padding-bottom: 16px; margin-bottom: 20px; }
.geo-filters { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(120px, 200px); gap: 16px; margin-bottom: 24px; }
.geo-table { overflow-x: auto; background: var(--bg-card, #fff); border: 1px solid var(--border, #dce2eb); border-radius: 12px; margin-bottom: 24px; }
.geo-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.geo-table th, .geo-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border, #dce2eb); overflow-wrap: anywhere; }
.geo-table th { background: var(--bg-hover, #f5f7fa); font-weight: 600; color: var(--text-secondary, #48576d); }
.geo-table tr:last-child td { border-bottom: 0; }
.geo-table [data-geo-node] { color: var(--primary, #c62f50); padding: 5px 0; text-decoration: underline; text-underline-offset: 4px; }
.geo-detail { background: var(--bg-card, #fff); border: 1px solid var(--border, #dce2eb); border-radius: 12px; padding: 24px; }
.geo-detail dl { display: grid; grid-template-columns: minmax(100px, 160px) minmax(0, 1fr); gap: 14px 24px; }
.geo-detail dt { color: var(--text-secondary, #48576d); }
.geo-detail dd { margin: 0; overflow-wrap: anywhere; }
.geo-map { height: 340px; margin-top: 20px; border-radius: 12px; background: var(--bg-hover, #f1f3f7); display: grid; place-items: center; text-align: center; overflow: hidden; }
.root-geography :focus-visible { outline: 2px solid var(--primary, #c62f50); outline-offset: 3px; }
.geo-main [data-geo-status-message]:not(:empty) { padding: 12px 0; }
@media (max-width: 1100px) { .geo-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; } }
@media (max-width: 800px) { .geo-layout { grid-template-columns: minmax(0, 1fr); } .geo-directory { position: static; max-height: 220px; } .geo-detail { padding: 16px; } .geo-filters { grid-template-columns: 1fr; } .geo-detail dl { grid-template-columns: 1fr; gap: 8px; } .geo-detail dd { margin-bottom: 12px; } }
@media (max-width: 768px) {
  body.root-geography-open .dashboard-container > .sidebar { inset-inline-start: auto; left: auto; right: 0; transform: translateX(100%); visibility: hidden; }
  body.root-geography-open .dashboard-container > .sidebar.open { transform: translateX(0); visibility: visible; }
  body.root-geography-open .main-content { width: 100%; min-width: 0; margin-inline: 0; }
}
.geo-zone-link { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.geo-zone-link label { display: grid; gap: 8px; }
.geo-zone-link select { padding: 10px; border: 1px solid var(--border, #dce2eb); border-radius: 8px; background: var(--bg-card, #fff); font: inherit; }
.root-geography [hidden] { display: none !important; }
.root-enterprise-sidebar .enterprise-workspace-picker[hidden] { display: none !important; }
