:root {
  --accent: #ffa333;
  --accent-strong: #ff2a23;
  --control-accent: var(--accent-strong);
  --control-accent-soft: #ffe5e3;
  --control-accent-hover: #e5231d;
  --control-accent-shadow: rgba(255, 42, 35, 0.24);
  --page-gray: #dedede;
  --line: #d6d6d6;
  --text: #111111;
  --muted: #a5a5a5;
  --card: #ffffff;
  --row: #f7f7f7;
  --danger-bg: #ffcaca;
  --success-bg: #c9f3d6;
  --success: #31d35c;
  --purple: #8c00c9;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 76px;
  --bottom-nav-min-height: 70px;
  --bottom-nav-padding-top: 7px;
  --bottom-nav-padding-bottom: 0px;
  --table-head-font-size: 11px;
  --table-body-font-size: 11px;
  --table-primary-font-size: 11px;
  --table-secondary-font-size: 11px;
  --table-micro-font-size: 11px;
  --table-cell-x: 6px;
  --table-action-button-width: 24px;
  --table-action-gap: 4px;
  --table-head-font-weight: 900;
  --table-body-font-weight: 900;
}

.boot-fallback {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 149, 0, 0.18), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(255, 196, 87, 0.16), transparent 24%),
    linear-gradient(135deg, #fff8ed 0%, #f7f8fb 46%, #ffffff 100%);
}

.boot-fallback__spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 149, 0, 0.18);
  border-top-color: #ff9500;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 149, 0, 0.18);
  animation: boot-spin 0.75s linear infinite;
}

.boot-noscript {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  color: #1f2933;
  text-align: center;
  background: #f3f3f3;
  font-family: Arial, sans-serif;
}

.boot-noscript__title {
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
}

.boot-noscript__hint {
  max-width: 360px;
  color: #8d9399;
  font-size: 13px;
  line-height: 1.35;
}

.startup-service-screen {
  position: relative;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(32px, 8vh, 82px) 28px 28px;
  place-items: start center;
  color: #161b22;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 149, 0, 0.24), transparent 28%),
    radial-gradient(circle at 84% 24%, rgba(255, 196, 87, 0.22), transparent 24%),
    linear-gradient(135deg, #fff8ed 0%, #f7f8fb 46%, #ffffff 100%);
  overflow: hidden;
}

.startup-service-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at center, rgba(20, 24, 33, 0.08) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.startup-service-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.startup-probe-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(6px);
}

.startup-probe-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 149, 0, 0.18);
  border-top-color: #ff9500;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 149, 0, 0.18);
  animation: boot-spin 0.75s linear infinite;
}

.orientation-blocker {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) calc(18px + env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px));
  color: #1f2933;
  text-align: center;
  background: var(--page-gray);
}

body.is-orientation-blocked .orientation-blocker {
  display: grid;
}

body.is-orientation-blocked #app {
  pointer-events: none;
}

.orientation-blocker-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, 100%);
  padding: 26px 28px 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.orientation-blocker-icon {
  position: relative;
  width: 42px;
  height: 60px;
  border: 4px solid var(--control-accent);
  border-radius: 12px;
  transform: rotate(90deg);
}

.orientation-blocker-icon::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--control-accent);
  content: "";
  transform: translateX(-50%);
}

.orientation-blocker-card strong {
  color: #111111;
  font-size: 18px;
  font-weight: 900;
}

.orientation-blocker-card span {
  color: #66707a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.startup-service-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(536px, 100%);
  gap: 14px;
  padding: 26px 34px 34px;
  border: 1px solid rgba(255, 149, 0, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(111, 75, 21, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.startup-service-accent {
  width: 132px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9500, #ffc45a 48%, #ff5b2e);
  box-shadow: 0 0 18px rgba(255, 149, 0, 0.36);
}

.startup-service-card h1 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(30px, 7vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.startup-service-card strong {
  color: #ff9500;
  font-size: 17px;
  font-weight: 900;
}

.startup-service-card p {
  max-width: 440px;
  margin: 0;
  color: #68707d;
  font-size: clamp(16px, 4.4vw, 20px);
  font-weight: 600;
  line-height: 1.25;
}

.startup-service-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 149, 0, 0.22);
  border-radius: 16px;
  color: #ad6500;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.12), rgba(255, 255, 255, 0.72));
}

.startup-service-spinner {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 149, 0, 0.2);
  border-top-color: #ff9500;
  border-radius: 50%;
  animation: boot-spin 0.75s linear infinite;
}

.startup-service-screen[data-startup-state="restored"] .startup-service-spinner {
  border-color: #34c759;
  animation: none;
}

.startup-service-card em {
  color: #8c2732;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.startup-service-button {
  justify-self: center;
  min-width: 190px;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff9500, #ff6a2a);
  box-shadow: 0 12px 26px rgba(255, 149, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.startup-service-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(255, 149, 0, 0.34);
}

.startup-service-button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

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

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  color: var(--text);
  font-family: "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: var(--page-gray);
  touch-action: pan-x pan-y;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-dots-icon {
  width: 26px;
  height: 26px;
  color: var(--control-accent);
  pointer-events: none;
}

.screen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0;
  background: var(--page-gray);
  overflow: hidden;
}

.service-screen {
  display: grid;
  grid-template-rows: 58px 38px minmax(0, 1fr) var(--bottom-nav-height);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 104px;
}

.brand img {
  width: 100%;
  height: auto;
}

.brand-logo-ios {
  display: none;
}

.profile-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.profile-button img {
  width: 34px;
  height: 34px;
}

.profile-button span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  background: #ffffff;
}

.profile-done-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  background: var(--control-accent);
  box-shadow: 0 8px 18px var(--control-accent-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.profile-done-button:hover {
  background: var(--control-accent-hover);
  box-shadow: 0 10px 22px rgba(255, 42, 35, 0.28);
  transform: translateY(-1px);
}

.profile-done-button:active {
  transform: translateY(0);
}

.section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  min-height: 38px;
  padding: 0 28px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  color: var(--muted);
  white-space: nowrap;
  background: #ffffff;
}

.tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.tab-button.is-active {
  color: var(--control-accent);
}

.tab-button.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  content: "";
  background: var(--accent-strong);
}

.service-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 56px;
  row-gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 16px 24px 8px;
  overflow: hidden;
}

.service-page.is-pager-hidden {
  grid-template-rows: auto minmax(0, 1fr);
}

.service-page > h1,
.operations-page > h1,
.service-title-row > h1 {
  display: none;
}

.service-page h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

.dashboard-screen {
  grid-template-rows: 58px minmax(0, 1fr) var(--bottom-nav-height);
}

.dashboard-page {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 18px;
  min-height: 0;
  padding: 20px 24px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dashboard-page h1 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-page h1.is-temporarily-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dashboard-card {
  position: relative;
  min-width: 0;
  overflow-anchor: none;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 59, 59, 0.14), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(255, 173, 82, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(190, 0, 30, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 0, 30, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000000, transparent 80%);
}

.dashboard-card-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}

.dashboard-card-title h2 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 900;
}

.dashboard-card-title span {
  color: #777777;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-card-title .dashboard-filter-summary {
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid rgba(190, 0, 30, 0.14);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.25;
}

.dashboard-card-title > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-card-title-with-filter {
  position: static;
  padding-right: 72px;
}

.dashboard-card-title-with-filter > .dashboard-card-actions {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dashboard-card-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.dashboard-card-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 2px solid rgba(190, 0, 30, 0.32);
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(190, 0, 30, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dashboard-card-filter-button:hover {
  transform: translateY(-1px);
}

.dashboard-card-filter-button.is-active {
  color: #ffffff;
  border-color: rgba(255, 46, 46, 0.26);
  background: linear-gradient(135deg, #b60021, #ff4038);
  box-shadow: 0 10px 22px rgba(255, 46, 46, 0.24);
}

.dashboard-card-filter-button svg {
  width: 18px;
  height: 18px;
}

.dashboard-card-corner-filter-button {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 18px;
}

.dashboard-stats-card .dashboard-card-title {
  padding-right: 74px;
}

.dashboard-card-title-with-filter .dashboard-card-filter-button {
  flex: 0 0 auto;
}

.dashboard-card-title-with-filter .dashboard-operation-toggle {
  flex: 0 0 auto;
}

.dashboard-stat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0;
  padding: 0 18px 20px;
}

.dashboard-daily-card {
  display: block;
  min-height: 178px;
  overflow: hidden;
  padding-bottom: 18px;
}

.dashboard-daily-card.is-loading {
  opacity: 0.78;
}

.dashboard-notifications-card {
  display: block;
  min-height: 164px;
  overflow: hidden;
  padding-bottom: 16px;
}

.dashboard-notifications-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
  padding: 0 18px 2px;
}

.dashboard-notifications-list .notification-item {
  min-height: 118px;
  border: 1px solid rgba(190, 0, 30, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 252, 0.9)),
    radial-gradient(circle at 16% 14%, rgba(255, 43, 43, 0.16), transparent 42%);
  box-shadow: 0 12px 22px rgba(190, 0, 30, 0.08);
}

.dashboard-notifications-list .notification-item strong {
  margin-bottom: 12px;
}

.dashboard-notifications-list .notification-item p {
  overflow-wrap: anywhere;
}

.dashboard-daily-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0;
  padding: 0 18px 0;
}

.dashboard-daily-item {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 102px;
  padding: 14px 10px;
  text-align: center;
}

.dashboard-daily-item strong {
  display: grid;
  place-items: center;
  width: 100%;
  height: 48px;
  padding: 0 10px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #b60021, #ff2c2c);
  box-shadow: 0 10px 20px rgba(255, 36, 36, 0.16);
  line-height: 1.15;
  text-align: center;
}

.dashboard-daily-item b {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 900;
}

.dashboard-daily-error {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  color: #8c2732;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.dashboard-stat-item {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 102px;
  padding: 14px 10px;
  text-align: center;
}

.dashboard-stat-item strong {
  display: grid;
  place-items: center;
  width: 100%;
  height: 48px;
  padding: 0 10px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, #b60021, #ff2c2c);
  box-shadow: 0 10px 20px rgba(255, 36, 36, 0.16);
  line-height: 1.15;
  text-align: center;
}

.dashboard-stat-item b {
  color: var(--accent-strong);
  font-size: 17px;
  font-weight: 900;
}

.dashboard-stat-item small {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
}

.dashboard-operation-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 20px;
}

.dashboard-operation-title {
  position: relative;
  z-index: 1;
  min-height: 116px;
  padding-right: 244px;
  align-items: flex-start;
}

.dashboard-operation-title > div:first-child {
  display: grid;
  gap: 5px;
}

