/* Enterprise workspace for the Sani Easy administrator portal. */
.se-portal--admin {
  --erp-blue: #0a6ed1;
  --erp-blue-dark: #0854a0;
  --erp-shell: #223548;
  --erp-sidebar: #2f4356;
  --erp-sidebar-hover: #3d5367;
  --erp-text: #223548;
  --erp-muted: #5b738b;
  --erp-line: #d5dadd;
  --erp-line-strong: #bcc3c8;
  --erp-canvas: #f4f6f8;
  --erp-surface: #ffffff;
  --erp-surface-alt: #eef1f4;
  --erp-focus: #e5f2ff;
  --erp-success: #107e3e;
  --erp-warning: #e9730c;
  --erp-danger: #bb0000;
  --erp-brand: #d5aa24;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: 58px minmax(calc(100vh - 58px), auto);
  min-height: 100vh;
  background: var(--erp-canvas);
  color: var(--erp-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.se-portal--admin a {
  color: var(--erp-blue-dark);
  font-weight: 650;
  text-decoration: none;
}

.se-portal--admin a:hover,
.se-portal--admin a:focus-visible {
  color: var(--erp-blue);
  text-decoration: underline;
}

.se-portal--admin .se-portal-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #16293b;
  background: var(--erp-shell);
  color: #fff;
  box-shadow: 0 1px 4px rgba(18, 32, 46, 0.2);
}

.se-portal--admin .se-portal-brand {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.se-portal--admin .se-portal-brand > div {
  display: grid;
  gap: 0;
  min-width: 0;
}

.se-portal--admin .se-portal-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.se-portal--admin .se-portal-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.se-portal--admin .se-portal-brand strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-portal-brand span:not(.se-portal-brand__mark) {
  color: #c5d4e2;
  font-size: 11px;
  line-height: 1.2;
}

.se-portal--admin .se-portal-topbar__workspace {
  padding: 0 20px;
  color: #e7eef5;
  font-size: 14px;
  font-weight: 600;
}

.se-portal--admin .se-portal-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.se-portal--admin .se-portal-topbar__actions form {
  margin: 0;
}

.se-portal--admin .se-portal-topbar__actions .se-action-button,
.se-portal--admin .se-portal-topbar__actions a.se-action-button {
  --button-bg: transparent;
  --button-bg-2: transparent;
  --button-fg: #f7fbff;
  --button-border: rgba(255, 255, 255, 0.28);
  --button-icon: transparent;
  min-height: 36px;
  padding: 0 11px !important;
  border: 1px solid var(--button-border) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--button-fg) !important;
  box-shadow: none !important;
}

.se-portal--admin .se-portal-topbar__actions .se-action-button:hover,
.se-portal--admin .se-portal-topbar__actions .se-action-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  text-decoration: none;
  transform: none;
}

.se-portal--admin .se-portal-nav {
  position: sticky;
  top: 58px;
  z-index: 900;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 238px;
  height: calc(100vh - 58px);
  padding: 14px 10px 12px;
  overflow: auto;
  border: 0;
  border-right: 1px solid #1b3042;
  background: var(--erp-sidebar);
  box-shadow: none;
}

.se-portal--admin .se-portal-nav__title {
  display: block;
  padding: 6px 10px 9px;
  color: #9fb3c6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.se-portal--admin .se-portal-nav__links {
  display: grid;
  gap: 2px;
}

.se-portal--admin .se-portal-nav__section {
  display: block;
  margin: 9px 11px 3px;
  color: #9fb3c6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.se-portal--admin .se-portal-nav__section:first-child {
  margin-top: 0;
}

.se-portal--admin .se-portal-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #e6edf4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.se-portal--admin .se-portal-nav a:hover,
.se-portal--admin .se-portal-nav a:focus-visible {
  border-left-color: #8fc8ff;
  background: var(--erp-sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.se-portal--admin .se-portal-nav a.is-active {
  border-left-color: #69b8ff;
  background: #eaf3fc;
  color: var(--erp-blue-dark);
  font-weight: 700;
}

.se-portal--admin .se-portal-nav__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: currentColor;
}

.se-portal--admin .se-portal-nav__icon svg {
  width: 18px;
  height: 18px;
}

.se-portal--admin .se-portal-nav__account {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 13px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.se-portal--admin .se-portal-nav__account span {
  color: #9fb3c6;
  font-size: 11px;
}

.se-portal--admin .se-portal-nav__account strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-portal-nav__account small {
  overflow: hidden;
  color: #c9d6e2;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-portal-main {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 22px 26px 42px;
}

.se-portal--admin .se-portal-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  margin: -4px 0 16px;
  padding: 0 1px 12px;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-portal-pagehead > div {
  display: grid;
  gap: 3px;
}

.se-portal--admin .se-portal-pagehead span {
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 600;
}

.se-portal--admin .se-portal-pagehead h1 {
  margin: 0;
  color: var(--erp-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.se-portal--admin .se-portal-pagehead p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-portal-pagehead p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--erp-success);
  box-shadow: 0 0 0 3px rgba(16, 126, 62, 0.12);
}

.se-portal--admin .se-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.se-portal--admin .se-metric {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px 16px 12px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  background: var(--erp-surface);
  box-shadow: 0 1px 2px rgba(34, 53, 72, 0.06);
}

.se-portal--admin .se-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--erp-blue);
}

.se-portal--admin .se-metric span {
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 600;
}

