:root {
  color-scheme: light;
  --bg: #f7faf8;
  --panel: #ffffff;
  --panel-muted: #eef6f2;
  --ink: #14232b;
  --muted: #5d6d76;
  --line: #d8e4de;
  --green: #178765;
  --green-strong: #0d684e;
  --green-soft: #dff2ea;
  --shadow: 0 18px 55px rgba(20, 35, 43, 0.12);
}

/* Administrator users and access */
.sidebar-link.is-users::before,
.dashboard-page-head h1.is-users::before {
  content: "\f0c0";
}

.admin-users-screen.is-active {
  display: flex;
  min-height: 0;
}

.admin-users-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-users-summary {
  display: grid;
  flex: 0 0 60px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 60px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-users-summary > div {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  padding: 9px 14px;
  border-right: 1px solid var(--line);
}

.admin-users-summary > div:last-child { border-right: 0; }
.admin-users-summary small { color: #71838b; font-size: 9px; line-height: 13px; }
.admin-users-summary strong { color: #17333c; font-size: 17px; line-height: 23px; }
.admin-users-summary strong.is-ready { color: var(--green-strong); font-size: 12px; }
.admin-users-summary strong.is-observation { color: #a86b0a; font-size: 12px; }

.admin-users-toolbar {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.admin-users-search {
  position: relative;
  display: flex;
  flex: 1 1 280px;
  max-width: 420px;
}

.admin-users-search > span::before {
  position: absolute;
  top: 50%;
  left: 11px;
  color: #6d8088;
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f002";
  transform: translateY(-50%);
}

.admin-users-search input {
  width: 100%;
  height: 30px;
  padding: 0 10px 0 31px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #cfded8;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
}

.admin-users-online-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  color: #60747c;
  background: transparent;
  border: 1px solid #d5e1dd;
  border-radius: 4px;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.admin-users-online-filter::before { width: 7px; height: 7px; background: #a8b7b2; border-radius: 50%; content: ""; }
.admin-users-online-filter:hover { background: #f1f6f4; }
.admin-users-online-filter.is-active { color: var(--green-strong); background: #e8f4ef; border-color: #c5e2d8; font-weight: 700; }
.admin-users-online-filter.is-active::before { background: #10a276; box-shadow: 0 0 0 3px rgba(16,162,118,.12); }

.admin-users-refresh {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  color: #587078;
  background: #fff;
  border: 1px solid #cfded8;
  border-radius: 4px;
  cursor: pointer;
}
.admin-users-refresh::before { font-family: "FontAwesome"; content: "\f021"; }
.admin-users-refresh.is-loading::before { animation: spin 0.8s linear infinite; }

.admin-users-layout {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(520px, 1.45fr) minmax(330px, 0.85fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
}

.admin-users-list-pane { min-width: 0; overflow: auto; border-right: 1px solid var(--line); }
.admin-users-list-pane, .admin-user-detail { scrollbar-color: #9eb2ab transparent; scrollbar-width: thin; }
.admin-users-list-pane::-webkit-scrollbar, .admin-user-detail::-webkit-scrollbar { width: 6px; height: 6px; }
.admin-users-list-pane::-webkit-scrollbar-track, .admin-user-detail::-webkit-scrollbar-track { background: transparent; }
.admin-users-list-pane::-webkit-scrollbar-thumb, .admin-user-detail::-webkit-scrollbar-thumb { background: #9eb2ab; border-radius: 6px; }
.admin-users-list-pane::-webkit-scrollbar-thumb:hover, .admin-user-detail::-webkit-scrollbar-thumb:hover { background: #78968c; }
.admin-users-table-wrap { position: relative; min-height: 100%; }
.admin-users-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-users-table th { position: sticky; z-index: 2; top: 0; height: 34px; padding: 0 10px; color: #74868d; background: #f7faf9; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 700; text-align: left; text-transform: uppercase; }
.admin-users-table th:nth-child(1) { width: 45%; }
.admin-users-table th:nth-child(2),
.admin-users-table th:nth-child(3),
.admin-users-table th:nth-child(4),
.admin-users-table th:nth-child(5) { width: 13.75%; text-align: center; }
.admin-users-table td { height: 58px; padding: 8px 10px; color: #29414a; border-bottom: 1px solid #e7eeeb; font-size: 10px; vertical-align: middle; }
.admin-users-table td:not(:first-child):not(:last-child) { text-align: center; }
.admin-users-table tr { cursor: pointer; transition: background 140ms ease; }
.admin-users-table tbody tr:hover { background: #f5faf8; }
.admin-users-table tbody tr.is-selected { background: #eaf6f2; box-shadow: inset 3px 0 var(--green); }

.admin-user-cell { display: flex; min-width: 0; align-items: center; gap: 9px; }
.admin-user-avatar { position: relative; display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--green-strong); background: #e5f3ee; border-radius: 50%; font-family: "FontAwesome"; font-size: 13px; }
.admin-user-avatar::before { content: "\f007"; }
.admin-user-avatar.is-online::after { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; background: #12a478; border: 2px solid #fff; border-radius: 50%; content: ""; }
.admin-user-cell > span { display: flex; min-width: 0; flex-direction: column; }
.admin-user-cell strong { overflow: hidden; color: #17333c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-display-name { cursor: text; }
.admin-user-name-input { width: min(100%, 210px); height: 24px; padding: 0 6px; color: #17333c; background: #fff; border: 1px solid var(--green); border-radius: 3px; outline: none; font: inherit; font-size: 10px; font-weight: 700; }
.admin-user-cell small { overflow: hidden; color: #768990; font-family: monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-fixture { color: #7d6a18; }

.admin-user-error-count.is-alert { color: #b64b43; font-weight: 700; }
.admin-user-ip-count { display: inline-flex; align-items: baseline; }
.admin-user-ip-count.has-blocked { font-weight: 700; }
.admin-user-ip-count-blocked { color: #bd4037; font-weight: 800; }

.admin-users-state { padding: 48px 20px; color: #768990; font-size: 10px; text-align: center; }
.admin-user-detail { min-width: 0; overflow: auto; background: #fbfdfc; }
.admin-user-detail-empty { display: flex; min-height: 100%; align-items: center; justify-content: center; flex-direction: column; padding: 32px; color: #778990; text-align: center; }
.admin-user-detail-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 10px; color: #719188; background: #e8f2ef; border-radius: 50%; font-family: "FontAwesome"; }
.admin-user-detail-empty > span::before { content: "\f2bb"; }
.admin-user-detail-empty strong { color: #29414a; font-size: 12px; }
.admin-user-detail-empty p { max-width: 260px; margin: 6px 0 0; font-size: 9px; line-height: 14px; }
.admin-user-detail-content { padding: 14px; }

.admin-user-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-user-detail-head > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.admin-user-detail-head h2 { margin: 0 0 2px; color: #17333c; font-size: 13px; }
.admin-user-detail-head button { max-width: 210px; overflow: hidden; padding: 0; color: #6b7e86; background: none; border: 0; font-family: monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

.admin-user-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-user-facts > div { padding: 5px 8px; }
.admin-user-facts dt { color: #7a8d94; font-size: 8px; }
.admin-user-facts dd { margin: 2px 0 0; color: #24414a; font-size: 10px; font-weight: 700; }
.admin-user-actions { display: flex; gap: 7px; padding: 10px 0; }
.admin-user-actions button { min-height: 30px; padding: 0 11px; font-size: 9px; }

.admin-user-access-section { padding-top: 10px; border-top: 1px solid var(--line); }
.admin-user-access-section + .admin-user-access-section { margin-top: 12px; }
.admin-user-access-section > header { margin-bottom: 7px; }
.admin-user-access-section h3 { margin: 0; color: #24414a; font-size: 11px; }
.admin-user-access-section header small { color: #7a8d94; font-size: 8px; }
.admin-user-ip-list, .admin-user-session-list { display: grid; gap: 6px; }
.admin-user-show-more { display: block; width: 100%; min-height: 30px; margin-top: 7px; border: 1px dashed #bfd6d0; background: transparent; color: #087f6b; font-size: 9px; font-weight: 700; }
.admin-user-show-more:hover { background: #f4faf8; border-color: #8ebdb2; }
.admin-user-show-more[hidden] { display: none; }
.admin-user-ip-item, .admin-user-session-item { padding: 8px; background: #fff; border: 1px solid #dce7e3; border-radius: 5px; }
.admin-user-ip-item.is-blocked { background: #fff6f5; border-color: #e6aaa4; box-shadow: inset 3px 0 0 #c94d42; }
.admin-user-ip-main, .admin-user-session-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-user-ip-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.admin-user-ip-main code { color: #17333c; font-size: 9px; font-weight: 700; }
.admin-user-ip-item.is-blocked .admin-user-ip-main code { color: #7d2922; }
.admin-user-ip-blocked { padding: 2px 5px; border-radius: 3px; background: #f3d2ce; color: #8c3028; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.admin-user-ip-meta, .admin-user-session-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 5px; color: #768990; font-size: 8px; }
.admin-user-ip-actions, .admin-user-session-actions { display: flex; gap: 5px; }
.admin-user-ip-actions button, .admin-user-session-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 8px; color: #526a72; background: #fff; border: 1px solid #cfddd8; border-radius: 4px; font: inherit; font-size: 8px; cursor: pointer; }
.admin-user-ip-actions button.is-danger { color: #ad4039; border-color: #e6b8b4; }
.admin-user-ip-actions button:disabled { opacity: .45; cursor: not-allowed; }
.admin-user-section-empty { margin: 8px 0; color: #7a8d94; font-size: 9px; }

@media (max-width: 1120px) {
  .admin-users-layout { grid-template-columns: minmax(440px, 1.2fr) minmax(300px, .8fr); }
  .admin-users-table th:nth-child(5), .admin-users-table td:nth-child(5) { display: none; }
}

/* Administrator system status */
.sidebar-link.is-system::before,
.dashboard-page-head h1.is-system::before {
  content: "\f233";
}

#dashboardSystemLink::after {
  display: inline-block;
  margin-left: auto;
  font-family: "FontAwesome";
  font-size: 12px;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "\f105";
}

#dashboardSystemLink.is-active::after {
  transform: rotate(90deg);
}

#dashboardSystemLink.is-active + .system-sidebar-submenu {
  max-height: 82px;
  margin: -2px 4px 5px 14px;
  padding-top: 5px;
  padding-bottom: 4px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.system-sidebar-submenu:has(#systemTabStatus.is-active) { --admin-sidebar-marker-offset: 0px; }
.system-sidebar-submenu:has(#systemTabIncidents.is-active) { --admin-sidebar-marker-offset: 33px; }

#dashboardSystemLink > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboardSystemLink > em,
.system-sidebar-submenu [data-system-tab] em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  padding: 0 5px;
  color: #fff;
  background: #d65b55;
  border-radius: 9px;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

#dashboardSystemLink > em { margin-right: 0; }
#dashboardSystemLink::after { margin-left: 0; }

#dashboardSystemLink > em[hidden],
.system-sidebar-submenu [data-system-tab] em[hidden] {
  display: none;
}

.admin-system-screen.is-active {
  display: flex;
  min-height: 0;
}

.admin-system-workspace,
.admin-system-tab-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.admin-system-tab-panel[hidden] {
  display: none;
}

.admin-system-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  margin-bottom: 10px;
  padding: 8px 14px;
  background: #f7fbfa;
  border: 1px solid #bcded4;
  border-left: 3px solid var(--green-strong);
  border-radius: 6px;
}

.admin-system-banner.is-warning {
  background: #fffaf1;
  border-color: #e8c479;
  border-left-color: #d28a17;
}

.admin-system-banner.is-error {
  background: #fff7f6;
  border-color: #efb6b2;
  border-left-color: #d54f47;
}

.admin-system-banner-icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--green-strong);
  background: #dff3ec;
  border-radius: 50%;
  font-family: "FontAwesome";
  font-size: 17px;
}

.admin-system-banner-icon::before { content: "\f00c"; }
.admin-system-banner.is-warning .admin-system-banner-icon { color: #a86b0a; background: #fff0ce; }
.admin-system-banner.is-warning .admin-system-banner-icon::before { content: "\f071"; }
.admin-system-banner.is-error .admin-system-banner-icon { color: #c64139; background: #fee5e2; }
.admin-system-banner.is-error .admin-system-banner-icon::before { content: "\f00d"; }

.admin-system-banner > div { min-width: 0; }
.admin-system-banner strong { display: block; margin-bottom: 3px; color: #17333c; font-size: 14px; }
.admin-system-banner p { margin: 0; color: var(--muted); font-size: 11px; line-height: 16px; }
.admin-system-banner > small { margin-left: auto; color: #71858c; font-size: 9px; white-space: nowrap; }

.admin-system-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 70px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-system-metric {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.admin-system-metric:last-child { border-right: 0; }
.admin-system-metric-icon { display: inline-flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--green-strong); background: #edf6f3; border-radius: 5px; font-family: "FontAwesome"; font-size: 16px; }
.admin-system-metric.is-backend .admin-system-metric-icon::before { content: "\f1d8"; }
.admin-system-metric.is-database .admin-system-metric-icon::before { content: "\f1c0"; }
.admin-system-metric.is-node .admin-system-metric-icon::before { content: "\f1eb"; }
.admin-system-metric.is-incidents .admin-system-metric-icon::before { content: "\f12a"; }
.admin-system-metric > div { display: flex; min-width: 0; flex-direction: column; }
.admin-system-metric small { color: #819198; font-size: 9px; line-height: 13px; }
.admin-system-metric strong { color: #17333c; font-size: 12px; line-height: 18px; }
.admin-system-metric div > span { overflow: hidden; color: #71858c; font-size: 9px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-system-metric > em { position: absolute; top: 10px; right: 11px; color: var(--green-strong); font-size: 8px; font-style: normal; }
.admin-system-metric > em::before { display: inline-block; width: 5px; height: 5px; margin-right: 4px; background: #12a67a; border-radius: 50%; content: ""; }
.admin-system-metric.is-warning > em { color: #a86b0a; }
.admin-system-metric.is-warning > em::before { background: #df971d; }
.admin-system-metric.is-error > em { color: #c64139; }
.admin-system-metric.is-error > em::before { background: #d6534b; }

.admin-system-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.8fr);
  gap: 14px;
  min-height: 0;
}

.admin-system-card {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-system-card > header,
.admin-system-watch > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-system-card h2,
.admin-system-watch h3 { margin: 0 0 3px; color: #19353e; font-size: 13px; line-height: 18px; letter-spacing: 0; }
.admin-system-card header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 15px; }
.admin-system-chip { flex: 0 0 auto; padding: 4px 8px; color: var(--green-strong); background: #eff8f5; border: 1px solid #cde3dc; border-radius: 4px; font-size: 9px; white-space: nowrap; }
.admin-system-chip.is-warning { color: #9b650f; background: #fff8e8; border-color: #ecd294; }
.admin-system-chip.is-error { color: #bd3f38; background: #fff1f0; border-color: #efc2bf; }

.admin-system-node-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fbfdfc; border-bottom: 1px solid var(--line); }
.admin-system-node-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 10px 14px; border-right: 1px solid var(--line); }
.admin-system-node-summary > div:last-child { border-right: 0; }
.admin-system-node-summary span { color: #74878e; font-size: 9px; }
.admin-system-node-summary strong { overflow: hidden; color: #17333c; font-size: 15px; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.admin-system-node-summary strong.is-ok { color: var(--green-strong); }

.admin-system-node-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 4px 14px 8px; }
.admin-system-node-details > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 29px; padding: 5px 8px 5px 0; border-bottom: 1px solid #edf2f0; }
.admin-system-node-details > div:nth-child(odd) { margin-right: 13px; }
.admin-system-node-details dt,
.admin-system-node-details dd { margin: 0; font-size: 10px; }
.admin-system-node-details dt { color: #6d8188; }
.admin-system-node-details dd { max-width: 58%; overflow: hidden; color: #213b43; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.admin-system-node-details dd.is-ok { color: var(--green-strong); }

.admin-system-watch { border-top: 1px solid var(--line); }
.admin-system-watch > header { min-height: 38px; border-bottom: 0; }
.admin-system-watch > header h3 { margin: 0; }
.admin-system-watch code { color: #60767d; font-size: 9px; }
.admin-system-watch dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0 14px 8px; }
.admin-system-watch dl > div { display: flex; justify-content: space-between; gap: 10px; min-height: 25px; padding: 4px 8px 4px 0; border-bottom: 1px solid #edf2f0; }
.admin-system-watch dt,
.admin-system-watch dd { margin: 0; font-size: 9px; }
.admin-system-watch dt { color: #6d8188; }
.admin-system-watch dd { max-width: 55%; overflow: hidden; color: #213b43; font-weight: 600; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.admin-system-side { display: grid; grid-template-rows: auto minmax(180px, 1fr); gap: 14px; min-height: 0; }
.admin-system-definition { margin: 0; padding: 4px 15px 8px; }
.admin-system-definition > div { display: flex; align-items: center; justify-content: space-between; min-height: 29px; border-bottom: 1px solid #edf2f0; }
.admin-system-definition > div:last-child { border-bottom: 0; }
.admin-system-definition dt,
.admin-system-definition dd { margin: 0; font-size: 10px; }
.admin-system-definition dt { color: #71858c; }
.admin-system-definition dd { color: #203b43; font-weight: 600; }
.admin-system-definition dd.is-ok { color: var(--green-strong); }
.admin-system-definition dd.is-warning { color: #9b650f; }
.admin-system-definition dd.is-error { color: #bd3f38; }
.admin-system-service-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.admin-system-service-status::before { width: 6px; height: 6px; background: #819198; border-radius: 50%; content: ""; }
.admin-system-service-status.is-ok::before { background: #17b77e; box-shadow: 0 0 0 2px rgba(23, 183, 126, 0.12); }
.admin-system-service-status.is-warning::before { background: #df971d; box-shadow: 0 0 0 2px rgba(223, 151, 29, 0.12); }
.admin-system-service-status.is-error::before { background: #d6534b; box-shadow: 0 0 0 2px rgba(214, 83, 75, 0.12); }

.admin-system-empty { display: flex; min-height: 145px; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.admin-system-empty > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 8px; color: var(--green-strong); background: #e2f4ee; border-radius: 50%; font-family: "FontAwesome"; font-size: 17px; }
.admin-system-empty > span::before { content: "\f00c"; }
.admin-system-empty strong { margin-bottom: 4px; color: #203a43; font-size: 12px; }
.admin-system-empty p { margin: 0; color: var(--muted); font-size: 10px; }

.admin-system-latest { padding: 6px 14px 12px; }
.admin-system-incident-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 26px; gap: 10px; align-items: center; min-height: 54px; padding: 8px 0; border-bottom: 1px solid #edf2f0; }
.admin-system-incident-row:last-child { border-bottom: 0; }
.admin-system-incident-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #a86b0a; background: #fff0ce; border-radius: 4px; font-family: "FontAwesome"; font-size: 11px; }
.admin-system-incident-icon::before { content: "\f071"; }
.admin-system-incident-row.is-error .admin-system-incident-icon,
.admin-system-incident-row.is-critical .admin-system-incident-icon { color: #c64139; background: #fee5e2; }
.admin-system-incident-row.is-error .admin-system-incident-icon::before,
.admin-system-incident-row.is-critical .admin-system-incident-icon::before { content: "\f00d"; }
.admin-system-incident-row.is-resolved { opacity: 0.66; }
.admin-system-incident-row.is-resolved .admin-system-incident-icon { color: var(--green-strong); background: #e2f4ee; }
.admin-system-incident-row.is-resolved .admin-system-incident-icon::before { content: "\f00c"; }
.admin-system-incident-copy { min-width: 0; }
.admin-system-incident-copy strong,
.admin-system-incident-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-system-incident-copy strong { color: #213b43; font-size: 10px; }
.admin-system-incident-copy span,
.admin-system-incident-row time { color: #75888e; font-size: 9px; }
.admin-system-incident-resolve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--green-strong);
  background: #f5fbf9;
  border: 1px solid #b8d8ce;
  border-radius: 4px;
  font-family: "FontAwesome";
  font-size: 11px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.admin-system-incident-resolve::before { content: "\f00c"; }
.admin-system-incident-resolve:hover { color: #087356; background: #e5f6f0; border-color: #159879; }
.admin-system-incident-resolve:focus-visible { outline: 2px solid rgba(23, 135, 101, 0.28); outline-offset: 2px; }
.admin-system-incident-resolve:disabled { cursor: wait; opacity: 0.55; }
.admin-system-incident-row.is-resolved::after { width: 26px; content: ""; }

.admin-system-incidents-card { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.admin-system-incident-list { min-height: 0; overflow: auto; padding: 0 15px; scrollbar-width: thin; scrollbar-color: #bad3cb transparent; }
.admin-system-empty.is-list { flex: 1 1 auto; min-height: 260px; }

@media (max-width: 1100px) {
  .admin-system-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-system-metric:nth-child(2) { border-right: 0; }
  .admin-system-metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .admin-system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .admin-system-banner { align-items: flex-start; }
  .admin-system-banner > small { display: none; }
  .admin-system-metrics { grid-template-columns: 1fr; }
  .admin-system-metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-system-metric:last-child { border-bottom: 0; }
  .admin-system-node-summary,
  .admin-system-node-details,
  .admin-system-watch dl { grid-template-columns: 1fr; }
  .admin-system-node-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-system-node-summary > div:last-child { border-bottom: 0; }
  .admin-system-node-details > div:nth-child(odd) { margin-right: 0; }
}

@font-face {
  font-family: "FontAwesome";
  src: url("../font/fontawesome-webfont.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100vh;
  opacity: 1;
  transform: translateY(0);
  transition: filter 160ms ease, opacity 220ms ease, transform 220ms ease;
}

.app-shell.is-dimmed {
  filter: blur(1px);
}

body.is-booting .app-shell {
  opacity: 0;
  transform: translateY(8px);
}

body[data-page="home"]:not(.is-booting) .app-shell {
  transform: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 18px;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.is-booting .boot-screen {
  opacity: 1;
  pointer-events: auto;
}

.boot-screen img {
  width: 112px;
  height: auto;
  clip-path: inset(2px round 8px);
}

.boot-screen span {
  width: 92px;
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.boot-screen span::before {
  display: block;
  width: 38px;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  content: "";
  animation: boot-progress 920ms ease-in-out infinite;
}

@keyframes boot-progress {
  0% {
    transform: translateX(-44px);
  }

  100% {
    transform: translateX(100px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
}

.brand-logo {
  width: 126px;
  max-width: 42vw;
  height: auto;
  display: block;
  clip-path: inset(2px round 8px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-control {
  position: relative;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 82px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
}

.language-button::after {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-control.is-open .language-button::after {
  transform: translateY(2px) rotate(225deg);
}

.language-flag {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 35, 43, 0.08);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(20, 35, 43, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-control.is-open .language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
}

.language-option:hover,
.language-option.is-active {
  background: var(--green-soft);
  color: var(--green-strong);
}

.login-open-button,
.secondary-button,
.primary-button {
  position: relative;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.primary-button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.primary-button.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  content: "";
  animation: invoiceWalletSpin 780ms linear infinite;
}

.login-open-button,
.primary-button {
  color: #fff;
  background: var(--green);
}

.login-open-button:hover,
.primary-button:hover {
  background: var(--green-strong);
}

.node-sync-curtain {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px;
  box-sizing: border-box;
  background: rgba(247, 250, 248, 0.97);
  backdrop-filter: blur(5px);
}

.node-sync-curtain[hidden] {
  display: none;
}

.node-sync-curtain-content {
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  text-align: center;
}

.node-sync-curtain-content img {
  width: 92px;
  height: auto;
  margin-bottom: 30px;
  clip-path: inset(2px round 8px);
}

.node-sync-curtain-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.node-sync-curtain-content p {
  max-width: 520px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.node-sync-progress {
  width: min(320px, 78vw);
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.node-sync-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  animation: boot-progress 920ms ease-in-out infinite;
}

.node-sync-curtain-content small {
  min-height: 18px;
  margin-top: 12px;
  color: #16658b;
  font-size: 12px;
  font-weight: 400;
}

.primary-button:disabled:not(.is-loading),
.primary-button:disabled:not(.is-loading):hover {
  color: #7b8a91;
  background: #e8efec;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

.secondary-button {
  color: var(--green-strong);
  background: var(--green-soft);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.login-open-button.is-light {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}

.login-open-button.is-light:hover {
  color: var(--green-strong);
  background: #f8fcfa;
}

.header-primary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--green-strong);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.header-primary:hover {
  background: #08523d;
}

.account-chip {
  min-height: 40px;
  padding: 0 14px;
  color: var(--green-strong);
  background: var(--green-soft);
  border: 1px solid #b8dccd;
  border-radius: 8px;
  font-weight: 500;
}

.account-chip.is-dashboard-link {
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--green-strong);
  border-color: var(--green-strong);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(13, 104, 78, 0.16);
}

.account-chip.is-dashboard-link:hover {
  background: #08523d;
  border-color: #08523d;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-main {
  width: min(1420px, calc(100% - 32px));
  padding-top: 132px;
}

.landing-header {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 30;
  gap: 24px;
  transition: background-color 280ms ease, box-shadow 280ms ease, min-height 280ms ease, padding 280ms ease;
}

.landing-menu-toggle,
.landing-nav-drawer {
  display: none;
}

.landing-header .brand-logo {
  transition: width 280ms ease, clip-path 280ms ease;
}

.landing-header .landing-nav,
.landing-header .language-button,
.landing-header .login-open-button,
.landing-header .account-chip {
  transition: color 220ms ease, background-color 280ms ease, border-color 280ms ease;
}

.landing-header.is-scrolled {
  min-height: 70px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(18, 43, 46, 0.97);
  box-shadow: 0 12px 30px rgba(8, 31, 33, 0.2);
  backdrop-filter: blur(18px);
}

.landing-header.is-scrolled .brand-logo {
  width: 64px;
  clip-path: inset(1px round 6px);
}

.landing-header.is-scrolled .landing-nav {
  color: #d8e8e6;
}

.landing-header.is-scrolled .landing-nav a:hover {
  color: #68d4b7;
}

.landing-header.is-scrolled .language-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(216, 232, 230, 0.26);
}

.landing-header.is-scrolled .language-button::after {
  border-color: #bcd3cf;
}

.landing-header.is-scrolled .login-open-button.is-light,
.landing-header.is-scrolled .account-chip:not(.is-dashboard-link) {
  color: #fff;
  background: #168066;
  border-color: #168066;
}

.landing-header.is-scrolled .login-open-button.is-light:hover,
.landing-header.is-scrolled .account-chip:not(.is-dashboard-link):hover {
  color: #fff;
  background: #1a9477;
  border-color: #1a9477;
}

.landing-main [id] {
  scroll-margin-top: 86px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  min-width: 0;
  color: #10232f;
  font-size: 14px;
  font-weight: 500;
}

.landing-nav a {
  white-space: nowrap;
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--green-strong);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 58px 0 44px;
}

.landing-hero {
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.18fr);
  gap: clamp(34px, 5vw, 86px);
  min-height: auto;
  padding: 34px 0 18px;
}

.hero-copy h1,
.dashboard-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-hero .hero-copy h1 {
  max-width: 660px;
  font-size: 56px;
  line-height: 1.04;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.landing-hero .hero-lead {
  max-width: 590px;
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
}

.icon-play::before {
  content: "\f04b";
}

.icon-arrow::before {
  content: "\f061";
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 690px;
  margin-top: 58px;
}

.landing-hero .hero-benefits { margin-top: 42px; }

.landing-hero .hero-benefits article {
  position: relative;
  z-index: 1;
  cursor: default;
  outline: none;
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, z-index 0s 180ms;
}

.landing-hero .hero-benefits article:hover,
.landing-hero .hero-benefits article:focus-visible,
.landing-hero .hero-benefits article:focus-within {
  z-index: 20;
  transform: translateY(-3px) scale(1.045);
  transition: transform 180ms ease, z-index 0s;
}

.landing-hero .hero-benefits article:focus-visible .landing-icon {
  box-shadow: 0 0 0 3px rgba(22, 147, 111, 0.16);
}

.hero-benefit-note {
  display: block;
  color: #60727a;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-feature-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(238px, calc(100vw - 40px));
  padding: 11px 12px;
  border: 1px solid #cfe0da;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 35, 43, 0.14);
  color: #263a42;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 150ms ease, transform 180ms ease, visibility 0s 180ms;
}

.hero-feature-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #cfe0da;
  border-bottom: 1px solid #cfe0da;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.landing-hero .hero-benefits article:hover .hero-feature-bubble,
.landing-hero .hero-benefits article:focus-visible .hero-feature-bubble,
.landing-hero .hero-benefits article:focus-within .hero-feature-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 150ms ease, transform 180ms ease, visibility 0s;
}

.landing-hero .hero-benefits article:first-child .hero-feature-bubble {
  left: 0;
  transform: translate(0, 7px);
}

.landing-hero .hero-benefits article:first-child:hover .hero-feature-bubble,
.landing-hero .hero-benefits article:first-child:focus-visible .hero-feature-bubble,
.landing-hero .hero-benefits article:first-child:focus-within .hero-feature-bubble {
  transform: translate(0, 0);
}

.landing-hero .hero-benefits article:first-child .hero-feature-bubble::after {
  left: 60px;
}

.landing-hero .hero-benefits article:last-child .hero-feature-bubble {
  right: 0;
  left: auto;
  transform: translate(0, 7px);
}

.landing-hero .hero-benefits article:last-child:hover .hero-feature-bubble,
.landing-hero .hero-benefits article:last-child:focus-visible .hero-feature-bubble,
.landing-hero .hero-benefits article:last-child:focus-within .hero-feature-bubble {
  transform: translate(0, 0);
}

.landing-hero .hero-benefits article:last-child .hero-feature-bubble::after {
  right: 60px;
  left: auto;
  transform: rotate(45deg);
}

.hero-benefits article,
.benefit-strip article,
.module-grid article {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.hero-benefits strong,
.benefit-strip strong,
.module-grid strong {
  font-size: 13px;
  line-height: 1.25;
}

.landing-icon,
.process-art,
.big-visual {
  display: inline-grid;
  place-items: center;
  color: var(--green-strong);
}

.landing-icon {
  width: 48px;
  height: 48px;
  background: #f4fbf8;
  border: 1px solid #b9ded0;
  border-radius: 8px;
  font-family: "FontAwesome";
  font-size: 24px;
  line-height: 1;
}

.icon-token::before { content: "\f0d6"; }
.icon-invoice::before { content: "\f0f6"; }
.icon-shield::before { content: "\f132"; }
.icon-transfer::before { content: "\f0ec"; }
.icon-exchange::before { content: "\f01e"; }
.icon-cart::before { content: "\f07a"; }
.icon-users::before { content: "\f0c0"; }
.icon-risk::before { content: "\f21b"; }
.icon-file::before { content: "\f15b"; }
.icon-user-card::before { content: "\f2bb"; }
.icon-network::before { content: "\f1b3"; }
.icon-wallet-ok::before { content: "\f00c"; }
.icon-user::before { content: "\f007"; }
.icon-search::before { content: "\f002"; }
.icon-wallet::before { content: "\f0d6"; }
.icon-search-file::before { content: "\f002"; }
.icon-card-ok::before { content: "\f14a"; }
.icon-node::before { content: "\f1e0"; }
.icon-aml::before { content: "\f21e"; }
.icon-cube::before { content: "\f1b2"; }
.icon-settings::before { content: "\f013"; }
.icon-api::before { content: "\f121"; }
.icon-lock::before { content: "\f023"; }
.icon-list::before { content: "\f03a"; }
.icon-dashboard::before { content: "\f0e4"; }
.icon-code::before { content: "\f121"; }

.dashboard-mockup {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 510px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mock-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  padding: 18px 10px;
  color: #d8e8e6;
  background: #122b2e;
  font-size: 11px;
}

.mock-sidebar > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  min-width: 0;
  padding: 0 9px;
  white-space: nowrap;
}

.mock-sidebar .is-active {
  color: #fff;
  background: #168066;
  border-radius: 6px;
}

.mock-brand img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 17px;
  border-radius: 6px;
}

.mock-sidebar .mock-factory-link {
  position: relative;
  padding-left: 16px;
  color: #c8d8d6;
  font-size: 10px;
}

.mock-sidebar .mock-factory-link.is-selected {
  color: #fff;
  border-left: 2px solid #2cba99;
  font-weight: 600;
}

.mock-factory-link img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  border-radius: 50%;
}

.mock-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  font-family: "FontAwesome";
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  text-align: center;
}

.mock-icon-factory::before { content: "\f19c"; }
.mock-icon-invoice::before { content: "\f0f6"; }
.mock-icon-events::before { content: "\f0a1"; }
.mock-icon-settings::before { content: "\f013"; }
.mock-icon-chevron::before { content: "\f107"; }
.mock-icon-plus::before { content: "\f067"; }
.mock-icon-check::before { content: "\f00c"; }

.mock-content {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
  min-width: 0;
  padding: 18px 18px 20px;
  color: #1e333c;
  font-size: 11px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 0 14px;
}

.mock-top > strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 600;
}

.mock-top > strong .mock-icon {
  color: #137d61;
  font-size: 14px;
}

.mock-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 8px;
  color: #2f4f58;
  border: 1px solid #d7e5e5;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}

.mock-account-dot {
  width: 6px;
  height: 6px;
  background: #1b9e7e;
  border-radius: 50%;
}

.mock-statline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #dbe8e6;
  padding-bottom: 11px;
}

.mock-statline > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid #e1ebeb;
}

.mock-statline > span:first-child { padding-left: 0; border-left: 0; }

.mock-statline small,
.mock-factory-metrics small,
.mock-addresses small {
  color: #6a7e85;
  font-size: 9px;
}

.mock-statline strong {
  color: #16658b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 37px;
  border-bottom: 1px solid #dbe8e6;
}

.mock-tabs span {
  position: relative;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  align-self: end;
  height: 31px;
  padding: 0 11px;
  color: #596d76;
  background: #f2f8f8;
  border: 1px solid #dbe8e6;
  border-bottom-color: transparent;
  border-radius: 5px 5px 0 0;
  font-size: 10px;
}

.mock-tabs .is-active {
  height: 32px;
  color: #146e56;
  background: #fff;
  border-bottom-color: #fff;
  font-weight: 600;
}

.mock-factory {
  padding: 16px 0 13px;
  border-bottom: 1px solid #dbe8e6;
}

.mock-factory-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-factory-head > img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.mock-factory-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mock-factory-head > div > strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-active {
  justify-self: start;
  padding: 2px 6px;
  color: #127353;
  background: #e8f7f0;
  border-radius: 4px;
  font-size: 9px;
}

.mock-create {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 8px 10px;
  color: #fff;
  background: #178363;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mock-addresses {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.mock-addresses > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.mock-addresses small { flex: 0 0 83px; }
.mock-addresses strong { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.mock-factory-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.mock-factory-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 8px;
  background: #eaf8fc;
  border-radius: 4px;
}

.mock-factory-metrics strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-table {
  min-width: 0;
  padding-top: 12px;
}

.mock-table-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #0b6950;
  font-size: 10px;
  text-transform: uppercase;
}

.mock-table-head strong { font-weight: 600; }
.mock-table-head a { color: inherit; text-decoration: none; }
.mock-table-head a:hover { text-decoration: underline; }

.mock-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.mock-table td {
  overflow: hidden;
  padding: 8px 4px;
  border-bottom: 1px solid #e2eded;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-table td:first-child { width: 42%; }
.mock-table td:nth-child(2) { width: 19%; }
.mock-table td:nth-child(3) { width: 23%; }
.mock-table td:last-child { width: 16%; color: #72828a; text-align: right; }
.mock-table .status { min-height: 18px; padding: 0 5px; font-size: 9px; }

.mock-invoice-token { width: 15px; height: 15px; margin-right: 5px; object-fit: contain; vertical-align: middle; }

.mock-toast {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(220px, calc(100% - 32px));
  padding: 9px 10px;
  color: #24434a;
  background: #fff;
  border: 1px solid #bddfd4;
  border-left: 3px solid #178363;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(20, 45, 48, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px) translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mock-toast.is-visible { opacity: 1; transform: translateX(0) translateY(0); }
.mock-toast > .mock-icon { color: #168363; font-size: 14px; }
.mock-toast > span { display: grid; gap: 2px; min-width: 0; }
.mock-toast strong { font-size: 10px; }
.mock-toast small { overflow: hidden; color: #627982; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 400px) {
  .mock-table td:first-child { width: 38%; }
  .mock-table td:nth-child(2) { width: 27%; }
  .mock-table td:nth-child(3) { width: 21%; }
  .mock-table td:last-child { width: 14%; }
  .mock-invoice-token { width: 13px; height: 13px; margin-right: 3px; }
}

.mock-table tr {
  transition: background 220ms ease;
}

.mock-table tr.is-new {
  animation: mock-row-in 520ms ease both;
}

@keyframes mock-row-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  transition: color 180ms ease, background 180ms ease;
}

.status.is-paid {
  color: var(--green-strong);
  background: var(--green-soft);
}

.status.is-created {
  color: #286173;
  background: #e5f4f7;
}

.status.is-waiting {
  color: #9b6a13;
  background: #fff1c7;
}

.status.is-review {
  color: #5950a8;
  background: #ece9ff;
}

.secondary-link {
  color: var(--green-strong);
  font-weight: 500;
  text-decoration: none;
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 0 14px;
  background: #f9fcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  text-align: right;
}

.content-band {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.landing-section {
  margin: 22px 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.muted-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  background: var(--panel-muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-head.compact p {
  margin: 0;
  color: var(--muted);
}

.section-head h2,
.two-column h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.landing-section .section-head h2,
.large-card h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.split-cards .large-card h2 {
  margin-top: 0;
  line-height: 1.12;
}

.audience-grid,
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.landing-card-carousel {
  min-width: 0;
}

.landing-card-carousel-nav {
  display: none;
}

.integration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.integration-link-card {
  color: inherit;
  text-decoration: none;
  transform: translateZ(0) scale(1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.integration-link-card:hover,
.integration-link-card:focus-visible {
  border-color: #8ccbbb;
  box-shadow: 0 10px 22px rgba(11, 75, 63, 0.08);
  transform: translateZ(0) scale(1.015);
}

.integration-link-card:focus-visible {
  outline: 2px solid rgba(0, 135, 109, 0.28);
  outline-offset: 3px;
}

.info-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 20px;
  align-items: center;
  min-height: 148px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card h3 {
  margin: 0;
  font-size: 18px;
}

.info-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#audience .info-card > .landing-icon {
  grid-row: 1 / span 2;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 28px;
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.process-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 14px;
  row-gap: 18px;
  min-width: 0;
  min-height: 292px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.process-flow article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -18px;
  display: grid;
  place-items: center;
  width: 18px;
  color: var(--green);
  font-family: "FontAwesome";
  text-align: center;
  content: "\f061";
  transform: translateY(-50%);
}

.process-art {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 48px;
  height: 48px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "FontAwesome";
  font-size: 28px;
}

.process-flow article:nth-of-type(1) .process-art::before { content: "\f145"; }
.process-flow article:nth-of-type(2) .process-art::before { content: "\f2b5"; }
.process-flow article:nth-of-type(3) .process-art::before { content: "\f06e"; }
.process-flow article:nth-of-type(4) .process-art::before { content: "\f16c"; }

.process-flow h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.process-flow p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.payment-scheme-section {
  padding: 28px;
}

.payment-scheme {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 42px minmax(170px, 1.25fr) 42px minmax(160px, 1.15fr) 42px minmax(170px, 1.25fr);
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.payment-scheme h3 {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 12px;
  font-size: 24px;
}

.scheme-node {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  font-size: 13px;
}

.scheme-line {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--green);
  background: transparent;
  font-family: "FontAwesome";
  font-size: 18px;
}

.scheme-line::before {
  content: "\f061";
}

.payment-scheme .scheme-node:nth-of-type(5) .landing-icon::before {
  content: "\f06e";
}

.benefit-strip,
.module-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
}

.payment-scheme .scheme-node strong,
.benefit-strip article strong {
  font-weight: 400;
}

.benefit-strip article:nth-child(2) .landing-icon::before {
  content: "\f0c1";
}

.benefit-strip article:nth-child(3) .landing-icon::before {
  content: "\f1b3";
}

.benefit-strip article:nth-child(4) .landing-icon::before {
  content: "\f132";
}

.benefit-strip article:nth-child(5) .landing-icon::before {
  display: inline-block;
  content: "\f000";
  transform: rotate(180deg);
}

.split-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  background: transparent;
  border: 0;
  padding: 0;
}

.split-cards-section {
  padding: 0;
  background: transparent;
  border: 0;
}

.large-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 318px;
  padding: 28px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-card {
  grid-template-columns: 1fr;
}

.large-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
}

.check-list li::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green-strong);
  border: 1px solid #a9d7c5;
  border-radius: 999px;
  font-family: "FontAwesome";
  font-size: 10px;
  content: "\f00c";
}

.big-visual {
  align-self: end;
  width: 112px;
  height: 140px;
  color: #fff;
  background: linear-gradient(145deg, #0c4a43, #17946e);
  border-radius: 8px 8px 48px 48px;
  font-family: "FontAwesome";
  font-size: 44px;
}

#security .big-visual {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 60px;
  height: 72px;
  border-radius: 8px 8px 26px 26px;
  font-size: 30px;
}

#security h2 {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-left: 76px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.token-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
}

.token-grid span {
  justify-content: center;
  padding-inline: 8px;
}

.token-grid span:nth-child(1) { grid-column: 3 / 5; }
.token-grid span:nth-child(2) { grid-column: 1 / 3; }
.token-grid span:nth-child(3) { grid-column: 3 / 5; }
.token-grid span:nth-child(4) { grid-column: 5 / 7; }
.token-grid span:nth-child(5) { grid-column: 1 / 4; }
.token-grid span:nth-child(6) { grid-column: 4 / 7; }

.token-grid img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 999px;
}

.percent-badge {
  position: absolute;
  right: 28px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--green-strong);
  background: #cfeae0;
  border-radius: 999px;
  font-size: 42px;
  font-weight: 600;
}

#fee-model .check-list li:nth-child(n + 4) {
  margin-right: 78px;
}

.pricing-showcase {
  padding: 34px 36px 36px;
  color: #071d2d;
  background: #fff;
  scroll-margin-top: 86px;
}

.pricing-intro {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.9fr);
  column-gap: 44px;
  row-gap: 10px;
  align-items: end;
  padding-bottom: 26px;
}

.pricing-intro > div:first-child {
  grid-row: 1 / 3;
  align-self: center;
}

.pricing-eyebrow,
.pricing-kicker {
  display: block;
  color: #00876d;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-intro h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.14;
  font-weight: 600;
}

.pricing-intro > p {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  color: #536c78;
  font-size: 16px;
  line-height: 1.55;
}

.pricing-fixed-note {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #294b56;
  font-size: 13px;
}

.pricing-fixed-note p {
  margin: 0;
  line-height: 1.4;
}

.pricing-fixed-note-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #00876d;
  border: 1px solid #a8d8ca;
  border-radius: 50%;
  font-family: "FontAwesome";
  font-size: 10px;
}

.pricing-fixed-note-icon::before {
  content: "\f00c";
}

.pricing-options {
  display: grid;
  grid-template-columns: 0.9fr 1.05fr 1.05fr;
  gap: 14px;
}

.pricing-option {
  min-height: 198px;
  padding: 21px 22px 20px;
  background: #fbfdfc;
  border: 1px solid #d3e1dd;
  border-radius: 7px;
}

.pricing-option-primary {
  background: #f1faf7;
  border-color: #62bda8;
  box-shadow: inset 0 3px 0 #119578;
}

.pricing-option-label {
  display: block;
  min-height: 38px;
  color: #2e4a56;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.pricing-option > strong {
  display: block;
  margin-top: 14px;
  color: #082130;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
}

.pricing-option > strong > span {
  font-size: 34px;
  font-weight: 700;
}

.pricing-option > small {
  display: block;
  margin-top: 8px;
  color: #00876d;
  font-size: 12px;
  font-weight: 600;
}

.pricing-option > p {
  margin: 16px 0 0;
  color: #5b717b;
  font-size: 13px;
  line-height: 1.48;
}

.pricing-trial-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 12px;
  row-gap: 5px;
  margin-top: 16px;
}

.pricing-trial-badge {
  grid-column: 1 / -1;
  width: max-content;
  padding: 4px 8px;
  color: #087e68;
  background: #e5f4ef;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-trial-head strong {
  margin: 0;
  color: #082130;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
}

.pricing-trial-head strong span {
  font-size: 34px;
  font-weight: 700;
}

.pricing-trial-head small {
  padding-bottom: 5px;
  color: #00876d;
  font-size: 12px;
  font-weight: 600;
}

.pricing-trial-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  margin-top: 14px;
  padding-top: 12px;
  color: #526b72;
  border-top: 1px solid #d6e2df;
  font-size: 13px;
}

.pricing-trial-next strong {
  color: #092b36;
  font-size: 18px;
  font-weight: 600;
}

.pricing-trial-next small {
  grid-column: 1 / -1;
  color: #087e68;
}

.pricing-option > .pricing-trial-copy {
  margin-top: 14px;
}

.pricing-explain {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 34px;
  padding-top: 32px;
  border-top: 1px solid #dce8e4;
}

.pricing-flow {
  padding-right: 36px;
}

.pricing-tmr {
  padding-left: 36px;
  border-left: 1px solid #dce8e4;
}

.pricing-flow h3,
.pricing-tmr h3 {
  margin: 7px 0 20px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}

.pricing-flow-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}

.pricing-flow-row {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 11px;
  align-items: start;
  padding: 9px 0;
}

.pricing-flow-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #007d64;
  border: 1px solid #a8d8ca;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.pricing-flow-row p {
  margin: 0;
  color: #5b717b;
  font-size: 13px;
  line-height: 1.48;
}

.pricing-flow-row p strong,
.pricing-flow-row p span {
  display: block;
}

.pricing-flow-row p strong {
  color: #132f3b;
  font-size: 14px;
  font-weight: 500;
}

.pricing-contract-note {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 18px;
  padding: 15px 17px;
  background: #edf7f4;
  border-left: 3px solid #168e73;
}

.pricing-note-icon {
  color: #087a63;
  font-family: "FontAwesome";
  font-size: 24px;
  text-align: center;
}

.pricing-note-icon::before {
  content: "\f023";
}

.pricing-contract-note p {
  margin: 0;
  color: #3d5863;
  font-size: 13px;
  line-height: 1.48;
}

.pricing-tmr-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  object-fit: contain;
}

.pricing-tmr > p {
  margin: 0;
  color: #536c78;
  font-size: 14px;
  line-height: 1.55;
}

.pricing-tmr-facts {
  margin: 20px 0 18px;
  border-top: 1px solid #dce8e4;
}

.pricing-tmr-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #dce8e4;
  font-size: 12px;
}

.pricing-tmr-facts span {
  color: #6a7f88;
}

.pricing-tmr-facts strong {
  color: #17343f;
  font-weight: 600;
  text-align: right;
}

.pricing-tmr .pricing-tmr-caption {
  color: #758991;
  font-size: 12px;
}

.dashboard-preview-section,
.integration-section {
  margin-top: 0;
}

.dashboard-preview-section {
  padding: 34px 38px 30px;
  overflow: hidden;
  background: #fbfdfc;
}

.ui-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 24px;
}

.ui-overview-head h2 {
  margin: 5px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.ui-overview-head > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 15px;
  line-height: 1.55;
}

.ui-overview-eyebrow,
.ui-overview-intro small {
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ui-overview-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.5fr);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ui-overview-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: #f1f8f5;
  border-right: 1px solid #d7e5df;
}

.ui-overview-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  color: #fff;
  background: #0c735e;
  border-radius: 8px;
  font-family: "FontAwesome";
  font-size: 22px;
}

.ui-overview-mark::before {
  content: "\f108";
}

.ui-overview-intro small {
  font-size: 10px;
}

.ui-overview-intro h3 {
  max-width: 390px;
  margin: 7px 0 12px;
  font-size: 25px;
  line-height: 1.18;
}

.ui-overview-intro p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.ui-overview-meta {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
}

.ui-overview-meta span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4f666d;
  font-size: 12px;
}

.ui-overview-meta span::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green-strong);
  border: 1px solid #a9d7c5;
  border-radius: 50%;
  font-family: "FontAwesome";
  font-size: 9px;
  content: "\f00c";
}

.ui-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 30px;
}

.ui-feature-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 24px 14px;
  border-bottom: 1px solid #e0eae6;
}

.ui-feature-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ui-feature-row:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid #e0eae6;
}

.ui-feature-row:nth-child(even) {
  padding-left: 28px;
}

.ui-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-strong);
  font-family: "FontAwesome";
  font-size: 17px;
}

.ui-feature-icon-invoices::before { content: "\f15c"; }
.ui-feature-icon-factories::before { content: "\f013"; }
.ui-feature-icon-wallets::before { content: "\f2b5"; }
.ui-feature-icon-aml::before { content: "\f132"; }
.ui-feature-icon-history::before { content: "\f03a"; }
.ui-feature-icon-integration::before { content: "\f121"; }

.ui-feature-row strong {
  display: block;
  margin: 1px 0 6px;
  font-size: 15px;
}

.ui-feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.module-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.module-grid article {
  min-height: 112px;
  padding: 16px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0 0;
  padding: 34px clamp(24px, 5vw, 80px);
  color: #fff;
  background: linear-gradient(135deg, #06313a, #00614f);
  border-radius: 8px;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.cta-band p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 260px;
  min-height: 58px;
  padding: 0 28px;
  color: var(--ink);
  background: var(--panel);
  border: 0;
  border-radius: 8px;
  font-weight: 600;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  min-height: 210px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-number {
  display: inline-flex;
  color: var(--green);
  font-weight: 600;
}

.step-card h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.step-card p,
.copy-stack p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 14px;
  font-size: 18px;
}

.dashboard-view {
  min-height: calc(100vh - 150px);
  padding: 56px 0;
}

.dashboard-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f3f7f5;
}

.login-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 246, 242, 0.72)),
    var(--bg);
}

.login-header {
  position: relative;
  background: transparent;
  backdrop-filter: none;
}

.login-view {
  display: grid;
  place-items: center;
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 112px);
  padding: 32px 0 70px;
}

.login-card {
  width: min(560px, 100%);
  border-color: #cfe3da;
}

.login-card .modal-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-back-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.login-back-link:hover {
  color: var(--green-strong);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f4f7f6;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px 14px;
  color: #dce9e7;
  background: linear-gradient(180deg, #0d2d2c 0%, #101a22 100%);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 0 10px 18px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-brand img {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
}

.dashboard-menu {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.dashboard-factory-submenu {
  display: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  color: #b8cac8;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-link::before {
  color: currentColor;
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f0e4";
}

.sidebar-link.admin-only::before {
  content: "\f0ae";
}

.sidebar-link.is-factories::before {
  content: "\f19c";
}

.sidebar-link.is-invoices::before {
  content: "\f0f6";
}

.sidebar-link.is-address-check::before {
  content: "\f132";
}

.sidebar-link.is-settings::before {
  content: "\f013";
}

.dashboard-sidebar-settings {
  display: none;
}

.dashboard-sidebar-footer {
  display: none;
}

.sidebar-link:hover {
  color: #eefaf6;
  background: rgba(23, 135, 101, 0.16);
}

.sidebar-link.is-active {
  color: #fff;
  background: rgba(23, 135, 101, 0.92);
}

.dashboard-wallet-card {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.dashboard-wallet-card span {
  color: #91a7a5;
  font-size: 12px;
  font-weight: 500;
}

.dashboard-wallet-card strong {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-wallet-card em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #68df9b;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.dashboard-wallet-card em::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.dashboard-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  color: #dce9e7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dashboard-logout-button::before {
  font-family: "FontAwesome";
  font-size: 14px;
  content: "\f08b";
}

.dashboard-logout-button:hover {
  color: #fff;
  background: rgba(23, 135, 101, 0.35);
  border-color: rgba(104, 223, 155, 0.42);
}

.dashboard-main {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px;
  box-sizing: border-box;
}

.dashboard-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-auto-rows: max-content;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  background: rgba(247, 250, 248, 0.86);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.dashboard-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0s linear, visibility 0s linear;
}

.dashboard-loading-overlay img {
  width: 112px;
  height: auto;
  clip-path: inset(2px round 8px);
}

.dashboard-loading-overlay span {
  width: 92px;
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.dashboard-loading-overlay span::before {
  display: block;
  width: 38px;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  content: "";
  animation: boot-progress 920ms ease-in-out infinite;
}

.dashboard-page-head {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.dashboard-page-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dashboard-page-heading > p {
  margin: 0;
  overflow: hidden;
  color: #71858d;
  font-size: 11px;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page-head h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #071b28;
  font-size: 24px;
  line-height: 1.1;
}

.dashboard-page-head h1::before {
  color: var(--green-strong);
  font-family: "FontAwesome";
  font-size: 21px;
  font-weight: 400;
  content: "\f0e4";
}

.dashboard-page-head h1.is-factories::before {
  content: "\f19c";
}

.dashboard-page-head h1.is-invoices::before {
  content: "\f0f6";
}

.dashboard-page-head h1.is-address-check::before {
  content: "\f132";
}

.dashboard-page-head h1.is-notifications::before {
  content: "\f0a1";
}

.dashboard-page-head h1.is-requests::before {
  content: "\f0ae";
}

.dashboard-page-head h1.is-settings::before {
  content: "\f013";
}

.dashboard-utility-toolbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cfdfdc;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(7, 53, 49, 0.06);
}

.dashboard-account-control {
  position: relative;
  display: inline-flex;
}

.dashboard-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 151px;
  height: 34px;
  padding: 0 10px;
  color: #27454a;
  background: #f3f8f7;
  border: 1px solid #d4e4e0;
  border-radius: 5px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.dashboard-account-trigger:hover,
.dashboard-account-control.is-open .dashboard-account-trigger {
  color: #08785f;
  background: #eaf6f2;
  border-color: #b9d9d0;
}

.dashboard-account-trigger:focus-visible,
.dashboard-account-copy:focus-visible,
.dashboard-account-popover .dashboard-logout-button:focus-visible {
  outline: 2px solid var(--green-strong);
  outline-offset: 2px;
}

.dashboard-account-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #25b77b;
  border-radius: 50%;
}

.dashboard-account-trigger strong {
  min-width: 0;
  overflow: visible;
  color: currentColor;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-account-chevron {
  margin-left: auto;
  color: #6d8387;
  font-family: "FontAwesome";
  font-size: 11px;
  line-height: 1;
}

.dashboard-account-chevron::before {
  content: "\f107";
}

.dashboard-account-control.is-open .dashboard-account-chevron {
  transform: rotate(180deg);
}

.dashboard-account-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 308px;
  padding: 16px;
  color: #19383d;
  background: #fff;
  border: 1px solid #cfdfdc;
  border-radius: 7px;
  box-shadow: 0 14px 34px rgba(7, 53, 49, 0.16);
}

.dashboard-account-popover[hidden] {
  display: none;
}

.dashboard-account-popover::before {
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #cfdfdc;
  border-left: 1px solid #cfdfdc;
  content: "";
  transform: rotate(45deg);
}

.dashboard-account-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1ebe8;
}

.dashboard-account-popover-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #142d32;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.dashboard-account-popover-head h2::before {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  background: #078764;
  content: "";
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
}

.dashboard-account-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #13865e;
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-account-online::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: #27ba7d;
  border-radius: 50%;
  content: "";
}

.dashboard-account-address-block {
  padding: 13px 0;
  border-bottom: 1px solid #e1ebe8;
}

.dashboard-account-address-block > span,
.dashboard-account-details dt {
  color: #7a9094;
  font-size: 10px;
  line-height: 1.3;
}

.dashboard-account-address-block > div {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 5px;
}

.dashboard-account-address-block strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #19383d;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-account-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin-left: auto;
  padding: 0;
  color: #08785f;
  background: #edf7f4;
  border: 0;
  border-radius: 5px;
}

.dashboard-account-copy::before {
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f0c5";
}

.dashboard-account-copy.is-copied::before {
  content: "\f00c";
}

.dashboard-account-details {
  display: grid;
  gap: 0;
  margin: 12px 0 14px;
  padding: 0;
  overflow: hidden;
  background: #f7fbfa;
  border: 1px solid #dceae7;
  border-radius: 6px;
}

.dashboard-account-details > div {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
}

.dashboard-account-details > div:not(:last-child)::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 1px;
  background: #dceae7;
  content: "";
}

.dashboard-account-details dt,
.dashboard-account-details dd {
  margin: 0;
}

.dashboard-account-details dd {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  justify-self: end;
  width: 116px;
  color: #27454a;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.dashboard-account-details dd::before {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

#dashboardAccountMethod[data-wallet-provider="tronlink"]::before {
  background-image: url("../img/tronlink-new.png");
}

#dashboardAccountMethod[data-wallet-provider="ledger"]::before {
  background-image: url("../img/ledger-new.png");
}

#dashboardAccountMethod[data-wallet-provider="walletconnect"]::before {
  background-image: url("../img/walletconnect.svg");
}

#dashboardAccountNetwork::before {
  background-image: url("../img/tokens/trx.png");
}

#dashboardAccountRole::before {
  height: auto;
  color: #078764;
  background: none;
  content: "\f2c3";
  font-family: "FontAwesome";
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.dashboard-account-resource-limit {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
  padding: 10px 11px;
  color: #28474c;
  background: #f7fbfa;
  border: 1px solid #dceae7;
  border-radius: 6px;
}

.dashboard-account-resource-limit header,
.dashboard-account-resource-metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-account-resource-limit h3,
.dashboard-account-resource-limit p {
  margin: 0;
}

.dashboard-account-resource-limit h3 {
  color: #173f4a;
  font-size: 11px;
  font-weight: 600;
}

.dashboard-account-resource-limit header span {
  color: #078764;
  font-size: 9px;
  white-space: nowrap;
}

.dashboard-account-resource-limit.is-disabled header span,
.dashboard-account-resource-limit.is-loading header span {
  color: #7a9094;
}

.dashboard-account-resource-limit.is-error header span {
  color: #a63e3e;
}

.dashboard-account-resource-limit p {
  min-height: 12px;
  color: #71888d;
  font-size: 9px;
  line-height: 1.35;
}

.dashboard-account-resource-metric {
  display: grid;
  gap: 4px;
}

.dashboard-account-resource-metric > div span,
.dashboard-account-resource-metric > div strong {
  font-size: 10px;
  line-height: 1;
}

.dashboard-account-resource-metric > div span {
  color: #456168;
}

.dashboard-account-resource-metric > div strong {
  color: #526b71;
  font-weight: 500;
}

.dashboard-account-resource-track {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #dce6e4;
}

.dashboard-account-resource-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #3448ee;
  transition: width 180ms ease;
}

.dashboard-account-resource-metric.is-bandwidth .dashboard-account-resource-track i {
  background: #58b92f;
}

.dashboard-account-resource-limit.is-disabled .dashboard-account-resource-track i,
.dashboard-account-resource-limit.is-loading .dashboard-account-resource-track i,
.dashboard-account-resource-limit.is-error .dashboard-account-resource-track i {
  background: #bfcfcb;
}

.dashboard-account-popover .dashboard-logout-button {
  width: 100%;
  height: 36px;
  min-height: 36px;
  margin: 0;
  color: #a63e3e;
  background: #fff7f7;
  border-color: #edd5d5;
  border-radius: 6px;
  font-size: 12px;
}

.dashboard-account-popover .dashboard-logout-button:hover {
  color: #8f2f2f;
  background: #fceded;
  border-color: #e4bcbc;
}

.dashboard-logout-button .invoice-operation-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-color: currentColor;
  border-top-color: transparent;
}

.dashboard-logout-button.is-loading::before,
.dashboard-logout-button.is-loading .dashboard-logout-label {
  display: none;
}

.dashboard-logout-button.is-loading .invoice-operation-spinner {
  display: inline-block;
}

.dashboard-logout-button.is-loading {
  cursor: wait;
}

.dashboard-utility-button,
.dashboard-language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  color: #526b72;
  background: transparent;
  border: 0;
  border-radius: 5px;
  transition: color 160ms ease, background-color 160ms ease;
}

.dashboard-utility-button:hover,
.dashboard-language-trigger:hover {
  color: #087a62;
  background: #edf7f4;
}

.dashboard-utility-button.is-settings.is-active {
  color: #08785f;
  background: #e8f5f1;
  box-shadow: inset 0 0 0 1px #b9d9d0;
}

.dashboard-utility-button::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: normal;
  line-height: 1;
}

.dashboard-utility-button.is-settings::before {
  content: "\f013";
}

@keyframes dashboard-overlay-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 499px) {
  .token-grid span:nth-child(-n + 4) {
    gap: 0;
    font-size: 0;
  }
}

@media (max-width: 900px) {
  .dashboard-preview-section {
    padding: 24px;
  }

  .ui-overview-head {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .ui-overview-head > p {
    text-align: left;
  }

  .ui-overview-card {
    grid-template-columns: 1fr;
  }

  .ui-overview-intro {
    border-right: 0;
    border-bottom: 1px solid #d7e5df;
  }

  .ui-overview-meta {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .ui-feature-list {
    grid-template-columns: 1fr;
    padding: 8px 18px;
  }

  .ui-feature-row,
  .ui-feature-row:nth-child(odd),
  .ui-feature-row:nth-child(even) {
    padding: 19px 4px;
    border-right: 0;
    border-bottom: 1px solid #e0eae6;
  }

  .ui-feature-row:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-support-chat {
    animation: none;
  }
}

/* Factory AML policy preview. Persistence and activation logic are added separately. */
.factory-aml-settings-field {
  min-height: 116px;
}

.factory-aml-settings-control {
  min-width: 0;
  border-radius: 6px;
  transition: box-shadow 160ms ease;
}

.factory-aml-settings-control > .custom-select .custom-select-trigger {
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-bottom-color: transparent;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
}

.factory-aml-settings-control:has(> .custom-select > .custom-select-trigger:hover),
.factory-aml-settings-control:has(> .custom-select.is-open) {
  box-shadow: 0 0 0 1px rgba(7, 107, 82, 0.35), 0 0 0 4px rgba(7, 107, 82, 0.08);
}

.factory-aml-settings-control > .custom-select > .custom-select-trigger:hover,
.factory-aml-settings-control > .custom-select.is-open > .custom-select-trigger {
  border-color: #c7d9d5;
  border-bottom-color: transparent;
  box-shadow: none;
}

.factory-amlback-options {
  display: grid;
  gap: 4px;
  padding: 5px 8px 6px;
  background: #fff;
  border: 1px solid #c7d9d5;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  transition: opacity 140ms ease;
}

.factory-amlback-options.is-parent-disabled {
  opacity: 0.48;
}

.factory-amlback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
}

.factory-amlback-head > div {
  min-width: 0;
}

.factory-amlback-head strong {
  display: block;
  max-width: none;
  color: #173b46;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
}

.factory-amlback-head small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: #71858d;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-amlback-switch {
  flex: 0 0 auto;
  min-height: 0;
  cursor: pointer;
}

.factory-amlback-switch:has(input:disabled) {
  cursor: not-allowed;
}

.factory-amlback-parameters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  transition: opacity 140ms ease;
}

.factory-amlback-parameters.is-disabled {
  opacity: 0.52;
}

.factory-amlback-parameters > label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.factory-amlback-parameters > label > span {
  color: #789098;
  font-size: 8px;
  line-height: 1;
}

.factory-amlback-parameters .custom-select-trigger {
  min-height: 22px;
  height: 22px;
  padding: 0 18px 0 6px;
  background: #fbfdfd;
  border: 1px solid #d5e3df;
  border-radius: 5px;
  box-shadow: none;
  font-size: 10px;
  line-height: 20px;
}

.factory-amlback-parameters .custom-select-trigger::after {
  right: 7px;
  width: 5px;
  height: 5px;
  border-width: 1px;
}

.factory-amlback-parameters .custom-select.is-open .custom-select-trigger {
  box-shadow: none;
}

.factory-amlback-parameters .custom-select-list {
  z-index: 120;
  min-width: 104px;
}

.factory-amlback-parameters .custom-select-option {
  min-height: 27px;
  padding: 5px 7px;
  font-size: 11px;
}

@media (min-width: 420px) {
  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="approvedMaxFee"] {
    grid-column: 1;
    order: 1;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="minimumInvoiceBalance"] {
    grid-column: 2;
    order: 1;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="approvedMaxFee"] .factory-edit-meta,
  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="minimumInvoiceBalance"] .factory-edit-meta {
    min-height: 31px;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="payoutAddress"] {
    grid-column: 1 / -1;
    order: 2;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="amlEnabled"] {
    grid-column: 1 / -1;
    order: 3;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
    grid-column: 1 / -1;
    order: 4;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="autoConvertUsdtRetainAmount"] {
    grid-column: 1 / -1;
    order: 5;
  }
}

@media (max-width: 419px) {
  .factory-amlback-parameters {
    grid-template-columns: 1fr;
  }
}

/* Compact invoice AML report and its printable counterpart. */
.invoice-aml-panel.has-report {
  height: 100%;
  min-height: 0;
}

.invoice-aml-panel.has-report .invoice-aml-report {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 8px;
}

.invoice-aml-panel.has-report .invoice-aml-report-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.invoice-aml-panel.has-report .invoice-aml-report-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(76px, auto);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 0 0 8px;
  border-bottom: 1px solid #c9dcda;
}

.invoice-aml-panel.has-report .invoice-aml-report-badge {
  width: 38px;
  height: 38px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(122, 39, 32, 0.12));
  transform: scale(1.22);
  transform-origin: center;
}

.invoice-aml-panel.has-report .invoice-aml-report-title,
.invoice-aml-panel.has-report .invoice-aml-report-risk {
  gap: 1px;
}

.invoice-aml-panel.has-report .invoice-aml-report-title > span,
.invoice-aml-panel.has-report .invoice-aml-report-risk > span {
  color: #08785f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.invoice-aml-panel.has-report .invoice-aml-report-title > span > small {
  margin-left: 4px;
  color: #1683a5;
  font-size: 8px;
  font-weight: 400;
  text-transform: none;
}

.invoice-aml-panel.has-report .invoice-aml-report-title > strong,
.invoice-aml-panel.has-report .invoice-aml-report-risk > strong {
  font-size: 15px;
  font-weight: 600;
}

.invoice-aml-panel.has-report .invoice-aml-report-title > small,
.invoice-aml-panel.has-report .invoice-aml-report-risk > small {
  font-size: 10px;
}

.invoice-aml-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #f5f9f8;
  border: 1px solid #c7dad7;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(18, 72, 66, 0.07);
}

.invoice-aml-metric {
  box-sizing: border-box;
  min-width: 0;
  min-height: 32px;
  padding: 3px 6px;
  border-right: 1px solid #d8e5e3;
}

.invoice-aml-metric:nth-child(4n),
.invoice-aml-metric:last-child {
  border-right: 0;
}

.invoice-aml-metric.is-wide {
  grid-column: span 2;
}

.invoice-aml-metric:nth-last-child(-n + 2) {
  padding-bottom: 6px;
}

.invoice-aml-metric > span,
.invoice-aml-metric > strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-aml-metric > span {
  color: #71868c;
  font-size: 9px;
  line-height: 1.1;
}

.invoice-aml-metric > strong {
  margin-top: 1px;
  color: #075777;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.invoice-aml-categories {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c7dad7;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(18, 72, 66, 0.07);
}

.invoice-aml-categories > header {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  background: #f8fbfa;
  border-bottom: 1px solid #d8e5e3;
}

.invoice-aml-categories > header strong {
  color: #173f4a;
  font-size: 12px;
  font-weight: 500;
}

.invoice-aml-categories > header span {
  color: #71868c;
  font-size: 9px;
}

.invoice-aml-category-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  min-height: 0;
  padding: 8px 9px;
  overflow-x: hidden;
  overflow-y: auto;
  column-gap: 14px;
  row-gap: 10px;
  scrollbar-color: rgba(19, 137, 111, 0.38) transparent;
  scrollbar-width: thin;
}

.invoice-aml-category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding-bottom: 6px;
  color: #36545b;
  font-size: 12px;
  line-height: 1.3;
  column-gap: 6px;
}

.invoice-aml-category > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-aml-category > strong {
  color: #075777;
  font-size: 12px;
  font-weight: 600;
}

.invoice-aml-category > i {
  grid-column: 1 / -1;
  height: 2px;
  min-width: 8px;
  margin-top: 3px;
}

.invoice-aml-category-empty {
  grid-column: 1 / -1;
  margin: 20px 0;
  color: #71868c;
  font-size: 12px;
  text-align: center;
}

.invoice-aml-report-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.invoice-aml-pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  color: #08785f;
  background: #fff;
  border: 1px solid #bfd8d3;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(18, 72, 66, 0.05);
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.invoice-aml-pdf-button:hover {
  color: #13896f;
  border-color: #78ae9f;
}

.invoice-aml-pdf-button > span:first-child::before {
  color: #c94b43;
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f1c1";
}

.invoice-aml-print-report {
  display: none;
}

@media (max-width: 680px) {
  .invoice-aml-panel.has-report .invoice-aml-report {
    height: auto;
    overflow-y: auto;
  }

  .invoice-aml-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoice-aml-metric:nth-child(4n) {
    border-right: 1px solid #d8e5e3;
  }

  .invoice-aml-metric:nth-child(2n) {
    border-right: 0;
  }

  .invoice-aml-category-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body.is-printing-invoice-aml-report,
  body.is-printing-invoice-aml-report * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.is-printing-invoice-aml-report {
    min-width: 0 !important;
    background: #fff !important;
  }

  body.is-printing-invoice-aml-report > :not(.invoice-aml-print-report) {
    display: none !important;
  }

  body.is-printing-invoice-aml-report > .invoice-aml-print-report {
    display: block !important;
  }

  .invoice-aml-print-report {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 5mm;
    color: #173f4a;
    background: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
  }

  .invoice-aml-print-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 7px;
  }

  .invoice-aml-print-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .invoice-aml-print-head img {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .invoice-aml-print-head span,
  .invoice-aml-print-head strong,
  .invoice-aml-print-head small {
    display: block;
  }

  .invoice-aml-print-head strong {
    color: #102d37;
    font-size: 17px;
  }

  .invoice-aml-print-head small,
  .invoice-aml-print-head > div:last-child > span {
    color: #71868c;
    font-size: 9px;
  }

  .invoice-aml-print-head .invoice-aml-print-checked-address {
    margin-top: 2px;
    color: #1683a5;
    white-space: nowrap;
  }

  .invoice-aml-print-head > div:last-child {
    display: grid;
    flex: 0 0 88px;
    justify-items: end;
    padding-right: 2px;
    text-align: right;
  }

  .invoice-aml-print-head > div:last-child strong {
    color: #b74332;
    font-size: 15px;
  }

  .invoice-aml-print-section {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #c7dad7;
    border-radius: 6px;
    break-inside: avoid;
  }

  .invoice-aml-print-section > header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 5px 10px;
    background: #f5f9f8;
    border-bottom: 1px solid #d8e5e3;
  }

  .invoice-aml-print-section > header img {
    width: auto;
    height: 24px;
    max-width: 104px;
    object-fit: contain;
    object-position: left center;
  }

  .invoice-aml-print-section > header strong {
    color: #173f4a;
    font-size: 12px;
  }

  .invoice-aml-print-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 14px 10px;
    gap: 3px 28px;
  }

  .invoice-aml-print-facts > div {
    display: grid;
    grid-template-columns: minmax(105px, 1fr) minmax(0, 1.2fr);
    gap: 8px;
    align-items: center;
    min-height: 22px;
  }

  .invoice-aml-print-facts span {
    color: #71868c;
  }

  .invoice-aml-print-facts strong {
    color: #075777;
    text-align: right;
  }

  .invoice-aml-print-connections {
    break-inside: auto;
  }

  .invoice-aml-print-connections-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.75fr);
    gap: 26px;
    align-items: start;
    padding: 10px;
  }

  .invoice-aml-print-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
  }

  .invoice-aml-category.is-print {
    break-inside: avoid;
    font-size: 9px;
  }

  .invoice-aml-category.is-print > strong {
    font-size: 9px;
  }

  .invoice-aml-print-donut {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 8px auto;
    border-radius: 50%;
  }

  .invoice-aml-print-donut > span {
    position: absolute;
    inset: 38px;
    background: #fff;
    border-radius: 50%;
  }

  .invoice-aml-print-report > footer {
    margin-top: 8px;
    color: #71868c;
    font-size: 8px;
  }
}

/* Public landing support requests in the administrator workspace. */
.admin-tab-panel.admin-public-support-panel { gap: 0; overflow: hidden; border: 1px solid #d4e3df; border-radius: 6px; }
.admin-public-support-head { display: grid; grid-template-columns: minmax(190px, 1fr) auto auto; flex: 0 0 auto; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #d8e6e2; }
.admin-public-support-head h3 { margin: 0 0 3px; color: #18343d; font-size: 15px; font-weight: 500; }
.admin-public-support-head p { margin: 0; color: #6c8185; font-size: 10px; }
.admin-public-support-tools { display: flex; align-items: center; gap: 8px; }
.admin-public-support-selection { display: flex; align-items: center; gap: 10px; color: #365b5c; font-size: 11px; }
.admin-public-support-selection[hidden] { display: none; }
.admin-public-support-selection strong { font-weight: 500; white-space: nowrap; }
.admin-public-support-selection > div { display: flex; align-items: center; gap: 7px; }
.admin-public-support-selection-read,
.admin-public-support-selection-delete { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 10px; background: #fff; border: 1px solid #cbded8; border-radius: 4px; font: inherit; font-size: 10px; cursor: pointer; }
.admin-public-support-selection-read { color: #08785f; }
.admin-public-support-selection-delete { color: #a34840; border-color: #e2c9c5; }
.admin-public-support-selection-read > span:first-child::before,
.admin-public-support-selection-delete > span:first-child::before,
.admin-public-support-selection-clear::before { font-family: "FontAwesome"; font-size: 11px; }
.admin-public-support-selection-read > span:first-child::before { content: "\f00c"; }
.admin-public-support-selection-delete > span:first-child::before { content: "\f1f8"; }
.admin-public-support-selection-clear { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #6d8383; background: transparent; border: 0; cursor: pointer; }
.admin-public-support-selection-clear::before { content: "\f00d"; }
.admin-public-support-selection button:disabled { opacity: .45; cursor: default; }
.admin-public-support-search { display: flex; align-items: center; width: min(320px, 28vw); height: 34px; padding: 0 10px; border: 1px solid #cbded8; border-radius: 5px; }
.admin-public-support-search > span::before { color: #78908d; font-family: "FontAwesome"; font-size: 12px; content: "\f002"; }
.admin-public-support-search input { width: 100%; min-width: 0; margin-left: 8px; padding: 0; color: #18343d; background: transparent; border: 0; outline: 0; font: inherit; font-size: 11px; }
.admin-public-support-filters { display: flex; height: 34px; padding: 2px; background: #edf4f2; border: 1px solid #d4e3df; border-radius: 5px; }
.admin-public-support-filters button { display: flex; align-items: center; gap: 5px; padding: 0 11px; color: #5c7473; background: transparent; border: 0; border-radius: 3px; font: inherit; font-size: 10px; cursor: pointer; }
.admin-public-support-filters button.is-active { color: #08785f; background: #fff; box-shadow: 0 1px 2px rgba(25, 65, 56, .12); }
.admin-public-support-filters em { font-size: 9px; font-style: normal; }
.admin-public-support-refresh,
.admin-public-support-pagination button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #39706a; background: #fff; border: 1px solid #cbded8; border-radius: 5px; cursor: pointer; }
.admin-public-support-refresh::before { font-family: "FontAwesome"; font-size: 12px; content: "\f021"; }
.admin-public-support-refresh.is-loading::before { animation: invoice-spin .8s linear infinite; }
.admin-public-support-table-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow-x: auto; overflow-y: hidden; background: #fff; }
.admin-public-support-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.admin-public-support-table th { padding: 10px 12px; color: #66807e; background: #f7faf9; border-bottom: 1px solid #d8e6e2; font-size: 9px; font-weight: 500; text-align: left; }
.admin-public-support-table .admin-public-support-select-cell { width: 44px; padding-right: 4px; padding-left: 12px; text-align: center; }
.admin-public-support-table th:nth-child(2) { width: 72px; }
.admin-public-support-table th:nth-child(3) { width: 170px; }
.admin-public-support-table th:nth-child(4) { width: 210px; }
.admin-public-support-table th:nth-child(6) { width: 150px; }
.admin-public-support-checkbox { appearance: none; display: inline-grid; place-items: center; width: 15px; height: 15px; margin: 0; background: #fff; border: 1px solid #a9c4bd; border-radius: 3px; cursor: pointer; }
.admin-public-support-checkbox:checked { background: #159474; border-color: #159474; }
.admin-public-support-checkbox:checked::before { color: #fff; font-family: "FontAwesome"; font-size: 9px; content: "\f00c"; }
.admin-public-support-checkbox:indeterminate { background: #159474; border-color: #159474; }
.admin-public-support-checkbox:indeterminate::before { width: 7px; height: 1px; background: #fff; content: ""; }
.admin-public-support-checkbox:disabled { opacity: .45; cursor: default; }
.admin-public-support-row { cursor: pointer; }
.admin-public-support-row:hover { background: #f1f8f6; }
.admin-public-support-row.is-unread { background: #f5fbf9; }
.admin-public-support-row.is-unread:hover { background: #edf7f4; }
.admin-public-support-row td { height: 55px; padding: 9px 12px; color: #25454c; border-bottom: 1px solid #e1ebe8; font-size: 13px; font-weight: 400; vertical-align: middle; }
.admin-public-support-row.is-unread td { font-weight: 500; }
.admin-public-support-row td:nth-child(5) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-public-support-row:has(.admin-public-support-checkbox:checked) { background: #eef8f5; }
.admin-public-support-status { display: inline-grid; place-items: center; width: 24px; height: 24px; color: #78908d; }
.admin-public-support-status::before { color: currentColor; font-family: "FontAwesome"; font-size: 15px; font-weight: 400; content: "\f115"; }
.admin-public-support-status.is-unread { color: #0b9374; }
.admin-public-support-status.is-unread::before { content: "\f114"; }
.admin-public-support-state { position: absolute; inset: 36px 0 0; place-items: center; padding: 24px; color: #667e7e; background: #fff; font-size: 12px; }
.admin-public-support-state:not([hidden]) { display: grid; }
.admin-public-support-pagination { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; min-height: 48px; padding: 7px 12px; color: #6a8182; background: #fbfdfc; border-top: 1px solid #d8e6e2; font-size: 10px; }
.admin-public-support-pagination > div { display: flex; align-items: center; gap: 8px; }
.admin-public-support-pagination button { width: 28px; height: 28px; }
.admin-public-support-pagination button:disabled { opacity: .35; cursor: default; }
.admin-public-support-pagination button::before { font-family: "FontAwesome"; font-size: 11px; content: "\f104"; }
.admin-public-support-pagination #adminPublicSupportNext::before { content: "\f105"; }
.admin-public-support-modal { position: relative; width: min(680px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 32px)); overflow: auto; padding: 22px; background: #fff; border-radius: 7px; box-shadow: 0 18px 60px rgba(18, 43, 48, .22); }
.admin-public-support-modal > .modal-close { top: 16px; right: 16px; }
.admin-public-support-modal-head { display: flex; align-items: center; gap: 12px; padding-right: 42px; }
.admin-public-support-modal-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; color: #0b846a; background: #e6f4ef; border-radius: 6px; }
.admin-public-support-modal-icon::before { font-family: "FontAwesome"; font-size: 17px; content: "\f0e0"; }
.admin-public-support-modal-head h2 { margin: 0 0 3px; color: #18343d; font-size: 18px; font-weight: 500; }
.admin-public-support-modal-head time { color: #74898c; font-size: 10px; }
.admin-public-support-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; border: 1px solid #d8e6e2; border-radius: 6px; }
.admin-public-support-meta > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: center; min-height: 39px; padding: 6px 10px; border-bottom: 1px solid #e0eae7; }
.admin-public-support-meta > div:nth-child(odd) { border-right: 1px solid #e0eae7; }
.admin-public-support-meta > div:last-child { border-bottom: 0; }
.admin-public-support-meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.admin-public-support-meta dt { color: #778c8f; font-size: 10px; }
.admin-public-support-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #24464d; font-size: 11px; }
.admin-public-support-meta button { padding: 0; color: #0785b8; background: transparent; border: 0; font: inherit; font-size: 11px; cursor: pointer; }
.admin-public-support-message,
.admin-public-support-technical { margin-top: 14px; padding: 13px 14px; background: #f5f9f8; border-left: 3px solid #159474; }
.admin-public-support-message h3,
.admin-public-support-technical h3 { margin: 0 0 7px; color: #25454c; font-size: 11px; font-weight: 500; }
.admin-public-support-message p,
.admin-public-support-technical p { margin: 0; color: #425f65; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-public-support-technical { background: #fafcfc; border-left-color: #9db7b1; }
.admin-public-support-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 17px; }
.admin-public-support-modal-actions .primary-button { min-width: 110px; font-weight: 400; }
.admin-public-support-delete-modal { position: relative; width: min(430px, calc(100vw - 32px)); padding: 24px; background: #fff; border-radius: 7px; box-shadow: 0 18px 60px rgba(18, 43, 48, .22); }
.admin-public-support-delete-modal > .modal-close { top: 16px; right: 16px; }
.admin-public-support-delete-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #a34840; background: #f9ecea; border-radius: 6px; }
.admin-public-support-delete-icon::before { font-family: "FontAwesome"; font-size: 17px; content: "\f1f8"; }
.admin-public-support-delete-modal h2 { margin: 15px 40px 7px 0; color: #18343d; font-size: 18px; font-weight: 500; }
.admin-public-support-delete-modal p { margin: 0; color: #61787c; font-size: 11px; line-height: 1.5; }
.admin-public-support-delete-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.admin-public-support-delete-actions button { min-height: 34px; padding: 0 14px; font: inherit; font-size: 11px; font-weight: 400; border-radius: 5px; cursor: pointer; }
.admin-public-support-delete-confirm { color: #fff; background: #a94c43; border: 1px solid #a94c43; }
.admin-public-support-delete-actions button:disabled { opacity: .5; cursor: default; }

@media (max-width: 900px) {
  .admin-public-support-head { grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .admin-public-support-tools { flex-wrap: wrap; }
  .admin-public-support-search { flex: 1 1 260px; width: auto; }
  .admin-public-support-table { min-width: 820px; }
}

@media (max-width: 560px) {
  .admin-public-support-meta { grid-template-columns: 1fr; }
  .admin-public-support-meta > div:nth-child(odd) { border-right: 0; }
  .admin-public-support-meta > div:last-child { border-bottom: 0; }
  .admin-public-support-modal-actions { align-items: stretch; flex-direction: column; }
}

/* Public support request dialog. */
.support-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow: visible;
  color: #102f37;
  background: #fff;
  border: 1px solid #c9dcda;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(3, 27, 31, 0.3);
}

.support-modal.is-success {
  width: min(460px, 100%);
  padding: 24px;
}

.support-modal.is-success > .modal-close {
  display: none;
}

.support-modal-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 170ms ease, transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.support-modal.is-view-changing .support-modal-view:not([hidden]) {
  opacity: 0;
  transform: translateY(8px);
}

.support-modal-head .eyebrow,
.support-success-view .eyebrow {
  margin: 0 0 7px;
}

.support-modal-head h2,
.support-success-view h2 {
  margin: 0;
  color: #092b34;
  font-size: 28px;
  line-height: 1.14;
}

.support-modal-head > p:last-child,
.support-success-view > p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #60777c;
  font-size: 14px;
}

.support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 24px;
}

.support-field {
  display: block;
  min-width: 0;
}

.support-field > span {
  display: block;
  margin-bottom: 7px;
  color: #29474d;
  font-size: 13px;
  font-weight: 600;
}

.support-field > span small {
  margin-left: 4px;
  color: #84979a;
  font-size: 11px;
  font-weight: 400;
}

.support-field-wide {
  grid-column: 1 / -1;
}

.support-field input,
.support-field textarea,
.support-field .custom-select-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: #17363b;
  background: #fbfdfc;
  border: 1px solid #cfdedc;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.support-field textarea {
  min-height: 88px;
  resize: vertical;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
  color: #94a3a5;
}

.support-field input:focus,
.support-field textarea:focus,
.support-field .custom-select.is-open .custom-select-trigger {
  border-color: #7db9ad;
  box-shadow: 0 0 0 3px rgba(7, 107, 82, 0.08);
}

.support-field.is-invalid input,
.support-field.is-invalid textarea,
.support-field.is-invalid .custom-select-trigger {
  border-color: #c66758;
  box-shadow: 0 0 0 3px rgba(174, 72, 56, 0.08);
}

.support-field .custom-select-trigger {
  padding-right: 36px;
  text-align: left;
}

.support-field .custom-select-list {
  z-index: 2805;
}

.support-field-error {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  color: #a9473c;
  font-size: 11px;
  line-height: 1.3;
}

.support-captcha {
  min-width: 0;
}

.support-captcha altcha-widget {
  display: block;
  width: 100%;
  --altcha-border-width: 0;
  --altcha-border-color: #cfdedc;
  --altcha-border-radius: 6px;
  --altcha-color-base: #fbfdfc;
  --altcha-color-base-content: #17363b;
  --altcha-color-error: #a9473c;
  --altcha-color-primary: #087e68;
  --altcha-color-success: #087e68;
  --altcha-max-width: 100%;
  --altcha-padding: 0.7rem 0.8rem;
}

.support-captcha.is-invalid altcha-widget {
  --altcha-border-color: #c66758;
}

.support-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-security-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #eef8f5;
  border-left: 3px solid #168b70;
}

.support-security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #087e68;
  font-family: "FontAwesome";
  font-size: 18px;
}

.support-security-icon::before {
  content: "\f132";
}

.support-security-note p,
.support-form-status {
  margin: 0;
}

.support-security-note strong,
.support-security-note small {
  display: block;
}

.support-security-note strong {
  color: #17363b;
  font-size: 12px;
}

.support-security-note small {
  margin-top: 2px;
  color: #5f777b;
  font-size: 11px;
  line-height: 1.45;
}

.support-form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  color: #a9473c;
  font-size: 12px;
}

.support-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.support-submit {
  min-width: 180px;
  font-weight: 400;
}

.support-success-view {
  display: grid;
  justify-items: center;
  padding: 28px 10px 20px;
  text-align: center;
}

.support-success-view[hidden] {
  display: none;
}

.support-success-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  color: #fff;
  background: #087e68;
  border-radius: 50%;
  font-family: "FontAwesome";
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(8, 126, 104, 0.2);
}

.support-success-icon::before {
  content: "\f00c";
}

.support-success-close {
  min-width: 170px;
  margin-top: 28px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .landing-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cta"
      "action"
      "brand"
      "nav"
      "note";
    gap: 18px;
    min-height: 0;
    padding: 30px 22px 26px;
    align-items: stretch;
  }

  .landing-footer::before {
    left: -70px;
    width: 320px;
    opacity: 0.09;
  }

  .landing-footer::after {
    display: none;
  }

  .footer-cta-copy {
    padding: 0;
  }

  .footer-cta-copy h2 {
    font-size: 28px;
  }

  .footer-cta-button {
    justify-self: start;
    margin: 0 0 8px;
  }

  .landing-footer nav,
  .landing-footer-note {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .support-modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .support-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 22px 18px;
    overflow-y: auto;
  }

  .support-form {
    grid-template-columns: 1fr;
  }

  .support-field-wide,
  .support-security-note,
  .support-form-status,
  .support-form-actions {
    grid-column: auto;
  }

  .support-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-modal-view {
    transition: none;
  }
}

@media (max-width: 900px) {
  .pricing-showcase {
    padding: 28px 24px 30px;
  }

  .pricing-intro,
  .pricing-explain {
    grid-template-columns: 1fr;
  }

  .pricing-intro > div:first-child,
  .pricing-intro > p,
  .pricing-fixed-note {
    grid-column: 1;
    grid-row: auto;
  }

  .pricing-options {
    grid-template-columns: 1fr;
  }

  .pricing-option {
    min-height: 0;
  }

  .pricing-flow {
    padding-right: 0;
  }

  .pricing-tmr {
    margin-top: 28px;
    padding: 28px 0 0;
    border-top: 1px solid #dce8e4;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .pricing-showcase {
    padding: 24px 18px 26px;
  }

  .pricing-intro h2 {
    font-size: 26px;
  }

  .pricing-flow-list {
    grid-template-columns: 1fr;
  }

  .pricing-tmr-facts > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pricing-tmr-facts strong {
    text-align: left;
  }
}

.dashboard-utility-button.is-support::before {
  content: "\f086";
}

.dashboard-utility-button.is-support {
  position: relative;
}

.dashboard-utility-button.is-support.has-unread-support::after {
  position: absolute;
  top: 7px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e24a4a;
  box-shadow: 0 0 0 2px #fff;
  content: "";
  pointer-events: none;
}

.dashboard-support-control {
  position: relative;
  display: inline-flex;
}

.dashboard-support-control.is-open .dashboard-utility-button.is-support {
  color: #08785f;
  background: #e8f5f1;
  box-shadow: inset 0 0 0 1px #b9d9d0;
}

.dashboard-support-chat {
  position: fixed;
  top: 72px;
  left: calc(100vw - 442px);
  z-index: 46;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: min(430px, calc(100vw - 20px));
  height: min(650px, calc(100dvh - 20px));
  color: #263d45;
  background-color: #f8fcfa;
  background-image: url("../img/support-chat-background.svg");
  background-repeat: repeat;
  background-position: left top;
  background-size: 256px 256px;
  border: 1px solid #cfe1dc;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(13, 44, 45, 0.18);
  overflow: hidden;
  animation: dashboard-overlay-in 170ms ease both;
}

.dashboard-support-chat.is-dragging {
  user-select: none;
}

.dashboard-support-chat.is-minimized {
  top: auto !important;
  right: 12px;
  bottom: 12px;
  left: auto !important;
  grid-template-rows: auto;
  width: min(260px, calc(100vw - 24px));
  height: 42px;
  animation: none;
}

.dashboard-support-chat[hidden] {
  display: none;
}

.dashboard-support-head {
  display: grid;
  grid-template-columns: 30px auto minmax(8px, 1fr) 28px 28px 28px;
  align-items: center;
  gap: 4px;
  min-height: 42px;
  padding: 5px 10px;
  background: #f6fbfa;
  border-bottom: 1px solid #d8e7e3;
}

.dashboard-support-chat.is-name-open .dashboard-support-head {
  grid-template-columns: 30px auto minmax(8px, 1fr) 168px 28px 28px 28px;
}

.dashboard-support-chat.is-minimized .dashboard-support-head {
  grid-template-columns: 30px auto minmax(8px, 1fr) 28px 28px;
  border-bottom: 0;
}

.dashboard-support-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #08785f;
}

.dashboard-support-avatar::before {
  font-family: "FontAwesome";
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
  content: "\f086";
}

.dashboard-support-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 74px;
  gap: 1px;
  text-align: left;
}

.dashboard-support-head h2 {
  margin: 0;
  color: #17363e;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0;
}

.dashboard-support-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #60757b;
  font-size: 8px;
  font-weight: 400;
  line-height: 10px;
}

.dashboard-support-online::before {
  width: 5px;
  height: 5px;
  background: #20b487;
  border-radius: 50%;
  content: "";
}

.dashboard-support-online.is-offline::before {
  background: #9aa9a6;
}

.dashboard-support-drag-zone {
  align-self: stretch;
  min-width: 8px;
  cursor: grab;
  touch-action: none;
}

.dashboard-support-chat.is-dragging .dashboard-support-drag-zone {
  cursor: grabbing;
}

.dashboard-support-chat.is-minimized .dashboard-support-drag-zone {
  cursor: default;
}

.dashboard-support-name-input {
  box-sizing: border-box;
  width: 168px;
  height: 30px;
  min-width: 0;
  padding: 6px 10px;
  color: #294148;
  background: #fff;
  border: 1px solid #cbdeda;
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  transform-origin: top right;
  animation: dashboard-support-name-open 180ms ease-out both;
}

.dashboard-support-name-input:focus {
  border-color: #83c8b7;
  box-shadow: 0 0 0 2px rgba(22, 143, 109, 0.1);
}

.dashboard-support-name-input[hidden] {
  display: none;
}

@keyframes dashboard-support-name-open {
  from {
    opacity: 0;
    transform: translate(8px, -6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

.dashboard-support-close,
.dashboard-support-name-toggle,
.dashboard-support-collapse,
.dashboard-support-attach,
.dashboard-support-send {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.dashboard-support-close,
.dashboard-support-name-toggle,
.dashboard-support-collapse {
  width: 28px;
  height: 28px;
  color: #70838a;
  background: transparent;
  border-radius: 6px;
}

.dashboard-support-close::before {
  font-family: "FontAwesome";
  font-size: 15px;
  content: "\f00d";
}

.dashboard-support-name-toggle::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f007";
}

.dashboard-support-collapse::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f2d1";
}

.dashboard-support-chat.is-minimized .dashboard-support-collapse::before {
  content: "\f2d0";
}

.dashboard-support-name-toggle.is-active {
  color: #08785f;
  background: #e5f4ef;
}

.dashboard-support-close:hover,
.dashboard-support-name-toggle:hover,
.dashboard-support-collapse:hover {
  color: #17363e;
  background: #e7f1ef;
}

.dashboard-support-chat.is-minimized .dashboard-support-name-input,
.dashboard-support-chat.is-minimized .dashboard-support-name-toggle,
.dashboard-support-chat.is-minimized .dashboard-support-messages,
.dashboard-support-chat.is-minimized .dashboard-support-loading,
.dashboard-support-chat.is-minimized .dashboard-support-compose {
  display: none;
}

.dashboard-support-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  margin: 8px 16px 0;
  padding: 0 0 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.dashboard-support-messages::-webkit-scrollbar {
  width: 8px;
}

.dashboard-support-messages::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-support-messages::-webkit-scrollbar-thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
  transition: background-color 160ms ease;
}

.dashboard-support-messages::-webkit-scrollbar-thumb:hover,
.dashboard-support-messages::-webkit-scrollbar-thumb:active,
.dashboard-support-messages.is-scrolling::-webkit-scrollbar-thumb,
.dashboard-support-messages.is-scrollbar-active::-webkit-scrollbar-thumb {
  background-color: #9fc9bf;
}

.dashboard-support-messages.is-scrolling,
.dashboard-support-messages.is-scrollbar-active {
  scrollbar-color: #9fc9bf transparent;
}

.dashboard-support-date-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  margin: 1px 0 4px;
  color: #657b80;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
}

.dashboard-support-date-separator span {
  padding: 4px 9px;
  background: #eaf1ef;
  border-radius: 8px;
  white-space: nowrap;
}

.dashboard-support-empty {
  max-width: 260px;
  margin: auto;
  color: #6c7e84;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.dashboard-support-message {
  position: relative;
  display: grid;
  gap: 3px;
  align-self: flex-start;
  max-width: 80%;
  margin-left: 5px;
}

.dashboard-support-message.is-merchant {
  align-self: flex-end;
  margin-right: 5px;
  margin-left: 0;
}

.dashboard-support-message-body {
  position: relative;
  min-width: 64px;
  margin: 0;
  padding: 8px 11px 21px;
  color: #294148;
  background: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.dashboard-support-message-body::after {
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 7px;
  height: 10px;
  background: #fff;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
  display: none;
}

.dashboard-support-message.is-merchant .dashboard-support-message-body {
  color: #0d493d;
  background: #d5e3db;
  border-radius: 10px;
}

.dashboard-support-message.is-support.is-group-end .dashboard-support-message-body,
.admin-support-message.is-merchant.is-group-end .dashboard-support-message-body {
  border-radius: 10px 10px 10px 3px;
}

.dashboard-support-message.is-merchant.is-group-end .dashboard-support-message-body,
.admin-support-message.is-support.is-group-end .dashboard-support-message-body {
  border-radius: 10px 10px 3px 10px;
}

.dashboard-support-message.is-group-end .dashboard-support-message-body::after,
.admin-support-message.is-group-end .dashboard-support-message-body::after {
  display: block;
}

.dashboard-support-message.is-merchant .dashboard-support-message-body::after {
  right: -5px;
  left: auto;
  background: #d5e3db;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.dashboard-support-message-meta {
  position: absolute;
  right: 9px;
  bottom: 5px;
  color: #789096;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dashboard-support-delivery-status {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 13px;
  height: 10px;
  color: #66877f;
}

.dashboard-support-delivery-status.is-saved::before,
.dashboard-support-delivery-status.is-read::before,
.dashboard-support-delivery-status.is-read::after,
.dashboard-support-delivery-status.is-failed::before {
  position: absolute;
  top: -1px;
  font-family: "FontAwesome";
  font-size: 9px;
  line-height: 10px;
  content: "\f00c";
}

.dashboard-support-delivery-status.is-saved::before { right: 1px; }
.dashboard-support-delivery-status.is-read { width: 16px; color: #168f6d; }
.dashboard-support-delivery-status.is-read::before { right: 5px; }
.dashboard-support-delivery-status.is-read::after { right: 0; }
.dashboard-support-delivery-status.is-failed { color: #c34235; }
.dashboard-support-delivery-status.is-failed::before { right: 2px; content: "\f071"; }

.dashboard-support-delivery-status.is-pending {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(89, 119, 112, .28);
  border-top-color: #168f6d;
  border-radius: 50%;
  animation: support-delivery-spin .7s linear infinite;
}

@keyframes support-delivery-spin { to { transform: rotate(360deg); } }

.dashboard-support-message.is-support .dashboard-support-message-meta {
  right: auto;
  left: 9px;
  text-align: left;
}

.dashboard-support-message.is-support {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: end;
  column-gap: 6px;
  max-width: calc(80% + 46px);
}

.dashboard-support-message.is-support::before,
.admin-support-message.is-support::before {
  width: 40px;
  height: 40px;
  background: #fff url("../img/chat-icon.svg") center / cover no-repeat;
  border-radius: 50%;
  overflow: hidden;
  content: "";
  visibility: hidden;
}

.dashboard-support-message.is-support.is-group-end::before,
.admin-support-message.is-support.is-group-end::before {
  visibility: visible;
}

.dashboard-support-message.is-support::before {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-support-message.is-support > .dashboard-support-message-body {
  grid-column: 2;
  grid-row: 1;
}

.dashboard-support-message-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0 0 5px;
  color: inherit;
  text-decoration: none;
}

.dashboard-support-message-attachment:not(.is-image)::before {
  flex: 0 0 auto;
  width: 26px;
  color: #168f6d;
  font-family: "FontAwesome";
  font-size: 21px;
  text-align: center;
  content: "\f15b";
}

.dashboard-support-message-attachment.is-image {
  display: block;
  margin: -2px -5px 6px;
}

.dashboard-support-message-attachment img {
  display: block;
  width: auto;
  max-width: min(230px, 100%);
  max-height: 180px;
  border-radius: 6px;
  object-fit: contain;
}

.dashboard-support-message-attachment-copy {
  display: grid;
  min-width: 0;
}

.dashboard-support-message-attachment-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-support-message-attachment-copy small {
  color: #789096;
  font-size: 9px;
  line-height: 1.3;
}

.dashboard-support-message-text:empty {
  display: none;
}

.dashboard-support-loading {
  position: absolute;
  inset: 42px 0 57px;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #64777d;
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.dashboard-support-loading[hidden] {
  display: none;
}

.dashboard-support-loading .invoice-operation-spinner {
  width: 18px;
  height: 18px;
}

.dashboard-support-compose {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 36px;
  align-items: end;
  gap: 7px;
  min-height: 57px;
  padding: 9px 10px;
  background: #fff;
  border-top: 1px solid #dbe8e5;
}

.dashboard-support-attachment-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 7px;
  background: #edf5f2;
  border-radius: 6px;
}

.dashboard-support-attachment-preview[hidden] {
  display: none;
}

.dashboard-support-attachment-preview-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  color: #168f6d;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  border-radius: 5px;
}

.dashboard-support-attachment-preview-icon:not(.has-image)::before {
  font-family: "FontAwesome";
  font-size: 18px;
  content: "\f15b";
}

.dashboard-support-attachment-preview-copy {
  display: grid;
  min-width: 0;
}

.dashboard-support-attachment-preview-copy strong {
  overflow: hidden;
  color: #294148;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-support-attachment-preview-copy small {
  color: #789096;
  font-size: 9px;
  line-height: 1.3;
}

.dashboard-support-attachment-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #71868a;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.dashboard-support-attachment-remove::before {
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f00d";
}

.dashboard-support-attachment-remove:hover {
  color: #a63c30;
  background: #fff;
}

.dashboard-support-compose textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  max-height: 92px;
  padding: 9px 4px;
  resize: none;
  color: #233c44;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dashboard-support-compose textarea::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dashboard-support-compose textarea:focus {
  box-shadow: none;
}

.dashboard-support-attach {
  width: 34px;
  height: 36px;
  color: #9aabad;
  background: transparent;
}

.dashboard-support-attach:hover {
  color: #168f6d;
}

.dashboard-support-attach::before {
  font-family: "FontAwesome";
  font-size: 19px;
  content: "\f0c6";
}

.dashboard-support-send {
  width: 36px;
  height: 36px;
  color: #32aee1;
  background: transparent;
  border-radius: 6px;
}

.dashboard-support-send > span:first-child::before {
  font-family: "FontAwesome";
  font-size: 16px;
  content: "\f1d8";
}

.dashboard-support-send:hover {
  color: #238fc0;
  background: transparent;
}

.dashboard-support-send:disabled {
  color: #91a4a6;
  background: transparent;
  cursor: default;
}

.dashboard-support-send .invoice-operation-spinner {
  display: none;
}

.dashboard-support-send.is-loading > span:first-child {
  display: none;
}

.dashboard-support-send.is-loading .invoice-operation-spinner {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-support-chat,
  .dashboard-support-name-input {
    animation: none;
  }
}

@media (max-width: 600px) {
  .dashboard-support-chat {
    width: calc(100vw - 20px);
    height: min(650px, calc(100dvh - 20px));
  }

  .dashboard-support-head {
    grid-template-columns: 30px auto minmax(8px, 1fr) 28px 28px 28px;
  }

  .dashboard-support-chat.is-name-open .dashboard-support-head {
    grid-template-columns: 30px auto minmax(8px, 1fr) 128px 28px 28px 28px;
  }

  .dashboard-support-name-input {
    width: 128px;
  }

  .dashboard-support-chat.is-minimized {
    width: min(260px, calc(100vw - 24px));
    height: 42px;
  }

  .dashboard-support-chat.is-minimized .dashboard-support-head {
    grid-template-columns: 30px auto minmax(8px, 1fr) 28px 28px;
  }

  .dashboard-support-chat.is-minimized .dashboard-support-name-input,
  .dashboard-support-chat.is-minimized .dashboard-support-name-toggle {
    display: none;
  }
}

.dashboard-utility-button.is-knowledge {
  text-decoration: none;
}

.dashboard-utility-button.is-knowledge::before {
  content: "\f19d";
}

@media (min-width: 1601px) {
  body[data-page="dashboard"] .dashboard-sidebar-settings {
    display: flex;
  }

  body[data-page="dashboard"] .dashboard-utility-button.is-settings {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1600px) {
  body[data-page="dashboard"] .dashboard-sidebar-settings.is-sidebar-fit,
  body[data-page="dashboard"] .dashboard-sidebar-notifications.is-sidebar-fit {
    display: flex;
  }

  body[data-page="dashboard"].has-sidebar-settings .dashboard-utility-button.is-settings {
    display: none;
  }
}

.dashboard-language-control {
  position: relative;
  display: inline-flex;
}

@media (max-width: 600px) {
  .dashboard-account-trigger {
    justify-content: center;
    width: 34px;
    padding: 0;
  }

  .dashboard-account-trigger strong,
  .dashboard-account-status-dot,
  .dashboard-account-chevron {
    display: none;
  }

  .dashboard-account-trigger::before {
    font-family: "FontAwesome";
    font-size: 15px;
    content: "\f2bd";
  }

  .dashboard-account-popover {
    right: 0;
    left: auto;
    width: min(308px, calc(100vw - 28px));
  }

  .dashboard-account-popover::before {
    right: 11px;
    left: auto;
  }
}

.dashboard-language-trigger .language-flag,
.dashboard-language-option .language-flag {
  width: 22px;
  height: 15px;
}

.dashboard-language-menu.language-menu {
  top: calc(100% + 9px);
  right: -4px;
  gap: 3px;
  min-width: 42px;
  width: 42px;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(7, 53, 49, 0.14);
}

.dashboard-language-option.language-option {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
}

.dashboard-language-option.is-active::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.dashboard-empty-panel {
  min-height: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-content {
  display: grid;
  align-content: stretch;
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.dashboard-screen {
  display: grid;
  align-content: start;
  gap: 18px;
}

.dashboard-screen[data-dashboard-screen-panel="invoices"].is-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.dashboard-screen[data-dashboard-screen-panel="factories"].is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 132px);
  height: calc(100dvh - 132px);
  overflow: hidden;
}

.dashboard-screen[hidden] {
  display: none;
}

.address-check-screen.is-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.address-check-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: space-between;
  gap: 18px 32px;
  padding: 24px 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.address-check-card.has-result {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.address-check-card.has-result > .address-check-intro {
  display: none;
}

.address-check-intro p {
  max-width: 760px;
  margin: 0;
  color: #536c78;
  font-size: 15px;
  line-height: 1.55;
}

.address-check-card.has-result .address-check-intro p {
  max-width: none;
}

.address-check-stats {
  display: flex;
  align-self: flex-end;
  justify-content: flex-end;
  min-height: 38px;
  margin: 0;
  padding: 1px 10px 0 0;
}

.address-check-stat {
  min-width: 96px;
  padding: 1px 14px 3px;
  border-left: 1px solid #cfdfdb;
}

.address-check-stat dt {
  color: #617782;
  font-size: 9px;
  line-height: 1.35;
}

.address-check-stat dd {
  margin: 4px 0 0;
  color: #0b6f97;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.address-check-stat.is-check-balance {
  min-width: 222px;
}

.address-check-balance {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 2px !important;
  white-space: nowrap;
}

.address-check-balance-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.address-check-balance-item strong {
  color: #0b6f97;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.address-check-balance-item small {
  color: #617782;
  font-size: 9px;
  line-height: 1;
}

.address-check-balance-item.is-full strong {
  color: #078b70;
}

.address-check-form {
  grid-column: 1;
  padding-top: 18px;
  border-top: 1px solid #dce8e4;
}

.address-check-card.has-result > .address-check-form {
  display: none;
}

.address-check-overview-slot {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  height: 100%;
}

.address-check-card.has-result > .address-check-overview-slot {
  grid-column: 1;
  grid-row: 1;
  height: auto;
}

.address-check-overview-slot[hidden],
.address-check-result-title[hidden],
.address-check-result[hidden] {
  display: none;
}

.address-check-form > label {
  display: block;
  margin-bottom: 7px;
  color: #294b56;
  font-size: 12px;
  font-weight: 600;
}

.address-check-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.address-check-form-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: #294b56;
  background: #fff;
  border: 1px solid #c8d9d5;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}

.address-check-form-row input::placeholder {
  color: #91a2a9;
}

.address-check-form-row input:focus {
  border-color: #57a995;
  box-shadow: 0 0 0 3px rgba(19, 137, 111, 0.1);
  outline: 0;
}

.address-check-form-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: #13896f;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.address-check-form-row button:hover {
  background: #0b735e;
}

.address-check-form-row button > span:first-child::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f002";
}

.address-check-form > p {
  margin: 7px 0 0;
  color: #7b9098;
  font-size: 10px;
  line-height: 1.35;
}

.address-check-form > .address-check-feedback {
  margin-top: 10px;
  padding: 9px 11px;
  color: #8b3f36;
  background: #fff5f2;
  border-left: 3px solid #c96758;
  border-radius: 4px;
  font-size: 12px;
}

.address-check-form > .address-check-feedback.is-info {
  color: #315d69;
  background: #f0f8f6;
  border-left-color: #4c9d89;
}

.address-check-form-row button:disabled { cursor: wait; opacity: 0.72; }
.address-check-form-row button.is-loading > span:first-child::before {
  display: inline-block;
  content: "\f110";
  animation: address-check-spin 700ms linear infinite;
}

@keyframes address-check-spin { to { transform: rotate(360deg); } }

.address-check-result {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  padding: 0 18px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 137, 111, 0.42) transparent;
}

.address-check-result::-webkit-scrollbar { width: 7px; }
.address-check-result::-webkit-scrollbar-thumb { background: rgba(19, 137, 111, 0.42); border-radius: 999px; }

.address-check-result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 10px 5px 11px;
  color: #294b56;
  border-left: 3px solid #67ae9c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.address-check-result-title.is-medium { border-left-color: #d5a535; }
.address-check-result-title.is-high { border-left-color: #bd5b4e; }

.address-check-result-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.address-check-new-button,
.address-check-pdf-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  height: 30px;
  padding: 0 10px;
  color: #536c78;
  background: transparent;
  border: 1px solid #c7d9d5;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.address-check-new-button {
  color: #176d5d;
  background: #f4faf8;
  border-color: #b9d8d0;
}

.address-check-new-button:hover:not(:disabled) { color: #0c725e; border-color: #78ae9f; }
.address-check-new-button:disabled { cursor: not-allowed; opacity: 0.58; }
.address-check-new-button > span:first-child::before {
  font-family: "FontAwesome";
  font-size: 11px;
  content: "\f002";
}

.address-check-pdf-button:hover { color: #13896f; border-color: #78ae9f; }
.address-check-pdf-button > span:first-child::before {
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f1c1";
}

.address-risk-overview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 100%;
  padding: 11px 13px;
  background: #f5faf8;
  border: 1px solid #cfe2dd;
  border-radius: 7px;
}

.address-risk-score {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 64px;
  height: 64px;
  color: #0d6958;
  background: #fff;
  border: 5px solid #8dcbbb;
  border-radius: 50%;
}

.address-risk-score.is-medium { color: #8a6518; border-color: #e2c26d; }
.address-risk-score.is-high { color: #9b3e36; border-color: #dc8b7f; }
.address-risk-score strong { font-size: 22px; font-weight: 400; line-height: 1; }
.address-risk-score span { margin-top: 4px; color: #6b7f87; font-size: 9px; font-weight: 400; }
.address-risk-overview-copy h2,
.address-risk-section h3,
.address-risk-forecast h3 { margin: 0; color: #102e38; letter-spacing: 0; }
.address-risk-overview-copy h2 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.address-risk-overview-copy > p { margin: 4px 0 0; color: #536c78; font-size: 10px; line-height: 1.35; }
.address-risk-enrichment-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; color: #9b3e36; }
.address-risk-enrichment-note > span { width: 6px; height: 6px; flex: 0 0 6px; background: #d4473a; border-radius: 50%; }
.address-risk-enrichment-note > small { font-size: 9px; line-height: 1.3; }
.address-risk-scale { display: grid; gap: 5px; margin-top: 8px; }
.address-risk-scale-head { display: flex; justify-content: flex-end; color: #617782; font-size: 9px; font-weight: 400; }
.address-risk-scale-track { height: 7px; overflow: hidden; background: #dce9e5; border-radius: 4px; }
.address-risk-scale-track i { display: block; height: 100%; background: #13896f; border-radius: inherit; }
.address-risk-overview.is-medium .address-risk-scale-track i { background: #bc8b27; }
.address-risk-overview.is-high .address-risk-scale-track i { background: #bd5b4e; }

.address-risk-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: max-content;
  border: 1px solid #d7e5e1;
  border-radius: 7px;
  overflow: hidden;
  gap: 1px;
  background: #d7e5e1;
}
.address-risk-fact { min-width: 0; padding: 13px 15px; background: #fff; }
.address-risk-fact dt { color: #71858d; font-size: 10px; line-height: 1.35; }
.address-risk-fact dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #173b46; font-size: 13px; line-height: 1.35; }

.address-risk-section,
.address-risk-forecast { padding: 12px 18px; background: #fff; border: 0; border-radius: 7px; }
.address-risk-section h3,
.address-risk-forecast h3 { font-size: 14px; font-weight: 400; }
.address-risk-section-note { margin: 5px 0 0; color: #71858d; font-size: 11px; line-height: 1.45; }
.address-risk-label-list,
.address-risk-indicator-list { display: grid; gap: 8px; margin-top: 13px; }
.address-risk-label { padding: 10px 12px; background: #f5faf8; border-left: 3px solid #67ae9c; border-radius: 4px; }
.address-risk-label strong { display: block; color: #173b46; font-size: 12px; font-weight: 400; }
.address-risk-label span { display: block; margin-top: 3px; color: #617782; font-size: 11px; line-height: 1.4; }
.address-risk-entity-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.address-risk-entity-links a { color: #08789c; font-size: 10px; text-decoration: none; }

.address-risk-indicator-list { gap: 6px; }
.address-risk-indicator-group { overflow: hidden; background: #fafcfc; border: 1px solid #dce7e4; border-radius: 6px; }
.address-risk-indicator-group > summary { list-style: none; }
.address-risk-indicator-group > summary::-webkit-details-marker { display: none; }
.address-risk-indicator-group-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 16px;
  gap: 10px;
  align-items: center;
  padding: 13px 12px;
  cursor: pointer;
}
.address-risk-indicator-icon { display: grid; place-items: center; width: 28px; height: 28px; color: #a14b40; background: #fff1ee; border-radius: 50%; font-family: "FontAwesome"; font-size: 12px; }
.address-risk-indicator-icon::before { content: "\f071"; }
.address-risk-indicator-group-copy { min-width: 0; }
.address-risk-indicator-group-copy strong { display: block; color: #173b46; font-size: 12px; font-weight: 400; }
.address-risk-indicator-group-copy small { display: block; margin-top: 4px; color: #617782; font-size: 11px; line-height: 1.45; }
.address-risk-indicator-group-total { color: #71858d; font-size: 10px; white-space: nowrap; }
.address-risk-indicator-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #13896f;
  line-height: 1;
}
.address-risk-indicator-group-chevron::before {
  display: block;
  width: 13px;
  height: 13px;
  font-family: "FontAwesome";
  font-size: 13px;
  line-height: 13px;
  text-align: center;
  content: "\f107";
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 160ms ease;
}
.address-risk-indicator-group[open] .address-risk-indicator-group-chevron::before { transform: rotate(180deg); }
.address-risk-indicator-sources { border-top: 1px solid #e4ece9; background: #fff; }
.address-risk-indicator-source {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 12px 9px 50px;
  color: #617782;
  font-size: 10px;
  line-height: 1.4;
}
.address-risk-indicator-source + .address-risk-indicator-source { border-top: 1px solid #edf2f0; }
.address-risk-indicator-source code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #294b56;
  font: inherit;
}
.address-risk-interactions { margin-top: 13px; }
.address-risk-interactions summary { color: #176d5d; font-size: 12px; cursor: pointer; }
.address-risk-interaction-list { display: grid; gap: 7px; margin-top: 10px; }
.address-risk-interaction {
  display: grid;
  grid-template-columns: 95px 80px 80px 120px minmax(180px, 1fr) 75px 110px 90px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  color: #526b75;
  background: #f7faf9;
  border-radius: 4px;
  font-size: 10px;
}
.address-risk-interaction-main,
.address-risk-interaction-details { display: contents; }
.address-risk-interaction-details { color: #819198; font-size: 9px; }
.address-risk-interaction-main > *,
.address-risk-interaction-details > * { min-width: 0; justify-self: start; text-align: left; }
.address-risk-interaction-main > :nth-child(4),
.address-risk-interaction-details > :last-child { justify-self: end; text-align: right; }
.address-risk-interaction a { color: #08789c; text-decoration: none; }

.address-risk-aml-history-section { padding-top: 12px; padding-bottom: 12px; }
.address-risk-aml-history-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.address-risk-aml-history-title-copy { min-width: 0; }
.address-risk-aml-refresh-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.address-risk-aml-refresh-actions > small { color: #7b8d91; font-size: 10px; font-weight: 400; white-space: nowrap; }
.address-risk-aml-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 11px;
  color: #087962;
  background: #fff;
  border: 1px solid #87c6b7;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.address-risk-aml-refresh-button:hover:not(:disabled) { color: #086b58; background: #edf8f5; border-color: #128e73; }
.address-risk-aml-refresh-button:disabled { cursor: not-allowed; opacity: 0.68; }
.address-risk-aml-refresh-icon { font-family: "FontAwesome"; font-size: 12px; font-weight: 400; }
.address-risk-aml-refresh-icon::before { content: "\f01e"; }
.address-risk-aml-refresh-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(8, 121, 98, 0.28);
  border-top-color: #087962;
  border-radius: 50%;
  animation: address-check-spin 0.7s linear infinite;
}
.address-risk-aml-history { margin-top: 12px; border-color: #e6b1aa; background: #fffafa; }
.address-risk-aml-history-head { background: #fff6f4; }
.address-risk-aml-history-icon { color: #a7352b; background: #ffe3df; }
.address-risk-aml-history-icon::before { content: "\f12a"; }
.address-risk-aml-history-result { color: #71858d; font-size: 10px; white-space: nowrap; }
.address-risk-aml-history-result.is-high,
.address-risk-aml-history-result.is-severe { color: #b5362c; font-weight: 600; }
.address-risk-aml-history-result.is-medium { color: #8a6518; font-weight: 600; }
.address-risk-aml-history-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #efcfca; background: #fff; }
.address-risk-aml-history-facts > div { padding: 11px 13px; }
.address-risk-aml-history-facts > div + div { border-left: 1px solid #edf2f0; }
.address-risk-aml-history-facts span { display: block; color: #71858d; font-size: 9px; }
.address-risk-aml-history-facts strong { display: block; margin-top: 4px; color: #173b46; font-size: 12px; font-weight: 500; }
.address-risk-aml-history-facts strong.is-danger { color: #b5362c; }
.address-risk-aml-categories { margin: 10px 12px 0; border-color: #dfc6c2; box-shadow: none; }
.address-risk-aml-categories > header { background: #fffafa; }
.address-risk-aml-categories .invoice-aml-category-list { max-height: none; padding: 10px 11px; overflow: visible; column-gap: 20px; }
.address-risk-aml-categories .invoice-aml-category { padding-bottom: 7px; }
.address-risk-aml-categories .invoice-aml-category > i { height: 3px; border-radius: 2px; }
.address-risk-aml-history-note { margin: 0; padding: 9px 13px; color: #71858d; background: #fcfdfd; border-top: 1px solid #edf2f0; font-size: 9px; line-height: 1.4; }
.address-risk-aml-action-section { padding-top: 12px; padding-bottom: 12px; }
.address-risk-aml-action {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 13px;
  background: #fafcfc;
  border: 1px solid #dce7e4;
  border-radius: 6px;
}
.address-risk-aml-action-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #078b70;
  background: #e5f4ef;
  border-radius: 50%;
  font-family: "FontAwesome";
  font-size: 13px;
}
.address-risk-aml-action-icon::before { content: "\f132"; }
.address-risk-aml-action-copy { min-width: 0; }
.address-risk-aml-action-copy strong { display: block; color: #173b46; font-size: 12px; font-weight: 600; }
.address-risk-aml-action-copy small { display: block; margin-top: 3px; color: #617782; font-size: 10px; line-height: 1.35; }
.address-risk-aml-action-control { display: flex; align-items: center; gap: 10px; }
.address-risk-aml-action-control > small { color: #617782; font-size: 10px; white-space: nowrap; }
.address-risk-aml-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 32px;
  padding: 0 12px;
  color: #fff;
  background: #078b70;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.address-risk-aml-action-button:hover:not(:disabled) { background: #06765f; }
.address-risk-aml-action-button:disabled { cursor: not-allowed; opacity: 0.68; }
.address-risk-aml-action-button.is-loading { opacity: 1; }
.address-risk-aml-action-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: address-check-spin 0.7s linear infinite;
}
.address-risk-aml-action-error { margin: 7px 0 0; color: #b5362c; font-size: 10px; }

.address-risk-forecast { background: #f0f8f6; }
.address-risk-forecast.is-medium { background: #fff9ec; }
.address-risk-forecast.is-high { background: #fff4f1; }
.address-risk-forecast p { margin: 7px 0 0; color: #425f69; font-size: 12px; line-height: 1.5; }
.address-risk-disclaimer { color: #788d95 !important; font-size: 10px !important; }

@media (max-width: 1199px) {
  .address-check-card.has-result .address-risk-overview {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }

  .address-check-card.has-result .address-risk-score {
    width: 46px;
    height: 46px;
    border-width: 4px;
  }

  .address-check-card.has-result .address-risk-score strong {
    font-size: 17px;
  }

  .address-check-card.has-result .address-risk-score span {
    margin-top: 2px;
    font-size: 7px;
  }

  .address-check-card.has-result .address-risk-overview-copy h2 {
    font-size: 11px;
    line-height: 1.22;
  }

  .address-check-card.has-result .address-risk-overview-copy > p {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.25;
  }

  .address-check-card.has-result .address-risk-enrichment-note {
    gap: 4px;
    margin-top: 3px;
  }

  .address-check-card.has-result .address-risk-enrichment-note > small {
    font-size: 8px;
    line-height: 1.2;
  }

  .address-check-card.has-result .address-risk-scale {
    gap: 3px;
    margin-top: 5px;
  }

  .address-check-card.has-result .address-risk-scale-head {
    font-size: 8px;
  }

  .address-check-card.has-result .address-risk-scale-track {
    height: 5px;
  }
}

@media (max-width: 900px) {
  .address-check-card {
    grid-template-columns: 1fr;
  }

  .address-check-card.has-result {
    grid-template-columns: 1fr;
  }

  .address-check-card.has-result > .address-check-intro {
    grid-column: 1;
    padding-right: 0;
  }

  .address-check-form {
    grid-row: 2;
  }

  .address-check-card.has-result > .address-check-form {
    grid-row: 2;
  }

  .address-check-overview-slot {
    grid-column: 1;
    grid-row: 3;
  }

  .address-check-stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .address-risk-aml-action { grid-template-columns: 34px minmax(0, 1fr); }
  .address-risk-aml-action-control { grid-column: 2; justify-content: space-between; }

  .address-risk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address-risk-interaction { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .address-risk-interaction-main > *,
  .address-risk-interaction-details > * { justify-self: start !important; text-align: left !important; }
}

@media (max-width: 620px) {
  .address-check-stats {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .address-check-stat {
    min-width: 0;
    padding-inline: 10px;
  }

  .address-check-stat.is-check-balance {
    min-width: 0;
  }

  .address-check-balance {
    gap: 10px;
  }

  .address-check-card {
    padding: 20px;
  }

  .address-check-form-row {
    grid-template-columns: 1fr;
  }

  .address-risk-overview { grid-template-columns: 1fr; }
  .address-risk-score { width: 96px; height: 96px; }
  .address-risk-indicator-group-head { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .address-risk-indicator-group-total { grid-column: 2; white-space: normal; }
  .address-risk-aml-history-result { grid-column: 2; white-space: normal; }
  .address-risk-aml-history-title { flex-wrap: wrap; align-items: flex-start; }
  .address-risk-aml-refresh-actions { margin-left: auto; }
  .address-risk-aml-refresh-actions > small { display: none; }
  .address-risk-aml-refresh-button { padding-inline: 9px; }
  .address-risk-indicator-group-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .address-risk-indicator-source { grid-template-columns: 1fr; padding-left: 50px; }
  .address-risk-interaction { grid-template-columns: 1fr 1fr; }
  .address-risk-aml-history-facts { grid-template-columns: 1fr; }
  .address-risk-aml-history-facts > div + div { border-top: 1px solid #edf2f0; border-left: 0; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body.is-printing-address-report,
  body.is-printing-address-report * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.is-printing-address-report {
    min-width: 0 !important;
    background: #fff !important;
  }

  body.is-printing-address-report .boot-screen,
  body.is-printing-address-report .node-sync-curtain,
  body.is-printing-address-report .dashboard-loading-overlay,
  body.is-printing-address-report .dashboard-sidebar,
  body.is-printing-address-report .dashboard-page-head,
  body.is-printing-address-report .address-check-intro,
  body.is-printing-address-report .address-check-stats,
  body.is-printing-address-report .address-check-form,
  body.is-printing-address-report .address-check-new-button,
  body.is-printing-address-report .address-check-pdf-button,
  body.is-printing-address-report .address-risk-aml-refresh-actions {
    display: none !important;
  }

  body.is-printing-address-report .dashboard-shell,
  body.is-printing-address-report .dashboard-layout,
  body.is-printing-address-report .dashboard-main,
  body.is-printing-address-report .dashboard-content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.is-printing-address-report .dashboard-screen {
    display: none !important;
  }

  body.is-printing-address-report .address-check-screen.is-active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.is-printing-address-report .address-check-card {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.is-printing-address-report .address-check-overview-slot,
  body.is-printing-address-report .address-check-result {
    display: block !important;
  }

  body.is-printing-address-report .address-check-overview-slot {
    height: auto !important;
  }

  body.is-printing-address-report .address-check-result-title {
    display: flex !important;
    margin: 10px 0 8px;
  }

  body.is-printing-address-report .address-check-result {
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }

  body.is-printing-address-report .address-check-result > * + * {
    margin-top: 6px;
  }

  body.is-printing-address-report .address-risk-indicator-list,
  body.is-printing-address-report .address-risk-interaction-list {
    display: block !important;
  }

  body.is-printing-address-report .address-risk-indicator-group + .address-risk-indicator-group,
  body.is-printing-address-report .address-risk-interaction + .address-risk-interaction {
    margin-top: 6px;
  }

  body.is-printing-address-report .address-risk-overview,
  body.is-printing-address-report .address-risk-facts,
  body.is-printing-address-report .address-risk-forecast,
  body.is-printing-address-report .address-risk-interaction {
    break-inside: avoid;
  }

  body.is-printing-address-report .address-risk-section,
  body.is-printing-address-report .address-risk-indicator-group {
    break-inside: auto;
  }

  body.is-printing-address-report .address-risk-indicator-group {
    overflow: visible !important;
  }

  body.is-printing-address-report .address-risk-section > h3,
  body.is-printing-address-report .address-risk-section-note,
  body.is-printing-address-report .address-risk-indicator-group-head {
    break-after: avoid;
  }

  body.is-printing-address-report .address-risk-indicator-source {
    break-inside: avoid;
  }

  body.is-printing-address-report .address-risk-interaction {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}

.dashboard-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(5, 40, 33, 0.06);
}

.dashboard-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: var(--green-strong);
  background: #ecf7f3;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
}

.dashboard-stat-icon::before {
  font-family: "FontAwesome";
  font-size: 20px;
  content: "\f1b3";
}

.dashboard-stat-card.is-admin-stat .dashboard-stat-icon::before {
  content: "\f0e8";
}

.dashboard-stat-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dashboard-stat-card strong {
  display: block;
  color: #071b28;
  font-size: 32px;
  line-height: 1;
}

.dashboard-activity-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(5, 40, 33, 0.06);
}

.dashboard-activity-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dashboard-activity-head h2 {
  margin: 0;
  color: #071b28;
  font-size: 18px;
  line-height: 1.2;
}

.dashboard-activity-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.dashboard-activity-list {
  display: grid;
  gap: 8px;
}

.dashboard-activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  background: #fbfdfc;
  border: 1px solid #d7e8e2;
  border-radius: 8px;
}

.dashboard-activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-strong);
  background: #ecf7f3;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
}

.dashboard-activity-icon::before {
  font-family: "FontAwesome";
  font-size: 15px;
  content: "\f0ec";
}

.dashboard-activity-icon.is-in::before {
  content: "\f063";
}

.dashboard-activity-icon.is-out::before {
  content: "\f062";
}

.dashboard-activity-icon.is-setting::before {
  content: "\f085";
}

.dashboard-activity-icon.is-audit::before {
  content: "\f02d";
}

.dashboard-activity-main,
.dashboard-activity-side {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-activity-main strong,
.dashboard-activity-side strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.dashboard-activity-main small,
.dashboard-activity-side small,
.dashboard-activity-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.dashboard-activity-side {
  justify-items: end;
  text-align: right;
}

.dashboard-activity-side strong.is-positive {
  color: #00785c;
}

.dashboard-activity-side strong.is-negative {
  color: #c93535;
}

.dashboard-activity-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  background: #fbfdfc;
  border: 1px dashed #cfe1db;
  border-radius: 8px;
}

.dashboard-activity-loading {
  display: grid;
  place-items: center;
  min-height: 72px;
}

.dashboard-activity-loading span {
  width: 160px;
  height: 4px;
  overflow: hidden;
  background: #dceee8;
  border-radius: 999px;
}

.dashboard-activity-loading span::before {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--green-strong);
  border-radius: inherit;
  animation: bootBar 1s ease-in-out infinite;
  content: "";
}

.dashboard-placeholder {
  display: grid;
  gap: 8px;
  margin-top: 34px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dashboard-placeholder p,
.dashboard-placeholder span {
  margin: 0;
  color: var(--muted);
}

.dashboard-placeholder strong {
  overflow-wrap: anywhere;
  font-size: 24px;
}

.factory-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 54px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.factory-tool-button {
  display: inline-grid;
  grid-template-rows: 20px auto;
  place-items: center;
  gap: 5px;
  min-width: 98px;
  padding: 9px 16px;
  color: #65737d;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease, background 160ms ease;
}

.factory-tool-button:not(:disabled):hover {
  color: var(--green-strong);
  background: #eff8f5;
}

.factory-tool-button.is-primary {
  color: var(--green-strong);
}

.factory-tool-button:disabled {
  color: #b4bdc2;
  cursor: not-allowed;
  opacity: 0.68;
}

.factory-tool-icon::before {
  font-family: "FontAwesome";
  font-size: 18px;
  content: "\f067";
}

#editFactoryButton .factory-tool-icon::before {
  content: "\f085";
}

.invoice-tool-icon::before {
  content: "\f0f6";
}

.factory-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 420px;
  color: var(--muted);
}

.factory-search span::before {
  font-family: "FontAwesome";
  font-size: 15px;
  content: "\f002";
}

.factory-search input {
  width: 100%;
  min-height: 34px;
  padding: 0 4px;
  color: #071b28;
  background: transparent;
  border: 0;
  outline: none;
  font: inherit;
}

.factory-search-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-filter-panel {
  display: grid;
  grid-template-columns: 1.25fr 1.1fr 0.95fr 1.05fr 0.78fr 0.78fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-filter-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #60707a;
  font-size: 12px;
  font-weight: 500;
}

.invoice-filter-panel input,
.invoice-filter-panel select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fff;
  border: 1px solid #cfe2dd;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.invoice-filter-panel .custom-select-trigger {
  min-height: 36px;
  height: 36px;
  padding: 7px 34px 7px 10px;
  border-color: #cfe2dd;
  border-radius: 6px;
}

.invoice-filter-panel .custom-select-option {
  min-height: 30px;
  font-size: 12px;
}

.invoice-filter-panel input:focus,
.invoice-filter-panel select:focus {
  border-color: var(--green-strong);
  box-shadow: 0 0 0 2px rgba(0, 118, 96, 0.08);
}

.invoice-filter-panel input[type="date"] {
  display: block;
  min-height: 36px;
  height: 36px;
  padding: 7px 10px;
  line-height: 20px;
  -webkit-appearance: none;
  appearance: none;
}

.invoice-filter-panel input[type="date"]::-webkit-date-and-time-value {
  min-height: 20px;
  margin: 0;
  text-align: left;
}

.invoice-filter-panel input[type="date"]::-webkit-datetime-edit {
  padding: 0;
}

.invoice-filter-panel input[type="date"]::-webkit-calendar-picker-indicator {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.invoice-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-filter-button {
  height: 36px;
  padding: 0 13px;
  color: var(--green-strong);
  background: #fff;
  border: 1px solid #c9e4dc;
  border-radius: 7px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.invoice-filter-button:hover {
  background: #eff8f5;
  border-color: #9fd4c4;
}

.invoice-filter-button.is-primary {
  color: #fff;
  background: var(--green-strong);
  border-color: var(--green-strong);
}

.invoice-filter-button.is-primary:hover {
  background: #006e5a;
}

.invoice-filter-expand,
.invoice-filter-scrim {
  display: none;
}

@media (max-width: 1600px) {
  .invoice-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .invoice-filter-actions {
    grid-column: 3 / span 2;
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .invoice-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .invoice-filter-actions {
    grid-column: 1 / -1;
  }
}

.factory-table-wrap {
  position: relative;
  min-height: 320px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 26%) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.factory-workspace-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-workspace-list .factory-table-wrap {
  min-height: 0;
  overflow: auto;
  box-sizing: border-box;
  padding: 6px;
  background: transparent;
  border-color: #edf4f1;
}

.factory-inline-editor-host {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.factory-editor-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  grid-auto-rows: max-content;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  background: rgba(247, 250, 248, 0.86);
  border-radius: 8px;
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.factory-editor-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0s linear, visibility 0s linear;
}

.factory-editor-loading-overlay img {
  width: 96px;
  height: auto;
  clip-path: inset(2px round 8px);
}

.factory-editor-loading-overlay span {
  width: 92px;
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.factory-editor-loading-overlay span::before {
  display: block;
  width: 38px;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  content: "";
  animation: boot-progress 920ms ease-in-out infinite;
}

.factory-sidebar-search {
  display: grid;
}

.factory-sidebar-search .factory-search {
  max-width: none;
  min-height: 42px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-sidebar-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--green-strong);
  background: #fff;
  border: 1px dashed #cbded8;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.factory-sidebar-create:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.factory-sidebar-create-icon::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f067";
}

.factory-card-list {
  display: grid;
  align-content: start;
  gap: 4px;
}

.factory-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 10px;
  min-height: 104px;
  padding: 18px 14px;
  color: #071b28;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.factory-card:hover {
  background: #f5fbf8;
}

.factory-card.is-selected {
  background: #edf8f4;
  border-color: #c9e1d9;
  box-shadow: inset 3px 0 0 var(--green);
}

.factory-card-token {
  min-width: 0;
  display: flex;
}

.factory-card-token .token-mini {
  display: grid;
  justify-items: center;
  gap: 0;
}

.factory-card-token .token-mini-logo {
  width: 40px;
  height: 40px;
}

.factory-card-token .token-mini strong,
.factory-card-token .token-mini small,
.factory-card-payout,
.factory-card-fee {
  display: none;
}

.factory-card-main {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.factory-card-main [data-factory-cell="name"] {
  min-width: 0;
}

.factory-card-main .factory-name-cell {
  display: flex;
  min-width: 0;
  gap: 6px;
}

.factory-card-main .factory-address {
  overflow: hidden;
  max-width: 100%;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-card-main > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.15;
}

.factory-card-main .factory-status {
  width: fit-content;
  min-height: 18px;
  padding: 1px 7px;
  font-size: 10px;
  background-color: #a8bd9a33 !important;
}

.factory-card-metric {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
  min-width: 96px;
  color: var(--muted);
  font-size: 11px;
}

.factory-card-metric-row {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.factory-card-metric strong {
  color: #0b6f97;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.factory-card-metric .animated-amount-suffix {
  color: #5f7f8f;
  font-weight: 500;
}

.factory-card-metric .factory-tmr-cell {
  justify-content: flex-end;
}

.factory-card-arrow {
  align-self: center;
  color: var(--green-strong);
}

.factory-card-arrow::before {
  font-family: "FontAwesome";
  font-size: 18px;
  font-weight: 400;
  content: "\f105";
}

.factory-card.is-factory-request {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  cursor: default;
}

.factory-card.is-factory-request:hover {
  background: #fff;
  box-shadow: none;
}

.factory-inline-editor-host {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.factory-inline-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
  border: 1px dashed #cfe1db;
  border-radius: 8px;
}

.factory-inline-empty[hidden] {
  display: none;
}

.factory-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #071b28;
  font-size: 13px;
}

.factory-table th,
.factory-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.factory-table th {
  color: #64727c;
  background: #f8fbfa;
  font-size: 12px;
  font-weight: 500;
}

.invoice-table th,
.invoice-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

.invoice-table tbody td,
.invoice-table tbody td * {
  font-weight: 400 !important;
}

.invoice-action-trigger {
  padding: 0;
  color: #1879b8;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.invoice-action-trigger:hover,
.invoice-action-trigger:focus-visible,
.invoice-action-trigger[aria-expanded="true"] {
  color: #075f96;
}

.invoice-action-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.invoice-action-menu {
  position: fixed;
  z-index: 1200;
  width: 232px;
  padding: 5px;
  color: #12343d;
  background: #ffffff;
  border: 1px solid #cbdedd;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(17, 48, 57, 0.14);
}

.invoice-action-menu::before {
  position: absolute;
  left: var(--invoice-action-anchor-x, 22px);
  width: 9px;
  height: 9px;
  margin-left: -5px;
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.invoice-action-menu:not(.opens-up)::before {
  top: -5px;
  border-top: 1px solid #cbdedd;
  border-left: 1px solid #cbdedd;
}

.invoice-action-menu.opens-up::before {
  bottom: -5px;
  border-right: 1px solid #cbdedd;
  border-bottom: 1px solid #cbdedd;
}

.invoice-action-menu[hidden] {
  display: none;
}

.invoice-action-menu-title {
  padding: 7px 9px 6px;
  color: #6f878e;
  font-size: 11px;
  font-weight: 400;
}

.invoice-action-menu-list {
  display: grid;
  gap: 1px;
}

.invoice-action-menu-section {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid #dbe8e6;
}

.invoice-action-menu-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 34px;
  padding: 0 8px;
  color: #183c45;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.invoice-action-menu-item[hidden] {
  display: none;
}

.invoice-action-menu-item::before,
.invoice-action-menu-item i::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.invoice-action-menu-item.is-number::before {
  content: "\f129";
}

.invoice-action-menu-item.is-address::before {
  content: "\f292";
}

.invoice-action-menu-item.is-link::before {
  content: "\f029";
}

.invoice-action-menu-item.is-details::before {
  content: "\f013";
}

.invoice-action-menu-item.is-page::before {
  content: "\f08e";
}

.invoice-action-menu-item:hover,
.invoice-action-menu-item:focus-visible {
  color: #087a69;
  background: #eef8f5;
  outline: 0;
}

.invoice-action-menu-item.is-copied i::before {
  color: #07946f;
  content: "\f00c";
}

.invoice-action-menu-item.is-pending i::before {
  display: inline-block;
  color: #6f878e;
  content: "\f110";
  animation: invoice-action-menu-spin 0.8s linear infinite;
}

.invoice-action-menu-item:disabled {
  cursor: wait;
  opacity: 0.72;
}

@keyframes invoice-action-menu-spin {
  to {
    transform: rotate(360deg);
  }
}

.invoice-table th.is-status-column,
.invoice-table td.is-status-column {
  text-align: center;
}

.invoice-table th.is-warning-column,
.invoice-table td.is-warning-column {
  width: 42px;
  min-width: 42px;
  padding-right: 9px;
  padding-left: 9px;
  text-align: center;
}

.invoice-table th.is-status-column .table-sort-button,
.invoice-table td.is-status-column .invoice-status-cell,
.invoice-table td.is-status-column .invoice-table-status {
  justify-content: center;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.table-sort-button::after {
  min-width: 12px;
  color: transparent;
  font-family: "FontAwesome";
  font-size: 11px;
  content: "\f0dc";
  transition: color 140ms ease;
}

.table-sort-button:hover,
.table-sort-button.is-active {
  color: var(--green-strong);
}

.table-sort-button:hover::after {
  color: rgba(0, 118, 96, 0.35);
}

.table-sort-button.is-active::after {
  color: var(--green-strong);
}

.table-sort-button.is-active[data-direction="asc"]::after {
  content: "\f0de";
}

.table-sort-button.is-active[data-direction="desc"]::after {
  content: "\f0dd";
}

.factory-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.factory-table tbody tr.is-factory-request {
  cursor: default;
}

.factory-table tbody tr.is-factory-request:hover {
  background: transparent;
}

.factory-table tbody tr:hover,
.factory-table tbody tr.is-selected {
  background: #eff8f5;
}

.factory-table tbody tr.is-selected {
  box-shadow: inset 3px 0 0 var(--green-strong);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 48px;
  margin-top: auto;
  padding: 0 4px;
  color: #64727c;
  font-size: 13px;
  font-weight: 500;
}

.table-page-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-page-number,
.table-page-ellipsis {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  color: #071b28;
  background: #fff;
  border: 1px solid #c9e4dc;
  border-radius: 7px;
  font: inherit;
  font-weight: 500;
}

.table-page-number {
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.table-page-number:hover:not(:disabled) {
  background: #def3ec;
  border-color: #9fd4c4;
}

.table-page-number.is-active {
  color: #fff;
  background: #071b28;
  border-color: #071b28;
}

.table-page-number:disabled {
  cursor: default;
  opacity: 0.45;
}

.table-page-number.is-arrow::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f104";
}

.table-page-number.is-next::before {
  content: "\f105";
}

.table-page-ellipsis {
  color: #9aa7b0;
  background: transparent;
  border-color: transparent;
}

.table-page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52616c;
}

.table-page-jump input {
  width: 58px;
  height: 32px;
  padding: 0 8px;
  color: #071b28;
  background: #fff;
  border: 1px solid #c9e4dc;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  outline: none;
}

.invoice-list-toolbar {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  min-height: 42px;
  padding: 0 4px;
}

.invoice-list-toolbar .table-pagination {
  flex: 0 1 auto;
  min-height: 42px;
  margin-top: 0;
  padding: 0;
}

.invoice-list-create {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  height: 36px;
  padding: 0 16px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.invoice-list-create:hover:not(:disabled) {
  background: var(--green-strong);
  border-color: var(--green-strong);
}

.invoice-list-create:disabled {
  cursor: default;
  opacity: 0.5;
}

.invoice-list-create span::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f067";
}

.invoice-list-create strong {
  color: inherit;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .invoice-list-toolbar .table-page-jump {
    display: none;
  }
}

.table-page-jump input:focus {
  border-color: var(--green-strong);
}

.invoice-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 180px;
}

.invoice-table-status {
  flex: 0 0 auto;
}

.invoice-table-status.is-payment-status {
  min-width: 142px;
}

.invoice-table-status.is-activation-status {
  min-width: 176px;
}

.invoice-table-status.is-operation-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 24px;
}

.invoice-operation-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--green-strong);
  border-radius: 50%;
  animation: invoice-operation-spin 720ms linear infinite;
}

@keyframes invoice-operation-spin {
  to { transform: rotate(360deg); }
}

.invoice-table-status.is-marquee {
  position: relative;
  max-width: 176px;
  overflow: hidden;
}

.invoice-table-status.is-marquee .invoice-status-label {
  transition: opacity 140ms ease;
}

.invoice-status-marquee {
  position: absolute;
  top: 50%;
  left: 100%;
  width: max-content;
  max-width: none;
  opacity: 0;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

.invoice-table-status.is-marquee:hover .invoice-status-label,
.invoice-table-status.is-marquee:focus-within .invoice-status-label {
  opacity: 0;
}

.invoice-table-status.is-marquee:hover .invoice-status-marquee,
.invoice-table-status.is-marquee:focus-within .invoice-status-marquee {
  opacity: 1;
  animation: invoice-status-marquee 5.2s linear infinite;
}

@keyframes invoice-status-marquee {
  from {
    transform: translate(0, -50%);
  }

  to {
    transform: translate(calc(-100% - 210px), -50%);
  }
}

.invoice-token-factory-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.invoice-token-factory-separator {
  color: var(--muted);
  font-weight: 700;
}

.invoice-warning-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #b7791f;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 140ms ease, transform 140ms ease;
}

.invoice-warning-button::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
  content: "\f071";
}

.invoice-warning-button:hover {
  color: #8a4f05;
  transform: translateY(-1px);
}

.invoice-post-activation-payment-icon {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  color: #b7791f;
  line-height: 1;
  vertical-align: -1px;
}

.invoice-post-activation-payment-icon::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f019";
}

.invoice-warning-tab {
  min-width: 48px;
  color: #b7791f;
}

.invoice-warning-tab::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
  content: "\f071";
}

.invoice-warning-tab.is-active,
.invoice-warning-tab:hover {
  color: #8a4f05;
}

.factory-address,
.factory-fee {
  font-weight: 500;
}

.animated-amount {
  display: inline-block;
  min-width: 0;
  color: inherit;
  font-variant-numeric: tabular-nums;
  transform: translateY(0);
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.animated-amount.is-amount-updated-up {
  color: var(--green-strong);
  text-shadow: 0 0 14px rgba(17, 144, 104, 0.18);
  transform: translateY(-1px);
}

.animated-amount.is-amount-updated-down {
  color: #c7362f;
  text-shadow: 0 0 14px rgba(199, 54, 47, 0.16);
  transform: translateY(1px);
}

.invoice-address-cell {
  display: inline-grid;
  grid-template-columns: 96px 26px;
  align-items: center;
  gap: 7px;
}

.factory-name-cell {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 26px;
  align-items: center;
  max-width: 190px;
  gap: 7px;
}

.factory-name-cell .factory-address {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-address-cell .factory-address {
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-copy-button,
.table-copy-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #6b7c82;
  background: #f2f8f6;
  border: 1px solid #cfe2dc;
  border-radius: 6px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.invoice-copy-button::before,
.table-copy-button::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f0c5";
}

.invoice-copy-button:hover,
.invoice-copy-button.is-copied,
.table-copy-button:hover,
.table-copy-button.is-copied {
  color: var(--green-strong);
  background: #e7f5ef;
  border-color: #a9d9cb;
}

.invoice-copy-button:active,
.table-copy-button:active {
  transform: translateY(1px);
}

.copy-inline-anchor {
  position: relative;
}

.copy-inline-toast {
  position: absolute;
  right: 0;
  top: -30px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: var(--green-strong);
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(7, 27, 40, 0.08);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-inline-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copy-inline-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.copy-inline-toast.is-error {
  color: #b9382e;
  background: #fff4f1;
  border-color: #ffc0b8;
}

.factory-subvalue {
  display: block;
  margin-top: 4px;
  color: #5e7270;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.token-mini {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
  gap: 7px;
  vertical-align: middle;
}

.token-mini-logo {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
}

.token-mini strong {
  overflow: hidden;
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  padding: 3px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
}

button.factory-status {
  font-family: inherit;
  border: 0;
}

.factory-status.is-clickable {
  cursor: pointer;
}

.factory-status.is-clickable:hover {
  filter: brightness(0.86);
}

.factory-status-warning::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 400;
  color: #d13f3f;
  content: "\f071";
}

.factory-tmr-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.factory-tmr-warning {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #d13f3f;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.factory-tmr-warning::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
  content: "\f071";
}

.factory-tmr-warning:hover {
  background: rgba(209, 63, 63, 0.09);
}

.factory-status.is-active {
  color: #007452;
  background: transparent;
}

.factory-status.is-inactive {
  color: #8a6a05;
  background: transparent;
}

.factory-status.is-blocked {
  color: #b42318;
  background: transparent;
}

.factory-status.is-blocked .factory-status-warning::before {
  color: #b42318;
  content: "\f023";
}

.factory-status.is-pending {
  color: #6b5600;
  background: transparent;
}

.factory-status.is-partial {
  color: #6b4b00;
  background: transparent;
}

.factory-status.is-overpaid {
  color: #17427b;
  background: transparent;
}

.factory-table td.is-factory-problem {
  position: relative;
  background: rgba(209, 63, 63, 0.08);
  box-shadow: inset 3px 0 0 rgba(209, 63, 63, 0.58);
}

.factory-table td.is-factory-problem:hover {
  background: rgba(209, 63, 63, 0.12);
}

.merchant-notification-stack {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 2500;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.merchant-notification {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: start;
  padding: 14px;
  color: #082033;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 110, 88, 0.18);
  border-left: 4px solid var(--green-strong);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(3, 38, 32, 0.18);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(-18px) translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.merchant-notification.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.merchant-notification.is-hiding {
  opacity: 0;
  transform: translateX(-14px);
}

.merchant-notification.is-warning {
  border-left-color: #c58b00;
}

.merchant-notification.is-error {
  border-left-color: #c64b4b;
}

.merchant-notification.is-detailed {
  grid-template-rows: auto auto;
}

.merchant-notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-strong);
  background: #e7f5ef;
  border: 1px solid #bde2d5;
  border-radius: 8px;
}

.merchant-notification-icon::before {
  font-family: "FontAwesome";
  font-size: 18px;
  content: "\f05a";
}

.merchant-notification-icon.is-success::before {
  content: "\f00c";
}

.merchant-notification-icon.is-tmr::before {
  content: "\f0d6";
}

.merchant-notification-icon.is-fee::before,
.notification-item-icon.is-fee::before {
  content: "\f145";
}

.merchant-notification-icon.is-conversion::before,
.notification-item-icon.is-conversion::before {
  content: "\f074";
}

.merchant-notification-icon.is-wallet-operation::before,
.notification-item-icon.is-wallet-operation::before {
  content: "\f046";
}

.merchant-notification-icon.is-invoice-activated::before {
  content: "\f2b5";
}

.merchant-notification-icon.is-payout-plan::before {
  content: "\f0e8";
}

.merchant-notification-icon.is-account::before,
.notification-item-icon.is-account::before {
  content: "\f0b1";
}

.merchant-notification-icon.is-unknown::before {
  content: "\f121";
}

.merchant-notification-icon.is-factory::before {
  content: "\f19c";
}

.merchant-notification-icon.is-factory-wallet::before,
.notification-item-icon.is-factory-wallet::before {
  width: 17px;
  height: 17px;
  content: "";
  background: currentColor;
  -webkit-mask: url("../img/icons/factory-wallet.svg") center / contain no-repeat;
  mask: url("../img/icons/factory-wallet.svg") center / contain no-repeat;
}

.merchant-notification-icon.is-warning {
  color: #9b6c00;
  background: #fff6dc;
  border-color: #f0d68b;
}

.merchant-notification-icon.is-warning::before {
  content: "\f071";
}

.merchant-notification-icon.is-error {
  color: #a93636;
  background: #fff0f0;
  border-color: #efc3c3;
}

.merchant-notification-icon.is-error::before {
  content: "\f06a";
}

.merchant-notification-body {
  min-width: 0;
}

.merchant-notification.is-detailed .merchant-notification-body {
  display: contents;
}

.merchant-notification-body strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.merchant-notification.is-detailed .merchant-notification-body strong {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  margin: 0;
}

.merchant-notification-body p {
  margin: 0;
  color: #5d6d77;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.merchant-notification-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: #5d6d77;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  list-style: none;
}

.merchant-notification.is-detailed .merchant-notification-list {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 2px;
  padding: 10px 12px;
  background: rgba(246, 249, 248, 0.86);
  border: 1px solid rgba(8, 32, 51, 0.08);
  border-radius: 7px;
}

.merchant-notification-list li {
  position: relative;
  padding-left: 13px;
}

.merchant-notification-list li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.merchant-notification-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #7a898f;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.merchant-notification.is-detailed .merchant-notification-close {
  grid-column: 3;
  grid-row: 1;
}

.merchant-notification-close::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f00d";
}

.merchant-notification-close:hover {
  color: #082033;
  background: #edf5f2;
}

.factory-empty,
.factory-loading {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

.factory-request-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#factoryRequestForm:not(.is-inline-request) .modal-head .eyebrow {
  text-transform: none;
}

#factoryRequestForm:not(.is-inline-request) .modal-head .eyebrow::before {
  display: inline-block;
  margin-right: 8px;
  font-family: "FontAwesome";
  font-size: 15px;
  vertical-align: -1px;
  content: "\f19c";
}

#factoryRequestForm:not(.is-inline-request) .factory-request-grid label,
#factoryRequestForm:not(.is-inline-request) .factory-request-grid input,
#factoryRequestForm:not(.is-inline-request) .factory-request-grid textarea,
#factoryRequestForm:not(.is-inline-request) .factory-request-grid select,
#factoryRequestForm:not(.is-inline-request) .factory-request-grid .custom-select-trigger,
#factoryRequestForm:not(.is-inline-request) .factory-request-grid .custom-select-option {
  font-weight: 400;
}

#factoryRequestForm:not(.is-inline-request) #factoryRequestSubmit {
  display: block;
  width: max-content;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 10px 0 0 auto;
  padding: 5px 20px;
}

.invoice-create-modal {
  width: min(640px, 100%);
}

.invoice-create-modal,
.invoice-create-modal * {
  font-weight: 400 !important;
}

.invoice-create-modal .modal-head {
  gap: 5px;
}

.invoice-create-modal .modal-head .eyebrow {
  text-transform: none;
}

.invoice-create-modal .modal-head .eyebrow::before {
  display: inline-block;
  margin-right: 8px;
  font-family: "FontAwesome";
  font-size: 15px;
  vertical-align: -1px;
  content: "\f15c";
}

.invoice-create-modal .modal-head h2 {
  font-size: 28px;
}

.invoice-create-modal #invoiceCreateFactory + .custom-select .custom-select-trigger,
.invoice-create-modal #invoiceCreateFactory + .custom-select .custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-create-modal #invoiceCreateFactory + .custom-select .token-mini-logo {
  flex: 0 0 18px;
}

.invoice-create-modal #invoiceCreateFactory + .custom-select .token-mini-logo.is-fallback {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #168467;
}

.invoice-create-factory-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-create-modal .factory-request-grid {
  gap: 9px;
  margin-top: 14px;
}

.invoice-create-modal .factory-request-grid label {
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}

.invoice-create-modal .factory-request-grid input,
.invoice-create-modal .factory-request-grid select {
  min-height: 36px;
  padding: 7px 10px;
  font-weight: 500;
}

#invoiceCreateAmountField {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 5px;
  align-items: center;
}

#invoiceCreateAmountField > span {
  grid-column: 1;
  grid-row: 1;
}

#invoiceCreateAmountField > #invoiceCreateAmount {
  grid-column: 1 / -1;
  grid-row: 2;
}

.invoice-create-modal #invoiceCreateAmount.is-invalid {
  border-color: #c94b4b;
  background: #fff8f7;
  box-shadow: 0 0 0 1px rgba(201, 75, 75, 0.08);
}

.invoice-create-modal #invoiceCreateAmount.is-invalid:focus {
  border-color: #b53636;
  box-shadow: 0 0 0 3px rgba(201, 75, 75, 0.14);
}

.invoice-create-field-error {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-create-field-error[hidden] {
  display: none;
}

.invoice-auto-policy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(232, 247, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-auto-policy[hidden] {
  display: none;
}

.invoice-auto-policy-head {
  display: grid;
  gap: 4px;
}

.invoice-auto-policy-head strong {
  color: #063f35;
  font-size: 14px;
}

.invoice-auto-policy-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.invoice-auto-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.invoice-auto-policy-grid label,
.invoice-auto-policy-checks label {
  display: grid;
  gap: 5px;
  color: #071b28;
  font-size: 12px;
  font-weight: 500;
}

.invoice-auto-policy-grid label[hidden],
.invoice-auto-policy-checks label[hidden] {
  display: none;
}

.invoice-auto-policy-grid input,
.invoice-auto-policy-grid select {
  min-height: 36px;
  padding: 7px 10px;
  font-weight: 500;
}

.invoice-auto-policy-grid input {
  width: 100%;
  color: #071b28;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font: inherit;
}

.invoice-auto-policy-grid input:focus {
  border-color: #8fd0bc;
  box-shadow: 0 0 0 3px rgba(23, 135, 101, 0.1);
}

.invoice-auto-policy-checks {
  display: grid;
  gap: 8px;
}

.invoice-auto-policy-checks label {
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
}

.invoice-auto-policy-checks input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: #08785d;
}

.invoice-create-modal .invoice-auto-policy-head strong {
  font-weight: 500 !important;
}

.invoice-create-modal .invoice-auto-policy-checks {
  gap: 2px;
}

.invoice-create-modal .invoice-auto-policy-checks label {
  min-height: 20px;
}

.invoice-create-modal .invoice-auto-policy-checks label[hidden] {
  display: none !important;
}

.invoice-create-modal .invoice-auto-policy-checks .invoice-activation-switch span {
  flex: 0 0 30px;
  width: 30px;
}

.invoice-create-modal .invoice-auto-policy-checks .invoice-activation-switch input:checked + span::before {
  transform: translateX(14px);
}

.invoice-create-modal .invoice-auto-policy-checks .invoice-activation-switch input:focus-visible + span {
  outline: 2px solid #0b8b6f;
  outline-offset: 3px;
}

.invoice-create-restriction {
  position: relative;
  margin-top: 14px;
  padding: 11px 12px 11px 38px;
  color: #6b4b00;
  background: #fff8e7;
  border: 1px solid #f0d28a;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.invoice-create-restriction::before {
  position: absolute;
  top: 12px;
  left: 13px;
  font-family: "FontAwesome";
  font-size: 14px;
  content: "\f071";
}

.invoice-create-restriction[hidden] {
  display: none;
}

.invoice-create-modal #invoiceCreateSubmit {
  display: block;
  width: max-content;
  min-height: 0;
  margin-left: auto;
  padding: 5px 20px;
  font-weight: 500 !important;
}

.native-select-hidden {
  position: absolute;
  width: 1px !important;
  min-height: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-trigger {
  position: relative;
  width: 100%;
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  overflow: hidden;
  color: #071b28;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #63727b;
  border-bottom: 2px solid #63727b;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease, border-color 0.16s ease;
}

.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: rgba(7, 107, 82, 0.35);
  box-shadow: 0 0 0 3px rgba(7, 107, 82, 0.08);
}

.custom-select.is-open .custom-select-trigger::after {
  border-color: var(--green);
  transform: translateY(-35%) rotate(225deg);
}

.custom-select-list {
  position: absolute;
  z-index: 70;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: grid;
  gap: 3px;
  max-height: 180px;
  padding: 5px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 40, 35, 0.16);
  transform-origin: top;
  animation: customSelectOpen 0.16s ease both;
  scrollbar-color: rgba(7, 107, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.custom-select-list[hidden] {
  display: none;
}

.custom-select-option {
  min-height: 31px;
  padding: 7px 9px;
  color: #223a45;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  color: var(--green-dark);
  background: #eaf7f2;
}

.custom-select.is-disabled .custom-select-trigger,
.custom-select-option:disabled {
  color: var(--muted);
  cursor: not-allowed;
  background: #f4f8f6;
}

.invoice-operation-group .custom-select-trigger {
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  border-radius: 6px;
}

.custom-select-option.is-muted {
  color: #91a1a6;
  font-weight: 400;
}

.custom-select-option.is-muted:hover,
.custom-select-option.is-muted.is-selected {
  color: #62777e;
  background: #f2f7f5;
}

.custom-select.is-wallet-asset-select .custom-select-trigger,
.custom-select.is-wallet-asset-select .custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select.is-wallet-asset-select .custom-select-trigger {
  min-height: 42px;
  padding: 6px 36px 6px 10px;
}

.custom-select.is-wallet-asset-select .custom-select-option {
  min-height: 40px;
  padding: 6px 9px;
}

.custom-select.is-wallet-asset-select .invoice-wallet-token-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.wallet-select-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-select-balance {
  max-width: 48%;
  margin-left: auto;
  overflow: hidden;
  color: #69808a;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-request-inline-network,
.factory-request-inline-fee {
  display: none;
}

.factory-request-actions {
  display: block;
}

.factory-profile-grid .custom-select-trigger {
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  border-radius: 6px;
  font-weight: 500;
}

@keyframes customSelectOpen {
  from {
    opacity: 0;
    transform: translateY(-4px) scaleY(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

#invoiceCreateSubmit {
  margin-top: 16px;
}

.invoice-create-result-modal {
  width: min(540px, 100%);
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(34, 51, 47, 0.2);
}

#invoiceCreateResultTitle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}

.invoice-create-result-modal .modal-head p {
  font-weight: 400;
}

#invoiceCreateResultTitle::before {
  flex: 0 0 auto;
  color: var(--green-strong);
  font-family: "FontAwesome";
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  content: "\f0f6";
}

.invoice-create-result-summary {
  margin: 16px 0 18px;
}

.invoice-create-result-receipt {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.invoice-create-result-primary {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 5px;
}

.invoice-create-result-primary.has-no-qr {
  grid-template-columns: minmax(0, 1fr);
}

.invoice-create-result-primary.has-no-qr .invoice-create-result-qr-wrap {
  display: none;
}

.invoice-create-result-qr-wrap {
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  align-self: center;
  background: #fff;
  border: 0;
  border-radius: 6px;
}

.invoice-create-result-qr-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.invoice-create-result-primary-fields {
  display: grid;
  align-content: center;
  min-width: 0;
}

.invoice-create-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 31px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(184, 212, 204, 0.72);
}

.invoice-create-result-row:last-child {
  border-bottom: 0;
}

.invoice-create-result-row > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.invoice-create-result-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  color: #0b5f8f;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.invoice-create-result-modal .invoice-create-result-summary .invoice-create-result-row strong,
.invoice-create-result-modal .invoice-create-result-summary .invoice-create-result-row strong * {
  font-weight: 400 !important;
}

.invoice-create-result-row.is-payment-address {
  align-items: flex-start;
}

.invoice-create-result-row.is-payment-address strong {
  flex: 1 1 auto;
  gap: 7px;
}

.invoice-create-result-address {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invoice-create-result-copy {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: -2px;
}

.invoice-create-result-copy.is-copied::before {
  content: "\f00c";
}

@media (max-width: 520px) {
  .invoice-create-result-primary {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .invoice-create-result-qr-wrap {
    width: 108px;
  }

  .invoice-create-result-primary-fields .invoice-create-result-row {
    gap: 8px;
  }
}

.invoice-create-result-warning {
  display: grid;
  gap: 8px;
  margin: 8px 0 18px;
  padding: 12px;
  color: #6b4b00;
  background: #fff8e7;
  border: 1px solid #f0d28a;
  border-radius: 8px;
}

.invoice-create-result-warning[hidden] {
  display: none;
}

.invoice-create-result-warning strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b4b00;
  font-size: 13px;
  font-weight: 700;
}

.invoice-create-result-warning strong::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f071";
}

.invoice-create-result-warning ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #6f5a20;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.factory-table tr.is-highlighted-invoice {
  background: #e8f8f2;
  box-shadow: inset 4px 0 0 var(--green);
}

.factory-table tr.is-highlighted-invoice td {
  background: #e8f8f2;
}

.invoice-details-modal {
  position: relative;
  width: min(780px, 100%);
}

.invoice-process-confirm-overlay {
  z-index: 32;
}

#factorySettingConfirmModal {
  z-index: 36;
}

.invoice-process-confirm-modal {
  width: min(560px, 100%);
}

.invoice-process-confirm-checks {
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
}

.invoice-process-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: #f7fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-process-confirm-row strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.invoice-process-confirm-row span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.invoice-process-confirm-row.is-ok span {
  color: var(--green-strong);
}

.invoice-process-confirm-row.is-error {
  background: #fff6f3;
  border-color: #f4c5b8;
}

.invoice-process-confirm-row.is-error span {
  color: #b5482f;
}

.invoice-process-confirm-note {
  margin: 0 0 16px;
  padding: 12px;
  color: #40535c;
  background: #eef6f2;
  border: 1px solid #cfe4db;
  border-radius: 8px;
  font-size: 13px;
}

.invoice-process-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.factory-setting-confirm-modal.is-final .invoice-process-confirm-actions {
  grid-template-columns: 1fr;
}

.factory-setting-confirm-modal.is-success .invoice-process-confirm-note {
  color: var(--green-strong);
  background: #eff8f5;
  border-color: #bfe1d5;
}

.factory-setting-confirm-modal.is-error .invoice-process-confirm-note {
  color: #9a341f;
  background: #fff6f3;
  border-color: #f4c5b8;
}

.invoice-details-loader {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 28px;
  background: rgba(251, 253, 253, 0.97);
  border-radius: inherit;
}

.invoice-details-loader img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 10px;
}

.invoice-details-loader span {
  color: #38505b;
  font-size: 14px;
  font-weight: 500;
}

.invoice-details-modal.is-loading .invoice-details-loader {
  display: grid;
}

.invoice-details-modal.is-loading > :not(.invoice-details-loader) {
  opacity: 0;
  pointer-events: none;
}

.invoice-details-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-details-head div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.factory-setting-confirm-reason {
  display: grid;
  gap: 6px;
}

.factory-setting-confirm-reason[hidden] {
  display: none;
}

.factory-setting-confirm-reason > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.factory-setting-confirm-reason textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfe0da;
  border-radius: 6px;
  outline: 0;
  resize: vertical;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

.factory-setting-confirm-reason textarea:focus {
  border-color: #70bea5;
  box-shadow: 0 0 0 2px rgba(28, 147, 111, 0.1);
}

.factory-setting-confirm-reason small {
  color: #71827f;
  font-size: 10px;
  line-height: 1.4;
}

.invoice-details-title-row {
  display: flex !important;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.invoice-details-head strong,
.invoice-details-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-details-head strong {
  color: #071b28;
  font-size: 15px;
}

.invoice-details-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.invoice-details-title-row .invoice-activation-live-status {
  color: #0b5f8f;
  font-size: 13px;
  font-weight: 600;
}

.invoice-details-title-row .invoice-activation-live-status.is-operation-pending {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.invoice-details-title-row .invoice-activation-live-status.is-operation-pending .invoice-operation-spinner {
  display: block;
  width: 15px;
  height: 15px;
}

.invoice-info-grid {
  display: grid;
  gap: 0;
  padding: 10px;
}

.invoice-operation-group {
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-info-receipt {
  position: relative;
  display: grid;
  gap: 8px;
  line-height: normal;
}

.invoice-info-section {
  display: grid;
  gap: 4px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(184, 212, 204, 0.72);
}

.invoice-info-section:last-of-type {
  border-bottom: 0;
}

.invoice-info-section h3 {
  margin: 0;
  color: #0b6f58;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
}

.invoice-info-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.invoice-info-receipt-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 22px;
  padding: 2px 0;
}

.invoice-info-receipt-row.is-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(128px, 0.24fr) minmax(0, 1fr);
}

.invoice-info-receipt-row span,
.invoice-operation-group label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.invoice-info-receipt-row strong {
  overflow: hidden;
  color: #0b5f8f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.invoice-info-receipt-row.is-wide strong {
  text-align: left;
}

.invoice-info-receipt-row .token-mini {
  justify-content: flex-end;
}

.invoice-info-receipt-row .token-mini strong {
  font-size: 12px;
}

.invoice-info-warning {
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding: 8px 10px;
  color: #6b4b00;
  background: #fff8e7;
  border: 1px solid #f0d28a;
  border-radius: 8px;
}

.invoice-info-warning strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b4b00;
  font-size: 12px;
  font-weight: 700;
}

.invoice-info-warning strong::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 400;
  content: "\f071";
}

.invoice-info-warning ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 17px;
  color: #6f5a20;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.invoice-exception-default {
  display: grid;
  gap: 6px;
}

.invoice-activation-blocked {
  padding: 10px 12px;
  color: #8a5b00;
  background: #fff7e6;
  border: 1px solid #f1d7a7;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.invoice-exception-default span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.invoice-exception-default strong {
  min-height: 38px;
  padding: 10px 12px;
  overflow: hidden;
  color: #071b28;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-payout-plan {
  display: grid;
  gap: 8px;
}

.invoice-payout-plan > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.invoice-payout-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 8px;
}

.invoice-payout-plan small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.invoice-activation-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.invoice-activation-main {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.invoice-activation-control {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  font-size: 10px;
}

.invoice-activation-switch {
  position: relative;
}

.invoice-activation-switch-label {
  display: inline-flex !important;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.invoice-activation-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.invoice-activation-switch span {
  position: relative;
  width: 37px;
  height: 16px;
  background: #dfece8;
  border: 1px solid #c1dbd2;
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease;
}

.invoice-activation-switch span::before {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(7, 27, 40, 0.2);
  transition: transform 160ms ease;
  content: "";
}

.invoice-activation-switch input:checked + span {
  background: #0b8b6f;
  border-color: #0b8b6f;
}

.invoice-activation-switch input:checked + span::before {
  transform: translateX(21px);
}

.invoice-activation-switch strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
}

.invoice-activation-live-status {
  color: #0b5f8f;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.invoice-activation-scenarios {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.invoice-activation-scenario {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-content: center;
  align-items: center;
  justify-items: start;
  min-height: 56px;
  padding: 7px 9px;
  color: #071b28;
  text-align: left;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.invoice-activation-scenario:hover {
  border-color: #8acbbb;
  box-shadow: 0 8px 18px rgba(7, 27, 40, 0.08);
}

.invoice-activation-scenario.is-selected {
  border-color: #15916f;
  box-shadow: inset 0 0 0 1px rgba(21, 145, 111, 0.12);
}

.invoice-activation-scenario:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

.invoice-activation-scenario-check {
  display: none;
}

.invoice-activation-scenario.is-selected .invoice-activation-scenario-check {
  display: none;
}

.invoice-activation-scenario-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
}

.invoice-activation-scenario-icon::before {
  color: #071b28;
  font-family: "FontAwesome";
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.invoice-activation-scenario-icon.is-standard::before {
  content: "\f0f6";
}

.invoice-activation-scenario-icon.is-refund::before {
  content: "\f0e8";
}

.invoice-activation-scenario-icon.is-custom::before {
  content: "\f2ba";
}

.invoice-activation-scenario-icon.is-keep::before {
  display: block;
  width: 1em;
  height: 1em;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
}

.invoice-activation-scenario strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-activation-scenario small {
  grid-column: 2;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.invoice-activation-result {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-activation-result h3 {
  margin: 0;
  color: #071b28;
  font-size: 15px;
  font-weight: 600;
}

#invoiceProcessButton {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  overflow: hidden;
  font-weight: 400;
  background:
    linear-gradient(-45deg, transparent 0 23%, rgba(255, 255, 255, 0.16) 33% 61%, transparent 73% 86%),
    var(--green);
}

#invoiceProcessButton:hover {
  background:
    linear-gradient(-45deg, transparent 0 23%, rgba(255, 255, 255, 0.18) 33% 61%, transparent 73% 86%),
    var(--green-strong);
}

#invoiceProcessButton:disabled:not(.is-loading),
#invoiceProcessButton:disabled:not(.is-loading):hover {
  color: #7f908c;
  background: #e7efec;
  border: 1px solid #d3dfdb;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

#invoiceProcessButton:disabled:not(.is-loading)::before {
  color: #8a9a96;
}

#invoiceProcessButton:not(.is-loading)::before {
  color: currentColor;
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f121";
}

.invoice-activation-result-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 156px;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-activation-result-card p {
  margin: 0;
  color: var(--muted);
  padding-bottom: 5px;
  font-size: 11px;
  line-height: 1;
}

.invoice-activation-result-warning {
  padding: 8px 10px;
  color: #8a5b00;
  background: #fff7e6;
  border: 1px solid #f1d7a7;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.invoice-activation-aml-advice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  color: #70530e;
  background: #fff9eb;
  border: 1px solid #ead7a8;
  border-radius: 8px;
}

.invoice-activation-aml-advice[hidden] {
  display: none;
}

.invoice-activation-aml-advice-icon {
  color: #ba8210;
  font-family: "FontAwesome";
  font-size: 15px;
  line-height: 1;
}

.invoice-activation-aml-advice-icon::before {
  content: "\f071";
}

.invoice-activation-aml-advice p {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.invoice-activation-aml-advice button {
  min-height: 26px;
  padding: 0 9px;
  color: #0b7a62;
  background: #fff;
  border: 1px solid #c9ded6;
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.invoice-activation-aml-advice button:hover {
  background: #edf8f4;
  border-color: #9ccdbd;
}

@media (max-width: 560px) {
  .invoice-activation-aml-advice {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .invoice-activation-aml-advice button {
    grid-column: 2;
    justify-self: start;
  }
}

.invoice-activation-result-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 44px;
  gap: 8px;
  align-items: center;
  color: #64727c;
  font-size: 12px;
  font-weight: 600;
}

.invoice-activation-result-row b {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #fff;
  background: #15916f;
  border-radius: 50%;
  font-size: 8px;
}

.invoice-activation-result-row strong {
  overflow: hidden;
  color: #071b28;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.invoice-activation-result-address {
  display: block;
  cursor: pointer;
}

.invoice-activation-result-address:focus-visible {
  outline: 2px solid #8acbbb;
  outline-offset: 2px;
  border-radius: 4px;
}

.invoice-activation-result-address span {
  display: inline-block;
  min-width: max-content;
  transition: transform 850ms ease;
  will-change: transform;
}

.invoice-activation-result-address:hover span {
  transform: translateX(var(--address-shift, 0px));
}

.invoice-activation-result-row span {
  color: #0b7a62;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.invoice-activation-result-row.is-editing {
  grid-template-columns: 18px minmax(0, 1fr) 78px 44px;
  gap: 6px;
}

.invoice-activation-result-row.is-address-editing {
  grid-template-columns: 18px minmax(0, 1fr) auto 44px;
}

.invoice-activation-result-input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0 4px;
  color: #071b28;
  background: #fff;
  border: 1px solid #c7ded6;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.invoice-activation-result-row .invoice-activation-result-input {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
}

.invoice-activation-result-input.is-amount {
  text-align: right;
}

.invoice-activation-result-input.is-error {
  border-color: #d94b3d !important;
  box-shadow: 0 0 0 2px rgba(217, 75, 61, 0.12);
}

.invoice-activation-recipient-picker {
  position: relative;
  min-width: 0;
}

.invoice-activation-recipient-list {
  position: absolute;
  z-index: 90;
  top: calc(100% + 4px);
  left: 0;
  right: -86px;
  display: grid;
  gap: 3px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 40, 35, 0.18);
  animation: customSelectOpen 0.16s ease both;
}

.invoice-activation-recipient-list[hidden] {
  display: none;
}

.invoice-activation-recipient-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  color: #071b28;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.invoice-activation-recipient-list button:hover {
  background: #eaf7f2;
}

.invoice-activation-recipient-list button > span {
  display: grid;
  min-width: 0;
  text-align: left;
}

.invoice-activation-recipient-list strong,
.invoice-activation-recipient-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-activation-recipient-list strong {
  color: var(--green-strong);
  font-size: 11px;
}

.invoice-activation-recipient-list small {
  color: var(--muted);
  font-size: 10px;
}

.invoice-activation-recipient-list em {
  color: #0b5f8f;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.invoice-activation-result-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.invoice-activation-result-edit,
.invoice-activation-result-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 20px;
  height: 20px;
  color: #0b7a62;
  background: #edf8f4;
  border: 1px solid #c9e6dc;
  border-radius: 8px;
  cursor: pointer;
}

.invoice-activation-result-edit::before,
.invoice-activation-result-delete::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 400;
}

.invoice-activation-result-edit::before {
  content: "\f040";
}

.invoice-activation-result-edit.is-confirm::before {
  content: "\f00c";
}

.invoice-activation-result-delete::before {
  content: "\f171";
}

.invoice-activation-result-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.invoice-activation-refund-preset {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 2px 0 5px;
}

.invoice-activation-refund-preset > span {
  color: #64727c;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
}

.invoice-activation-refund-preset .custom-select-trigger {
  min-height: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 11px;
}

.invoice-activation-refund-preset .custom-select-list {
  z-index: 95;
}

.invoice-activation-refund-preset .custom-select-option {
  font-size: 11px;
}

.invoice-activation-add-recipient,
.invoice-activation-fill-payers {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #0b7a62;
  background: #edf8f4;
  border: 1px solid #c9e6dc;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.invoice-activation-add-recipient:hover,
.invoice-activation-fill-payers:hover {
  background: #dff2eb;
}

.invoice-activation-add-recipient span::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f067";
}

.invoice-activation-fill-payers span::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f0c0";
}

.invoice-activation-result-notice {
  color: #64727c;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
}

.invoice-activation-editor {
  display: grid;
  gap: 8px;
}

.invoice-activation-editor[hidden] {
  display: none;
}

.invoice-payments-table-wrap {
  overflow: auto;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-payments-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  color: #071b28;
  font-size: 13px;
}

.invoice-payments-table th,
.invoice-payments-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.invoice-payments-table th {
  color: #64727c;
  background: #f8fbfa;
  font-size: 12px;
  font-weight: 500;
}

.invoice-payments-table tr:last-child td {
  border-bottom: 0;
}

.invoice-payments-table tr.is-unexpected-token td {
  background: #fff4f2;
}

.invoice-payments-empty {
  color: var(--muted);
  text-align: center;
}

.invoice-payment-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 7px;
  align-items: center;
}

.invoice-timeline-note {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding: 10px 12px;
  color: #48625d;
  background: #f1faf7;
  border: 1px solid #c9e8dd;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-timeline-list {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(7, 107, 82, 0.32) transparent;
  scrollbar-width: thin;
}

.invoice-timeline-day {
  display: grid;
  gap: 8px;
}

.invoice-timeline-day h4 {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.invoice-timeline-day-items {
  position: relative;
  display: grid;
  gap: 8px;
  padding-left: 28px;
}

.invoice-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-timeline-item::before {
  position: absolute;
  top: -9px;
  bottom: 50%;
  left: -21px;
  width: 2px;
  background: #d7e6e1;
  content: "";
}

.invoice-timeline-item::after {
  position: absolute;
  top: 50%;
  bottom: -9px;
  left: -21px;
  width: 2px;
  background: #d7e6e1;
  content: "";
}

.invoice-timeline-item:first-child::before,
.invoice-timeline-item:last-child::after {
  display: none;
}

.invoice-timeline-dot {
  position: absolute;
  top: 50%;
  left: -25px;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: #fbfdfd;
  border: 3px solid var(--green-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}

.invoice-timeline-item.is-warning .invoice-timeline-dot {
  border-color: #d58613;
}

.invoice-timeline-item.is-timeline-danger .invoice-timeline-dot {
  border-color: #c9352b;
}

.invoice-timeline-icon {
  display: grid;
  place-items: center;
  color: var(--green-strong);
  border-radius: 8px;
}

.invoice-timeline-icon::before {
  font-family: "FontAwesome";
  font-size: 21px;
  font-weight: 400;
  content: var(--timeline-icon, "\f017");
}

.invoice-timeline-item.is-event-created {
  --timeline-icon: "\f0f6";
}

.invoice-timeline-item.is-event-payment-received {
  --timeline-icon: "\f0d6";
}

.invoice-timeline-item.is-event-unexpected-token-received {
  --timeline-icon: "\f0d6";
}

.invoice-timeline-item.is-event-warning-added {
  --timeline-icon: "\f071";
}

.invoice-timeline-item.is-event-payment-condition-met {
  --timeline-icon: "\f00c";
}

.invoice-timeline-item.is-event-auto-activation-stopped {
  --timeline-icon: "\f28e";
}

.invoice-timeline-item.is-event-awaiting-activation {
  --timeline-icon: "\f0ea";
}

.invoice-timeline-item.is-event-partial-paid {
  --timeline-icon: "\f06a";
}

.invoice-timeline-item.is-event-activation-requested {
  --timeline-icon: "\f0a0";
}

.invoice-timeline-item.is-event-activation-started {
  --timeline-icon: "\f252";
}

.invoice-timeline-item.is-event-activation-paused {
  --timeline-icon: "\f28e";
}

.invoice-timeline-item.is-event-aml-check-requested,
.invoice-timeline-item.is-event-aml-check-completed,
.invoice-timeline-item.is-event-aml-auto-activation-stopped {
  --timeline-icon: "\f132";
}

.invoice-timeline-item.is-event-recipient-changed,
.invoice-timeline-item.is-event-activation-rule-changed,
.invoice-timeline-item.is-event-auto-activation-disabled-by-user,
.invoice-timeline-item.is-event-auto-activation-enabled-by-user {
  --timeline-icon: "\f044";
}

.invoice-timeline-item.is-event-activated {
  --timeline-icon: "\f208";
}

.invoice-timeline-item.is-event-expired {
  --timeline-icon: "\f253";
}

.invoice-timeline-item.is-warning .invoice-timeline-icon {
  color: #9b6900;
}

.invoice-timeline-item.is-timeline-danger .invoice-timeline-icon {
  color: #b42318;
}

.invoice-timeline-main {
  min-width: 0;
}

.invoice-timeline-main strong {
  display: block;
  color: #071b28;
  font-size: 13px;
}

.invoice-timeline-main p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.invoice-timeline-distribution {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.invoice-timeline-distribution-row {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-top: 3px;
  border-top: 1px solid #e4eeeb;
  font-size: 11px;
}

.invoice-timeline-distribution-row > span {
  color: var(--muted);
}

.invoice-timeline-distribution-row code {
  overflow: hidden;
  color: #36515f;
  font-family: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-timeline-distribution-row > strong {
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.invoice-timeline-distribution-row.is-balance > strong {
  color: #176a93;
}

.invoice-timeline-item time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.invoice-timeline-amount {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.invoice-timeline-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-edit-panel[data-invoice-details-panel="timeline"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.factory-edit-panel[data-invoice-details-panel="aml"] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.invoice-aml-panel {
  display: grid;
  gap: 12px;
  position: relative;
}

.invoice-aml-panel.is-manual-blocked,
.invoice-aml-panel.is-manual-ready {
  min-height: 410px;
  align-content: start;
}

.invoice-aml-panel.is-loading::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 8px;
  background: rgba(247, 251, 249, 0.88);
  content: "";
}

.invoice-aml-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px;
  color: #173c34;
  text-align: center;
}

.invoice-aml-loading[hidden] {
  display: none;
}

.invoice-aml-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #b8ddd2;
  border-top-color: #08745b;
  border-radius: 50%;
  animation: invoice-aml-loading-spin 800ms linear infinite;
}

.invoice-aml-loading strong {
  font-size: 15px;
  font-weight: 600;
}

.invoice-aml-loading p {
  max-width: 360px;
  margin: 0;
  color: #5c736e;
  font-size: 13px;
  line-height: 1.45;
}

@keyframes invoice-aml-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .invoice-aml-loading-spinner {
    animation-duration: 1600ms;
  }
}

.invoice-aml-note,
.invoice-aml-blocked {
  padding: 10px 12px;
  color: #48625d;
  background: #f1faf7;
  border: 1px solid #c9e8dd;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-aml-blocked {
  color: #8a5b00;
  background: #fff7e6;
  border-color: #f1d7a7;
}

.invoice-aml-panel.is-manual-blocked .invoice-aml-report {
  display: none;
}

.invoice-aml-panel.is-manual-blocked .invoice-aml-manual {
  padding-top: 10px;
}

.invoice-aml-panel.is-manual-blocked .invoice-aml-manual label,
.invoice-aml-panel.is-manual-blocked .invoice-aml-actions,
.invoice-aml-panel.is-manual-blocked .factory-wallet-history-status {
  display: none;
}

.invoice-aml-panel.is-manual-blocked .invoice-aml-blocked {
  display: block;
}

.invoice-aml-panel.is-manual-ready .invoice-aml-report {
  display: none;
}

.invoice-aml-panel.is-manual-ready .invoice-aml-manual {
  margin-top: 12px;
  padding: 18px 22px 22px;
  background: #fff;
  border-radius: 8px;
}

.invoice-aml-report,
.invoice-aml-manual {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.invoice-aml-empty {
  padding: 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-aml-report-card {
  position: relative;
  display: grid;
  gap: 10px;
}

.invoice-aml-report-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(130px, auto);
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #c5ddd6;
}

.invoice-aml-report-badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.invoice-aml-report-title,
.invoice-aml-report-risk {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-aml-report-title span,
.invoice-aml-report-risk span {
  color: #0b6f58;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.invoice-aml-report-title strong,
.invoice-aml-report-risk strong {
  color: #071b28;
  font-size: 17px;
  line-height: 1.15;
}

.invoice-aml-report-title small,
.invoice-aml-report-risk small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-aml-report-risk {
  justify-items: end;
  text-align: right;
}

.invoice-aml-report-risk strong {
  color: #a94120;
}

.invoice-aml-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.invoice-aml-report-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid #e0ebe7;
}

.invoice-aml-report-row span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.invoice-aml-report-row strong {
  overflow: hidden;
  color: #0b5f8f;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-aml-report-row.is-address strong {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  text-overflow: clip;
}

.invoice-aml-copy-button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #0b5f8f;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
}

.invoice-aml-copy-button::before {
  content: "\f24d";
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.invoice-aml-copy-button:hover,
.invoice-aml-copy-button.is-copied {
  color: var(--green);
}

.invoice-aml-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 680px) {
  .invoice-aml-report-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .invoice-aml-report-badge {
    width: 54px;
    height: 54px;
  }

  .invoice-aml-report-risk {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .invoice-aml-report-grid {
    grid-template-columns: 1fr;
  }
}

.invoice-aml-manual label {
  display: grid;
  gap: 7px;
}

.invoice-aml-manual label > span {
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
}

.invoice-aml-manual label > span[data-i18n="dashboard.invoices.aml.target"] {
  font-weight: 400;
}

#invoiceAmlTarget + .custom-select .custom-select-trigger,
#invoiceAmlTarget + .custom-select .custom-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: auto;
  font-weight: 400;
  white-space: normal;
}

#invoiceAmlTarget + .custom-select .aml-target-option-icon {
  flex: 0 0 16px;
  color: #087e68;
  font-family: "FontAwesome";
  text-align: center;
}

#invoiceAmlTarget + .custom-select .aml-target-option-icon.is-payer::before {
  content: "\f0d6";
}

#invoiceAmlTarget + .custom-select .aml-target-option-icon.is-invoice::before {
  content: "\f15c";
}

#invoiceAmlTarget + .custom-select .aml-target-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.invoice-aml-actions {
  display: flex;
  justify-content: flex-end;
}

.invoice-aml-actions .primary-button {
  min-width: 180px;
}

.invoice-aml-panel.is-manual-ready .invoice-aml-manual {
  box-sizing: border-box;
  min-height: 508px;
  margin-top: 0;
  padding: 0 22px 18px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.invoice-aml-address-insight {
  position: relative;
  display: grid;
  align-content: start;
  align-self: stretch;
  margin-top: 4px;
  border-top: 1px solid #dce8e4;
  border-bottom: 1px solid #dce8e4;
}

.invoice-aml-address-insight[hidden] {
  display: none;
}

.invoice-aml-address-insight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 2px 10px;
}

.invoice-aml-address-insight-head > div {
  display: grid;
  gap: 2px;
}

.invoice-aml-address-insight-head strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.invoice-aml-address-insight-head span {
  color: #61747a;
  font-size: 11px;
}

.invoice-aml-address-insight-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #61747a;
  font-size: 10px;
  white-space: nowrap;
}

.invoice-aml-address-insight-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a77d;
}

.invoice-aml-address-insight-status.is-stale {
  color: #9b6308;
}

.invoice-aml-address-insight-status.is-stale > span {
  background: #d69b2d;
}

.invoice-aml-address-insight-status.is-unavailable {
  color: #9a4c3d;
}

.invoice-aml-address-insight-status.is-unavailable > span {
  background: #c96350;
}

.invoice-aml-address-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e2ece8;
}

.invoice-aml-address-public-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 8px 8px 8px 2px;
  border-bottom: 1px solid #e2ece8;
}

.invoice-aml-address-public-grid > div:nth-child(odd) {
  padding-right: 18px;
  border-right: 1px solid #e2ece8;
}

.invoice-aml-address-public-grid > div:nth-child(even) {
  padding-left: 18px;
}

.invoice-aml-address-public-grid span {
  color: #73858a;
  font-size: 10px;
}

.invoice-aml-address-public-grid strong {
  color: #16343c;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.invoice-aml-address-public-grid .is-positive {
  color: #087e68;
}

.invoice-aml-address-history {
  display: grid;
  gap: 10px;
  padding: 14px 12px 12px;
  background: #f5faf8;
}

.invoice-aml-address-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.invoice-aml-address-history-head > div {
  display: grid;
  gap: 2px;
}

.invoice-aml-address-history-head span,
.invoice-aml-address-history-score span {
  color: #61747a;
  font-size: 11px;
}

.invoice-aml-address-history-head strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.invoice-aml-address-risk {
  padding: 4px 9px;
  border: 1px solid #ccdeda;
  border-radius: 999px;
  color: #556d68;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
}

.invoice-aml-address-risk.is-low {
  color: #087e68;
  border-color: #bfe2d8;
  background: #effaf6;
}

.invoice-aml-address-risk.is-medium {
  color: #9b6308;
  border-color: #ecd29b;
  background: #fff5df;
}

.invoice-aml-address-risk.is-high {
  color: #b14735;
  border-color: #efc2b9;
  background: #fff1ee;
}

.invoice-aml-address-history-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.invoice-aml-address-history-score strong {
  color: #9b6308;
  font-size: 17px;
  font-weight: 600;
}

.invoice-aml-address-history-empty,
.invoice-aml-address-unavailable {
  padding: 16px 2px;
  color: #61747a;
  font-size: 12px;
}

.invoice-aml-address-history p {
  display: flex;
  gap: 8px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #dce8e4;
  color: #61747a;
  font-size: 11px;
  line-height: 1.45;
}

.invoice-aml-address-history-icon::before {
  color: #087e68;
  content: "\f132";
  font-family: "FontAwesome";
  font-size: 13px;
}

.invoice-aml-address-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  background: rgba(247, 251, 250, 0.88);
  backdrop-filter: blur(1px);
  text-align: center;
}

.invoice-aml-address-loading[hidden] {
  display: none;
}

.invoice-aml-address-loading strong {
  color: #23434a;
  font-size: 12px;
  font-weight: 500;
}

.invoice-aml-address-loading small {
  color: #6b7e83;
  font-size: 10px;
}

.invoice-aml-address-loading-spinner {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 2px solid #c7ded7;
  border-top-color: #0d9274;
  border-radius: 50%;
  animation: invoice-aml-loading-spin 750ms linear infinite;
}

@media (max-width: 680px) {
  .invoice-aml-panel.is-manual-ready .invoice-aml-manual {
    min-height: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .invoice-aml-address-insight-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .invoice-aml-address-public-grid {
    grid-template-columns: 1fr;
  }

  .invoice-aml-address-public-grid > div:nth-child(odd),
  .invoice-aml-address-public-grid > div:nth-child(even) {
    padding-right: 2px;
    padding-left: 2px;
    border-right: 0;
  }
}

.invoice-warnings-list {
  display: grid;
  gap: 10px;
}

.invoice-warning-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #fff7e6;
  border: 1px solid #f1d7a7;
  border-radius: 8px;
}

.invoice-warning-card-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #b7791f;
  background: #fff0cf;
  border-radius: 999px;
}

.invoice-warning-card-icon::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f071";
}

.invoice-warning-card strong {
  display: block;
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.invoice-warning-card p {
  margin: 5px 0 0;
  color: #536874;
  font-size: 12px;
  font-weight: 500;
}

.invoice-warning-row,
.invoice-warning-address-list {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.invoice-warning-row > span,
.invoice-warning-address-list > span {
  color: #536874;
  font-size: 11px;
  font-weight: 500;
}

.invoice-warning-row > div,
.invoice-warning-address-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 7px;
  align-items: center;
}

.invoice-warning-address {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #071b28;
  font-size: 12px;
  font-weight: 500;
}

.invoice-warning-token {
  min-width: 0;
}

.invoice-warning-token .token-mini {
  max-width: 100%;
}

.invoice-warning-copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #6b7c82;
  background: #fffaf0;
  border: 1px solid #e8d6ac;
  border-radius: 6px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.invoice-warning-copy::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 400;
  content: "\f0c5";
}

.invoice-warning-copy:hover,
.invoice-warning-copy.is-copied {
  color: var(--green-strong);
  background: #eff8f5;
  border-color: #a8d4c5;
}

.invoice-warning-empty {
  padding: 16px;
  color: var(--muted);
  text-align: center;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-operation-group {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.invoice-operation-group[hidden] {
  display: none;
}

.invoice-operation-group h3 {
  margin: 0;
  color: #071b28;
  font-size: 14px;
  font-weight: 500;
}

.invoice-operation-note {
  margin: -2px 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.invoice-operation-group.is-wallet-form-open h3,
.invoice-operation-group.is-wallet-form-open .invoice-operation-note,
.invoice-operation-group.is-wallet-form-open .invoice-wallet-state,
.invoice-operation-group.is-wallet-form-open .invoice-wallet-actions,
.invoice-operation-group.is-wallet-form-open .invoice-wallet-add-form {
  display: none;
}

.invoice-operation-group label {
  display: grid;
  gap: 6px;
}

.invoice-operation-group input,
.invoice-operation-group select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-weight: 500;
}

.wallet-amount-control {
  display: grid;
  gap: 5px;
}

.wallet-amount-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.wallet-amount-input-wrap:focus-within {
  border-color: #8acbbb;
  box-shadow: 0 0 0 3px rgba(25, 145, 111, 0.1);
}

.wallet-amount-control.is-error .wallet-amount-input-wrap {
  background: #fffafa;
  border-color: #e7a8a8;
}

.invoice-operation-group label.is-error input,
.invoice-operation-group label.is-error select {
  background: #fffafa;
  border-color: #e7a8a8;
}

.invoice-operation-group .wallet-amount-input-wrap input {
  min-height: 36px;
  padding: 7px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.invoice-operation-group .wallet-amount-input-wrap input:focus {
  box-shadow: none;
}

.wallet-amount-tool {
  min-width: 28px;
  height: 28px;
  margin-right: 5px;
  padding: 0 7px;
  color: #0a755d;
  background: #edf8f4;
  border: 1px solid #c9e6dc;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wallet-amount-tool:hover {
  color: #fff;
  background: var(--green-strong);
  border-color: var(--green-strong);
}

.wallet-amount-tool.is-muted,
.wallet-amount-tool:disabled {
  color: #9aaba6;
  background: #f3f7f5;
  border-color: #dce9e5;
  cursor: default;
  opacity: 0.72;
}

.wallet-amount-tool.is-muted:hover,
.wallet-amount-tool:disabled:hover {
  color: #9aaba6;
  background: #f3f7f5;
  border-color: #dce9e5;
}

.wallet-amount-tool[hidden] {
  display: none;
}

.wallet-amount-tool.is-reset {
  width: 28px;
  padding: 0;
}

.wallet-amount-tool.is-reset::before {
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 400;
  content: "\f00d";
}

.wallet-amount-error,
.wallet-field-error {
  min-height: 14px;
  color: #b34141;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.invoice-wallet-state {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 4px 0 10px;
}

.invoice-wallet-state-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eef8f4;
  border-radius: 50%;
}

.invoice-wallet-state-icon::before {
  width: 26px;
  height: 26px;
  background: var(--green-strong);
  content: "";
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
}

.invoice-wallet-state-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.invoice-wallet-state-copy h3 {
  margin: 0;
  color: #071b28;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.invoice-wallet-state-copy p {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.invoice-wallet-state-info {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  color: #91a3a0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.invoice-wallet-state-info[hidden] {
  display: none;
}

.invoice-wallet-state-info::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f05a";
}

.invoice-wallet-state-info:hover {
  color: var(--green-strong);
}

.invoice-wallet-state-badge {
  display: grid;
  gap: 5px;
  min-width: 138px;
  padding: 9px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-wallet-state-badge[hidden] {
  display: none;
}

.invoice-wallet-state-badge strong {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #64727c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

.invoice-wallet-state-badge strong span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--green-strong);
}

.invoice-wallet-state-badge strong span::before {
  font-family: "FontAwesome";
  font-size: 16px;
  font-weight: 400;
  content: "\f058";
}

.invoice-wallet-state-badge em {
  font-style: normal;
}

.invoice-wallet-state-badge small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.invoice-wallet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

.invoice-wallet-action {
  display: inline-grid;
  justify-items: center;
  gap: 4px;
  min-width: 56px;
  padding: 0;
  color: #071b28;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.invoice-wallet-action.is-refresh {
  margin-left: auto;
}

.invoice-wallet-action.is-add {
  min-width: auto;
}

.invoice-wallet-action-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-strong);
  background: #eef7f4;
  border: 1px solid #d7e8e2;
  border-radius: 50%;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.invoice-wallet-action:hover .invoice-wallet-action-icon {
  color: #fff;
  background: var(--green-strong);
  transform: translateY(-1px);
}

.invoice-wallet-action.is-disabled {
  color: #87979d;
  cursor: default;
}

.invoice-wallet-action.is-disabled .invoice-wallet-action-icon,
.invoice-wallet-action.is-disabled:hover .invoice-wallet-action-icon {
  color: #8fa09f;
  background: #edf3f1;
  border-color: #d8e4df;
  transform: none;
}

.invoice-wallet-action-icon::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
}

.invoice-wallet-action-icon.is-send::before {
  content: "\f062";
}

.invoice-wallet-action-icon.is-receive::before {
  content: "\f063";
}

.invoice-wallet-action-icon.is-history::before {
  content: "\f02d";
}

.invoice-wallet-action-icon.is-approve::before {
  content: "\f13e";
}

.invoice-wallet-action-icon.is-refresh::before {
  content: "\f021";
}

.invoice-wallet-action.is-loading .invoice-wallet-action-icon::before {
  animation: invoiceWalletSpin 780ms linear infinite;
}

.invoice-wallet-action-icon.is-add::before {
  content: "\f067";
}

#invoiceContractOperations {
  position: relative;
  background: transparent;
  border: 0;
}

.invoice-operation-group > .invoice-wallet-state + h3,
.invoice-operation-group > .invoice-wallet-state + h3 + .invoice-operation-note {
  display: none;
}

.invoice-operation-group.is-inactive-wallet > h3,
.invoice-operation-group.is-inactive-wallet > .invoice-operation-note {
  display: none;
}

.invoice-inactive-wallet-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: start center;
  padding: 12px;
  pointer-events: auto;
}

.invoice-inactive-wallet-overlay[hidden] {
  display: none;
}

.invoice-inactive-wallet-card {
  display: grid;
  gap: 1px;
  width: min(100%, 640px);
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(7, 27, 40, 0.12);
}

.invoice-inactive-wallet-card h3 {
  margin: 0;
}

.invoice-inactive-wallet-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.invoice-inactive-wallet-card .primary-button {
  justify-self: end;
  min-height: 30px;
}

.invoice-operation-group.is-inactive-wallet-notice-open > h3,
.invoice-operation-group.is-inactive-wallet-notice-open > .invoice-operation-note,
.invoice-operation-group.is-inactive-wallet-notice-open > .invoice-wallet-actions,
.invoice-operation-group.is-inactive-wallet-notice-open > .invoice-wallet-add-form,
.invoice-operation-group.is-inactive-wallet-notice-open > .invoice-wallet-screen,
.invoice-operation-group.is-inactive-wallet-notice-open > .invoice-balance-result {
  filter: blur(2px);
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
}

@keyframes invoiceWalletSpin {
  to {
    transform: rotate(360deg);
  }
}

.invoice-wallet-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #f6fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-wallet-add-form[hidden] {
  display: none;
}

.invoice-wallet-screen {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 136px;
  overflow: hidden;
}

.invoice-operation-group.is-wallet-form-open .invoice-wallet-screen {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.factory-wallet-intro {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
}

.factory-wallet-intro h3 {
  margin: 0;
  color: #071b28;
  font-size: 14px;
  font-weight: 500;
}

.factory-wallet-intro .invoice-operation-note {
  margin: 0;
}

.factory-wallet-group {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  flex: 1;
  min-height: 0;
}

.factory-edit-panel[data-factory-edit-panel="operations"] {
  width: 100%;
  max-width: 690px;
}

.factory-wallet-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px;
  background: rgba(247, 252, 250, 0.94);
  box-shadow: inset 0 0 0 1px rgba(191, 222, 212, 0.72);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.factory-wallet-loading img {
  width: 72px;
  height: auto;
  object-fit: contain;
  clip-path: inset(2px round 8px);
}

.factory-wallet-loading span {
  width: 92px;
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.factory-wallet-loading span::before {
  display: block;
  width: 38px;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  content: "";
  animation: boot-progress 920ms ease-in-out infinite;
}

.factory-wallet-group.is-loading .factory-wallet-loading {
  opacity: 1;
  pointer-events: auto;
}

.factory-wallet-head {
  display: block;
  flex: 0 0 auto;
}

.factory-wallet-head .invoice-wallet-actions {
  width: 100%;
}

.factory-wallet-group.is-wallet-form-open .factory-wallet-head {
  display: none;
}

.invoice-wallet-assets {
  display: grid;
  align-content: start;
  flex: 0 0 auto;
  gap: 2px;
  padding: 0;
}

.invoice-wallet-screen.is-form-open .invoice-wallet-assets {
  display: none;
}

.invoice-wallet-asset {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 5px 8px;
  color: #071b28;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.invoice-wallet-asset:hover,
.invoice-wallet-asset.is-selected {
  background: #eef8f4;
  border-color: #c9e4da;
}

.invoice-wallet-asset.is-disabled {
  cursor: help;
}

.invoice-wallet-asset.is-disabled > * {
  opacity: 0.48;
}

.invoice-wallet-asset:active {
  transform: translateY(1px);
}

.invoice-wallet-asset.is-disabled:active {
  transform: none;
}

.factory-wallet-disabled-help {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 34;
  width: min(340px, calc(100% - 28px));
  padding: 16px 44px 16px 16px;
  color: #f4fbf9;
  background: #0d2d2c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(7, 27, 40, 0.3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  transform: translate(-50%, -50%);
}

.factory-inactive-help {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2600;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 46px 18px 18px;
  color: #f4fbf9;
  background: #0d2d2c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(7, 27, 40, 0.34);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  transform: translate(-50%, -50%);
}

.factory-wallet-disabled-help[hidden] {
  display: none;
}

.factory-inactive-help[hidden] {
  display: none;
}

.factory-wallet-disabled-help p {
  margin: 0;
  color: inherit;
}

.factory-inactive-help strong {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.factory-inactive-help ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
}

.factory-inactive-help li {
  padding-left: 2px;
}

.signing-wallet-mismatch-help p {
  margin: 0 0 12px;
  color: #dce9e7;
}

.signing-wallet-mismatch-help {
  z-index: 3000;
}

.signing-wallet-mismatch-help.is-open {
  display: block;
}

.signing-wallet-mismatch-rows {
  display: grid;
  gap: 8px;
  margin: 0;
}

.signing-wallet-mismatch-rows div {
  display: grid;
  gap: 3px;
}

.signing-wallet-mismatch-rows dt {
  color: rgba(244, 251, 249, 0.74);
  font-size: 12px;
}

.signing-wallet-mismatch-rows dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 13px;
}

.factory-wallet-disabled-help-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #dce9e7;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  cursor: pointer;
}

.factory-wallet-disabled-help-close::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f00d";
}

.factory-wallet-disabled-help-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.invoice-wallet-token-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  object-fit: contain;
  color: #fff;
  background: #2f9d7c;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.invoice-wallet-asset-main {
  display: grid;
  min-width: 0;
  gap: 0;
  text-align: left;
}

.invoice-wallet-asset-main strong,
.invoice-wallet-asset-balance {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.invoice-wallet-asset-main small {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-wallet-asset-main small span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-wallet-asset-standard {
  position: absolute;
  top: 13px;
  left: 150px;
  z-index: 10;
  display: inline-grid;
  place-items: center;
  min-height: 19px;
  padding: 0 7px;
  color: #64727c;
  background: #f5f8f8;
  border: 1px solid #dde8e5;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.invoice-wallet-asset-balance {
  max-width: 220px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.invoice-wallet-asset-balance em {
  font-style: normal;
}

.invoice-wallet-form {
  display: grid;
  gap: 7px;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.invoice-wallet-form[hidden] {
  display: none;
}

#factoryWalletForm > label[data-factory-wallet-form-field="amount"] {
  position: relative;
}

#factoryWalletForm .factory-wallet-form-balance {
  position: absolute;
  top: 0;
  right: 0;
  color: #5d717b;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

#factoryWalletForm .factory-wallet-form-balance strong,
#factoryWalletForm .factory-wallet-form-receive strong {
  color: #0b5d4f;
  font-weight: 500;
}

#factoryWalletForm .factory-wallet-form-receive {
  display: block;
  margin-top: 7px;
  color: #687983;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

#factoryWalletForm .factory-wallet-form-balance[hidden],
#factoryWalletForm .factory-wallet-form-receive[hidden] {
  display: none;
}

#factoryWalletForm > label[data-factory-wallet-form-field="amount"] > .wallet-amount-control {
  margin-top: 8px;
}

@media (max-width: 400px) {
  #factoryWalletForm .factory-wallet-form-balance {
    position: static;
    display: block;
    margin: 2px 0 5px;
  }
}

#invoiceWalletForm,
#factoryWalletForm:has(> label[data-factory-wallet-form-field="recipient"]:not([hidden])) {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  column-gap: 9px;
}

#invoiceWalletForm > .invoice-wallet-form-head,
#factoryWalletForm > .invoice-wallet-form-head {
  grid-column: 1 / -1;
  margin-bottom: 29px;
}

#invoiceWalletForm > label:first-of-type,
#factoryWalletForm > label[data-factory-wallet-form-field="token"],
#factoryWalletForm > .factory-wallet-tmr-note,
#invoiceWalletForm > .invoice-wallet-form-actions,
#factoryWalletForm > .invoice-wallet-form-actions {
  grid-column: 1 / -1;
}

#invoiceWalletForm > label[data-invoice-wallet-form-field="recipient"],
#invoiceWalletForm > label[data-invoice-wallet-form-field="spender"],
#factoryWalletForm > label[data-factory-wallet-form-field="recipient"] {
  grid-column: 1;
  min-width: 0;
}

#invoiceWalletForm > label[data-invoice-wallet-form-field="amount"],
#factoryWalletForm:has(> label[data-factory-wallet-form-field="recipient"]:not([hidden])) > label[data-factory-wallet-form-field="amount"] {
  grid-column: 2;
  min-width: 0;
}

#invoiceWalletForm > .invoice-wallet-form-actions,
#factoryWalletForm > .invoice-wallet-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 13px;
}

#invoiceWalletForm > .invoice-wallet-form-actions > button,
#factoryWalletForm > .invoice-wallet-form-actions > button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 640px) {
  #invoiceWalletForm,
  #factoryWalletForm:has(> label[data-factory-wallet-form-field="recipient"]:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  #invoiceWalletForm > label[data-invoice-wallet-form-field="recipient"],
  #invoiceWalletForm > label[data-invoice-wallet-form-field="spender"],
  #invoiceWalletForm > label[data-invoice-wallet-form-field="amount"],
  #factoryWalletForm > label[data-factory-wallet-form-field="recipient"],
  #factoryWalletForm > label[data-factory-wallet-form-field="amount"] {
    grid-column: 1;
  }
}

.factory-wallet-receive {
  display: grid;
  gap: 8px;
}

.factory-wallet-receive[hidden] {
  display: none;
}

.factory-wallet-receive-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 10px;
  background: #f6fbf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-wallet-receive-token {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
  padding: 7px 8px;
  color: #071b28;
  background: #fff;
  border: 1px solid #d9e8e2;
  border-radius: 8px;
}

.factory-wallet-receive-token span {
  display: grid;
  min-width: 0;
  gap: 0;
}

.factory-wallet-receive-token strong {
  font-size: 13px;
  font-weight: 500;
}

.factory-wallet-receive-token small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-wallet-receive-qr {
  width: 150px;
  height: 150px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d9e8e2;
  border-radius: 8px;
}

.factory-wallet-receive-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #d9e8e2;
  border-radius: 8px;
}

.factory-wallet-receive-address strong {
  overflow: hidden;
  color: #071b28;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-wallet-receive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.factory-wallet-history {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  width: 100%;
}

.factory-wallet-history[hidden] {
  display: none;
}

.factory-wallet-history-list-wrap {
  flex: 1;
  min-height: 0;
}

.factory-wallet-history-list {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: none;
  height: 100%;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #b8d4cc transparent;
}

.factory-wallet-history-list::-webkit-scrollbar {
  width: 6px;
}

.factory-wallet-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.factory-wallet-history-list::-webkit-scrollbar-thumb {
  background: #b8d4cc;
  border-radius: 999px;
}

.factory-wallet-history-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-wallet-history-item-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.factory-wallet-history-item.is-pending {
  opacity: 0.58;
}

.factory-wallet-history-item.is-pending .factory-wallet-history-dot {
  left: -28px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
  animation: none;
}

.factory-wallet-history-item.is-pending .factory-wallet-history-dot::after {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid var(--line);
  border-top-color: var(--green-strong);
  border-radius: 50%;
  content: "";
  animation: wallet-history-pending-spin 720ms linear infinite;
}

@keyframes wallet-history-pending-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1350px) {
  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="operations"].is-active {
    display: grid;
    grid-template-columns: minmax(0, 690px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: none;
  }

  #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="operations"] > #factoryWalletGroup {
    width: 100%;
    min-width: 0;
  }
}

.factory-pending-incoming {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

.factory-pending-incoming-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e0ebe7;
}

.factory-pending-incoming-header h3 {
  margin: 0;
  color: #0e5548;
  font-size: 13px;
  font-weight: 600;
}

.factory-pending-incoming-header p {
  margin: 3px 0 0;
  color: #647784;
  font-size: 11px;
}

.factory-pending-incoming-count {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: #e7f7f2;
  color: #0b795f;
  font-size: 11px;
  font-weight: 600;
}

.factory-pending-incoming-count[hidden] { display: none; }

.factory-pending-incoming-list.factory-wallet-history-day-items {
  flex: 1;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 15px 14px 12px 38px;
}

.factory-pending-incoming .factory-wallet-history-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 7px;
  padding: 9px 10px;
  border-radius: 6px;
}

.factory-pending-incoming .factory-wallet-history-item-main {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.factory-pending-incoming .factory-wallet-history-item-main strong {
  font-size: 11px;
  font-weight: 500;
}

.factory-pending-incoming .factory-wallet-history-item-main small {
  overflow: hidden;
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-pending-incoming .factory-wallet-history-amount {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
  white-space: nowrap;
}

.factory-pending-incoming-time {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  color: #6e818a;
  font-size: 10px;
}

.factory-pending-incoming-empty {
  margin: 4px 0 0 -24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.factory-pending-incoming-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-top: 1px solid #e0ebe7;
  color: #6e818a;
  font-size: 10px;
}

.factory-pending-incoming-footer > span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #19a57f;
}

@media (max-width: 1349px) {
  .factory-pending-incoming { display: none; }
}

#factoryEditModal:not(.is-inline-editor) .factory-pending-incoming { display: none; }

.factory-wallet-history-day {
  display: grid;
  gap: 7px;
}

.factory-wallet-history-day h4 {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.factory-wallet-history-day-items {
  position: relative;
  display: grid;
  gap: 7px;
  padding-left: 28px;
}

.factory-wallet-history-item::before,
.factory-wallet-history-item::after {
  position: absolute;
  left: -21px;
  width: 2px;
  background: #d7e6e1;
  content: "";
}

.factory-wallet-history-item::before {
  top: -8px;
  bottom: 50%;
}

.factory-wallet-history-item::after {
  top: 50%;
  bottom: -8px;
}

.factory-wallet-history-item:first-child::before,
.factory-wallet-history-item:last-child::after {
  display: none;
}

.factory-wallet-history-dot {
  position: absolute;
  top: 50%;
  left: -25px;
  z-index: 2;
  width: 10px;
  height: 10px;
  background: #fbfdfd;
  border: 3px solid #7b8d88;
  border-radius: 50%;
  transform: translateY(-50%);
}

.factory-wallet-history-item.is-positive .factory-wallet-history-dot {
  border-color: var(--green-strong);
}

.factory-wallet-history-item.is-negative .factory-wallet-history-dot {
  border-color: #c94a43;
}

.factory-wallet-history-item-main strong {
  overflow: hidden;
  color: #071b28;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-wallet-history-item-main small,
.factory-wallet-history-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.factory-wallet-history-subline {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-weight: 400;
}

.factory-wallet-history-address {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-wallet-history-copy {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.factory-wallet-history-amount {
  color: #071b28;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.factory-wallet-history-amount.is-positive {
  color: var(--green-strong);
}

.factory-wallet-history-amount.is-negative {
  color: #b94444;
}

.factory-wallet-history-item time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.factory-wallet-history-status {
  min-height: 18px;
  text-align: center;
}

.factory-wallet-history-status.is-ok {
  color: var(--green-strong);
}

.factory-wallet-history-status.is-error {
  color: #b94444;
}

.invoice-wallet-form-head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 0;
}

.invoice-wallet-form-head strong {
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.invoice-wallet-form-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--green-strong);
  background: #eef7f4;
  border: 1px solid #d7e8e2;
  border-radius: 50%;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.invoice-wallet-form-back::before {
  font-family: "FontAwesome";
  content: "\f060";
}

.invoice-wallet-form-back:hover {
  color: #fff;
  background: var(--green-strong);
  transform: translateX(-1px);
}

.factory-wallet-tmr-note {
  margin: 0;
  padding: 10px 12px;
  color: #526978;
  background: #f4faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

.factory-wallet-tmr-note[hidden] {
  display: none;
}

.invoice-wallet-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 0;
}

.invoice-balance-result {
  padding: 10px 12px;
  color: #0c483d;
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
  font-weight: 500;
}

.factory-request-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.factory-request-grid label {
  display: grid;
  gap: 7px;
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
}

.factory-request-grid label.is-required > span::after {
  color: #c03535;
  content: " *";
}

.factory-request-grid input,
.factory-request-grid select,
.factory-request-grid textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-weight: 600;
}

.factory-request-grid input:focus,
.factory-request-grid select:focus,
.factory-request-grid textarea:focus {
  border-color: #8fd0bc;
  box-shadow: 0 0 0 3px rgba(23, 135, 101, 0.1);
}

.factory-request-comment {
  grid-column: 1 / -1;
}

.factory-request-comment textarea {
  resize: vertical;
}

.factory-request-terms {
  display: grid;
  gap: 6px;
  margin: 18px 0 8px;
  padding: 14px;
  color: #0c483d;
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
}

.factory-request-terms strong,
.factory-request-terms p {
  margin: 0;
}

.factory-request-terms p {
  color: #31524d;
  font-size: 13px;
  line-height: 1.5;
}

.request-table {
  min-width: 700px;
}

.dashboard-screen[data-dashboard-screen-panel="requests"].is-active {
  display: flex;
  min-height: 0;
  height: calc(100vh - 132px);
  height: calc(100dvh - 132px);
  overflow: hidden;
}

.admin-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.admin-main-factory {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(500px, 0.95fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 13px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-main-factory-identity {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-section-eyebrow {
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-main-factory-title,
.admin-request-head,
.admin-request-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-main-factory-title h2,
.admin-request-head h2,
.admin-request-detail-head h3 {
  margin: 0;
  color: #071b28;
  letter-spacing: 0;
}

.admin-main-factory-title h2,
.admin-request-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.admin-runtime-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a5b00;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-runtime-status::before {
  width: 7px;
  height: 7px;
  background: #d7a01c;
  border-radius: 50%;
  content: "";
}

.admin-runtime-status.is-ready {
  color: var(--green-strong);
}

.admin-runtime-status.is-ready::before {
  background: #27c989;
}

.admin-main-factory-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.admin-main-factory-addresses div,
.admin-request-detail-row {
  min-width: 0;
}

.admin-main-factory-addresses dt,
.admin-summary-grid dt,
.admin-request-detail-row dt {
  margin-bottom: 3px;
  color: #71827f;
  font-size: 10px;
  font-weight: 500;
}

.admin-main-factory-addresses dd {
  margin: 0;
  overflow: hidden;
  color: #194f66;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: minmax(126px, 1.35fr) repeat(4, minmax(76px, 1fr));
  align-items: stretch;
  margin: 0;
}

.admin-summary-grid > div {
  display: grid;
  grid-template-rows: 24px 17px 20px;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding: 2px 10px;
  border-left: 1px solid var(--line);
}

.admin-summary-grid > div:first-child {
  border-left: 0;
}

.admin-summary-grid dt {
  display: flex;
  align-self: stretch;
  align-items: center;
  margin: 0;
  font-size: 9px;
  line-height: 1.25;
}

.admin-summary-grid dd {
  align-self: start;
  margin: 0;
  color: #075f84;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-summary-grid > .is-profit dd {
  color: var(--green-strong);
  font-size: 12px;
}

.admin-profit-withdraw {
  display: inline-flex;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 68px;
  min-height: 20px;
  padding: 0 9px;
  color: var(--green-strong);
  background: #eef7f4;
  border: 1px solid #b9dacf;
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.admin-profit-withdraw:hover:not(:disabled) {
  color: #07543f;
  background: #e2f2ed;
  border-color: #8fc7b5;
}

.admin-profit-withdraw:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 2px;
}

.admin-profit-withdraw:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.admin-profit-withdraw-modal {
  width: min(520px, calc(100vw - 32px));
}

.admin-profit-withdraw-form {
  display: grid;
  gap: 14px;
}

.admin-profit-withdraw-available {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: #60736e;
  background: #eef6f3;
  border: 1px solid #d7e8e2;
  border-radius: 6px;
  font-size: 11px;
}

.admin-profit-withdraw-available strong {
  color: var(--green-strong);
  font-size: 13px;
  white-space: nowrap;
}

.admin-profit-withdraw-field {
  display: grid;
  gap: 6px;
  color: #536964;
  font-size: 11px;
  font-weight: 600;
}

.admin-profit-withdraw-field > input,
.admin-profit-withdraw-input {
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfe0da;
  border-radius: 6px;
}

.admin-profit-withdraw-field > input {
  width: 100%;
  padding: 0 11px;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.admin-profit-withdraw-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  overflow: hidden;
}

.admin-profit-withdraw-input input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.admin-profit-withdraw-input em {
  color: #71827f;
  font-size: 10px;
  font-style: normal;
}

.admin-profit-withdraw-input button {
  align-self: stretch;
  margin-left: 9px;
  padding: 0 11px;
  color: var(--green-strong);
  background: #eef7f4;
  border: 0;
  border-left: 1px solid #d7e8e2;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.admin-profit-withdraw-field > input:focus,
.admin-profit-withdraw-input:focus-within {
  border-color: #70bea5;
  box-shadow: 0 0 0 2px rgba(28, 147, 111, 0.1);
}

.admin-profit-withdraw-status {
  min-height: 16px;
  margin: 0;
  color: #a56e00;
  font-size: 10px;
}

.admin-profit-withdraw-status.is-error {
  color: #a33b31;
}

.admin-profit-withdraw-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.admin-request-workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

#dashboardRequestsLink::after {
  display: inline-block;
  margin-left: auto;
  font-family: "FontAwesome";
  font-size: 12px;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "\f105";
}

#dashboardRequestsLink.is-active::after {
  transform: rotate(90deg);
}

.admin-sidebar-submenu {
  --admin-sidebar-marker-offset: 0px;
  position: relative;
  display: grid;
  gap: 2px;
  box-sizing: border-box;
  max-height: 0;
  margin: 0 4px 0 14px;
  padding: 0 0 0 15px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    max-height 240ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 240ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 150ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 240ms;
}

#dashboardRequestsLink.is-active + .admin-sidebar-submenu {
  max-height: 181px;
  margin: -2px 4px 5px 14px;
  padding-top: 5px;
  padding-bottom: 4px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.admin-sidebar-submenu::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 2px;
  width: 1px;
  background: rgba(71, 177, 145, 0.28);
  content: "";
}

.admin-sidebar-submenu::after {
  position: absolute;
  top: 5px;
  left: 2px;
  width: 3px;
  height: 31px;
  background: #37c89a;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transform: translate(-50%, var(--admin-sidebar-marker-offset));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}

.admin-sidebar-submenu:has(#adminTabRequests.is-active) { --admin-sidebar-marker-offset: 0px; }
.admin-sidebar-submenu:has(#adminTabFactories.is-active) { --admin-sidebar-marker-offset: 33px; }
.admin-sidebar-submenu:has(#adminTabBilling.is-active) { --admin-sidebar-marker-offset: 66px; }
.admin-sidebar-submenu:has(#adminTabSupport.is-active) { --admin-sidebar-marker-offset: 99px; }
.admin-sidebar-submenu:has(#adminTabPublicSupport.is-active) { --admin-sidebar-marker-offset: 132px; }

.admin-sidebar-submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 6px 8px 6px 0;
  color: #b8cac8;
  background: transparent;
  border: 0;
  border-radius: 0 6px 6px 0;
  font: inherit;
  font-size: 12px;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}

.admin-sidebar-submenu-item:hover {
  color: #eefaf6;
}

.admin-sidebar-submenu-item.is-active {
  color: #fff;
  font-weight: 600;
}

.admin-sidebar-submenu-item > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tab[data-admin-tab]::before {
  color: currentColor;
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
}

.admin-tab[data-admin-tab="requests"]::before {
  content: "\f0ae";
}

.admin-tab[data-admin-tab="factories"]::before {
  content: "\f1ad";
}

.admin-tab[data-admin-tab="billing"]::before {
  content: "\f0e7";
}

.admin-tab[data-admin-tab="support"]::before {
  content: "\f086";
}

.admin-tab[data-admin-tab="public-support"]::before {
  content: "\f0e0";
}

.admin-tab[data-admin-tab] em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 7px;
  padding: 0 5px;
  color: #607770;
  background: #dfece8;
  border-radius: 9px;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.admin-sidebar-submenu .admin-tab[data-admin-tab] em {
  flex: 0 0 auto;
  min-width: 17px;
  height: 17px;
  margin-left: auto;
  padding: 0 5px;
  color: #a9c1bc;
  background: rgba(89, 139, 126, 0.2);
}

.admin-sidebar-submenu .admin-tab[data-admin-tab].is-active em {
  color: #72deb8;
  background: rgba(60, 190, 148, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  #dashboardRequestsLink::after,
  .admin-sidebar-submenu,
  .admin-sidebar-submenu::after {
    transition: none;
  }
}

.admin-tab[data-admin-tab].is-active em {
  color: var(--green-strong);
  background: #e6f4ef;
}

.admin-tab:focus-visible {
  z-index: 1;
  outline: 2px solid #79cdb2;
  outline-offset: 2px;
}

.admin-tab-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-billing-layout {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}

.admin-billing-menu {
  min-width: 0;
  padding: 2px 14px 0 0;
  border-right: 1px solid #d8e7e2;
}

.admin-billing-menu-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  color: #526b68;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.admin-billing-menu-item.is-active {
  color: #08785f;
  background: #eaf6f2;
  border-left-color: #159474;
}

.admin-billing-menu-item:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 2px;
}

.admin-billing-menu-item > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: #d9efe8;
  border-radius: 5px;
}

.admin-billing-menu-item > span::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 100;
  font-synthesis: none;
  content: "\f21b";
}

#adminBillingMenuGeneral > span { background: transparent; }
#adminBillingMenuGeneral > span::before { content: "\f286"; }
#adminBillingMenuQueue > span { background: transparent; }
#adminBillingMenuQueue > span::before { content: "\f017"; }
#adminBillingMenuQueue { min-height: 48px; }
#adminBillingMenuQueue strong { overflow: visible; font-size: 10px; line-height: 1.15; text-overflow: clip; white-space: normal; }
#adminBillingMenuAml > span { background: transparent; }
#adminBillingMenuAml > span::before { content: "\f132"; }
#adminBillingMenuAml strong { overflow: visible; font-size: 10px; line-height: 1.15; text-overflow: clip; white-space: normal; }
#adminBillingMenuSubsidy > span { background: transparent; }
#adminBillingMenuSubsidy > span::before { content: "\f2b5"; }

.admin-billing-menu-item em {
  grid-column: 3;
  min-width: 17px;
  padding: 2px 5px;
  color: #08785f;
  background: #d9eee7;
  border-radius: 8px;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.admin-billing-menu-item:has(em) { grid-template-columns: 28px minmax(0, 1fr) auto; }

.admin-billing-menu-item strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-billing-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding-left: 18px;
}

.admin-headquarters-overviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.admin-billing-detail {
  display: grid;
  grid-template-rows: 96px minmax(0, 1fr) 16px;
  gap: 8px;
  overflow: hidden;
}

.admin-general-overview {
  overflow: hidden;
  background: #f8fbfa;
  border: 1px solid #cfe0dd;
  border-radius: 7px;
}

.admin-general-mainline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid #d9e7e4;
}

.admin-general-address {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.admin-general-address > span:last-child {
  display: grid;
  width: auto;
  height: auto;
  min-width: 0;
  gap: 1px;
  place-items: initial;
}

.admin-general-address small {
  color: #758b91;
  font-size: 8px;
  line-height: 1;
}

.admin-general-address > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #008d71;
}

.admin-general-address > span:first-child::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 100;
  font-synthesis: none;
  content: "\f21b";
}

.admin-general-address strong {
  overflow: hidden;
  color: #075777;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-general-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

.admin-general-balance small,
.admin-general-totals small {
  color: #6e858e;
  font-size: 9px;
  line-height: 1;
}

.admin-general-balance strong {
  color: #0d2e3a;
  font-size: 13px;
  font-weight: 600;
}

.admin-general-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 46px;
}

.admin-general-resource {
  display: grid;
  grid-template-columns: 22px minmax(92px, auto) auto 1fr;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid #d9e7e4;
}

.admin-headquarters-overviews .admin-general-resource {
  grid-template-columns: 20px auto auto minmax(0, 1fr);
  gap: 4px;
  padding: 0 8px;
}

.admin-headquarters-overviews .admin-general-resource > strong { font-size: 10px; }
.admin-headquarters-overviews .admin-general-resource > b { font-size: 10.5px; white-space: nowrap; }
.admin-headquarters-overviews .admin-general-resource > em { overflow: hidden; font-size: 8px; text-overflow: ellipsis; }

.admin-general-resource:last-child { border-right: 0; }

.admin-general-resource-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: #008d71;
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 100;
  font-synthesis: none;
  line-height: 19px;
}

.admin-general-resource-icon::before { content: "\f240"; }
.admin-general-resource-icon.is-level-75::before { content: "\f241"; }
.admin-general-resource-icon.is-level-50::before { content: "\f242"; }
.admin-general-resource-icon.is-level-25::before { content: "\f243"; }
.admin-general-resource-icon.is-level-empty::before { content: "\f244"; }
.admin-general-resource-icon.is-level-25 { color: #b17600; }
.admin-general-resource-icon.is-level-empty { color: #b73535; }

.admin-general-resource > strong {
  color: #496871;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 19px;
}

.admin-general-resource > b {
  color: #075777;
  font-size: 12px;
  font-weight: 600;
}

.admin-general-resource > em {
  color: #82969d;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.admin-general-statement {
  display: grid;
  grid-template-rows: 43px 34px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d2e1de;
  border-radius: 7px;
}

.admin-general-statement-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid #dce8e6;
}

.admin-general-statement-title {
  min-width: 205px;
  margin-right: auto;
}

.admin-general-statement-title h3 {
  margin: 0 0 1px;
  color: #0e3f4c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.admin-general-statement-title small {
  display: block;
  color: #789098;
  font-size: 9px;
}

.admin-general-search {
  position: relative;
  display: block;
  flex: 0 1 238px;
  min-width: 170px;
}

.admin-general-search > span {
  position: absolute;
  top: 50%;
  left: 10px;
  color: #527982;
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-general-search > span::before {
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 100;
  font-synthesis: none;
  content: "\f002";
}

.admin-general-search input {
  width: 100%;
  height: 31px;
  padding: 0 9px 0 29px;
  color: #173f4a;
  background: #fff;
  border: 1px solid #cfe0dd;
  border-radius: 6px;
  outline: 0;
  font: inherit;
  font-size: 10px;
}

.admin-general-search input:focus { border-color: #79cdb2; box-shadow: 0 0 0 2px rgba(121, 205, 178, .18); }

.admin-general-periods {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px;
  background: #eef5f3;
  border: 1px solid #cfe0dd;
  border-radius: 6px;
}

.admin-general-periods button {
  display: grid;
  min-width: 58px;
  height: 25px;
  place-items: center;
  padding: 0 8px;
  color: #56727b;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.admin-general-periods button.is-active {
  color: #006d5d;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 57, 67, .12);
  font-weight: 600;
}

.admin-general-totals {
  display: grid;
  grid-template-columns: .6fr 1fr .9fr 1.25fr;
  background: #fbfdfc;
  border-bottom: 1px solid #dce8e6;
}

.admin-general-totals > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 0 12px;
  border-right: 1px solid #e1eae8;
}

.admin-general-totals > div:last-child { border-right: 0; }
.admin-general-totals strong { color: #075777; font-size: 12px; font-weight: 600; line-height: 1.05; }

.admin-general-table-wrap {
  min-height: 0;
  overflow: auto;
  scrollbar-color: #a9bbb8 transparent;
  scrollbar-width: thin;
}

.admin-general-table-wrap::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
.admin-general-table-wrap::-webkit-scrollbar-track,
.admin-general-table-wrap::-webkit-scrollbar-corner { background: transparent; }
.admin-general-table-wrap::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.admin-general-table-wrap::-webkit-scrollbar-thumb { background: #a9bbb8; border-radius: 3px; }
.admin-general-table-wrap::-webkit-scrollbar-thumb:hover { background: #879e9a; }

.admin-general-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.admin-general-table thead { position: sticky; z-index: 3; top: 0; }
.admin-general-table th {
  height: 27px;
  padding: 0 9px;
  color: #6c838b;
  background: #f4f8f7;
  border-bottom: 1px solid #d9e5e3;
  box-shadow: 0 1px 0 #d9e5e3;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.admin-general-table td {
  height: 33px;
  padding: 0 9px;
  overflow: hidden;
  color: #173f4a;
  border-bottom: 1px solid #e4ecea;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-general-table th:nth-child(1) { width: 105px; }
.admin-general-table th:nth-child(2) { width: 156px; }
.admin-general-table th:nth-child(3) { width: 128px; }
.admin-general-table th:nth-child(4) { width: 123px; }
.admin-general-table th:nth-child(5) { width: 70px; }
.admin-general-table th:nth-child(6) { width: 78px; }
.admin-general-table th:nth-child(7) { width: 65px; }
.admin-general-table tbody tr { cursor: pointer; }
.admin-general-table tbody tr:hover { background: #f8fbfa; }
.admin-general-table tbody tr.is-head { opacity: .58; }

.admin-general-operation-icon {
  display: inline-grid;
  width: 16px;
  color: #008b72;
  font-family: "FontAwesome";
  font-size: 12px;
  font-weight: 100;
  font-synthesis: none;
  text-align: center;
}

.admin-general-operation-icon.is-activation::before { content: "\f208"; }
.admin-general-operation-icon.is-conversion::before { content: "\f074"; }
.admin-general-operation-icon.is-warmup::before { content: "\f0f0"; }
.admin-general-operation-icon.is-general::before { content: "\f21b"; }
.admin-general-table .is-income { color: #00886b; }
.admin-general-table .is-muted { color: #9aabad; }

.admin-general-head-status { display: inline-flex; align-items: center; gap: 5px; color: #607981; }
.admin-general-head-status::before {
  width: 9px;
  height: 9px;
  border: 2px solid #9bb0b3;
  border-right-color: #008c73;
  border-radius: 50%;
  box-sizing: border-box;
  content: "";
  animation: adminGeneralSpin .9s linear infinite;
}

.admin-general-solid-status { color: #00886b; }
.admin-general-failed-status { color: #b73535; }
.admin-general-state { min-height: 24px; margin: 0; padding: 7px 10px; color: #789098; font-size: 10px; text-align: center; }
.admin-general-state:empty { display: none; }
.admin-billing-updated { margin: 0; padding-right: 2px; font-size: 9px; line-height: 16px; text-align: right; }

.admin-billing-queue {
  display: grid;
  grid-template-rows: 54px 48px minmax(0, 1fr) 16px;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding-left: 18px;
  overflow: hidden;
}

.admin-billing-queue[hidden] { display: none; }

.admin-general-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 12px;
  background: #f8fbfa;
  border: 1px solid #cfe0dd;
  border-radius: 7px;
}

.admin-general-queue-head h3 { margin: 0 0 3px; color: #173f4a; font-size: 13px; font-weight: 600; }
.admin-general-queue-head small { display: block; color: #758b91; font-size: 9px; }
.admin-general-queue-live { display: inline-flex; align-items: center; gap: 6px; color: #4e746f; font-size: 9px; white-space: nowrap; }
.admin-general-queue-live::before { width: 7px; height: 7px; background: #22aa82; border-radius: 50%; content: ""; }

.admin-general-queue-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fbfdfc;
  border: 1px solid #dce8e6;
  border-radius: 7px;
}

.admin-general-queue-summary > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 12px; border-right: 1px solid #e1eae8; }
.admin-general-queue-summary > div:last-child { border-right: 0; }
.admin-general-queue-summary small { color: #6e858e; font-size: 9px; }
.admin-general-queue-summary strong { color: #075777; font-size: 13px; font-weight: 600; }
.admin-general-queue-summary > div:last-child strong { color: #b73535; }

.admin-general-queue-table-wrap {
  position: relative;
  min-height: 0;
  overflow: auto;
  border: 1px solid #d8e5e2;
  border-radius: 7px;
  scrollbar-color: #a9bbb8 transparent;
  scrollbar-width: thin;
}

.admin-general-queue-table-wrap::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
.admin-general-queue-table-wrap::-webkit-scrollbar-track,
.admin-general-queue-table-wrap::-webkit-scrollbar-corner { background: transparent; }
.admin-general-queue-table-wrap::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.admin-general-queue-table-wrap::-webkit-scrollbar-thumb { background: #a9bbb8; border-radius: 3px; }

.admin-general-queue-table { width: 100%; min-width: 820px; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.admin-general-queue-table thead { position: sticky; z-index: 2; top: 0; }
.admin-general-queue-table th { height: 29px; padding: 0 9px; color: #6c838b; background: #f4f8f7; border-bottom: 1px solid #d9e5e3; font-weight: 500; text-align: left; white-space: nowrap; }
.admin-general-queue-table td { height: 46px; padding: 5px 9px; color: #173f4a; border-bottom: 1px solid #e4ecea; vertical-align: middle; }
.admin-general-queue-table tbody tr:hover { background: #f8fbfa; }
.admin-general-queue-table th:nth-child(1) { width: 62px; }
.admin-general-queue-table th:nth-child(2) { width: 126px; }
.admin-general-queue-table th:nth-child(3) { width: 275px; }
.admin-general-queue-table th:nth-child(4) { width: 92px; }
.admin-general-queue-table th:nth-child(5) { width: 138px; }
.admin-general-queue-table th:nth-child(6) { width: 55px; text-align: center; }
.admin-general-queue-table th:nth-child(7) { width: 112px; }
.admin-general-queue-table td:nth-child(6) { text-align: center; }
.admin-general-queue-table td > strong { display: block; margin-bottom: 3px; color: #173f4a; font-weight: 500; }

.admin-general-queue-address { display: flex; min-width: 0; align-items: center; gap: 5px; color: #075777; white-space: nowrap; }
.admin-general-queue-address b { font-size: 9px; font-weight: 400; }
.admin-general-queue-address button { flex: 0 0 auto; width: 18px; height: 18px; padding: 0; color: #00886b; background: transparent; border: 0; cursor: pointer; }
.admin-general-queue-address button::before { font-family: "FontAwesome"; font-size: 10px; font-weight: 100; font-synthesis: none; content: "\f0c5"; }
.admin-general-queue-address button.is-copied::before { content: "\f00c"; }
.admin-general-queue-address button:focus-visible { outline: 2px solid #79cdb2; outline-offset: 1px; }

.admin-general-queue-status { color: #6b7f85; }
.admin-general-queue-status.is-checking,
.admin-general-queue-status.is-broadcasting { display: inline-flex; align-items: center; gap: 5px; color: #08785f; }
.admin-general-queue-status.is-checking::before,
.admin-general-queue-status.is-broadcasting::before { width: 9px; height: 9px; border: 2px solid #a7bbb7; border-right-color: #008c73; border-radius: 50%; box-sizing: border-box; content: ""; animation: adminGeneralSpin .9s linear infinite; }
.admin-general-queue-status.is-paused { color: #a66b00; }
.admin-general-queue-status.is-failed { color: #b73535; }
.admin-general-queue-state { position: absolute; inset: 29px 0 0; display: grid; place-items: center; margin: 0; padding: 20px; color: #789098; background: #fff; font-size: 10px; text-align: center; }
.admin-general-queue-state:empty { display: none; }
.admin-general-queue-state.is-error { color: #b73535; }
.admin-general-queue-updated { margin: 0; padding-right: 2px; color: #6e858e; font-size: 9px; line-height: 16px; text-align: right; }

.admin-aml-monitor {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 16px;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding-left: 18px;
  overflow: hidden;
}

.admin-aml-monitor[hidden] { display: none; }

.admin-subsidy {
  display: grid;
  grid-template-rows: 31px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding-left: 18px;
  overflow: hidden;
}

.admin-subsidy[hidden],
.admin-subsidy [hidden] { display: none; }

.admin-subsidy-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-subsidy-toolbar > span { color: #547078; font-size: 9px; }
.admin-subsidy-tabs { display: flex; align-items: center; padding: 2px; background: #eef5f3; border: 1px solid #cfe0dd; border-radius: 6px; }
.admin-subsidy-tabs button { display: grid; min-width: 118px; height: 25px; place-items: center; padding: 0 10px; color: #56727b; background: transparent; border: 0; border-radius: 4px; font: inherit; font-size: 10px; cursor: pointer; }
.admin-subsidy-tabs button.is-active { color: #006d5d; background: #fff; box-shadow: 0 1px 2px rgba(8, 57, 67, .12); font-weight: 600; }
.admin-subsidy-tabs button:focus-visible { outline: 2px solid #79cdb2; outline-offset: 1px; }

.admin-subsidy-monitor { display: grid; grid-template-rows: 40px minmax(0, 1fr); min-height: 0; overflow: hidden; background: #fff; border: 1px solid #d2e1de; border-radius: 7px; }
.admin-subsidy-monitor > header { display: flex; align-items: baseline; gap: 10px; padding: 0 11px; border-bottom: 1px solid #dce8e6; }
.admin-subsidy-monitor h3 { margin: 0; color: #173f4a; font-size: 12px; font-weight: 600; }
.admin-subsidy-monitor header small { color: #758b91; font-size: 9px; }
.admin-subsidy-operation-list { display: grid; align-content: start; gap: 5px; min-height: 0; padding: 7px; overflow: auto; scrollbar-color: #a9bbb8 transparent; scrollbar-width: thin; }
.admin-subsidy-operation-list::-webkit-scrollbar,
.admin-subsidy-list::-webkit-scrollbar { width: 6px; background: transparent; }
.admin-subsidy-operation-list::-webkit-scrollbar-thumb,
.admin-subsidy-list::-webkit-scrollbar-thumb { background: #a9bbb8; border-radius: 3px; }
.admin-subsidy-operation { display: grid; grid-template-columns: 150px minmax(215px, 1.3fr) minmax(175px, 1fr) minmax(175px, 1fr) 84px; min-height: 50px; align-items: center; overflow: hidden; background: #fbfdfc; border: 1px solid #dde8e6; border-radius: 5px; }
.admin-subsidy-operation > div { display: grid; min-width: 0; gap: 2px; padding: 5px 9px; border-right: 1px solid #e2ebe9; }
.admin-subsidy-operation > div:last-child { border-right: 0; }
.admin-subsidy-operation small { color: #789098; font-size: 8px; }
.admin-subsidy-operation strong { overflow: hidden; color: #164b58; font-size: 9.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.admin-subsidy-operation-state { display: inline-flex; align-items: center; gap: 5px; color: #08785f; }
.admin-subsidy-operation-state::before { width: 7px; height: 7px; flex: 0 0 auto; background: #22aa82; border-radius: 50%; content: ""; }
.admin-subsidy-operation.is-error .admin-subsidy-operation-state { color: #b73535; }
.admin-subsidy-operation.is-error .admin-subsidy-operation-state::before { background: #d95151; }
.admin-subsidy-operation.is-waiting .admin-subsidy-operation-state { color: #9a6c26; }
.admin-subsidy-operation.is-waiting .admin-subsidy-operation-state::before { background: #d69b2d; }
.admin-subsidy-monitor-empty { align-self: center; margin: 0; color: #789098; font-size: 10px; text-align: center; }

.admin-subsidy-administration { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 8px; min-height: 0; overflow: hidden; }
.admin-subsidy-form { display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px auto; align-items: end; gap: 8px; padding: 9px 11px; background: #fff; border: 1px solid #d6e3e1; border-radius: 7px; }
.admin-subsidy-form header { grid-column: 1 / -1; }
.admin-subsidy-form h3 { margin: 0 0 2px; color: #173f4a; font-size: 12px; font-weight: 600; }
.admin-subsidy-form header small { color: #758b91; font-size: 9px; }
.admin-subsidy-form label { display: grid; gap: 4px; color: #60787f; font-size: 8px; }
.admin-subsidy-form input,
.admin-subsidy-limit-input { min-width: 0; height: 32px; padding: 0 9px; color: #173f4a; background: #fff; border: 1px solid #bfd4d0; border-radius: 5px; font: inherit; font-size: 10px; box-sizing: border-box; }
.admin-subsidy-form input:focus,
.admin-subsidy-limit-input:focus { border-color: #79cdb2; box-shadow: 0 0 0 2px rgba(121, 205, 178, .18); outline: 0; }
.admin-subsidy-form button { height: 32px; padding: 0 16px; }
.admin-subsidy-status { min-height: 12px; margin: 0; color: #6e858e; font-size: 9px; }
.admin-subsidy-status:empty { min-height: 0; }
.admin-subsidy-status.is-error { color: #b73535; }
.admin-subsidy-status.is-success { color: #13886f; }

.admin-subsidy-policy-section { display: grid; grid-template-rows: 27px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.admin-subsidy-policy-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-left: 9px; border-left: 3px solid #159474; }
.admin-subsidy-policy-title h3 { margin: 0; color: #173f4a; font-size: 11px; font-weight: 600; }
.admin-subsidy-search { position: relative; display: block; width: 248px; }
.admin-subsidy-search > span { position: absolute; top: 50%; left: 9px; color: #527982; transform: translateY(-50%); pointer-events: none; }
.admin-subsidy-search > span::before { font-family: "FontAwesome"; font-size: 10px; font-weight: 100; font-synthesis: none; content: "\f002"; }
.admin-subsidy-search input { width: 100%; height: 25px; padding: 0 8px 0 27px; color: #173f4a; background: #fff; border: 1px solid #cfe0dd; border-radius: 5px; outline: 0; font: inherit; font-size: 9px; box-sizing: border-box; }
.admin-subsidy-search input:focus { border-color: #79cdb2; box-shadow: 0 0 0 2px rgba(121, 205, 178, .18); }
.admin-subsidy-list { display: grid; align-content: start; gap: 5px; min-height: 0; padding-top: 6px; overflow: auto; scrollbar-color: #a9bbb8 transparent; scrollbar-width: thin; }
.admin-subsidy-item { display: grid; grid-template-columns: minmax(245px, 1.5fr) minmax(205px, 1fr) minmax(205px, 1fr) auto; min-height: 67px; align-items: stretch; overflow: hidden; background: #fff; border: 1px solid #dbe6e4; border-radius: 6px; }
.admin-subsidy-item > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 9px; border-right: 1px solid #e2ebe9; }
.admin-subsidy-item-address strong { overflow: hidden; color: #075777; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.admin-subsidy-item-address small { color: #9a6c26; font-size: 8px; }
.admin-subsidy-item.is-active .admin-subsidy-item-address small { color: #08785f; }
.admin-subsidy-item-resource small { color: #789098; font-size: 8px; }
.admin-subsidy-item-resource span { color: #173f4a; font-size: 10px; }
.admin-subsidy-item-resource b { color: #0759d4; font-weight: 500; }
.admin-subsidy-item-resource.is-bandwidth b { color: #399b1c; }
.admin-subsidy-limit-fields { display: grid; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr); align-items: center; gap: 4px; }
.admin-subsidy-limit-input { width: 100%; height: 27px; padding: 0 6px; font-size: 9px; }
.admin-subsidy-item-actions { display: flex !important; min-width: 118px !important; flex-direction: row !important; align-items: center; justify-content: flex-end !important; gap: 6px !important; border-right: 0 !important; }
.admin-subsidy-item button { height: 25px; padding: 0 9px; color: #08785f; background: transparent; border: 1px solid #afd2c9; border-radius: 5px; cursor: pointer; font: inherit; font-size: 8px; white-space: nowrap; }
.admin-subsidy-item button.is-danger { color: #b73535; border-color: #e2b8b8; }
.admin-subsidy-item button:focus-visible { outline: 2px solid #79cdb2; outline-offset: 1px; }
.admin-subsidy-empty { margin: 10px 0; color: #789098; font-size: 10px; text-align: center; }

.admin-aml-overview {
  overflow: hidden;
  background: #fbfdfc;
  border: 1px solid #cfe0dd;
  border-radius: 7px;
}

.admin-aml-head {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 12px;
  border-bottom: 1px solid #dce8e6;
}

.admin-aml-head h3 { margin: 0 0 2px; color: #173f4a; font-size: 13px; font-weight: 600; }
.admin-aml-head small { display: block; color: #758b91; font-size: 9px; }
.admin-aml-worker { display: inline-flex; align-items: center; gap: 6px; color: #4e746f; font-size: 9px; white-space: nowrap; }
.admin-aml-worker::before { width: 7px; height: 7px; background: #22aa82; border-radius: 50%; content: ""; }
.admin-aml-worker.is-inactive { color: #a66b00; }
.admin-aml-worker.is-inactive::before { background: #d69b2d; }

.admin-aml-summary {
  display: grid;
  grid-template-columns: 1.2fr repeat(7, minmax(0, 1fr));
  min-height: 42px;
}

.admin-aml-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 5px 11px;
  border-right: 1px solid #e1eae8;
}

.admin-aml-summary > div:last-child { border-right: 0; }
.admin-aml-summary small { overflow: hidden; color: #6e858e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-aml-summary strong { overflow: hidden; color: #075777; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-aml-summary > div:last-child strong { color: #b73535; }
.admin-aml-provider-cell { flex-direction: row !important; align-items: center; gap: 7px !important; }
.admin-aml-provider-cell > span:last-child { display: grid; min-width: 0; gap: 2px; }
.admin-aml-provider-icon { display: grid; flex: 0 0 auto; width: 22px; height: 22px; place-items: center; color: #08785f; background: #e4f5ef; border-radius: 50%; }
.admin-aml-provider-icon::before { font-family: "FontAwesome"; font-size: 10px; content: "\f00c"; }
.admin-aml-provider-icon.is-error { color: #b73535; background: #fff0ed; }
.admin-aml-provider-icon.is-error::before { content: "\f071"; }

.admin-aml-table-wrap {
  position: relative;
  min-height: 0;
  overflow: auto;
  border: 1px solid #d8e5e2;
  border-radius: 7px;
  scrollbar-color: #a9bbb8 transparent;
  scrollbar-width: thin;
}

.admin-aml-table-wrap::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
.admin-aml-table-wrap::-webkit-scrollbar-track,
.admin-aml-table-wrap::-webkit-scrollbar-corner { background: transparent; }
.admin-aml-table-wrap::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.admin-aml-table-wrap::-webkit-scrollbar-thumb { background: #a9bbb8; border-radius: 3px; }
.admin-aml-table { width: 100%; min-width: 780px; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.admin-aml-table thead { position: sticky; z-index: 2; top: 0; }
.admin-aml-table th { height: 29px; padding: 0 9px; color: #6c838b; background: #f4f8f7; border-bottom: 1px solid #d9e5e3; font-weight: 500; text-align: left; white-space: nowrap; }
.admin-aml-table td { height: 46px; padding: 5px 9px; color: #173f4a; border-bottom: 1px solid #e4ecea; vertical-align: middle; }
.admin-aml-table tbody tr:hover { background: #f8fbfa; }
.admin-aml-table th:nth-child(1) { width: 7%; }
.admin-aml-table th:nth-child(2) { width: 16%; }
.admin-aml-table th:nth-child(3) { width: 19%; }
.admin-aml-table th:nth-child(4) { width: 25%; }
.admin-aml-table th:nth-child(5) { width: 15%; }
.admin-aml-table th:nth-child(6) { width: 7%; text-align: center; }
.admin-aml-table th:nth-child(7) { width: 11%; }
.admin-aml-table td:nth-child(6) { text-align: center; }
.admin-aml-table td > strong { display: block; margin-bottom: 3px; color: #075777; font-weight: 500; }
.admin-aml-table td > small { display: block; color: #7c9096; font-size: 8px; }
.admin-aml-address { display: block; overflow: hidden; color: #075777; text-overflow: ellipsis; white-space: nowrap; }
.admin-aml-status { color: #6b7f85; }
.admin-aml-status.is-checking { display: inline-flex; align-items: center; gap: 5px; color: #08785f; }
.admin-aml-status.is-checking::before { width: 9px; height: 9px; border: 2px solid #a7bbb7; border-right-color: #008c73; border-radius: 50%; box-sizing: border-box; content: ""; animation: adminGeneralSpin .9s linear infinite; }
.admin-aml-status.is-retry_wait { color: #a66b00; }
.admin-aml-status.is-provider_blocked { color: #b73535; }
.admin-aml-state { position: absolute; inset: 29px 0 0; display: grid; box-sizing: border-box; place-items: center; margin: 0; padding: 20px; color: #789098; background: #fff; font-size: 10px; text-align: center; }
.admin-aml-state:empty { display: none; }
.admin-aml-state.is-error { color: #b73535; }
.admin-aml-updated { margin: 0; padding-right: 2px; color: #6e858e; font-size: 9px; line-height: 16px; text-align: right; }

@keyframes adminGeneralSpin { to { transform: rotate(360deg); } }

.admin-general-operation-modal { width: min(700px, calc(100vw - 32px)); }
body[data-page="dashboard"] .admin-general-operation-modal .modal-head h2 { font-size: 20px; font-weight: 400; }
.admin-general-operation-modal #adminGeneralOperationClose { top: 18px; }
.admin-general-operation-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; background: #dbe7e4; border: 1px solid #dbe7e4; border-radius: 7px; }
.admin-general-operation-details > div { min-width: 0; padding: 9px 11px; background: #fff; }
.admin-general-operation-details > div.is-wide { grid-column: 1 / -1; }
.admin-general-operation-details small { display: block; margin-bottom: 3px; color: #778d94; font-size: 9px; }
.admin-general-operation-details strong { display: block; overflow-wrap: anywhere; color: #075777; font-size: 11px; font-weight: 400; }
.admin-general-operation-details .admin-general-tx-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .admin-general-statement-head { flex-wrap: wrap; height: auto; padding-block: 6px; }
  .admin-general-statement { grid-template-rows: auto 42px minmax(0, 1fr); }
  .admin-general-statement-title { width: 100%; }
  .admin-general-search { flex: 1 1 220px; }
  .admin-general-totals > div { padding-inline: 7px; }
}

.admin-billing-toolbar,
.admin-billing-summary,
.admin-billing-resource header,
.admin-billing-resource dl div {
  display: flex;
  align-items: center;
}

.admin-billing-toolbar {
  justify-content: space-between;
  gap: 20px;
}

.admin-billing-toolbar h3,
.admin-billing-toolbar p,
.admin-billing-resource h4,
.admin-billing-updated,
.admin-billing-status {
  margin: 0;
}

.admin-billing-toolbar h3 {
  color: #17343d;
  font-size: 15px;
}

.admin-billing-toolbar p,
.admin-billing-updated {
  margin-top: 3px;
  color: #6b7f85;
  font-size: 11px;
}

.admin-support-panel {
  overflow: hidden;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(235px, 30%) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 470px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d4e3df;
  border-radius: 7px;
}

.admin-support-dialogs {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f8fbfa;
  border-right: 1px solid #d4e3df;
}

.admin-support-dialogs-head,
.admin-support-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-support-dialogs-head {
  min-height: 58px;
  padding: 10px 12px 8px 14px;
}

.admin-support-dialogs-head h3,
.admin-support-chat-head h3 {
  margin: 0;
  color: #17343d;
  letter-spacing: 0;
}

.admin-support-dialogs-head h3 { font-size: 14px; }
.admin-support-dialogs-head span { color: #71848a; font-size: 10px; }

.admin-support-refresh {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #688078;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.admin-support-refresh::before { font-family: "FontAwesome"; content: "\f021"; }
.admin-support-refresh:hover { color: #08785f; background: #e6f3ef; }

.admin-support-search {
  position: relative;
  display: block;
  margin: 0 12px 10px;
}

.admin-support-search > span::before {
  position: absolute;
  top: 50%;
  left: 10px;
  color: #7d9290;
  font-family: "FontAwesome";
  font-size: 11px;
  transform: translateY(-50%);
  content: "\f002";
}

.admin-support-search input {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 6px 9px 6px 28px;
  color: #294148;
  background: #fff;
  border: 1px solid #cfdfdb;
  border-radius: 6px;
  outline: 0;
  font: inherit;
  font-size: 11px;
}

.admin-support-search input:focus { border-color: #79c5b2; box-shadow: 0 0 0 2px rgba(20, 143, 108, .08); }

.admin-support-dialog-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.admin-support-dialog {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  width: 100%;
  padding: 11px 11px 10px 13px;
  color: #294148;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2ece9;
  text-align: left;
  cursor: pointer;
}

.admin-support-dialog:hover { background: #eef7f4; }
.admin-support-dialog.is-active { background: #dff1eb; box-shadow: inset 3px 0 #159474; }
.admin-support-dialog.is-candidate:not(.is-active) { opacity: 0.52; }
.admin-support-dialog.is-candidate:not(.is-active):hover { opacity: 0.78; }
.admin-support-dialog.is-candidate.is-active { opacity: 1; }

.admin-support-dialog-avatar,
.admin-support-chat-avatar {
  position: relative;
  display: grid;
  place-items: center;
  color: #08785f;
  background: #dcefe9;
  border-radius: 50%;
}

.admin-support-dialog-avatar { width: 34px; height: 34px; }
.admin-support-dialog-avatar::before,
.admin-support-chat-avatar::before { font-family: "FontAwesome"; content: "\f007"; }
.admin-support-dialog-avatar.is-online::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 7px;
  height: 7px;
  background: #1db387;
  border: 2px solid #f8fbfa;
  border-radius: 50%;
  content: "";
}

.admin-support-dialog-copy { display: grid; min-width: 0; gap: 2px; }
.admin-support-dialog-copy strong,
.admin-support-dialog-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-dialog-copy strong { color: #17343d; font-size: 11px; font-weight: 600; }
.admin-support-dialog-copy span { color: #6e8287; font-size: 9px; }
.admin-support-dialog-copy small { overflow: hidden; color: #526b70; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-dialog-side { display: grid; align-content: start; justify-items: end; gap: 5px; }
.admin-support-dialog-side time { color: #84969a; font-size: 8px; white-space: nowrap; }
.admin-support-unread {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: #168f6d;
  border-radius: 9px;
  font-size: 9px;
}

.admin-support-list-empty {
  margin: auto 20px;
  color: #708288;
  font-size: 11px;
  text-align: center;
}

.admin-support-conversation,
.admin-support-conversation-content {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.admin-support-conversation-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  height: 100%;
  color: #71858a;
  font-size: 12px;
  text-align: center;
}

.admin-support-conversation-empty > span::before { color: #a6bbb5; font-family: "FontAwesome"; font-size: 38px; content: "\f086"; }
.admin-support-conversation-content { display: grid; grid-template-rows: 58px minmax(0, 1fr) auto; height: 100%; }
.admin-support-conversation-content[hidden] { display: none; }

.admin-support-chat-head { padding: 8px 15px; background: #fff; border-bottom: 1px solid #d7e5e1; }
.admin-support-back { display: none; padding: 0; color: #627a78; background: transparent; border: 0; }
.admin-support-back::before { font-family: "FontAwesome"; font-size: 15px; content: "\f060"; }
.admin-support-chat-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-support-chat-avatar { flex: 0 0 auto; width: 34px; height: 34px; }
.admin-support-chat-identity > div { display: grid; min-width: 0; }
.admin-support-chat-head h3 { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-chat-head button {
  max-width: 360px;
  padding: 0;
  overflow: hidden;
  color: #6c8186;
  background: none;
  border: 0;
  font: inherit;
  font-size: 9px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.admin-support-merchant-status { display: inline-flex; align-items: center; gap: 5px; color: #71858a; font-size: 9px; }
.admin-support-merchant-status::before { width: 6px; height: 6px; background: #aab8b5; border-radius: 50%; content: ""; }
.admin-support-merchant-status.is-online { color: #08785f; }
.admin-support-merchant-status.is-online::before { background: #20b487; }

.admin-support-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 14px 17px;
  overflow-y: auto;
  background: #f4faf7 url("../img/support-chat-background.svg") repeat;
  background-size: 280px 280px;
}

.admin-support-message { align-self: flex-start; max-width: min(76%, 560px); margin-left: 5px; }
.admin-support-message.is-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: end;
  align-self: flex-end;
  column-gap: 6px;
  max-width: min(calc(76% + 46px), 606px);
  margin-right: 5px;
  margin-left: 0;
}
.admin-support-message.is-support::before { grid-column: 2; grid-row: 1; }
.admin-support-message.is-support > .dashboard-support-message-body { grid-column: 1; grid-row: 1; }
.admin-support-message .dashboard-support-message-body { box-shadow: 0 1px 1px rgba(26, 70, 59, .08); }
.admin-support-message.is-support .dashboard-support-message-body { color: #0d493d; background: #d5e3db; }
.admin-support-message.is-support .dashboard-support-message-body::after { right: -5px; left: auto; background: #d5e3db; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.admin-support-message.is-merchant .dashboard-support-message-meta { right: auto; left: 9px; }

.admin-support-message.is-typing-draft { opacity: .72; }
.admin-support-message.is-typing-draft .dashboard-support-message-body {
  padding-bottom: 9px;
  box-shadow: none;
}
.admin-support-typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #168f6d;
  animation: admin-support-typing-cursor 1s steps(1) infinite;
}
@keyframes admin-support-typing-cursor { 50% { opacity: 0; } }

.admin-support-compose {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: end;
  min-height: 52px;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid #d7e5e1;
}

.admin-support-compose textarea {
  width: 100%;
  max-height: 96px;
  padding: 8px 7px;
  resize: none;
  overflow-y: auto;
  color: #294148;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
  line-height: 17px;
  scrollbar-width: none;
}
.admin-support-compose textarea::-webkit-scrollbar { display: none; }
.admin-support-attach,
.admin-support-send,
.admin-support-attachment-remove { padding: 0; color: #71868a; background: transparent; border: 0; cursor: pointer; }
.admin-support-attach,
.admin-support-send { display: grid; place-items: center; width: 34px; height: 34px; }
.admin-support-attach::before { font-family: "FontAwesome"; font-size: 18px; content: "\f0c6"; }
.admin-support-send::before { font-family: "FontAwesome"; font-size: 21px; content: "\f1d8"; }
.admin-support-send:not(:disabled) { color: #36a8d4; }
.admin-support-send:disabled { opacity: .45; cursor: default; }
.admin-support-attachment-preview {
  position: absolute;
  right: 10px;
  bottom: 51px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  color: #294148;
  background: #fff;
  border: 1px solid #cfe0db;
  border-radius: 6px;
  box-shadow: 0 5px 18px rgba(25, 68, 58, .12);
  font-size: 10px;
}
.admin-support-attachment-preview[hidden] { display: none; }
.admin-support-attachment-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-attachment-remove::before { font-family: "FontAwesome"; content: "\f00d"; }
.admin-support-loading { position: absolute; inset: 58px 0 53px; z-index: 3; display: grid; place-items: center; background: rgba(248, 252, 250, .75); }
.admin-support-loading[hidden] { display: none; }
.admin-support-loading span { width: 20px; height: 20px; border: 2px solid #c8ddd7; border-top-color: #168f6d; border-radius: 50%; animation: invoice-spin .8s linear infinite; }

@media (max-width: 900px) {
  .admin-support-layout { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .admin-support-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-support-dialogs { max-height: 210px; border-right: 0; border-bottom: 1px solid #d4e3df; }
  .admin-support-layout:has(.admin-support-conversation-content:not([hidden])) .admin-support-dialogs { display: none; }
  .admin-support-back { display: grid; place-items: center; width: 28px; height: 28px; }
  .admin-support-chat-head { justify-content: flex-start; gap: 7px; }
  .admin-support-merchant-status { margin-left: auto; }
}

.admin-billing-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  padding: 8px 13px;
}

.admin-billing-refresh > span:first-child::before {
  font-family: "FontAwesome";
  content: "\f021";
}

.admin-billing-status {
  min-height: 16px;
  color: #60777d;
  font-size: 11px;
}

.admin-billing-status.is-error {
  color: #a33b31;
}

.admin-billing-summary {
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  background: #f5faf8;
  border: 1px solid #d7e6e1;
  border-radius: 6px;
}

.admin-billing-address,
.admin-billing-balance {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-billing-summary span,
.admin-billing-resource dt {
  color: #6b7f85;
  font-size: 10px;
}

.admin-billing-summary strong {
  overflow: hidden;
  color: #15353d;
  font-size: 13px;
  text-overflow: ellipsis;
}

.admin-billing-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-billing-resource {
  padding: 14px;
  background: #fff;
  border: 1px solid #d7e6e1;
  border-radius: 6px;
}

.admin-billing-resource header {
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1ece8;
}

.admin-billing-resource header > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #0f8f6d;
  background: #e4f4ef;
  border-radius: 50%;
}

.admin-billing-resource header > span::before {
  font-family: "FontAwesome";
}

.admin-billing-resource header > .is-energy::before { content: "\f0e7"; }
.admin-billing-resource header > .is-bandwidth::before { content: "\f1eb"; }
.admin-billing-resource header > .is-free::before { content: "\f0c2"; }

.admin-billing-resource h4 {
  color: #17343d;
  font-size: 12px;
  font-weight: 600;
}

.admin-billing-resource dl {
  display: grid;
  gap: 8px;
  margin: 11px 0 0;
}

.admin-billing-resource dl div {
  justify-content: space-between;
  gap: 12px;
}

.admin-billing-resource dd {
  margin: 0;
  color: #0b6f97;
  font-size: 12px;
  font-weight: 600;
}

.admin-billing-updated {
  margin-top: auto;
  text-align: right;
}

@media (max-width: 1200px) {
  .admin-subsidy-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-subsidy-form > label:first-of-type { grid-column: 1 / -1; }
  .admin-subsidy-form > button { grid-column: 1 / -1; justify-self: end; }
  .admin-subsidy-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-subsidy-item-address { grid-column: 1 / -1; }
  .admin-subsidy-item-actions { grid-column: 1 / -1; min-height: 38px; justify-content: flex-end !important; border-top: 1px solid #e2ebe9; }
}

@media (max-width: 900px) {
  .admin-billing-layout { grid-template-columns: 126px minmax(0, 1fr); }
  .admin-billing-menu { padding-right: 10px; }
  .admin-billing-detail { padding-left: 14px; }
  .admin-aml-monitor { padding-left: 14px; }
  .admin-subsidy { padding-left: 14px; }
  .admin-headquarters-overviews { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .admin-subsidy-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-subsidy-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-subsidy-operation { min-width: 820px; }
  .admin-aml-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-aml-summary > div:nth-child(4) { border-right: 0; }
  .admin-aml-summary > div:nth-child(-n+4) { border-bottom: 1px solid #e1eae8; }
  .admin-billing-resources { grid-template-columns: 1fr; }
  .admin-billing-summary { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .admin-billing-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-billing-menu {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid #d8e7e2;
  }
  .admin-billing-menu-item { width: min(170px, 100%); }
  .admin-billing-detail { padding: 14px 0 0; }
  .admin-aml-monitor { padding: 14px 0 0; }
  .admin-subsidy { padding: 14px 0 0; }
  .admin-subsidy-form { grid-template-columns: minmax(0, 1fr); }
  .admin-subsidy-form header { grid-column: auto; }
  .admin-subsidy-policy-title { align-items: flex-start; flex-direction: column; height: auto; padding-block: 4px; }
  .admin-subsidy-policy-section { grid-template-rows: auto minmax(0, 1fr); }
  .admin-subsidy-search { width: 100%; }
  .admin-subsidy-item { grid-template-columns: minmax(0, 1fr); }
  .admin-subsidy-item > div { border-right: 0; border-bottom: 1px solid #e2ebe9; }
  .admin-subsidy-item-actions { justify-content: flex-start !important; border-bottom: 0 !important; }
  .admin-aml-head { align-items: flex-start; flex-direction: column; gap: 4px; padding: 8px 10px; }
  .admin-aml-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-aml-summary > div:nth-child(even) { border-right: 0; }
  .admin-aml-summary > div:nth-child(-n+6) { border-bottom: 1px solid #e1eae8; }
}

.admin-request-head {
  justify-content: flex-end;
}

.admin-request-filters {
  display: grid;
  grid-template-columns: minmax(220px, 310px) 170px;
  gap: 8px;
}

.admin-request-filters.is-factory-filter {
  grid-template-columns: minmax(260px, 360px);
}

.admin-request-filters label {
  min-width: 0;
}

.admin-request-filters input,
.admin-request-filters select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #17343d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.admin-request-search {
  position: relative;
}

.admin-request-search > span::before {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  color: #60777d;
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f002";
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-request-search input {
  padding-left: 32px;
}

.admin-request-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.72fr) minmax(0, 1.65fr);
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-request-layout.is-queue-only {
  display: block;
}

.admin-request-layout.is-queue-only .admin-request-table-wrap {
  height: 100%;
}

.admin-request-table-wrap {
  min-height: 0;
  border-color: #e1ece8;
}

.admin-factory-table-wrap {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-factory-table-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.admin-factory-search {
  position: sticky;
  top: 0;
  z-index: 4;
  display: block;
  padding: 7px 8px;
  background: var(--panel);
  border-bottom: 1px solid #e1ece8;
}

.admin-factory-search input {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px 6px 32px;
  color: #17343d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.admin-factory-search input:focus {
  border-color: #7ac2b2;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(22, 145, 115, 0.08);
}

.admin-request-table-wrap .request-table {
  min-width: 0;
  table-layout: fixed;
}

.admin-factory-table-wrap .request-table {
  border-collapse: collapse;
  border-spacing: 0;
}

.admin-factory-table-wrap .request-table thead th {
  position: sticky;
  top: 47px;
  z-index: 3;
  background: #f8fbfa;
  box-shadow: inset 0 -1px 0 var(--line);
}

.admin-request-table-wrap .request-table th:nth-child(1),
.admin-request-table-wrap .request-table td:nth-child(1) {
  width: 54px;
}

.admin-factory-table-wrap .request-table th:nth-child(1),
.admin-factory-table-wrap .request-table td:nth-child(1) {
  width: 86px;
}

.admin-factory-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-factory-id-cell .token-mini-logo {
  width: 20px;
  height: 20px;
}

.admin-request-table-wrap .request-table th:nth-child(3),
.admin-request-table-wrap .request-table td:nth-child(3) {
  width: 100px;
}

.admin-request-table-wrap .request-table th:nth-child(4),
.admin-request-table-wrap .request-table td:nth-child(4) {
  width: 138px;
}

.admin-factory-table-wrap .request-table th:nth-child(3),
.admin-factory-table-wrap .request-table td:nth-child(3) {
  width: 116px;
}

.admin-factory-table-wrap .request-table th:nth-child(4),
.admin-factory-table-wrap .request-table td:nth-child(4) {
  width: 78px;
  padding-right: 6px;
  padding-left: 6px;
  text-align: right;
}

.admin-factory-service-income {
  color: #62766f;
  font-size: 10px;
  font-weight: 600;
}

.admin-factory-service-income.is-positive {
  color: var(--green-strong);
}

.admin-factory-service-income.is-negative {
  color: #d32323;
}

.admin-factory-table-wrap .request-table tr.is-service-loss {
  outline: 1px solid #f04444;
  outline-offset: -1px;
}

.admin-factory-table-wrap .request-table tr.is-service-loss td {
  background: #fff6f6;
  border-color: transparent;
}

.admin-factory-table-wrap .request-table tr.is-service-loss.is-selected {
  box-shadow: inset 3px 0 0 #f04444;
}

.admin-request-layout.is-queue-only .request-table th:nth-child(3),
.admin-request-layout.is-queue-only .request-table td:nth-child(3) {
  width: 355px;
}

.admin-request-layout.is-queue-only .request-table th:nth-child(4),
.admin-request-layout.is-queue-only .request-table td:nth-child(4) {
  width: 100px;
}

.admin-request-layout.is-queue-only .request-table th:nth-child(5),
.admin-request-layout.is-queue-only .request-table td:nth-child(5) {
  width: 138px;
}

.admin-request-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.admin-request-owner > span {
  color: #27464f;
  font-size: 11px;
}

.admin-request-owner-copy {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #0d7c64;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.admin-request-owner-copy::before {
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
  content: "\f0c5";
}

.admin-request-owner-copy.is-copied::before {
  content: "\f00c";
}

.admin-request-owner-copy:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 1px;
}

.admin-request-row:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: -2px;
}

.admin-request-row[data-admin-request-action="decision"] {
  cursor: pointer;
}

.admin-request-row[data-admin-request-action="decision"] td:last-child::after {
  margin-left: 8px;
  color: #78948b;
  font-family: "FontAwesome";
  font-size: 10px;
  content: "\f105";
}

.admin-request-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid #dceae5;
  border-radius: 8px;
}

.admin-request-detail-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.admin-request-detail-content[hidden] {
  display: none;
}

.admin-detail-view-switch {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  flex: 0 0 auto;
  padding: 2px;
  background: #eaf3f0;
  border: 1px solid #d8e8e2;
  border-radius: 7px;
}

.admin-detail-view-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 28px;
  padding: 0 12px;
  color: #627570;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-detail-view-option:hover {
  color: var(--green-strong);
  background: rgba(255, 255, 255, 0.55);
}

.admin-detail-view-option.is-active {
  color: var(--green-strong);
  background: #fff;
  box-shadow: 0 2px 7px rgba(7, 27, 40, 0.08);
}

.admin-detail-view-option:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 1px;
}

.admin-detail-view-option::before {
  margin-right: 7px;
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
}

.admin-detail-view-option[data-admin-detail-view="overview"]::before {
  content: "\f108";
}

.admin-detail-view-option[data-admin-detail-view="statistics"]::before {
  content: "\f080";
}

.admin-detail-view-option[data-admin-detail-view="statement"]::before {
  content: "\f15c";
}

.admin-detail-view-option[data-admin-detail-view="management"]::before {
  content: "\f085";
}

.admin-detail-view-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-detail-view-panel[hidden] {
  display: none;
}

#adminDetailPanelOverview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 2px;
}

#adminDetailPanelOverview[hidden] {
  display: none;
}

.admin-factory-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #dfeae6;
}

.admin-factory-overview-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-factory-overview-mark {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #42aa8c;
  background: transparent;
}

.admin-factory-overview-mark::before {
  color: #42aa8c;
  font-family: "FontAwesome";
  font-size: 18px;
  content: "\f1ad";
}

.admin-factory-overview-identity > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-factory-overview-identity span {
  color: #738681;
  font-size: 9px;
  text-transform: uppercase;
}

.admin-factory-overview-identity h3 {
  margin: 0;
  overflow: hidden;
  color: #13272d;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-factory-address-list {
  display: grid;
  padding: 4px 0;
  border-bottom: 1px solid #dfeae6;
}

.admin-factory-address-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 25px;
  gap: 9px;
}

.admin-factory-address-list > div > span {
  color: #71837e;
  font-size: 10px;
}

.admin-factory-address-list strong {
  overflow: hidden;
  color: #164c60;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-factory-copy {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #0d7c64;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.admin-factory-copy::before {
  font-family: "FontAwesome";
  font-size: 11px;
  content: "\f0c5";
}

.admin-factory-copy:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 1px;
}

.admin-factory-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #dfeae6;
}

.admin-factory-overview-metrics > div {
  min-width: 0;
  padding: 0 11px;
  border-right: 1px solid #dfeae6;
}

.admin-factory-overview-metrics > div:first-child {
  padding-left: 0;
}

.admin-factory-overview-metrics > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.admin-factory-overview-metrics dt {
  min-height: 14px;
  color: #71837e;
  font-size: 9px;
  line-height: 1.35;
}

.admin-factory-overview-metrics dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 1px 0 0;
  overflow: hidden;
  color: #064e70;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-factory-readiness {
  flex: 0 0 auto;
  margin: 7px 0;
  background: #fbfcfc;
  border: 1px solid #d9e5e1;
  border-left: 3px solid #18a478;
}

.admin-factory-readiness.is-warning {
  border-left-color: #d49a18;
}

.admin-factory-readiness-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 5px 9px;
  border-bottom: 1px solid #e4ece9;
}

.admin-factory-readiness-head h4 {
  margin: 0;
  color: #31515d;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-transform: uppercase;
}

.admin-factory-readiness-head p {
  margin: 0;
  color: #6a7d84;
  font-size: 10px;
  line-height: 13px;
}

.admin-factory-readiness-head > strong {
  flex: 0 0 auto;
  color: #08775b;
  font-size: 11px;
  font-weight: 700;
}

.admin-factory-readiness.is-warning .admin-factory-readiness-head > strong {
  color: #9a6b00;
}

.admin-factory-readiness-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
  padding: 6px 9px;
}

.admin-factory-readiness-checks > div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  color: #38515b;
  font-size: 10px;
  line-height: 13px;
}

.admin-factory-readiness-checks > div > span {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 3px;
  background: #18a478;
  border-radius: 50%;
}

.admin-factory-readiness-checks em {
  min-width: 0;
  overflow-wrap: anywhere;
  font-style: normal;
}

.admin-factory-readiness-checks .is-warning {
  color: #875f08;
}

.admin-factory-readiness-checks .is-warning > span {
  background: #d49a18;
}

.admin-factory-readiness-note {
  margin: 0;
  padding: 6px 9px;
  color: #765b1d;
  background: #fffaf0;
  border-top: 1px solid #eee4c8;
  font-size: 10px;
  line-height: 14px;
}

.admin-factory-profile {
  flex: 0 0 auto;
  padding-top: 7px;
}

.admin-factory-profile > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.admin-factory-profile h4 {
  margin: 0;
  color: #0d684e;
  font-size: 10px;
  text-transform: uppercase;
}

.admin-factory-profile > header > span {
  color: #83928e;
  font-size: 9px;
}

.admin-factory-profile dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid #edf3f1;
}

.admin-factory-profile dl > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 5px 0;
  border-bottom: 1px solid #edf3f1;
}

.admin-factory-profile dl > div:nth-child(odd) {
  padding-right: 14px;
}

.admin-factory-profile dl > div:nth-child(even) {
  padding-left: 14px;
  border-left: 1px solid #edf3f1;
}

.admin-factory-profile dt {
  color: #788984;
  font-size: 9px;
}

.admin-factory-profile dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #253c42;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-factory-statement .factory-statement-toolbar {
  grid-template-columns: auto 132px minmax(140px, 1fr);
  gap: 6px;
}

.admin-factory-statement .factory-statement-period button {
  padding: 0 8px;
  font-size: 9px;
}

.admin-factory-statement select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  color: #17343d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
}

.admin-factory-statement .factory-statement-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.admin-factory-statement .factory-statement-summary article {
  padding: 8px 9px;
}

.admin-factory-statement .factory-statement-head,
.admin-factory-statement .factory-statement-row-main {
  grid-template-columns: 68px minmax(112px, 1.4fr) 58px minmax(76px, 1fr) minmax(68px, .8fr) 24px;
  gap: 5px;
}

.admin-factory-statement .factory-statement-head,
.admin-factory-statement .factory-statement-row-main {
  padding-right: 8px;
  padding-left: 8px;
}

.admin-factory-statement .factory-statement-head {
  font-size: 8px;
}

.admin-factory-statement .factory-statement-row-main,
.admin-factory-statement .factory-statement-operation strong,
.admin-factory-statement .factory-statement-invoice,
.admin-factory-statement .factory-statement-amount {
  font-size: 9px;
}

.admin-factory-statement .factory-statement-operation small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-factory-statement .factory-statement-details {
  padding-left: 81px;
}

.admin-detail-placeholder {
  display: grid;
  place-content: center;
  gap: 10px;
  color: #71827f;
  text-align: center;
}

.admin-detail-placeholder span::before {
  color: #9ab8af;
  font-family: "FontAwesome";
  font-size: 16px;
}

.admin-detail-placeholder span.is-statistics::before {
  content: "\f080";
}

.admin-detail-placeholder span.is-management::before {
  content: "\f085";
}

.admin-detail-placeholder p {
  margin: 0;
  font-size: 12px;
}

.admin-management-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid #dceae5;
  border-radius: 7px;
}

.admin-request-decision-card {
  min-height: auto;
}

.admin-request-decision-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.admin-request-decision-modal .admin-management-head {
  padding-right: 40px;
}

.admin-request-decision-modal .admin-management-head > .factory-status {
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-request-decision-modal .admin-management-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.admin-request-decision-modal .admin-management-head p {
  margin: 0;
  color: #6d817b;
  font-size: 11px;
  line-height: 1.45;
}

.admin-request-decision-modal .admin-management-status {
  min-height: 18px;
  margin: 12px 0 0;
}

.admin-request-decision-modal .admin-management-status.is-error {
  color: #a13b35;
}

.admin-request-decision-modal .admin-request-decision-actions {
  padding-top: 8px;
}

.admin-request-decision-summary {
  display: grid;
  gap: 0;
  padding: 12px 0 4px;
}

.admin-request-decision-section {
  padding: 12px 0;
  border-bottom: 1px solid #dfeae6;
}

.admin-request-decision-section:first-child {
  padding-top: 5px;
}

.admin-request-decision-section:last-child {
  border-bottom: 0;
}

.admin-request-decision-section h3 {
  margin: 0 0 8px;
  color: #08785f;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
}

.admin-request-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
}

.admin-request-decision-grid > div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 29px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f0;
}

.admin-request-decision-grid > div.is-wide {
  grid-column: 1 / -1;
}

.admin-request-decision-grid dt {
  color: #71827f;
  font-size: 10px;
  line-height: 16px;
}

.admin-request-decision-grid dd {
  min-width: 0;
  margin: 0;
  color: #0b5f8f;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.admin-request-decision-grid dd.is-empty {
  color: #0b5f8f;
}

.admin-request-decision-grid code {
  color: #0b5f8f;
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
}

.admin-request-decision-grid dd.has-copy {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-request-decision-copy {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #0b5f8f;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.admin-request-decision-copy::before {
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
  content: "\f0c5";
}

.admin-request-decision-copy.is-copied::before {
  content: "\f00c";
}

.admin-request-decision-copy:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 1px;
}

.admin-request-decision-token .token-mini {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.admin-request-decision-token .token-mini strong {
  color: #0b5f8f;
  font-size: 11px;
  font-weight: 400;
}

.admin-request-decision-token .token-mini-logo {
  width: 18px;
  height: 18px;
}

@media (max-width: 700px) {
  .admin-request-decision-grid {
    grid-template-columns: 1fr;
  }

  .admin-request-decision-grid > div.is-wide {
    grid-column: auto;
  }
}

.admin-request-decision-note {
  margin: 0;
  padding: 11px 13px;
  color: #61736f;
  background: #eef6f3;
  border-left: 3px solid #8cc7b4;
  font-size: 11px;
  line-height: 1.5;
}

.admin-request-decision-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
}

.admin-request-decision-actions button {
  min-width: 150px;
}

.secondary-button.is-danger {
  color: #9b3d38;
  border-color: #dfb6b2;
}

.secondary-button.is-danger:hover:not(:disabled) {
  color: #7f2d29;
  background: #fff2f1;
  border-color: #cf918b;
}

.admin-request-detail-row.is-rejection {
  padding: 11px 12px;
  background: #fff5f3;
  border: 1px solid #efd5d1;
  border-radius: 6px;
}

.admin-request-detail-row.is-rejection dt {
  color: #9b3d38;
}

.admin-management-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1ece8;
}

.admin-management-head > div {
  display: grid;
  gap: 5px;
}

.admin-management-head h3,
.admin-management-head p {
  margin: 0;
}

.admin-management-head h3 {
  color: var(--ink);
  font-size: 15px;
}

.admin-management-head p {
  max-width: 620px;
  color: #6d7f7b;
  font-size: 11px;
  line-height: 1.45;
}

.admin-management-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  padding-top: 16px;
}

.admin-management-field {
  display: grid;
  gap: 6px;
  color: #536964;
  font-size: 11px;
  font-weight: 600;
}

.admin-management-input {
  display: flex;
  align-items: center;
  min-height: 38px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfe0da;
  border-radius: 6px;
}

.admin-management-input:focus-within {
  border-color: #70bea5;
  box-shadow: 0 0 0 2px rgba(28, 147, 111, 0.1);
}

.admin-management-input input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 12px;
}

.admin-management-input em {
  padding-right: 11px;
  color: #7b918b;
  font-size: 10px;
  font-style: normal;
}

.admin-management-input:has(input:disabled) {
  background: #f1f6f4;
  border-color: #e0e9e6;
}

.admin-management-input input:disabled {
  color: #82938f;
  cursor: not-allowed;
}

.admin-management-fee-schedule {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 12px 13px;
  color: #5f4b16;
  background: #fff8e7;
  border: 1px solid #efd48f;
  border-radius: 7px;
}

.admin-management-fee-schedule > strong {
  font-size: 12px;
  font-weight: 600;
}

.admin-management-fee-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-management-fee-schedule-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(218, 184, 98, 0.55);
  border-radius: 5px;
}

.admin-management-fee-schedule-grid span {
  color: #7b6a3b;
  font-size: 9px;
}

.admin-management-fee-schedule-grid em {
  overflow: hidden;
  color: #4d3b0e;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-management-fee-schedule > p {
  margin: 0;
  color: #756538;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .admin-management-fee-schedule-grid {
    grid-template-columns: 1fr;
  }
}

.admin-management-toggle-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 11px 13px;
  background: #f3f8f6;
  border: 1px solid #dceae5;
  border-radius: 7px;
}

.admin-management-toggle-row > div {
  display: grid;
  gap: 3px;
}

.admin-management-toggle-row strong {
  color: var(--ink);
  font-size: 12px;
}

.admin-management-toggle-row > div > span {
  color: #6f817d;
  font-size: 10px;
}

.admin-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.admin-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-toggle > span {
  position: absolute;
  inset: 0;
  background: #a8b7b3;
  border-radius: 11px;
  transition: background 160ms ease;
}

.admin-toggle > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(7, 27, 40, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.admin-toggle.is-on > span {
  background: var(--green);
}

.admin-toggle.is-on > span::after {
  transform: translateX(18px);
}

.admin-toggle input:focus-visible + span {
  outline: 2px solid #79cdb2;
  outline-offset: 2px;
}

.admin-toggle:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.admin-management-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  color: #71827f;
  font-size: 10px;
}

.admin-management-meta strong {
  overflow: hidden;
  color: #245b70;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-management-status {
  grid-column: 1 / -1;
  min-height: 16px;
  margin: 0;
  color: #a56e00;
  font-size: 10px;
}

.admin-management-save {
  grid-column: 2;
  justify-self: end;
  min-width: 172px;
}

.admin-request-detail-empty {
  display: grid;
  place-content: center;
  gap: 10px;
  height: 100%;
  min-height: 220px;
  color: #71827f;
  text-align: center;
}

.admin-request-detail-empty[hidden] {
  display: none;
}

.admin-request-detail-empty span::before {
  color: #9ab8af;
  font-family: "FontAwesome";
  font-size: 26px;
  content: "\f0ae";
}

.admin-request-detail-empty p {
  margin: 0;
  font-size: 12px;
}

.admin-request-detail-head {
  align-items: flex-start;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.admin-request-detail-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-request-detail-head > div > span {
  color: var(--green-strong);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-request-detail-head h3 {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-request-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin: 16px 0 0;
}

.admin-request-detail-row dd {
  margin: 0;
  color: #17343d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-request-detail-row.is-address,
.admin-request-detail-row.is-comment {
  grid-column: 1 / -1;
}

.admin-request-detail-row.is-address dd {
  color: #075f84;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
}

.admin-request-detail-row.is-comment dd {
  padding: 9px 10px;
  color: #435b59;
  background: #edf5f2;
  border-radius: 6px;
  font-weight: 400;
}

@media (max-width: 1360px) {
  .admin-main-factory {
    grid-template-columns: minmax(330px, 1fr) minmax(400px, 1fr);
  }

  .admin-request-filters {
    grid-template-columns: minmax(180px, 250px) 150px;
  }

}

@media (max-width: 1100px) {
  .dashboard-screen[data-dashboard-screen-panel="requests"].is-active {
    height: auto;
    overflow: visible;
  }

  .admin-main-factory,
  .admin-request-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-summary-grid > div:first-child {
    border-left: 0;
  }

  .admin-request-detail {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .admin-main-factory-addresses,
  .admin-request-filters,
  .admin-request-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 0;
  }

  .admin-request-head {
    align-items: stretch;
    flex-direction: column;
  }
}

.factory-edit-modal {
  width: min(760px, 100%);
  height: min(720px, calc(100vh - 32px));
  overflow: hidden;
}

#factoryEditModal .factory-edit-modal {
  display: flex;
  flex-direction: column;
}

#factoryEditModal.is-inline-editor {
  position: static;
  inset: auto;
  z-index: auto;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
}

#factoryEditModal.is-inline-editor.is-open {
  display: flex;
}

#factoryEditModal.is-inline-editor .factory-edit-modal {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  box-shadow: none;
}

#factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="operations"] {
  overflow: hidden;
}

#factoryEditModal.is-inline-editor .factory-wallet-group,
#factoryEditModal.is-inline-editor .invoice-wallet-screen,
#factoryEditModal.is-inline-editor .factory-wallet-history-list-wrap {
  min-height: 0;
  overflow: hidden;
}

#factoryEditModal.is-inline-editor .modal-close {
  display: none;
}

#factoryEditHeader:empty {
  display: none;
}

.factory-help-dim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(7, 27, 40, 0.22);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.factory-edit-modal .factory-help-dim {
  border-radius: 8px;
}

.modal-overlay.is-help-open .factory-edit-modal .factory-help-dim {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay.is-help-open .factory-edit-modal {
  z-index: auto;
}

.factory-edit-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.factory-edit-quick-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  margin-top: 0;
}

.factory-edit-quick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  min-height: 42px;
  padding: 0 18px;
  color: #fff !important;
  background: linear-gradient(-45deg, transparent 0 23%, rgba(255, 255, 255, 0.16) 33% 61%, transparent 73% 86%), var(--green);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.factory-edit-quick-button:hover:not(:disabled) {
  background: linear-gradient(-45deg, transparent 0 23%, rgba(255, 255, 255, 0.16) 33% 61%, transparent 73% 86%), var(--green-strong);
}

.factory-edit-quick-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.factory-edit-quick-button span::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
  content: "\f067";
}

.factory-edit-quick-button strong {
  color: #fff !important;
  font-weight: 500;
}

.factory-edit-quick-button span::before {
  color: #fff !important;
}

.factory-edit-state {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.factory-edit-state-item {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.factory-edit-state span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.factory-edit-state strong {
  flex: 0 0 auto;
  color: #071b28;
  font-size: 13px;
}

.factory-edit-token-head {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.factory-edit-token-head > strong {
  display: none;
}

.factory-edit-state .factory-token-preview.is-header {
  min-height: 24px;
  max-width: 120px;
  padding: 0;
  gap: 6px;
  color: #31524d;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.factory-edit-state .factory-token-preview.is-header img {
  width: 18px;
  height: 18px;
}

.factory-edit-state .factory-token-preview.is-header span {
  min-width: 0;
  overflow: hidden;
  color: #31524d;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-edit-state .factory-edit-label-row {
  margin-bottom: 0;
}

.factory-edit-address-box {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 0;
  padding: 10px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-edit-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.factory-edit-address-row span {
  overflow: hidden;
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-copy-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--green-strong);
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
}

.factory-copy-button::before {
  font-family: "FontAwesome";
  font-size: 14px;
  content: "\f0c5";
}

.factory-copy-button:hover {
  color: #fff;
  background: var(--green);
}

.factory-edit-address-box em {
  position: absolute;
  top: -30px;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: var(--green-strong);
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.factory-edit-address-box.is-copied em {
  opacity: 1;
  transform: translateY(0);
}

.factory-edit-address-box.is-copy-hiding em {
  opacity: 0;
  transform: translateY(-8px);
}

.factory-edit-fields {
  display: grid;
  gap: 10px;
}

.factory-settings-layout {
  display: grid;
  gap: 10px;
}

.factory-settings-card {
  overflow: visible;
  background: #fbfdfd;
  border: 1px solid #7ab79d;
  border-radius: 8px;
}

.factory-settings-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  border-radius: 5px 5px 0 0;
  color: #fbfdfd;
  background: linear-gradient(90deg, #5c9f82 0%, #6cab91 55%, #82bca2 100%);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.factory-settings-card-head::before {
  color: #fbfdfd;
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
  content: "\f0ac";
}

.factory-settings-card-head.is-profile::before {
  content: "\f013";
}

.factory-settings-card-head.is-webhook::before {
  content: "\f0e0";
}

.factory-settings-card .factory-edit-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  padding: 4px;
}

.factory-settings-card .factory-edit-fields::after {
  order: 7;
  min-height: 45px;
  border-bottom: 0;
  content: "";
}

.factory-settings-card .factory-edit-field {
  grid-template-columns: minmax(126px, 0.9fr) minmax(140px, 1.1fr) auto;
  gap: 8px;
  padding: 7px 13px;
  border: 0;
  border-radius: 0;
}

.factory-settings-card .factory-edit-field[data-edit-field="approvedMaxFee"] {
  order: 1;
}

.factory-settings-card .factory-edit-field[data-edit-field="minimumInvoiceBalance"] {
  order: 2;
}

.factory-settings-card .factory-edit-field[data-edit-field="payoutAddress"] {
  order: 3;
}

.factory-settings-card .factory-edit-field[data-edit-field="amlEnabled"] {
  order: 4;
}

.factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
  order: 5;
  grid-column: 1;
}

.factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtRetainAmount"] {
  order: 6;
}

.factory-settings-card .factory-edit-field span {
  font-size: 11px;
  line-height: 1.2;
}

.factory-settings-card .factory-edit-field strong {
  font-size: 12px;
  line-height: 1.2;
}

.factory-settings-card .factory-edit-label-row {
  gap: 5px;
  margin-bottom: 1px;
}

.factory-settings-card .factory-help-button {
  width: 15px;
  height: 15px;
  font-size: 13px;
}

.factory-settings-card .factory-inline-toggle {
  min-height: 30px;
}

.factory-settings-switch {
  justify-self: start;
  justify-content: flex-start;
  min-height: 32px;
}

.factory-settings-switch strong {
  color: #31524d;
  font-size: 12px;
  font-weight: 500;
}

.factory-settings-card .factory-edit-field input:not([type="checkbox"]):not([type="radio"]),
.factory-settings-card .custom-select-trigger {
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
}

.factory-settings-card .factory-edit-field:last-child {
  border-radius: 10px;
}

.factory-settings-card .factory-field-apply {
  display: none;
}

.factory-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding: 6px 2px 0;
}

.factory-settings-actions .primary-button {
  min-width: 160px;
  min-height: 30px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
}

.factory-settings-actions[hidden] {
  display: none;
}

.factory-edit-tabs {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin: 12px 0 14px;
  padding: 0 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.factory-edit-tab {
  position: relative;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 104px;
  min-height: 38px;
  padding: 0 14px;
  color: #65737d;
  background: #eef5f3;
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.factory-edit-tab[data-factory-edit-tab]::before {
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
}

.factory-edit-tab[data-factory-edit-tab="network"]::before {
  content: "\f085";
}

.factory-edit-tab[data-factory-edit-tab="overview"]::before {
  content: "\f108";
}

.factory-edit-tab[data-factory-edit-tab="profile"]::before {
  content: "\f233";
}

.factory-edit-tab[data-factory-edit-tab="webhook"]::before {
  content: "\f127";
}

.factory-edit-tab[data-factory-edit-tab="operations"]::before {
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
}

.factory-edit-tab[data-factory-edit-tab="statement"]::before {
  content: "\f15c";
}

.factory-statement {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.factory-statement-toolbar {
  display: grid;
  grid-template-columns: auto 180px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.factory-statement-period {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #edf5f2;
  border-radius: 7px;
}

.factory-statement-date-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
  width: 310px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(7, 27, 40, 0.14);
}

.factory-statement-date-popover[hidden] {
  display: none;
}

.factory-statement-date-popover label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.factory-statement-date-popover input {
  width: 100%;
  min-height: 32px;
  padding: 0 7px;
  border: 1px solid #c9d9d4;
  border-radius: 5px;
  outline: none;
  font-size: 11px;
}

.factory-statement-date-popover input:hover {
  border-color: #aec8c0;
}

.factory-statement-date-popover input:focus {
  border-color: #79ad9e;
  box-shadow: 0 0 0 1px rgba(20, 137, 105, 0.1);
}

.factory-statement-date-popover input[type="date"],
.factory-statement-date-popover input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.factory-statement-period .factory-statement-date-popover > button {
  grid-column: 1 / -1;
  min-height: 30px;
  color: #fff;
  background: var(--green-strong);
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.factory-statement-export {
  position: relative;
}

.factory-statement-export-toggle {
  min-height: 36px;
  padding: 0 12px;
  color: var(--green-strong);
  background: #f2f8f6;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.factory-statement-export-toggle::before {
  margin-right: 7px;
  font-family: "FontAwesome";
  font-weight: 400;
  content: "\f019";
}

.factory-statement-export-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 110px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(7, 27, 40, 0.14);
}

.factory-statement-export-menu[hidden] {
  display: none;
}

.factory-statement-export-menu button {
  min-height: 30px;
  padding: 0 10px;
  color: #334955;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.factory-statement-export-menu button:hover {
  color: var(--green-strong);
  background: #eaf6f2;
}

.factory-statement-export-toggle:disabled {
  cursor: wait;
  opacity: 0.62;
}

.factory-statement-print-report {
  display: none;
}

@media (max-width: 900px) {
  .factory-statement-toolbar {
    grid-template-columns: minmax(130px, 160px) minmax(0, 1fr) auto;
  }

  .factory-statement-period {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .factory-statement-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .factory-statement-toolbar > select,
  .factory-statement-toolbar > .select-control {
    grid-column: 1;
  }

  .factory-statement-search {
    grid-row: 3;
    grid-column: 1 / -1;
  }

  .factory-statement-export {
    grid-row: 2;
    grid-column: 2;
  }

  .factory-statement-date-popover {
    width: min(310px, calc(100vw - 48px));
  }
}

@media print {
  @page factoryStatement { size: A4 landscape; margin: 9mm; }

  body.is-printing-factory-statement,
  body.is-printing-factory-statement * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.is-printing-factory-statement {
    min-width: 0 !important;
    background: #fff !important;
  }

  body.is-printing-factory-statement > :not(.factory-statement-print-report) {
    display: none !important;
  }

  body.is-printing-factory-statement > .factory-statement-print-report {
    display: block !important;
  }

  .factory-statement-print-report {
    page: factoryStatement;
    width: 100%;
    color: #173f4a;
    background: #fff;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 7px;
  }

  .factory-statement-print-report > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #bcd4ce;
  }

  .factory-statement-print-report h1,
  .factory-statement-print-report h2,
  .factory-statement-print-report p {
    margin: 0;
  }

  .factory-statement-print-report h1 {
    margin-bottom: 4px;
    color: #102d37;
    font-size: 17px;
  }

  .factory-statement-print-report header strong,
  .factory-statement-print-report header span {
    display: block;
  }

  .factory-statement-print-report header strong {
    margin-bottom: 2px;
    font-size: 10px;
  }

  .factory-statement-print-report header span,
  .factory-statement-print-report dt {
    color: #71868c;
  }

  .factory-statement-print-report dl {
    display: grid;
    gap: 4px;
    min-width: 190px;
    margin: 0;
  }

  .factory-statement-print-report dl > div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 8px;
  }

  .factory-statement-print-report dd {
    margin: 0;
    text-align: right;
  }

  .factory-statement-print-report table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
  }

  .factory-statement-print-report thead {
    display: table-header-group;
  }

  .factory-statement-print-report tr {
    break-inside: avoid;
  }

  .factory-statement-print-report th,
  .factory-statement-print-report td {
    overflow-wrap: anywhere;
    padding: 4px 3px;
    border: 1px solid #d7e4e1;
    vertical-align: top;
  }

  .factory-statement-print-report th {
    color: #35545b;
    background: #eef6f3;
    font-size: 6.5px;
    text-align: left;
  }

  .factory-statement-print-report td:nth-child(1),
  .factory-statement-print-report td:nth-child(2),
  .factory-statement-print-report td:nth-child(4),
  .factory-statement-print-report td:nth-child(7),
  .factory-statement-print-report td:nth-child(8),
  .factory-statement-print-report td:nth-child(9),
  .factory-statement-print-report td:nth-child(10) {
    white-space: nowrap;
  }

  .factory-statement-print-report > section {
    margin-top: 10px;
    padding: 9px 10px;
    background: #f5f9f8;
    border: 1px solid #c7dad7;
    border-radius: 5px;
    break-inside: avoid;
  }

  .factory-statement-print-report > section h2 {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .factory-statement-print-report > section > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .factory-statement-print-report article {
    display: grid;
    gap: 2px;
  }

  .factory-statement-print-report article span {
    color: #71868c;
  }

  .factory-statement-print-report article strong {
    color: #075f52;
    font-size: 10px;
  }
}

.factory-statement-period button {
  min-height: 28px;
  padding: 0 12px;
  color: #61717b;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
}

.factory-statement-period button.is-active {
  color: var(--green-strong);
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 27, 40, 0.08);
}

.factory-statement-search {
  position: relative;
  min-width: 0;
}

.factory-statement-search span::before {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #74848e;
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f002";
  transform: translateY(-50%);
}

.factory-statement-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px 0 34px;
  font-size: 12px;
}

.factory-statement-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.factory-statement-summary article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 12px;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.factory-statement-summary span {
  color: var(--muted);
  font-size: 10px;
}

.factory-statement-summary strong {
  color: #075f97;
  font-size: 14px;
  font-weight: 600;
}

.factory-statement-summary .is-credit strong {
  color: var(--green-strong);
}

.factory-statement-summary .is-debit strong {
  color: #c3473d;
}

.factory-statement-summary .is-fee strong {
  color: #986914;
}

.factory-statement-summary .is-service-income strong {
  color: var(--green-strong);
}

.factory-statement-summary .is-service-income.is-negative {
  background: #fff5f5;
  border-color: #ef3030;
  box-shadow: 0 0 0 1px rgba(239, 48, 48, 0.16);
}

.factory-statement-summary .is-service-income.is-negative strong {
  color: #d71920;
}

@media (max-width: 900px) {
  .factory-statement-summary,
  .admin-factory-statement .factory-statement-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.factory-statement-table-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-statement-head,
.factory-statement-row-main {
  display: grid;
  grid-template-columns: 112px minmax(170px, 1.4fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(105px, .8fr) 28px;
  gap: 10px;
  align-items: center;
}

.factory-statement-head {
  padding: 8px 12px;
  color: #687984;
  background: #f2f7f5;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.factory-statement-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: rgba(7, 107, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.factory-statement-row {
  border-bottom: 1px solid var(--line);
}

.factory-statement-row:last-child {
  border-bottom: 0;
}

.factory-statement-row-main {
  min-height: 44px;
  padding: 6px 12px;
  color: #52636e;
  font-size: 11px;
}

.factory-statement-operation {
  display: grid;
  gap: 2px;
}

.factory-statement-operation strong {
  color: #102532;
  font-size: 11px;
  font-weight: 600;
}

.factory-statement-operation small,
.factory-statement-date small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.factory-statement-invoice {
  color: #075f97;
  background: transparent;
  border: 0;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.factory-statement-amount {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-statement-amount.is-payout,
.factory-statement-amount.is-credit {
  color: var(--green-strong);
}

.factory-statement-amount.is-debit {
  color: #c3473d;
}

.factory-statement-expand {
  width: 26px;
  height: 26px;
  color: #657680;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.factory-statement-expand::before {
  font-family: "FontAwesome";
  font-size: 11px;
  content: "\f078";
}

.factory-statement-row.is-open .factory-statement-expand::before {
  content: "\f077";
}

.factory-statement-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
  padding: 8px 12px 10px 134px;
  color: var(--muted);
  background: #fbfdfd;
  border-top: 1px dashed var(--line);
  font-size: 10px;
}

.factory-statement-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-statement-details strong {
  color: #334955;
  font-weight: 500;
}

.factory-statement-state {
  padding: 22px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.factory-statement-more {
  min-height: 30px;
  color: var(--green-strong);
  background: #f2f8f6;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 1600px) {
  body[data-page="dashboard"] [data-factory-edit-panel="statement"] .factory-statement-head,
  body[data-page="dashboard"] #factoryStatementList .factory-statement-row-main {
    grid-template-columns: 90px minmax(0, 1.6fr) 70px minmax(0, 1fr) minmax(80px, 0.8fr) 28px;
    gap: 8px;
  }

  body[data-page="dashboard"] #factoryStatementList .factory-statement-details {
    padding-left: 110px;
  }
}

.factory-overview-grid {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  align-content: stretch;
  flex: 1;
  min-height: 100%;
}

.factory-overview-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.factory-overview-kpis article {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 27, 40, 0.04);
}

.factory-overview-kpis article > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-overview-kpis strong {
  min-width: 0;
  overflow: hidden;
  color: #071b28;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-overview-kpis .animated-amount-suffix {
  color: #5f7f8f;
  font-weight: 500;
}

.factory-overview-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
}

.factory-overview-tile {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 27, 40, 0.035);
}

.factory-overview-tile.is-chart,
.factory-overview-tile.is-payments,
.factory-overview-tile.is-attention {
  min-height: 224px;
}

.factory-attention-invoice-row .factory-recent-invoice-status.is-partial {
  color: #a56400;
}

.factory-attention-invoice-row .factory-recent-invoice-status.is-inactive {
  color: #b42318;
}

.factory-attention-invoice-row {
  grid-template-columns: 38px 24px minmax(86px, 0.9fr) minmax(100px, 1fr) minmax(84px, 0.8fr);
}

.factory-overview-tile.is-info {
  gap: 10px;
  padding: 12px;
}

.factory-overview-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.factory-overview-tile-head span {
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.factory-payment-chart-toolbar,
.factory-payment-chart-switch {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.factory-payment-chart-toolbar {
  gap: 8px;
}

.factory-payment-chart-switch {
  padding: 2px;
  background: #edf5f2;
  border-radius: 6px;
}

.factory-payment-chart-switch.is-period {
  background: #edf4f8;
}

.factory-payment-chart-switch button {
  min-height: 23px;
  padding: 0 7px;
  color: #667985;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.factory-payment-chart-switch button.is-active {
  color: var(--green-strong);
  background: #fdfefe;
  box-shadow: 0 1px 4px rgba(7, 27, 40, 0.1);
}

.factory-payment-chart-switch.is-period button {
  color: #607987;
}

.factory-payment-chart-switch.is-period button.is-active {
  color: #085f97;
  background: #f8fcff;
  box-shadow: 0 1px 4px rgba(8, 95, 151, 0.14);
}

.factory-payment-chart {
  position: relative;
  min-height: 158px;
  overflow: hidden;
}

.factory-payment-chart svg {
  display: block;
  width: 100%;
  height: 158px;
  overflow: visible;
}

.factory-payment-chart-grid {
  stroke: #dce9e5;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.factory-payment-chart-area {
  fill: url(#factoryPaymentChartArea);
}

.factory-payment-chart-line {
  fill: none;
  stroke: #15916f;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.factory-payment-chart-point {
  fill: #fff;
  stroke: #15916f;
  stroke-width: 1.5;
}

.factory-payment-chart-axis {
  fill: #71828c;
  font-size: 9px;
}

.factory-payment-chart-state {
  align-self: center;
  margin: auto;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.factory-payment-chart-state:empty {
  display: none;
}

.factory-overview-all-invoices {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 0;
  color: var(--green-strong);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.factory-overview-all-invoices::after {
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
  content: "\f054";
}

.factory-overview-all-invoices:hover {
  color: #085f97;
}

.factory-recent-invoices {
  display: grid;
  min-width: 0;
}

.factory-recent-invoice-row {
  display: grid;
  grid-template-columns: 38px 24px minmax(86px, 0.9fr) minmax(100px, 1fr) minmax(84px, 0.8fr) 24px;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 33px;
  padding: 3px 2px;
  color: #526571;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e0ece8;
  cursor: pointer;
}

.factory-recent-invoice-row:last-child {
  border-bottom: 0;
}

.factory-recent-invoice-row:hover {
  background: #f1f9f6;
}

.factory-recent-invoice-row.has-payment-action {
  grid-template-columns: minmax(0, 1fr) 24px;
  cursor: default;
}

.factory-recent-invoice-main {
  display: grid;
  grid-template-columns: 38px 24px minmax(86px, 0.9fr) minmax(100px, 1fr) minmax(84px, 0.8fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.factory-recent-invoice-row time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.factory-recent-invoice-token {
  display: grid;
  place-items: center;
}

.factory-recent-invoice-token .token-mini-logo {
  width: 20px;
  height: 20px;
}

.factory-recent-invoice-row > strong,
.factory-recent-invoice-main > strong,
.factory-recent-invoice-amount,
.factory-recent-invoice-row > span,
.factory-recent-invoice-main > span {
  min-width: 0;
}

.factory-recent-invoice-row > strong,
.factory-recent-invoice-main > strong {
  overflow: hidden;
  color: #243844;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-recent-invoice-amount {
  overflow: hidden;
  color: #087d67;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-recent-invoice-status {
  min-width: 0;
  padding: 2px 5px;
  font-size: 10px;
  white-space: nowrap;
}

.factory-recent-invoice-open {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #617681;
  background: #f2f7f6;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.factory-recent-invoice-open::before {
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
  content: "\f08e";
}

.factory-recent-invoice-row:hover .factory-recent-invoice-open {
  color: var(--green-strong);
  background: #e5f4ef;
}

.factory-recent-invoice-open:focus-visible,
.factory-recent-invoice-main:focus-visible {
  outline: 2px solid var(--green-strong);
  outline-offset: 2px;
}

.factory-recent-invoices-state {
  align-self: center;
  margin: auto;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.factory-overview-tile-head strong {
  min-width: 0;
  overflow: hidden;
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-overview-tile.is-info .factory-edit-address-box {
  padding: 0;
  background: transparent;
  border: 0;
}

.factory-overview-tile.is-info .factory-edit-address-row {
  grid-template-columns: auto minmax(0, 1fr) 28px;
  gap: 8px;
  margin: 2px 0;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.factory-overview-tile.is-info .factory-edit-address-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.factory-overview-tile.is-info .factory-edit-address-row span {
  color: #071b28;
  font-size: 11px;
  font-weight: 500;
}

.factory-overview-tile.is-info .factory-copy-button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.factory-overview-tile.is-info .factory-copy-button:hover {
  color: var(--green-strong);
  background: #eff8f5;
}

.factory-overview-tile.is-info .factory-edit-state {
  padding-top: 0;
  border-top: 0;
}

.factory-info-hero {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.factory-info-hero-icon,
.factory-info-icon {
  display: grid;
  place-items: center;
  color: var(--green-strong);
  border-radius: 50%;
}

.factory-info-hero-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.factory-info-hero-icon::before,
.factory-info-icon::before {
  font-family: "FontAwesome";
  font-weight: 400;
}

.factory-info-hero-icon::before {
  font-size: 24px;
  content: "\f275";
}

.factory-info-hero-icon:has(img)::before {
  content: none;
}

.factory-info-hero-icon .token-mini-logo {
  width: 40px;
  height: 40px;
}

.factory-info-hero-icon .token-mini-logo.is-fallback {
  display: grid;
  place-items: center;
  color: var(--green-strong);
  background: #eaf7f2;
  border: 1px solid #cfe8df;
  font-size: 16px;
  font-weight: 600;
}

.factory-info-hero > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.factory-info-hero span {
  color: var(--green-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.factory-info-hero strong {
  overflow: hidden;
  color: #071b28;
  font-size: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-info-hero p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.factory-info-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  color: var(--green-strong);
  background: #eaf7f2;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.factory-info-status:disabled {
  opacity: 1;
}

.factory-info-status.is-clickable {
  cursor: pointer;
  transition: filter 140ms ease, box-shadow 140ms ease;
}

.factory-info-status.is-clickable:hover {
  filter: brightness(0.94);
}

.factory-info-status.is-clickable:focus-visible {
  outline: 2px solid #79cdb2;
  outline-offset: 2px;
}

.factory-info-status.is-inactive {
  color: #7a5b00;
  background: #fff7d6;
}

.factory-info-status.is-blocked {
  color: #a1271d;
  background: #fdecea;
}

.factory-info-hero small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-info-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 8px;
}

.factory-info-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 3px 0;
  background-color: #e9f8fb;
  border-radius: 5px;
}

.factory-info-icon {
  width: 36px;
  height: 36px;
}

.factory-info-icon::before {
  font-size: 16px;
  content: "\f05a";
}

.factory-info-item.is-token .factory-info-icon::before {
  content: "\f1c0";
}

.factory-info-item.is-fee .factory-info-icon::before {
  content: "\f295";
}

.factory-info-item.is-tmr .factory-info-icon::before {
  content: "\f0d6";
}

.factory-info-item.is-balance .factory-info-icon::before {
  content: "\f283";
}

.factory-info-item.is-aml .factory-info-icon::before {
  content: "\f132";
}

.factory-info-item.is-min .factory-info-icon::before {
  content: "\f145";
}

.factory-info-item.is-total .factory-info-icon::before {
  content: "\f0ec";
}

.factory-info-item.is-description .factory-info-icon::before {
  content: "\f02b";
}

.factory-info-item.is-last .factory-info-icon::before {
  content: "\f017";
}

.factory-info-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.factory-info-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-info-item strong {
  min-width: 0;
  overflow: hidden;
  color: #071b28;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-info-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.factory-info-item .factory-help-button {
  display: inline-grid;
  margin-left: 5px;
  vertical-align: -2px;
}

.factory-info-item .factory-token-preview.is-header {
  max-width: 160px;
}

.factory-edit-tab:hover {
  color: var(--green-strong);
  background: #f7fbfa;
}

.factory-edit-tab.is-active {
  color: var(--green-strong);
  background: #fff;
  border-bottom-color: #fff;
  transform: translateY(1px);
  box-shadow: 0 -8px 18px rgba(7, 27, 40, 0.05);
}

.factory-edit-panel[hidden] {
  display: none;
}

.factory-edit-panel {
  height: min(425px, calc(100vh - 280px));
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(7, 107, 82, 0.32) transparent;
  scrollbar-width: thin;
}

#factoryEditModal .factory-edit-panel {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  scrollbar-color: rgba(7, 107, 82, 0.32) transparent;
  scrollbar-width: thin;
}

.factory-edit-panel::-webkit-scrollbar {
  width: 6px;
}

.factory-edit-panel::-webkit-scrollbar-track {
  background: transparent;
}

.factory-edit-panel::-webkit-scrollbar-thumb {
  background: rgba(7, 107, 82, 0.24);
  border-radius: 999px;
}

.factory-edit-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(7, 107, 82, 0.42);
}

.factory-edit-field {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.factory-edit-field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.factory-edit-meta {
  position: relative;
  min-width: 0;
}

.factory-edit-meta.is-help-active {
  z-index: 8;
}

.factory-edit-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.factory-help-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #8da09d;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.factory-help-button::before {
  content: "\f05a";
}

.factory-help-button:hover,
.factory-help-button.is-active {
  color: var(--green-strong);
  background: transparent;
}

.factory-help-text {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 9;
  width: min(360px, calc(100vw - 64px));
  margin: 0;
  padding: 12px 13px;
  color: #31524d;
  background: #fff;
  border: 1px solid #c7e4db;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 27, 40, 0.14);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  cursor: help;
}

.factory-help-text::before {
  position: absolute;
  top: -7px;
  left: 78px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #c7e4db;
  border-left: 1px solid #c7e4db;
  content: "";
  transform: rotate(45deg);
}

.factory-edit-meta.is-help-above .factory-help-text {
  top: auto;
  bottom: calc(100% + 9px);
}

.factory-edit-meta.is-help-above .factory-help-text::before {
  top: auto;
  bottom: -7px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #c7e4db;
  border-bottom: 1px solid #c7e4db;
}

.factory-edit-field[data-edit-field="autoConvertUsdtRetainAmount"] .factory-help-text {
  top: auto;
  bottom: calc(100% + 9px);
}

.factory-edit-field[data-edit-field="autoConvertUsdtRetainAmount"] .factory-help-text::before {
  top: auto;
  bottom: -7px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #c7e4db;
  border-bottom: 1px solid #c7e4db;
}

.factory-fee-meta .factory-help-text {
  right: 0;
  left: auto;
  width: min(360px, calc(100vw - 96px));
}

.factory-fee-meta .factory-help-text::before {
  right: 70px;
  left: auto;
}

.factory-edit-field strong {
  display: block;
  max-width: 240px;
  overflow: hidden;
  color: #071b28;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-edit-field input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.factory-edit-field input:focus {
  border-color: #8fd0bc;
  box-shadow: 0 0 0 3px rgba(23, 135, 101, 0.1);
}

.factory-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  color: #071b28;
  font-size: 13px;
  font-weight: 500;
}

.factory-inline-toggle input {
  width: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--green-strong);
}

.factory-inline-toggle span {
  color: #31524d;
  font-size: 13px;
  font-weight: 500;
}

.factory-token-input-wrap {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.factory-token-input-wrap.is-picker {
  position: relative;
}

.factory-token-input-wrap.is-picker input.is-invalid {
  border-color: #ef9a9a;
  background: #fffafa;
  color: #7f1d1d;
  box-shadow: 0 0 0 3px rgba(192, 53, 53, 0.08);
}

.factory-token-preset-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 40, 35, 0.16);
  animation: customSelectOpen 0.16s ease both;
}

.factory-token-preset-list[hidden] {
  display: none;
}

.factory-token-preset {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.factory-token-preset:hover {
  background: #eaf7f2;
}

.factory-token-preset img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
}

.factory-token-preset span {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
}

.factory-token-preset strong {
  font-size: 13px;
  font-weight: 700;
}

.factory-token-preset small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-recipient-picker {
  position: relative;
  display: grid;
  min-width: 0;
}

.wallet-recipient-preset-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 40, 35, 0.16);
  animation: customSelectOpen 0.16s ease both;
}

.wallet-recipient-preset-list[hidden] {
  display: none;
}

.wallet-recipient-preset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.wallet-recipient-preset:hover {
  background: #eaf7f2;
}

.wallet-recipient-preset span {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 7px;
}

.wallet-recipient-preset strong {
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 700;
}

.wallet-recipient-preset small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-recipient-preset em {
  color: #0b5f8f;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.factory-token-preview {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 8px;
  padding: 7px 10px;
  color: #31524d;
  background: #eff8f5;
  border: 1px solid #c7e4db;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.factory-token-preview.is-muted {
  color: var(--muted);
  background: #f7faf9;
}

.factory-token-preview.is-loading {
  min-height: 36px;
  color: #61737a;
  background: #f7faf9;
  border-color: var(--line);
}

.factory-token-preview.is-error {
  color: #9b2c2c;
  background: #fff5f5;
  border-color: #f1caca;
}

.factory-token-preview img {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
}

.factory-token-preview strong {
  color: #071b28;
  font-weight: 600;
}

.factory-token-preview.is-selected {
  min-height: 36px;
  justify-content: flex-start;
  padding-right: 38px;
  color: #31524d;
  background: #eff8f5;
  border-color: #b9e2d7;
  box-shadow: inset 0 0 0 1px rgba(18, 149, 112, 0.08);
}

.factory-token-preview.is-selected strong {
  margin-right: 4px;
  font-weight: 700;
}

.factory-token-reset {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #7a8b91;
  cursor: pointer;
  transform: translateY(-50%);
}

.factory-token-reset::before,
.factory-token-reset::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 6px;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.factory-token-reset::before {
  transform: rotate(45deg);
}

.factory-token-reset::after {
  transform: rotate(-45deg);
}

.factory-token-reset:hover {
  color: var(--accent);
}

.factory-field-apply {
  min-height: 36px;
  min-width: 112px;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.factory-field-apply:hover {
  background: var(--green-strong);
}

.factory-field-apply:disabled {
  color: #8a9897;
  background: #edf2f1;
  cursor: not-allowed;
}

.factory-field-apply:disabled:hover {
  background: #edf2f1;
}

.factory-withdraw-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 12px;
  color: #071b28;
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
}

.factory-withdraw-meta {
  min-width: 0;
}

.factory-withdraw-meta span {
  display: block;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 600;
}

.factory-withdraw-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
}

.factory-withdraw-meta p {
  max-width: 440px;
  margin: 4px 0 0;
  color: #4d6864;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.factory-withdraw-card input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fff;
  border: 1px solid #bfe1d5;
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-weight: 500;
}

.factory-withdraw-card input:focus {
  border-color: #8fd0bc;
  box-shadow: 0 0 0 3px rgba(23, 135, 101, 0.1);
}

.factory-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.factory-settings-card .factory-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 9px 13px 11px;
}

.factory-settings-card .factory-profile-grid label {
  gap: 4px;
  font-size: 12px;
}

.factory-settings-card .factory-profile-grid label span {
  line-height: 1.2;
}

.factory-settings-card .factory-profile-grid input,
.factory-settings-card .factory-profile-grid textarea {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}

.factory-settings-card .factory-profile-grid textarea {
  min-height: 58px;
  height: 58px;
  max-height: 58px;
  resize: none;
}

.factory-profile-grid label,
.factory-profile-webhook label {
  display: grid;
  gap: 7px;
  color: #071b28;
  font-size: 13px;
  font-weight: 600;
}

.factory-profile-grid input,
.factory-profile-grid select,
.factory-profile-grid textarea,
.factory-profile-webhook input[type="url"] {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: #071b28;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-weight: 500;
}

.factory-profile-grid textarea {
  resize: vertical;
}

.invoice-filter-panel input:not([type="checkbox"]):not([type="radio"]),
.invoice-operation-group input:not([type="checkbox"]):not([type="radio"]),
.factory-request-grid input:not([type="checkbox"]):not([type="radio"]),
.factory-request-grid textarea,
.factory-edit-field input:not([type="checkbox"]):not([type="radio"]),
.factory-withdraw-card input:not([type="checkbox"]):not([type="radio"]),
.factory-profile-grid input:not([type="checkbox"]):not([type="radio"]),
.factory-profile-grid textarea,
.factory-profile-webhook input[type="url"],
.table-page-jump input {
  padding: 7px 10px;
  color: #071b28;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.invoice-filter-panel input:not([type="checkbox"]):not([type="radio"]),
.invoice-operation-group input:not([type="checkbox"]):not([type="radio"]),
.factory-request-grid input:not([type="checkbox"]):not([type="radio"]),
.factory-edit-field input:not([type="checkbox"]):not([type="radio"]),
.factory-withdraw-card input:not([type="checkbox"]):not([type="radio"]),
.factory-profile-grid input:not([type="checkbox"]):not([type="radio"]),
.factory-profile-webhook input[type="url"] {
  min-height: 36px;
}

.custom-select-trigger,
.invoice-filter-panel .custom-select-trigger,
.invoice-operation-group .custom-select-trigger,
.factory-profile-grid .custom-select-trigger {
  min-height: 36px;
  padding: 7px 34px 7px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.wallet-amount-input-wrap {
  border-radius: 6px;
}

.invoice-operation-group .wallet-amount-input-wrap input {
  padding: 7px 10px;
}

.factory-profile-wide {
  grid-column: 1 / -1;
}

.factory-profile-webhook {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2.2fr);
  gap: 10px 18px;
  padding: 8px 13px 10px;
}

.factory-webhook-main {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 2fr) max-content;
  align-items: end;
  align-content: start;
  gap: 4px 14px;
}

.factory-webhook-enabled {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  min-height: 30px;
  margin: 0;
}

.factory-profile-webhook label.invoice-activation-switch {
  display: flex !important;
  gap: 7px;
  align-items: center;
}

.factory-profile-webhook .factory-webhook-url {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #667b80;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.factory-profile-webhook .factory-webhook-url > span {
  color: #667b80;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
}

.factory-profile-webhook .factory-webhook-url input[type="url"] {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.factory-profile-webhook .factory-webhook-url input[type="url"].is-invalid {
  border-color: #b74232;
  background: #fff9f8;
  box-shadow: none;
}

.factory-webhook-test-row {
  display: contents;
}

.factory-webhook-test-button {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  min-width: 160px;
  height: 30px;
  min-height: 30px;
  padding: 5px 10px;
  color: #16775f;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  border: 1px solid #b9d7cc;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.factory-webhook-test-button:hover:not(:disabled) {
  background: #eaf5f1;
}

.factory-webhook-test-button:disabled {
  color: #8ba39d;
  cursor: default;
  opacity: 0.7;
}

.factory-webhook-test-spinner {
  position: absolute;
  left: 10px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0;
}

.factory-webhook-test-button.is-loading .factory-webhook-test-spinner {
  opacity: 1;
  animation: fa-spin 0.8s infinite linear;
}

.factory-webhook-test-status {
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: end;
  min-height: 13px;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: right;
}

.factory-webhook-test-status.is-ok {
  color: #08775b;
}

.factory-webhook-test-status.is-error {
  color: #b74232;
}

.factory-webhook-events {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 4px 10px;
}

.factory-webhook-events > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.factory-webhook-events label {
  justify-content: flex-start;
  min-width: 0;
  min-height: 24px;
}

.factory-webhook-events .invoice-activation-switch strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.landing-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.landing-footer a {
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--green-strong);
}

/* The landing call-to-action and service links share one full-width closing band. */
.landing-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 0.72fr);
  grid-template-areas:
    "cta cta action"
    "brand nav note";
  column-gap: 34px;
  row-gap: 0;
  width: 100%;
  min-height: 256px;
  margin-top: 22px;
  padding: 38px max(56px, calc((100vw - 1328px) / 2)) 24px;
  overflow: hidden;
  color: #b8cac8;
  background: linear-gradient(100deg, #0d2d2c 0%, #101a22 100%);
  border-top: 0;
}

.landing-footer::before {
  position: absolute;
  z-index: -1;
  top: -74px;
  bottom: -74px;
  left: max(0px, calc((100vw - 1440px) / 2));
  width: 430px;
  background: url("../img/sidebar-network.png") left center / auto 250px no-repeat;
  opacity: 0.12;
  filter: saturate(0.85) contrast(0.9);
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
  content: "";
}

.landing-footer::after {
  position: absolute;
  z-index: 0;
  right: max(56px, calc((100vw - 1328px) / 2));
  bottom: 69px;
  left: max(56px, calc((100vw - 1328px) / 2));
  height: 1px;
  background: rgba(184, 202, 200, 0.17);
  content: "";
}

.landing-footer > * {
  position: relative;
  z-index: 1;
}

.footer-cta-copy {
  grid-area: cta;
  align-self: center;
  padding: 0 0 30px;
}

.footer-cta-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.08;
}

.footer-cta-copy p {
  margin: 9px 0 0;
  color: rgba(232, 244, 242, 0.76);
}

.footer-cta-button {
  grid-area: action;
  align-self: center;
  margin-bottom: 30px;
}

.landing-footer-brand {
  grid-area: brand;
  align-self: end;
  color: #e8f4f2;
  font-weight: 600;
}

.landing-footer nav {
  grid-area: nav;
  align-self: end;
  justify-self: center;
}

.landing-footer-note {
  grid-area: note;
  align-self: end;
  justify-self: end;
  color: #789a97;
}

.landing-footer a,
.landing-footer-link {
  padding: 0;
  color: #b8cac8;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.landing-footer a:hover,
.landing-footer-link:hover {
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 35, 43, 0.48);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-overlay.is-open[data-modal-suspended] {
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay.is-open[data-modal-top] {
  z-index: 2700 !important;
}

.modal-overlay[data-modal-leaving] {
  display: flex;
  visibility: visible !important;
  pointer-events: none;
  z-index: 2701 !important;
}

.modal-overlay[data-modal-handoff] {
  background: transparent;
}

.modal-overlay[data-modal-waiting] {
  pointer-events: none;
}

.modal-overlay[data-modal-waiting] > :first-child {
  visibility: hidden;
}

.wallet-modal {
  position: relative;
  width: min(560px, 100%);
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0;
  color: var(--muted);
  background: #f3f7f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
  line-height: 1;
}

.modal-close::before {
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.modal-close::after {
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.modal-close:hover::before,
.modal-close:focus-visible::before {
  transform: rotate(225deg);
}

.modal-close:hover::after,
.modal-close:focus-visible::after {
  transform: rotate(135deg);
}

/*
.modal-close::before {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  content: "\f00d";
  transform-origin: 50% 50%;
  transform: translate(0.5px, -0.5px);
  transition: transform 180ms ease;
}

.modal-close:hover::before,
.modal-close:focus-visible::before {
  transform: translate(0.5px, -0.5px) rotate(180deg);
}
*/

.modal-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.modal-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 14px;
}

.wallet-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 112px;
  padding: 16px 10px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wallet-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.wallet-card.is-wallet-unavailable {
  position: relative;
  z-index: 1;
  cursor: not-allowed;
  background: #f4f7f6;
  border-color: #d4dfdc;
  box-shadow: none;
}

.wallet-card.is-wallet-unavailable:hover,
.wallet-card.is-wallet-unavailable:focus-visible {
  z-index: 20;
  border-color: #d4dfdc;
  box-shadow: none;
  transform: none;
}

.wallet-card.is-wallet-unavailable .wallet-mark,
.wallet-card.is-wallet-unavailable strong {
  opacity: 0.48;
  filter: grayscale(0.65);
}

.wallet-availability-note {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  color: #77878d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.wallet-availability-note[hidden] {
  display: none;
}

.wallet-card[data-wallet-unavailable-reason]::after {
  content: attr(data-wallet-unavailable-reason);
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 9px 11px;
  color: #ffffff;
  background: #263a42;
  border: 1px solid #263a42;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(25, 45, 52, 0.24);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  pointer-events: none;
}

.wallet-card[data-wallet-unavailable-reason]::before {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 10px;
  height: 10px;
  background: #263a42;
  border-top: 1px solid #263a42;
  border-left: 1px solid #263a42;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) rotate(45deg);
  transition: opacity 140ms ease, visibility 140ms ease;
  pointer-events: none;
}

.wallet-card[data-wallet-unavailable-reason]:hover::after,
.wallet-card[data-wallet-unavailable-reason]:hover::before,
.wallet-card[data-wallet-unavailable-reason]:focus-visible::after,
.wallet-card[data-wallet-unavailable-reason]:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.wallet-card[data-wallet-unavailable-reason]:hover::after,
.wallet-card[data-wallet-unavailable-reason]:focus-visible::after {
  transform: translate(-50%, 0);
}

.wallet-mark {
  display: grid;
  place-items: center;
  width: 78px;
  padding: 7px;
}

.wallet-mark img {
  display: block;
  max-width: 58px;
  max-height: 28px;
  object-fit: contain;
}

.wallet-card[data-wallet="tronlink"] .wallet-mark img {
  max-width: 44px;
  max-height: 30px;
}

.walletconnect-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 10px 10px 10px 12px;
  border: 1px solid #cfe2dc;
  border-radius: 6px;
  background: #f5faf8;
}

.walletconnect-session-details {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.walletconnect-session-label {
  color: #6c7f86;
  font-size: 12px;
  line-height: 16px;
}

.walletconnect-session-address {
  color: #075f97;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.walletconnect-session-disconnect {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cfdcda;
  border-radius: 6px;
  color: #5d6d76;
  background: transparent;
  cursor: pointer;
}

.walletconnect-session-disconnect::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: normal;
  line-height: 1;
  content: "\f08b";
}

.walletconnect-session-disconnect:hover,
.walletconnect-session-disconnect:focus-visible {
  border-color: #d07a72;
  color: #a44138;
  background: #fff7f6;
}

.walletconnect-session-disconnect:disabled {
  cursor: wait;
  opacity: 0.55;
}

.ledger-auth-flow {
  margin: 0 0 10px;
  padding: 10px 8px;
  overflow: hidden;
  background: #f8fbfa;
  border: 1px solid #d8e5e1;
  border-radius: 6px;
  transition: height 180ms ease;
}

.ledger-auth-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translateY(0);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.ledger-auth-flow.is-shifted .ledger-auth-steps {
  transform: translateY(calc(-1 * var(--ledger-row-shift, 0px)));
}

.ledger-auth-step {
  position: relative;
  flex: 0 0 auto;
  width: 80%;
  aspect-ratio: 6 / 1;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transform: scale(1);
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.ledger-auth-step--pin {
  background-image: url("../img/ledger-auth-preview/enter-pin.png");
}

.ledger-auth-step--install {
  background-image: url("../img/ledger-auth-preview/install-tron.png");
}

.ledger-auth-step--open {
  background-image: url("../img/ledger-auth-preview/open-tron.png");
}

.ledger-auth-step--saved {
  background-image: url("../img/ledger-auth-preview/saved-address-v3.png");
}

.ledger-auth-step--verify {
  background-image: url("../img/ledger-auth-preview/verify-address.png");
}

.ledger-auth-step--sign {
  background-image: url("../img/ledger-auth-preview/sign-message.png");
}

.ledger-auth-step.is-past,
.ledger-auth-step.is-next {
  opacity: 0.38;
  filter: saturate(0.6);
  transform: scale(0.985);
}

.ledger-auth-step.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.ledger-auth-step-label,
.ledger-auth-saved-caption,
.ledger-auth-saved-address {
  position: absolute;
  left: 71%;
  width: 18%;
  color: #263a42;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.ledger-auth-step-label {
  top: 50%;
  font-size: 10px;
  font-weight: 600;
  transform: translateY(-50%);
}

.ledger-auth-saved-caption {
  top: 36%;
  left: 27%;
  width: 45%;
  color: #78d7ed;
  font-size: 10px;
  transform: translateY(-50%);
}

.ledger-auth-saved-address {
  top: 57%;
  left: 24%;
  width: 52%;
  color: #b7f3ff;
  font-size: 9px;
  transform: translateY(-50%);
}

.ledger-saved-forget {
  position: absolute;
  top: 43%;
  right: 3.5%;
  display: grid;
  place-items: center;
  width: 10.5%;
  height: 78%;
  padding: 0;
  color: #263a42;
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 140ms ease;
}

.ledger-saved-forget::before {
  font-family: "FontAwesome";
  font-size: inherit;
  font-weight: normal;
  line-height: 1;
  content: "\f090";
}

.ledger-saved-forget:hover,
.ledger-saved-forget:focus-visible {
  color: #12b892;
}

.ledger-saved-forget:disabled {
  cursor: wait;
  opacity: 0.5;
}

.wallet-note,
.auth-status {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--muted);
}

.auth-status {
  margin: 14px 0 0;
}

.auth-status.is-error {
  color: #a22929;
}

.auth-status.is-ok {
  color: var(--green-strong);
}

.full-width {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .ledger-auth-step,
  .ledger-auth-steps,
  .ledger-auth-flow,
  .ledger-saved-forget {
    transition: none;
  }
}

@media (max-width: 520px) {
  .ledger-auth-step {
    width: 100%;
  }

  .ledger-auth-step-label,
  .ledger-auth-saved-caption {
    font-size: 8px;
  }

  .ledger-auth-saved-address {
    font-size: 7px;
  }

  .ledger-saved-forget {
    font-size: 16px;
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
  }

  .brand-logo {
    width: 108px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .steps-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    min-height: auto;
    padding: 14px;
  }

  .dashboard-menu {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .dashboard-wallet-card {
    margin-top: 16px;
  }

  .dashboard-main {
    padding: 22px 14px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .landing-nav {
    display: none;
  }

  .landing-header {
    justify-content: flex-start;
    gap: 12px;
  }

  .landing-header .header-actions {
    margin-left: auto;
  }

  .landing-menu-toggle {
    display: inline-grid;
    place-items: center;
    align-self: center;
    width: 24px;
    height: 42px;
    flex: 0 0 24px;
    padding: 0;
    color: #173b40;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    line-height: 1;
    transition: color 180ms ease;
  }

  .landing-menu-toggle::before {
    content: "\f03c";
    font-family: "FontAwesome";
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(5px);
  }

  .landing-menu-toggle[aria-expanded="true"]::before {
    content: "\f03b";
  }

  .landing-menu-toggle:hover,
  .landing-menu-toggle:focus-visible,
  .landing-menu-toggle[aria-expanded="true"] {
    color: #08785f;
  }

  .landing-menu-toggle:focus-visible {
    outline: 2px solid rgba(8, 120, 95, 0.35);
    outline-offset: 3px;
  }

  .landing-header.is-scrolled .landing-menu-toggle {
    color: #eff8f5;
  }

  .landing-header.is-scrolled .landing-menu-toggle:hover,
  .landing-header.is-scrolled .landing-menu-toggle:focus-visible,
  .landing-header.is-scrolled .landing-menu-toggle[aria-expanded="true"] {
    color: #68d4b7;
  }

  .landing-nav-drawer {
    position: fixed;
    top: var(--landing-header-height, 132px);
    bottom: 0;
    left: 0;
    z-index: 29;
    display: flex;
    width: min(310px, 82vw);
    min-height: 0;
    padding: 22px;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    color: #17373d;
    background: rgba(250, 253, 252, 0.97);
    border-right: 1px solid #c9ddd8;
    box-shadow: 18px 0 42px rgba(15, 54, 51, 0.14);
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-104%);
    transition: top 280ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .app-shell.is-landing-menu-open .landing-nav-drawer {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: top 280ms ease, transform 220ms ease, visibility 0s linear 0s;
  }

  .landing-nav-drawer-head {
    display: grid;
    gap: 2px;
    padding: 0 10px 16px;
    border-bottom: 1px solid #d6e5e1;
  }

  .landing-nav-drawer-head strong {
    color: #173b40;
    font-size: 15px;
    font-weight: 600;
  }

  .landing-nav-drawer-head small {
    color: #779095;
    font-size: 10px;
  }

  .landing-nav-drawer-links {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 0;
    flex-direction: column;
    gap: 2px;
    color: #294b50;
  }

  .landing-nav-drawer-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
  }

  .landing-nav-drawer-links a:hover,
  .landing-nav-drawer-links a:focus-visible {
    color: #08785f;
    background: #e5f2ee;
    outline: none;
  }

  .landing-main,
  .landing-footer {
    transition: filter 220ms ease;
  }

  .app-shell.is-landing-menu-open .landing-main,
  .app-shell.is-landing-menu-open .landing-footer {
    filter: blur(3px);
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-mockup {
    max-width: 900px;
  }

  .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-layout {
    grid-template-columns: 1fr;
  }

  .benefit-strip,
  .module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .landing-card-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }

  .landing-card-carousel-track.audience-grid,
  .landing-card-carousel-track.process-flow,
  .landing-card-carousel-track.split-cards {
    display: flex;
    gap: 14px;
    margin: -1px;
    padding: 1px 1px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .landing-card-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .landing-card-carousel-track.audience-grid > .info-card,
  .landing-card-carousel-track.process-flow > article,
  .landing-card-carousel-track.split-cards > .large-card {
    flex: 0 0 min(68%, 430px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .landing-card-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
  }

  .landing-card-carousel-nav[hidden] {
    display: none;
  }

  .landing-card-carousel-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    font-family: "FontAwesome";
    font-size: 10px;
    cursor: pointer;
  }

  .landing-card-carousel-arrow.is-prev::before {
    content: "\f053";
  }

  .landing-card-carousel-arrow.is-next::before {
    content: "\f054";
  }

  .landing-card-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .landing-card-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 68px;
  }

  .landing-card-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    background: #b9cec8;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width 160ms ease, background-color 160ms ease, border-radius 160ms ease;
  }

  .landing-card-carousel-dot.is-active {
    width: 18px;
    background: var(--green);
    border-radius: 4px;
  }

  .process-flow article:not(:last-child)::after {
    display: none;
  }

}

@media (max-width: 720px) {
  .landing-main {
    width: min(100% - 24px, 1420px);
  }

  .site-header {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-primary {
    display: none;
  }

  .landing-hero .hero-copy h1 {
    font-size: 42px;
  }

  .hero-benefits,
  .integration-grid,
  .benefit-strip,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-section {
    padding: 18px;
  }

  .landing-card-carousel-track.audience-grid > .info-card,
  .landing-card-carousel-track.process-flow > article,
  .landing-card-carousel-track.split-cards > .large-card {
    flex-basis: calc(100% - 32px);
  }

  .payment-scheme {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-scheme h3 {
    grid-column: 1;
  }

  .payment-scheme .scheme-line::before {
    content: "\f063";
  }

  .dashboard-mockup {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .mock-content {
    padding: 14px;
  }

  .mock-table {
    overflow-x: auto;
  }

  .process-layout > .payment-scheme {
    display: none;
  }

  .large-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .big-visual,
  .percent-badge {
    position: static;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    font-size: 34px;
  }

  #security .big-visual {
    top: 18px;
    right: auto;
    left: 18px;
    width: 56px;
    height: 68px;
    border-radius: 8px 8px 22px 22px;
    font-size: 28px;
  }

  #security h2 {
    min-height: 68px;
    padding-right: 0;
    padding-left: 66px;
  }

  #pricing .check-list li:nth-child(n + 4) {
    margin-right: 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }

  .factory-edit-modal {
    height: min(760px, calc(100vh - 24px));
  }

  .factory-edit-state,
  .factory-edit-field,
  .factory-profile-grid,
  .factory-settings-card .factory-profile-grid,
  .factory-profile-webhook,
  .factory-webhook-events {
    grid-template-columns: 1fr;
  }

  .invoice-info-section-grid,
  .invoice-info-receipt-row,
  .invoice-info-receipt-row.is-wide {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .invoice-info-receipt-row strong,
  .invoice-info-receipt-row.is-wide strong {
    text-align: left;
  }

  .invoice-info-receipt-row .token-mini {
    justify-content: flex-start;
  }

  .factory-edit-panel {
    height: min(430px, calc(100vh - 300px));
  }

  #factoryEditModal .factory-edit-panel {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding: 10px 12px;
  }

  .hero-copy h1,
  .dashboard-header h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .login-open-button {
    min-width: 72px;
    padding: 0 12px;
  }

  .language-button {
    min-width: 70px;
    padding: 0 10px;
  }

  .hero-benefits,
  .integration-grid,
  .benefit-strip,
  .module-grid,
  .mock-metrics,
  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .info-card p {
    grid-column: 1;
  }

  #audience .info-card > .landing-icon {
    grid-row: auto;
    justify-self: center;
  }
}

@media (max-width: 1180px) {
  body[data-page="dashboard"] {
    min-width: 1180px;
    overflow: auto;
    background: #f4f7f6;
  }

  body[data-page="dashboard"] .dashboard-shell {
    width: 1180px;
    min-width: 1180px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body[data-page="dashboard"] .dashboard-layout {
    grid-template-columns: 244px minmax(0, 1fr);
    width: 1180px;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body[data-page="dashboard"] .dashboard-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 22px 14px;
  }

  body[data-page="dashboard"] .dashboard-menu {
    display: grid;
    max-width: none;
    overflow: visible;
  }

  body[data-page="dashboard"] .dashboard-wallet-card {
    margin-top: auto;
  }

  body[data-page="dashboard"] .dashboard-main {
    padding: 26px 18px 38px;
  }

  body[data-page="dashboard"] .dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared compact density for the workspace. */
body[data-page="dashboard"] {
  font-size: 13px;
}

body[data-page="dashboard"] .dashboard-page-head {
  min-height: 46px;
}

body[data-page="dashboard"] .dashboard-page-head h1 {
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
}

body[data-page="dashboard"] .dashboard-page-head h1::before {
  font-size: 18px;
}

body[data-page="dashboard"] .sidebar-link {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 500;
}

body[data-page="dashboard"] .dashboard-stat-grid {
  gap: 12px;
}

body[data-page="dashboard"] .dashboard-stat-card {
  gap: 11px;
  min-height: 82px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(5, 40, 33, 0.045);
}

body[data-page="dashboard"] .dashboard-stat-icon {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
}

body[data-page="dashboard"] .dashboard-stat-icon::before {
  font-size: 17px;
}

body[data-page="dashboard"] .dashboard-stat-card p {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 500;
}

body[data-page="dashboard"] .dashboard-stat-card strong {
  font-size: 22px;
  font-weight: 600;
}

body[data-page="dashboard"] .dashboard-activity-card {
  gap: 10px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(5, 40, 33, 0.045);
}

body[data-page="dashboard"] .dashboard-activity-head {
  padding-bottom: 9px;
}

body[data-page="dashboard"] .dashboard-activity-head h2 {
  font-size: 15px;
  font-weight: 600;
}

body[data-page="dashboard"] .dashboard-activity-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 52px;
  padding: 8px 10px;
}

body[data-page="dashboard"] .dashboard-activity-icon {
  width: 30px;
  height: 30px;
}

body[data-page="dashboard"] .dashboard-placeholder {
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(5, 40, 33, 0.05);
}

body[data-page="dashboard"] .dashboard-placeholder strong {
  font-size: 18px;
  font-weight: 600;
}

body[data-page="dashboard"] .login-open-button,
body[data-page="dashboard"] .secondary-button,
body[data-page="dashboard"] .primary-button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

body[data-page="dashboard"] .factory-request-modal {
  padding: 20px;
}

body[data-page="dashboard"] .modal-head h1,
body[data-page="dashboard"] .modal-head h2,
body[data-page="dashboard"] .invoice-create-modal .modal-head h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}

body[data-page="dashboard"] .modal-head p:not(.eyebrow) {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

body[data-page="dashboard"] .modal-close {
  top: 10px;
  right: 10px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

body[data-page="dashboard"] .factory-request-grid {
  gap: 10px;
  margin-top: 14px;
}

body[data-page="dashboard"] .factory-request-grid label {
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}

body[data-page="dashboard"] .factory-request-terms {
  gap: 5px;
  margin: 13px 0 6px;
  padding: 10px 12px;
}

body[data-page="dashboard"] .factory-request-terms p {
  font-size: 12px;
  line-height: 1.4;
}

body[data-page="dashboard"] .invoice-create-modal .factory-request-grid {
  margin-top: 11px;
}

body[data-page="dashboard"] #invoiceCreateSubmit {
  margin-top: 11px;
}

body[data-page="dashboard"] #invoiceCreateForm:has(#invoiceCreateAutoPolicyAmlWrap:not([hidden])) #invoiceCreateSubmit {
  margin-top: 55px;
}

body[data-page="dashboard"] .invoice-auto-policy {
  gap: 8px;
  padding: 10px 12px;
}

body[data-page="dashboard"] .invoice-process-confirm-checks {
  gap: 6px;
  margin: 13px 0 11px;
}

body[data-page="dashboard"] .invoice-process-confirm-row {
  padding: 8px 10px;
}

body[data-page="dashboard"] .invoice-process-confirm-note {
  margin-bottom: 12px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}

body[data-page="dashboard"] .invoice-create-result-summary {
  margin: 12px 0 15px;
}

body[data-page="dashboard"] .invoice-create-result-row strong,
body[data-page="dashboard"] .invoice-create-result-warning strong,
body[data-page="dashboard"] .invoice-info-section h3,
body[data-page="dashboard"] .invoice-info-receipt-row strong,
body[data-page="dashboard"] .invoice-info-warning strong,
body[data-page="dashboard"] .invoice-aml-report-title span,
body[data-page="dashboard"] .invoice-aml-report-risk span,
body[data-page="dashboard"] .invoice-aml-report-row strong {
  font-weight: 600;
}

body[data-page="dashboard"] .invoice-aml-report-title strong,
body[data-page="dashboard"] .invoice-aml-report-risk strong {
  font-size: 15px;
  font-weight: 600;
}

body[data-page="dashboard"] .invoice-operation-note {
  font-size: 12px;
  line-height: 1.4;
}

body[data-page="dashboard"] .invoice-operation-group h3,
body[data-page="dashboard"] .invoice-wallet-state-copy h3,
body[data-page="dashboard"] .factory-wallet-intro h3 {
  font-size: 13px;
  font-weight: 600;
}

body[data-page="dashboard"] .invoice-timeline-main strong {
  font-weight: 600;
}

body[data-page="dashboard"] .merchant-notification-stack {
  gap: 8px;
  width: min(340px, calc(100vw - 40px));
}

body[data-page="dashboard"] .merchant-notification {
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 10px;
  padding: 11px;
  box-shadow: 0 14px 34px rgba(3, 38, 32, 0.16);
}

body[data-page="dashboard"] .merchant-notification-icon {
  width: 36px;
  height: 36px;
}

body[data-page="dashboard"] .merchant-notification-icon::before {
  font-size: 16px;
}

body[data-page="dashboard"] .merchant-notification-body strong {
  font-size: 13px;
  font-weight: 600;
}

body[data-page="dashboard"] .merchant-notification-body p,
body[data-page="dashboard"] .merchant-notification-list {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

/* Compact desktop: fluid workspace without a page-level fixed canvas. */
@media (min-width: 981px) and (max-width: 1600px) {
  body[data-page="dashboard"] {
    min-width: 0;
    overflow-x: hidden;
  }

  body[data-page="dashboard"] .dashboard-shell,
  body[data-page="dashboard"] .dashboard-layout {
    width: 100%;
    min-width: 0;
  }

  body[data-page="dashboard"] .dashboard-layout {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  body[data-page="dashboard"] .dashboard-screen[data-dashboard-screen-panel="invoices"] {
    position: relative;
  }

  body[data-page="dashboard"] .invoice-filter-panel {
    position: relative;
    z-index: 4;
    grid-template-columns: minmax(180px, 1.15fr) minmax(170px, 1fr) minmax(170px, 1fr) auto 38px;
    gap: 10px;
    padding: 10px 12px;
    transition: border-color 180ms ease, border-radius 180ms ease, box-shadow 180ms ease;
  }

  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterFactory),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateFrom),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateTo),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterToken) {
    position: absolute;
    top: calc(100% + 10px);
    z-index: 1;
    display: grid;
    width: calc((100% - 54px) / 4);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 140ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 180ms;
  }

  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterFactory) {
    left: 12px;
  }

  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateFrom) {
    left: calc(25% + 5px);
  }

  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateTo) {
    left: calc(50% - 2px);
  }

  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterToken) {
    left: calc(75% - 9px);
  }

  body[data-page="dashboard"] .invoice-filter-actions {
    grid-column: auto;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .invoice-filter-expand {
    display: grid;
    align-self: end;
    place-items: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #527068;
    background: #fff;
    border: 1px solid #c9e4dc;
    border-radius: 6px;
  }

  body[data-page="dashboard"] .invoice-filter-expand:hover {
    color: var(--green-strong);
    background: #eff8f5;
    border-color: #9fd4c4;
  }

  body[data-page="dashboard"] .invoice-filter-expand:focus-visible {
    outline: 2px solid var(--green-strong);
    outline-offset: 2px;
  }

  body[data-page="dashboard"] .invoice-filter-expand-icon {
    display: block;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease, margin 160ms ease;
  }

  body[data-page="dashboard"] .invoice-filter-panel.is-expanded {
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 8px 20px rgba(7, 45, 39, 0.08);
  }

  body[data-page="dashboard"] .invoice-filter-panel::after {
    position: absolute;
    top: calc(100% - 1px);
    right: -1px;
    left: -1px;
    z-index: 0;
    box-sizing: border-box;
    height: 96px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 22px rgba(7, 45, 39, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: scaleY(0.86);
    transform-origin: top;
    transition: opacity 150ms ease, transform 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 200ms;
    content: "";
  }

  body[data-page="dashboard"] .invoice-filter-panel.is-expanded::after {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    transition-delay: 0s;
  }

  body[data-page="dashboard"] .invoice-filter-panel.is-expanded label:has(#invoiceFilterFactory),
  body[data-page="dashboard"] .invoice-filter-panel.is-expanded label:has(#invoiceFilterDateFrom),
  body[data-page="dashboard"] .invoice-filter-panel.is-expanded label:has(#invoiceFilterDateTo),
  body[data-page="dashboard"] .invoice-filter-panel.is-expanded label:has(#invoiceFilterToken) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 45ms, 45ms, 0s;
  }

  body[data-page="dashboard"] .invoice-filter-panel.is-expanded .invoice-filter-expand-icon {
    margin-top: 4px;
    transform: rotate(225deg);
  }

  body[data-page="dashboard"] .invoice-filter-scrim:not([hidden]) {
    position: absolute;
    inset: 81px 0 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    visibility: hidden;
    background: rgba(236, 243, 241, 0.58);
    border: 0;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: opacity 180ms ease, backdrop-filter 200ms ease, visibility 0s linear 200ms;
  }

  body[data-page="dashboard"] .invoice-filter-scrim.is-visible:not([hidden]) {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    transition-delay: 0s;
  }

  body[data-page="dashboard"] .invoice-table > thead > tr > :nth-child(3),
  body[data-page="dashboard"] .invoice-table > tbody > tr > :nth-child(3) {
    display: none;
  }

  body[data-page="dashboard"] .invoice-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body[data-page="dashboard"] .invoice-table th,
  body[data-page="dashboard"] .invoice-table td {
    padding-right: 10px;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-page="dashboard"] .invoice-table .invoice-status-cell,
  body[data-page="dashboard"] .invoice-table .invoice-table-status.is-payment-status,
  body[data-page="dashboard"] .invoice-table .invoice-table-status.is-activation-status {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="dashboard"] .invoice-table td.is-status-column .invoice-table-status.is-activation-status.is-truncated {
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: left;
  }

  body[data-page="dashboard"] .invoice-table .invoice-table-status.is-activation-status.is-truncated .invoice-status-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .invoice-table .is-warning-column {
    width: 54px;
    min-width: 54px;
    padding-right: 9px;
    padding-left: 9px;
    overflow: visible;
  }
}

@media (max-width: 1600px) {
  body[data-page="dashboard"] {
    min-width: 0;
    overflow-x: hidden;
  }

  body[data-page="dashboard"] .dashboard-shell,
  body[data-page="dashboard"] .dashboard-layout {
    width: 100%;
    min-width: 0;
  }

  body[data-page="dashboard"] .dashboard-layout {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  body[data-page="dashboard"] .sidebar-link.is-factories::after {
    display: inline-block;
    margin-left: auto;
    font-family: "FontAwesome";
    font-size: 12px;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    content: "\f105";
  }

  body[data-page="dashboard"] .sidebar-link.is-factories.is-active::after {
    transform: rotate(90deg);
  }

  body[data-page="dashboard"] .dashboard-factory-submenu {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    max-height: 0;
    min-height: 0;
    margin: 0 4px 0 14px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      max-height 240ms cubic-bezier(0.22, 1, 0.36, 1),
      min-height 240ms cubic-bezier(0.22, 1, 0.36, 1),
      margin 240ms cubic-bezier(0.22, 1, 0.36, 1),
      padding 240ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 150ms ease,
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 240ms;
  }

  body[data-page="dashboard"] .sidebar-link.is-factories.is-active + .dashboard-factory-submenu {
    max-height: min(38vh, 320px);
    min-height: min(38vh, var(--factory-submenu-min-height, 88px));
    margin: -2px 4px 4px 14px;
    padding: 4px 0 2px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  body[data-page="dashboard"] .sidebar-link.is-factories.has-no-factories::after,
  body[data-page="dashboard"] .sidebar-link.is-factories.is-active + .dashboard-factory-submenu.has-no-factories {
    display: none;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 1px;
    background: rgba(71, 177, 145, 0.24);
    transform: translateX(-50%);
    content: "";
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list {
    position: relative;
    display: grid;
    align-content: start;
    gap: 2px;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    margin-left: 0;
    padding-right: 5px;
    padding-left: 14px;
    overflow-x: hidden;
    overflow-y: hidden;
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu.is-scroll-ready .dashboard-factory-submenu-list {
    overflow-y: auto;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::-webkit-scrollbar-track,
  body[data-page="dashboard"] .dashboard-factory-submenu-list::-webkit-scrollbar-corner {
    background: transparent;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::-webkit-scrollbar-thumb {
    min-height: 28px;
    background: rgba(105, 174, 161, 0.46);
    border-radius: 999px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list:hover::-webkit-scrollbar-thumb {
    background: rgba(105, 184, 168, 0.56);
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item,
  body[data-page="dashboard"] .dashboard-factory-submenu-create {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px 7px 0;
    color: #b8cac8;
    background: transparent;
    border: 0;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item:hover {
    color: #eefaf6;
    background: transparent;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-create:hover {
    color: #b8cac8;
    background: transparent;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-hover-marker {
    position: absolute;
    top: 0;
    left: 2px;
    width: 3px;
    height: 34px;
    background: #37c89a;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, var(--hover-factory-offset, 0));
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list.has-hover .dashboard-factory-submenu-hover-marker {
    opacity: 0.2;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item:focus-visible,
  body[data-page="dashboard"] .dashboard-factory-submenu-create:focus-visible {
    outline: 2px solid #76d6b7;
    outline-offset: 1px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item.is-selected {
    color: #fff;
    background: transparent;
    font-weight: 600;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list::after {
    position: absolute;
    top: 0;
    left: 2px;
    width: 3px;
    height: 34px;
    background: #37c89a;
    border-radius: 0 2px 2px 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, var(--selected-factory-offset, 0));
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
    content: "";
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-list.has-selection::after {
    opacity: 1;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item.is-selected::after {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-left: auto;
    background: #4bd39f;
    border-radius: 50%;
    content: "";
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item-name,
  body[data-page="dashboard"] .dashboard-factory-submenu-create span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item-name {
    flex: 1 1 auto;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-token {
    display: grid;
    flex: 0 0 18px;
    place-items: center;
    width: 18px;
    height: 18px;
    overflow: hidden;
    color: #b8cac8;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-token.is-fallback {
    background: rgba(255, 255, 255, 0.07);
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-token img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-create {
    min-height: 38px;
    margin-top: 6px;
    padding-top: 9px;
    padding-left: 14px;
    color: #89a19f;
    border-top: 0;
    border-radius: 0 0 6px 0;
    font-size: 12px;
    font-weight: 400;
    transition: color 120ms ease;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-create > span:first-child::before {
    font-family: "FontAwesome";
    font-size: 11px;
    opacity: 0.72;
    content: "\f067";
  }

  body[data-page="dashboard"] .dashboard-main,
  body[data-page="dashboard"] .dashboard-content,
  body[data-page="dashboard"] .dashboard-screen,
  body[data-page="dashboard"] .factory-workspace,
  body[data-page="dashboard"] .factory-inline-editor-host {
    min-width: 0;
  }

  body[data-page="dashboard"] .dashboard-screen[data-dashboard-screen-panel="factories"].is-active {
    height: calc(100vh - 132px);
    height: calc(100dvh - 132px);
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-brand {
    min-height: 100px;
    padding: 0 10px 10px;
  }

  body[data-page="dashboard"] .dashboard-brand img {
    width: 94px;
    height: 94px;
  }

  body[data-page="dashboard"] .dashboard-menu {
    gap: 3px;
  }

  body[data-page="dashboard"] .dashboard-sidebar .sidebar-link {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body[data-page="dashboard"] .sidebar-link.is-factories.is-active + .dashboard-factory-submenu {
    padding-top: 3px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-item {
    min-height: 29px;
    height: 29px;
    font-size: 12px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-hover-marker,
  body[data-page="dashboard"] .dashboard-factory-submenu-list::after {
    height: 29px;
  }

  body[data-page="dashboard"] .dashboard-factory-submenu-create {
    min-height: 30px;
    height: 30px;
    font-size: 10px;
  }

  body[data-page="dashboard"] .factory-workspace {
    grid-template-columns: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  body[data-page="dashboard"] .factory-workspace-list {
    display: none;
  }

  body[data-page="dashboard"] .factory-inline-editor-host {
    align-self: stretch;
    height: 100%;
    overflow: hidden;
  }

  body[data-page="dashboard"] .factory-inline-editor-host:has(.factory-request-modal.is-inline-request) {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request {
    width: min(880px, 100%);
    max-height: none;
    margin: 22px auto 0;
    padding: 0 24px 22px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-close,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head > p:not(.eyebrow),
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-terms {
    display: none;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head {
    position: relative;
    padding: 0 0 16px;
    border-bottom: 1px solid #d6e2df;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head h2 {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-network {
    position: absolute;
    right: 0;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #526a67;
    font-size: 11px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-network > span {
    width: 7px;
    height: 7px;
    background: #27c989;
    border-radius: 50%;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid {
    gap: 16px 18px;
    margin-top: 20px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid label {
    gap: 6px;
    color: #314d56;
    font-size: 12px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid input,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid select,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid textarea,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .custom-select-trigger {
    min-height: 42px;
    font-weight: 500;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-comment textarea {
    min-height: 82px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d6e2df;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-fee {
    display: grid;
    gap: 2px;
    color: #71827f;
    font-size: 10px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-fee strong {
    color: #075f84;
    font-size: 15px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request #factoryRequestSubmit {
    width: auto;
    min-width: 190px;
    min-height: 42px;
    margin: 0;
    font-weight: 700;
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor,
  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-modal {
    height: 100%;
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-modal {
    min-height: 0;
    overflow: hidden;
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="overview"] {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="dashboard"] .factory-overview-grid {
    grid-template-rows: auto;
    gap: 0;
    flex: none;
    height: auto;
    min-height: 100%;
    align-content: safe center;
  }

  body[data-page="dashboard"] .factory-overview-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .modal-head {
    position: relative;
  }

  body[data-page="dashboard"] #factoryEditHeader {
    min-height: 34px;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header article {
    gap: 1px;
    min-height: 34px;
    padding: 2px 10px;
    background: transparent;
    border: 0;
    border-left: 1px solid #e1ebe8;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header article:first-child {
    border-left: 0;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header article > span {
    font-size: 9px;
    font-weight: 500;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header strong {
    color: #075f97;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header .animated-amount,
  body[data-page="dashboard"] .factory-overview-kpis.is-notebook-header .animated-amount-suffix {
    color: #075f97;
  }

  body[data-page="dashboard"] .factory-overview-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: max-content;
    height: auto;
    align-content: start;
  }

  body[data-page="dashboard"] .factory-overview-tile {
    min-height: 0;
  }

  body[data-page="dashboard"] .factory-info-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="dashboard"] .factory-info-item {
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-payments,
  body[data-page="dashboard"] .factory-overview-tile.is-attention {
    min-height: 224px;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-info-hero {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-info-hero-icon {
    width: 42px;
    height: 42px;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-edit-quick-button {
    grid-column: auto;
    justify-self: auto;
    width: auto;
    min-width: 180px;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-chart .factory-overview-tile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body[data-page="dashboard"] .factory-payment-chart-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-payment-chart-switch button {
    padding-right: 5px;
    padding-left: 5px;
  }

  body[data-page="dashboard"] .factory-recent-invoice-main,
  body[data-page="dashboard"] .factory-attention-invoice-row {
    grid-template-columns: 32px 20px minmax(0, 1fr) minmax(58px, 0.8fr) minmax(0, 0.9fr);
    gap: 4px;
  }

  body[data-page="dashboard"] .factory-recent-invoice-main > *,
  body[data-page="dashboard"] .factory-attention-invoice-row > * {
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-recent-invoice-status {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Compact settings: the form follows the editor width, not a desktop canvas. */
  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="network"] {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="dashboard"] .factory-settings-layout,
  body[data-page="dashboard"] .factory-settings-card,
  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields,
  body[data-page="dashboard"] .factory-profile-webhook,
  body[data-page="dashboard"] .factory-webhook-events {
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-settings-card {
    overflow: hidden;
  }

  body[data-page="dashboard"] .factory-settings-card:has(.custom-select.is-open) {
    position: relative;
    z-index: 80;
    overflow: visible;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px 12px 8px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields::after {
    display: none;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 1.05fr);
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field:last-child {
    border-radius: 0;
    border-bottom: 0;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
    grid-column: auto;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-meta,
  body[data-page="dashboard"] .factory-settings-card .factory-edit-field > input,
  body[data-page="dashboard"] .factory-settings-card .factory-edit-field > .custom-select,
  body[data-page="dashboard"] .factory-settings-card .factory-edit-field > .factory-settings-switch {
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field span {
    font-size: 12px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field strong {
    font-size: 12px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-help-button {
    width: 20px;
    height: 20px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-field-apply {
    display: none;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  body[data-page="dashboard"] .factory-profile-webhook {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  body[data-page="dashboard"] .factory-webhook-main {
    grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 2fr) max-content;
    gap: 4px 14px;
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-webhook-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    padding-top: 10px;
  }

  body[data-page="dashboard"] .factory-webhook-events label,
  body[data-page="dashboard"] .factory-webhook-events .invoice-activation-switch {
    min-width: 0;
    min-height: 36px;
  }

  body[data-page="dashboard"] .factory-webhook-events .invoice-activation-switch strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: normal;
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-settings-actions {
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
    margin-top: 0;
    padding: 10px 8px 8px;
  }

  body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-settings-actions .primary-button {
    min-width: 180px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }

  body[data-page="dashboard"] .factory-edit-tab:focus-visible,
  body[data-page="dashboard"] .factory-settings-card input:focus-visible,
  body[data-page="dashboard"] .factory-settings-card textarea:focus-visible,
  body[data-page="dashboard"] .factory-settings-card .custom-select-trigger:focus-visible,
  body[data-page="dashboard"] #factorySettingsSaveButton:focus-visible,
  body[data-page="dashboard"] .factory-help-button:focus-visible {
    outline: 2px solid var(--green-strong);
    outline-offset: 2px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-settings-switch input:focus-visible + span,
  body[data-page="dashboard"] .factory-profile-webhook .invoice-activation-switch input:focus-visible + span {
    outline: 2px solid var(--green-strong);
    outline-offset: 3px;
  }
}

/* Row height participates in automatic invoice pagination. */
@media (min-width: 981px) and (max-width: 1600px) and (prefers-reduced-motion: reduce) {
  body[data-page="dashboard"] .invoice-filter-panel,
  body[data-page="dashboard"] .invoice-filter-panel::after,
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterFactory),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateFrom),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterDateTo),
  body[data-page="dashboard"] .invoice-filter-panel label:has(#invoiceFilterToken),
  body[data-page="dashboard"] .invoice-filter-expand-icon,
  body[data-page="dashboard"] .invoice-filter-scrim:not([hidden]),
  body[data-page="dashboard"] .sidebar-link.is-factories::after,
  body[data-page="dashboard"] .dashboard-factory-submenu {
    transition: none;
  }
}

@media (min-width: 981px) {
  body[data-page="dashboard"] .factory-workspace:has(.factory-pending-zero:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="dashboard"] .factory-workspace:has(.factory-pending-zero:not([hidden])) .factory-workspace-list {
    display: none;
  }

  body[data-page="dashboard"] .factory-inline-editor-host:has(.factory-pending-zero:not([hidden])) {
    display: block;
    align-self: stretch;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="dashboard"] .factory-pending-zero {
    box-sizing: border-box;
    width: min(980px, 100%);
    margin: 38px auto 0;
    padding: 0 24px 22px;
    color: #14232b;
  }

  body[data-page="dashboard"] .factory-pending-zero-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d6e2df;
  }

  body[data-page="dashboard"] .factory-pending-zero-head h2 {
    margin: 4px 0 5px;
    font-size: 22px;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .factory-pending-zero-head p,
  body[data-page="dashboard"] .factory-pending-zero-footer p {
    margin: 0;
    color: #6d7e7b;
    font-size: 12px;
  }

  body[data-page="dashboard"] .factory-pending-zero-eyebrow {
    color: #087657;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  body[data-page="dashboard"] .factory-pending-zero-count {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: #896700;
    background: #fff8df;
    border: 1px solid #eadca5;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-pending-zero-table {
    margin-top: 20px;
    border-top: 1px solid #d7e4e0;
    border-bottom: 1px solid #d7e4e0;
  }

  body[data-page="dashboard"] .factory-pending-zero-row {
    display: grid;
    grid-template-columns: 80px minmax(180px, 1fr) 140px 120px 170px;
    align-items: center;
    min-height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #e4ece9;
    font-size: 13px;
  }

  body[data-page="dashboard"] #factoryPendingRows .factory-pending-zero-row:last-child {
    border-bottom: 0;
  }

  body[data-page="dashboard"] .factory-pending-zero-row.is-head {
    min-height: 36px;
    color: #6b7f7c;
    background: #f6faf9;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
  }

  body[data-page="dashboard"] .factory-pending-zero-row > * {
    min-width: 0;
  }

  body[data-page="dashboard"] .factory-pending-zero-row > strong {
    color: #075f84;
  }

  body[data-page="dashboard"] .factory-pending-zero-row > span:not(.factory-pending-zero-status) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .factory-pending-zero-token .token-mini {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  body[data-page="dashboard"] .factory-pending-zero-token .token-mini-logo {
    width: 22px;
    height: 22px;
  }

  body[data-page="dashboard"] .factory-pending-zero-token .token-mini small {
    display: none;
  }

  body[data-page="dashboard"] .factory-pending-zero-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 7px;
    color: #896700;
    font-size: 11px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-pending-zero-status > span {
    width: 7px;
    height: 7px;
    background: #e1b52e;
    border-radius: 50%;
  }

  body[data-page="dashboard"] .factory-pending-zero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
  }

  body[data-page="dashboard"] .factory-pending-zero-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 40px;
    padding: 0 14px;
    color: #14755d;
    background: transparent;
    border: 1px solid #bcd8d0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  body[data-page="dashboard"] .factory-pending-zero-create:hover {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
  }

  body[data-page="dashboard"] .factory-pending-zero-create > span:first-child::before {
    margin-right: 8px;
    font-family: "FontAwesome";
    font-size: 12px;
    font-weight: 400;
    content: "\f067";
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-page="dashboard"] .factory-pending-zero {
    margin-top: 22px;
  }

  body[data-page="dashboard"] .factory-pending-zero-row {
    grid-template-columns: 64px minmax(150px, 1fr) 110px 100px 145px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 1601px) {
  body[data-page="dashboard"] .factory-workspace:has(.factory-request-modal.is-inline-request) {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="dashboard"] .factory-workspace:has(.factory-request-modal.is-inline-request) .factory-workspace-list {
    display: none;
  }

  body[data-page="dashboard"] .factory-inline-editor-host:has(.factory-request-modal.is-inline-request) {
    display: block;
    align-self: stretch;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request {
    width: min(880px, 100%);
    max-height: none;
    margin: 22px auto 0;
    padding: 0 24px 22px;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-close,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head > p:not(.eyebrow),
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-terms {
    display: none;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head {
    position: relative;
    padding: 0 0 16px;
    border-bottom: 1px solid #d6e2df;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .modal-head h2 {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-network {
    position: absolute;
    right: 0;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #526a67;
    font-size: 11px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-network > span {
    width: 7px;
    height: 7px;
    background: #27c989;
    border-radius: 50%;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid {
    gap: 16px 18px;
    margin-top: 20px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid label {
    gap: 6px;
    color: #314d56;
    font-size: 12px;
    font-weight: 600;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid input,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid select,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-grid textarea,
  body[data-page="dashboard"] .factory-request-modal.is-inline-request .custom-select-trigger {
    min-height: 42px;
    font-weight: 500;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-comment textarea {
    min-height: 82px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d6e2df;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-fee {
    display: grid;
    gap: 2px;
    color: #71827f;
    font-size: 10px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request .factory-request-inline-fee strong {
    color: #075f84;
    font-size: 15px;
  }

  body[data-page="dashboard"] .factory-request-modal.is-inline-request #factoryRequestSubmit {
    width: auto;
    min-width: 190px;
    min-height: 42px;
    margin: 0;
    font-weight: 700;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-page="dashboard"] .invoice-filter-panel {
    grid-template-columns: minmax(140px, 1.15fr) minmax(120px, 1fr) minmax(120px, 1fr) auto 38px;
  }

  body[data-page="dashboard"] .invoice-filter-actions {
    gap: 6px;
  }

  body[data-page="dashboard"] .invoice-filter-button {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 1360px) and (max-width: 1600px) {
  body[data-page="dashboard"] .factory-overview-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-page="dashboard"] .factory-overview-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-info-hero {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-info-hero-icon {
    width: 50px;
    height: 50px;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-edit-quick-button {
    grid-column: auto;
    justify-self: auto;
    width: auto;
    min-width: 180px;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-chart .factory-overview-tile-head {
    display: flex;
    gap: 12px;
  }
}

@media (max-width: 809px) {
  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-info-hero {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-info .factory-edit-quick-button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }
}

body[data-page="dashboard"] .invoice-table tbody tr {
  min-height: 43px;
}

/* Dashboard settings remain a dedicated workspace rather than a nested sidebar. */
.dashboard-screen[data-dashboard-screen-panel="settings"].is-active {
  display: flex;
  min-height: 0;
  height: 100%;
}

.cabinet-settings-workspace {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdfda;
  border-radius: 7px;
}

.cabinet-settings-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 54px;
  padding: 0 22px;
  background: #f8fbfa;
  border-bottom: 1px solid #d8e5e1;
}

.cabinet-settings-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  height: 42px;
  padding: 0 18px;
  color: #60747c;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  border: 0;
  border-radius: 5px 5px 0 0;
}

.cabinet-settings-tab::before {
  color: currentColor;
  font-family: "FontAwesome";
  font-size: 13px;
  font-weight: 400;
}

.cabinet-settings-tab[data-cabinet-settings-tab="factories"]::before {
  content: "\f19c";
}

.cabinet-settings-tab[data-cabinet-settings-tab="interface"]::before {
  content: "\f108";
}

.cabinet-settings-tab[data-cabinet-settings-tab="notifications"]::before {
  content: "\f0f3";
}

.cabinet-settings-tab[data-cabinet-settings-tab="api"]::before {
  content: "\f127";
}

.cabinet-settings-tab:hover {
  color: #08785f;
  background: #eef7f4;
}

.cabinet-settings-tab.is-active {
  color: #08785f;
  background: #fff;
  box-shadow: inset 0 1px #bdd8d0, inset 1px 0 #bdd8d0, inset -1px 0 #bdd8d0;
}

.cabinet-settings-tab.is-active::after {
  position: absolute;
  right: 1px;
  bottom: -1px;
  left: 1px;
  height: 2px;
  background: #fff;
  content: "";
}

.cabinet-settings-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 22px 24px 18px;
  overflow: hidden;
}

.cabinet-settings-panel[hidden] {
  display: none;
}

.cabinet-settings-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce8e4;
}

.cabinet-settings-panel-head h2 {
  margin: 0;
  color: #14232b;
  font-size: 18px;
  line-height: 1.25;
}

.cabinet-settings-panel-head p {
  margin: 4px 0 0;
  color: #72858d;
  font-size: 12px;
}

.cabinet-settings-saved {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
  color: #39836f;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.cabinet-settings-saved.is-visible {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.cabinet-settings-saved::before {
  color: currentColor;
  font-family: "FontAwesome";
  font-weight: 400;
  content: "\f058";
}

.cabinet-settings-saved.is-saving::before {
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(57, 131, 111, 0.24);
  border-top-color: currentColor;
  border-radius: 999px;
  content: "";
  animation: invoiceWalletSpin 780ms linear infinite;
}

.cabinet-settings-saved.is-error {
  color: #a83c35;
}

.cabinet-settings-saved.is-error::before {
  content: "\f06a";
}

.cabinet-settings-factory-columns,
.cabinet-settings-factory-row {
  display: grid;
  grid-template-columns: 28px 38px minmax(180px, 1fr) 92px;
  align-items: center;
}

.cabinet-settings-factory-columns {
  min-height: 34px;
  padding: 0 12px;
  color: #71858e;
  font-size: 11px;
  line-height: 1.2;
}

.cabinet-settings-factory-columns > :first-child {
  grid-column: 3;
}

.cabinet-settings-factory-columns > :last-child {
  grid-column: 4;
  text-align: center;
}

.cabinet-settings-factory-list {
  min-height: 0;
  overflow: auto;
  scrollbar-color: rgba(7, 107, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.cabinet-settings-factory-row {
  box-sizing: border-box;
  min-height: 66px;
  padding: 0 12px;
  background: #fff;
  border-top: 1px solid #e0ebe7;
}

.cabinet-settings-factory-row:last-child {
  border-bottom: 1px solid #e0ebe7;
}

.cabinet-settings-factory-row:hover {
  background: #f8fbfa;
}

.cabinet-settings-factory-drag {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 34px;
  padding: 0;
  color: #879b9f;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
}

.cabinet-settings-factory-drag::before {
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 400;
  content: "\f00a";
}

.cabinet-settings-factory-drag:hover,
.cabinet-settings-factory-drag:focus-visible {
  color: #08785f;
  background: #edf7f4;
}

.cabinet-settings-factory-drag:focus-visible {
  outline: 2px solid #72c8ae;
  outline-offset: 1px;
}

.cabinet-settings-factory-drag:active {
  cursor: grabbing;
}

.cabinet-settings-factory-drag:disabled {
  color: #bdc9c7;
  cursor: wait;
}

.cabinet-settings-factory-row.is-dragging-source {
  opacity: 0.24;
}

.cabinet-settings-factory-list.is-sorting {
  cursor: grabbing;
}

.ui-sortable-ghost.cabinet-settings-factory-row {
  background: #fff;
  border: 1px solid #9fcfc1;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(7, 53, 49, 0.18);
  opacity: 0.98;
}

html.has-sortable-drag {
  cursor: grabbing;
  user-select: none;
}

.cabinet-settings-factory-token {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-settings-factory-token .dashboard-factory-submenu-token {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  overflow: hidden;
}

.cabinet-settings-factory-token .dashboard-factory-submenu-token img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cabinet-settings-factory-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-left: 8px;
}

.cabinet-settings-factory-identity strong {
  overflow: hidden;
  color: #13242b;
  font-size: 13px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-settings-factory-identity small {
  margin-top: 2px;
  color: #73868e;
  font-size: 11px;
  line-height: 14px;
}

.cabinet-settings-toggle {
  position: relative;
  justify-self: center;
  width: 34px;
  height: 19px;
  padding: 0;
  background: #cbd8d4;
  border: 0;
  border-radius: 10px;
  transition: background-color 160ms ease;
}

.cabinet-settings-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(20, 35, 43, 0.22);
  transition: transform 180ms ease;
  content: "";
}

.cabinet-settings-toggle.is-on {
  background: #159272;
}

.cabinet-settings-toggle.is-on::after {
  transform: translateX(15px);
}

.cabinet-settings-toggle:disabled {
  cursor: wait;
  opacity: 0.55;
}

.cabinet-settings-empty {
  margin: 34px 0;
  color: #71858e;
  text-align: center;
}

.cabinet-settings-panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
  color: #71858d;
  font-size: 11px;
  border-top: 1px solid #e0ebe7;
}

.cabinet-settings-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100%;
  color: #71858d;
  text-align: center;
}

.cabinet-settings-placeholder > span::before {
  color: #8ca39e;
  font-family: "FontAwesome";
  font-size: 30px;
  font-weight: 400;
  content: "\f108";
}

.cabinet-settings-placeholder h2 {
  margin: 14px 0 5px;
  color: #263d44;
  font-size: 17px;
}

.cabinet-settings-placeholder p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
}

.cabinet-api-panel {
  position: relative;
}

.cabinet-api-panel > .cabinet-settings-panel-head {
  flex: 0 0 auto;
}

.cabinet-api-create {
  min-height: 34px;
  padding: 0 17px;
  font-size: 12px;
}

.cabinet-api-create::before {
  margin-right: 7px;
  font-family: "FontAwesome";
  content: "\f067";
}

.cabinet-api-list {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(7, 107, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.cabinet-api-key {
  border-bottom: 1px solid #e0ebe7;
}

.cabinet-api-key-summary {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(90px, .65fr) minmax(140px, 1fr) minmax(145px, .9fr) 16px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 7px 10px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.cabinet-api-key-summary:hover,
.cabinet-api-key-summary:focus-visible,
.cabinet-api-key.is-expanded .cabinet-api-key-summary {
  background: #f8fbfa;
}

.cabinet-api-key-access {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.cabinet-api-key-name {
  overflow: hidden;
  color: #14232b;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-api-key-summary code {
  overflow: hidden;
  color: #60747c;
  font-family: Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-api-key-created,
.cabinet-api-key-validity {
  overflow: hidden;
  color: #71858d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-api-key-validity.is-revoked,
.cabinet-api-key-validity.is-expired {
  color: #8a9a9e;
  font-weight: 600;
}

.cabinet-api-key-chevron {
  color: #70858b;
  font-family: "FontAwesome";
  font-size: 11px;
  text-align: center;
}

.cabinet-api-key-chevron::before {
  content: "\f078";
}

.cabinet-api-key.is-expanded .cabinet-api-key-chevron::before {
  content: "\f077";
}

.cabinet-api-key-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 11px 40px 13px 10px;
  background: #fbfdfc;
  border-top: 1px solid #edf3f1;
}

.cabinet-api-key-details[hidden] {
  display: none;
}

.cabinet-api-key-access strong {
  color: #344b52;
  font-size: 11px;
  font-weight: 600;
}

.cabinet-api-key-meta,
.cabinet-api-key-scopes {
  color: #71858d;
  font-size: 11px;
  line-height: 1.35;
}

.cabinet-api-key-state {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cabinet-api-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #138167;
  font-size: 11px;
}

.cabinet-api-status::before {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.cabinet-api-status.is-expired,
.cabinet-api-status.is-revoked {
  color: #8a9a9e;
}

.cabinet-api-revoke {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #a33d35;
  background: transparent;
  border: 1px solid #d8e5e1;
  border-radius: 5px;
}

.cabinet-api-revoke::before {
  font-family: "FontAwesome";
  content: "\f1f8";
}

.cabinet-api-revoke:hover {
  background: #fff4f2;
  border-color: #e2b7b2;
}

.cabinet-api-empty,
.cabinet-api-loading {
  display: grid;
  flex: 1 1 auto;
  place-content: center;
  justify-items: center;
  min-height: 0;
  color: #71858d;
  text-align: center;
}

.cabinet-api-empty[hidden],
.cabinet-api-loading[hidden] {
  display: none;
}

.cabinet-api-empty > span::before {
  color: #8ca39e;
  font-family: "FontAwesome";
  font-size: 28px;
  content: "\f084";
}

.cabinet-api-empty strong {
  margin-top: 12px;
  color: #263d44;
  font-size: 16px;
}

.cabinet-api-empty p {
  max-width: 470px;
  margin: 5px 0 0;
  font-size: 12px;
}

.api-key-create-modal {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  overflow: auto;
}

.api-key-create-form {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.api-key-field {
  display: grid;
  gap: 6px;
  color: #263d44;
  font-size: 12px;
}

.api-key-field input,
.api-key-field select {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
}

.api-key-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.api-key-choice-group legend {
  margin-bottom: 7px;
  color: #263d44;
  font-size: 12px;
}

.api-key-choice-list,
.api-key-scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.api-key-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  color: #344b52;
  font-size: 12px;
  background: #f7faf9;
  border: 1px solid #d9e6e2;
  border-radius: 5px;
}

.api-key-choice input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: #159272;
}

.api-key-form-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(230px, 1.3fr);
  gap: 12px;
}

.api-key-offline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #526970;
  font-size: 11px;
  line-height: 1.4;
  background: #f2f8f6;
  border-left: 2px solid #50aa90;
}

.api-key-offline-note span::before {
  color: #08785f;
  font-family: "FontAwesome";
  font-size: 14px;
  content: "\f132";
}

.api-key-offline-note > span {
  flex: 0 0 16px;
  text-align: center;
}

.api-key-offline-note p,
.api-key-form-status {
  margin: 0;
}

.api-key-form-status {
  min-height: 16px;
  color: #a33d35;
  font-size: 11px;
}

.api-key-form-status.is-progress {
  color: #08785f;
}

.api-key-secret-modal {
  width: min(590px, calc(100vw - 32px));
}

.api-key-secret-modal .webhook-secret-control code {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .cabinet-api-key-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 16px;
    grid-template-areas:
      "name validity chevron"
      "created key chevron";
    gap: 3px 10px;
    min-height: 58px;
  }

  .cabinet-api-key-created {
    grid-area: created;
  }

  .cabinet-api-key-name {
    grid-area: name;
  }

  .cabinet-api-key-summary code {
    grid-area: key;
  }

  .cabinet-api-key-validity {
    grid-area: validity;
  }

  .cabinet-api-key-chevron {
    grid-area: chevron;
  }

  .cabinet-api-key-details {
    padding: 11px 26px 13px 10px;
  }

  .api-key-choice-list,
  .api-key-scope-list,
  .api-key-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .cabinet-settings-workspace {
    grid-template-rows: 50px minmax(0, 1fr);
  }

  .cabinet-settings-tabs {
    min-height: 50px;
    padding: 0 14px;
  }

  .cabinet-settings-tab {
    min-width: 104px;
    height: 38px;
    padding: 0 13px;
  }

  .cabinet-settings-panel {
    padding: 18px;
  }

  .cabinet-settings-panel-head {
    align-items: flex-start;
  }

  .cabinet-settings-factory-columns,
  .cabinet-settings-factory-row {
    grid-template-columns: 28px 38px minmax(150px, 1fr) 82px;
  }
}


.factory-name-disambiguator {
  margin-left: 2px;
  color: #397f9f;
  font-size: 0.8em;
  font-weight: 500;
}

#factoryOverviewName .factory-name-disambiguator {
  color: #397f9f;
  font-size: 0.8em;
  font-weight: 500;
}

.dashboard-factory-submenu-item-name .factory-name-disambiguator {
  color: #6f98a7;
  font-weight: 400;
}

.dashboard-factory-submenu-item.is-selected .factory-name-disambiguator {
  color: #8fc8d6;
}

.cabinet-settings-tab[data-cabinet-settings-tab="notifications"]::before {
  content: "\f0f3";
}

/* The notification center follows the same compact rhythm as invoices and settings. */
.sidebar-link.is-notifications::before {
  content: "\f0a1";
}

.dashboard-sidebar-notifications {
  display: none;
}

.dashboard-sidebar-notifications > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-notification-control {
  position: relative;
  display: inline-flex;
}

.dashboard-notification-control[hidden],
.dashboard-notification-badge[hidden] {
  display: none;
}

.dashboard-utility-button.is-notifications {
  position: relative;
}

.dashboard-utility-button.is-notifications::before {
  content: "\f0a2";
}

.dashboard-notification-control.is-open .dashboard-utility-button.is-notifications,
.dashboard-utility-button.is-notifications.is-active {
  color: #08785f;
  background: #e8f5f1;
  box-shadow: inset 0 0 0 1px #b9d9d0;
}

.dashboard-notification-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  color: #fff;
  background: #c43c3c;
  border: 2px solid #fff;
  border-radius: 10px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-notification-popover {
  position: absolute;
  top: calc(100% + 9px);
  right: -76px;
  z-index: 45;
  box-sizing: border-box;
  width: min(390px, calc(100vw - 28px));
  padding: 0;
  overflow: visible;
  color: #183039;
  background: #fff;
  border: 1px solid #cbded9;
  border-radius: 7px;
  box-shadow: 0 18px 42px rgba(7, 45, 39, 0.18);
}

.dashboard-notification-popover[hidden] {
  display: none;
}

.dashboard-notification-popover::before {
  position: absolute;
  z-index: 1;
  top: -6px;
  right: 88px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #cbded9;
  border-left: 1px solid #cbded9;
  transform: rotate(45deg);
  content: "";
}

.dashboard-notification-popover-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px 11px 6px 14px;
  border-bottom: 1px solid #dbe7e4;
  border-radius: 7px 7px 0 0;
}

.dashboard-notification-popover-head h2 {
  margin: 0;
  color: #243d43;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
}

.dashboard-notification-popover-head p {
  margin: 0;
  color: #71838b;
  font-size: 9px;
  line-height: 12px;
}

.dashboard-notification-read-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: 26px;
  padding: 0 7px;
  color: #4f706e;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.dashboard-notification-read-all::before {
  flex: 0 0 auto;
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f2b7";
}

.dashboard-notification-read-all:hover:not(:disabled) {
  color: #086f5a;
  background: #e3efec;
}

.dashboard-notification-read-all:disabled {
  color: #95a5a4;
  background: transparent;
  cursor: default;
  opacity: 1;
}

.dashboard-notification-preview-list {
  display: grid;
  max-height: 330px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.dashboard-notification-preview {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px;
  color: inherit;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e3ece9;
  text-align: left;
  cursor: pointer;
}

.dashboard-notification-preview:hover {
  background: #f6faf9;
}

.dashboard-notification-preview.is-unread {
  background: #eff8f5;
  box-shadow: inset 3px 0 #159272;
}

.dashboard-notification-preview-copy {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
}

.dashboard-notification-preview-copy strong,
.dashboard-notification-preview-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-notification-preview-copy strong {
  display: block;
  padding-right: 88px;
  color: #152930;
  font-size: 12px;
  line-height: 17px;
}

.dashboard-notification-preview-copy span {
  color: #526a72;
  font-size: 11px;
  line-height: 16px;
}

.dashboard-notification-preview-copy small {
  position: absolute;
  top: 1px;
  right: 0;
  margin: 0;
  color: #89999f;
  font-size: 9px;
  line-height: 15px;
  white-space: nowrap;
}

.dashboard-notification-preview-empty {
  margin: 0;
  padding: 36px 18px;
  color: #74868d;
  font-size: 12px;
  text-align: center;
}

.dashboard-notification-open-all {
  width: 100%;
  min-height: 32px;
  color: #39766b;
  background: #fff;
  border: 0;
  border-radius: 0 0 7px 7px;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}

.dashboard-notification-open-all:hover {
  color: #08785f;
  background: #f1f7f5;
}

.notification-item-icon,
.notification-setting-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #08785f;
  background: #e8f5f1;
  border-radius: 5px;
}

.notification-item-icon::before,
.notification-setting-icon::before {
  font-family: "FontAwesome";
  font-size: 20px;
  content: "\f0f3";
}

.notification-item-icon.is-payment::before,
.notification-setting-icon.is-payment::before {
  content: "\f0d6";
}

.notification-item-icon.is-unknown::before {
  content: "\f121";
}

.notification-item-icon.is-factory::before,
.notification-setting-icon.is-factory::before {
  content: "\f19c";
}

.notification-item-icon.is-aml::before,
.notification-setting-icon.is-aml::before {
  content: "\f132";
}

.notification-item-icon.is-settings::before,
.notification-setting-icon.is-settings::before {
  content: "\f013";
}

.notification-item-icon.is-invoice-activated::before {
  content: "\f2b5";
}

.notification-item-icon.is-payout-plan::before {
  content: "\f0e8";
}

.notification-item-icon.is-warning,
.notification-setting-icon.is-warning {
  color: #95680b;
  background: #fff6d9;
}

.notification-item-icon.is-warning::before,
.notification-setting-icon.is-warning::before {
  content: "\f071";
}

.notification-item-icon.is-critical,
.notification-setting-icon.is-critical {
  color: #a63434;
  background: #fcecec;
}

.notification-item-icon.is-critical::before,
.notification-setting-icon.is-critical::before {
  content: "\f06a";
}

.notification-item-icon,
.notification-item-icon.is-warning,
.notification-item-icon.is-critical {
  background: transparent;
  border-radius: 0;
}

.notification-center-screen.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.notification-center-workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: 54px minmax(0, 1fr);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdfda;
  border-radius: 7px;
}

.notification-center-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 0 22px;
  background: #f8fbfa;
  border-bottom: 1px solid #d8e5e1;
}

.notification-center-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  height: 42px;
  padding: 0 18px;
  color: #587078;
  background: transparent;
  border: 0;
  border-radius: 5px 5px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.notification-center-tab::before {
  font-family: "FontAwesome";
  font-size: 13px;
  content: "\f0a2";
}

.notification-center-tab[data-notification-tab="news"]::before {
  content: "\f1ea";
}

.notification-center-tab[data-notification-tab="journal"]::before {
  content: "\f02d";
}

.notification-center-tab:hover {
  color: #08785f;
  background: #eef7f4;
}

.notification-center-tab.is-active {
  color: #08785f;
  background: #fff;
  box-shadow: inset 0 1px #bdd8d0, inset 1px 0 #bdd8d0, inset -1px 0 #bdd8d0;
}

.notification-center-tab.is-active::after {
  position: absolute;
  right: 1px;
  bottom: -1px;
  left: 1px;
  height: 2px;
  background: #fff;
  content: "";
}

.notification-center-read-all {
  align-self: center;
  min-height: 30px;
  margin-left: auto;
  padding: 0 11px;
  color: #08785f;
  background: transparent;
  border: 1px solid #c9ded8;
  border-radius: 5px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.notification-center-read-all:disabled {
  color: #9baba8;
  cursor: default;
  opacity: 0.7;
}

.notification-center-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  padding: 14px 20px 10px;
  overflow: hidden;
}

.notification-center-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.notification-center-list[hidden] {
  display: none;
}

.notification-center-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  width: 100%;
  min-height: 66px;
  padding: 7px 12px;
  color: inherit;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e0ebe7;
  border-radius: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.notification-center-item:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #61bea2;
  outline-offset: -2px;
}

article.notification-center-item {
  cursor: default;
}

.notification-center-item:first-child {
  border-top: 1px solid #e0ebe7;
}

.notification-center-item:hover {
  background: #f8fbfa;
}

.notification-center-item.is-unread {
  background: #eff8f5;
  box-shadow: inset 3px 0 #159272;
}

.notification-center-item-copy {
  display: grid;
  min-width: 0;
}

.notification-center-item-copy > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.notification-center-item-copy strong {
  overflow: hidden;
  color: #162a31;
  font-size: 12px;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-center-item-copy time {
  flex: 0 0 auto;
  color: #86979d;
  font-size: 9px;
}

.notification-center-item-copy p {
  margin: 1px 0 0;
  overflow: hidden;
  color: #526970;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-center-item-copy small {
  margin-top: 1px;
  color: #84959b;
  font-size: 9px;
  line-height: 13px;
}

.notification-center-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100%;
  color: #71858d;
  text-align: center;
}

.notification-center-empty[hidden] {
  display: none;
}

.notification-center-empty > span::before {
  color: #8da49e;
  font-family: "FontAwesome";
  font-size: 28px;
  content: "\f0a2";
}

.notification-center-empty[data-notification-empty="news"] > span::before {
  content: "\f1ea";
}

.notification-center-empty[data-notification-empty="journal"] > span::before {
  content: "\f02d";
}

.notification-center-empty strong {
  margin-top: 12px;
  color: #263d44;
  font-size: 15px;
}

.notification-center-empty p {
  max-width: 420px;
  margin: 5px 0 0;
  font-size: 12px;
}

.notification-center-pagination {
  flex: 0 0 auto;
  min-height: 47px;
  margin: 4px 0 0;
}

.notification-settings-section {
  overflow: hidden;
}

.notification-settings-section > .cabinet-settings-panel-head {
  box-sizing: border-box;
  padding-top: 5px;
  padding-left: 15px;
}

.notification-settings-list {
  display: grid;
}

.notification-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 7px 14px;
  border-bottom: 1px solid #e0ebe7;
}

.notification-setting-copy {
  display: grid;
  min-width: 0;
}

.notification-setting-copy strong {
  color: #152930;
  font-size: 12px;
  line-height: 17px;
}

.notification-setting-copy small {
  color: #71838b;
  font-size: 10px;
  line-height: 15px;
}

.notification-setting-required {
  padding: 3px 7px;
  color: #985050;
  background: #fbeded;
  border-radius: 4px;
  font-size: 9px;
  white-space: nowrap;
}

.notification-setting-row .cabinet-settings-toggle:disabled {
  cursor: not-allowed;
}

@media (min-width: 1601px) {
  body[data-page="dashboard"] .dashboard-sidebar-notifications {
    display: flex;
  }
}

@media (max-width: 980px) {
  .dashboard-notification-popover {
    position: fixed;
    top: 66px;
    right: 12px;
  }

  .dashboard-notification-popover::before {
    display: none;
  }

  .notification-center-tabs {
    padding: 0 12px;
    overflow-x: auto;
  }

  .notification-center-tab {
    min-width: 106px;
    padding: 0 12px;
  }

  .notification-center-read-all {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .notification-center-screen.is-active {
    height: auto;
    min-height: calc(100vh - 92px);
  }

  .notification-center-workspace {
    min-height: calc(100vh - 100px);
  }

  .notification-center-content {
    padding: 10px;
  }

  .notification-center-tab {
    min-width: 42px;
    padding: 0 12px;
    font-size: 0;
  }

  .notification-center-tab::before {
    font-size: 14px;
  }

  .notification-center-read-all {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .notification-center-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .notification-center-item-copy > div {
    display: grid;
    gap: 0;
  }

  .notification-center-pagination {
    justify-content: center;
  }

  .notification-center-pagination .table-page-jump {
    display: none;
  }

  .notification-setting-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 9px;
    padding: 9px 10px;
  }

  .notification-setting-required {
    display: none;
  }
}

#cabinetSettingsInterfacePanel {
  padding: 0;
  background: #f7faf9;
}

.cabinet-settings-scroll {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 18px 22px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(7, 107, 82, 0.28) transparent;
  scrollbar-width: thin;
}

.cabinet-settings-section {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e4e0;
  border-radius: 6px;
}

.cabinet-settings-section + .cabinet-settings-section {
  margin-top: 14px;
}

.cabinet-settings-general {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.cabinet-settings-general-option .custom-select.is-open {
  z-index: 5;
}

.cabinet-settings-section-head {
  padding: 17px 20px 14px;
  border-bottom: 1px solid #e0ebe7;
}

.cabinet-settings-section-head h2 {
  margin: 0;
  color: #14232b;
  font-size: 16px;
  line-height: 1.3;
}

.cabinet-settings-section-head p {
  margin: 3px 0 0;
  color: #72858d;
  font-size: 11px;
}

.cabinet-settings-general-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cabinet-settings-general-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 68px;
  gap: 16px;
  padding: 0 20px;
}

.cabinet-settings-general-option + .cabinet-settings-general-option {
  border-left: 1px solid #e0ebe7;
}

.cabinet-settings-option-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cabinet-settings-option-copy strong {
  color: #20343b;
  font-size: 12px;
  font-weight: 600;
}

.cabinet-settings-option-copy small {
  color: #77898f;
  font-size: 10px;
  line-height: 1.35;
}

.cabinet-settings-general-option > .custom-select {
  flex: 0 0 190px;
  width: 190px;
}

.cabinet-settings-general-option .custom-select-trigger {
  min-height: 34px;
  padding: 7px 30px 7px 11px;
  font-size: 11px;
}

.cabinet-settings-general-option.is-sound-settings {
  align-items: stretch;
  min-height: 138px;
  padding: 14px 20px;
}

.cabinet-settings-sound-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.cabinet-settings-sound-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.cabinet-settings-sound-field .cabinet-settings-option-copy small {
  min-height: 27px;
}

.cabinet-settings-sound-field > .custom-select {
  width: 100%;
  margin-top: auto;
}

.custom-select.is-sound-select .custom-select-trigger,
.custom-select.is-sound-select .custom-select-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-select.is-sound-select .custom-select-trigger {
  padding-left: 5px;
}

.custom-select.is-sound-select .custom-select-option {
  padding-left: 5px;
}

.sound-select-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #08785f;
  border-radius: 4px;
  font-family: "FontAwesome";
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.sound-select-icon.is-preview::before {
  content: "\f04b";
}

.sound-select-icon.is-preview.is-playing::before {
  content: "\f04c";
}

.sound-select-icon.is-muted {
  color: #78908a;
}

.sound-select-icon.is-muted::before {
  content: "\f1f7";
}

.sound-select-icon.is-preview {
  cursor: pointer;
}

.sound-select-icon.is-preview.is-playing {
  color: #0b8a6b;
}

.sound-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-settings-factories .cabinet-settings-panel-head {
  min-height: 64px;
  padding: 0 20px;
}

.cabinet-settings-factories .cabinet-settings-panel-head h2 {
  font-size: 16px;
}

.cabinet-settings-factories .cabinet-settings-factory-columns {
  padding-right: 20px;
  padding-left: 20px;
  background: #f7faf9;
}

.cabinet-settings-factories .cabinet-settings-factory-list {
  overflow: visible;
}

.cabinet-settings-factories .cabinet-settings-factory-row {
  padding-right: 20px;
  padding-left: 20px;
}

.cabinet-settings-factories .cabinet-settings-panel-footer {
  margin: 0;
  padding: 12px 20px;
  background: #fbfdfc;
  border-top: 0;
}

@media (max-width: 980px) {
  .cabinet-settings-scroll {
    padding: 14px;
  }

  .cabinet-settings-general-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .cabinet-settings-general-option + .cabinet-settings-general-option {
    border-top: 1px solid #e0ebe7;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .cabinet-settings-sound-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On desktop, navigation and content are inset from the viewport edges. */
@media (min-width: 810px) {
  body[data-page="dashboard"],
  body[data-page="dashboard"] .dashboard-shell {
    background: #eef3f2;
  }

  body[data-page="dashboard"] .dashboard-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 14px;
    box-sizing: border-box;
    background: #eef3f2;
  }

  body[data-page="dashboard"] .dashboard-sidebar {
    top: 14px;
    width: 230px;
    min-height: 0;
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    border: 1px solid rgba(123, 172, 163, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(13, 44, 45, 0.14);
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-main {
    width: auto;
    min-height: 0;
    height: calc(100vh - 28px);
    height: calc(100dvh - 28px);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  body[data-page="dashboard"] .dashboard-content {
    min-height: 0;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: 100%;
    margin-top: auto;
    padding: 28px 12px 8px;
    color: #cfe9e5;
    text-align: center;
    isolation: isolate;
  }

  body[data-page="dashboard"] .dashboard-sidebar-network {
    position: absolute;
    z-index: -1;
    inset: -140px -15px 25px;
    overflow: hidden;
    background: url("../img/sidebar-network.png") center / auto 224px no-repeat;
    opacity: 0.1;
    filter: saturate(0.85) contrast(0.9);
    mix-blend-mode: screen;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%);
  }

  body[data-page="dashboard"] .dashboard-sidebar-emblem {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 5px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-emblem > span:not(.dashboard-sidebar-cube) {
    height: 1px;
    background: linear-gradient(90deg, transparent, #65b7aa);
  }

  body[data-page="dashboard"] .dashboard-sidebar-emblem > span:last-child {
    background: linear-gradient(90deg, #65b7aa, transparent);
  }

  body[data-page="dashboard"] .dashboard-sidebar-cube {
    display: inline-block;
    color: #a7e4d8;
    font-family: "FontAwesome";
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
  }

  body[data-page="dashboard"] .dashboard-sidebar-cube::before {
    content: "\f219";
    text-shadow: 0 0 6px rgba(90, 229, 202, 0.3);
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > strong {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 3px;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > p {
    margin: 3px 0 0;
    color: #75a6a2;
    font-size: 8px;
    line-height: 1.35;
    letter-spacing: 1.3px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > small {
    margin-top: 5px;
    color: #648c8a;
    font-size: 8px;
  }
}

@media (min-width: 810px) and (max-height: 700px) {
  body[data-page="dashboard"] .dashboard-brand {
    min-height: 84px;
  }

  body[data-page="dashboard"] .dashboard-brand img {
    width: 80px;
    height: 80px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer {
    padding: 12px 9px 5px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-network {
    inset: -90px -15px 18px;
    background-size: auto 164px;
    opacity: 0.08;
  }

  body[data-page="dashboard"] .dashboard-sidebar-emblem {
    margin-bottom: 2px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > strong {
    font-size: 8px;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > p {
    margin-top: 1px;
    font-size: 7px;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .dashboard-sidebar-footer > small {
    margin-top: 2px;
    font-size: 7px;
  }
}

/* Shared compact operation confirmation dialog. */
body[data-page="dashboard"] .factory-setting-confirm-modal.invoice-process-confirm-modal {
  width: min(500px, calc(100vw - 28px));
  padding: 17px 18px 16px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .modal-head {
  padding-right: 30px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .modal-head h2 {
  font-size: 17px;
  line-height: 1.25;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .modal-head p:not(.eyebrow) {
  margin-top: 4px;
  color: #718288;
  font-size: 11px;
  line-height: 1.4;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-checks {
  gap: 7px;
  margin: 10px 0 3px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row {
  display: grid;
  justify-content: stretch;
  gap: 1px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row strong {
  color: #718288;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row span {
  color: #182c33;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .operation-confirm-change {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row .operation-confirm-change-before,
body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row .operation-confirm-change-after {
  flex: 0 1 auto;
  min-width: 0;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row .operation-confirm-change-before {
  color: #65777d;
  opacity: 0.66;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row .operation-confirm-change-after {
  color: var(--green-strong);
  font-weight: 600;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .operation-confirm-change-arrow {
  flex: 0 0 auto;
  color: #89a19b;
  font-family: "FontAwesome";
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .operation-confirm-change-arrow::before {
  content: "\f101";
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row.is-ok span {
  color: var(--green-strong);
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row.is-error {
  background: transparent;
  border: 0;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-row.is-error span {
  color: #ad4432;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-note {
  display: grid;
  gap: 2px;
  margin: 8px 0 10px;
  padding: 6px 0 0;
  color: #50646a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.4;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-note strong {
  color: var(--green-strong);
  font-size: 9px;
  font-weight: 600;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .factory-setting-confirm-reason {
  gap: 4px;
  margin-top: 8px;
  font-size: 10px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .factory-setting-confirm-reason textarea {
  min-height: 76px;
  padding: 8px 10px;
  font-size: 11px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-actions button {
  width: auto;
  min-width: 104px;
  min-height: 32px;
  height: 32px;
  padding: 0 13px;
  font-size: 11px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-actions .secondary-button {
  color: #60747a;
  background: transparent;
  border-color: #cadbd6;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .invoice-process-confirm-actions .secondary-button:hover {
  background: #f1f6f4;
}

body[data-page="dashboard"] .factory-setting-confirm-modal.is-danger-action .invoice-process-confirm-actions .primary-button {
  background: #b84b3b;
  border-color: #b84b3b;
}

body[data-page="dashboard"] .factory-setting-confirm-modal.is-final .invoice-process-confirm-actions button {
  min-width: 96px;
}

body[data-page="dashboard"] .factory-setting-confirm-modal .modal-close {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
}

body[data-page="dashboard"] .webhook-secret-modal {
  width: min(456px, 100%);
  padding: 18px;
  overflow: visible;
}

body[data-page="dashboard"] .webhook-secret-modal .modal-close {
  top: 10px;
  right: 10px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

body[data-page="dashboard"] .webhook-secret-intro {
  margin: 0 42px 14px 0;
  color: #6b7d84;
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="dashboard"] .webhook-secret-field {
  display: grid;
  gap: 4px;
  color: #52676e;
  font-size: 10px;
}

body[data-page="dashboard"] .webhook-secret-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
}

body[data-page="dashboard"] .webhook-secret-control code {
  min-width: 0;
  height: 38px;
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid #bfd5cf;
  border-radius: 5px 0 0 5px;
  color: #264b45;
  background: #f8fbfa;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  line-height: 36px;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

body[data-page="dashboard"] .webhook-secret-copy {
  display: grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #bfd5cf;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  color: var(--green-strong);
  background: #f8fbfa;
}

body[data-page="dashboard"] .webhook-secret-copy:hover,
body[data-page="dashboard"] .webhook-secret-copy:focus-visible {
  background: #edf6f3;
}

body[data-page="dashboard"] .webhook-secret-copy::before {
  content: "\f0c5";
  font-family: "FontAwesome";
  font-size: 12px;
}

body[data-page="dashboard"] .webhook-secret-note,
body[data-page="dashboard"] .webhook-secret-rotation {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  color: #718087;
  font-size: 11px;
  line-height: 1.45;
}

body[data-page="dashboard"] .webhook-secret-note {
  margin-top: 12px;
}

body[data-page="dashboard"] .webhook-secret-note strong {
  display: block;
  margin-bottom: 1px;
  color: #344b52;
  font-size: 11px;
  font-weight: 600;
}

body[data-page="dashboard"] .webhook-secret-note p,
body[data-page="dashboard"] .webhook-secret-rotation p {
  margin: 0;
}

body[data-page="dashboard"] .webhook-secret-rotation {
  margin-top: 8px;
}

body[data-page="dashboard"] .webhook-secret-info-icon {
  width: 16px;
  color: #718087;
  font-family: "FontAwesome";
  font-size: 11px;
  line-height: 1;
  text-align: left;
}

body[data-page="dashboard"] .webhook-secret-info-icon.is-lock {
  padding-top: 2px;
}

body[data-page="dashboard"] .api-key-create-modal {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 24px;
  overflow: auto;
}

body[data-page="dashboard"] .api-key-secret-modal {
  width: min(590px, calc(100vw - 32px));
}

body[data-page="dashboard"] .api-key-secret-modal .webhook-secret-field + .webhook-secret-field {
  margin-top: 10px;
}

body[data-page="dashboard"] .api-key-secret-modal .webhook-secret-control code {
  box-sizing: border-box;
  height: auto;
  min-height: 38px;
  padding: 10px 11px;
  overflow: auto;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

body[data-page="dashboard"] .webhook-secret-info-icon.is-lock::before {
  content: "\f023";
}

body[data-page="dashboard"] .webhook-secret-info-icon.is-warning {
  align-self: center;
}

body[data-page="dashboard"] .webhook-secret-info-icon.is-warning::before {
  content: "\f071";
}

body[data-page="dashboard"] .api-key-create-modal {
  width: min(780px, calc(100vw - 32px));
  padding: 20px 24px;
}

body[data-page="dashboard"] .api-key-create-form {
  gap: 10px;
  margin-top: 12px;
}

body[data-page="dashboard"] .api-key-access-head h3,
body[data-page="dashboard"] .api-key-configured-access h4 {
  margin: 0;
  color: #163d3d;
  font-size: 13px;
  font-weight: 700;
}

body[data-page="dashboard"] .api-key-access-head p {
  margin: 3px 0 0;
  color: #688087;
  font-size: 11px;
  line-height: 1.4;
}

body[data-page="dashboard"] .api-key-full-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-top: 8px;
  padding: 6px 10px;
  background: #edf7f4;
  border: 1px solid #b9dacf;
  border-radius: 5px;
}

body[data-page="dashboard"] .api-key-full-access > div {
  display: grid;
  gap: 2px;
}

body[data-page="dashboard"] .api-key-full-access strong {
  color: #153b3c;
  font-size: 12px;
}

body[data-page="dashboard"] .api-key-full-access span {
  color: #607980;
  font-size: 10px;
  line-height: 1.35;
}

body[data-page="dashboard"] .api-key-full-access-toggle {
  flex: 0 0 34px;
  justify-self: auto;
}

body[data-page="dashboard"] .api-key-access-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.8fr);
  min-height: 194px;
  margin-top: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8ddd6;
  border-radius: 5px;
  transition: opacity 160ms ease, filter 160ms ease;
}

body[data-page="dashboard"] .api-key-access-workspace.is-disabled {
  opacity: 0.48;
  filter: grayscale(0.35);
}

body[data-page="dashboard"] .api-key-factory-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  max-height: 208px;
  padding: 7px;
  overflow-y: auto;
  background: #f2f7f5;
  border-right: 1px solid #d5e3df;
}

body[data-page="dashboard"] .api-key-factory-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 41px;
  padding: 4px 7px;
  color: #365159;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  transition: color 150ms ease, background-color 150ms ease;
}

body[data-page="dashboard"] .api-key-factory-item:hover,
body[data-page="dashboard"] .api-key-factory-item.is-active {
  color: #08785f;
  background: #dcefeb;
}

body[data-page="dashboard"] .api-key-factory-item:disabled {
  cursor: default;
}

body[data-page="dashboard"] .api-key-factory-item-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
}

body[data-page="dashboard"] .api-key-factory-item-icon img,
body[data-page="dashboard"] .api-key-factory-item-icon svg {
  max-width: 21px;
  max-height: 21px;
}

body[data-page="dashboard"] .api-key-factory-item-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body[data-page="dashboard"] .api-key-factory-item-copy strong,
body[data-page="dashboard"] .api-key-factory-item-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="dashboard"] .api-key-factory-item-copy strong {
  font-size: 11px;
  font-weight: 600;
}

body[data-page="dashboard"] .api-key-factory-item-copy small {
  color: #819298;
  font-size: 9px;
}

body[data-page="dashboard"] .api-key-factory-item-state {
  width: 7px;
  height: 7px;
  background: #c8d5d1;
  border-radius: 50%;
}

body[data-page="dashboard"] .api-key-factory-item.is-configured .api-key-factory-item-state {
  background: #20b98c;
  box-shadow: 0 0 0 2px rgba(32, 185, 140, 0.12);
}

body[data-page="dashboard"] .api-key-factory-list-empty {
  margin: 0;
  padding: 18px 8px;
  color: #7a8c92;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

body[data-page="dashboard"] .api-key-factory-picker {
  max-width: 100%;
}

body[data-page="dashboard"] .api-key-permission-editor {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="dashboard"] .api-key-permission-editor[hidden] {
  display: none;
}

body[data-page="dashboard"] .api-key-permission-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e1ebe8;
}

body[data-page="dashboard"] .api-key-permission-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body[data-page="dashboard"] .api-key-permission-identity strong {
  color: #16363d;
  font-size: 12px;
}

body[data-page="dashboard"] .api-key-permission-identity span {
  overflow: hidden;
  color: #72858c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="dashboard"] .api-key-root-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #08785f;
  font-size: 9px;
  font-weight: 700;
  background: #e5f5f0;
  border: 1px solid #b9dfd3;
  border-radius: 4px;
}

body[data-page="dashboard"] .api-key-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body[data-page="dashboard"] .api-key-permission-empty {
  display: none;
  margin: 26px 0 0;
  color: #788b91;
  font-size: 11px;
  text-align: center;
}

body[data-page="dashboard"] .api-key-permission-editor.is-empty .api-key-permission-empty {
  display: block;
}

body[data-page="dashboard"] .api-key-permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 9px;
  color: #344b52;
  font-size: 11px;
  background: #f7faf9;
  border: 1px solid #dce8e4;
  border-radius: 5px;
}

body[data-page="dashboard"] .api-key-permission-toggle {
  flex: 0 0 34px;
  justify-self: auto;
}

body[data-page="dashboard"] .api-key-add-access {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 158px;
  height: 34px;
  padding: 0 12px;
  color: #08785f;
  border-color: #9fd0c1;
}

body[data-page="dashboard"] .api-key-add-access > span:first-child::before {
  font-family: "FontAwesome";
  content: "\2b";
}

body[data-page="dashboard"] .api-key-configured-access {
  display: grid;
  gap: 7px;
  padding-top: 1px;
}

body[data-page="dashboard"] .api-key-configured-empty {
  margin: 0;
  padding: 12px;
  color: #7a8b91;
  font-size: 11px;
  text-align: center;
  border: 1px dashed #cbdcd7;
  border-radius: 5px;
}

body[data-page="dashboard"] .api-key-grant-list {
  display: grid;
  gap: 7px;
}

body[data-page="dashboard"] .api-key-grant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 9px 8px 11px;
  background: #fff;
  border: 1px solid #d5e4df;
  border-left: 3px solid #50aa90;
  border-radius: 5px;
}

body[data-page="dashboard"] .api-key-grant-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body[data-page="dashboard"] .api-key-grant-identity strong {
  color: #17383e;
  font-size: 12px;
}

body[data-page="dashboard"] .api-key-grant-identity span,
body[data-page="dashboard"] .api-key-grant-identity small {
  overflow: hidden;
  color: #778a91;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="dashboard"] .api-key-grant-identity small {
  color: #397f9f;
}

body[data-page="dashboard"] .api-key-grant-actions {
  display: flex;
  gap: 5px;
}

body[data-page="dashboard"] .api-key-grant-action {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #597078;
  background: #f3f8f6;
  border: 1px solid #d1e1dc;
  border-radius: 5px;
}

body[data-page="dashboard"] .api-key-grant-action::before {
  font-family: "FontAwesome";
  font-size: 11px;
}

body[data-page="dashboard"] .api-key-grant-action.is-edit::before {
  content: "\f044";
}

body[data-page="dashboard"] .api-key-grant-action.is-remove::before {
  content: "\f1f8";
}

body[data-page="dashboard"] .api-key-grant-action.is-remove:hover {
  color: #a33d35;
  border-color: #dab5b0;
}

body[data-page="dashboard"] .api-key-create-modal .api-key-offline-note {
  padding: 8px 11px;
}

body[data-page="dashboard"] .api-key-create-modal #apiKeyName,
body[data-page="dashboard"] .api-key-create-modal #apiKeyIpAllowlist {
  min-height: 32px;
  height: 32px;
  padding: 5px 9px;
  color: #071b28;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body[data-page="dashboard"] .api-key-create-modal #apiKeyName:focus,
body[data-page="dashboard"] .api-key-create-modal #apiKeyIpAllowlist:focus {
  border-color: #8fd0bc;
  box-shadow: 0 0 0 3px rgba(23, 135, 101, 0.1);
}

body[data-page="dashboard"] .api-key-create-modal .invoice-process-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

body[data-page="dashboard"] .api-key-create-modal .invoice-process-confirm-actions button {
  width: auto;
  min-width: 106px;
  min-height: 32px;
  height: 32px;
  padding: 0 13px;
  font-size: 11px;
}

body[data-page="dashboard"] .api-key-create-modal .invoice-process-confirm-actions .primary-button {
  min-width: 154px;
}

@media (max-width: 720px) {
  body[data-page="dashboard"] .api-key-access-workspace {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .api-key-factory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 128px;
    border-right: 0;
    border-bottom: 1px solid #d5e3df;
  }

  body[data-page="dashboard"] .api-key-permission-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="dashboard"] .api-key-add-access {
    justify-self: stretch;
    width: 100%;
  }
}

body[data-page="dashboard"] .webhook-secret-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

body[data-page="dashboard"] .webhook-secret-actions .primary-button {
  width: auto;
  min-width: 121px;
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  font-size: 11px;
}

body[data-page="dashboard"] .factory-settings-card .factory-edit-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
}

body[data-page="dashboard"] .factory-settings-card .factory-edit-meta {
  display: block;
  min-width: 0;
}

body[data-page="dashboard"] .factory-settings-card .factory-edit-meta > strong {
  display: none;
}

body[data-page="dashboard"] .factory-settings-card .factory-edit-label-row {
  min-height: 16px;
  margin: 0;
}

body[data-page="dashboard"] .factory-settings-card .factory-edit-field > input,
body[data-page="dashboard"] .factory-settings-card .factory-edit-field > .custom-select,
body[data-page="dashboard"] .factory-settings-card .factory-edit-field > .factory-settings-switch {
  width: 100%;
  min-width: 0;
}

body[data-page="dashboard"] .factory-settings-card .factory-profile-grid label > span {
  color: #5d6d76;
}

body[data-page="dashboard"] .factory-settings-card:has(.factory-edit-meta.is-help-active) {
  position: relative;
  z-index: 20;
  overflow: visible;
}

body[data-page="dashboard"] .factory-edit-field:has(.factory-edit-meta.is-help-active) {
  position: relative;
  z-index: 21;
}

@media (min-width: 981px) and (max-width: 1180px) {
  body[data-page="dashboard"] .factory-webhook-main {
    grid-template-columns: minmax(145px, 0.65fr) minmax(0, 1.5fr) 160px;
  }

  body[data-page="dashboard"] .factory-settings-layout {
    gap: 8px;
  }

  body[data-page="dashboard"] .factory-settings-card-head {
    min-height: 28px;
    padding: 0 11px;
    font-size: 10px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 8px 10px 9px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field {
    gap: 4px;
    padding: 0;
    border: 0;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
    grid-column: 1 / -1;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.6fr) minmax(0, 1.15fr);
  }

  body[data-page="dashboard"] .factory-profile-grid .factory-profile-wide {
    grid-column: 1 / -1;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid,
  body[data-page="dashboard"] .factory-profile-webhook {
    gap: 7px 10px;
    padding: 8px 10px;
  }

  body[data-page="dashboard"] .factory-webhook-events {
    gap: 3px 10px;
    padding-top: 4px;
  }

  body[data-page="dashboard"] .factory-webhook-events label,
  body[data-page="dashboard"] .factory-webhook-events .invoice-activation-switch {
    min-height: 28px;
  }
}

@media (min-width: 1181px) {
  body[data-page="dashboard"] .factory-settings-layout {
    gap: 8px;
  }

  body[data-page="dashboard"] .factory-settings-card-head {
    min-height: 27px;
    padding: 0 11px;
    font-size: 10px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields {
    grid-template-columns: minmax(160px, 0.72fr) minmax(160px, 0.72fr) minmax(300px, 1.56fr);
    gap: 8px 14px;
    padding: 9px 12px 10px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-fields::after {
    display: none;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 0;
    border: 0;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field[data-edit-field="amlEnabled"] {
    grid-column: 1;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
    grid-column: 2 / 4;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] > .factory-settings-switch {
    min-height: 32px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid {
    grid-template-columns: minmax(180px, 1.1fr) minmax(120px, 0.55fr) minmax(180px, 1fr);
    align-items: end;
    gap: 6px 10px;
    padding: 7px 12px 8px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid label {
    gap: 2px;
  }

  body[data-page="dashboard"] .factory-profile-grid .factory-profile-wide {
    grid-column: 1 / -1;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid input,
  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid textarea {
    min-height: 30px;
    height: 30px;
    padding: 5px 9px;
  }

  body[data-page="dashboard"] .factory-settings-card .factory-profile-grid textarea {
    height: 42px;
    min-height: 42px;
    max-height: 72px;
    resize: vertical;
  }

  body[data-page="dashboard"] .factory-profile-webhook {
    gap: 5px 18px;
    padding: 6px 12px 8px;
  }

  body[data-page="dashboard"] .factory-webhook-events {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 12px;
    padding-top: 2px;
  }

  body[data-page="dashboard"] .factory-webhook-events label,
  body[data-page="dashboard"] .factory-webhook-events .invoice-activation-switch {
    min-height: 24px;
  }

  body[data-page="dashboard"] .factory-webhook-events > span {
    font-size: 10px;
  }
}

@media (max-width: 980px) {
  body[data-page="dashboard"] .factory-webhook-main {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  body[data-page="dashboard"] .factory-webhook-enabled {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  body[data-page="dashboard"] .factory-webhook-url {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-page="dashboard"] .factory-webhook-test-button {
    grid-column: 2;
    grid-row: 2;
  }

  body[data-page="dashboard"] .factory-webhook-test-status {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* Overview pages adapt to both the available width and height. */
body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="overview"] {
  overflow: hidden;
}

body[data-page="dashboard"] .factory-overview-grid {
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

body[data-page="dashboard"] .factory-overview-grid:has(> .factory-overview-kpis) {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

body[data-page="dashboard"] .factory-overview-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body[data-page="dashboard"] .factory-overview-board {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body[data-page="dashboard"] .factory-overview-board::-webkit-scrollbar {
  display: none;
}

body[data-page="dashboard"] .factory-overview-page {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(var(--factory-overview-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--factory-overview-rows), minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body[data-page="dashboard"] .factory-overview-page .factory-overview-tile,
body[data-page="dashboard"] .factory-overview-page .factory-overview-tile.is-chart,
body[data-page="dashboard"] .factory-overview-page .factory-overview-tile.is-payments,
body[data-page="dashboard"] .factory-overview-page .factory-overview-tile.is-attention {
  width: auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

body[data-page="dashboard"] .factory-overview-carousel-nav {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

body[data-page="dashboard"] .factory-overview-carousel-nav[hidden] {
  display: none;
}

body[data-page="dashboard"] .factory-overview-carousel-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #47736a;
  background: #f4f9f7;
  border: 1px solid #c6ddd5;
  border-radius: 5px;
  font-family: "FontAwesome";
  font-size: 10px;
  cursor: pointer;
}

body[data-page="dashboard"] .factory-overview-carousel-arrow.is-prev::before {
  content: "\f053";
}

body[data-page="dashboard"] .factory-overview-carousel-arrow.is-next::before {
  content: "\f054";
}

body[data-page="dashboard"] .factory-overview-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

body[data-page="dashboard"] .factory-overview-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
}

body[data-page="dashboard"] .factory-overview-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #b9cec8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease, border-radius 160ms ease;
}

body[data-page="dashboard"] .factory-overview-carousel-dot.is-active {
  width: 18px;
  background: #168d70;
  border-radius: 4px;
}

body[data-page="dashboard"] .factory-overview-tile.is-attention.is-priority-arrival {
  animation: factory-overview-attention-arrival 1400ms ease-out;
}

@keyframes factory-overview-attention-arrival {
  0%, 100% {
    border-color: var(--line);
    box-shadow: 0 10px 24px rgba(7, 27, 40, 0.035);
  }
  28% {
    border-color: #dfb84f;
    box-shadow: 0 0 0 3px rgba(223, 184, 79, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="dashboard"] .factory-overview-board {
    scroll-behavior: auto;
  }

  body[data-page="dashboard"] .factory-overview-tile.is-attention.is-priority-arrival {
    animation: none;
  }
}

/* Responsive settings carousel: 3, 2, or 1 cards based on measured track width. */
body[data-page="dashboard"] #factoryEditModal.is-inline-editor .factory-edit-panel[data-factory-edit-panel="network"] {
  overflow: hidden;
}

body[data-page="dashboard"] .factory-settings-carousel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-layout {
  --factory-settings-visible: 3;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-layout::-webkit-scrollbar {
  display: none;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card {
  flex: 0 0 calc((100% - (var(--factory-settings-visible) - 1) * 10px) / var(--factory-settings-visible));
  width: auto;
  min-width: 0;
  min-height: 330px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card-head {
  min-height: 32px;
  padding: 0 12px;
  font-size: 10px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-edit-fields,
body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-profile-grid,
body[data-page="dashboard"] .factory-settings-carousel .factory-profile-webhook {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 11px 12px 12px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-edit-fields::after {
  display: none;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-edit-field,
body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-edit-field[data-edit-field="amlEnabled"],
body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 0;
  border: 0;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-profile-grid label,
body[data-page="dashboard"] .factory-settings-carousel .factory-profile-grid .factory-profile-wide {
  grid-column: auto;
  gap: 3px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card .factory-profile-grid textarea {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  resize: none;
}

.factory-profile-payment-divider {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 2px;
  color: #087d67;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.factory-profile-payment-divider::before {
  font-family: "FontAwesome";
  font-size: 12px;
  content: "\f15c";
}

.factory-profile-payment-divider::after {
  flex: 1;
  height: 1px;
  background: #d8e8e3;
  content: "";
}

.factory-payment-page-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 7px 8px;
  padding: 7px 8px 8px;
}

.factory-payment-page-panel > label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #071b28;
  font-size: 12px;
  font-weight: 600;
}

.factory-payment-page-panel > label > span {
  color: #5d6d76;
  font-weight: 400;
  line-height: 1.2;
}

.factory-profile-logo-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 7px 8px 8px;
  color: #071b28;
  background: #fff;
  border: 1px solid #e0ece8;
  border-radius: 6px;
  font-size: 12px;
}

.factory-profile-logo-field > span {
  color: #5d6d76;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.factory-profile-logo-requirements {
  width: 105px;
  max-width: 105px;
  color: #82949a;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.factory-profile-logo-control {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.factory-profile-logo-preview {
  display: grid;
  flex: 0 0 50px;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  color: #16866d;
  background: #eff8f5;
  border: 0;
  border-radius: 6px;
}

.factory-profile-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-profile-logo-preview > span::before {
  font-family: "FontAwesome";
  font-size: 19px;
  font-weight: 400;
  content: "\f19c";
}

.factory-profile-logo-status {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.factory-profile-logo-status strong {
  color: #28464d;
  font-size: 12px;
  font-weight: 600;
}

.factory-profile-logo-status span {
  color: #82949a;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
}

.factory-profile-logo-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.factory-profile-logo-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #087d67;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.factory-profile-logo-button:hover:not(:disabled) {
  border: 0;
}

.factory-profile-logo-button:disabled {
  color: #a9bab5;
  background: transparent;
  cursor: default;
}

.factory-profile-logo-button::before {
  font-family: "FontAwesome";
  font-size: 15px;
}

.factory-profile-logo-button:focus-visible {
  outline: 2px solid rgba(8, 125, 103, 0.35);
  outline-offset: 2px;
}

.factory-profile-logo-button.is-select {
  width: auto;
  padding: 0 6px;
  white-space: nowrap;
}

.factory-profile-logo-button.is-select::before {
  font-weight: 400;
  content: "\f115";
}

.factory-profile-logo-button.is-remove::before {
  font-weight: 400;
  content: "\f1f8";
}

.factory-logo-crop-modal {
  width: min(520px, calc(100vw - 28px));
  padding-top: 12px;
}

.factory-logo-crop-modal .modal-head {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-right: 44px;
  margin-bottom: 8px;
}

body[data-page="dashboard"] .factory-logo-crop-modal .modal-head h2 {
  font-weight: 400;
  transform: translateY(-4px);
}

.factory-logo-crop-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.factory-logo-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 430px;
  overflow: hidden;
  background: #10252c;
  border: 1px solid #cfe2dc;
  border-radius: 6px;
}

.factory-logo-crop-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.factory-logo-crop-stage cropper-canvas,
.factory-logo-crop-stage cropper-image,
.factory-logo-crop-stage cropper-shade,
.factory-logo-crop-stage cropper-selection {
  display: block;
}

.factory-logo-crop-stage cropper-canvas {
  width: 100%;
  height: 100%;
}

.factory-logo-zoom {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  color: #516970;
  font-size: 12px;
}

.factory-logo-zoom input { width: 100%; }

@media (max-width: 720px) {
  .factory-logo-crop-modal { width: calc(100vw - 20px); }
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-enabled,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-url,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-test-button,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-test-status {
  grid-column: 1;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-enabled {
  grid-row: 1;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-url {
  grid-row: 2;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-test-button {
  grid-row: 3;
  width: 100%;
  min-width: 0;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-test-status {
  grid-row: 4;
  justify-self: stretch;
  text-align: left;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  padding-top: 2px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events label,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events .invoice-activation-switch {
  min-height: 0;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events {
  row-gap: 11px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events label.invoice-activation-switch {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 16px;
  align-content: start;
  align-items: start;
  justify-items: start;
  gap: 2px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events label.invoice-activation-switch > strong {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  line-height: 1.25;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events label.invoice-activation-switch > span {
  grid-column: 1;
  grid-row: 2;
  width: 37px;
  min-width: 37px;
}

body[data-page="dashboard"] .factory-settings-carousel .factory-edit-label-row > span,
body[data-page="dashboard"] .factory-settings-carousel .factory-profile-grid label,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-url > span,
body[data-page="dashboard"] .factory-settings-carousel .factory-settings-switch strong,
body[data-page="dashboard"] .factory-settings-carousel .factory-webhook-events .invoice-activation-switch strong {
  font-weight: 400;
}

body[data-page="dashboard"] .factory-settings-carousel input:not([type="checkbox"]):not([type="radio"]),
body[data-page="dashboard"] .factory-settings-carousel textarea,
body[data-page="dashboard"] .factory-settings-carousel .custom-select-trigger {
  font-weight: 400;
}

body[data-page="dashboard"] .factory-settings-carousel-nav {
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

body[data-page="dashboard"] .factory-settings-carousel-nav[hidden] {
  display: none;
}

body[data-page="dashboard"] .factory-settings-carousel-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #47736a;
  background: #f4f9f7;
  border: 1px solid #c6ddd5;
  border-radius: 5px;
  font-family: "FontAwesome";
  font-size: 10px;
  cursor: pointer;
}

body[data-page="dashboard"] .factory-settings-carousel-arrow.is-prev::before {
  content: "\f053";
}

body[data-page="dashboard"] .factory-settings-carousel-arrow.is-next::before {
  content: "\f054";
}

body[data-page="dashboard"] .factory-settings-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

body[data-page="dashboard"] .factory-settings-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
}

body[data-page="dashboard"] .factory-settings-carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #b9cec8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease, border-radius 160ms ease;
}

body[data-page="dashboard"] .factory-settings-carousel-dot.is-active {
  width: 18px;
  background: #168d70;
  border-radius: 4px;
}

body[data-page="dashboard"] .operation-confirm-result {
  position: relative;
  display: grid;
  gap: 2px;
  margin: 2px 0 10px;
  padding: 9px 10px 9px 31px;
  color: #486068;
  background: #f1f6f4;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
}

body[data-page="dashboard"] .operation-confirm-result[hidden] {
  display: none;
}

body[data-page="dashboard"] .operation-confirm-result::before {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid #83989d;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
}

body[data-page="dashboard"] .operation-confirm-result::after {
  position: absolute;
  content: "";
}

body[data-page="dashboard"] .operation-confirm-result strong {
  color: #243940;
  font-size: 11px;
  font-weight: 600;
}

body[data-page="dashboard"] .operation-confirm-result.is-pending::before {
  animation: operation-confirm-spin 0.9s linear infinite;
}

body[data-page="dashboard"] .operation-confirm-result.is-success {
  color: #37685c;
  background: #edf8f4;
}

body[data-page="dashboard"] .operation-confirm-result.is-success::before {
  background: #159675;
  border-color: #159675;
}

body[data-page="dashboard"] .operation-confirm-result.is-success::after {
  top: 13px;
  left: 14px;
  width: 5px;
  height: 3px;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #fff;
  transform: rotate(-45deg);
}

body[data-page="dashboard"] .operation-confirm-result.is-error {
  color: #8e493d;
  background: #fff2ef;
}

body[data-page="dashboard"] .operation-confirm-result.is-error::before {
  background: #b84b3b;
  border-color: #b84b3b;
}

body[data-page="dashboard"] .operation-confirm-result.is-error::after {
  top: 11px;
  left: 15px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 11px;
  content: "!";
}

@keyframes operation-confirm-spin {
  to { transform: rotate(360deg); }
}

input:not([type="checkbox"]):not([type="radio"]):focus,
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
/* Factory request confirmation preview. */
#factorySettingConfirmModal .factory-setting-confirm-modal.is-factory-request {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 22px 25px 19px;
  border-radius: 8px;
}

#factorySettingConfirmModal .is-factory-request .modal-close {
  top: 18px;
  right: 18px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}

#factorySettingConfirmModal .is-factory-request .modal-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  min-height: 54px;
  padding-right: 38px;
}

#factorySettingConfirmModal .is-factory-request .modal-head::before {
  content: "\f19c";
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: transparent;
  color: #087e68;
  font-family: "FontAwesome";
  font-size: 26px;
  font-weight: 400;
}

#factorySettingConfirmModal .is-invoice-wallet-transfer .modal-head::before {
  content: "";
  background-color: #087e68;
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / 36px 36px no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / 36px 36px no-repeat;
}

#factorySettingConfirmModal .is-aml-confirm .modal-head::before {
  content: "\f132";
}

#factorySettingConfirmModal .is-admin-settings .modal-head::before {
  content: "\f013";
}

#factorySettingConfirmModal .is-admin-settings .invoice-process-confirm-row:first-child > span {
  color: #0b5f8f;
}

#factorySettingConfirmModal .is-profit-withdraw .modal-head::before {
  content: "\f0d6";
}

#factorySettingConfirmModal .is-resource-sponsorship .modal-head::before {
  content: "\f2b5";
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final {
  width: min(390px, calc(100vw - 28px));
  padding: 18px;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .modal-head,
#factorySettingConfirmModal .is-resource-sponsorship.is-final .invoice-process-confirm-checks,
#factorySettingConfirmModal .is-resource-sponsorship.is-final .invoice-process-confirm-note,
#factorySettingConfirmModal .is-resource-sponsorship.is-final .factory-setting-confirm-reason,
#factorySettingConfirmModal .is-resource-sponsorship.is-final .modal-close {
  display: none;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result {
  display: grid;
  justify-items: center;
  min-height: 0;
  margin: 0 0 15px;
  padding: 56px 14px 15px;
  text-align: center;
  background: transparent;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result::before {
  top: 9px;
  left: 50%;
  display: block;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: "FontAwesome";
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  transform: translateX(-50%);
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result.is-success::before {
  color: #159675;
  content: "\f046";
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result.is-error::before {
  color: #b84b3b;
  content: "\f06a";
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result::after,
#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result strong {
  display: none;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result span {
  max-width: 310px;
  font-size: 12px;
  line-height: 1.45;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result.is-success span {
  color: #37685c;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .operation-confirm-result.is-error span {
  color: #8e493d;
}

#factorySettingConfirmModal .is-resource-sponsorship.is-final .invoice-process-confirm-actions {
  display: flex;
  justify-content: center;
}

#factorySettingConfirmModal .is-profit-withdraw .invoice-process-confirm-row:nth-child(2) > span {
  color: #087e68;
  font-weight: 600;
}

#factorySettingConfirmModal .is-profit-withdraw .invoice-process-confirm-row:nth-child(3) > span {
  color: #0b5f8f;
  overflow-wrap: anywhere;
}

#factorySettingConfirmModal .is-factory-request .modal-head h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

#factorySettingConfirmModal .is-factory-request .modal-head p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-checks {
  display: grid;
  gap: 0;
  margin: 16px 0 13px;
  padding: 0 13px;
  border: 1px solid #dbe8e3;
  border-radius: 8px;
  background: #f8fbfa;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row {
  display: grid;
  grid-template-columns: minmax(125px, 32%) minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #e4ece9;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row:last-child {
  border-bottom: 0;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row strong {
  font-size: 12px;
  line-height: 1.35;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-line;
}

#factorySettingConfirmModal .is-admin-acceptance .invoice-process-confirm-row:nth-child(2) > span,
#factorySettingConfirmModal .is-admin-acceptance .invoice-process-confirm-row:nth-child(3) > span {
  color: #0b5f8f;
}

#factorySettingConfirmModal .is-admin-acceptance .invoice-process-confirm-row:nth-child(2) > span {
  overflow-wrap: anywhere;
}

#factorySettingConfirmModal .is-aml-confirm .invoice-process-confirm-row span {
  overflow-wrap: anywhere;
}

#factorySettingConfirmModal .operation-confirm-wallet-source,
#factorySettingConfirmModal .operation-resource-estimate {
  display: block;
  min-width: 0;
}

#factorySettingConfirmModal .invoice-process-confirm-row.is-sponsored-payment {
  align-items: start;
  padding-top: 8px;
  padding-bottom: 8px;
}

#factorySettingConfirmModal .invoice-process-confirm-row.is-sponsored-payment > strong {
  padding-top: 2px;
}

#factorySettingConfirmModal .operation-network-payment {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#factorySettingConfirmModal .operation-network-payment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

#factorySettingConfirmModal .operation-network-payment-icon {
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #08785f;
  background: #e2f4ed;
  border-radius: 50%;
}

#factorySettingConfirmModal .operation-network-payment-icon::before {
  font-family: "FontAwesome";
  font-size: 10px;
  content: "\f00c";
}

#factorySettingConfirmModal .operation-network-payment-head strong {
  color: #0c6552;
  font-size: 13px;
  font-weight: 600;
}

#factorySettingConfirmModal .operation-network-payment small,
#factorySettingConfirmModal .operation-network-payment-balance {
  color: #536f68;
  font-size: 11px;
  line-height: 1.35;
}

#factorySettingConfirmModal .operation-network-payment-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  font-variant-numeric: tabular-nums;
}

#factorySettingConfirmModal .operation-network-payment-energy {
  color: #3247dd;
}

#factorySettingConfirmModal .operation-network-payment-bandwidth {
  color: #278f3d;
}

#factorySettingConfirmModal .operation-network-payment-separator {
  color: #8a9a95;
}

#factorySettingConfirmModal .operation-network-payment > .operation-confirm-cost-lines {
  margin-bottom: 2px;
}

#factorySettingConfirmModal .operation-confirm-wallet-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 9px;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row .operation-confirm-wallet-source-address {
  max-width: 100%;
  overflow: hidden;
  color: #648079;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#factorySettingConfirmModal .operation-resource-estimate-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
}

#factorySettingConfirmModal .operation-resource-estimate-burn {
  display: block;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row .operation-resource-estimate-energy {
  color: #3247dd;
  font-weight: 500;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row .operation-resource-estimate-bandwidth {
  color: #278f3d;
  font-weight: 500;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row .operation-resource-estimate-burn-amount {
  color: #bf463e;
  font-weight: 500;
}

#factorySettingConfirmModal .operation-confirm-coin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#factorySettingConfirmModal .operation-confirm-coin .invoice-wallet-token-logo {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  font-size: 10px;
}

#factorySettingConfirmModal .operation-confirm-coin img.invoice-wallet-token-logo {
  background: transparent;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 12px;
  gap: 2px 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d7ebe4;
  border-radius: 8px;
  background: #f2faf7;
  font-size: 12px;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-note::before {
  content: "\f05a";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: #087e68;
  font-family: "FontAwesome";
  font-size: 23px;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-note {
  border-color: #f0d49e;
  background: #fff9ed;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-note::before {
  content: "\f023";
  color: #b67618;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-note strong {
  color: #8b5a15;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-note span {
  color: #795f37;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-row.is-inactive > span {
  color: #9b691e;
}

#factorySettingConfirmModal .is-wallet-activation-required .invoice-process-confirm-actions .primary-button:disabled {
  color: #71847f;
  background: #dce6e3;
  border-color: #dce6e3;
  box-shadow: none;
  cursor: not-allowed;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-note strong,
#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-note span {
  grid-column: 2;
  font-size: 12px;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-actions {
  gap: 10px;
}

#factorySettingConfirmModal .is-factory-request .invoice-process-confirm-actions button {
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

#factorySettingConfirmModal .operation-resource-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -3px 0 11px;
  padding: 8px 11px;
  border: 1px solid #f1d6a8;
  border-radius: 6px;
  background: #fff9ee;
  color: #8d5a16;
  font-size: 12px;
  line-height: 1.4;
}

#factorySettingConfirmModal .operation-resource-warning::before {
  content: "\f071";
  flex: 0 0 auto;
  font-family: "FontAwesome";
  font-size: 15px;
}

#factorySettingConfirmModal .operation-resource-warning[hidden] {
  display: none;
}

#factorySettingConfirmModal .is-invoice-activation .modal-head::before {
  content: "\f0ea";
}

#factorySettingConfirmModal .is-invoice-activation #factorySettingConfirmTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

#factorySettingConfirmModal .is-invoice-activation .invoice-confirm-title-address {
  max-width: 100%;
  overflow: hidden;
  color: #648079;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-payout {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-payout-list,
#factorySettingConfirmModal .is-invoice-activation .operation-confirm-cost-lines {
  display: grid;
  min-width: 0;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-payout-list .operation-confirm-payout {
  min-height: 30px;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-payout-list .operation-confirm-payout + .operation-confirm-payout {
  border-top: 1px solid #e4ece9;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-cost-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: normal;
}

#factorySettingConfirmModal .is-invoice-activation .operation-confirm-cost-line::before {
  content: "\f145";
  flex: 0 0 auto;
  color: var(--green);
  font-family: "FontAwesome";
  font-size: 10px;
}

#factorySettingConfirmModal .is-invoice-activation .invoice-process-confirm-row .operation-confirm-payout-address {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#factorySettingConfirmModal .is-invoice-activation .invoice-process-confirm-row .operation-confirm-payout-amount {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--green-strong);
  font-weight: 500;
  white-space: nowrap;
}

#factorySettingConfirmModal .is-activation-blocked .operation-resource-warning {
  color: #a33d36;
  background: #fff4f1;
  border-color: #eac5be;
}

#factorySettingConfirmModal .is-invoice-activation .invoice-process-confirm-note[hidden] {
  display: none;
}

#factorySettingConfirmModal .is-activation-blocked .invoice-process-confirm-actions .primary-button:disabled {
  color: #6f8580;
  background: #dce8e4;
  border-color: #dce8e4;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  #factorySettingConfirmModal .factory-setting-confirm-modal.is-factory-request {
    padding: 20px 16px;
  }

  #factorySettingConfirmModal .is-factory-request .modal-head {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 12px;
  }

  #factorySettingConfirmModal .is-factory-request .modal-head::before {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  #factorySettingConfirmModal .is-factory-request .modal-head h2 {
    font-size: 16px;
  }

  #factorySettingConfirmModal .is-factory-request .invoice-process-confirm-checks {
    padding: 0 12px;
  }

  #factorySettingConfirmModal .is-factory-request .invoice-process-confirm-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

#invoiceDetailsDialog {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 15px;
}

#invoiceDetailsDialog > .modal-head {
  grid-column: 1 / -1;
  grid-row: 1;
}

#invoiceDetailsDialog #invoiceDetailsClose {
  position: relative;
  top: auto;
  right: auto;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
}

#invoiceDetailsDialog > .factory-edit-tabs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 14px 0 0;
  padding: 3px 8px 0 0;
  border: 0;
  border-right: 1px solid #dce8e4;
}

#invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab {
  bottom: 0;
  display: inline-flex;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  color: #61747a;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  transform: none;
}

#invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab[hidden] {
  display: none;
}

#invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab:hover {
  color: #087e68;
  background: #f2f8f6;
}

#invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab.is-active {
  color: #087e68;
  background: #eaf7f2;
  font-weight: 500;
}

#invoiceDetailsDialog > .factory-edit-tabs .invoice-warning-tab:hover,
#invoiceDetailsDialog > .factory-edit-tabs .invoice-warning-tab.is-active {
  color: #8a4f05;
  background: #fff6e8;
}

#invoiceDetailsDialog [data-invoice-details-tab="activation"]::before,
#invoiceDetailsDialog [data-invoice-details-tab="timeline"]::before,
#invoiceDetailsDialog [data-invoice-details-tab="aml"]::before,
#invoiceDetailsDialog [data-invoice-details-tab="info"]::before {
  font-family: "FontAwesome";
  font-size: 14px;
  font-weight: 400;
}

#invoiceDetailsDialog [data-invoice-details-tab="activation"]::before {
  content: "\f121";
}

#invoiceDetailsDialog [data-invoice-details-tab="operations"]::before {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
  content: "";
  -webkit-mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
  mask: url("../img/icons/wallet-tab.svg") center / contain no-repeat;
}

#invoiceDetailsDialog [data-invoice-details-tab="timeline"]::before {
  content: "\f160";
}

#invoiceDetailsDialog [data-invoice-details-tab="aml"]::before {
  content: "\f132";
}

#invoiceDetailsDialog [data-invoice-details-tab="info"]::before {
  content: "\f05a";
}

#invoiceDetailsDialog > .factory-edit-panel.is-active {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: 100%;
  margin-top: 14px;
  overflow-y: auto;
  animation: invoice-panel-slide-in 220ms ease-out both;
}

@keyframes invoice-panel-slide-in {
  from { opacity: 0.6; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 800px) {
  #invoiceDetailsDialog {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 10px;
  }

  #invoiceDetailsDialog > .factory-edit-tabs {
    padding: 3px 6px 0 0;
  }

  #invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab {
    justify-content: center;
    align-items: center;
    width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    line-height: 1;
  }

  #invoiceDetailsDialog > .factory-edit-tabs .factory-edit-tab::before {
    font-size: 20px;
    line-height: 1;
  }

  #invoiceDetailsDialog > .factory-edit-tabs [data-invoice-details-tab="operations"]::before {
    flex-basis: 20px;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 500px) {
  #invoiceDetailsDialog .invoice-operation-group,
  #invoiceDetailsDialog .invoice-wallet-state,
  #invoiceDetailsDialog .invoice-wallet-actions,
  #invoiceDetailsDialog .invoice-wallet-screen,
  #invoiceDetailsDialog .invoice-wallet-assets {
    min-width: 0;
    width: 100%;
  }

  #invoiceDetailsDialog .invoice-wallet-state {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
  }

  #invoiceDetailsDialog .invoice-wallet-state-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  #invoiceDetailsDialog .invoice-wallet-actions {
    gap: 4px;
    flex-wrap: wrap;
  }

  #invoiceDetailsDialog .invoice-wallet-action {
    min-width: 48px;
  }

  #invoiceDetailsDialog .invoice-wallet-asset {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 4px;
    padding-inline: 4px;
  }

  #invoiceDetailsDialog .invoice-wallet-asset-main {
    min-width: 0;
  }

  #invoiceDetailsDialog .invoice-wallet-asset-standard {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #invoiceDetailsDialog > .factory-edit-panel.is-active {
    animation: none;
  }
}

#invoiceDetailsDialog:has(> .factory-edit-tabs [data-invoice-details-tab="activation"]:not([hidden])) {
  grid-template-columns: 215px minmax(0, 1fr);
}

#invoiceDetailsDialog > .factory-edit-tabs #invoiceActivationScenarios {
  position: relative;
  display: none;
  gap: 3px;
  margin: 4px 0 0 13px;
  padding: 0 6px 0 8px;
  border-left: 1px solid #dce8e4;
}

#invoiceDetailsDialog > .factory-edit-tabs #invoiceActivationScenarios::after {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3px;
  height: var(--invoice-activation-marker-height, 36px);
  background: #20a77d;
  border-radius: 0 2px 2px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--invoice-activation-marker-offset, 0px));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), height 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
  content: "";
}

#invoiceDetailsDialog > .factory-edit-tabs #invoiceActivationScenarios.has-selection::after {
  opacity: 1;
}

#invoiceDetailsDialog:has(> .factory-edit-tabs [data-invoice-details-tab="activation"]:not([hidden])) #invoiceActivationScenarios {
  display: grid;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 5px 7px;
  color: #61747a;
  background: transparent;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario:hover:not(:disabled) {
  color: #087e68;
  background: #f2f8f6;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario.is-selected {
  color: #087e68;
  background: transparent;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario-icon::before {
  color: currentColor;
  font-size: 17px;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario strong {
  overflow: visible;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario.is-selected strong {
  font-weight: 500;
}

#invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario small {
  display: none;
}

#invoiceDetailsDialog .invoice-details-head {
  grid-template-columns: minmax(0, 1fr) max-content 34px 34px;
}

#invoiceDetailsDialog .invoice-details-head .invoice-activation-control {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  margin-right: 12px;
}

#invoiceDetailsDialog .invoice-details-head .invoice-activation-control[hidden] {
  display: none;
}

#invoiceDetailsDialog #invoiceDetailsCopyAddress {
  grid-column: 3;
}

#invoiceDetailsDialog #invoiceDetailsCopyAddress:hover {
  color: var(--green-strong);
  background: #eff8f5;
}

#invoiceDetailsDialog #invoiceDetailsCopyAddress.is-copied::before {
  content: "\f00c";
}

#invoiceDetailsDialog #invoiceDetailsClose {
  grid-column: 4;
}

#invoiceDetailsDialog .invoice-details-head .invoice-activation-switch-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  color: #0d684e;
  background: #eff8f5;
  border: 1px solid #bfe1d5;
  border-radius: 8px;
  cursor: pointer;
}

#invoiceDetailsDialog .invoice-activation-switch-label strong {
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

#invoiceDetailsDialog .invoice-activation-switch-label:has(input:disabled):not(.is-pending) {
  color: #94a3a0;
  background: #f3f7f5;
  border-color: #dce8e4;
  cursor: not-allowed;
}

#invoiceDetailsDialog .invoice-activation-switch-label.is-pending {
  cursor: progress;
}

#invoiceDetailsDialog .invoice-activation-switch-label:has(input:focus-visible) {
  outline: 2px solid #59b99b;
  outline-offset: 2px;
}

#invoiceDetailsDialog .invoice-activation-toggle-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#invoiceDetailsDialog .invoice-activation-toggle-spinner {
  display: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-top-color: currentColor;
}

#invoiceDetailsDialog .invoice-activation-switch-label.is-pending .invoice-activation-toggle-icon {
  display: none;
}

#invoiceDetailsDialog .invoice-activation-switch-label.is-pending .invoice-activation-toggle-spinner {
  display: inline-block;
}

#invoiceDetailsDialog .invoice-activation-toggle-icon path {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  opacity: 0;
  transition: stroke-dashoffset 320ms ease, opacity 100ms ease;
}

#invoiceDetailsDialog .invoice-activation-switch-label:has(input:checked) .invoice-activation-toggle-icon path {
  stroke-dashoffset: 0;
  opacity: 1;
}

#invoiceDetailsDialog #invoicePreDeployOperations,
#invoiceDetailsDialog .invoice-activation-result {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#invoiceDetailsDialog .invoice-activation-layout {
  grid-template-columns: minmax(0, 1fr);
}

#invoiceDetailsDialog .invoice-activation-result {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

#invoiceDetailsDialog .invoice-activation-description {
  margin: 0;
  color: #61747a;
  font-size: 12px;
  line-height: 1.35;
}

#invoiceDetailsDialog .invoice-activation-breadcrumb {
  display: none;
}

@media (max-width: 800px) {
  #invoiceDetailsDialog:has(> .factory-edit-tabs [data-invoice-details-tab="activation"]:not([hidden])) {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  #invoiceDetailsDialog > .factory-edit-tabs #invoiceActivationScenarios {
    gap: 2px;
    margin: 3px 0 0 7px;
    padding: 0 0 0 5px;
  }

  #invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario {
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  #invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario strong {
    display: none;
  }

  #invoiceDetailsDialog #invoiceActivationScenarios .invoice-activation-scenario-icon::before {
    font-size: 18px;
  }

  #invoiceDetailsDialog .invoice-activation-result {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  #invoiceDetailsDialog .invoice-activation-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    color: #61747a;
    font-size: 12px;
    line-height: 1.3;
  }

  #invoiceDetailsDialog .invoice-activation-breadcrumb strong {
    color: #087e68;
    font-weight: 500;
  }
}

@media (max-width: 560px) {
  #invoiceDetailsDialog .invoice-details-head {
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }

  #invoiceDetailsDialog .invoice-details-head .invoice-activation-control {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin: 6px 0 0;
  }

  #invoiceDetailsDialog .invoice-details-head .invoice-activation-control[hidden] {
    display: none;
  }

  #invoiceDetailsDialog #invoiceDetailsCopyAddress {
    grid-column: 2;
    grid-row: 1;
  }

  #invoiceDetailsDialog #invoiceDetailsClose {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #invoiceDetailsDialog .invoice-activation-toggle-icon path {
    transition: none;
  }

  #invoiceDetailsDialog > .factory-edit-tabs #invoiceActivationScenarios::after {
    transition: none;
  }
}

/* На низком планшетном экране одна широкая карточка исключает скрытые вертикальные поля. */
@media (max-height: 799px) and (min-width: 721px) {
  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card {
    flex-basis: 100%;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    padding: 8px 12px 10px;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="approvedMaxFee"] {
    grid-column: 1;
    order: 1;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="minimumInvoiceBalance"] {
    grid-column: 2;
    order: 1;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="payoutAddress"] {
    grid-column: 1 / -1;
    order: 2;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="amlEnabled"] {
    grid-column: 1 / -1;
    order: 3;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="autoConvertUsdtToTmrEnabled"] {
    grid-column: 1;
    order: 4;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:first-child .factory-edit-field[data-edit-field="autoConvertUsdtRetainAmount"] {
    grid-column: 2;
    order: 4;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:nth-child(2) .factory-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 9px 12px 10px;
  }

  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:nth-child(2) .factory-profile-wide,
  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:nth-child(2) .factory-profile-payment-divider,
  body[data-page="dashboard"] .factory-settings-carousel .factory-settings-card:nth-child(2) .factory-payment-page-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1069px) {
  body[data-page="dashboard"] .factory-statement-export-toggle {
    width: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 0;
  }

  body[data-page="dashboard"] .factory-statement-export-toggle::before {
    margin-right: 0;
    font-size: 11px;
  }
}
/* Compact phones use the full dashboard geometry after rotating to landscape. */
.compact-orientation-gate {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  overflow: hidden;
  color: #102b2d;
  text-align: center;
  background: #f2f8f7;
}

.compact-orientation-gate[hidden] {
  display: none;
}

html.is-compact-portrait,
html.is-compact-portrait body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-compact-portrait .compact-orientation-gate:not([hidden]) {
  display: flex;
}

.compact-orientation-gate strong {
  max-width: 340px;
  font-size: 24px;
  line-height: 1.2;
}

.compact-orientation-gate p {
  max-width: 360px;
  margin: -6px 0 0;
  color: #557071;
  font-size: 15px;
  line-height: 1.5;
}

.compact-orientation-device {
  position: relative;
  width: 58px;
  height: 96px;
  border: 3px solid #0d7770;
  border-radius: 10px;
  animation: compact-orientation-turn 1.8s ease-in-out infinite;
  transform-origin: center;
}

.compact-orientation-device::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: #0d7770;
  content: "";
  transform: translateX(-50%);
}

.compact-orientation-device span {
  position: absolute;
  inset: 14px 6px 8px;
  border-radius: 4px;
  background: #dff2ef;
  box-shadow: inset 0 0 0 1px rgba(13, 119, 112, 0.18);
}

@keyframes compact-orientation-turn {
  0%, 22% {
    transform: rotate(0deg);
  }
  55%, 85% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compact-orientation-device {
    animation: none;
    transform: rotate(90deg);
  }
}