.dashboard-operation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid rgba(190, 0, 30, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px rgba(190, 0, 30, 0.08);
  backdrop-filter: blur(12px);
}

.dashboard-operation-toggle button {
  min-width: 84px;
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  background: transparent;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-operation-toggle button:hover {
  transform: translateY(-1px);
}

.dashboard-operation-toggle button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #b60021, #ff4038);
  box-shadow: 0 8px 18px rgba(255, 46, 46, 0.24);
}

.dashboard-operation-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 94px;
  padding: 0 20px 12px;
}

.dashboard-operation-summary div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(190, 0, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 26px rgba(190, 0, 30, 0.08);
  backdrop-filter: blur(10px);
}

.dashboard-operation-summary strong {
  color: #7c1d2a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-operation-summary b {
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.dashboard-operation-chart-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 242px;
  height: 242px;
  margin: 0 20px;
  border: 1px solid rgba(190, 0, 30, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-operation-chart-wrap.is-loading {
  opacity: 0.76;
}

.dashboard-operation-chart-wrap p {
  position: absolute;
  inset: auto 16px 14px;
  margin: 0;
  color: #8c2732;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.dashboard-operation-chart {
  display: block;
  width: 100%;
  height: 242px;
  min-height: 242px;
}

.dashboard-latest-card {
  display: block;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.dashboard-latest-flow {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 18px;
}

.dashboard-latest-table {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 0 12px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.dashboard-latest-table.is-loading {
  opacity: 0.76;
}

.dashboard-latest-head,
.dashboard-latest-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(130px, 1fr) minmax(130px, 1fr);
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.dashboard-latest-head {
  color: var(--accent-strong);
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-head-font-weight);
}

.dashboard-latest-row {
  min-height: 54px;
  padding: 8px var(--table-cell-x);
  border: 1px solid rgba(190, 0, 30, 0.06);
  border-radius: 7px;
  color: #111111;
  background: linear-gradient(135deg, rgba(239, 241, 249, 0.96), rgba(248, 249, 253, 0.94));
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-latest-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 36, 36, 0.18);
  box-shadow: 0 12px 24px rgba(190, 0, 30, 0.08);
}

.dashboard-latest-row.is-warning {
  background: linear-gradient(135deg, rgba(255, 237, 237, 0.98), rgba(255, 247, 247, 0.95));
}

.dashboard-latest-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--table-body-font-size);
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-latest-machine-cell {
  display: grid;
  gap: 4px;
}

.dashboard-latest-machine-cell strong {
  color: var(--accent-strong);
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
  line-height: 1.12;
}

.dashboard-latest-machine-cell small {
  width: fit-content;
  max-width: 100%;
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

@media (max-width: 1180px) {
  .dashboard-latest-card {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dashboard-latest-flow {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 16px;
  }

  .dashboard-latest-table {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    padding: 0 var(--table-cell-x) 16px;
    overflow: visible;
  }

  .dashboard-latest-head {
    display: none;
  }

  .dashboard-latest-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    padding: 10px 12px;
  }

  .dashboard-latest-row > span {
    display: grid;
    grid-template-columns: minmax(92px, 0.45fr) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 12px;
  }

  .dashboard-latest-row > span::before {
    content: attr(data-label);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
  }

}

.dashboard-system-card {
  align-self: start;
  padding-bottom: 16px;
}

.dashboard-system-table {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
}

.dashboard-system-head,
.dashboard-system-row {
  display: grid;
  grid-template-columns: var(--table-auto-columns, 170px 145px 90px 76px 76px 76px);
  align-items: center;
  min-width: var(--table-auto-min-width, 720px);
  gap: 4px;
}

.dashboard-system-head {
  color: var(--accent-strong);
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-head-font-weight);
}

.dashboard-system-row {
  min-height: 42px;
  padding: 0 var(--table-cell-x);
  border-radius: 7px;
  color: #111111;
  font-size: var(--table-body-font-size);
  text-align: left;
  background: #f0f1f7;
}

.dashboard-system-row:hover {
  background: #e8e9ef;
}

.dashboard-system-machine {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--accent-strong);
  font-weight: var(--table-body-font-weight);
}

.dashboard-system-machine strong,
.dashboard-system-machine small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-system-machine strong {
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.dashboard-system-machine small {
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

.dashboard-link-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-link-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dashboard-system-filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 18px 16px;
}

.dashboard-system-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid #ffd2d2;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 40, 40, 0.08);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-system-filter:hover {
  transform: translateY(-1px);
}

.dashboard-system-filter.is-active {
  border-color: rgba(255, 46, 46, 0.26);
  color: #ffffff;
  background: linear-gradient(135deg, #b60021, #ff4038);
  box-shadow: 0 8px 18px rgba(255, 46, 46, 0.24);
}

.dashboard-empty {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #8c8c8c;
  font-weight: 900;
}

.service-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  margin: 0 0 18px;
}

.service-title-row h1 {
  margin: 0;
}

.cassette-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
  color: #333333;
  font-size: 15px;
  font-weight: 900;
}

.cassette-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cassette-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.cassette-legend i.is-blocked {
  background: var(--success);
}

.cassette-legend i.is-low {
  background: #ff3b38;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  margin-bottom: 8px;
}

.service-log-search-row {
  grid-template-columns: minmax(0, 1fr) 56px 56px;
  gap: 12px;
}

.service-log-search-row.is-reading-only {
  grid-template-columns: minmax(0, 1fr) 56px;
}

.search-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px 34px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
}

.search-field span {
  display: grid;
  place-items: center;
  color: #c6c6c6;
  font-size: 34px;
  line-height: 1;
}

.search-field span .ui-icon {
  width: 26px;
  height: 26px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #222222;
  background: transparent;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field button {
  display: grid;
  place-items: center;
  color: #b9b9b9;
  font-size: 28px;
  transform: none;
}

.search-field button .ui-icon {
  width: 24px;
  height: 24px;
}

.search-field .search-clear {
  width: 28px;
  height: 28px;
  justify-self: center;
  color: #243f73;
  font-size: 0;
  background: currentColor;
  mask: url("assets/search_clear.svg") center / 15px 15px no-repeat;
  -webkit-mask: url("assets/search_clear.svg") center / 15px 15px no-repeat;
  transform: none;
}

.search-field .search-clear[hidden] {
  display: block;
  visibility: hidden;
}

.service-log-search-action {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  border-radius: 12px;
  color: #111111;
  background: #ffffff;
}

.service-log-search-action.is-refreshing .service-log-search-icon {
  animation: service-log-spin 0.75s linear infinite;
}

.service-log-search-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.table-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.machines-table {
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.machines-head,
.machines-row {
  display: grid;
  grid-template-columns: var(--table-auto-columns, 230px 110px 310px 220px 190px 330px 330px 330px 330px 330px);
  min-width: var(--table-auto-min-width, 2680px);
}

.machines-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  color: #3f3f47;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.machines-head span,
.machines-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
}

.machines-row {
  position: relative;
  width: 100%;
  min-height: 92px;
  padding: 0;
  color: #35393f;
  font-size: var(--table-body-font-size);
  text-align: left;
  background: var(--row);
  appearance: none;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.machines-row.is-opening {
  background: var(--control-accent-soft);
  opacity: 0.9;
  pointer-events: none;
}

.machines-row.is-opening::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 42, 35, 0.34);
  content: "";
  pointer-events: none;
}

