.rex-user-menu {
  display: flex;
  flex-direction: column;
}

.rex-search-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 100%;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

.rex-search-menu[hidden] {
  display: none !important;
}

.rex-search-group,
.rex-search-empty {
  margin: 0;
  padding: 8px 10px 4px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-search-empty {
  padding: 14px 10px;
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  text-transform: none;
}

.rex-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
  padding: 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none !important;
}

.rex-search-item.is-on {
  background: #E7EBF6;
}

.rex-search-mark {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: #0C287B;
  box-shadow: inset 0 0 0 1px #e4e7ec;
}

.rex-search-item.is-on .rex-search-mark {
  background: #fff;
}

.rex-search-mark svg {
  width: 16px;
  height: 16px;
}

.rex-search-item strong,
.rex-search-item span span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rex-search-item strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-search-item span span {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.rex-header-divider {
  width: 1px;
  height: 32px;
  background: #e4e7ec;
  flex: 0 0 1px;
}

.sidebar .menu-item {
  padding: 10px 12px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  transition: background-color 0.22s ease, color 0.22s ease !important;
}

.sidebar .menu-item svg {
  transition: color 0.22s ease !important;
}

.sidebar .menu-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar .menu-group-dash {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: 0 0 16px;
}

.sidebar > .no-scrollbar {
  flex: 1 1 auto;
  min-height: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 0 12px;
  border-top: 1px solid #e4e7ec;
}

.sidebar .sidebar-signout,
.sidebar .sidebar-signout .menu-item-text,
.sidebar .sidebar-signout svg,
.sidebar .menu-item.sidebar-signout:hover,
.sidebar .menu-item.sidebar-signout:focus,
.sidebar .menu-item.sidebar-signout:focus-visible,
.sidebar .menu-item.sidebar-signout:hover svg,
.sidebar .menu-item.sidebar-signout:focus svg {
  color: #d92d20 !important;
}

.sidebar .sidebar-signout,
.sidebar .sidebar-signout .menu-item-text {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  color: #d92d20 !important;
}

.sidebar .menu-item svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.sidebar .menu-item:hover,
.sidebar .menu-item:focus-visible {
  background: #E7EBF6 !important;
  color: #0C287B !important;
  text-decoration: none !important;
}

.sidebar .menu-item.menu-item-active:hover,
.sidebar .menu-item.menu-item-active:focus,
.sidebar .menu-item.menu-item-active:focus-visible {
  background: #E7EBF6 !important;
  color: #0C287B !important;
}

.sidebar .menu-item:hover svg,
.sidebar .menu-item:focus-visible svg {
  color: #0C287B !important;
}

.sidebar .menu-item.sidebar-signout:hover,
.sidebar .menu-item.sidebar-signout:focus-visible {
  background: #fef3f2 !important;
  color: #d92d20 !important;
}

.sidebar .menu-item.menu-item-active:hover svg,
.sidebar .menu-item.menu-item-active:focus svg {
  color: #0C287B !important;
}

.sidebar .sidebar-header {
  display: flex !important;
  align-items: center !important;
  height: 64px !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (min-width: 1024px) {
  .sidebar .sidebar-header {
    height: 72px !important;
  }
}

@media (min-width: 1280px) {
  .sidebar .sidebar-header {
    height: 76px !important;
  }
}

.sidebar .sidebar-header a,
.sidebar .logo {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.sidebar .logo img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 56px;
  margin: 0;
  -webkit-user-drag: none;
  user-select: none;
}

.sidebar .logo-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.rex-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rex-page-head h1 {
  margin: 0;
  color: #1d2939;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.02em;
}

.rex-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rex-page-head p {
  max-width: 40rem;
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 640px) {
  .rex-page-head {
    align-items: stretch;
    flex-direction: column;
  }
}
.rex-catalog-head,
.rex-dossier-head,
.rex-editor-bar,
.rex-po-summary-head {
  background: #fff;
  color: #1d2939;
  box-shadow: none;
}

.rex-catalog-head {
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

.rex-catalog-head::before,
.rex-dossier-main::before {
  display: none;
}

.rex-catalog-head h1,
.rex-catalog-head h1 .mdi,
.rex-dossier-head h1,
.rex-editor-bar h1,
.rex-editor-back,
.rex-editor-back:hover,
.rex-po-summary-head,
.rex-po-summary-head span {
  color: #1d2939;
}

.rex-catalog-head p,
.rex-dossier-head p,
.rex-editor-bar p,
.rex-po-summary-head span {
  color: #667085;
}

.rex-dossier-head,
.rex-editor-bar,
.rex-po-summary {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
}

.rex-dossier-mark {
  background: #E7EBF6;
}

.rex-editor-bar {
  align-items: center;
}

.rex-editor-bar .btn.btn-primary,
.rex-editor-bar .btn.btn-primary:hover,
.btn-primary,
.auth-form-btn {
  border: 0;
  border-radius: 8px;
  background: #0C287B;
  color: #fff;
}

.rex-editor-bar .btn.btn-outline-primary,
.rex-editor-bar .btn.btn-outline-primary:hover {
  border-color: #d0d5dd;
  background: #fff;
  color: #344054;
}

.form-control,
.form-select {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.form-control:focus,
.form-select:focus {
  border-color: #7a94cc;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.card,
.rex-catalog-sheet,
.rex-product-card,
.rex-po-summary {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-product-card:hover .rex-catalog-name,
.rex-product-card:focus .rex-catalog-name,
.rex-product-card:focus-visible .rex-catalog-name {
  text-decoration: none;
}

.rex-po-summary-head {
  border-bottom: 1px solid #e4e7ec;
}

.rex-export {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-export-intro {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.rex-export-intro p {
  max-width: 42rem;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.rex-btn-primary {
  border: 0;
  background: #0C287B;
  color: #fff !important;
}

.rex-btn-ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054 !important;
}

.rex-metrics,
.rex-charts {
  display: grid;
  gap: 16px;
}

.rex-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rex-warehouses .rex-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rex-charts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rex-metric,
.rex-panel {
  min-width: 0;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  overflow: hidden;
  border-top: 1px solid #e4e7ec;
}

.rex-metric-mark {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-metric-mark svg {
  width: 20px;
  height: 20px;
}

.rex-metric-copy {
  min-width: 0;
}

.rex-metric span {
  display: block;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-metric strong {
  display: block;
  margin-top: 2px;
  color: #101828;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.03em;
}

.rex-metric em {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.rex-panel {
  padding: 20px 24px 24px;
}

.rex-panel h2 {
  margin: 0 0 16px;
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.rex-chart-box {
  position: relative;
  height: 260px;
}

.rex-chart-box canvas {
  width: 100% !important;
  height: 260px !important;
}

.rex-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, 1fr)) auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.rex-filter input,
.rex-filter select {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-table-wrap {
  overflow-x: auto;
}

.rex-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-table th {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
}

.rex-table td {
  padding: 14px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.rex-table a {
  color: #0C287B;
  font-weight: 500;
  text-decoration: none;
}

.rex-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rex-cell svg {
  flex: 0 0 16px;
  color: #0C287B;
}

.rex-badge svg {
  flex: 0 0 14px;
  margin-right: 6px;
}

.rex-meta {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
}

.rex-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.rex-badge.badge-primary {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-badge.badge-success {
  background: #ecfdf3;
  color: #027a48;
}

.rex-badge.badge-warning,
.rex-badge.badge-secondary {
  background: #f2f4f7;
  color: #344054;
}

@media (max-width: 1100px) {
  .rex-metrics,
  .rex-charts,
  .rex-filter {
    grid-template-columns: 1fr;
  }

  .rex-warehouses .rex-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rex-export-intro {
    flex-direction: column;
    align-items: stretch;
  }
}

.rex-add-product {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-add-product form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-add-product .rex-editor-block,
.rex-add-product .toggle-card,
.rex-add-product .rex-add-actions {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-add-product .rex-editor-block {
  overflow: hidden;
}

.rex-add-product .rex-editor-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-add-product .rex-editor-label .mdi {
  color: #0C287B;
  font-size: 18px;
  line-height: 1;
}

.rex-add-product .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px 24px;
  margin: 0;
  padding: 24px;
}

.rex-add-product .form-grid .full {
  grid-column: 1 / -1;
}

.rex-add-product .field {
  min-width: 0;
  margin: 0;
}

.rex-add-product .field[hidden],
.rex-add-product .rex-editor-block[hidden],
.rex-add-product #packsContainer[hidden] {
  display: none !important;
}

.rex-add-product .field label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-add-product .field .req {
  color: #d92d20;
}

.rex-add-product .field input,
.rex-add-product .field select,
.rex-add-product .field textarea {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-add-product .field textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
}

.rex-add-product .field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath d='M4.8 7.4 10 12.6l5.2-5.2' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rex-add-product .field input::placeholder,
.rex-add-product .field textarea::placeholder {
  color: #98a2b3;
}

.rex-add-product .field input:focus,
.rex-add-product .field select:focus,
.rex-add-product .field textarea:focus {
  border-color: #0C287B;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-add-product .field input:disabled,
.rex-add-product .field select:disabled {
  background: #f9fafb;
  color: #98a2b3;
}

.rex-add-product .price-input {
  display: flex;
  align-items: stretch;
  height: 44px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-add-product .price-input span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid #e4e7ec;
  background: #f9fafb;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.rex-add-product .price-input input {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rex-add-product .price-input:focus-within {
  border-color: #0C287B;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-add-product > form > .toggle-card,
.rex-add-product .rex-editor-block > .toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px 24px;
}

.rex-add-product .rex-editor-block > .toggle-card {
  margin: 24px;
  border-radius: 12px;
}

.rex-add-product .rex-editor-block > .toggle-card:has(+ #packsContainer:not([hidden])) {
  margin-bottom: 16px;
}

.rex-add-product .toggle-card strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-add-product .toggle-card p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.rex-add-product .switch {
  width: 44px;
  height: 24px;
}

.rex-add-product .switch span {
  border: 0;
  background: #e4e7ec;
}

.rex-add-product .switch span:before {
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.16);
}

.rex-add-product .switch input:checked + span {
  background: #0C287B;
}

.rex-add-product .switch input:checked + span:before {
  background: #fff;
  transform: translateX(20px);
}

.rex-add-product #packsContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 24px 24px;
}

.rex-add-product .pack-row {
  margin: 0;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}

.rex-add-product .pack-row .form-grid {
  padding: 0;
}

.rex-add-product .pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rex-add-product .pack-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.rex-add-product .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.rex-add-product .btn:hover {
  background: #f9fafb;
  color: #1d2939;
}

.rex-add-product .rex-add-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
}

@media (max-width: 900px) {
  .rex-add-product .form-grid {
    grid-template-columns: 1fr;
  }
}

.rex-dossier .nav.nav-tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  border-bottom: 1px solid #e4e7ec;
}

.rex-dossier .nav.nav-tabs > .nav-item {
  display: flex;
  width: auto;
  margin: 0;
  line-height: 1;
}

.rex-dossier .nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 4px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.rex-dossier .nav-tabs .nav-link .mdi {
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.rex-dossier .nav-tabs .nav-link:hover,
.rex-dossier .nav-tabs .nav-link:focus {
  color: #0C287B;
  background: transparent;
  border-color: transparent;
}

.rex-dossier .nav-tabs .nav-link.active {
  color: #0C287B;
  background: transparent;
  border-bottom-color: #0C287B;
}

.rex-dossier .tab-content {
  padding: 8px 24px 24px;
}

.rex-dossier .tab-content > .tab-pane {
  display: none;
}

.rex-dossier .tab-content > .tab-pane.active {
  display: block;
  opacity: 1;
}

.rex-dossier .btn,
.rex-dossier .btn.btn-sm,
.rex-dossier .btn.btn-lg,
.rex-cycles .btn,
.rex-cycle-drawer .rex-step-btn,
.rex-dossier .rex-product-comment button {
  border-radius: 8px;
}

.rex-cycle-scrim,
.overlay.open {
  z-index: 1000000 !important;
  background: rgba(0, 0, 0, 0.5);
}

.rex-cycle-drawer,
.rex-drawer {
  z-index: 1000001 !important;
}

.rex-drawer.open {
  transform: none;
}

.rex-drawer {
  border-radius: 0;
  background: #fff;
  box-shadow: -12px 0 32px rgba(16, 24, 40, 0.16);
}

.rex-drawer-head {
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ec;
  background: #fff;
}

.rex-drawer h2 {
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.rex-drawer-head p {
  margin-top: 2px;
  color: #667085;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.rex-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
}

.rex-drawer-close:hover {
  background: #f2f4f7;
  color: #1d2939;
}

.rex-create-scroll {
  gap: 16px;
  padding: 20px;
  background: #fff;
}

.rex-create-section {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
}

.rex-create-title {
  margin-bottom: 14px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-create-note {
  border-radius: 12px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-drawer .field label {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-drawer .field input,
.rex-drawer .field select,
.rex-drawer .field textarea {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-drawer .field textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 14px;
}

.rex-drawer .field input:focus,
.rex-drawer .field select:focus,
.rex-drawer .field textarea:focus,
.rex-create-search:focus-within {
  border-color: #0C287B;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-drawer .field select:disabled {
  border-color: #e4e7ec;
  background: #f9fafb;
  color: #98a2b3;
}

.rex-create-search {
  min-height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-create-search .mdi {
  color: #98a2b3;
}

.rex-drawer .rex-create-search input {
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.rex-drawer .suggest {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
}

.rex-drawer .suggest button:hover {
  background: #f9fafb;
}

.rex-drawer .suggest button span:first-child {
  color: #1d2939;
  font-weight: 500;
}

.rex-drawer .suggest button span:last-child {
  color: #667085;
}

.rex-create-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e4e7ec;
}

.rex-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.rex-create-error {
  border-radius: 12px;
  background: #fef3f2;
  color: #b42318;
}

.rex-check-copy strong,
.rex-check-copy label,
.rex-check-copy a {
  font-weight: 400;
}

.rex-cycle-drawer {
  background: #fff;
  box-shadow: -12px 0 32px rgba(16, 24, 40, 0.16);
}

.rex-cycle-drawer-head {
  min-height: 68px;
  padding: 16px 20px;
  border-bottom: 1px solid #e4e7ec;
}

.rex-cycle-drawer h2 {
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.rex-cycle-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #667085;
  font-size: 22px;
}

.rex-cycle-close:hover {
  background: #f2f4f7;
  color: #1d2939;
}

.rex-cycle-drawer .rex-cycle-section {
  margin: 16px 0 12px;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-step-sheet {
  margin-top: 16px;
  padding: 4px 16px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-step-sheet .rex-cycle-section {
  margin: 12px 0 4px;
}

.rex-step-sheet .rex-cycle-info {
  border-top: 1px solid #f2f4f7;
}

.rex-cycle-info span {
  color: #667085;
  font-size: 13px;
  font-weight: 400;
}

.rex-cycle-info p {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-cycle-choice,
.rex-check-item,
.rex-doc-link,
.rex-extend-card,
.rex-cycle-note:not([hidden]) {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-cycle-choice {
  margin-top: 12px;
  padding: 14px 16px;
}

.rex-cycle-choice strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-check-item,
.rex-doc-link {
  padding: 12px 14px;
}

.rex-doc-link {
  font-weight: 500;
}

.rex-extend-card {
  margin-top: 16px;
  padding: 16px;
}

.rex-extend-card .rex-cycle-section {
  margin: 0 0 12px;
  color: #1d2939;
}

.rex-cycle-drawer .field label {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.rex-cycle-drawer .field input,
.rex-cycle-drawer .field select,
.rex-cycle-drawer .field textarea,
.rex-cycle-extend input,
.rex-cycle-extend select {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-cycle-drawer .field input:focus,
.rex-cycle-drawer .field select:focus,
.rex-cycle-drawer .field textarea:focus,
.rex-cycle-extend input:focus,
.rex-cycle-extend select:focus {
  border-color: #0C287B;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-step-divider {
  border-top-color: #e4e7ec;
}

.rex-step-btn {
  height: 44px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.rex-step-btn-primary {
  background: #0C287B;
}

.rex-step-btn-primary:hover,
.rex-step-btn-primary:focus {
  background: #0A2269;
  color: #fff;
}

.rex-step-btn-primary:disabled,
.rex-step-btn-primary.is-locked,
.rex-step-btn-primary:disabled:hover,
.rex-step-btn-primary.is-locked:hover,
.rex-step-btn-primary:disabled:focus,
.rex-step-btn-primary.is-locked:focus {
  background: #E4E7EC;
  color: #667085;
  opacity: 0.85;
  cursor: not-allowed;
  box-shadow: none;
}

.rex-step-btn-primary.is-busy:disabled,
.rex-step-btn-primary.is-busy:disabled:hover {
  background: #0C287B;
  color: #fff;
  opacity: 1;
  cursor: progress;
}

.rex-step-btn-ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.rex-step-btn-ghost:hover,
.rex-step-btn-ghost:focus {
  border-color: #d0d5dd;
  background: #f9fafb;
  color: #1d2939;
}

.rex-step-btn-undo {
  border-radius: 8px;
  font-weight: 500;
}

.rex-pack-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 8px;
  padding: 40px 20px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #f9fafb;
  text-align: center;
}

.rex-pack-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-pack-empty p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-dossier .rex-product-table-wrap {
  margin: 4px 0 8px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-dossier .rex-product-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.rex-dossier .rex-product-table th,
.rex-dossier .rex-product-table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
  box-shadow: none;
  text-align: left;
  vertical-align: middle;
}

.rex-dossier .rex-product-table thead th {
  border-bottom: 1px solid #e4e7ec;
  background: #f9fafb;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rex-dossier .rex-product-table td {
  color: #344054;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.rex-dossier .rex-product-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-dossier .rex-product-table.table-hover > tbody > tr:hover > * {
  background: #f9fafb;
  box-shadow: none;
  --bs-table-accent-bg: transparent;
}

.rex-pack-note {
  margin: 2px 0 0 24px;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.rex-table .rex-pack-note {
  margin: 2px 0 0;
}

.rex-packs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px 8px;
}

.rex-packs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rex-packs-bar h2 {
  margin: 0;
  color: #0C287B;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-packs-bar p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
}

.rex-pack-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rex-pack-title strong {
  color: #1d2939;
  font-weight: 600;
}

.rex-expire-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.rex-expire-chip.is-valid { background: #ecfdf3; color: #027a48; }
.rex-expire-chip.is-expiring { background: #fffaeb; color: #b54708; }
.rex-expire-chip.is-expired { background: #fef3f2; color: #b42318; }
.rex-expire-chip.is-renewed { background: #e7ebf6; color: #0C287B; }
.rex-expire-chip.is-untracked { background: #f2f4f7; color: #667085; }

.rex-pack-default {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e7ebf6;
  color: #0C287B;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.rex-packs .rex-pack-note {
  margin: 4px 0 0;
}

.rex-pack-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.rex-pack-dialog {
  overflow: visible;
  max-height: none;
}

.rex-pack-dialog .rex-task-scroll {
  overflow: visible;
  max-height: none;
}

.rex-pack-dialog .rex-form-alert {
  margin-top: 20px;
}

.rex-pack-dialog .rex-currency-list {
  z-index: 4;
}

.rex-pack-dialog .rex-task-field .rex-field-error {
  margin-top: 6px;
}

@media (max-width: 700px) {
  .rex-packs-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

.rex-orders {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-orders-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-orders-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-orders-filter-label svg {
  color: #0C287B;
}

.rex-orders-filter-track {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 10px;
  background: #f2f4f7;
}

.rex-orders-filter-track a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rex-orders-filter-track a:hover {
  color: #344054;
}

.rex-orders-filter-track a.is-on {
  background: #fff;
  color: #0C287B;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.rex-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  border: 1px dashed #d0d5dd;
  border-radius: 16px;
  background: #f9fafb;
  text-align: center;
}

.rex-orders-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-orders-empty-title {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-orders-empty p {
  max-width: 28rem;
  margin: 0 0 8px;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-order-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rex-order-card:hover {
  border-color: #0C287B;
  box-shadow: 0 16px 36px rgba(12, 40, 123, 0.14);
}

.rex-order-card:focus-visible {
  outline: 2px solid #0C287B;
  outline-offset: 3px;
}

.rex-order-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.rex-order-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rex-order-mark {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-order-mark svg {
  width: 18px;
  height: 18px;
}

.rex-order-id {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.rex-order-kicker {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.rex-order-number {
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.02em;
}

.rex-order-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.rex-order-status.is-submitted {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-order-status.is-confirmed {
  background: #0C287B;
  color: #fff;
}

.rex-order-status.is-cancelled {
  background: #fef3f2;
  color: #d92d20;
}

.rex-order-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rex-order-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f9fafb;
  color: #344054;
  font-size: 12px;
  line-height: 18px;
}

.rex-order-facts svg {
  flex: 0 0 16px;
  color: #0C287B;
}

.rex-order-aside {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 112px;
  padding-left: 20px;
  border-left: 1px solid #e4e7ec;
}

.rex-order-total-label {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-order-total {
  margin-top: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 24px;
  text-align: right;
}

.rex-order-currency {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

@media (max-width: 720px) {
  .rex-order-card {
    flex-direction: column;
  }

  .rex-order-aside {
    align-items: flex-start;
    width: 100%;
    padding: 14px 0 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }

  .rex-order-total {
    text-align: left;
  }
}

.rex-po-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-po-view-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rex-btn-danger {
  border: 1px solid #fecdca;
  background: #fff;
  color: #d92d20 !important;
}

.rex-btn-danger:hover {
  background: #fef3f2;
}

.rex-po-view-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-po-view-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-po-view-card h2 svg {
  flex: 0 0 18px;
  color: #0C287B;
}

.rex-po-view-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 20px;
}

.rex-po-view-facts div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-po-view-facts dt {
  display: contents;
}

.rex-po-view-mark {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-po-view-facts dt > span:last-child {
  grid-column: 2;
  grid-row: 1;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-po-view-facts dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-po-view-notes {
  margin: 0 24px 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9fafb;
  color: #344054;
  font-size: 14px;
  line-height: 22px;
  white-space: pre-wrap;
}

.rex-po-view-card > .rex-po-view-notes:last-child {
  margin-bottom: 24px;
}

.rex-po-view-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #f2f4f7;
}

.rex-po-view-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.rex-po-view-table-wrap {
  overflow-x: auto;
}

.rex-po-view-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-po-view-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
}

.rex-po-view-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.rex-po-view-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-po-view-table tbody tr:hover td {
  background: #f9fafb;
}

.rex-po-view-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rex-po-view-name strong {
  color: #1d2939;
  font-weight: 500;
}

.rex-po-view-name span {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.rex-po-view-events {
  margin: 0;
  padding: 4px 24px 8px;
  list-style: none;
}

.rex-po-view-events li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #f2f4f7;
}

.rex-po-view-events li:last-child {
  border-bottom: 0;
}

.rex-po-view-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-po-view-event strong {
  display: block;
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-po-view-event > span {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.rex-po-view-event p {
  margin: 4px 0 0;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 900px) {
  .rex-po-view-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rex-po-view-facts {
    grid-template-columns: 1fr;
  }
}

.rex-new-order {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-new-order-error {
  padding: 12px 16px;
  border: 1px solid #fecdca;
  border-radius: 12px;
  background: #fef3f2;
  color: #b42318;
  font-size: 14px;
  line-height: 20px;
}

.rex-new-order .rex-po-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.rex-new-order .rex-po-create-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-new-order .rex-editor-block {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-new-order .rex-po-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-new-order .rex-editor-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-new-order .rex-editor-label svg {
  flex: 0 0 18px;
  color: #0C287B;
}

.rex-new-order .rex-po-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rex-new-order .rex-po-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.rex-new-order .rex-po-chip > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 11px;
  font-weight: 600;
}

.rex-new-order .rex-po-chip.is-done,
.rex-new-order #poStepProducts.is-done .rex-po-chip {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-new-order .rex-po-chip.is-done > span,
.rex-new-order #poStepProducts.is-done .rex-po-chip > span {
  background: #0C287B;
  color: #fff;
}

.rex-new-order .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 20px;
}

.rex-new-order .field {
  min-width: 0;
  margin: 0;
}

.rex-new-order .field label,
.rex-new-order .rex-po-product-fields label,
.rex-new-order .rex-po-temp-row label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-new-order .field .req {
  color: #d92d20;
}

.rex-new-order .field input,
.rex-new-order .field select,
.rex-new-order .field textarea,
.rex-new-order .rex-po-product-fields input,
.rex-new-order .rex-po-temp-row input[type="number"] {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-new-order .field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.rex-new-order .field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath d='M4.8 7.4 10 12.6l5.2-5.2' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rex-new-order .field select:disabled {
  background-color: #f9fafb;
  color: #98a2b3;
  cursor: not-allowed;
}

.rex-new-order .field input:focus,
.rex-new-order .field select:focus,
.rex-new-order .field textarea:focus,
.rex-new-order .rex-po-product-fields input:focus,
.rex-new-order .rex-po-temp-row input:focus {
  border-color: #7a94cc;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-new-order .field input::placeholder,
.rex-new-order .field textarea::placeholder {
  color: #98a2b3;
}

.rex-new-order .rex-po-products-hint,
.rex-new-order .rex-po-catalog-lock,
.rex-new-order .rex-po-catalog,
.rex-new-order .rex-po-lines-empty,
.rex-new-order .rex-po-temp {
  margin-right: 20px;
  margin-left: 20px;
}

.rex-new-order .rex-po-products-hint {
  margin-top: 16px;
  margin-bottom: 12px;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-new-order .rex-po-catalog-lock:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  background: #f9fafb;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
}

.rex-new-order .rex-po-catalog-lock svg {
  flex: 0 0 16px;
  color: #0C287B;
}

.rex-new-order .rex-po-catalog:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.rex-new-order .rex-po-lines-empty:not([hidden]) {
  margin-bottom: 20px;
  padding: 20px 16px;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  background: #f9fafb;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.rex-new-order .rex-po-catalog.is-locked,
.rex-new-order .rex-po-temp.is-locked {
  opacity: 0.45;
  pointer-events: none;
}

.rex-new-order .rex-po-product {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-new-order .rex-po-product.is-selected {
  border-color: #0C287B;
  background: #f8f9fd;
}

.rex-new-order .rex-po-product-pick {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.rex-new-order .rex-po-product-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E7EBF6;
  color: #0C287B;
  font-size: 14px;
  font-weight: 600;
}

.rex-new-order .rex-po-product.is-selected .rex-po-product-mark {
  background: #0C287B;
  color: #fff;
}

.rex-new-order .rex-po-product-copy strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-new-order .rex-po-product-copy span,
.rex-new-order .rex-po-product-copy em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  line-height: 16px;
}

.rex-new-order .rex-po-product-pick .mdi-check {
  color: transparent;
  font-size: 18px;
}

.rex-new-order .rex-po-product.is-selected .rex-po-product-pick .mdi-check {
  color: #0C287B;
}

.rex-new-order .rex-po-product-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px 12px;
}

.rex-new-order .rex-po-product.is-selected .rex-po-product-fields {
  display: grid;
}

.rex-new-order .rex-po-temp:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rex-new-order .rex-po-temp-kicker {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-new-order .rex-po-temp-add {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px 140px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}

.rex-new-order .rex-po-temp-add .rex-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.rex-new-order .rex-po-temp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rex-new-order .rex-po-temp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 140px 36px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}

.rex-new-order .rex-po-temp-row > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rex-new-order .rex-po-temp-row strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-new-order .rex-po-temp-row span {
  color: #667085;
  font-size: 12px;
}

.rex-new-order .rex-po-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #fecdca;
  border-radius: 8px;
  background: #fff;
  color: #d92d20;
  cursor: pointer;
}

.rex-new-order .rex-po-remove:hover {
  background: #fef3f2;
}

.rex-new-order .rex-po-summary {
  position: sticky;
  top: 16px;
  padding: 0 0 20px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-new-order .rex-po-summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
  color: #1d2939;
}

.rex-new-order-mark {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-new-order .rex-po-summary-head strong {
  display: block;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.rex-new-order .rex-po-summary-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.rex-new-order .rex-po-summary-facts {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 4px 20px 0;
}

.rex-new-order .rex-po-summary-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.rex-new-order .rex-po-summary-facts dt {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

.rex-new-order .rex-po-summary-facts dd {
  margin: 0;
  color: #101828;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.rex-new-order .rex-po-summary .field {
  margin: 16px 20px 0;
}

.rex-new-order .rex-po-summary .rex-po-grand:not([hidden]) {
  display: block;
  margin: 16px 20px 0;
  padding-top: 14px;
  border-top: 1px solid #e4e7ec;
  border-radius: 0;
  background: transparent;
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 24px;
  text-align: right;
}

.rex-new-order .rex-po-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 20px 0;
}

.rex-new-order .rex-po-summary-actions .rex-btn {
  width: 100%;
}

.rex-new-order .rex-btn-primary:hover {
  background: #0A2269;
}

.rex-new-order .rex-btn-ghost:hover {
  background: #f9fafb;
}

.rex-new-order [hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .rex-new-order .rex-po-create-layout,
  .rex-new-order .form-grid,
  .rex-new-order .rex-po-temp-add,
  .rex-new-order .rex-po-temp-row {
    grid-template-columns: 1fr;
  }

  .rex-new-order .rex-po-summary {
    position: static;
  }
}

.rex-registration {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-registration-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.rex-registration-cards .is-wide {
  grid-column: 1 / -1;
}

.rex-registration-card .rex-dossier-fields {
  grid-template-columns: 1fr;
  margin: 0;
  padding: 4px 16px 12px;
}

.rex-registration-card.is-wide .rex-dossier-fields {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1100px) {
  .rex-registration-cards {
    grid-template-columns: 1fr;
  }

  .rex-registration-card.is-wide .rex-dossier-fields {
    grid-template-columns: 1fr;
  }
}

.rex-dossier-head .rex-registration-kicker {
  margin: 0 0 4px;
  color: #0C287B;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-dossier-head h1 a.rex-registration-product {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.rex-dossier-head h1 a.rex-registration-product:hover,
.rex-dossier-head h1 a.rex-registration-product:focus-visible {
  color: #0C287B;
  text-decoration: underline;
}

.rex-dossier-head a.rex-registration-product {
  color: #344054;
  font-weight: 600;
  text-decoration: none;
}

.rex-dossier-head a.rex-registration-product:hover,
.rex-dossier-head a.rex-registration-product:focus-visible {
  color: #0C287B;
  text-decoration: underline;
}

.rex-registration-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rex-registration-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.rex-registration-facts div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #f9fafb;
}

.rex-registration-facts dt {
  display: contents;
}

.rex-registration-mark {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-registration-facts dt > span:last-child {
  grid-column: 2;
  grid-row: 1;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-registration-facts dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-registration .rex-cycles {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-registration .rex-cycle-track {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rex-cycle-steps {
  --rex-step-w: 176px;
  --rex-step-gap: 36px;
}

button.rex-cycle-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--rex-step-w);
  margin: 0 var(--rex-step-gap) 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

button.rex-cycle-step:last-child {
  margin-right: 0;
}

button.rex-cycle-step:nth-child(1) { z-index: 12; }
button.rex-cycle-step:nth-child(2) { z-index: 11; }
button.rex-cycle-step:nth-child(3) { z-index: 10; }
button.rex-cycle-step:nth-child(4) { z-index: 9; }
button.rex-cycle-step:nth-child(5) { z-index: 8; }
button.rex-cycle-step:nth-child(6) { z-index: 7; }
button.rex-cycle-step:nth-child(7) { z-index: 6; }
button.rex-cycle-step:nth-child(8) { z-index: 5; }
button.rex-cycle-step:nth-child(9) { z-index: 4; }
button.rex-cycle-step:nth-child(10) { z-index: 3; }
button.rex-cycle-step:nth-child(11) { z-index: 2; }
button.rex-cycle-step:nth-child(12) { z-index: 1; }

button.rex-cycle-step .rex-cycle-node {
  position: relative;
  z-index: 1;
  margin: 14px auto 0;
}

button.rex-cycle-step.is-wait .rex-cycle-node {
  border-color: #E4E7EC;
}

button.rex-cycle-step:not(:last-child) .rex-cycle-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  width: calc(var(--rex-step-w) - 24px + var(--rex-step-gap) - 4px);
  height: 2px;
  border-radius: 999px;
  background: #E7EAF0;
  transform: translateY(-50%);
}

button.rex-cycle-step.is-done:not(:last-child) .rex-cycle-node::after {
  background: #0C287B;
}

.rex-cycle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 16px 14px 14px;
  border: 1px solid #F2F4F7;
  border-radius: 14px;
  background: #fff;
}

button.rex-cycle-step:hover .rex-cycle-card,
button.rex-cycle-step:focus-visible .rex-cycle-card {
  border-color: #E4E7EC;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.05);
}

button.rex-cycle-step:focus-visible {
  outline: none;
}

button.rex-cycle-step.is-active .rex-cycle-card {
  border-color: #E4E7EC;
  background: #fff;
}

button.rex-cycle-step .rex-cycle-name,
button.rex-cycle-step .rex-cycle-date,
button.rex-cycle-step .rex-cycle-count {
  display: block;
  max-width: 100%;
}

button.rex-cycle-step .rex-cycle-name {
  width: 100%;
  margin: 0;
}

button.rex-cycle-step .rex-cycle-date {
  margin: 4px 0 0;
}

.rex-cycle-count {
  margin-top: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F9FAFB;
  color: #98A2B3;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}

.rex-registration-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-registration-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-registration-card h2 svg {
  flex: 0 0 18px;
  color: #0C287B;
}

.rex-registration-card h2 .rex-registration-mark {
  display: inline-flex;
  grid-column: auto;
  grid-row: auto;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  font-size: 18px;
}


.rex-registration-empty {
  margin: 0;
  padding: 28px 24px;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-registration-table-wrap {
  overflow-x: auto;
}

.rex-registration-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-registration-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
}

.rex-registration-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.rex-registration-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-registration-table tbody tr:hover td {
  background: #f9fafb;
}

@media (max-width: 800px) {
  .rex-registration-facts {
    grid-template-columns: 1fr;
  }
}

.rex-alerts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-alerts-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-alerts-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-alerts-card h2 svg {
  flex: 0 0 18px;
  color: #0C287B;
}

.rex-work-switch {
  margin-top: 16px;
}

.rex-work-note {
  margin: 0;
  padding: 12px 24px 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
}

.rex-work-inbox {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.rex-work-inbox li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}

.rex-work-inbox li + li {
  border-top: 1px solid #f2f4f7;
}

.rex-work-inbox a {
  color: #0C287B;
  font-weight: 600;
  text-decoration: none;
}

.rex-work-inbox p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
}

.rex-task-status.is-overdue {
  background: #fef3f2;
  color: #d92d20;
}

.rex-alerts-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
}

.rex-alerts-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-alerts-empty-title {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-alerts-empty p:last-child {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-alerts-table-wrap {
  overflow-x: auto;
}

.rex-alerts-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-alerts-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
}

.rex-alerts-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.rex-alerts-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-alerts-table tbody tr:hover td {
  background: #f9fafb;
}

.rex-alerts-table a {
  color: #0C287B;
  font-weight: 500;
  text-decoration: none;
}

.rex-alerts-table a:hover {
  text-decoration: underline;
}

.rex-alerts-table {
  table-layout: fixed;
}

.rex-alert-col-work { width: 52%; }
.rex-alert-col-status { width: 24%; }
.rex-alert-col-when { width: 24%; }

.rex-alerts-table th,
.rex-alerts-table td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rex-alerts-table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.rex-alerts-table th button.is-sorted {
  color: #0C287B;
}

.rex-alert-sorts,
.rex-alert-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.rex-alert-title {
  color: #0C287B;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.rex-alert-meta {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.rex-users {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-users-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-users-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #1d2939;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.rex-users-card h2 svg {
  color: #0C287B;
}

.rex-users-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
}

.rex-users-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-users-empty-title {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-users-empty p:last-child {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-users-table-wrap {
  overflow-x: auto;
}

.rex-users-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-users-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  white-space: nowrap;
}

.rex-users-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.rex-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-users-table tbody tr:hover td {
  background: #f9fafb;
}

.rex-users-table th:last-child,
.rex-users-table td:last-child {
  text-align: right;
}

.rex-users-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rex-tasks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-task-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rex-task-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

.rex-task-metric:hover {
  border-color: #e4e7ec;
  box-shadow: none;
  transform: none;
}

.rex-task-metric span {
  grid-column: 1;
  grid-row: 1;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 14px;
  text-transform: uppercase;
}

.rex-task-metric strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #0C287B;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.rex-task-metric em {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
  line-height: 16px;
}

.rex-task-metric.is-pending strong {
  color: #344054;
}

.rex-task-metric.is-completed strong {
  color: #027a48;
}

.rex-task-metric.is-on {
  border-color: #0C287B;
  background: #0C287B;
  box-shadow: none;
}

.rex-task-metric.is-on span,
.rex-task-metric.is-on strong,
.rex-task-metric.is-on em {
  color: #fff;
}

.rex-task-metric.is-on em {
  color: rgba(255, 255, 255, 0.72);
}

.rex-task-metric.is-on:hover {
  border-color: #0C287B;
  background: #0C287B;
  box-shadow: none;
}

.rex-tasks-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-tasks-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
}

.rex-tasks-toolbar h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.rex-tasks-toolbar h2 svg {
  color: #0C287B;
}

.rex-tasks-toolbar p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.rex-tasks-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rex-tasks-filters select,
.rex-tasks-search input {
  box-sizing: border-box;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #1d2939;
  font-size: 14px;
}

.rex-tasks-filters select {
  min-width: 180px;
  padding: 0 36px 0 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.rex-tasks-search-btn {
  height: 44px;
}

.rex-tasks-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
}

.rex-tasks-search svg {
  position: absolute;
  left: 12px;
  color: #98a2b3;
}

.rex-tasks-search input {
  width: 260px;
  padding: 0 12px 0 38px;
}

.rex-tasks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
}

.rex-tasks-empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-tasks-empty-title {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
}

.rex-tasks-empty p:last-child {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.rex-tasks-table-wrap {
  overflow-x: auto;
}

.rex-tasks-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-tasks-table th,
.rex-tasks-table td {
  padding: 14px 24px;
  border-bottom: 1px solid #f2f4f7;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.rex-tasks-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid #f2f4f7;
  border-bottom-color: #f2f4f7;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.rex-tasks-table th a,
.rex-tasks-table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.rex-tasks-table th a svg {
  color: #98a2b3;
}

.rex-tasks-table th a.is-sorted,
.rex-tasks-table th button.is-sorted,
.rex-tasks-table th a.is-sorted svg {
  color: #0C287B;
}

.rex-tasks-table td select {
  box-sizing: border-box;
  min-width: 180px;
  max-width: 240px;
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
}

.rex-assign-table {
  table-layout: fixed;
}

.rex-assign-col-work { width: 34%; }
.rex-assign-col-step { width: 32%; }
.rex-assign-col-owner { width: 22%; }
.rex-assign-col-due { width: 12%; }

.rex-assign-table th,
.rex-assign-table td {
  padding: 12px 16px;
  white-space: normal;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rex-assign-sorts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rex-assign-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.rex-assign-title {
  color: #0C287B;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

a.rex-assign-title:hover {
  text-decoration: underline;
}

.rex-assign-meta {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.rex-assign-table td select {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.rex-tasks-table tbody tr:last-child td {
  border-bottom: 0;
}

.rex-tasks-table tbody tr:hover td {
  background: #f9fafb;
}

.rex-tasks-title {
  color: #0C287B;
  font-weight: 600;
  text-decoration: none;
}

.rex-cell.is-overdue {
  color: #d92d20;
}

.rex-task-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.rex-task-status.is-pending {
  background: #f2f4f7;
  color: #344054;
}

.rex-task-status.is-inprogress {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-task-status.is-completed {
  background: #ecfdf3;
  color: #027a48;
}

.rex-tasks-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #f2f4f7;
  color: #667085;
  font-size: 13px;
}

.rex-tasks-pager div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rex-tasks-pager p {
  margin: 0;
}

.rex-tasks-pager select {
  height: 32px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 8px;
  color: #344054;
  background: #fff;
}

.rex-task-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.rex-task-scrim {
  position: fixed;
  inset: 0;
  background: rgba(152, 162, 179, 0.5);
  backdrop-filter: blur(32px);
}

.rex-task-dialog {
  position: relative;
  width: min(100%, 820px);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
}

.rex-task-dialog.is-narrow {
  width: min(100%, 560px);
}

.rex-task-dialog.is-wide {
  width: min(100%, 960px);
}

.rex-task-scroll {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 44px;
}

.rex-task-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #98a2b3;
}

.rex-task-close:hover {
  background: #e4e7ec;
  color: #475467;
}

.rex-task-intro {
  padding-right: 56px;
}

.rex-task-intro h2 {
  margin: 0 0 8px;
  color: #1d2939;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.rex-task-intro p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.rex-task-intro .rex-task-status {
  margin-top: 12px;
}

.rex-task-alert {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef3f2;
  color: #b42318;
  font-size: 14px;
}

.rex-task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-top: 28px;
}

.rex-task-grid .is-full {
  grid-column: 1 / -1;
}

.rex-task-grid h3,
.rex-task-notes h3 {
  margin: 8px 0 0;
  color: #1d2939;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.rex-task-field label,
.rex-task-note-form label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-task-field label span {
  color: #d92d20;
}

.rex-task-field input,
.rex-task-field select,
.rex-task-field textarea,
.rex-task-note-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color: #1d2939;
  font-size: 14px;
  line-height: 20px;
}

.rex-task-field input,
.rex-task-field select {
  height: 44px;
  padding: 0 16px;
}

.rex-task-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rex-task-field textarea,
.rex-task-note-form textarea {
  min-height: 112px;
  padding: 10px 16px;
  resize: vertical;
}

.rex-task-field input::placeholder,
.rex-task-field textarea::placeholder,
.rex-task-note-form textarea::placeholder {
  color: #98a2b3;
}

.rex-task-field input:focus,
.rex-task-field select:focus,
.rex-task-field textarea:focus,
.rex-task-note-form textarea:focus {
  border-color: #7a94cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.1);
}

.rex-task-notes {
  margin-top: 28px;
}

.rex-task-notes > p,
.rex-task-notes-empty {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.rex-task-notes ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rex-task-notes li {
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}

.rex-task-notes li div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.rex-task-notes strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-task-notes time {
  color: #98a2b3;
  font-size: 12px;
}

.rex-task-notes li p {
  margin: 0;
  color: #344054;
  font-size: 14px;
  line-height: 22px;
}

.rex-task-notes li button {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #d92d20;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.rex-task-note-form {
  margin-top: 16px;
}

.rex-task-note-form button {
  margin-top: 12px;
}

.rex-task-dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.rex-task-dialog-foot div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.rex-task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.rex-task-btn-ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
}

.rex-task-btn-ghost:hover {
  background: #f9fafb;
}

.rex-task-btn-primary {
  border: 0;
  background: #0C287B;
  color: #fff;
}

.rex-task-btn-primary:hover {
  background: #0A2269;
}

.rex-task-btn-danger {
  border: 1px solid #fda29b;
  background: #fff;
  color: #d92d20;
}

.rex-task-btn-danger:hover {
  background: #fef3f2;
}

@media (max-width: 700px) {
  .rex-task-scroll {
    padding: 24px;
  }

  .rex-task-grid,
  .rex-task-dialog-foot,
  .rex-task-dialog-foot div {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .rex-task-grid .is-full,
  .rex-task-field {
    grid-column: 1 / -1;
  }

  .rex-task-close {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1100px) {
  .rex-task-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rex-tasks-toolbar,
  .rex-tasks-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rex-tasks-filters select,
  .rex-tasks-search,
  .rex-tasks-search input,
  .rex-tasks-search-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .rex-task-metrics {
    grid-template-columns: 1fr;
  }
}

.rex-users-you {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #c5d0ea;
  border-radius: 6px;
  background: #fff;
  color: #0C287B;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.rex-users-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.rex-users-status.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.rex-users-status.is-inactive {
  background: #f2f4f7;
  color: #344054;
}

.rex-users-role {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  background: #eff4ff;
  color: #0C287B;
}
.rex-users-role.is-manager {
  background: #fef6ee;
  color: #b54708;
}
.rex-users-role.is-employee {
  background: #f2f4f7;
  color: #344054;
}

.rex-users-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.rex-users-mini {
  height: 36px;
  padding: 0 12px;
}

.rex-users .rex-add-actions form,
.rex-users-row-actions form {
  display: contents;
}

.rex-users-hint {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.rex-user-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-user-form form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rex-user-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-user-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-user-card-mark {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-user-card-head h2 {
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-user-card-head p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
}

.rex-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding: 24px;
}

.rex-user-grid .full {
  grid-column: 1 / -1;
}

.rex-user-form .field {
  min-width: 0;
  margin: 0;
}

.rex-user-form .field label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.rex-user-form .field .req {
  color: #d92d20;
}

.rex-user-control {
  position: relative;
}

.rex-user-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  display: flex;
  color: #98a2b3;
  pointer-events: none;
  transform: translateY(-50%);
}

.rex-user-form .field input,
.rex-user-form .field select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 16px 0 42px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #fff;
  color: #1d2939;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-user-form .field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath d='M4.8 7.4 10 12.6l5.2-5.2' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rex-user-form .field input::placeholder {
  color: #98a2b3;
}

.rex-user-form .field input:focus,
.rex-user-form .field select:focus {
  border-color: #7a94cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-user-form .field input:disabled {
  background: #f9fafb;
  color: #667085;
}

.rex-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-user-actions form {
  display: contents;
}

.rex-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 1000001 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rex-delete-modal[hidden] {
  display: none !important;
}

.rex-delete-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.62);
}

.rex-delete-dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
  text-align: left;
}

.rex-delete-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fef3f2;
  color: #d92d20;
}

.rex-delete-dialog h2 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.rex-delete-dialog p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-delete-dialog strong {
  color: #1d2939;
  font-weight: 600;
}

.rex-delete-email {
  margin-top: 4px !important;
  color: #98a2b3 !important;
  font-size: 13px !important;
}

.rex-delete-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  .rex-user-grid {
    grid-template-columns: 1fr;
  }

  .rex-user-actions {
    flex-direction: column;
  }

  .rex-user-actions .rex-btn {
    width: 100%;
  }
}

.rex-cal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-cal-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
}

.rex-cal-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
}

.rex-cal-toolbar h2 {
  margin: 0;
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.rex-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
}

.rex-cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rex-cal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.rex-cal-legend i.is-pending {
  background: #98a2b3;
}

.rex-cal-legend i.is-inprogress {
  background: #0C287B;
}

.rex-cal-legend i.is-completed {
  background: #027a48;
}

.rex-cal-legend i.is-cycle {
  background: #fff;
  box-shadow: inset 0 0 0 2px #0C287B;
}

.rex-cal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rex-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #f2f4f7;
}

.rex-cal-weekday,
.rex-cal-day {
  min-width: 0;
  border-right: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
}

.rex-cal-weekday:nth-child(7n),
.rex-cal-day:nth-child(7n) {
  border-right: 0;
}

.rex-cal-weekday {
  padding: 10px 8px;
  background: #f9fafb;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.rex-cal-day {
  min-height: 118px;
  padding: 8px;
  background: #fff;
}

.rex-cal-day.is-out {
  background: #fcfcfd;
}

.rex-cal-day.is-out .rex-cal-num {
  color: #d0d5dd;
}

.rex-cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.rex-cal-day.is-today .rex-cal-num {
  border-radius: 999px;
  background: #0C287B;
  color: #fff;
}

.rex-cal-day ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.rex-cal-event {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

button.rex-cal-event:hover,
button.rex-cal-event:focus {
  outline: 2px solid #0C287B;
  outline-offset: 1px;
}

.rex-cal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 0;
}

.rex-cal-facts div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #F7F8FC;
}

.rex-cal-facts dt {
  color: #73777F;
  font-size: 12px;
  line-height: 16px;
}

.rex-cal-facts dd {
  margin: 4px 0 0;
  color: #191C20;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-cal-event strong,
.rex-cal-event span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rex-cal-event strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.rex-cal-event span {
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  opacity: 0.8;
}

.rex-cal-event.is-pending {
  background: #f2f4f7;
  color: #344054;
}

.rex-cal-event.is-inprogress {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-cal-event.is-completed {
  background: #ecfdf3;
  color: #027a48;
}

.rex-cal-event.is-cycle {
  border: 1px solid #0C287B;
  background: #fff;
  color: #0C287B;
}

@media (max-width: 900px) {
  .rex-cal-toolbar,
  .rex-cal-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .rex-cal-grid {
    display: block;
  }

  .rex-cal-weekday {
    display: none;
  }

  .rex-cal-day {
    min-height: 0;
    border-right: 0;
  }

  .rex-cal-day.is-out {
    display: none;
  }
}

.rex-dash {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-route {
  position: relative;
  overflow: hidden;
  height: 196px;
  border-radius: 16px;
  background: transparent;
}

.rex-route-copy {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 20px;
  max-width: 280px;
}

.rex-route-copy span,
.rex-route-copy strong {
  display: block;
}

.rex-route-copy span {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-route-copy strong {
  margin-top: 4px;
  color: #1d2939;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 28px;
}

.rex-route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rex-route-lines path {
  stroke-dasharray: 7 9;
  animation: rex-route-flow 16s linear infinite;
}

.rex-route-hub {
  transform-box: fill-box;
  transform-origin: center;
  animation: rex-route-pulse 2.4s ease-out infinite;
}

@keyframes rex-route-flow {
  to { stroke-dashoffset: -320; }
}

@keyframes rex-route-pulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rex-route-lines path,
  .rex-route-hub {
    animation: none;
  }

  .rex-route-move {
    display: none;
  }
}

.rex-dash-kpis,
.rex-dash-notes,
.rex-dash-charts,
.rex-dash-split {
  display: grid;
  gap: 16px;
}

.rex-dash-kpis,
.rex-dash-notes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rex-dash-charts,
.rex-dash-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

a.rex-metric {
  color: inherit;
  text-decoration: none !important;
}

.rex-dash-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
}

.rex-dash-note span {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-dash-note strong {
  color: #101828;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 34px;
}

.rex-dash-note em {
  color: #98a2b3;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.rex-dash-note.is-alert strong {
  color: #d92d20;
}

.rex-dash-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
}

.rex-dash-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-dash-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #1d2939;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.rex-dash-icon {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #E7EBF6;
  color: #0C287B;
}

.rex-dash-icon svg {
  width: 18px;
  height: 18px;
}

.rex-dash-card header a {
  color: #0C287B;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.rex-dash-empty {
  margin: 0;
  padding: 28px 20px;
  color: #667085;
  font-size: 14px;
}

.rex-dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-dash-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-dash-list li:last-child {
  border-bottom: 0;
}

.rex-dash-list a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.rex-dash-list strong,
.rex-dash-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rex-dash-list strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-dash-list span,
.rex-dash-list em {
  color: #667085;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.rex-dash-list em {
  flex: 0 0 auto;
  text-align: right;
}

.rex-dash-list small {
  display: block;
  color: #98a2b3;
  font-size: 12px;
}

.rex-dash-list em.is-overdue,
.rex-dash-list em.is-overdue small {
  color: #d92d20;
}

.rex-dash-card .rex-table-wrap {
  overflow-x: auto;
}

.rex-task-status.is-draft,
.rex-task-status.is-submitted {
  background: #f2f4f7;
  color: #344054;
}

.rex-task-status.is-confirmed {
  background: #ecfdf3;
  color: #027a48;
}

.rex-task-status.is-cancelled {
  background: #fef3f2;
  color: #d92d20;
}

.rex-dash-po-status {
  gap: 6px;
}

.rex-dash-po-status svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

@media (max-width: 1100px) {
  .rex-dash-kpis,
  .rex-dash-notes,
  .rex-dash-charts,
  .rex-dash-split {
    grid-template-columns: 1fr 1fr;
  }
}

.rex-dash-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-dash-cal-bar strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
}

.rex-dash-cal-bar div {
  display: flex;
  gap: 6px;
}

.rex-dash-cal-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  color: #344054;
}

.rex-dash-cal-bar svg {
  width: 16px;
  height: 16px;
}

.rex-dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.rex-dash-cal-weekday,
.rex-dash-cal-day {
  min-width: 0;
  border-right: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
}

.rex-dash-cal-weekday:nth-child(7n),
.rex-dash-cal-day:nth-child(7n) {
  border-right: 0;
}

.rex-dash-cal-weekday {
  padding: 8px 4px;
  background: #f9fafb;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-align: center;
  text-transform: uppercase;
}

.rex-dash-cal-day {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
  padding: 6px;
  background: #fff;
}

.rex-dash-cal-day.is-out {
  background: #fcfcfd;
}

.rex-dash-cal-day > span {
  color: #344054;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.rex-dash-cal-day.is-out > span {
  color: #d0d5dd;
}

.rex-dash-cal-day.is-today > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0C287B;
  color: #fff;
}

.rex-dash-cal-event,
.rex-dash-cal-more {
  display: block;
  overflow: hidden;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  text-decoration: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rex-dash-cal-event.is-pending {
  background: #f2f4f7;
  color: #344054;
}

.rex-dash-cal-event.is-inprogress {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-dash-cal-event.is-completed {
  background: #ecfdf3;
  color: #027a48;
}

.rex-dash-cal-event.is-cycle {
  border: 1px solid #0C287B;
  background: #fff;
  color: #0C287B;
}

.rex-dash-cal-more {
  color: #667085;
}

.rex-dash-split > .rex-dash-card {
  height: 100%;
}

@media (max-width: 700px) {
  .rex-dash-kpis,
  .rex-dash-notes,
  .rex-dash-charts,
  .rex-dash-split {
    grid-template-columns: 1fr;
  }
}

/* ── Warehouses & Inventory ──────────────────────────── */

.rex-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

a.rex-action-btn {
  text-decoration: none;
}

.rex-action-btn {
  padding: 4px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rex-action-btn:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}

.rex-action-btn.is-danger {
  color: #b42318;
  border-color: #fda29b;
}

.rex-action-btn.is-danger:hover {
  background: #fef3f2;
}

.rex-empty {
  padding: 32px;
  text-align: center;
  color: #667085;
  font-size: 14px;
}

.rex-wh-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.rex-wh-status.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.rex-wh-status.is-inactive {
  background: #f2f4f7;
  color: #667085;
}

.rex-task-field .rex-field-error {
  margin: 6px 0 0;
  color: #d92d20;
  font-size: 13px;
  line-height: 18px;
}

.rex-task-field input[aria-invalid="true"],
.rex-task-field select[aria-invalid="true"],
.rex-task-field textarea[aria-invalid="true"] {
  border-color: #fda29b;
}

.rex-task-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
}

.rex-task-toggle strong {
  display: block;
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
}

.rex-task-toggle small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.rex-empty a {
  color: #0C287B;
  font-weight: 500;
}

.rex-inv-loading {
  margin: 0 0 16px;
  color: #667085;
  font-size: 14px;
}

.rex-inv-filter {
  max-width: 320px;
  margin-bottom: 20px;
}

.rex-inv-avail {
  color: #027a48;
  font-weight: 600;
}

.rex-inv-reserved {
  color: #b54708;
  font-weight: 600;
}

.rex-inv-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  text-transform: capitalize;
}

.rex-inv-type.is-stock_in {
  background: #ecfdf3;
  color: #027a48;
}

.rex-inv-type.is-adjustment {
  background: #fef3c7;
  color: #92400e;
}

.rex-inv-type.is-reservation {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-inv-type.is-release {
  background: #f0f9ff;
  color: #0369a1;
}

.rex-inv-type.is-sale {
  background: #fef3f2;
  color: #b42318;
}

.rex-inv-history-scroll {
  max-height: min(420px, 50vh);
  overflow: auto;
  margin: 16px 0 0;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

@media (max-width: 700px) {
  .rex-table-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .rex-inv-filter {
    max-width: none;
  }
}

.rex-inventory {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rex-inventory .rex-empty {
  margin: 0;
  padding: 24px 8px;
}

.rex-inventory .rex-tasks-pager {
  margin: 4px 0 0;
  padding: 14px 0 0;
}

.rex-inv-toolbar {
  margin: 0 0 16px;
}

.rex-inv-toolbar input,
.rex-inv-history-filter input,
.rex-inv-history-filter select,
.rex-wh-toolbar input,
.rex-wh-toolbar select,
.rex-inv-form-grid input,
.rex-inv-form-grid select,
.rex-inv-form-grid textarea {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-inv-toolbar input {
  max-width: 420px;
}

.rex-inv-form-grid textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 14px;
  resize: vertical;
}

.rex-inv-history-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
}

.rex-inv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.rex-inv-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.rex-inv-form-grid label.is-wide {
  grid-column: 1 / -1;
}

.rex-inv-form-grid em {
  color: #b42318;
  font-style: normal;
}

.rex-inv-catalog {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-inv-catalog li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

.rex-inv-catalog div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rex-inv-catalog button {
  min-height: 36px;
  margin: 0;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  padding: 6px 14px;
  background: #fff;
  color: #0C287B;
  font-weight: 600;
  cursor: pointer;
}

.rex-inv-catalog button:disabled {
  color: #98a2b3;
  background: #f2f4f7;
  cursor: default;
}

.rex-inv-form .rex-table td,
.rex-inv-form .rex-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.rex-inv-form .rex-table input {
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  font-weight: 400;
}

.rex-inv-qty {
  width: 96px;
}

.rex-inv-line-note {
  width: 100%;
  min-width: 160px;
}

.rex-inv-summary {
  margin: 16px 0 0;
  color: #475467;
  font-size: 14px;
}

.rex-inv-review {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #f8fafc;
}

.rex-inv-review h3 {
  margin: 0 0 8px;
  color: #1d2939;
  font-size: 16px;
}

.rex-inv-review p {
  margin: 0;
  color: #475467;
}

.rex-inv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.rex-wh-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.rex-wh-facts div {
  min-width: 0;
}

.rex-wh-facts dt {
  margin: 0 0 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.rex-wh-facts dd {
  margin: 0;
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-wh-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(160px, 240px);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
}

.rex-wh-directory {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 200px) minmax(180px, 240px);
}

.rex-wh-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
}

.rex-wh-sort.is-sorted {
  color: #0C287B;
}

.rex-table th.text-right .rex-wh-sort {
  width: 100%;
  justify-content: flex-end;
}

.rex-wh-sub {
  display: block;
  margin-top: 2px;
  color: #b42318;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.rex-wh-low {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3f2;
  color: #b42318;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .rex-wh-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rex-inv-form-grid,
  .rex-wh-facts,
  .rex-wh-toolbar {
    grid-template-columns: 1fr;
  }

  .rex-inv-toolbar input {
    max-width: none;
  }
}

.text-right {
  text-align: right;
}

.rex-po-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.rex-po-steps li {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.rex-po-steps li.is-current {
  background: #E7EBF6;
  color: #0C287B;
}

.rex-po-steps li.is-done {
  background: #ecfdf3;
  color: #027a48;
}

.rex-po-picker-tools {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  margin-top: 20px;
}

.rex-po-picker-tools.is-search {
  grid-template-columns: 1fr;
}

.rex-inv-lines-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rex-inv-lines-head h2 {
  margin: 0;
}

.rex-po-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.rex-po-picker-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.rex-po-picker-list button:hover {
  border-color: #0C287B;
}

.rex-po-picker-list strong,
.rex-po-group header strong {
  display: block;
  color: #1d2939;
  font-size: 14px;
}

.rex-po-picker-list em,
.rex-po-group header span,
.rex-po-group li span {
  display: block;
  color: #667085;
  font-size: 13px;
  font-style: normal;
}

.rex-po-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #667085;
  font-size: 13px;
}

.rex-po-pager button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.rex-po-pager button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rex-pack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.rex-pack-card {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}

.rex-pack-card.is-unavailable {
  background: #f9fafb;
}

.rex-pack-card.is-invalid {
  border-color: #fda29b;
}

.rex-pack-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rex-pack-card header strong {
  color: #1d2939;
}

.rex-pack-card header span,
.rex-pack-barcode,
.rex-pack-card > p {
  color: #667085;
  font-size: 13px;
}

.rex-pack-stock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 10px 0;
}

.rex-pack-stock strong {
  color: #027a48;
}

.rex-pack-stock.is-out strong,
.rex-po-group em.is-out {
  color: #b42318;
}

.rex-po-group {
  margin: 16px 20px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

.rex-po-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rex-po-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-po-group li {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) 90px 120px auto auto;
  gap: 8px 12px;
  align-items: end;
}

.rex-po-group li .rex-field-error {
  grid-column: 1 / -1;
}

.rex-po-group label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #667085;
  font-size: 12px;
}

.rex-po-group input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}

.rex-po-line-total {
  color: #1d2939;
  font-size: 14px;
}

.rex-po-summary-group {
  padding: 0 20px 8px;
}

.rex-po-summary-group strong {
  display: block;
  color: #1d2939;
  font-size: 13px;
}

.rex-po-summary-group p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 800px) {
  .rex-po-picker-tools,
  .rex-po-group li {
    grid-template-columns: 1fr;
  }
}

.rex-export-steps {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-export-steps li {
  flex: 1 1 0;
}

.rex-export-steps button,
.rex-export-steps span {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #667085;
  font: inherit;
  font-weight: 500;
  text-align: left;
}

.rex-export-steps button {
  cursor: pointer;
}

.rex-export-steps .is-current button,
.rex-export-steps .is-current span {
  border-color: #0C287B;
  background: #f4f6fc;
  color: #0C287B;
}

.rex-export-steps .is-done button {
  color: #1d2939;
}

.rex-export-create .rex-export-search {
  position: relative;
}

.rex-export-create .rex-create-search input {
  width: 100%;
  flex: 1 1 auto;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rex-export-create .rex-create-search input:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.rex-export-create .suggest {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
}

.rex-export-create .suggest.is-open {
  display: block;
}

.rex-export-create .suggest button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.rex-export-create .suggest button:hover {
  background: #f9fafb;
}

.rex-export-create .rex-suggest-empty {
  margin: 0;
  padding: 12px 14px;
  color: #667085;
}

.rex-export-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f9fafb;
}

.rex-export-selected strong {
  display: block;
  color: #1d2939;
}

.rex-export-selected p,
.rex-export-note {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 20px;
}

.rex-export-create .rex-export-note {
  margin: 0;
  padding: 16px 24px 0;
}

.rex-export-create .rex-editor-block > .rex-export-note + .form-grid,
.rex-export-create .rex-editor-block > .rex-export-note + .rex-export-facts {
  margin-top: 0;
}

.rex-field-hint {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.rex-field-error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 12px;
  line-height: 18px;
}

.rex-export-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0;
  padding: 20px 24px 24px;
}

.rex-export-facts dt {
  color: #667085;
  font-size: 12px;
  line-height: 18px;
}

.rex-export-facts dd {
  margin: 2px 0 0;
  color: #1d2939;
  font-size: 14px;
  line-height: 22px;
}

.rex-export-agent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.rex-export-agent input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
}

.rex-export-agent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
}

.rex-export-create .rex-create-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #0C287B;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 800px) {
  .rex-export-steps,
  .rex-export-facts,
  .rex-export-agent,
  .rex-export-selected {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

.rex-expire-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.rex-expire-chip.is-valid { background: #ecfdf3; color: #027a48; }
.rex-expire-chip.is-expiring { background: #fffaeb; color: #b54708; }
.rex-expire-chip.is-expired { background: #fef3f2; color: #b42318; }
.rex-expire-chip.is-renewed { background: #e7ebf6; color: #0C287B; }
.rex-expire-chip.is-untracked { background: #f2f4f7; color: #667085; }

.rex-expire {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rex-expire .rex-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rex-expire-card {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.rex-expire-card .rex-metric {
  width: 100%;
}

.rex-expire-card.is-on .rex-metric {
  border-color: #0C287B;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-expire-fields {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}

.rex-expire-fields label,
.rex-expire-dates label,
.rex-expire-actions label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.rex-expire-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.rex-expire-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.rex-expire-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rex-expire-note {
  margin: 0 0 16px;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.rex-expire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.rex-expire-actions select {
  min-width: 180px;
}

@media (max-width: 1100px) {
  .rex-expire .rex-metrics,
  .rex-expire-fields,
  .rex-expire-layout,
  .rex-expire-dates {
    grid-template-columns: 1fr;
  }
}

button.rex-metric {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.rex-metric.is-on {
  border-color: #0C287B;
  box-shadow: 0 0 0 3px rgba(12, 40, 123, 0.12);
}

.rex-expire-fields input,
.rex-expire-fields select,
.rex-expire-dates input,
.rex-expire-actions select,
.rex-expire-comment textarea {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-expire-comment {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.rex-expire-comment textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 14px;
  resize: vertical;
}

.rex-expire-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rex-expire-log li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.rex-expire-log li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rex-expire-log strong {
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
}

.rex-expire-log span,
.rex-expire-log em {
  color: #667085;
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.rex-dossier-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0C287B;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none !important;
}

.rex-dossier-start:hover,
.rex-dossier-start:focus-visible {
  background: #163A9A;
  color: #fff !important;
}

.rex-product-card {
  grid-template-columns: 44px minmax(140px, 200px) minmax(0, 1fr);
}

.rex-product-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rex-ws-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid #0C287B;
}

.rex-ws-next strong {
  color: #101828;
  font-size: 16px;
  line-height: 22px;
}

.rex-ws-next p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 18px;
}

.rex-ws-next a {
  color: #0C287B;
  font-size: 13px;
  font-weight: 600;
}

.rex-ws-next.is-owner,
.rex-ws-next.is-upload,
.rex-ws-next.is-blocked {
  border-left-color: #b54708;
}

.rex-ws-next.is-ready {
  border-left-color: #027a48;
}

.rex-ws-more {
  margin-bottom: 16px;
}

.rex-ws-more > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.rex-ws-more > summary::-webkit-details-marker {
  display: none;
}

.rex-ws-more[open] > summary {
  margin-bottom: 12px;
}

@media (max-width: 991.98px) {
  .rex-product-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rex-product-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .rex-product-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.rex-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rex-role-card,
.rex-role-callout,
.rex-role-matrix {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.rex-role-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 20px;
}

.rex-role-card h2,
.rex-role-matrix h2 {
  margin: 0;
  color: #1d2939;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}

.rex-role-card h3 {
  margin: 8px 0 0;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.rex-role-card p,
.rex-role-callout p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 22px;
}

.rex-role-card ul {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  font-size: 14px;
  line-height: 22px;
}

.rex-role-card li + li {
  margin-top: 4px;
}

.rex-role-callout {
  padding: 16px 20px;
}

.rex-role-filter.rex-filter {
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr);
  margin-bottom: 0;
}

.rex-role-matrix {
  overflow: hidden;
}

.rex-role-matrix h2 {
  padding: 16px 24px;
  border-bottom: 1px solid #f2f4f7;
}

.rex-role-table {
  width: 100%;
  border-collapse: collapse;
}

.rex-role-table th,
.rex-role-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ec;
  text-align: left;
  vertical-align: top;
}

.rex-role-table thead th {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.rex-role-group th {
  background: #f9fafb;
  color: #1d2939;
  font-size: 13px;
  font-weight: 600;
}

.rex-role-action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-role-note,
.rex-role-kind {
  color: #667085;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.rex-role-yes,
.rex-role-no {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.rex-role-yes {
  color: #027a48;
}

.rex-role-no {
  color: #667085;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .rex-role-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rex-role-filter.rex-filter {
    grid-template-columns: 1fr;
  }

  .rex-role-table thead {
    display: none;
  }

  .rex-role-table,
  .rex-role-table tbody,
  .rex-role-table tr,
  .rex-role-table td,
  .rex-role-table th {
    display: block;
    width: 100%;
  }

  .rex-role-group th {
    display: block;
  }

  .rex-role-table tr:not(.rex-role-group) {
    padding: 8px 0 12px;
  }

  .rex-role-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 6px 16px;
  }

  .rex-role-table td:first-child {
    display: block;
    padding-top: 12px;
  }

  .rex-role-table td[data-label]::before {
    content: attr(data-label);
    color: #667085;
    font-size: 12px;
    font-weight: 600;
  }
}

/* Dark mode. The shell toggles `dark` on body. Custom cards use fixed light
   colors, so they stay pale unless these surfaces, fields, and text are remapped. */
body.dark {
  color-scheme: dark;
}

body.dark header .bg-white,
body.dark :is(
  .rex-search-menu,
  .rex-user-menu,
  .card,
  .rex-catalog-sheet,
  .rex-catalog-head,
  .rex-dossier-head,
  .rex-editor-bar,
  .rex-product-card,
  .rex-metric,
  .rex-panel,
  .rex-drawer,
  .rex-drawer-head,
  .rex-create-scroll,
  .rex-create-section,
  .rex-cycle-drawer,
  .rex-step-sheet,
  .rex-cycle-choice,
  .rex-check-item,
  .rex-doc-link,
  .rex-extend-card,
  .rex-order-card,
  .rex-po-view-card,
  .rex-po-card,
  .rex-po-summary,
  .rex-registration-card,
  .rex-cycle-card,
  .rex-alerts-card,
  .rex-users-card,
  .rex-role-card,
  .rex-role-callout,
  .rex-role-matrix,
  .rex-user-card,
  .rex-tasks-card,
  .rex-task-metric:not(.is-on),
  .rex-task-dialog,
  .rex-delete-dialog,
  .rex-cal-card,
  .rex-cal-day,
  .rex-dash-note,
  .rex-dash-card,
  .rex-dash-cal-day,
  .rex-pack-card,
  .rex-dossier-sheet,
  .rex-dossier-activity,
  .rex-activity-card,
  .rex-activity-compose,
  .rex-cl-card,
  .rex-cl-history,
  .rex-ws-card,
  .rex-ws-bar,
  .rex-ws-rail,
  .rex-file-card,
  .rex-editor-block,
  .rex-cycles,
  .rex-cycle-track,
  .rex-orders-filters,
  .rex-po-product,
  .rex-po-temp-row,
  .rex-new-order .rex-po-product,
  .rex-new-order .rex-po-temp-row,
  .rex-new-order .rex-editor-block,
  .rex-btn-ghost,
  .rex-task-btn-ghost,
  .rex-step-btn-ghost,
  .rex-ws-more > summary,
  .rex-topbar
) {
  background-color: #1d2939;
  border-color: #344054;
  color: #e4e7ec;
  box-shadow: none;
}

body.dark .rex-topbar {
  background-color: #101828 !important;
}

body.dark .rex-task-metric.is-on {
  background: #0C287B;
  border-color: #0C287B;
  color: #fff;
}

body.dark .rex-task-metric:not(.is-on) strong,
body.dark main :is(h1, h2, h3, h4) {
  color: #f2f4f7;
}

body.dark .rex-task-metric:not(.is-on) span,
body.dark .rex-task-metric:not(.is-on) em,
body.dark .rex-tasks-toolbar p,
body.dark .rex-work-note,
body.dark .rex-alert-meta,
body.dark .rex-assign-meta {
  color: #98a2b3;
}

body.dark .rex-role-group th {
  background: #101828;
  color: #f2f4f7;
}

body.dark .rex-role-yes {
  color: #6ce9a6;
}

body.dark .rex-role-table td[data-label]::before {
  color: #98a2b3;
}

body.dark .rex-users-hint,
body.dark .rex-role-card p,
body.dark .rex-role-callout p,
body.dark .rex-role-note,
body.dark .rex-role-kind,
body.dark .rex-role-no,
body.dark .rex-role-table thead th,
body.dark header .text-gray-700,
body.dark header .text-gray-500 {
  color: #98a2b3;
}

body.dark main :is(p, td, th, li, label, legend) {
  border-color: #344054;
}

body.dark main :is(p, strong, td, th, li, label) {
  color: #e4e7ec;
}

body.dark main :is(
  a.rex-alert-title,
  a.rex-assign-title,
  a.rex-cell,
  .rex-work-inbox a,
  .rex-alerts-table a,
  .rex-tasks-table a
) {
  color: #c7d2fe;
}

body.dark main :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
  select,
  textarea,
  .form-control,
  .form-select
) {
  background-color: #101828;
  border-color: #344054;
  color: #f2f4f7;
}

body.dark main :is(
  .rex-tasks-table tbody tr:hover td,
  .rex-alerts-table tbody tr:hover td,
  .rex-users-table tbody tr:hover td
) {
  background: #243044;
}

body.dark :is(.rex-tasks-empty-mark, .rex-alerts-empty-mark, .rex-activity-node) {
  background: #243044;
  color: #d0d5dd;
}

body.dark :is(.rex-btn-danger, .rex-task-btn-danger) {
  background: #3f1d1d;
  border-color: #912018;
  color: #fda29b;
}

body.dark .rex-empty-state.is-framed {
  background: #1d2939;
  border-color: #344054;
}

body.dark .rex-empty-state-title {
  color: #f2f4f7;
}

body.dark .rex-empty-state > p:not(.rex-empty-state-title) {
  color: #98a2b3;
}

body.dark .rex-empty-state-mark,
body.dark .rex-empty-state.is-search .rex-empty-state-mark,
body.dark .rex-empty-state.is-missing .rex-empty-state-mark {
  background: #243044;
  color: #d0d5dd;
}

body.dark .rex-toast {
  background: #1d2939;
  border-color: #344054;
  box-shadow: none;
}

body.dark .rex-toast p {
  color: #f2f4f7;
}

body.dark .rex-toast > button {
  color: #98a2b3;
}

body.dark .rex-toast > button:hover {
  background: #243044;
}

body.dark .rex-form-alert {
  background: #3f1d1d;
  border-color: #912018;
  color: #fda29b;
}

body.dark .rex-form-alert strong,
body.dark .rex-field-error {
  color: #fda29b;
}

body.dark .rex-currency-list,
body.dark .rex-task-field.rex-currency > input {
  background: #101828;
  border-color: #344054;
  color: #f2f4f7;
}

body.dark .rex-currency-list button {
  color: #f2f4f7;
}

body.dark .rex-currency-list button.is-active,
body.dark .rex-currency-list button:hover {
  background: #243044;
}

body.dark .app-skel i,
body.dark .app-skel-cards i {
  background-color: #1d2939;
  background-image: linear-gradient(90deg, #1d2939, #344054 45%, #1d2939);
}

body.dark .sidebar-footer {
  border-top-color: #344054;
}

body.dark .sidebar .menu-item:hover,
body.dark .sidebar .menu-item:focus-visible,
body.dark .sidebar .menu-item.menu-item-active:hover,
body.dark .sidebar .menu-item.menu-item-active:focus,
body.dark .sidebar .menu-item.menu-item-active:focus-visible {
  background: #243044 !important;
  color: #f2f4f7 !important;
}

body.dark .sidebar .menu-item:hover svg,
body.dark .sidebar .menu-item:focus-visible svg,
body.dark .sidebar .menu-item.menu-item-active:hover svg,
body.dark .sidebar .menu-item.menu-item-active:focus svg {
  color: #c7d2fe !important;
}

body.dark .sidebar .menu-item.sidebar-signout:hover,
body.dark .sidebar .menu-item.sidebar-signout:focus,
body.dark .sidebar .menu-item.sidebar-signout:focus-visible,
body.dark .sidebar .menu-item.sidebar-signout:hover svg,
body.dark .sidebar .menu-item.sidebar-signout:focus svg {
  background: #3f1d1d !important;
  color: #fda29b !important;
}

body.dark :is(
  .rex-table a,
  .rex-dash-card header a,
  .rex-dash-card td a,
  .rex-alerts-table a,
  .rex-tasks-table a,
  .rex-users-table a,
  .rex-registration-table a,
  .rex-po-view-table a,
  .rex-product-table a,
  .rex-work-inbox a,
  a.rex-alert-title,
  a.rex-assign-title,
  a.rex-cell,
  .rex-cell svg
) {
  color: #9eb0ff;
}

body.dark :is(
  .rex-table a,
  .rex-dash-card header a,
  .rex-dash-card td a,
  .rex-alerts-table a,
  .rex-tasks-table a,
  .rex-users-table a,
  .rex-registration-table a,
  .rex-po-view-table a,
  .rex-product-table a,
  .rex-work-inbox a,
  a.rex-alert-title,
  a.rex-assign-title,
  a.rex-cell
):hover {
  color: #d6deff;
}

body.dark main :is(
  .rex-table tbody tr:hover td,
  .rex-po-view-table tbody tr:hover td,
  .rex-registration-table tbody tr:hover td,
  .rex-users-table tbody tr:hover td,
  .rex-tasks-table tbody tr:hover td,
  .rex-alerts-table tbody tr:hover td,
  .rex-dossier .rex-product-table.table-hover > tbody > tr:hover > *
) {
  background: #243044 !important;
  color: #e4e7ec;
  --bs-table-accent-bg: #243044;
}

body.dark .rex-dossier .rex-product-table thead th {
  background: #101828;
  color: #98a2b3;
  border-color: #344054;
}

body.dark :is(
  .rex-step-btn-ghost:hover,
  .rex-step-btn-ghost:focus,
  .rex-btn-ghost:hover,
  .rex-task-btn-ghost:hover,
  .rex-new-order .rex-btn-ghost:hover
) {
  background: #243044 !important;
  border-color: #344054 !important;
  color: #f2f4f7 !important;
}

body.dark button.rex-cycle-step:hover .rex-cycle-card,
body.dark button.rex-cycle-step:focus-visible .rex-cycle-card,
body.dark button.rex-cycle-step.is-active .rex-cycle-card {
  background: #243044;
  border-color: #4b5f8a;
}

body.dark .rex-orders-filter-track {
  background: #101828;
}

body.dark .rex-orders-filter-track a:hover {
  background: #243044;
  color: #f2f4f7;
}

body.dark .rex-orders-filter-track a.is-on {
  background: #1e3a5f;
  color: #d6deff;
  box-shadow: none;
}

body.dark .rex-product-panel {
  background: #101828;
  border: 1px solid #344054;
}

body.dark .rex-catalog-name,
body.dark .rex-product-datum > .mdi {
  color: #9eb0ff;
}

body.dark .rex-catalog-generic,
body.dark .rex-product-label {
  color: #98a2b3;
}

body.dark .rex-product-value {
  color: #f2f4f7;
}

body.dark .rex-product-mark,
body.dark .rex-catalog-chip {
  background: #1e3a5f;
  color: #d6deff;
}