.se-portal--admin .se-metric strong {
  color: var(--erp-text);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

.se-portal--admin .se-inventory-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.se-portal--admin .se-inventory-metric small {
  color: var(--erp-muted);
  font-size: 10px;
  font-weight: 600;
}

.se-portal--admin .se-inventory-metric--available::before {
  background: var(--erp-success);
}

.se-portal--admin .se-inventory-metric--reserved::before {
  background: #c58a00;
}

.se-portal--admin .se-inventory-metric--rented::before {
  background: #526f86;
}

.se-portal--admin .se-inventory-metric--unavailable::before {
  background: var(--erp-danger);
}

.se-portal--admin .se-inventory-overview {
  margin-bottom: 14px;
}

.se-portal--admin .se-inventory-overview table {
  table-layout: fixed;
}

.se-portal--admin .se-inventory-overview th:first-child,
.se-portal--admin .se-inventory-overview td:first-child {
  width: 28%;
}

.se-portal--admin .se-stock-count--available {
  color: var(--erp-success);
}

@media (max-width: 1100px) {
  .se-portal--admin .se-inventory-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .se-portal--admin .se-inventory-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


}

.se-portal--admin .se-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.se-portal--admin .se-dashboard-kpi {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: start;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--erp-line);
  border-top: 3px solid var(--erp-blue);
  border-radius: 4px;
  background: var(--erp-surface);
  color: var(--erp-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(34, 53, 72, 0.06);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.se-portal--admin a.se-dashboard-kpi:hover,
.se-portal--admin a.se-dashboard-kpi:focus-visible {
  border-color: #97bfe5;
  border-top-color: var(--erp-blue-dark);
  background: #fbfdff;
  color: var(--erp-text);
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(34, 74, 110, 0.11);
}

.se-portal--admin .se-dashboard-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #c4d9ed;
  border-radius: 4px;
  background: #edf5fc;
  color: #165d9f;
}

.se-portal--admin .se-dashboard-icon svg {
  width: 18px;
  height: 18px;
}

.se-portal--admin .se-dashboard-icon--arrow {
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #60798f;
}

.se-portal--admin .se-dashboard-icon--arrow svg {
  width: 16px;
  height: 16px;
}

.se-portal--admin .se-dashboard-kpi__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.se-portal--admin .se-dashboard-kpi__content > span {
  color: #4f687d;
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-dashboard-kpi__content strong {
  color: var(--erp-text);
  font-size: 28px;
  font-weight: 650;
  line-height: 1;
}

.se-portal--admin .se-dashboard-kpi__content small {
  color: var(--erp-muted);
  font-size: 11px;
  line-height: 1.35;
}

.se-portal--admin .se-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.se-portal--admin .se-dashboard-grid > .se-panel,
.se-portal--admin .se-dashboard-panel {
  min-width: 0;
  margin-top: 0;
}

.se-portal--admin .se-dashboard-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #075ca6;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.se-portal--admin .se-dashboard-panel-link:hover,
.se-portal--admin .se-dashboard-panel-link:focus-visible {
  color: #03477f;
  text-decoration: underline;
}

.se-portal--admin .se-dashboard-table {
  min-width: 540px;
}

.se-portal--admin .se-dashboard-table td {
  height: 58px;
}

.se-portal--admin .se-dashboard-empty {
  padding: 22px 16px !important;
  color: var(--erp-muted);
  font-size: 12px;
  text-align: center;
}

.se-portal--admin .se-dashboard-maintenance-list,
.se-portal--admin .se-dashboard-attention-list {
  display: grid;
}

.se-portal--admin .se-dashboard-maintenance-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e8ea;
}

.se-portal--admin .se-dashboard-maintenance-row:last-child {
  border-bottom: 0;
}

.se-portal--admin .se-dashboard-maintenance-row time {
  color: #435b70;
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-dashboard-maintenance-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.se-portal--admin .se-dashboard-maintenance-row > div strong,
.se-portal--admin .se-dashboard-attention strong {
  overflow: hidden;
  color: var(--erp-text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-dashboard-maintenance-row > div span,
.se-portal--admin .se-dashboard-attention small {
  overflow: hidden;
  color: var(--erp-muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-dashboard-attention {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e8ea;
  color: var(--erp-text);
  text-decoration: none;
}

.se-portal--admin .se-dashboard-attention:last-child {
  border-bottom: 0;
}

.se-portal--admin a.se-dashboard-attention:hover,
.se-portal--admin a.se-dashboard-attention:focus-visible {
  background: #f5faff;
  color: var(--erp-text);
  text-decoration: none;
}

.se-portal--admin .se-dashboard-attention > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.se-portal--admin .se-dashboard-attention__count {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border: 1px solid #bdd8c7;
  border-radius: 3px;
  background: #ebf7ef;
  color: #17613a;
  font-size: 13px;
  font-weight: 750;
}

.se-portal--admin .se-dashboard-attention--warning .se-dashboard-attention__count {
  border-color: #efd09d;
  background: #fff7e8;
  color: #8d5100;
}

.se-portal--admin .se-dashboard-attention--danger .se-dashboard-attention__count {
  border-color: #efb4b4;
  background: #fff1f1;
  color: var(--erp-danger);
}

.se-portal--admin .se-dashboard-operations {
  margin-top: 14px;
}

.se-portal--admin .se-dashboard-operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.se-portal--admin .se-dashboard-operation {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 84px;
  padding: 14px;
  border-right: 1px solid #e5e8ea;
  color: var(--erp-text);
  text-decoration: none;
}

.se-portal--admin .se-dashboard-operation:last-child {
  border-right: 0;
}

.se-portal--admin a.se-dashboard-operation:hover,
.se-portal--admin a.se-dashboard-operation:focus-visible {
  background: #f5faff;
  color: var(--erp-text);
  text-decoration: none;
}

.se-portal--admin .se-dashboard-operation > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.se-portal--admin .se-dashboard-operation strong {
  color: var(--erp-text);
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
}

.se-portal--admin .se-dashboard-operation b {
  color: #40586d;
  font-size: 12px;
}

.se-portal--admin .se-dashboard-operation small {
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-status-requested,
.se-portal--admin .se-status-in-progress,
.se-portal--admin .se-status-on-route,
.se-portal--admin .se-status-active,
.se-portal--admin .se-status-assigned {
  border-color: #aabfe8;
  background: #eaf0ff;
  color: #254d9b;
}

.se-portal--admin .se-panel,
.se-portal--admin .se-route-estimate-card,
.se-portal--admin .se-stop-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 4px;
  background: var(--erp-surface);
  box-shadow: 0 1px 3px rgba(34, 53, 72, 0.07);
}

.se-portal--admin .se-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--erp-line);
  background: var(--erp-surface);
}

.se-portal--admin .se-panel-head > div:first-child {
  display: grid;
  gap: 2px;
}

.se-portal--admin .se-panel h1,
.se-portal--admin .se-panel h2,
.se-portal--admin .se-panel-head h1,
.se-portal--admin .se-panel-head h2 {
  margin: 0;
  color: var(--erp-text);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.se-portal--admin .se-panel-head span,
.se-portal--admin .se-muted {
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-panel-actions,
.se-portal--admin .se-form-actions,
.se-portal--admin .se-route-final-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.se-portal--admin .se-panel-actions form {
  margin: 0;
}

.se-portal--admin button,
.se-portal--admin .se-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 38px;
  padding: 0 12px !important;
  border: 1px solid var(--erp-blue) !important;
  border-radius: 4px !important;
  background: var(--erp-blue) !important;
  color: #fff !important;
  font: inherit;
  font-size: 13px;
  font-weight: 650 !important;
  line-height: 1.15;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.se-portal--admin button:hover,
.se-portal--admin button:focus-visible,
.se-portal--admin .se-action-button:hover,
.se-portal--admin .se-action-button:focus-visible {
  border-color: var(--erp-blue-dark) !important;
  background: var(--erp-blue-dark) !important;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.18) !important;
  transform: none;
}

.se-portal--admin button:disabled,
.se-portal--admin .se-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none !important;
}

.se-portal--admin .se-panel-actions a.se-action-button,
.se-portal--admin .se-button-link.se-action-button,
.se-portal--admin .se-quick-links a.se-action-button,
.se-portal--admin .se-form-actions a {
  border-color: var(--erp-line-strong) !important;
  background: #fff !important;
  color: var(--erp-text) !important;
}

.se-portal--admin .se-panel-actions a.se-action-button:hover,
.se-portal--admin .se-button-link.se-action-button:hover,
.se-portal--admin .se-quick-links a.se-action-button:hover,
.se-portal--admin .se-form-actions a:hover {
  border-color: var(--erp-blue) !important;
  background: var(--erp-focus) !important;
  color: var(--erp-blue-dark) !important;
}

.se-portal--admin .se-action-button[data-intent="reset"] {
  border-color: #c54b43 !important;
  background: #fff !important;
  color: #a52f29 !important;
}

.se-portal--admin .se-action-button[data-intent="reset"]:hover,
.se-portal--admin .se-action-button[data-intent="reset"]:focus-visible {
  border-color: #a52f29 !important;
  background: #fff1f0 !important;
  color: #8d201b !important;
  box-shadow: 0 0 0 2px rgba(165, 47, 41, 0.14) !important;
}

.se-portal--admin .se-action-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: currentColor;
  box-shadow: none;
}

.se-portal--admin .se-action-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.se-portal--admin .se-action-button .se-action-icon,
.se-portal--admin .se-action-button .se-action-label {
  color: inherit !important;
}

.se-portal--admin .se-table-wrap {
  width: 100%;
  overflow: auto;
}

.se-portal--admin table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--erp-text);
  font-size: 13px;
}

.se-portal--admin th,
.se-portal--admin td {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e5e8ea;
  vertical-align: middle;
  text-align: left;
}

.se-portal--admin th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--erp-surface-alt);
  color: #435b70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.se-portal--admin tbody tr:hover > td {
  background: #f5faff;
}

.se-portal--admin tbody tr:last-child > td {
  border-bottom: 0;
}

.se-portal--admin .se-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #b8d8c3;
  border-radius: 3px;
  background: #ebf7ef;
  color: var(--erp-success);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.se-portal--admin .se-status-planned,
.se-portal--admin .se-status-draft,
.se-portal--admin .se-status-to-plan,
.se-portal--admin .se-status-needs_coordinates {
  border-color: #efd09d;
  background: #fff7e8;
  color: #8d5100;
}

.se-portal--admin .se-status-route-draft {
  border-color: #b7cae3;
  background: #eef5fc;
  color: #245783;
}

.se-portal--admin .se-status-scheduled {
  border-color: #a9d0b7;
  background: #e8f6ed;
  color: #17613a;
}

.se-portal--admin .se-status-on-route {
  border-color: #aabfe8;
  background: #eaf0ff;
  color: #254d9b;
}

.se-portal--admin .se-status-completed {
  border-color: #b8d8c3;
  background: #ebf7ef;
  color: var(--erp-success);
}

.se-portal--admin .se-status-cancelled {
  border-color: #d0d5d8;
  background: #f2f4f5;
  color: #556b7d;
}

.se-portal--admin .se-status-blocked,
.se-portal--admin .se-status-problem {
  border-color: #efb4b4;
  background: #fff1f1;
  color: var(--erp-danger);
}

.se-portal--admin .se-status-closed,
.se-portal--admin .se-status-skipped {
  border-color: #d0d5d8;
  background: #f2f4f5;
  color: #556b7d;
}

.se-portal--admin .se-edit-form,
.se-portal--admin .se-admin-order-form,
.se-portal--admin .se-setup-fields,
.se-portal--admin .se-setup-notes,
.se-portal--admin .se-map-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 16px;
}

.se-portal--admin .se-setup-fields,
.se-portal--admin .se-setup-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-edit-form label,
.se-portal--admin .se-admin-order-form label,
.se-portal--admin .se-setup-fields label,
.se-portal--admin .se-setup-notes label,
.se-portal--admin .se-map-filters label,
.se-portal--admin .se-route-settings label,
.se-portal--admin .se-route-hours,
.se-portal--admin .se-route-stop-editor label {
  display: grid;
  gap: 5px;
  color: #435b70;
  font-size: 12px;
  font-weight: 650;
}

.se-portal--admin .se-edit-form label.is-wide,
.se-portal--admin .se-admin-order-form .is-wide,
.se-portal--admin .se-setup-fields label.is-wide,
.se-portal--admin .se-setup-notes label.is-wide,
.se-portal--admin .se-form-actions,
.se-portal--admin .se-location-lookup {
  grid-column: 1 / -1;
}

.se-portal--admin .se-form-hint {
  grid-column: 1 / -1;
  margin: -5px 0 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--erp-blue);
  background: #f4f8fc;
  color: #435b70;
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-admin-order-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #c8d8e7;
  border-left: 3px solid var(--erp-blue);
  border-radius: 3px;
  background: #f5f9fd;
}

.se-portal--admin .se-admin-order-customer strong {
  color: var(--erp-text);
  font-size: 13px;
}

.se-portal--admin .se-admin-order-customer span {
  color: var(--erp-muted);
  font-size: 12px;
  text-align: right;
}

.se-portal--admin .se-admin-order-address {
  min-width: 0;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #f7f9fa;
}