.machines-row > span:nth-child(n + 6) {
  align-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.machines-row > span.machine-firmware-spec-cell {
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px;
  align-content: center;
  align-items: center;
  min-width: 0;
  line-height: 1.15;
}

.machines-head .machine-firmware-spec-head {
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px;
  align-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  line-height: 1.15;
}

.machine-firmware-spec-head b,
.machine-firmware-spec-cell b,
.machine-firmware-spec-cell small {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.machines-empty {
  display: grid;
  place-items: center;
  min-width: var(--table-auto-min-width, 2680px);
  min-height: 92px;
  border-bottom: 2px solid #e6e6e6;
  color: #9a9a9a;
  font-weight: var(--table-body-font-weight);
  background: var(--row);
}

.cassette-service-page {
  grid-template-rows: auto auto minmax(0, 1fr) 56px;
}

.cassette-service-page.is-pager-hidden {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.cassette-matrix-card {
  padding: 12px;
}

.cassette-matrix-table {
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cassette-matrix-head,
.cassette-matrix-row {
  display: grid;
  grid-template-columns: var(--table-auto-columns, 210px repeat(9, 190px) 220px);
  min-width: var(--table-auto-min-width, 2140px);
}

.cassette-matrix-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  color: #3f3f47;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.cassette-matrix-head span,
.cassette-matrix-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
}

.cassette-matrix-row {
  width: 100%;
  min-height: 132px;
  padding: 0;
  color: #26313d;
  text-align: left;
  background: #eef0f2;
  appearance: none;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.cassette-matrix-row.is-opening {
  background: #fff6e8;
  opacity: 0.9;
  pointer-events: none;
}

.cassette-machine-cell {
  position: relative;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 4px;
  padding-right: calc(var(--table-cell-x) + var(--table-action-button-width) + var(--table-action-gap)) !important;
}

.cassette-machine-cell strong {
  max-width: 100%;
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
  overflow-wrap: anywhere;
}

.cassette-machine-cell small {
  max-width: 100%;
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.cassette-matrix-cell {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center !important;
  gap: 10px;
}

.cassette-matrix-meter {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 56px;
  height: 96px;
  border: 2px solid #cccccc;
  border-radius: 4px;
  background: #e2e7ea;
  overflow: hidden;
}

.cassette-matrix-meter i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 2px;
  background: #9ca3aa;
}

.cassette-matrix-meter.is-blocked {
  border-color: var(--success);
}

.cassette-matrix-meter.is-blocked i {
  background: var(--success);
}

.cassette-matrix-meter.is-low {
  border-color: #ff3b38;
}

.cassette-matrix-meter.is-low i {
  background: #ff3b38;
}

.cassette-matrix-meter.is-cashin {
  border-color: #17256f;
}

.cassette-matrix-meter.is-cashin i {
  background: #17256f;
}

.cassette-matrix-meter b {
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 1px rgba(0, 0, 0, 0.85);
}

.cassette-matrix-lines {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #994815;
  font-size: var(--table-micro-font-size);
  font-weight: var(--table-body-font-weight);
  line-height: 1.05;
}

.cassette-matrix-lines em {
  font-style: normal;
  overflow-wrap: anywhere;
}

.cassette-matrix-cell.is-blocked .cassette-matrix-lines em:nth-last-child(-n + 2) {
  color: #009a47;
}

.cassette-matrix-cell.is-low .cassette-matrix-lines em:nth-last-child(-n + 2) {
  color: #ff2b2b;
}

.cassette-matrix-empty {
  display: grid;
  place-items: center;
  min-width: var(--table-auto-min-width, 2140px);
  min-height: 132px;
  border-bottom: 2px solid #e6e6e6;
  color: #9a9a9a;
  font-weight: 900;
  background: #eef0f2;
}

.hopper-service-page {
  grid-template-rows: auto minmax(0, 1fr) 56px;
}

.hopper-service-page.is-pager-hidden {
  grid-template-rows: auto minmax(0, 1fr);
}

.hopper-matrix-card {
  padding: 12px;
}

.hopper-matrix-table {
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hopper-matrix-head,
.hopper-matrix-row {
  display: grid;
  grid-template-columns: var(--table-auto-columns, 210px 230px repeat(8, 170px));
  min-width: var(--table-auto-min-width, 1800px);
}

.hopper-matrix-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  color: #3f3f47;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.hopper-matrix-head span,
.hopper-matrix-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
}

.hopper-matrix-row {
  width: 100%;
  min-height: 90px;
  padding: 0;
  color: #26313d;
  text-align: left;
  background: #eef0f2;
  appearance: none;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.hopper-matrix-row.is-opening {
  background: #fff6e8;
  opacity: 0.9;
  pointer-events: none;
}

.hopper-fill-cell {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center !important;
  gap: 8px;
}

.hopper-matrix-table .cassette-matrix-meter {
  width: 48px;
  height: 78px;
}

.hopper-matrix-lines,
.hopper-nominal-cell {
  display: grid !important;
  align-content: center;
  gap: 5px;
  min-width: 0;
  color: #994815;
  font-size: var(--table-micro-font-size);
  font-weight: var(--table-body-font-weight);
  line-height: 1.08;
}

.hopper-matrix-lines em,
.hopper-nominal-cell em {
  font-style: normal;
  overflow-wrap: anywhere;
}

.hopper-matrix-empty {
  display: grid;
  place-items: center;
  min-width: var(--table-auto-min-width, 1800px);
  min-height: 90px;
  border-bottom: 2px solid #e6e6e6;
  color: #9a9a9a;
  font-weight: var(--table-body-font-weight);
  background: #eef0f2;
}

.cash-operation-service-page {
  grid-template-rows: auto minmax(0, 1fr) 56px;
}

.cash-operation-service-page.is-pager-hidden {
  grid-template-rows: auto minmax(0, 1fr);
}

.cash-operation-card {
  padding: 12px;
}

.cash-operation-table {
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cash-operation-head,
.cash-operation-row {
  display: grid;
  grid-template-columns: var(--table-auto-columns, 240px 210px 240px 420px 120px);
  min-width: var(--table-auto-min-width, 1230px);
  width: 100%;
}

.cash-operation-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  color: #3f3f47;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.cash-operation-head span,
.cash-operation-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
}

.cash-operation-row {
  min-height: 72px;
  color: #23313f;
  font-size: var(--table-body-font-size);
  font-weight: var(--table-body-font-weight);
  background: #eef0f2;
}

.cash-operation-detail-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: #222222;
  font-size: 25px;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.cash-operation-detail-button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.cash-operation-empty {
  display: grid;
  place-items: center;
  min-width: var(--table-auto-min-width, 1230px);
  min-height: 72px;
  border-bottom: 2px solid #e6e6e6;
  color: #9a9a9a;
  font-weight: var(--table-body-font-weight);
  background: #eef0f2;
}

.service-log-page {
  grid-template-rows: auto auto minmax(0, 1fr) 62px;
  padding-bottom: 0;
}

.service-log-page.is-pager-hidden {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.service-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 42px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-log-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.service-log-toolbar button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.service-log-toolbar [data-service-log-refresh] {
  width: 34px;
  padding: 0;
}

.service-log-toolbar [data-service-log-refresh]::before {
  content: "";
  width: 21px;
  height: 21px;
  background: #222222;
  mask: url("assets/refresh.svg") center / contain no-repeat;
  -webkit-mask: url("assets/refresh.svg") center / contain no-repeat;
}

.service-log-toolbar [data-service-log-refresh].is-refreshing::before {
  animation: service-log-spin 0.75s linear infinite;
}

.service-log-toolbar [data-service-log-auto]::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #222222;
  border-radius: 5px;
  box-sizing: border-box;
}

.service-log-toolbar [data-service-log-auto].is-active::before {
  border-color: #39d37a;
  background: #39d37a;
  box-shadow: inset 0 0 0 3px #d9d9d9;
}

.service-log-final-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #009a42;
  cursor: pointer;
}

.service-log-final-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #39d37a;
}

.server-time-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.server-time-note i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #39d37a;
}

.service-log-card {
  padding: 12px;
}

.service-log-table {
  height: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.service-log-head,
.service-log-row {
  display: grid;
  width: 100%;
}

.service-log-table.is-status-history .service-log-head,
.service-log-table.is-status-history .service-log-row {
  grid-template-columns: var(--table-auto-columns, 180px 210px 180px 560px);
  min-width: var(--table-auto-min-width, 1130px);
}

.service-log-table.is-machine-log .service-log-head,
.service-log-table.is-machine-log .service-log-row {
  grid-template-columns: var(--table-auto-columns, 220px 210px 760px);
  min-width: var(--table-auto-min-width, 1190px);
}

.service-log-table.is-cassette-log .service-log-head,
.service-log-table.is-cassette-log .service-log-row {
  grid-template-columns: 150px minmax(1360px, 1fr);
  min-width: 1510px;
}

.service-log-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 56px;
  color: #2d3440;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.service-log-head span,
.service-log-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e2e2e2;
  border-bottom: 2px solid #e2e2e2;
}

.service-log-row {
  min-height: 72px;
  color: #111111;
  font-size: var(--table-body-font-size);
  font-weight: var(--table-body-font-weight);
  background: #eef0f2;
}

.service-log-row span {
  overflow-wrap: anywhere;
}

.service-log-row span b {
  display: block;
}

.service-log-row span small {
  display: block;
  color: #8d00d4;
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

.service-log-machine {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-width: 0;
  line-height: 1.08;
}

.service-log-machine.has-row-action {
  padding-right: calc(var(--table-action-button-width) + var(--table-action-gap));
}

.service-log-machine b,
.service-log-machine small {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-log-machine b {
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.service-log-machine small {
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

.service-log-machine b + b {
  margin-top: 1px;
}

.service-log-machine-date-block {
  display: block;
  max-width: 100%;
  margin-top: 7px;
}

.service-log-machine-date-block em {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-strong);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--table-head-font-weight);
  line-height: 1;
  text-transform: uppercase;
}

.service-log-machine-date {
  display: block;
  max-width: 100%;
  color: #333333;
  font-size: var(--table-secondary-font-size);
  font-style: normal;
  font-weight: var(--table-body-font-weight);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.service-log-row.is-ok {
  color: #009a42;
}

.service-log-row.is-warning {
  color: #ff991f;
}

.service-log-row.is-error {
  color: #ff2028;
}

.service-log-row.is-normal {
  color: #111111;
}

.service-log-row.is-machine-log {
  color: #111111;
}

.service-log-row.is-cassette-log {
  min-height: 228px;
  color: #111111;
}

.service-log-row.is-cassette-log > span {
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 10px;
}

.cassette-log-details,
.cassette-log-section {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.cassette-log-details {
  align-content: start;
}

.cassette-log-section {
  padding: 8px 10px 10px;
  border: 1px solid #e4e6e8;
  border-left: 4px solid var(--accent-strong);
  background: #ffffff;
}

.cassette-log-section > b {
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.cassette-log-cash-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(118px, 1fr));
  gap: 12px;
  align-items: start;
}

.cassette-log-hopper-grid {
  display: grid;
  grid-template-columns: 180px repeat(8, minmax(118px, 1fr));
  gap: 12px;
  align-items: start;
}

.cassette-log-cash-grid > span,
.cassette-log-hopper-grid > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.cassette-log-cash-grid em,
.cassette-log-hopper-grid em {
  color: #7d3b12;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cassette-log-details .cassette-matrix-cell,
.cassette-log-details .hopper-fill-cell {
  grid-template-columns: 50px minmax(54px, 1fr);
  gap: 7px;
  min-height: 86px;
}

.cassette-log-details .cassette-matrix-meter {
  width: 46px;
  min-width: 46px;
  height: 78px;
}

.cassette-log-details .cassette-matrix-lines,
.cassette-log-details .hopper-matrix-lines,
.cassette-log-details .hopper-nominal-cell {
  font-size: 11px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.cassette-log-details .hopper-nominal-cell {
  min-height: 46px;
}

.cassette-log-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 10px;
  border: 1px solid #e4e6e8;
  border-left: 4px solid #17256f;
  color: #0e2564;
  background: #ffffff;
}

.cassette-log-balance strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
}

.cassette-log-balance strong span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cassette-log-balance-icon {
  flex: 0 0 auto;
  width: 0;
  height: 0;
}

.cassette-log-balance-icon.is-cash-out {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #16c7c8;
}

.cassette-log-balance-icon.is-cash-in {
  border-top: 8px solid transparent;
  border-right: 14px solid #5364ee;
  border-bottom: 8px solid transparent;
}

.cassette-log-balance-icon.is-coins {
  width: 14px;
  height: 14px;
  border: 2px solid #17256f;
  border-radius: 50%;
  background: #ffffff;
}

.service-log-empty {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 100%;
  min-height: 72px;
  border-bottom: 2px solid #e2e2e2;
  color: #9a9a9a;
  font-weight: 900;
  background: #eef0f2;
}

.service-log-empty.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #7b828a;
}

.service-log-loader {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 153, 31, 0.22);
  border-top-color: #ff991f;
  border-radius: 50%;
  animation: service-log-spin 0.75s linear infinite;
}

.reading-log-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  background: var(--page-gray);
  overflow: hidden;
}

.reading-log-page {
  --table-head-font-size: 15px;
  --table-body-font-size: 14px;
  --table-primary-font-size: 17px;
  --table-secondary-font-size: 13px;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 56px;
  gap: 6px;
  height: 100%;
  min-height: 0;
  padding: 12px 24px 8px;
  overflow: hidden;
}

.reading-log-page.is-pager-hidden {
  grid-template-rows: 42px minmax(0, 1fr);
}

.reading-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-width: 0;
}

.reading-reset-button,
.reading-close-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #111111;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.reading-reset-button {
  justify-self: start;
}

.reading-close-button {
  justify-self: end;
}

.reading-reset-icon,
.reading-close-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reading-log-page .service-log-card {
  min-height: 0;
  padding: 12px;
}

.reading-table-page > .table-card,
.reading-table-page .detail-table-card {
  min-height: 0;
  height: 100%;
  padding: 12px;
}

