:root {
  color-scheme: dark;
  --bg: #0d1727;
  --side: #101a2c;
  --panel: #202b3d;
  --panel-2: #172235;
  --panel-3: #263449;
  --line: #34435a;
  --ink: #d8e2ef;
  --muted: #8ea0b8;
  --accent: #22c7a6;
  --accent-dark: #15937d;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.secretField {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.secretField input[readonly] {
  color: #9fb0c5;
}

.integrationGroupTitle {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

button.iconButton {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f1b2b;
  color: #c9d6e8;
  font-size: 24px;
  line-height: 1;
}

button.iconButton:hover {
  border-color: var(--accent);
  color: #fff;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--panel-3);
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--accent);
}

button:disabled {
  cursor: default;
  opacity: 0.55;
}

button.primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
}

button.ghost {
  background: transparent;
}

.loginOverlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.loginOverlay.hidden {
  display: none;
}

.loginCard {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.loginCard strong {
  color: #fff;
  font-size: 28px;
}

.loginCard > span {
  margin-top: -12px;
  color: var(--muted);
}

.loginCard label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.loginCard input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #101b2b;
  color: var(--ink);
  outline: none;
}

.loginCard input:focus {
  border-color: var(--accent);
}

#loginError {
  min-height: 18px;
  color: var(--danger);
  font-size: 14px;
}

.adminShell.locked {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.adminShell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sideBar {
  background: var(--side);
  border-right: 1px solid #1f2d42;
  padding: 22px 18px;
}

.brandMark {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
  text-decoration: none;
  cursor: pointer;
}

.brandMark strong {
  color: #fff;
  font-size: 22px;
}

.brandMark span {
  color: var(--muted);
  font-size: 13px;
}

.sideNav {
  display: grid;
  gap: 6px;
}

.sideNav button {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.sideNav button.active {
  background: #13283b;
  color: var(--accent);
  font-weight: 700;
}

.workArea {
  min-width: 0;
  background: var(--bg);
}

.topBar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
  padding: 0 28px;
  background: #152137;
  border-bottom: 1px solid #223147;
}

.searchBox,
.branchSearch {
  position: relative;
  display: block;
  width: min(560px, 100%);
}

.searchBox span,
.branchSearch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.searchBox input,
.branchSearch input {
  width: 100%;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0 18px;
  background: #202d42;
  color: var(--ink);
  outline: none;
}

.searchBox input:focus,
.branchSearch input:focus,
.field input:focus,
.field select:focus,
.paperGrid input:focus,
.paperGrid select:focus,
.integrationGrid input:focus,
.integrationGrid select:focus,
.notificationClientGrid input:focus,
.notificationServiceGrid input:focus {
  border-color: var(--accent);
}

#statusText {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.topButton {
  margin-left: auto;
}

.page {
  display: none;
  padding: 28px;
}

.page.active {
  display: block;
}

.appFooter {
  padding: 0 28px 26px;
  color: #8ca1c0;
  font-size: 14px;
}

.pageHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pageHeading p {
  display: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  color: #edf5ff;
}

h2 {
  font-size: 18px;
  color: #fff;
}

p,
.hint {
  color: var(--muted);
}

.branchSearch {
  margin-bottom: 20px;
}

.productsToolbar {
  display: grid;
  grid-template-columns: 240px minmax(320px, 560px);
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.productRulesPanel {
  margin-bottom: 16px;
}

.mandatoryPicker {
  position: relative;
  max-width: 840px;
  margin: 12px 0 18px;
}

.mandatoryPicker label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.mandatoryPicker input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #0f1929;
  color: var(--ink);
  outline: none;
}

.mandatoryPicker input:focus {
  border-color: var(--accent);
}

.mandatorySuggestions {
  position: absolute;
  z-index: 20;
  top: 72px;
  left: 0;
  right: 0;
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f1929;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.mandatorySuggestions button {
  display: block;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  background: transparent;
  text-align: left;
  color: var(--ink);
}

.mandatorySuggestions button:hover {
  background: #24344b;
  border-color: transparent;
}

.selectedProducts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 28px;
  margin-top: 10px;
}

.selectedProductChip {
  min-height: 28px;
  border-color: #3d536f;
  border-radius: 4px;
  padding: 0 9px;
  background: #172235;
  color: #d8e2ef;
  font-size: 13px;
}

.selectedProductEmpty {
  color: var(--muted);
  font-size: 13px;
}

.productRulesPanel textarea {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  resize: vertical;
  background: #0f1929;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.tableCard {
  overflow: auto;
  background: var(--panel);
  border: 1px solid #26364e;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #7f91aa;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #24344b;
}

.rowCheck {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111d30;
}

tr.selected .rowCheck {
  background: var(--accent);
  border-color: var(--accent);
}

.selectCol {
  width: 42px;
  text-align: center;
}

.selectCol input[type="checkbox"] {
  display: inline-block;
  vertical-align: middle;
}