.se-portal--admin .se-admin-order-products,
.se-portal--admin .se-customer-address {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #f7f9fa;
}

.se-portal--admin .se-admin-order-products legend,
.se-portal--admin .se-customer-address legend {
  padding: 0 6px;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-admin-order-product-lines {
  display: grid;
  gap: 10px;
}

.se-portal--admin .se-admin-order-product-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(90px, 0.22fr) minmax(150px, 0.3fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d6e0e8;
  border-left: 3px solid var(--erp-blue);
  background: #fff;
}

.se-portal--admin .se-admin-order-product-remove {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #b7c3cd;
  background: #fff;
  color: #435b70;
}

.se-portal--admin .se-admin-order-product-remove:hover:not(:disabled),
.se-portal--admin .se-admin-order-product-remove:focus-visible:not(:disabled) {
  border-color: var(--erp-danger);
  color: var(--erp-danger);
}

.se-portal--admin .se-admin-order-product-add {
  width: auto;
  margin-top: 10px;
}

.se-portal--admin .se-admin-order-products > p {
  margin: 8px 0 0;
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-field-with-suffix {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  align-items: center;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.se-portal--admin .se-field-with-suffix input {
  border: 0;
  border-radius: 0;
}

.se-portal--admin .se-field-with-suffix > span {
  padding: 0 10px;
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 650;
}

.se-portal--admin .se-customer-address {
  grid-column: 1 / -1;
}

.se-portal--admin .se-assignment-address,
.se-portal--admin .se-assignment-destination {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #f7f9fa;
}

.se-portal--admin .se-assignment-address legend,
.se-portal--admin .se-assignment-destination legend {
  padding: 0 6px;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-assignment-address > div,
.se-portal--admin .se-assignment-destination__choice,
.se-portal--admin .se-assignment-destination__custom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.se-portal--admin .se-assignment-destination > p {
  margin: 0 0 12px;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-assignment-depot {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 11px;
  border-left: 3px solid var(--erp-blue);
  background: #eef6fd;
}

.se-portal--admin .se-assignment-depot strong {
  color: var(--erp-text);
  font-size: 13px;
}

.se-portal--admin .se-assignment-depot span {
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-assignment-destination__custom {
  margin-top: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .se-portal--admin .se-assignment-address > div,
  .se-portal--admin .se-assignment-destination__choice,
  .se-portal--admin .se-assignment-destination__custom {
    grid-template-columns: 1fr;
  }
}

.se-portal--admin .se-customer-address__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.55fr) minmax(130px, 0.55fr);
  gap: 12px;
}

.se-portal--admin .se-customer-address__resolved {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.se-portal--admin .se-customer-address__resolved input[readonly] {
  background: #eef2f5;
  color: #435b70;
  cursor: default;
}

.se-portal--admin .se-customer-address__result {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #9aaebe;
  background: #edf2f5;
}

.se-portal--admin .se-customer-address__result strong {
  color: var(--erp-text);
  font-size: 12px;
}

.se-portal--admin .se-customer-address__result span {
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-customer-address__result[data-state="loading"] {
  border-left-color: var(--erp-blue);
  background: #edf6fd;
}

.se-portal--admin .se-customer-address__result[data-state="ok"] {
  border-left-color: var(--erp-success);
  background: #edf8f1;
}

.se-portal--admin .se-customer-address__result[data-state="manual"] {
  border-left-color: #c08b00;
  background: #fff8df;
}

.se-portal--admin .se-customer-address__result[data-state="error"] {
  border-left-color: var(--erp-danger);
  background: #fff1f1;
}

.se-portal--admin .se-admin-order-address[hidden] {
  display: none;
}

.se-portal--admin .se-admin-order-address legend {
  padding: 0 6px;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-admin-order-address__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr;
  gap: 12px;
}

.se-portal--admin .se-admin-order-address__status {
  margin: 10px 0 0;
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-admin-order-address__status[data-state="ok"] {
  color: var(--erp-success);
  font-weight: 700;
}

.se-portal--admin .se-admin-order-address__status[data-state="error"] {
  color: var(--erp-danger);
  font-weight: 700;
}

.se-portal--admin .se-admin-order-total {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) minmax(220px, 0.6fr);
  gap: 3px 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #b9cee2;
  border-left: 4px solid var(--erp-blue);
  border-radius: 3px;
  background: #f4f9fd;
}

.se-portal--admin .se-admin-order-total > span {
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-admin-order-total strong {
  justify-self: end;
  color: var(--erp-blue-dark);
  font-size: 18px;
}

.se-portal--admin .se-admin-order-total small {
  grid-column: 1 / -1;
  color: var(--erp-muted);
}

.se-portal--admin input,
.se-portal--admin select,
.se-portal--admin textarea,
.se-portal--admin .se-inline-form select {
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: var(--erp-text);
  font: inherit;
  box-shadow: none;
}

.se-portal--admin textarea {
  min-height: 92px;
  resize: vertical;
}

.se-portal--admin input:focus,
.se-portal--admin select:focus,
.se-portal--admin textarea:focus {
  border-color: var(--erp-blue);
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.12);
}

.se-portal--admin input[readonly] {
  background: var(--erp-surface-alt);
  color: var(--erp-muted);
}

.se-portal--admin .se-location-lookup,
.se-portal--admin .se-route-help {
  padding: 13px 14px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #f7f9fa;
}

.se-portal--admin .se-route-help strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.se-portal--admin .se-route-live-dot,
.se-portal--admin .se-route-live-badge > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--erp-success);
  box-shadow: 0 0 0 4px rgba(25, 137, 78, 0.12);
}

.se-portal--admin .se-route-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid #a9dbc0;
  border-radius: 3px;
  background: #effaf4;
  color: #0e6b3e;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.se-portal--admin .se-route-live-badge > span {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.se-portal--admin .se-route-last-change {
  display: block;
  max-width: 380px;
  margin-top: 7px;
  color: var(--erp-muted);
  font-size: 11px;
  line-height: 1.35;
}

.se-portal--admin .se-location-lookup__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.se-portal--admin .se-location-lookup p,
.se-portal--admin .se-route-help span {
  margin: 0;
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-location-result {
  border: 1px solid var(--erp-line-strong) !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: var(--erp-text) !important;
  box-shadow: none !important;
}

.se-portal--admin .se-location-result:hover {
  border-color: var(--erp-blue) !important;
  background: var(--erp-focus) !important;
}

.se-portal--admin .se-route-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.se-portal--admin .se-route-stops {
  display: grid;
  gap: 4px;
  padding: 2px 0;
}

.se-portal--admin .se-route-stops div {
  display: grid;
  grid-template-columns: 28px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
}

.se-portal--admin .se-route-stops strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: var(--erp-surface-alt);
  font-size: 11px;
}

.se-portal--admin .se-route-stops em {
  color: var(--erp-muted);
  font-size: 12px;
  font-style: normal;
}

.se-portal--admin .se-route-live-controls {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: auto minmax(190px, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin: 3px 0 7px;
  padding: 7px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #f8fafc;
}

.se-portal--admin .se-route-live-controls select {
  min-width: 190px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
}

.se-portal--admin .se-route-order-controls {
  display: inline-flex;
  gap: 4px;
}

.se-portal--admin .se-route-live-controls button {
  min-width: 0;
  min-height: 34px;
  padding: 0 10px !important;
  border-radius: 3px !important;
  font-size: 12px;
}

.se-portal--admin .se-route-order-controls button {
  width: 34px;
  padding: 0 !important;
  border-color: var(--erp-line-strong) !important;
  background: #fff !important;
  color: var(--erp-text) !important;
  font-size: 17px;
}

.se-portal--admin .se-route-order-controls button:hover,
.se-portal--admin .se-route-order-controls button:focus-visible {
  border-color: var(--erp-blue) !important;
  background: var(--erp-focus) !important;
  color: var(--erp-blue-dark) !important;
}

.se-portal--admin .se-route-live-controls .se-route-stop-remove {
  border-color: #c6534c !important;
  background: #fff !important;
  color: #9c2924 !important;
}

.se-portal--admin .se-route-live-controls .se-route-stop-remove:hover,
.se-portal--admin .se-route-live-controls .se-route-stop-remove:focus-visible {
  background: #fff1f0 !important;
  color: #7f1e19 !important;
}

.se-portal--admin .se-route-stop-locked {
  grid-column: 2 / -1;
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-route-office-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--erp-line);
  border-left: 4px solid var(--erp-blue);
  border-radius: 3px;
  background: #f8fafc;
}

.se-portal--admin .se-route-office-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.se-portal--admin .se-route-office-panel__head > div {
  display: grid;
  gap: 2px;
}

.se-portal--admin .se-route-office-panel__head strong {
  font-size: 13px;
}

.se-portal--admin .se-route-office-panel__head span,
.se-portal--admin .se-route-office-panel__head small,
.se-portal--admin .se-route-office-panel__hint {
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-route-office-panel__form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 130px auto;
  gap: 8px;
  align-items: end;
}

.se-portal--admin .se-route-office-panel__form label {
  display: grid;
  gap: 4px;
}

.se-portal--admin .se-route-office-panel__form label > span {
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 700;
}

.se-portal--admin .se-route-office-panel__form textarea {
  min-height: 58px;
  padding: 8px 10px;
  font-size: 12px;
}

.se-portal--admin .se-route-office-panel__form select,
.se-portal--admin .se-route-office-panel__form button {
  min-height: 38px;
  font-size: 12px;
}

.se-portal--admin .se-route-office-panel__form button {
  padding-right: 12px !important;
  padding-left: 12px !important;
}

.se-portal--admin .se-route-office-panel__hint {
  margin: -2px 0 0;
}

.se-portal--admin .se-route-office-list {
  display: grid;
  gap: 6px;
}

.se-portal--admin .se-route-office-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 9px 10px;
  border: 1px solid #a9cbe8;
  border-left: 3px solid var(--erp-blue);
  border-radius: 3px;
  background: #fff;
}

.se-portal--admin .se-route-office-message.is-urgent {
  border-color: #e4a5a1;
  border-left-color: var(--erp-danger);
  background: #fff8f7;
}

.se-portal--admin .se-route-office-message.is-seen {
  border-color: var(--erp-line);
  border-left-color: var(--erp-success);
  background: #f9fbfa;
}

.se-portal--admin .se-route-office-message p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--erp-text);
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-route-office-message small {
  color: var(--erp-muted);
  font-size: 10px;
}

.se-portal--admin .se-route-office-message > strong {
  color: var(--erp-blue-dark);
  font-size: 10px;
  text-align: right;
}

.se-portal--admin .se-route-office-message.is-seen > strong {
  color: var(--erp-success);
}

.se-portal--admin .se-inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 260px;
}