.reading-table-page .machines-table,
.reading-table-page .cassette-matrix-table,
.reading-table-page .hopper-matrix-table,
.reading-table-page .cash-operation-table,
.reading-table-page .detail-data-table {
  height: 100%;
  min-height: 0;
}

.reading-zoom-target {
  --reading-table-zoom: 1;
  touch-action: pan-x pan-y;
}

.reading-zoom-target > * {
  zoom: var(--reading-table-zoom);
}

.reading-zoom-target .operation-machine-cell > strong,
.reading-zoom-target .operation-machine-cell > small,
.reading-zoom-target .operation-machine-open-button,
.reading-zoom-target .detail-data-row .row-with-action > strong,
.reading-zoom-target .detail-data-row .row-detail-button {
  zoom: var(--reading-table-zoom);
}

.reading-table-page > .table-detail-page {
  height: 100%;
  min-height: 0;
  padding: 0;
}

.reading-log-page .service-log-head {
  min-height: 60px;
}

.reading-log-page .service-log-row {
  min-height: 78px;
}

.reading-log-page .pager {
  align-self: stretch;
  margin: 0;
}

@keyframes service-log-spin {
  to {
    transform: rotate(360deg);
  }
}

.receipt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 48px 20px;
  background: rgba(0, 0, 0, 0.45);
}

.receipt-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 96px);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.receipt-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px 44px;
  align-items: center;
  min-height: 58px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid #e5e5e5;
}

.receipt-modal-header strong {
  color: #333333;
  font-size: 18px;
  font-weight: 900;
}

.receipt-modal-header button {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: #777777;
  font-size: 27px;
  font-weight: 900;
}

.receipt-modal-header button:not(:disabled):hover {
  color: #111111;
  background: #eeeeee;
}

.receipt-modal-header button:disabled {
  opacity: 0.35;
}

.receipt-modal-body {
  min-height: 160px;
  max-height: calc(100vh - 154px);
  overflow: auto;
  padding: 20px;
  color: #333333;
  font-size: 17px;
  line-height: 1.45;
}

.receipt-modal-message {
  margin: 0;
  font-weight: 700;
}

.receipt-modal-message.is-error {
  color: #ff2b28;
}

.receipt-content {
  white-space: normal;
  overflow-wrap: anywhere;
}

.receipt-print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

.machine-number {
  position: relative;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  gap: 3px;
  padding-right: calc(var(--table-cell-x) + var(--table-action-button-width) + var(--table-action-gap)) !important;
}

.machine-number strong {
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.machine-number small {
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

.mode-test {
  color: #da6e00;
}

.mode-universal {
  color: var(--purple);
}

.mode-sell {
  color: green;
}

.mode-buy {
  color: var(--accent-strong);
}

.service-log-machine small.mode-test,
.cassette-machine-cell small.mode-test,
.machine-summary-mode.mode-test {
  color: #da6e00;
}

.service-log-machine small.mode-universal,
.cassette-machine-cell small.mode-universal,
.machine-summary-mode.mode-universal {
  color: var(--purple);
}

.service-log-machine small.mode-sell,
.cassette-machine-cell small.mode-sell,
.machine-summary-mode.mode-sell {
  color: green;
}

.service-log-machine small.mode-buy,
.cassette-machine-cell small.mode-buy,
.machine-summary-mode.mode-buy {
  color: var(--accent-strong);
}

.row-dots {
  position: absolute;
  top: 50%;
  right: var(--table-cell-x);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--control-accent);
  font-size: 27px;
  font-style: normal;
  line-height: 1;
  transform: translateY(-50%);
}

.service-log-row.is-cassette-log .row-dots {
  top: 118px;
  right: 50%;
  transform: translateX(50%);
}

.service-log-row.is-cassette-log .service-log-machine.has-row-action {
  padding-right: 0;
}

.machines-row.is-opening .row-dots,
.cash-operation-row.is-opening .row-dots,
.service-log-row.is-opening .row-dots {
  width: 24px;
  height: 24px;
  color: transparent;
  border: 3px solid rgba(255, 42, 35, 0.28);
  border-top-color: var(--control-accent);
  border-radius: 50%;
  animation: action-spin 0.7s linear infinite;
}

.wifi-cell {
  justify-content: center;
}

.connection-icon {
  display: block;
  width: 23px;
  height: auto;
}

.status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 var(--table-cell-x);
  border-radius: 7px;
  font-size: var(--table-body-font-size);
  font-weight: var(--table-body-font-weight);
}

.status-error {
  color: var(--accent-strong);
  background: var(--danger-bg);
}

.status-ok {
  color: var(--success);
  background: var(--success-bg);
}

.pager {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 54px;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  align-self: start;
  margin: 4px 24px 0;
  padding: 0 30px;
  border-radius: 12px;
  color: var(--control-accent);
  background: #ffffff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.pager button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--control-accent);
  font-weight: 800;
  font-size: 18px;
  transition: background-color 0.14s ease, transform 0.14s ease, opacity 0.14s ease;
}

.pager button:disabled {
  color: #c9c9c9;
  cursor: default;
}

.pager button:not(:disabled):hover {
  background: var(--control-accent-soft);
}

.pager button.is-paging {
  color: var(--control-accent);
  background: var(--control-accent-soft);
  transform: translateY(1px);
}

.pager button.is-paging .pager-arrow {
  width: 17px;
  height: 17px;
  background: transparent;
  border: 3px solid rgba(255, 42, 35, 0.28);
  border-top-color: var(--control-accent);
  border-radius: 50%;
  mask: none;
  -webkit-mask: none;
  transform: none;
  animation: action-spin 0.7s linear infinite;
}

.pager-info {
  justify-self: center;
  color: #a9a9a9;
  font-weight: 900;
}

.pager button:last-child {
  grid-column: 4;
  justify-self: end;
}

.pager-arrow {
  display: inline-block;
  width: 12px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("assets/pager_arrow_right.svg") center / contain no-repeat;
  -webkit-mask: url("assets/pager_arrow_right.svg") center / contain no-repeat;
}

.pager-arrow.is-left {
  mask-image: url("assets/pager_arrow_left.svg");
  -webkit-mask-image: url("assets/pager_arrow_left.svg");
}

.pager-arrow.is-right {
  mask-image: url("assets/pager_arrow_right.svg");
  -webkit-mask-image: url("assets/pager_arrow_right.svg");
}

@media (min-width: 768px) {
  .machines-table,
  .cassette-matrix-table,
  .hopper-matrix-table,
  .cash-operation-table,
  .service-log-table,
  .detail-data-table {
    scrollbar-width: thin;
    scrollbar-color: #b9b9b9 #f2f2f2;
  }

  .machines-table::-webkit-scrollbar,
  .cassette-matrix-table::-webkit-scrollbar,
  .hopper-matrix-table::-webkit-scrollbar,
  .cash-operation-table::-webkit-scrollbar,
  .service-log-table::-webkit-scrollbar,
  .detail-data-table::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    display: block;
  }

  .machines-table::-webkit-scrollbar-track,
  .cassette-matrix-table::-webkit-scrollbar-track,
  .hopper-matrix-table::-webkit-scrollbar-track,
  .cash-operation-table::-webkit-scrollbar-track,
  .service-log-table::-webkit-scrollbar-track,
  .detail-data-table::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 999px;
  }

  .machines-table::-webkit-scrollbar-thumb,
  .cassette-matrix-table::-webkit-scrollbar-thumb,
  .hopper-matrix-table::-webkit-scrollbar-thumb,
  .cash-operation-table::-webkit-scrollbar-thumb,
  .service-log-table::-webkit-scrollbar-thumb,
  .detail-data-table::-webkit-scrollbar-thumb {
    background: #b9b9b9;
    border: 2px solid #f2f2f2;
    border-radius: 999px;
  }
}

.bottom-nav {
  position: static;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 0;
  min-height: var(--bottom-nav-min-height);
  margin-top: 0;
  padding-top: var(--bottom-nav-padding-top);
  padding-bottom: var(--bottom-nav-padding-bottom);
  background: #ffffff;
}

.bottom-nav.has-reading-action {
  justify-content: center;
}

.bottom-nav-reading-button {
  display: grid;
  place-items: center;
  flex: 0 1 25%;
  width: 25%;
  min-width: 0;
  min-height: 52px;
  color: #111111;
}

.bottom-nav-reading-icon {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-screen .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

.bottom-nav-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 1 33.333%;
  width: 33.333%;
  min-width: 0;
  color: #b0b0b0;
  font-weight: 800;
}

.bottom-nav.has-reading-action .bottom-nav-item {
  flex-basis: 25%;
  width: 25%;
}

.bottom-nav-item span {
  display: grid;
  place-items: center;
  font-size: 29px;
  line-height: 1;
}

.bottom-nav-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-logo-icon {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.bottom-nav-item small {
  font-size: 13px;
}

.bottom-nav-item.is-active {
  color: var(--control-accent);
}

.detail-screen {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}

#detailContent {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--page-gray);
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 90px;
  padding: 0 28px;
  background: #ffffff;
}

.detail-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.ios-detail-title {
  display: none;
}

.back-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--control-accent);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.back-button i {
  width: 15px;
  height: 15px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.detail-tabs {
  min-height: 58px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 18px;
}

.detail-page {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 112px 18px 34px;
  background: var(--page-gray);
}

.main-detail-page {
  padding-top: 42px;
}

.detail-card {
  width: min(884px, 100%);
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
}

.rates-strip {
  display: flex;
  gap: 14px;
  width: min(884px, 100%);
  padding: 0 0 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.rate-card {
  flex: 0 0 auto;
  min-width: 122px;
  max-width: 240px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  border-radius: 10px;
  color: #111111;
  background: #e4e4e4;
}

.rate-card.is-inactive {
  background: #ffdcdc;
}

.rate-card div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: #8f8f8f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.rate-card b {
  color: #1fc53f;
}

.rate-card em {
  min-width: 0;
  overflow: hidden;
  color: #8f8f8f;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-card strong {
  display: block;
  margin-top: 6px;
  color: #111111;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.rate-card small {
  display: block;
  margin-top: 4px;
  color: #767676;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.machine-summary {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
  min-height: 214px;
  padding: 22px 18px 28px;
}

.machine-avatar {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  color: #bababa;
  font-size: 58px;
  background: #eeeeee;
}

.machine-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-avatar img[src$="device.svg"] {
  width: 46%;
  height: 46%;
  object-fit: contain;
  opacity: 0.28;
}

.machine-summary-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  padding-top: 2px;
}

.currency-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: var(--accent);
}