.codeCell {
  color: var(--accent);
  font-weight: 700;
}

.mono {
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.branchBox {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: minmax(360px, 470px) minmax(520px, 1fr);
  gap: 24px;
  align-items: start;
}

.settingsOnly {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.previewPane,
.settingsPanel,
.panelBlock,
.assetBox,
.settingsNote {
  border: 1px solid #26364e;
  border-radius: 4px;
  background: var(--panel-2);
}

.previewPane {
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 22px;
}

.settingsPanel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.panelBlock {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.field,
.paperGrid label,
.integrationGrid label {
  display: grid;
  gap: 8px;
  color: #eef5ff;
  font-weight: 700;
}

.field.compact {
  margin-bottom: 0;
}

.field input,
.field select,
.paperGrid input,
.paperGrid select,
.integrationGrid input,
.integrationGrid select,
.notificationClientGrid input,
.notificationServiceGrid input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #0f1929;
  color: var(--ink);
  outline: none;
}

.paperGrid,
.integrationGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.countryApiList {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.countryApiRow {
  display: grid;
  grid-template-columns: 70px repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.countryApiCode {
  color: var(--accent);
  font-weight: 800;
}

.monitorModeButton {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(340px, 100%);
  min-height: 44px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #101b2b;
  color: var(--ink);
  text-align: left;
}

.monitorModeButton:hover,
.monitorModeButton:focus-visible {
  border-color: var(--accent);
}

.monitorModeButton > span:first-child {
  color: var(--muted);
}

.monitorModeButton strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitorModeChevron {
  color: var(--muted);
  font-size: 18px;
}

.monitorModeOverlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(3, 10, 20, 0.58);
}

.monitorModeOverlay.hidden {
  display: none;
}

.monitorModeDrawer {
  width: min(390px, 100vw);
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding: 24px;
  background: var(--panel-2);
  box-shadow: -18px 0 38px rgba(0, 0, 0, 0.36);
}

.monitorModeHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.monitorModeList {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.monitorModeOption {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  color: var(--ink);
  cursor: pointer;
}

.monitorModeOption:hover {
  background: #213149;
}

.monitorModeOption input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.monitorModeOption:has(input:checked) {
  background: #12313a;
  color: #effffc;
  font-weight: 700;
}

.monitorModeCloseAction {
  margin-top: 22px;
}

.monitorPanel.hidden {
  display: none;
}

.monitorToolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.monitorLiveText {
  color: var(--muted);
  font-size: 13px;
}

.statusPill {
  display: inline-flex;
  align-items: center;
  min-width: 104px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-current {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.status-online {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
}

.status-delayed {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.status-pending {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.status-offline {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

.status-never {
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
}

.sync-pending {
  background: rgba(245, 158, 11, 0.05);
}

.sync-offline,
.sync-never {
  background: rgba(239, 68, 68, 0.04);
}

.buttonRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pageActions {
  justify-content: flex-end;
}

.usersTableCard {
  max-width: 1240px;
}

.pluginsTableCard {
  max-width: 1480px;
}

.pluginModalBox {
  width: min(560px, 100%);
}

.pluginFormGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
}

.pluginModalBox input[type="file"] {
  height: auto;
  min-height: 44px;
  padding: 8px 10px;
}

.pluginModalBox input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 1px solid #3a4d69;
  border-radius: 4px;
  padding: 0 12px;
  background: #22324a;
  color: #e7eef9;
  cursor: pointer;
}

.productsTableCard {
  max-width: 100%;
}

.productsTable {
  min-width: 1560px;
}

.productsTable th:first-child,
.productsTable td:first-child {
  width: 86px;
  text-align: center;
}

.descriptionCell {
  max-width: 360px;
  white-space: normal;
  line-height: 1.35;
  color: #c9d7ea;
}

.smallCell {
  max-width: 220px;
  white-space: normal;
  color: var(--muted);
}

.idCell {
  min-width: 300px;
  white-space: nowrap;
  color: #b9c9df;
}

.actionsCol,
.actionCell {
  width: 160px;
  text-align: right;
}

.tableActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.iconAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: transparent;
  color: #9fb1ca;
  cursor: pointer;
}

.iconAction:hover {
  background: #2b3c56;
  color: #eff6ff;
}

.iconAction.danger:hover {
  color: #fca5a5;
}

.iconAction svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.countryButtons {
  display: block;
}

.emptyCountries {
  align-self: center;
  color: var(--muted);
  font-size: 14px;
}

.countryTable {
  min-width: 0;
}

.countryTable th,
.countryTable td {
  padding: 12px 14px;
}

.countryTable tbody tr {
  cursor: default;
}

.countryTable th:last-child,
.countryTable td:last-child {
  width: 180px;
  text-align: right;
}

.countryCodeCell {
  color: var(--accent);
  font-weight: 800;
}

.branchBox.bulkMode {
  border: 1px solid #265e57;
  border-radius: 4px;
  padding: 14px;
  background: #102a2f;
}

.branchBox.bulkMode select {
  opacity: 0.5;
}

.checkGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.checkGrid label,
.assetTitle label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.assetGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assetBox {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.assetTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assetPreview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: 1px dashed var(--line);
  background: #fff;
}

.assetPreview img {
  display: none;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.assetPreview img.visible {
  display: block;
}

.settingsNote {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.settingsNote div {
  display: grid;
  gap: 6px;
}

.settingsNote span {
  color: var(--muted);
}

.settingsNote code {
  display: block;
  overflow: auto;
  border-radius: 6px;
  padding: 12px;
  background: #0f1929;
  color: #d9f7ef;
}

.notificationRulesPanel {
  display: grid;
  gap: 0;
}

.notificationRulesPanel > h2 {
  margin-bottom: 16px;
}

.notificationClientSection {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.notificationServices {
  display: grid;
  gap: 0;
}

.notificationServiceSection {
  display: grid;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.notificationServiceSection:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.notificationEmpty {
  padding-top: 20px;
}

.notificationClientGrid,
.notificationServiceGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notificationClientGrid label,
.notificationServiceGrid label {
  display: grid;
  gap: 7px;
}

.notificationVoice {
  grid-column: 1 / -1;
}

.notificationSoundRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.notificationFileButton {
  position: relative;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--panel-3);
  color: var(--ink);
  cursor: pointer;
}

.notificationFileButton span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notificationFileButton input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.notificationAudio {
  width: min(360px, 100%);
  height: 40px;
}

.notificationHint,
.notificationEmpty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .notificationClientGrid,
  .notificationServiceGrid {
    grid-template-columns: 1fr;
  }

  .notificationVoice {
    grid-column: auto;
  }
}

.sticker {
  position: relative;
  width: 384px;
  height: 800px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
}

.layoutBlock {
  position: absolute;
  overflow: hidden;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.layoutBlock.selected {
  outline: 3px solid #e22;
  outline-offset: -3px;
}

.stickerHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.dishBox {
  border: 2px solid #111;
  background: #fff;
}

.dishTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #111;
  padding: 4px 8px;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
}

.orderRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(56px, 20%);
  min-height: 1px;
}

.orderNumber {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

.orderMarker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #111;
  font-weight: 700;
  line-height: 1;
}

.composition {
  padding: 0;
  font-size: 13px;
  line-height: 1.22;
}

.mediaBlock {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mediaBlock img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mediaBlock img.visible {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 0;
  font-weight: 700;
  line-height: 1.15;
}

.footer div {
  display: flex;
  flex-direction: column;
}

.footer div:last-child {
  text-align: right;
}

.actionConfirmOverlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 14, 24, 0.72);
}

.actionConfirmOverlay.hidden,
.toastMessage.hidden {
  display: none;
}

.actionConfirmBox {
  width: min(650px, calc(100vw - 48px));
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.actionConfirmBox h2 {
  margin: 0;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  color: #aebbd0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.actionConfirmBody {
  min-height: 92px;
  padding: 30px 36px;
  color: #aebbd0;
  font-size: 18px;
}

.actionConfirmBody p {
  margin: 0;
}

.actionConfirmFooter {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 24px;
  background: #334155;
}

.actionConfirmFooter button {
  min-width: 170px;
  min-height: 48px;
  font-weight: 800;
}

.loadingDots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.loadingDots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #aebbd0;
  animation: dotPulse 1s infinite ease-in-out;
}

.loadingDots i:nth-child(2) {
  animation-delay: 0.15s;
}

.loadingDots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.tableLoadingCell {
  height: 160px;
  text-align: center;
  vertical-align: middle;
}

.toastMessage {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  min-width: 290px;
  max-width: min(520px, calc(100vw - 48px));
  border-radius: 8px;
  padding: 16px 22px;
  background: #116a3b;
  color: #7ff0a9;
  font-weight: 800;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

.toastMessage.error {
  background: #5c1f2b;
  color: #ffb2b2;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 22, 0.72);
}

.modalOverlay.hidden {
  display: none;
}

.modalBox {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  border: 1px solid #2d415f;
  border-radius: 6px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

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

.modalHeader h2 {
  margin: 0;
  font-size: 22px;
}

.modalActions {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .adminShell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .settingsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .adminShell {
    display: block;
  }

  .sideBar {
    border-right: 0;
    border-bottom: 1px solid #1f2d42;
  }

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

  .topBar,
  .pageHeading {
    align-items: stretch;
    flex-direction: column;
  }

  .page,
  .topBar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .paperGrid,
  .integrationGrid,
  .assetGrid,
  .checkGrid,
  .countryApiRow,
  .pluginFormGrid,
  .branchBox {
    grid-template-columns: 1fr;
  }
}