.se-portal--admin .se-inline-form select {
  min-width: 130px;
}

.se-portal--admin .se-location-grid,
.se-portal--admin .se-audit-grid,
.se-portal--admin .se-driver-routes,
.se-portal--admin .se-route-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.se-portal--admin .se-route-step-grid--summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.se-portal--admin .se-location-grid article,
.se-portal--admin .se-audit-card,
.se-portal--admin .se-driver-routes article,
.se-portal--admin .se-route-step-grid article,
.se-portal--admin .se-empty-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.se-portal--admin .se-location-grid span,
.se-portal--admin .se-location-grid small,
.se-portal--admin .se-empty-card span {
  color: var(--erp-muted);
}

.se-portal--admin .se-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #a8cbea;
  border-left: 4px solid var(--erp-blue);
  border-radius: 3px;
  background: #eef7ff;
  color: var(--erp-text);
}

.se-portal--admin .se-notice-ok {
  border-color: #aad2b8;
  border-left-color: var(--erp-success);
  background: #f0f8f3;
}

.se-portal--admin .se-notice-error {
  border-color: #efb4b4;
  border-left-color: var(--erp-danger);
  background: #fff1f1;
}

.se-portal--admin .se-map-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-map-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
  padding: 14px;
}

.se-portal--admin .se-map-stage {
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #edf1f3;
}

.se-portal--admin .se-map-card,
.se-portal--admin .se-map-empty {
  border: 1px solid var(--erp-line);
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
}

.se-portal--admin .se-map-card.is-selected {
  border-color: var(--erp-blue);
  outline: 2px solid rgba(10, 110, 209, 0.16);
}

.se-portal--admin .se-map-marker {
  border-radius: 50%;
  background: var(--erp-blue);
}

.se-portal--admin .se-route-wizard-body,
.se-portal--admin .se-brief-body,
.se-portal--admin .se-task-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.se-portal--admin .se-route-estimate-card header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--erp-line);
  background: var(--erp-surface-alt);
}

.se-portal--admin .se-route-estimate-card header > div:first-child {
	min-width: 0;
}

.se-portal--admin .se-route-driver-picker {
	display: grid;
	flex: 0 1 280px;
	gap: 5px;
	min-width: 220px;
}

.se-portal--admin .se-route-driver-picker > span {
	color: var(--erp-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.se-portal--admin .se-route-driver-picker select {
	width: 100%;
	min-height: 38px;
	background: #fff;
}

.se-portal--admin .se-route-estimate-card dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 14px;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-route-estimate-card header b {
  color: var(--erp-text);
  font-weight: 800;
}

.se-portal--admin .se-route-drag-status {
  padding: 10px 12px;
  border: 1px solid var(--erp-line);
  border-left: 3px solid var(--erp-blue);
  border-radius: 3px;
  background: #f7faff;
  color: var(--erp-muted);
  font-size: 13px;
  font-weight: 700;
}

.se-portal--admin .se-route-drag-status[data-state="changed"] {
  border-left-color: #d59f00;
  background: #fff9e4;
  color: #624d00;
}

.se-portal--admin .se-route-drag-status[data-state="error"] {
  border-left-color: #b42318;
  background: #fff3f2;
  color: #8a1c14;
}

.se-portal--admin .se-route-stop-editor {
  min-height: 52px;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.se-portal--admin .se-route-stop-editor.is-drop-target {
  background: #edf6ff;
  box-shadow: inset 0 0 0 2px var(--erp-blue);
}

.se-portal--admin .se-route-stop-editor.is-drop-blocked {
  background: #fff3f2;
  box-shadow: inset 0 0 0 2px #b42318;
}

.se-portal--admin .se-route-stop-editor:empty::after {
  display: block;
  padding: 15px 14px;
  color: var(--erp-muted);
  content: "Geen bestellingen in deze route";
  font-size: 13px;
  font-weight: 700;
}

.se-portal--admin .se-route-stop-editor > div {
  padding: 10px 14px;
  border-top: 1px solid var(--erp-line);
}

.se-portal--admin .se-route-stop-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.se-portal--admin .se-route-stop-main > span:last-child {
  min-width: 0;
}

.se-portal--admin .se-route-drag-handle {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 34px;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--erp-muted);
  cursor: grab;
}

.se-portal--admin .se-route-drag-handle:active {
  cursor: grabbing;
}

.se-portal--admin .se-route-drag-handle:focus-visible {
  outline: 2px solid var(--erp-blue);
  outline-offset: 2px;
}

.se-portal--admin .se-route-drag-handle i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor;
}

.se-portal--admin .se-route-stop-row.is-dragging {
  opacity: 0.45;
}

.se-portal--admin .se-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.se-portal--admin .se-setup-hero,
.se-portal--admin .se-setup-callout {
  border-radius: 4px;
}

.se-portal--admin .se-progress-ring {
  width: 104px;
  height: 104px;
  border: 8px solid var(--erp-blue);
  background: #f5faff;
}

.se-portal--admin .se-task,
.se-portal--admin .se-finding {
  border-radius: 3px;
  box-shadow: none;
}

.se-portal--admin .se-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px;
}