.machine-summary-copy strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.machine-summary-copy small {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.machine-summary-mode {
  margin-top: -8px;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.machine-summary p {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 500;
  white-space: pre-line;
}

.status-card {
  padding-bottom: 26px;
}

.detail-card h2 {
  margin: 0 0 12px;
  color: #000000;
  font-size: 17px;
  font-weight: 900;
}

.status-banner-stack {
  display: grid;
  gap: 8px;
  margin: 0 14px 42px;
}

.offline-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 66px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  background: var(--danger-bg);
}

.offline-banner.is-online {
  color: #20c768;
  background: #d8f8e4;
}

.offline-banner.is-connected {
  flex-direction: row;
  gap: 6px;
  min-height: 44px;
  color: #0089ff;
  background: #d3f5df;
}

.offline-banner span {
  margin: 0;
}

.info-list {
  display: grid;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--line);
}

.info-row.is-multiline {
  min-height: 86px;
  padding-block: 12px;
}

.info-row strong {
  font-size: 17px;
  font-weight: 900;
}

.info-row span {
  justify-self: end;
  max-width: 100%;
  text-align: right;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.status-info-row span.is-ok {
  color: #20c768;
  font-weight: 800;
}

.status-info-row span.is-error {
  color: var(--accent-strong);
  font-weight: 800;
}

.status-list .info-row:first-child {
  border-top: 1px solid var(--line);
}

@media (min-width: 1100px) {
  .screen {
    max-width: none;
    margin: 0 auto;
  }

  .service-page {
    padding-inline: 28px;
  }

  .service-page > .pager {
    align-self: start;
    margin-top: 0;
    margin-bottom: 0;
  }

  .operations-page .table-pager.pager {
    width: calc(100% - 48px);
  }
}

.actions-page {
  padding-top: 38px;
}

.actions-list {
  display: grid;
  gap: 14px;
  width: min(486px, 100%);
}

.action-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  min-height: 74px;
  padding: 0 18px;
  border-radius: 12px;
  color: var(--control-accent);
  text-align: left;
  background: #ffffff;
}

.action-row:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.actions-page.is-disabled .action-row {
  color: #b7b7b7;
}

.actions-page.is-disabled .restart-icon,
.actions-page.is-disabled .toggle-row span {
  color: #b7b7b7;
}

.action-row.is-loading .restart-icon {
  animation: action-spin 0.9s linear infinite;
}

.action-row strong {
  font-size: 17px;
  font-weight: 900;
}

.action-row i {
  color: #c9c9c9;
  font-size: 52px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

.restart-icon {
  display: inline-grid;
  place-items: center;
  color: var(--control-accent);
  font-size: 36px;
  line-height: 1;
}

.restart-icon .ui-icon {
  width: 34px;
  height: 34px;
}

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

.toggle-row {
  grid-template-columns: minmax(0, 1fr) auto 58px;
  column-gap: 18px;
  color: #000000;
}

.toggle-row span {
  color: #8f8f8f;
  font-weight: 900;
  min-width: 86px;
  text-align: right;
}

.ui-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 27px;
}

.ui-switch input {
  position: absolute;
  opacity: 0;
}

.ui-switch i {
  position: absolute;
  inset: 0;
  border: 3px solid #262626;
  border-radius: 999px;
  background: #ffffff;
}

.ui-switch i::after {
  position: absolute;
  top: 4px;
  left: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  content: "";
  background: #111111;
}

.ui-switch.is-on i {
  border-color: #1685df;
  background: #1685df;
}

.ui-switch.is-on i::after {
  left: 28px;
  background: #cde8ff;
}

.settings-page {
  align-items: start;
  padding-top: 28px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(520px, 660px) minmax(520px, 660px);
  gap: 34px;
  width: min(1380px, calc(100vw - 48px));
}

.settings-left {
  display: grid;
  gap: 34px;
}

.settings-card {
  padding: 16px 18px;
  border-radius: 10px;
  background: #ffffff;
}

.settings-card h2 {
  margin: 0 0 14px;
  color: #000000;
  font-size: 15px;
  font-weight: 900;
}

.settings-form,
.features-list {
  display: grid;
}

.form-row,
.feature-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 54px;
  border-bottom: 1px solid #dddddd;
}

.form-row strong,
.feature-row span {
  color: #111111;
  font-size: 14px;
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 26px;
  border: 1px solid #9c9c9c;
  color: #333333;
  background: #ffffff;
}

.form-row textarea {
  min-height: 72px;
  resize: vertical;
}

.form-row select {
  background: #dddddd;
}

.setting-combo {
  position: relative;
  width: 100%;
}

.setting-combo-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #9c9c9c;
  background: #dddddd;
  color: #333333;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.setting-combo-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-combo-button i {
  width: 9px;
  height: 9px;
  border-right: 2px solid #333333;
  border-bottom: 2px solid #333333;
  transform: rotate(45deg) translateY(-2px);
}

.setting-combo.is-disabled .setting-combo-button {
  color: #8b8b8b;
  cursor: not-allowed;
}

.setting-combo-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.setting-combo-search {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c8c8c8;
  border-radius: 6px;
}

.setting-combo-options {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
}

.setting-combo-options button {
  padding: 10px 8px;
  border: 0;
  background: transparent;
  color: #111111;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.setting-combo-options button:hover,
.setting-combo-options button.is-selected {
  background: #cfeaff;
  color: #ff2b2b;
}

.setting-combo-options em {
  padding: 12px 8px;
  color: #8b8b8b;
  font-style: normal;
  font-weight: 800;
}

.feature-row {
  grid-template-columns: minmax(0, 1fr) 58px;
  min-height: 52px;
}

.features-card {
  align-self: start;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  width: min(1380px, calc(100vw - 48px));
  margin-top: 18px;
}

.settings-apply-button {
  min-width: 180px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: var(--control-accent);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px var(--control-accent-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.settings-apply-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 42, 35, 0.32);
}

.settings-apply-button:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
}

.settings-apply-button.is-loading {
  opacity: 0.72;
}

.cassettes-page {
  align-items: start;
  padding-top: 28px;
}

.cassettes-layout {
  display: grid;
  grid-template-columns: minmax(560px, 690px) minmax(500px, 690px);
  gap: 34px;
  width: min(1460px, calc(100vw - 48px));
}

.cashout-card,
.cashin-card,
.coins-card,
.balance-card {
  width: 100%;
}

.cashout-card h2,
.cashin-card h2,
.coins-card h2,
.balance-card h2 {
  color: #000000;
}

.cashout-row {
  display: grid;
  grid-template-columns: 130px 70px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
}

.cashout-row > strong {
  font-size: 16px;
  font-weight: 900;
}

.cashout-text {
  display: grid;
  gap: 3px;
}

.cashout-text em {
  margin-top: 12px;
  color: var(--success);
  font-style: normal;
}

.cassette-empty {
  display: grid;
  place-items: center;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
  color: #999999;
  font-size: 15px;
  font-weight: 900;
}

.level-meter {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 56px;
  height: 104px;
  border-radius: 7px;
  background: #e9e9e9;
  overflow: hidden;
}

.level-meter i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 3px;
}

.level-red i {
  background: #ff3b38;
}

.level-green i {
  background: var(--success);
}

.level-blue i {
  background: #1685df;
}

.level-navy i {
  background: #07107d;
}

.level-meter b {
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    0 0 1px rgba(0, 0, 0, 0.85);
}

.level-red b,
.level-green b {
  color: #ffffff;
}

.cassettes-side {
  display: grid;
  gap: 34px;
  align-content: start;
}

.cassette-summary {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 10px 22px 20px;
}

.cassette-summary div:last-child {
  display: grid;
  gap: 8px;
}

.cashin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cashin-columns > div {
  display: grid;
  gap: 10px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.cashin-columns h3 {
  margin: 0 0 10px;
  text-align: center;
}

.balance-row {
  display: grid;
  grid-template-columns: 90px 46px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.balance-row span {
  color: #25c9c6;
  font-size: 28px;
}

.balance-row div {
  display: grid;
  gap: 6px;
}

.table-detail-page {
  align-items: start;
  justify-items: stretch;
  padding: 20px 24px 34px;
  gap: 10px;
}

.detail-screen .table-detail-page {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  padding: 12px 18px 18px;
  overflow: hidden;
}

.detail-screen .table-detail-page.is-pager-hidden {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.detail-table-card {
  max-width: 100%;
  min-height: 620px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.detail-screen .detail-table-card {
  min-height: 0;
  height: 100%;
}

.detail-data-table {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-screen .detail-data-table {
  height: 100%;
  min-height: 0;
}

.detail-data-head,
.detail-data-row {
  display: grid;
  width: max-content;
  min-width: var(--table-auto-min-width, 1300px);
}

.exchange-table .detail-data-head,
.exchange-table .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 250px 195px 295px 295px 195px 195px 195px);
  min-width: var(--table-auto-min-width, 1620px);
}

.payments-in-table .detail-data-head,
.payments-in-table .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 250px 410px 195px 295px 195px 195px 195px 195px);
  min-width: var(--table-auto-min-width, 1930px);
}

.payments-out-table .detail-data-head,
.payments-out-table .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 250px 410px 195px 195px 195px 195px 195px);
}

.exchange-table.is-global-operations .detail-data-head,
.exchange-table.is-global-operations .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 230px 230px 190px 275px 275px 180px 180px 180px);
  min-width: var(--table-auto-min-width, 1740px);
}

.payments-in-table.is-global-operations .detail-data-head,
.payments-in-table.is-global-operations .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 230px 230px 380px 180px 260px 180px 180px 180px 180px);
  min-width: var(--table-auto-min-width, 2000px);
}

.payments-out-table.is-global-operations .detail-data-head,
.payments-out-table.is-global-operations .detail-data-row {
  grid-template-columns: var(--table-auto-columns, 230px 230px 380px 180px 180px 180px 180px 180px);
  min-width: var(--table-auto-min-width, 1740px);
}

.is-global-operations .detail-data-row > span:first-child {
  padding-right: calc(var(--table-cell-x) + 18px);
}

.detail-data-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  color: #3f3f47;
  font-size: var(--table-head-font-size);
  font-weight: var(--table-head-font-weight);
  background: #ffffff;
}

.detail-data-head > span,
.detail-data-row > span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 var(--table-cell-x);
  border-right: 2px solid #e6e6e6;
  border-bottom: 2px solid #e6e6e6;
}

.detail-data-row > span:first-child {
  padding-right: calc(var(--table-cell-x) + 22px);
}

.is-global-operations .detail-data-row > span:first-child:not(.row-with-action) {
  padding-right: var(--table-cell-x);
}

.detail-data-row {
  appearance: none;
  padding: 0;
  min-height: 78px;
  color: #3b3f45;
  font: inherit;
  font-size: var(--table-body-font-size);
  text-align: left;
  background: var(--row);
}

.detail-data-row.is-warning {
  color: #ff2b28;
}

