/* PlusERP Companies List — screen-scoped approved administration layout */
.plus-companies-page {
  width: 100%;
  min-width: 0;
  color: var(--navy, #0f2342);
}

/* Company Profile is an operational overview, not a read-only edit form. */
.company-overview { display: grid; gap: 12px; width: 100%; min-width: 0; color: #172b49; }
.company-overview-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #65758d; font-size: 12px; }
.company-overview-breadcrumb button { padding: 0; border: 0; background: none; color: #526987; cursor: pointer; }
.company-overview-breadcrumb strong { color: #173052; }
.company-overview-back { justify-self: start; }
.company-overview-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.company-overview-mark { display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; overflow: hidden; border: 1px solid #c9dcfa; border-radius: 11px; background: linear-gradient(135deg,#dbeafe,#9ec5ff); color: #fff; font-size: 25px; font-weight: 800; }
.company-overview-mark img { width: 100%; height: 100%; object-fit: contain; }
.company-overview-mark.small { flex-basis: 52px; width: 52px; height: 52px; font-size: 18px; }
.company-overview-identity-copy { min-width: 0; flex: 1 1 auto; }
.company-overview-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.company-overview-name h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.company-overview-identity-copy p { margin: 5px 0 0; color: #526987; font-size: 13px; }
.company-overview-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.company-profile-more .erp-action-trigger { display: inline-flex; align-items: center; gap: 7px; width: auto; min-height: 39px; padding: 6px 11px; border: 1px solid #cfdcf0; border-radius: 8px; background: #fff; color: #183a62; }
.company-profile-more .erp-action-trigger::after { content: "More"; font-size: 13px; font-weight: 700; }
.company-overview-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.company-overview-summary article, .company-overview-card, .company-overview-audit { min-width: 0; border: 1px solid #d8e5f5; border-radius: 10px; background: #fff; box-shadow: 0 3px 11px rgba(18,48,90,.035); }
.company-overview-summary article { display: grid; align-content: start; gap: 4px; min-height: 100px; padding: 13px 15px; }
.company-overview-summary article > span { color: #3b5575; font-size: 12px; font-weight: 700; }
.company-overview-summary article > strong { overflow-wrap: anywhere; font-size: 21px; line-height: 1.2; }
.company-overview-summary article > strong small { font-size: 14px; }
.company-overview-summary article > small { color: #64748b; font-size: 11px; }
.company-overview-link { justify-self: start; width: auto; padding: 0; border: 0; background: none; color: #175cd3; text-align: left; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.company-overview-link:hover, .company-overview-breadcrumb button:hover { text-decoration: underline; }
.company-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.company-overview-card { padding: 0 15px 12px; }
.company-overview-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 43px; border-bottom: 1px solid #e1eaf5; }
.company-overview-card h3 { margin: 0; font-size: 15px; }
.company-overview-card h4 { margin: 0 0 7px; font-size: 12px; }
.company-overview-card dl, .company-overview-audit dl { display: grid; gap: 0; margin: 7px 0 0; }
.company-overview-line { display: grid; grid-template-columns: minmax(115px,42%) minmax(0,1fr); gap: 8px; padding: 4px 0; font-size: 12px; }
.company-overview-line dt { color: #526987; }
.company-overview-line dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.company-overview-missing { color: #8190a3; font-weight: 400; }
.company-overview-contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding-top: 10px; }
.company-overview-contact > div + div { padding-left: 13px; border-left: 1px solid #e1eaf5; }
.company-overview-contact .company-overview-line { grid-template-columns: minmax(75px,38%) minmax(0,1fr); }
.company-overview-note { margin: 7px 0; padding: 7px 9px; border-radius: 6px; background: #edf4ff; color: #175cd3; font-size: 11px; }
.company-overview-branding { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 12px; }
.company-overview-branding > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.company-overview-branding strong { font-size: 12px; }
.company-overview-branding p { margin: 3px 0; color: #526987; font-size: 11px; }
.company-overview-audit { padding: 0 15px 8px; }
.company-overview-audit summary { cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 750; }
.company-overview-audit summary span { margin-left: 8px; color: #64748b; font-size: 11px; font-weight: 400; }
.company-overview-audit:not([open]) { padding-bottom: 0; }
.company-overview-audit dl { max-width: 600px; padding-bottom: 8px; }
@media (max-width: 1100px) { .page:has(> .company-overview) > .global-workspace-head { height: max-content !important; min-height: max-content !important; } }
@media (max-width: 1000px) { .company-overview-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .company-overview-grid, .company-overview-contact, .company-overview-branding { grid-template-columns: 1fr; } .company-overview-contact > div + div { padding: 9px 0 0; border: 0; border-top: 1px solid #e1eaf5; } }
@media (max-width: 480px) { .company-overview-identity { align-items: flex-start; flex-wrap: wrap; } .company-overview-mark { flex-basis: 54px; width: 54px; height: 54px; font-size: 20px; } .company-overview-identity-copy { flex: 1 1 calc(100% - 75px); } .company-overview-header-actions { width: 100%; } .company-overview-summary { grid-template-columns: 1fr; } .company-overview-summary article { min-height: 0; } .company-overview-line { grid-template-columns: minmax(105px,40%) minmax(0,1fr); } }

/* Company setup reuses the ERP dialog shell and existing creation workflow. */
.company-setup-overlay .company-setup-dialog {
  box-sizing: border-box;
  width: min(820px, calc(100vw - 32px)) !important;
  max-width: 820px !important;
  max-height: min(92dvh, 900px) !important;
  overflow-y: auto !important;
  padding: 22px 26px !important;
}
.company-setup-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.company-setup-head h2 { margin: 0; font-size: 23px; }
.company-setup-head p { margin: 5px 0 0; color: #667085; }
.company-setup-close { border: 0; background: transparent; color: #475467; font-size: 26px; cursor: pointer; }
.company-setup-steps { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.company-setup-steps li { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 2px solid transparent; color: #98a2b3; font-weight: 700; }
.company-setup-steps li::first-letter { font-weight: 800; }
.company-setup-steps li.active { color: #175cd3; border-bottom-color: #175cd3; }
.company-setup-form > section { border: 1px solid #d0dff1; border-radius: 10px; padding: 18px; }
.company-setup-form > section[hidden] { display: none; }
.company-setup-form h3 { margin: 0; font-size: 18px; }
.company-setup-form p { margin: 4px 0 16px; color: #667085; }
.company-setup-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.company-setup-fields label { display: grid; gap: 6px; min-width: 0; font-weight: 700; }
.company-setup-fields label.wide { grid-column: 1 / -1; }
.company-setup-fields label b { display: inline; color: #d92d20; }
.company-setup-fields :is(input, select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 43px; border: 1px solid #cad8eb; border-radius: 8px; padding: 8px 11px; font: inherit; }
.company-setup-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.company-setup-review div { border-bottom: 1px solid #e4eaf3; padding: 8px 0; min-width: 0; }
.company-setup-review dt { color: #667085; font-size: 12px; }
.company-setup-review dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.company-setup-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4eaf3; }
.company-setup-actions > div { display: flex; gap: 9px; }
.company-setup-actions button[hidden] { display: none; }
.company-edit-refined { min-width: 0; }
.company-edit-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.company-edit-header h2 { margin: 0; font-size: 24px; }
.company-edit-header p { margin: 3px 0 0; color: #667085; }
.company-edit-context { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.company-edit-context strong { overflow-wrap: anywhere; }
.company-edit-status { border-radius: 999px; padding: 5px 10px; background: #e7f8ee; color: #067647; font-weight: 700; }
.company-edit-refined .organization-company-edit-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.company-edit-section { min-width: 0; border: 1px solid #d7e4f2; border-radius: 9px; background: #fff; overflow: hidden; }
.company-edit-section summary { display: grid; gap: 3px; cursor: pointer; padding: 13px 16px; background: #f7faff; border-bottom: 1px solid transparent; }
.company-edit-section[open] summary { border-bottom-color: #d7e4f2; }
.company-edit-section summary strong { color: #183153; font-size: 16px; }
.company-edit-section summary small { color: #667085; font-size: 12px; font-weight: 500; }
.company-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; }
.company-edit-fields-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-edit-fields label { display: grid; gap: 5px; min-width: 0; color: #344054; font-size: 13px; font-weight: 700; }
.company-edit-fields :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; border: 1px solid #cad8eb; border-radius: 7px; padding: 8px 10px; font: inherit; }
.company-edit-fields input[readonly] { background: #f2f5f9; color: #667085; }
.company-edit-fields .full { grid-column: 1 / -1; }
.company-edit-fields .hint { color: #667085; font-size: 11px; font-weight: 400; }
.company-edit-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.company-edit-contact-grid fieldset { min-width: 0; margin: 0; padding: 0; border: 1px solid #d7e4f2; border-radius: 7px; }
.company-edit-contact-grid legend { float: left; box-sizing: border-box; width: 100%; padding: 9px 12px; background: #f7faff; font-weight: 700; }
.company-edit-contact-grid .company-edit-fields { clear: both; }
.company-edit-locked, .company-edit-manage { display: grid; gap: 6px; align-content: center; padding: 12px; border: 1px solid #d7e4f2; border-radius: 7px; color: #475467; }
.company-edit-manage .btn { justify-self: start; }
.company-edit-section > .company-edit-manage { margin: 16px; }
.company-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px; border: 1px solid #d7e4f2; border-radius: 8px; background: #f7faff; color: #175cd3; font-weight: 700; }
.company-edit-actions[hidden] { display: none; }
.company-edit-actions > div { display: flex; gap: 9px; }
.company-edit-fields :is(input, select)[aria-invalid="true"] { border-color: #d92d20; }
.company-edit-field-error { color: #b42318; font-size: 11px; font-weight: 600; }
@media (max-width: 600px) {
  .company-setup-overlay .company-setup-dialog { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px) !important; padding: 16px !important; }
  .company-setup-steps { gap: 5px; font-size: 11px; }
  .company-setup-steps li { gap: 3px; }
  .company-setup-fields, .company-setup-review { grid-template-columns: 1fr; }
  .company-setup-fields label.wide { grid-column: auto; }
  .company-edit-fields, .company-edit-fields-three, .company-edit-contact-grid { grid-template-columns: 1fr; }
  .company-edit-context { width: 100%; }
  .company-edit-actions { align-items: stretch; flex-direction: column; }
  .company-edit-actions > div { flex-wrap: wrap; }
}

.branch-editor-overlay .branch-editor-dialog {
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  padding: 18px !important;
}
.branch-editor-dialog .organization-branch-form { margin: 0; max-width: none; box-shadow: none; }
.branch-editor-dialog .organization-branch-form > :first-child :is(button[data-settings-section="hub"], button[data-settings-section="branches"]) { display: none; }
@media (max-width: 600px) {
  .branch-editor-overlay .branch-editor-dialog { width: calc(100vw - 20px) !important; max-height: calc(100dvh - 20px) !important; padding: 10px !important; }
}

.plus-companies-page .company-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #dbe4f0;
}

.plus-companies-page .company-page-header h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 750;
  color: #071a38;
}

.plus-companies-page .company-page-header p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #5f718d;
}

.plus-companies-page .company-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.plus-companies-page .company-header-actions .btn {
  min-height: 44px;
  white-space: nowrap;
}

.plus-companies-page .company-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(145px, 1fr)) auto auto;
  align-items: end;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 35, 66, .035);
}

.plus-companies-page .company-filter-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: #2f4260;
  font-size: 13px;
  font-weight: 650;
}

.plus-companies-page .company-filter-panel :is(input, select, .btn) {
  height: 44px;
  min-height: 44px;
  margin: 0;
}

.plus-companies-page .company-search-field {
  position: relative;
  align-self: end;
}

.plus-companies-page .company-search-field input {
  width: 100%;
  padding-left: 42px;
}

.plus-companies-page .company-input-icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  display: grid;
  place-items: center;
  color: #647895;
  pointer-events: none;
}

.plus-companies-page .company-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
  padding: 10px 8px;
  background: linear-gradient(90deg, #f9fbff, #fff);
  border: 1px solid #d8e2ef;
  border-radius: 12px;
}

.plus-companies-page .company-summary-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 16px;
  border-right: 1px solid #e3eaf3;
}

.plus-companies-page .company-summary-metric:last-child {
  border-right: 0;
}

.plus-companies-page .company-summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #1465f3;
  background: #edf4ff;
}

.plus-companies-page .company-summary-icon.green {
  color: #14934a;
  background: #eaf8ef;
}

.plus-companies-page .company-summary-metric > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.plus-companies-page .company-summary-metric small {
  color: #536783;
  font-size: 12.5px;
  white-space: nowrap;
}

.plus-companies-page .company-summary-metric strong {
  color: #071a38;
  font-size: 21px;
  line-height: 1.1;
}

.plus-companies-page .company-refresh-indicator {
  min-height: 20px;
  margin: 4px 2px 0;
  font-size: 12px;
}

.plus-companies-page .company-table-panel {
  position: relative;
  margin-top: 10px;
  overflow: visible;
  background: #fff;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 35, 66, .035);
}

.plus-companies-page .company-table-wrap {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 12px 12px 0 0;
}

.page:has(.plus-companies-page) .plus-companies-page .branch-grid-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.plus-companies-page .branch-grid-table th,
.plus-companies-page .branch-grid-table td {
  height: auto;
  padding: 13px 14px !important;
  border-right: 0 !important;
  border-bottom: 1px solid #e2e9f2;
  vertical-align: middle;
  font-size: 13.5px;
  color: #142743;
}

.plus-companies-page .branch-grid-table th {
  height: 48px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  background: #f5f8fc;
  color: #31445f;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plus-companies-page .branch-grid-table tbody tr {
  background: #fff;
}

.plus-companies-page .branch-grid-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.plus-companies-page .branch-grid-table tbody tr:hover td {
  background: #f8fbff !important;
}

.plus-companies-page .branch-grid-table :is(th, td):nth-child(1) { width: 12%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(2) { width: 18%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(3) { width: 9%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(4) { width: 10%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(5) { width: 14%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(6) { width: 10%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(7) { width: 9%; }
.plus-companies-page .branch-grid-table :is(th, td):nth-child(8) { width: 18%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(1) { width: 24%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(2) { width: 19%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(3) { width: 10%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(4) { width: 9%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(5) { width: 13%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(6) { width: 11%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(7) { width: 9%; }
.organization-company-list .branch-grid-table :is(th, td):nth-child(8) { width: 5%; }
.organization-company-list .company-row-actions { justify-content: center; }

.plus-companies-page .branch-grid-table :is(th, td):nth-child(6),
.plus-companies-page .branch-grid-table :is(th, td):nth-child(7) {
  text-align: center;
}

.plus-companies-page .branch-grid-table :is(th, td):last-child {
  text-align: right;
}

.plus-branches-page .branch-grid-table :is(th, td):nth-child(1) { width: 11%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(2) { width: 15%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(3) { width: 11%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(4) { width: 15%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(5) { width: 9%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(6) { width: 9%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(7) { width: 15%; }
.plus-branches-page .branch-grid-table :is(th, td):nth-child(8) { width: 15%; }

.plus-branches-page .branch-grid-table td {
  overflow-wrap: anywhere;
}

.plus-branches-page .branch-grid-table td:nth-child(7) .badge {
  margin: 2px;
  white-space: nowrap;
}

.plus-branches-page .company-view-button {
  min-width: 74px;
  white-space: nowrap;
}

.plus-companies-page .company-cell-link {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.plus-companies-page .company-cell-link:hover {
  color: #125df4;
}

.plus-companies-page .muted {
  color: #7c8da5 !important;
}

.plus-companies-page .company-currency {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.plus-companies-page .company-currency small {
  overflow: hidden;
  color: #6e8099;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page:has(.plus-companies-page) .plus-companies-page .company-row-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.plus-companies-page .company-view-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
}

.plus-companies-page .company-actions-menu {
  position: relative;
}

.plus-companies-page .company-actions-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #24405f;
  background: #fff;
  border: 1px solid #cdd9e8;
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}

.plus-companies-page .company-actions-trigger:hover,
.plus-companies-page .company-actions-trigger:focus-visible {
  color: #125df4;
  border-color: #93b8ff;
  background: #f6f9ff;
}

.plus-companies-page .company-actions-popover[popover] {
  position: fixed;
  inset: auto;
  z-index: 1000;
  width: 230px;
  margin: 0;
  padding: 9px;
  background: #fff;
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(12, 31, 61, .2);
  text-align: left;
}

.plus-companies-page .company-actions-popover[popover]:popover-open {
  display: grid;
}

.plus-companies-page .company-actions-popover[popover]::backdrop {
  background: transparent;
}

.plus-companies-page .company-actions-popover > strong {
  display: block;
  padding: 6px 10px 8px;
  color: #10233f;
  font-size: 13px;
  font-weight: 750;
}

.plus-companies-page .company-actions-popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #18304f;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.plus-companies-page .company-actions-popover button:hover,
.plus-companies-page .company-actions-popover button:focus-visible {
  background: #f1f6ff;
}

.plus-companies-page .company-actions-popover button.danger {
  color: #d92d38;
}

.plus-companies-page .company-actions-popover hr {
  width: 100%;
  margin: 5px 0;
  border: 0;
  border-top: 1px solid #e2e9f2;
}

.plus-companies-page .company-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 20px;
  color: #6b7e98;
  text-align: center;
}

.plus-companies-page .company-empty-state strong {
  color: #132a49;
  font-size: 17px;
}

.plus-companies-page .company-empty-state .btn {
  margin-top: 5px;
}

.plus-companies-page .company-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 11px 18px;
  color: #61738d;
  border-top: 0;
}

.plus-companies-page .company-pagination-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.plus-companies-page .company-pagination-controls label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 8px 0 0;
  color: #536783;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plus-companies-page .company-pagination select {
  width: 74px;
  height: 40px;
  min-height: 40px;
}

.plus-companies-page .company-pagination .icon-only,
.plus-companies-page .company-current-page {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
}

.plus-companies-page .company-current-page {
  color: #fff;
  background: #1765f3;
  border-radius: 9px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .plus-companies-page .company-filter-panel {
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(135px, 1fr));
  }
  .plus-companies-page .company-filter-panel .btn {
    grid-row: 2;
  }
  .plus-companies-page .company-summary-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .plus-companies-page .company-summary-metric:nth-child(3) {
    border-right: 0;
  }
  .plus-companies-page .company-summary-metric:nth-child(n+4) {
    border-top: 1px solid #e3eaf3;
  }
  .plus-companies-page .company-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
  }
  .page:has(.plus-companies-page) .plus-companies-page .branch-grid-table {
    min-width: 1040px !important;
  }
}

@media (max-width: 760px) {
  .plus-companies-page .company-page-header,
  .plus-companies-page .company-pagination {
    align-items: stretch;
    flex-direction: column;
  }
  .plus-companies-page .company-header-actions {
    justify-content: flex-start;
  }
  .plus-companies-page .company-filter-panel {
    grid-template-columns: 1fr;
  }
  .plus-companies-page .company-filter-panel .btn {
    grid-row: auto;
  }
  .plus-companies-page .company-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .plus-companies-page .company-summary-metric {
    border-top: 1px solid #e3eaf3;
    border-right: 0;
  }
  .plus-companies-page .company-summary-metric:nth-child(-n+2) {
    border-top: 0;
  }
  .plus-companies-page .company-summary-metric:nth-child(odd) {
    border-right: 1px solid #e3eaf3;
  }
  .plus-companies-page .company-pagination-controls {
    justify-content: space-between;
  }
}

@media (max-width: 460px) {
  .plus-companies-page .company-header-actions .btn {
    flex: 1 1 100%;
  }
  .plus-companies-page .company-summary-strip {
    grid-template-columns: 1fr;
  }
  .plus-companies-page .company-summary-metric,
  .plus-companies-page .company-summary-metric:nth-child(odd),
  .plus-companies-page .company-summary-metric:nth-child(-n+2) {
    border-top: 1px solid #e3eaf3;
    border-right: 0;
  }
  .plus-companies-page .company-summary-metric:first-child {
    border-top: 0;
  }
  .plus-companies-page .company-pagination-controls {
    flex-wrap: wrap;
  }
}