@media (max-width: 1180px) {
  .se-portal--admin {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .se-portal--admin .se-portal-topbar {
    grid-template-columns: 210px minmax(0, 1fr) auto;
  }

  .se-portal--admin .se-portal-nav {
    width: 210px;
  }

  .se-portal--admin .se-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-portal--admin .se-dashboard-kpis,
  .se-portal--admin .se-dashboard-operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-portal--admin .se-dashboard-operation:nth-child(2) {
    border-right: 0;
  }

  .se-portal--admin .se-dashboard-operation:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e8ea;
  }

  .se-portal--admin .se-map-layout,
  .se-portal--admin .se-setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .se-portal--admin {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px 52px auto;
  }

  .se-portal--admin .se-portal-topbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(190px, 1fr) auto auto;
    min-height: 56px;
  }

  .se-portal--admin .se-portal-topbar__workspace {
    padding: 0 12px;
    font-size: 12px;
  }

  .se-portal--admin .se-portal-nav {
    position: sticky;
    top: 56px;
    grid-column: 1;
    grid-row: 2;
    display: block;
    width: 100%;
    height: 52px;
    padding: 6px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid #1b3042;
  }

  .se-portal--admin .se-portal-nav__title,
  .se-portal--admin .se-portal-nav__section,
  .se-portal--admin .se-portal-nav__account {
    display: none;
  }

  .se-portal--admin .se-portal-nav__links {
    display: flex;
    gap: 4px;
    width: max-content;
  }

  .se-portal--admin .se-portal-nav a {
    min-height: 38px;
    padding: 0 10px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .se-portal--admin .se-portal-nav a:hover,
  .se-portal--admin .se-portal-nav a:focus-visible,
  .se-portal--admin .se-portal-nav a.is-active {
    border-left: 0;
    border-bottom-color: #69b8ff;
  }

  .se-portal--admin .se-portal-main {
    grid-column: 1;
    grid-row: 3;
    padding: 18px 16px 34px;
  }

  .se-portal--admin .se-edit-form,
  .se-portal--admin .se-admin-order-form,
  .se-portal--admin .se-map-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-portal--admin .se-location-grid,
  .se-portal--admin .se-audit-grid,
  .se-portal--admin .se-driver-routes,
  .se-portal--admin .se-route-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .se-portal--admin .se-map-stage {
    min-height: 480px;
  }

  .se-portal--admin .se-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .se-portal--admin .se-portal-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .se-portal--admin .se-portal-brand {
    padding: 0 12px;
    border-right: 0;
  }

  .se-portal--admin .se-portal-brand span:not(.se-portal-brand__mark),
  .se-portal--admin .se-portal-topbar__workspace {
    display: none;
  }

  .se-portal--admin .se-portal-topbar__actions {
    gap: 6px;
    padding: 0 10px 0 0;
  }

  .se-portal--admin .se-portal-topbar__actions .se-action-button,
  .se-portal--admin .se-portal-topbar__actions a.se-action-button {
    width: 36px;
    min-width: 36px;
    padding: 0 !important;
  }

  .se-portal--admin .se-portal-topbar__actions .se-action-label {
    display: none;
  }

  .se-portal--admin .se-portal-nav a {
    gap: 7px;
    font-size: 12px;
  }

  .se-portal--admin .se-portal-main {
    padding: 14px 10px 28px;
  }

  .se-portal--admin .se-portal-pagehead {
    align-items: flex-start;
    min-height: 50px;
    margin-bottom: 12px;
  }

  .se-portal--admin .se-portal-pagehead h1 {
    font-size: 21px;
  }

  .se-portal--admin .se-portal-pagehead p {
    display: none;
  }

  .se-portal--admin .se-metrics,
  .se-portal--admin .se-edit-form,
  .se-portal--admin .se-admin-order-form,
  .se-portal--admin .se-setup-fields,
  .se-portal--admin .se-setup-notes,
  .se-portal--admin .se-map-filters,
  .se-portal--admin .se-location-grid,
  .se-portal--admin .se-audit-grid,
  .se-portal--admin .se-driver-routes,
  .se-portal--admin .se-route-step-grid,
  .se-portal--admin .se-route-estimate-card dl,
  .se-portal--admin .se-route-stop-editor > div,
  .se-portal--admin .se-location-lookup__bar {
    grid-template-columns: 1fr;
  }

	.se-portal--admin .se-route-estimate-card header {
		align-items: stretch;
		flex-direction: column;
	}

	.se-portal--admin .se-route-driver-picker {
		flex-basis: auto;
		min-width: 0;
	}

  .se-portal--admin .se-admin-order-address__grid,
  .se-portal--admin .se-customer-address__grid,
  .se-portal--admin .se-customer-address__resolved,
  .se-portal--admin .se-admin-order-product-line,
  .se-portal--admin .se-admin-order-total {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-admin-order-product-remove,
  .se-portal--admin .se-admin-order-product-add {
    width: 100%;
  }

  .se-portal--admin .se-admin-order-customer {
    align-items: flex-start;
    flex-direction: column;
  }

  .se-portal--admin .se-admin-order-customer span,
  .se-portal--admin .se-admin-order-total strong {
    justify-self: start;
    text-align: left;
  }

  .se-portal--admin .se-metrics {
    gap: 8px;
  }

  .se-portal--admin .se-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .se-portal--admin .se-dashboard-kpi {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 104px;
    padding: 12px;
  }

  .se-portal--admin .se-dashboard-kpi > .se-dashboard-icon--arrow {
    display: none;
  }

  .se-portal--admin .se-dashboard-kpi > .se-dashboard-icon:first-child {
    width: 30px;
    height: 30px;
  }

  .se-portal--admin .se-dashboard-kpi__content strong {
    font-size: 24px;
  }

  .se-portal--admin .se-dashboard-maintenance-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .se-portal--admin .se-dashboard-maintenance-row time {
    grid-column: 1 / -1;
  }

  .se-portal--admin .se-metric {
    min-height: 78px;
    padding: 12px 14px;
  }

  .se-portal--admin .se-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .se-portal--admin .se-panel-actions {
    width: 100%;
  }

  .se-portal--admin .se-action-button,
  .se-portal--admin button {
    width: auto;
    justify-content: center;
  }

  .se-portal--admin .se-panel-actions .se-action-button,
  .se-portal--admin .se-panel-actions button {
    flex: 1 1 160px;
  }

  .se-portal--admin .se-route-help,
  .se-portal--admin .se-inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .se-portal--admin .se-inline-form {
    min-width: 230px;
  }

  .se-portal--admin .se-route-stops div {
    grid-template-columns: 26px minmax(180px, 1fr);
  }

  .se-portal--admin .se-route-stops em {
    grid-column: 2;
  }

  .se-portal--admin .se-route-live-controls {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .se-portal--admin .se-route-live-controls .se-route-move-button,
  .se-portal--admin .se-route-live-controls .se-route-stop-remove {
    width: 100%;
  }

  .se-portal--admin .se-route-live-controls .se-route-stop-remove {
    grid-column: 1 / -1;
  }

  .se-portal--admin .se-route-office-panel__form {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-route-office-panel__form button {
    width: 100%;
  }

  .se-portal--admin .se-route-office-message {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-route-office-message > strong {
    text-align: left;
  }

  .se-portal--admin .se-map-layout {
    padding: 10px;
  }

  .se-portal--admin .se-map-stage {
    min-height: 390px;
  }
}

/* Compact management overview tables */
.se-portal--admin .se-table-wrap {
  max-width: 100%;
  overflow-x: clip;
}

.se-portal--admin .se-table-wrap table,
.se-portal--admin .se-dashboard-table,
.se-portal--admin .se-projects-table,
.se-portal--admin .se-business-relations-table,
.se-portal--admin .se-completed-table {
  width: 100%;
  min-width: 0 !important;
  max-width: 100%;
}

.se-portal--admin .se-table-wrap table.is-dense-table {
  table-layout: fixed;
}

.se-portal--admin .se-table-wrap th,
.se-portal--admin .se-table-wrap td {
  min-width: 0;
  padding: 8px 7px;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.se-portal--admin .se-table-wrap th {
  font-size: 10px;
  line-height: 1.2;
}

.se-portal--admin .se-table-wrap td {
  font-size: 12px;
  line-height: 1.3;
}

.se-portal--admin .se-table-wrap td > a,
.se-portal--admin .se-table-wrap td > strong,
.se-portal--admin .se-table-wrap .se-record-link {
  overflow-wrap: anywhere;
}

.se-portal--admin .se-table-wrap .se-table-subline {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.25;
}

.se-portal--admin .se-table-wrap .se-pill,
.se-portal--admin .se-table-wrap .se-order-type,
.se-portal--admin .se-table-wrap .se-operation-type {
  min-width: 0;
  max-width: 100%;
  padding: 3px 5px;
  text-align: center;
  white-space: normal;
}

.se-portal--admin .se-table-wrap .se-table-actions {
  flex-wrap: wrap;
  gap: 4px 7px;
  white-space: normal;
}

.se-portal--admin .se-table-wrap .se-order-actions {
  flex-wrap: nowrap;
  gap: 5px;
  white-space: nowrap;
}

.se-portal--admin .se-table-wrap input,
.se-portal--admin .se-table-wrap select,
.se-portal--admin .se-table-wrap textarea,
.se-portal--admin .se-table-wrap button {
  max-width: 100%;
}

.se-portal--admin .se-table-wrap .se-action-button {
  min-height: 30px;
  padding: 4px 7px !important;
  gap: 5px;
  font-size: 11px !important;
}

.se-portal--admin .se-table-wrap .se-action-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.se-portal--admin .se-table-wrap .se-action-icon svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 760px) {
  .se-portal--admin .se-table-wrap {
    overflow: visible;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table,
  .se-portal--admin .se-table-wrap table.is-responsive-table tbody {
    display: block;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: #f4f7f9;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--erp-line);
    border-radius: 3px;
    background: var(--erp-surface);
    overflow: hidden;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table td {
    display: block;
    min-height: 48px;
    padding: 7px 9px;
    border-right: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    white-space: normal;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table td::before {
    content: attr(data-column-label);
    display: block;
    margin-bottom: 3px;
    color: #5a7185;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .se-portal--admin .se-table-wrap table.is-responsive-table td[colspan] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .se-portal--admin .se-table-wrap table.is-responsive-table tr {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact linked-record workspace for ORD, ODH and OPD dossiers. */
.se-portal--admin .se-record-link {
  display: inline-flex;
  align-items: center;
  color: var(--erp-blue-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #8ebbe6;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.se-portal--admin .se-record-link:hover,
.se-portal--admin .se-record-link:focus-visible {
  color: var(--erp-blue);
  text-decoration-thickness: 2px;
}

.se-portal--admin .se-assignment-source {
  padding: 14px;
  border: 1px solid #b8cadb;
  border-left: 3px solid var(--erp-blue);
  border-radius: 4px;
  background: #f7fbff;
}

.se-portal--admin .se-assignment-source legend {
  padding: 0 6px;
  color: var(--erp-text);
  font-weight: 750;
}

.se-portal--admin .se-assignment-source legend small {
  color: var(--erp-muted);
  font-weight: 600;
}

.se-portal--admin .se-assignment-source > p {
  margin: 0 0 12px;
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-assignment-source > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.se-record-workspace {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.se-record-workspace__windows,
.se-record-workspace__taskbar {
  pointer-events: none;
}

.se-record-window {
  position: fixed;
  right: calc(18px + (var(--workspace-offset, 0) * 26px));
  bottom: calc(58px + (var(--workspace-offset, 0) * 20px));
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 36px));
  max-height: min(610px, 68vh);
  overflow: hidden;
  border: 1px solid #9eabb6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(22, 42, 59, 0.25);
  color: #223548;
  pointer-events: auto;
}

.se-record-window[hidden] {
  display: none;
}

.se-record-window.is-minimized {
  display: none !important;
}

.se-record-window.is-active {
  border-color: #4e90cc;
  box-shadow: 0 22px 54px rgba(22, 42, 59, 0.32);
}

.se-record-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 8px 7px 13px;
  border-bottom: 1px solid #16293b;
  background: #223548;
  color: #fff;
  cursor: default;
}

.se-record-window__heading {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.se-record-window__heading span {
  color: #bcd0e1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.se-record-window__heading strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-record-window__controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.se-record-window .se-workspace-control {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font: 700 20px/1 Arial, sans-serif;
  cursor: pointer;
}

.se-record-window .se-workspace-control:hover,
.se-record-window .se-workspace-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.se-record-window__body {
  min-height: 0;
  overflow: auto;
  padding: 15px;
}

.se-record-window__body h2 {
  margin: 0 0 8px;
  color: #223548;
  font-size: 17px;
  letter-spacing: 0;
}

.se-record-window__status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 14px;
  padding: 2px 8px;
  border: 1px solid #b8c6d2;
  border-radius: 3px;
  background: #eef3f7;
  color: #304b62;
  font-size: 11px;
  font-weight: 750;
}

.se-record-window__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid #d8e0e6;
  border-bottom: 0;
}

.se-record-window__field {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid #d8e0e6;
  border-bottom: 1px solid #d8e0e6;
}

.se-record-window__field:nth-child(even) {
  border-right: 0;
}

.se-record-window__field dt {
  margin: 0 0 2px;
  color: #5b738b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.se-record-window__field dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #223548;
  font-size: 12px;
  font-weight: 650;
}

.se-record-window__relations {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.se-record-window__relations > span {
  flex: 1 0 100%;
  color: #5b738b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.se-record-window__relation {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #9fc3e5;
  border-radius: 3px;
  background: #eff7ff;
  color: #0854a0;
  font-size: 12px;
  font-weight: 750;
}

.se-record-window__footer {
  display: flex;
  justify-content: flex-end;
  padding: 9px 12px;
  border-top: 1px solid #d5dadd;
  background: #f6f8fa;
}

.se-record-window__footer a {
  font-size: 12px;
  font-weight: 750;
}

.se-record-workspace__taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 238px;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 5px 10px;
  border-top: 1px solid #14293c;
  background: #223548;
  box-shadow: 0 -4px 14px rgba(22, 42, 59, 0.18);
  pointer-events: auto;
}

.se-record-workspace__taskbar[hidden] {
  display: none;
}

.se-record-workspace__taskbar-label {
  margin: 0 9px 0 2px;
  color: #aebfce;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.se-record-workspace__taskbar > div {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.se-record-workspace .se-workspace-task {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 130px;
  max-width: 190px;
  min-height: 34px;
  padding: 4px 10px 4px 5px;
  border: 1px solid #577087;
  border-radius: 3px;
  background: #2f4356;
  color: #edf5fb;
  font: inherit;
  cursor: pointer;
}

.se-record-workspace .se-workspace-task:hover,
.se-record-workspace .se-workspace-task:focus-visible,
.se-record-workspace .se-workspace-task.is-active {
  border-color: #72b7f5;
  background: #38536d;
}

.se-record-workspace .se-workspace-task.is-minimized {
  background: #263a4d;
  color: #b8c9d7;
}

.se-workspace-task__type {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  flex: 0 0 26px;
  border-radius: 2px;
  background: #0a6ed1;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.se-workspace-task strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .se-record-workspace__taskbar {
    left: 210px;
  }
}

@media (max-width: 900px) {
  .se-record-workspace__taskbar {
    left: 0;
  }

  .se-record-window {
    right: 12px;
    bottom: 58px;
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 136px);
  }
}

@media (max-width: 640px) {
  .se-portal--admin .se-assignment-source > div,
  .se-record-window__fields {
    grid-template-columns: 1fr;
  }

  .se-record-window__field,
  .se-record-window__field:nth-child(even) {
    border-right: 0;
  }

  .se-record-workspace__taskbar-label {
    display: none;
  }

  .se-record-workspace .se-workspace-task {
    min-width: 116px;
  }
}

/* Driver control center */
.se-portal--admin .se-driver-metrics .se-metric {
  min-height: 104px;
}

.se-portal--admin .se-driver-metrics .se-metric small {
  display: block;
  margin-top: 3px;
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-driver-live-state {
  display: grid;
  grid-template-columns: 9px auto;
  align-items: center;
  column-gap: 7px;
  min-width: 165px;
  color: #35556f;
  text-align: left;
}

.se-portal--admin .se-driver-live-state > span {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #138a4b;
  box-shadow: 0 0 0 3px #dff3e8;
}

.se-portal--admin .se-driver-live-state strong,
.se-portal--admin .se-driver-live-state small {
  line-height: 1.2;
}

.se-portal--admin .se-driver-live-state strong {
  font-size: 12px;
}

.se-portal--admin .se-driver-live-state small {
  color: var(--erp-muted);
  font-size: 10px;
}

.se-portal--admin .se-driver-live-state[data-state="updating"] > span {
  background: #1674ce;
  box-shadow: 0 0 0 3px #dcecfb;
}

.se-portal--admin .se-driver-live-state[data-state="error"] > span {
  background: #c17b00;
  box-shadow: 0 0 0 3px #fff0cc;
}

.se-portal--admin .se-driver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f4f6f8;
}

.se-portal--admin .se-driver-card {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--erp-line);
  border-left: 4px solid #7e91a4;
  border-radius: 4px;
  background: var(--erp-surface);
  box-shadow: 0 1px 2px rgba(22, 42, 61, 0.06);
}

.se-portal--admin .se-driver-card--on_route,
.se-portal--admin .se-driver-card--planned {
  border-left-color: #1674ce;
}

.se-portal--admin .se-driver-card--arrived,
.se-portal--admin .se-driver-card--available {
  border-left-color: #138a4b;
}

.se-portal--admin .se-driver-card--problem {
  border-left-color: #c73737;
}

.se-portal--admin .se-driver-card > header,
.se-portal--admin .se-driver-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.se-portal--admin .se-driver-card > header {
  border-bottom: 1px solid #e8ecef;
}

.se-portal--admin .se-driver-card > header > div,
.se-portal--admin .se-driver-card > header > div small,
.se-portal--admin .se-driver-route-line,
.se-portal--admin .se-driver-current-stop,
.se-portal--admin .se-driver-empty-route {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.se-portal--admin .se-driver-card > header > div > strong {
  overflow: hidden;
  color: var(--erp-ink);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-driver-card > header small,
.se-portal--admin .se-driver-route-line span,
.se-portal--admin .se-driver-current-stop span,
.se-portal--admin .se-driver-progress small,
.se-portal--admin .se-driver-empty-route span,
.se-portal--admin .se-driver-card > footer > span {
  color: var(--erp-muted);
  font-size: 10px;
}

.se-portal--admin .se-driver-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cbd5dd;
  border-radius: 3px;
  background: #f5f7f9;
  color: #40566a;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.se-portal--admin .se-driver-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.se-portal--admin .se-driver-status--on_route,
.se-portal--admin .se-driver-status--planned {
  border-color: #a8cdec;
  background: #edf6fd;
  color: #0d5fa9;
}

.se-portal--admin .se-driver-status--arrived,
.se-portal--admin .se-driver-status--available {
  border-color: #9ed2b5;
  background: #edf8f1;
  color: #11723f;
}

.se-portal--admin .se-driver-status--problem {
  border-color: #e3aaaa;
  background: #fff0f0;
  color: #aa2424;
}

.se-portal--admin .se-driver-route-line,
.se-portal--admin .se-driver-current-stop,
.se-portal--admin .se-driver-empty-route {
  padding: 12px 14px 0;
}

.se-portal--admin .se-driver-route-line strong,
.se-portal--admin .se-driver-current-stop strong,
.se-portal--admin .se-driver-empty-route strong {
  overflow: hidden;
  color: var(--erp-ink);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.se-portal--admin .se-driver-route-line small,
.se-portal--admin .se-driver-current-stop small {
  color: #51697d;
  font-size: 10px;
}

.se-portal--admin .se-driver-progress {
  display: grid;
  gap: 6px;
  padding: 12px 14px 0;
}

.se-portal--admin .se-driver-progress > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.se-portal--admin .se-driver-progress > div {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e9ed;
}

.se-portal--admin .se-driver-progress > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1674ce;
}

.se-portal--admin .se-driver-current-stop {
  margin: 12px 14px 0;
  padding: 10px 11px;
  border: 1px solid #d9e0e6;
  border-radius: 3px;
  background: #fafbfc;
}

.se-portal--admin .se-driver-cash-alert {
  margin: 10px 14px 0;
  padding: 8px 10px;
  border-left: 3px solid #c99200;
  background: #fff8e6;
  color: #674c00;
  font-size: 11px;
}

.se-portal--admin .se-driver-empty-route {
  min-height: 112px;
  align-content: center;
  padding-bottom: 12px;
}

.se-portal--admin .se-driver-card > footer {
  align-self: end;
  margin-top: 12px;
  border-top: 1px solid #e8ecef;
  background: #fafbfc;
}

.se-portal--admin .se-driver-card > footer > div,
.se-portal--admin .se-driver-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.se-portal--admin .se-driver-card > footer a,
.se-portal--admin .se-driver-proof a,
.se-portal--admin .se-driver-proof > span {
  font-size: 10px;
  font-weight: 700;
}

.se-portal--admin .se-driver-empty-overview {
  display: grid;
  justify-items: start;
  gap: 7px;
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed #bdc9d3;
  background: #fff;
}

.se-portal--admin .se-driver-event {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #cbd5dd;
  border-radius: 3px;
  background: #f5f7f9;
  color: #40566a;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.se-portal--admin .se-driver-event--arrived,
.se-portal--admin .se-driver-event--completed,
.se-portal--admin .se-driver-event--route_completed {
  border-color: #9ed2b5;
  background: #edf8f1;
  color: #11723f;
}

.se-portal--admin .se-driver-event--route_started {
  border-color: #a8cdec;
  background: #edf6fd;
  color: #0d5fa9;
}

.se-portal--admin .se-driver-event--problem {
  border-color: #e3aaaa;
  background: #fff0f0;
  color: #aa2424;
}

.se-portal--admin .se-driver-event--cash_received {
  border-color: #e1c571;
  background: #fff8e2;
  color: #715400;
}

.se-portal--admin .se-driver-activity-panel,
.se-portal--admin .se-driver-directory {
  margin-top: 16px;
}

.se-portal--admin .se-driver-activity-table td {
  vertical-align: top;
}

.se-portal--admin .se-route-run-time {
  display: block;
  margin-top: 4px;
  color: #3f5b72;
  font-size: 10px;
}

.se-portal--admin .se-route-stop-registration {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 7px;
  padding: 8px 9px;
  border-left: 3px solid #4b91cf;
  background: #f3f7fa;
  color: #486175;
  font-size: 10px;
  font-style: normal;
}

.se-portal--admin .se-route-stop-registration a {
  font-weight: 750;
}

.se-portal--admin .se-route-stop-registration .se-route-stop-note {
  flex-basis: 100%;
  color: #263e52;
}

.se-portal--admin .se-route-stop-registration .se-route-stop-cash {
  padding: 2px 5px;
  border: 1px solid #dcc474;
  border-radius: 2px;
  background: #fff8e2;
  color: #6c5100;
  font-weight: 700;
}

@media (max-width: 980px) {
  .se-portal--admin .se-driver-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .se-portal--admin .se-driver-live-state {
    min-width: 0;
  }

  .se-portal--admin .se-driver-card > header,
  .se-portal--admin .se-driver-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .se-portal--admin .se-driver-card > footer > div {
    width: 100%;
  }
}

.se-portal--admin .se-project-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--erp-line);
  background: #f8fafc;
}

.se-portal--admin .se-project-search label,
.se-portal--admin .se-project-notes label {
  display: grid;
  gap: 6px;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-project-search a {
  min-height: 38px;
}

.se-portal--admin .se-projects-table {
  min-width: 1040px;
}

.se-portal--admin .se-project-number,
.se-portal--admin .se-project-metric-number {
  color: var(--erp-blue-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0;
  white-space: nowrap;
}

.se-portal--admin .se-project-metric-number {
  font-size: 19px;
}

.se-portal--admin .se-project-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--erp-blue-dark);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.se-portal--admin .se-project-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.se-portal--admin .se-project-data {
  display: grid;
  margin: 0;
}

.se-portal--admin .se-project-data > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-project-data > div:last-child {
  border-bottom: 0;
}

.se-portal--admin .se-project-data dt {
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.se-portal--admin .se-project-data dd {
  min-width: 0;
  margin: 0;
  color: var(--erp-text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.se-portal--admin .se-project-notes form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.se-portal--admin .se-project-notes .se-form-actions {
  padding: 0;
}

.se-portal--admin .se-project-files__upload {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--erp-line);
  background: #f8fafc;
}

.se-portal--admin .se-project-files__fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
  gap: 12px;
}

.se-portal--admin .se-project-files__fields label {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-project-files__fields input[type="file"] {
  min-width: 0;
  padding: 7px 9px;
  background: var(--erp-surface);
}

.se-portal--admin .se-project-files__fields input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 5px 10px;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  background: #eef3f8;
  color: var(--erp-text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.se-portal--admin .se-project-files__note {
  grid-column: 1 / -1;
}

.se-portal--admin .se-project-files__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.se-portal--admin .se-project-files__actions small {
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-project-file-list {
  display: grid;
}

.se-portal--admin .se-project-file {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-project-file:last-child {
  border-bottom: 0;
}

.se-portal--admin .se-project-file__preview {
  display: grid;
  place-items: center;
  width: 92px;
  height: 66px;
  overflow: hidden;
  border: 1px solid var(--erp-line-strong);
  border-radius: 4px;
  background: #eef3f8;
  color: var(--erp-blue-dark);
  text-decoration: none;
}

.se-portal--admin .se-project-file__preview strong {
  font-size: 16px;
  line-height: 1;
}

.se-portal--admin .se-project-file__preview small {
  max-width: 78px;
  color: var(--erp-muted);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}

.se-portal--admin .se-project-file__preview.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se-portal--admin .se-project-file__body {
  min-width: 0;
}

.se-portal--admin .se-project-file__body > span {
  display: block;
  margin-bottom: 3px;
  color: var(--erp-blue-dark);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.se-portal--admin .se-project-file__body > strong {
  display: block;
  overflow: hidden;
  color: var(--erp-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.se-portal--admin .se-project-file__body > small {
  display: block;
  margin-top: 3px;
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-project-file__body p,
.se-portal--admin .se-project-file-empty p {
  margin: 5px 0 0;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-project-file__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  background: var(--erp-surface);
  color: var(--erp-blue-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.se-portal--admin .se-project-file__open:hover,
.se-portal--admin .se-project-file__open:focus-visible {
  border-color: var(--erp-blue);
  background: var(--erp-focus);
}

.se-portal--admin .se-project-file-empty {
  padding: 22px 18px;
}

.se-portal--admin .se-project-event--document::before {
  background: #2f7fae;
}

.se-portal--admin .se-project-timeline {
  position: relative;
  display: grid;
  padding: 8px 18px 18px;
}

.se-portal--admin .se-project-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 30px;
  left: 142px;
  width: 1px;
  background: var(--erp-line-strong);
  content: "";
}

.se-portal--admin .se-project-event {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 30px;
  min-height: 62px;
  padding: 13px 0;
}

.se-portal--admin .se-project-event::before {
  position: absolute;
  top: 20px;
  left: 118px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--erp-blue);
  box-shadow: 0 0 0 1px var(--erp-line-strong);
  content: "";
}

.se-portal--admin .se-project-event--completed::before {
  background: var(--erp-success);
}

.se-portal--admin .se-project-event--maintenance::before,
.se-portal--admin .se-project-event--planned::before {
  background: #d99a13;
}

.se-portal--admin .se-project-event time {
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.se-portal--admin .se-project-event strong {
  display: block;
  color: var(--erp-text);
  font-size: 13px;
}

.se-portal--admin .se-project-event p {
  margin: 4px 0 0;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-order-type,
.se-portal--admin .se-operation-type {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border: 1px solid #b8cbe0;
  border-radius: 3px;
  background: #eef5fc;
  color: #245783;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.se-portal--admin .se-order-type--business {
  border-color: #9ccdbb;
  background: #e9f7f1;
  color: #176149;
}

.se-portal--admin .se-order-row--business > td:first-child {
  box-shadow: inset 3px 0 0 #168063;
}

.se-portal--admin .se-table-subline,
.se-portal--admin .se-table-name {
  display: block;
}

.se-portal--admin .se-table-subline {
  margin-top: 3px;
  color: var(--erp-muted);
  font-size: 11px;
  font-weight: 500;
}

.se-portal--admin .se-table-name {
  margin-top: 5px;
}

.se-portal--admin .se-operation-type--delivery {
  border-color: #aabfe8;
  background: #eaf0ff;
  color: #254d9b;
}

.se-portal--admin .se-operation-type--maintenance,
.se-portal--admin .se-operation-type--service,
.se-portal--admin .se-operation-type--repair,
.se-portal--admin .se-operation-type--inspection {
  border-color: #b8d8c3;
  background: #ebf7ef;
  color: #17613a;
}

.se-portal--admin .se-operation-type--pickup {
  border-color: #efd09d;
  background: #fff7e8;
  color: #8d5100;
}

.se-portal--admin .se-completion-proof {
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.se-portal--admin .se-completion-proof a,
.se-portal--admin .se-completion-proof span:not(.se-muted) {
  color: var(--erp-blue-dark);
  font-size: 11px;
  font-weight: 650;
}

.se-portal--admin .se-completed-count {
  white-space: nowrap;
}

.se-portal--admin .se-business-relations-table {
  min-width: 1040px;
}

.se-portal--admin .se-business-relations-table tr.is-selected td {
  background: #edf6ff;
}

.se-portal--admin .se-business-relations-table tr.is-selected td:first-child {
  box-shadow: inset 3px 0 0 var(--erp-blue);
}

.se-portal--admin .se-business-relation-form {
  display: grid;
  gap: 0;
}

.se-portal--admin .se-business-form-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-business-form-heading > span {
  display: block;
  margin-bottom: 5px;
  color: var(--erp-text);
  font-size: 15px;
  font-weight: 750;
}

.se-portal--admin .se-business-form-heading p {
  margin: 0;
  color: var(--erp-muted);
  font-size: 12px;
}

.se-portal--admin .se-business-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.se-portal--admin .se-business-form-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--erp-text);
  font-size: 12px;
  font-weight: 700;
}

.se-portal--admin .se-business-account-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.se-portal--admin .se-business-account-tabs a {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--erp-line-strong);
  border-radius: 3px;
  background: var(--erp-surface);
  font-size: 11px;
}

.se-portal--admin .se-business-account-tabs a.is-active {
  border-color: var(--erp-blue);
  background: var(--erp-focus);
  color: var(--erp-blue-dark);
}

.se-portal--admin .se-business-relation-form > .se-form-actions {
  padding: 18px 20px;
}

@media (max-width: 640px) {
  .se-portal--admin .se-completed-table {
    min-width: 940px;
  }

  .se-portal--admin .se-business-form-section,
  .se-portal--admin .se-business-form-grid {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-project-search,
  .se-portal--admin .se-project-info-grid {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-project-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .se-portal--admin .se-project-files__fields,
  .se-portal--admin .se-project-file {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-project-files__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .se-portal--admin .se-project-files__actions button,
  .se-portal--admin .se-project-file__open {
    width: 100%;
  }

  .se-portal--admin .se-project-file__preview {
    width: 120px;
    height: 82px;
  }

  .se-portal--admin .se-project-file__body > strong {
    white-space: normal;
  }

  .se-portal--admin .se-project-timeline::before {
    left: 24px;
  }

  .se-portal--admin .se-project-event {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 28px;
  }

  .se-portal--admin .se-project-event::before {
    left: 1px;
  }
}

.se-portal--admin .se-role-permissions {
  padding: 0 20px 20px;
}

.se-portal--admin .se-role-permissions__rows {
  border: 1px solid var(--erp-line);
  background: var(--erp-surface);
}

.se-portal--admin .se-role-permissions__rows fieldset {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 6px 28px;
  margin: 0;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--erp-line);
}

.se-portal--admin .se-role-permissions__rows fieldset:last-child {
  border-bottom: 0;
}

.se-portal--admin .se-role-permissions__rows legend {
  grid-column: 1;
  padding: 0;
  color: var(--erp-ink);
  font-size: 15px;
  font-weight: 750;
}

.se-portal--admin .se-role-permissions__rows fieldset > p {
  grid-column: 1;
  margin: 0;
  color: var(--erp-muted);
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-role-permissions__features {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px 14px;
  align-content: start;
}

.se-portal--admin .se-role-permissions__features label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--erp-ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.se-portal--admin .se-role-permissions__features input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--erp-blue);
}

.se-portal--admin .se-role-permissions__features input[type="checkbox"]:disabled + span {
  color: var(--erp-muted);
}

.se-portal--admin .se-project-notes__readonly {
  padding: 18px 20px 22px;
  color: var(--erp-ink-soft);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .se-portal--admin .se-role-permissions__features {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .se-portal--admin .se-role-permissions {
    padding: 0 12px 16px;
  }

  .se-portal--admin .se-role-permissions__rows fieldset {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 14px;
  }

  .se-portal--admin .se-role-permissions__rows legend,
  .se-portal--admin .se-role-permissions__rows fieldset > p,
  .se-portal--admin .se-role-permissions__features {
    grid-column: 1;
    grid-row: auto;
  }

  .se-portal--admin .se-role-permissions__features {
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .se-portal--admin .se-dashboard-kpis,
  .se-portal--admin .se-dashboard-operation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .se-portal--admin .se-dashboard-kpi {
    min-height: 94px;
  }

  .se-portal--admin .se-dashboard-operation {
    border-right: 0;
    border-bottom: 1px solid #e5e8ea;
  }

  .se-portal--admin .se-dashboard-operation:last-child {
    border-bottom: 0;
  }

  .se-portal--admin .se-dashboard-attention {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .se-portal--admin .se-dashboard-attention > .se-dashboard-icon--arrow {
    display: none;
  }
}

/* Full record management */
.se-portal--admin .se-management-editor,
.se-portal--admin .se-order-correction__form {
  border-bottom: 1px solid var(--erp-line);
  background: #fbfcfd;
}

.se-portal--admin .se-management-editor input,
.se-portal--admin .se-management-editor select,
.se-portal--admin .se-management-editor textarea,
.se-portal--admin .se-order-correction__form input,
.se-portal--admin .se-order-correction__form select,
.se-portal--admin .se-order-correction__form textarea {
  width: 100%;
  min-width: 0;
}

.se-portal--admin .se-record-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--erp-line);
  background: #f6f8fa;
}

.se-portal--admin .se-record-toolbar > div {
  display: grid;
  gap: 2px;
  min-width: 240px;
  margin-right: auto;
}

.se-portal--admin .se-record-toolbar strong,
.se-portal--admin .se-record-history__head strong {
  color: var(--erp-ink);
  font-size: 13px;
}

.se-portal--admin .se-record-toolbar span,
.se-portal--admin .se-record-history__head span,
.se-portal--admin .se-record-history__row small {
  color: var(--erp-muted);
  font-size: 11px;
}

.se-portal--admin .se-record-toolbar form,
.se-portal--admin .se-record-history form {
  margin: 0;
}

.se-portal--admin .se-record-history {
  border-bottom: 1px solid var(--erp-line);
  background: var(--erp-surface);
}

.se-portal--admin .se-record-history__head,
.se-portal--admin .se-record-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 9px 16px;
  border-bottom: 1px solid #edf0f2;
}

.se-portal--admin .se-record-history__head {
  min-height: 42px;
  background: #f8fafb;
}

.se-portal--admin .se-record-history__row:last-child {
  border-bottom: 0;
}

.se-portal--admin .se-record-history__row > span:first-child {
  display: grid;
  gap: 2px;
}

.se-portal--admin .se-management-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 240px) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--erp-line);
  background: #f8fafb;
}

.se-portal--admin .se-management-search label {
  display: grid;
  gap: 5px;
  color: #435b70;
  font-size: 11px;
  font-weight: 700;
}

.se-portal--admin .se-management-search a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.se-portal--admin .se-order-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 89px;
  white-space: nowrap;
}

.se-portal--admin .se-orders-table th:last-child,
.se-portal--admin .se-orders-table td:last-child {
  width: 112px;
  min-width: 112px;
}

.se-portal--admin .se-orders-table th:not(:last-child),
.se-portal--admin .se-orders-table td:not(:last-child) {
  padding-right: 5px;
  padding-left: 5px;
}

.se-portal--admin .se-order-actions form {
  margin: 0;
}

.se-portal--admin .se-order-open,
.se-portal--admin button.se-order-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 32px;
  border-radius: 4px !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.se-portal--admin .se-order-open {
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--erp-line-strong);
  background: #fff;
  color: var(--erp-blue-dark);
}

.se-portal--admin .se-order-open:hover,
.se-portal--admin .se-order-open:focus-visible {
  border-color: var(--erp-blue);
  background: var(--erp-focus);
  color: var(--erp-blue-dark);
  outline: none;
  box-shadow: 0 0 0 2px rgba(10, 110, 209, 0.14) !important;
}

.se-portal--admin button.se-order-delete {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 1px solid #e8a6a2 !important;
  background: #fff !important;
  color: var(--erp-danger) !important;
}

.se-portal--admin button.se-order-delete:hover,
.se-portal--admin button.se-order-delete:focus-visible {
  border-color: var(--erp-danger) !important;
  background: #fff1f1 !important;
  color: #8f0000 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.13) !important;
}

.se-portal--admin button.se-order-delete svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.se-portal--admin button.se-table-icon-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 1px solid #e8a6a2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: var(--erp-danger) !important;
  box-shadow: none !important;
}

.se-portal--admin button.se-table-icon-action:hover,
.se-portal--admin button.se-table-icon-action:focus-visible {
  border-color: var(--erp-danger) !important;
  background: #fff1f1 !important;
  color: #8f0000 !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.13) !important;
}

.se-portal--admin button.se-table-icon-action svg {
  width: 15px;
  height: 15px;
}

.se-portal--admin .se-delete-archive td form {
  margin: 0;
}

.se-portal--admin .se-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.se-portal--admin .se-project-editor {
  scroll-margin-top: 70px;
}

.se-portal--admin .se-order-correction {
  border-top: 3px solid var(--erp-blue);
}

.se-portal--admin .se-inline-notice {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid #efd09d;
  background: #fff8ea;
  color: #744800;
  font-size: 12px;
  line-height: 1.45;
}

.se-portal--admin .se-inline-notice strong {
  color: #5f3a00;
}

.se-portal--admin .se-button-secondary,
.se-portal--admin .se-button-tertiary {
  border: 1px solid var(--erp-line-strong) !important;
  background: var(--erp-surface) !important;
  color: var(--erp-blue-dark) !important;
  box-shadow: none !important;
}

.se-portal--admin .se-button-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .se-portal--admin .se-management-search {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  }

  .se-portal--admin .se-management-search a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .se-portal--admin .se-record-toolbar,
  .se-portal--admin .se-record-history__head,
  .se-portal--admin .se-record-history__row {
    align-items: stretch;
    flex-direction: column;
  }

  .se-portal--admin .se-record-toolbar > div {
    min-width: 0;
  }

  .se-portal--admin .se-record-toolbar form,
  .se-portal--admin .se-record-toolbar button,
  .se-portal--admin .se-record-history form,
  .se-portal--admin .se-record-history button {
    width: 100%;
  }

  .se-portal--admin .se-management-search,
  .se-portal--admin .se-inline-notice {
    grid-template-columns: 1fr;
  }

  .se-portal--admin .se-management-search button,
  .se-portal--admin .se-management-search a {
    width: 100%;
    justify-content: center;
  }
}