.detail-data-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  min-width: 100%;
  color: #999999;
  font-size: var(--table-body-font-size);
  font-weight: var(--table-body-font-weight);
  background: var(--row);
  border-bottom: 2px solid #e6e6e6;
}

.detail-data-row > span:first-child {
  position: relative;
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.detail-data-row .row-with-action {
  position: relative;
  padding-right: calc(var(--table-cell-x) + var(--table-action-button-width) + var(--table-action-gap));
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.detail-data-row > span:first-child i,
.detail-data-row .row-detail-button {
  position: absolute;
  top: 50%;
  right: var(--table-cell-x);
  display: grid;
  place-items: center;
  width: var(--table-action-button-width);
  height: var(--table-action-button-width);
  color: var(--control-accent);
  font-size: 23px;
  font-style: normal;
  cursor: pointer;
  transform: translateY(-50%);
}

.operation-machine-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding-right: calc(var(--table-action-button-width) + var(--table-action-gap));
  line-height: 1.12;
}

.operation-machine-cell strong {
  font-size: var(--table-primary-font-size);
  font-weight: var(--table-body-font-weight);
}

.operation-machine-cell small {
  font-size: var(--table-secondary-font-size);
  font-weight: var(--table-body-font-weight);
}

.operation-machine-open-button {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: var(--table-action-button-width);
  height: var(--table-action-button-width);
  padding: 8px 2px;
  border: 0;
  color: var(--control-accent);
  font: inherit;
  font-size: 23px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  appearance: none;
}

.operation-machine-open-button:hover,
.operation-machine-open-button:focus-visible {
  color: var(--control-accent-hover);
}

.detail-data-row.is-opening {
  background: var(--control-accent-soft);
  opacity: 0.9;
  pointer-events: none;
}

.table-pager {
  width: 100%;
  margin-top: 20px;
}

.operations-screen .operation-tabs {
  flex-shrink: 0;
}

.operations-screen {
  grid-template-rows: 58px 38px minmax(0, 1fr) var(--bottom-nav-height);
}

.operations-page {
  grid-template-rows: auto minmax(0, 1fr);
  padding-bottom: 6px;
}

.operations-screen .bottom-nav {
  min-height: var(--bottom-nav-min-height);
  margin-top: 0;
  padding-top: var(--bottom-nav-padding-top);
}

.operations-page .table-detail-page {
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  height: 100%;
  padding: 0;
  gap: 6px;
  overflow: hidden;
}

.operations-page .table-detail-page.has-summary,
.operations-page .table-detail-page.has-pager {
  grid-template-rows: minmax(0, 1fr) auto;
}

.operations-page .table-detail-page.has-summary.has-pager {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.operations-page .table-detail-page.is-pager-hidden {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.operations-page .detail-table-card {
  min-height: 0;
  height: 100%;
}

.operations-page .detail-data-table {
  height: 100%;
}

.operation-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #d9dfe2;
  border-radius: 8px;
  color: #182034;
  background: #e4ebef;
  font-size: 15px;
  font-weight: 900;
}

.operation-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  min-width: 0;
}

.operation-summary strong {
  color: #182034;
}

.operation-summary span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.operation-summary span span {
  color: #0e2360;
  white-space: nowrap;
}

.operations-page .table-pager {
  margin-top: 0;
}

.operations-page .detail-data-row strong {
  line-height: 1.2;
}

.operation-detail-page {
  min-height: 0;
  padding: 26px 28px 34px;
  background: var(--page-gray);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.operation-detail-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.operation-detail-layout {
  display: grid;
  gap: 14px;
  width: min(600px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.operation-detail-card,
.operation-receipt-card {
  border-radius: 8px;
  background: #ffffff;
}

.operation-detail-card {
  padding: 18px 18px 12px;
}

.operation-extra-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
}

.operation-detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid #dddddd;
}

.operation-detail-row strong {
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.operation-detail-row span {
  min-width: 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.operation-detail-row.is-ok span {
  color: #1fc53f;
}

.operation-detail-row.is-error span {
  color: #ff2b28;
}

.operation-detail-row.is-link span {
  color: #0077ff;
}

.operation-detail-row.is-mode span {
  color: #8800d8;
}

.operation-receipt-card {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
}

.receipt-button {
  min-width: 180px;
  min-height: 40px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: var(--control-accent);
}

.receipt-button:active {
  transform: translateY(1px);
}

.filter-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

.filter-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  background: #ffffff;
}

.filter-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.filter-header button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--control-accent);
  font-size: 18px;
  font-weight: 800;
}

.filter-header button:last-child {
  justify-self: end;
}

.filter-back-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--control-accent);
  mask: url("assets/pager_arrow_left.svg") center / contain no-repeat;
  -webkit-mask: url("assets/pager_arrow_left.svg") center / contain no-repeat;
}

.filter-page {
  display: grid;
  gap: 22px;
  padding: 0 28px 48px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.filter-field {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid #d0d0d0;
}

.filter-field:first-child {
  border-top: 0;
}

.filter-field > strong {
  font-size: 16px;
  font-weight: 900;
}

.filter-select {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 12px;
  border: 1px solid #bfbfbf;
  border-radius: 12px;
  color: #222222;
  text-align: left;
  background: #ffffff;
}

.filter-search-input {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: 0;
  color: #222222;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.filter-search-input::placeholder {
  color: #8f8f8f;
  font-weight: 500;
}

.filter-select button {
  display: grid;
  place-items: center;
  color: var(--control-accent);
  font-size: 26px;
  font-style: normal;
  transform: rotate(180deg);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.filter-tags em {
  color: #8f8f8f;
  font-style: normal;
  font-weight: 500;
}

.filter-tags b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c8c8c8;
  border-radius: 7px;
  color: var(--accent-strong);
  background: #ffffff;
}

.filter-tags small {
  color: #b8b8b8;
  font-size: 26px;
  line-height: 1;
}

.filter-options {
  display: none;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #ffffff;
}

.filter-field.is-active .filter-options {
  display: grid;
  gap: 6px;
}

.filter-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 10px;
  color: #111111;
  text-align: left;
}

.filter-options button small {
  color: #8a8a8a;
}

.filter-options button i {
  color: var(--control-accent);
  font-style: normal;
  font-weight: 900;
}

.filter-options button.is-selected {
  color: var(--accent-strong);
  background: #cfeaff;
}

.filter-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-date-range:empty {
  display: none;
}

.filter-date-range label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #333333;
  font-size: 13px;
  font-weight: 900;
}

.filter-date-range input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bfbfbf;
  border-radius: 10px;
  box-sizing: border-box;
  color: #222222;
  background: #ffffff;
  font-size: 15px;
  font-weight: 800;
  outline: 0;
}

.filter-date-range input:focus {
  border-color: var(--control-accent);
}

.search-field button.is-active {
  color: var(--control-accent);
}

.profile-screen {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) var(--bottom-nav-height);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: var(--page-gray);
}

.profile-screen .mobile-header {
  height: 58px;
}

.profile-page {
  min-height: 0;
  padding: 22px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.profile-page h1,
.profile-page h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}

.profile-page h2 {
  margin-top: 24px;
}

.language-card {
  position: relative;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 0 14px;
  border-radius: 10px;
  color: #111111;
  text-align: left;
  background: #ffffff;
}

.language-row strong {
  font-weight: 900;
}

.language-row span {
  color: var(--control-accent);
  font-weight: 900;
}

.language-menu {
  position: absolute;
  z-index: 30;
  top: 58px;
  right: 18px;
  display: none;
  width: min(232px, calc(100vw - 56px));
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.language-menu.is-open {
  display: grid;
}

.language-menu button {
  min-height: 52px;
  border-bottom: 1px solid #dddddd;
  color: var(--control-accent);
  font-weight: 900;
}

.language-menu button:last-child {
  border-bottom: 0;
}

.notifications-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff;
}

.notifications-empty {
  margin: 0;
  padding: 22px 12px;
  border-radius: 9px;
  color: #7d838d;
  font-size: 15px;
  font-weight: 800;
  background: #f0f1f7;
}

.notification-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: start;
  min-height: 94px;
  padding: 14px 10px;
  border-radius: 9px;
  color: var(--accent-strong);
  background: #f0f1f7;
}

.notification-item > i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-strong);
  border-radius: 50%;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.notification-item strong {
  display: block;
  margin-bottom: 28px;
  font-size: 16px;
  font-weight: 900;
}

.notification-item p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.notification-item p.is-time {
  color: #000000;
}

.notification-item > button {
  align-self: center;
  color: #000000;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

@media (max-width: 1180px) {
  .settings-layout,
  .cassettes-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --bottom-nav-height: calc(56px + var(--safe-area-bottom));
    --bottom-nav-min-height: 52px;
    --bottom-nav-padding-top: 0;
    --bottom-nav-padding-bottom: calc(2px + var(--safe-area-bottom));
    --table-head-font-size: 11px;
    --table-body-font-size: 11px;
    --table-primary-font-size: 11px;
    --table-secondary-font-size: 11px;
    --table-micro-font-size: 11px;
    --table-cell-x: 4px;
  }

  .startup-service-screen {
    padding: 82px 28px 24px;
  }

  .startup-service-card {
    gap: 12px;
    padding: 24px 22px 30px;
    border-radius: 22px;
  }

  .startup-service-card h1 {
    font-size: 32px;
  }

  .startup-service-card p {
    font-size: 17px;
  }

  .startup-service-state {
    min-height: 54px;
    padding: 12px 14px;
    font-size: 15px;
  }

  .startup-service-card em {
    font-size: 14px;
  }

  .mobile-header {
    height: 52px;
    padding: 0 18px;
  }

  .service-screen {
    grid-template-rows: 52px 34px minmax(0, 1fr) var(--bottom-nav-height);
  }

  .dashboard-screen {
    grid-template-rows: 52px minmax(0, 1fr) var(--bottom-nav-height);
  }

  .profile-screen {
    grid-template-rows: 52px minmax(0, 1fr) var(--bottom-nav-height);
  }

  .profile-screen .mobile-header {
    height: 52px;
  }

  .brand {
    width: 90px;
  }

  .profile-button {
    width: 32px;
    height: 32px;
  }

  .profile-button img {
    width: 30px;
    height: 30px;
  }

  .section-tabs {
    gap: 14px;
    min-height: 34px;
    padding: 0 20px;
  }

  .tab-button {
    min-height: 34px;
    font-size: 14px;
  }

  .service-page h1 {
    font-size: 28px;
  }

  .dashboard-page {
    gap: 14px;
    padding: 16px 14px 8px;
  }

  .dashboard-page h1 {
    font-size: 28px;
  }

  .dashboard-card-title {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px 10px;
  }

  .dashboard-card-title-with-filter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: start;
    gap: 10px;
    padding-right: 14px;
  }

  .dashboard-card-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .dashboard-card-title-with-filter > .dashboard-card-actions {
    position: static;
    display: contents;
  }

  .dashboard-card-title-with-filter .dashboard-card-filter-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .dashboard-card-title-with-filter .dashboard-operation-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .dashboard-card-filter-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .dashboard-card-corner-filter-button {
    top: 16px;
    right: 14px;
  }

  .dashboard-stats-card .dashboard-card-title {
    padding-right: 64px;
  }

  .dashboard-notifications-card {
    min-height: 150px;
    padding-bottom: 12px;
  }

  .dashboard-notifications-list {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 12px 2px;
  }

  .dashboard-notifications-list .notification-item {
    min-height: 0;
    padding: 12px;
  }

  .dashboard-notifications-list .notification-item strong {
    margin-bottom: 8px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px 14px;
  }

  .dashboard-daily-card {
    min-height: 612px;
    padding-bottom: 14px;
  }

  .dashboard-daily-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px;
  }

  .dashboard-daily-item {
    min-height: 116px;
    padding: 8px 0;
  }

  .dashboard-daily-item strong {
    height: 52px;
  }

  .dashboard-stats-card {
    min-height: 650px;
  }

  .dashboard-stat-item {
    min-height: 116px;
    padding: 8px 0;
  }

  .dashboard-stat-item strong {
    height: 52px;
  }

  .dashboard-operation-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 14px;
  }

  .dashboard-operation-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 124px;
    padding-bottom: 14px;
  }

  .dashboard-operation-title.dashboard-card-title-with-filter {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    padding-right: 14px;
  }

  .dashboard-operation-toggle {
    position: relative;
    z-index: 2;
    flex: 1;
    width: auto;
    align-self: stretch;
  }

  .dashboard-operation-toggle button {
    flex: 1;
    min-width: 0;
  }

  .dashboard-operation-summary {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 4px 12px 10px;
  }

  .dashboard-operation-summary div {
    min-height: 72px;
    padding: 12px;
  }

  .dashboard-operation-summary b {
    font-size: 21px;
  }

  .dashboard-operation-chart-wrap {
    flex: 0 0 auto;
    min-height: 214px;
    height: 214px;
    margin: 10px 12px 0;
  }

  .dashboard-operation-chart {
    height: 214px;
    min-height: 214px;
  }

  .dashboard-latest-table {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    padding: 0 var(--table-cell-x) 16px;
    overflow: visible;
  }

  .dashboard-latest-card {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .dashboard-latest-flow {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 16px;
  }

  .dashboard-latest-head {
    display: none;
  }

  .dashboard-latest-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 8px;
    padding: 10px 12px;
  }

  .dashboard-latest-row > span {
    display: grid;
    grid-template-columns: minmax(96px, 0.52fr) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: var(--table-body-font-size);
  }

  .dashboard-latest-row > span::before {
    content: attr(data-label);
    color: var(--accent-strong);
    font-size: var(--table-secondary-font-size);
    font-weight: 900;
    line-height: 1.2;
  }

  .dashboard-latest-row .dashboard-latest-machine-cell {
    display: block;
  }

  .dashboard-latest-row .dashboard-latest-machine-cell::before {
    display: block;
    margin-bottom: 5px;
  }

  .dashboard-system-table {
    padding: 0 var(--table-cell-x) 10px;
  }

  .dashboard-system-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 2px 12px 14px;
    overflow: hidden;
  }

  .dashboard-system-card {
    margin-bottom: 0;
  }


  .dashboard-system-filters::-webkit-scrollbar {
    display: none;
  }

  .dashboard-system-filter {
    justify-content: flex-start;
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
    white-space: normal;
  }

  .machines-head,
  .machines-row {
    grid-template-columns: var(--table-auto-columns, 190px 96px 250px 220px 170px 260px 260px 260px 260px 260px);
    min-width: var(--table-auto-min-width, 2226px);
  }

  .detail-header {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 6px;
    min-height: 82px;
    padding: 10px 18px;
  }

  .detail-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    min-height: 24px;
    max-width: 100%;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .detail-header > span {
    display: none;
  }

  .back-button {
    min-width: 0;
    gap: 8px;
    font-size: 18px;
  }

  .back-button span {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-page {
    padding-top: 28px;
  }

  .main-detail-page {
    padding-top: 18px;
  }

  .rates-strip {
    width: 100%;
    max-width: 100%;
  }

  .machine-summary {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .machine-avatar {
    width: 120px;
    height: 120px;
  }

  .info-row {
    grid-template-columns: minmax(135px, 0.7fr) minmax(0, 1fr);
  }

  .operation-detail-page {
    padding: 18px 16px 28px;
  }

  .operation-detail-layout {
    width: min(600px, 100%);
    margin-right: auto;
  }
}

@media (max-width: 430px) {
  .screen {
    padding-bottom: 0;
  }

  .detail-header {
    min-height: 86px;
    padding: 10px 16px;
  }

  .detail-header h1 {
    font-size: 14px;
  }

  .back-button {
    font-size: 18px;
  }

  .back-button i {
    width: 13px;
    height: 13px;
    border-width: 3px;
  }

  .back-button span {
    max-width: none;
  }

  .detail-tabs {
    min-height: 50px;
  }

  .detail-screen .table-detail-page {
    padding: 8px 10px 12px;
    gap: 8px;
  }

  .main-detail-page {
    gap: 16px;
    padding: 14px 12px 28px;
  }

  .actions-page {
    padding: 16px 12px 28px;
  }

  .settings-page {
    padding: 16px 12px 28px;
  }

  .settings-layout,
  .settings-actions {
    width: 100%;
  }

  .settings-left {
    gap: 18px;
  }

  .settings-card {
    padding: 16px 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    min-height: 0;
    padding: 12px 0;
  }

  .form-row strong {
    max-width: 100%;
    line-height: 1.15;
    white-space: normal;
  }

  .form-row input,
  .form-row select,
  .form-row textarea,
  .setting-combo-button {
    min-height: 36px;
    font-size: 16px;
  }

  .form-row textarea {
    min-height: 86px;
  }

  .settings-actions {
    margin-top: 12px;
  }

  .settings-apply-button {
    width: 100%;
  }

  .operation-detail-page {
    padding: 14px 12px 26px;
  }

  .operation-detail-card {
    padding: 14px 16px 10px;
  }

  .operation-detail-row {
    grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
    gap: 12px;
    min-height: 46px;
  }

  .operation-detail-row strong,
  .operation-detail-row span {
    font-size: 12px;
  }

  .operation-receipt-card {
    padding: 14px;
  }

  .receipt-button {
    width: 100%;
  }

  .actions-list {
    gap: 12px;
    width: 100%;
  }

  .action-row {
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    min-height: 68px;
    padding: 0 16px;
  }

  .action-row strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .toggle-row {
    grid-template-columns: minmax(0, 1fr) auto 52px;
    column-gap: 10px;
  }

  .rate-card {
    min-width: 128px;
  }

  .service-page {
    grid-template-rows: auto minmax(0, 1fr) 50px;
    row-gap: 4px;
    padding: 12px 10px 0;
  }

  .service-page.is-pager-hidden {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .cassette-service-page {
    grid-template-rows: auto auto minmax(0, 1fr) 50px;
  }

  .cassette-service-page.is-pager-hidden {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .service-page > .pager {
    align-self: start;
    margin-top: 0;
    margin-bottom: 0;
  }

  .service-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
  }

  .cassette-legend {
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 12px;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-bottom: 4px;
  }

  .service-log-search-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  .search-field {
    grid-template-columns: 28px minmax(0, 1fr) 24px 28px;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 11px;
  }

  .search-field span {
    font-size: 28px;
  }

  .search-field button {
    font-size: 24px;
  }

  .search-field .search-clear {
    width: 24px;
    height: 24px;
    mask-size: 13px 13px;
    -webkit-mask-size: 13px 13px;
  }

  .service-log-search-action {
    min-height: 36px;
    border-radius: 11px;
  }

  .service-log-search-icon {
    width: 24px;
    height: 24px;
  }

  .table-card {
    padding: 8px;
    border-radius: 11px;
  }

  .machines-table {
    width: 100%;
  }

  .machines-table,
  .cassette-matrix-table,
  .hopper-matrix-table,
  .cash-operation-table,
  .service-log-table,
  .detail-data-table {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: auto;
  }

  .cassette-matrix-card {
    padding: 8px;
  }

  .cassette-matrix-head,
  .cassette-matrix-row {
    grid-template-columns: var(--table-auto-columns, 170px repeat(9, 174px) 188px);
    min-width: var(--table-auto-min-width, 1924px);
  }

  .cassette-matrix-head {
    min-height: 52px;
    font-size: var(--table-head-font-size);
  }

  .cassette-matrix-head span,
  .cassette-matrix-row > span {
    padding: 0 var(--table-cell-x);
  }

  .cassette-matrix-row {
    min-height: 124px;
  }

  .cassette-matrix-cell {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }

  .cassette-matrix-meter {
    width: 48px;
    height: 84px;
  }

  .cassette-matrix-lines {
    font-size: var(--table-micro-font-size);
  }

  .cassette-matrix-empty {
    min-width: var(--table-auto-min-width, 1924px);
    min-height: 124px;
  }

  .hopper-matrix-card {
    padding: 8px;
  }

  .hopper-matrix-head,
  .hopper-matrix-row {
    grid-template-columns: var(--table-auto-columns, 170px 190px repeat(8, 144px));
    min-width: var(--table-auto-min-width, 1512px);
  }

  .hopper-matrix-head {
    min-height: 52px;
    font-size: var(--table-head-font-size);
  }

  .hopper-matrix-head span,
  .hopper-matrix-row > span {
    padding: 0 var(--table-cell-x);
  }

  .hopper-matrix-row {
    min-height: 84px;
  }

  .hopper-fill-cell {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
  }

  .hopper-matrix-table .cassette-matrix-meter {
    width: 44px;
    height: 72px;
  }

  .hopper-matrix-lines,
  .hopper-nominal-cell {
    font-size: var(--table-micro-font-size);
  }

  .hopper-matrix-empty {
    min-width: var(--table-auto-min-width, 1512px);
    min-height: 84px;
  }

  .service-log-page {
    grid-template-rows: auto auto minmax(0, 1fr) 50px;
  }

  .service-log-page.is-pager-hidden {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .service-log-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    min-height: 0;
    margin-bottom: 10px;
    font-size: 11px;
  }

  .server-time-note {
    flex-basis: 100%;
    line-height: 1.2;
  }

  .service-log-card {
    padding: 8px;
  }

  .service-log-table.is-status-history .service-log-head,
  .service-log-table.is-status-history .service-log-row {
    grid-template-columns: var(--table-auto-columns, 150px 170px 150px 420px);
    min-width: var(--table-auto-min-width, 890px);
  }

  .service-log-table.is-machine-log .service-log-head,
  .service-log-table.is-machine-log .service-log-row {
    grid-template-columns: var(--table-auto-columns, 170px 170px 520px);
    min-width: var(--table-auto-min-width, 860px);
  }

  .service-log-table.is-cassette-log .service-log-head,
  .service-log-table.is-cassette-log .service-log-row {
    grid-template-columns: 120px minmax(1040px, 1fr);
    min-width: 1160px;
  }

  .service-log-head {
    min-height: 48px;
    font-size: var(--table-head-font-size);
  }

  .service-log-row {
    min-height: 72px;
    font-size: var(--table-body-font-size);
  }

  .service-log-head span,
  .service-log-row > span {
    padding: 0 var(--table-cell-x);
  }

  .service-log-row.is-cassette-log {
    min-height: 204px;
  }

  .service-log-row.is-cassette-log > span {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .cassette-log-section {
    padding: 7px 8px 8px;
    border-left-width: 3px;
  }

  .cassette-log-section > b {
    font-size: 10px;
  }

  .cassette-log-cash-grid {
    grid-template-columns: repeat(10, 94px);
    gap: 8px;
  }

  .cassette-log-hopper-grid {
    grid-template-columns: 150px repeat(8, 94px);
    gap: 8px;
  }

  .cassette-log-details {
    gap: 7px;
  }

  .cassette-log-section {
    gap: 5px;
  }

  .cassette-log-cash-grid em,
  .cassette-log-hopper-grid em {
    font-size: 9px;
  }

  .cassette-log-details .cassette-matrix-cell,
  .cassette-log-details .hopper-fill-cell {
    grid-template-columns: 38px minmax(48px, 1fr);
    gap: 5px;
    min-height: 72px;
  }

  .cassette-log-details .cassette-matrix-meter {
    width: 34px;
    min-width: 34px;
    height: 64px;
  }

  .cassette-log-details .cassette-matrix-lines,
  .cassette-log-details .hopper-matrix-lines,
  .cassette-log-details .hopper-nominal-cell {
    font-size: 9px;
    line-height: 1.12;
  }

  .cassette-log-details .hopper-nominal-cell {
    min-height: 40px;
  }

  .cassette-log-balance {
    gap: 5px 10px;
    padding: 6px 8px;
    border-left-width: 3px;
  }

  .cassette-log-balance strong {
    font-size: 11px;
  }

  .reading-log-page {
    --table-head-font-size: 13px;
    --table-body-font-size: 12px;
    --table-primary-font-size: 16px;
    --table-secondary-font-size: 12px;
    grid-template-rows: 38px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 8px 12px 6px;
  }

  .reading-log-page.is-pager-hidden {
    grid-template-rows: 38px minmax(0, 1fr);
  }

  .reading-reset-button,
  .reading-close-button {
    width: 30px;
    height: 30px;
    margin-top: 5px;
  }

  .reading-reset-button {
    margin-left: 5px;
  }

  .reading-close-button {
    margin-right: 5px;
  }

  .reading-reset-icon,
  .reading-close-icon {
    width: 15px;
    height: 15px;
  }

  .reading-log-page .service-log-card {
    padding: 8px;
  }

  .reading-table-page > .table-card,
  .reading-table-page .detail-table-card {
    padding: 8px;
  }

  .reading-log-page .service-log-head {
    min-height: 52px;
  }

  .reading-log-page .service-log-row {
    min-height: 78px;
  }

  .cash-operation-card {
    padding: 8px;
  }

  .cash-operation-head,
  .cash-operation-row {
    grid-template-columns: var(--table-auto-columns, 170px 130px 166px 280px 72px);
    min-width: var(--table-auto-min-width, 818px);
  }

  .cash-operation-head {
    min-height: 52px;
    font-size: var(--table-head-font-size);
  }

  .cash-operation-head span,
  .cash-operation-row > span {
    padding: 0 var(--table-cell-x);
  }

  .cash-operation-row {
    min-height: 68px;
    font-size: var(--table-body-font-size);
  }

  .cash-operation-detail-button {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .cash-operation-empty {
    min-width: var(--table-auto-min-width, 818px);
    min-height: 68px;
  }

  .receipt-modal-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .receipt-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 8px;
  }

  .receipt-modal-header {
    grid-template-columns: minmax(0, 1fr) 38px 38px 38px;
    min-height: 52px;
    padding: 0 8px 0 14px;
  }

  .receipt-modal-header strong {
    font-size: 17px;
  }

  .receipt-modal-header button {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .receipt-modal-body {
    max-height: calc(100vh - 72px);
    padding: 14px;
    font-size: 15px;
  }

  .pager {
    grid-template-columns: minmax(70px, 0.9fr) minmax(62px, 0.8fr) 40px minmax(100px, 1.2fr);
    gap: 4px;
    min-height: 44px;
    margin: 4px 0 0;
    padding: 0 8px;
    border-radius: 11px;
  }

  .pager button {
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 3px;
    font-size: 12px;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  .pager button span {
    min-width: 0;
  }

  .pager-info {
    font-size: 13px;
  }

  .pager-arrow {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .operations-screen {
    grid-template-rows: 52px 34px minmax(0, 1fr) var(--bottom-nav-height);
  }

  .operations-screen .bottom-nav {
    min-height: var(--bottom-nav-min-height);
    padding-top: var(--bottom-nav-padding-top);
  }

  .bottom-nav {
    align-items: end;
  }

  .operations-page {
    grid-template-rows: auto minmax(0, 1fr);
    padding-bottom: 6px;
    overflow: hidden;
  }

  .operations-page .table-detail-page {
    min-height: 0;
    height: 100%;
    gap: 4px;
    overflow: hidden;
  }

  .operations-page .detail-table-card {
    min-height: 0;
    height: 100%;
  }

  .operations-page .detail-data-table {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .operations-page .detail-data-empty {
    min-height: 180px;
  }

  .operations-page .detail-data-row {
    min-height: 92px;
  }

  .operations-page .detail-data-row > span:first-child {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .operation-summary {
    padding: 10px 12px;
    font-size: 13px;
  }

  .operation-summary div {
    display: grid;
    gap: 3px;
  }

  .operation-summary span span {
    white-space: normal;
  }

  .machine-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .machine-summary-copy {
    justify-items: center;
    margin-top: 14px;
  }

  .info-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 12px 0;
  }

  .info-row span {
    justify-self: start;
    text-align: left;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    .service-screen,
    .operations-screen {
      grid-template-rows: 58px 34px minmax(0, 1fr) var(--bottom-nav-height);
    }

    .dashboard-screen {
      grid-template-rows: 58px minmax(0, 1fr) var(--bottom-nav-height);
    }

    .profile-screen {
      grid-template-rows: 58px minmax(0, 1fr) var(--bottom-nav-height);
    }

    .mobile-header,
    .profile-screen .mobile-header {
      height: 58px;
      padding-left: calc(23px + env(safe-area-inset-left, 0px));
      padding-right: calc(23px + env(safe-area-inset-right, 0px));
    }

    .brand {
      width: 35px;
      height: 35px;
      justify-content: center;
    }

    .brand-logo-full {
      display: none;
    }

    .brand-logo-ios {
      display: block;
      width: 33px;
      height: 33px;
      object-fit: contain;
    }

    .profile-button {
      width: 35px;
      height: 35px;
    }

    .profile-button img {
      width: 33px;
      height: 33px;
    }

    .profile-done-button {
      width: 35px;
      min-width: 35px;
      height: 35px;
      min-height: 35px;
      padding: 0;
      border-radius: 50%;
      font-size: 0;
      box-shadow: none;
    }

    .profile-done-button::before {
      width: 16px;
      height: 16px;
      content: "";
      background: #ffffff;
      mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2 7.2 13.4 15 5.2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2 7.2 13.4 15 5.2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .detail-header,
    .filter-header {
      grid-template-columns: 35px minmax(0, 1fr) 35px;
      min-height: 58px;
      padding-left: calc(23px + env(safe-area-inset-left, 0px));
      padding-right: calc(23px + env(safe-area-inset-right, 0px));
    }

    .detail-header {
      padding-top: 0;
      padding-bottom: 0;
    }

    .detail-screen {
      grid-template-rows: 58px auto 46px minmax(0, 1fr);
    }

    .operation-detail-screen {
      grid-template-rows: 58px auto minmax(0, 1fr);
    }

    .detail-header h1 {
      display: none;
    }

    .detail-header > span {
      display: block;
    }

    .ios-detail-title {
      display: block;
      padding: 0 calc(23px + env(safe-area-inset-right, 0px)) 10px calc(23px + env(safe-area-inset-left, 0px));
      color: #111111;
      font-size: 14px;
      font-weight: 900;
      line-height: 1.2;
      text-align: center;
      background: #ffffff;
      overflow-wrap: anywhere;
    }

    .back-button,
    .filter-header button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 35px;
      min-width: 35px;
      height: 35px;
      min-height: 35px;
      padding: 0;
      border-radius: 50%;
      color: #ffffff;
      font-size: 0;
      line-height: 0;
      background: var(--control-accent);
    }

    .back-button {
      gap: 0;
    }

    .filter-header button {
      gap: 0;
    }

    .back-button span,
    .filter-header button span {
      display: none;
    }

    .back-button i,
    .filter-back-icon {
      width: 16px;
      height: 16px;
      border: 0;
      background: currentColor;
      mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 3.5 6 9l5.5 5.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 3.5 6 9l5.5 5.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      transform: none;
    }

    .filter-header h1 {
      display: none;
    }

    .filter-header {
      grid-template-columns: 35px 35px;
      justify-content: space-between;
    }

    .filter-header button:last-child {
      justify-self: end;
    }

    .filter-header button:last-child::before {
      display: block;
      flex: 0 0 auto;
      width: 16px;
      height: 16px;
      content: "";
      background: currentColor;
      mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2 7.2 13.4 15 5.2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
      -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.2 7.2 13.4 15 5.2' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .filter-date-range {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
      padding-right: 16px;
      box-sizing: border-box;
    }

    .filter-date-range label {
      width: 100%;
      box-sizing: border-box;
    }

    .filter-date-range input {
      display: block;
      width: calc(100% - 16px);
      max-width: calc(100% - 16px);
      height: 42px;
      font-size: 14px;
    }

    .reading-log-page {
      padding-top: 9px;
      padding-right: calc(12px + env(safe-area-inset-right, 0px));
      padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
      padding-left: calc(12px + env(safe-area-inset-left, 0px));
    }
  }
}
