html {
  background: #0b1324;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  background: #0b1324 !important;
  color: #eaf0ff !important;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif !important;
  line-height: 1.45;
  letter-spacing: 0;
}

a {
  color: #9fbcff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: 0;
}

.card,
.box,
section,
dialog,
.modal-card,
.modal-inner {
  background: #111a33 !important;
  border-color: rgba(255,255,255,.13) !important;
  border-radius: 8px !important;
  color: #eaf0ff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

input,
select,
textarea,
button,
.btn,
.tab,
.tile,
.logout,
.back-btn,
a[data-back-btn] {
  border-radius: 8px !important;
  font: inherit;
}

input,
select,
textarea,
button,
.btn,
.tab,
.logout,
.back-btn,
a[data-back-btn] {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 14px;
}

input,
select,
textarea {
  background: #0f1933 !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  color: #eaf0ff !important;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
}

button,
.btn,
.tab,
.logout,
.back-btn,
a[data-back-btn] {
  border: 1px solid #2b74ff !important;
  background: #2b74ff !important;
  color: #fff !important;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

button.secondary,
.btn.secondary,
.ghost,
.tab:not(.active) {
  background: #0f1933 !important;
  border-color: rgba(255,255,255,.13) !important;
  color: #eaf0ff !important;
}

.muted,
.hint,
.sub,
small {
  color: #9fb0d3 !important;
}

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

th,
td {
  border-color: rgba(255,255,255,.13) !important;
  padding: 9px 10px;
}

th {
  color: #9fb0d3;
  background: rgba(255,255,255,.035);
  font-weight: 700;
}

@media (min-width: 761px) {
  button,
  .btn,
  .tab,
  .logout,
  .back-btn,
  a[data-back-btn],
  .button {
    min-height: 34px !important;
    padding: 7px 11px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  .actions,
  .ctrls,
  .tabs,
  .date-nav {
    gap: 8px !important;
  }
}

.row,
.actions,
.ctrls,
.tabs,
.date-nav,
.time-pick,
.dlg-foot,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.table-wrap,
.tableWrap,
[style*="overflow:auto"],
[style*="overflow: auto"] {
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 760px) {
  * {
    min-width: 0;
  }

  body {
    overflow-x: hidden;
    padding: 12px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  body[style*="place-items:center"],
  body[style*="align-items:center"] {
    align-items: flex-start !important;
  }

  .wrap,
  .container,
  main,
  .card,
  .box {
    width: 100%;
    max-width: none !important;
  }

  .card,
  .box,
  section {
    padding: 14px !important;
    border-radius: 8px !important;
  }

  header {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header h1,
  h1 {
    font-size: 20px !important;
    line-height: 1.2;
  }

  h2,
  h3 {
    line-height: 1.25;
  }

  input,
  select,
  textarea,
  button,
  .btn,
  .tab,
  .tile,
  .logout,
  .back-btn,
  a[data-back-btn] {
    min-height: 44px;
    font-size: 16px;
  }

  input,
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
  }

  button,
  .btn,
  .tab {
    white-space: normal;
    text-align: center;
  }

  .row,
  .actions,
  .ctrls,
  .tabs,
  .date-nav,
  .time-pick,
  .dlg-foot,
  .modal-actions {
    gap: 8px !important;
  }

  .row,
  .date-nav,
  .time-pick {
    align-items: stretch !important;
  }

  .row > *,
  .actions > *,
  .ctrls > *,
  .date-nav > *,
  .time-pick > *,
  label {
    min-width: 0 !important;
  }

  .row > div,
  .date-nav input,
  .time-pick {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }

  .actions .btn,
  .ctrls .btn,
  .tabs button,
  .date-nav button,
  .time-pick button,
  button[type="submit"] {
    flex: 1 1 100%;
    width: 100% !important;
  }

  .grid,
  .grid2,
  .kpi,
  .row {
    grid-template-columns: 1fr !important;
  }

  .tile {
    padding: 14px !important;
    min-height: 92px !important;
  }

  .tile h2 {
    font-size: 18px !important;
  }

  .back-btn,
  a[data-back-btn] {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    margin: 0 0 12px 0;
  }

  h1 {
    padding-left: 0 !important;
  }

  .srv-right {
    position: static !important;
    transform: none !important;
    display: block;
    margin-top: 8px;
    text-align: center;
  }

  .table-wrap,
  .tableWrap,
  [style*="overflow:auto"],
  [style*="overflow: auto"] {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  table {
    display: block;
    max-width: 100%;
    min-width: 560px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  th,
  td {
    padding: 10px 8px !important;
  }

  dialog,
  .modal-inner,
  #doughModal .modal-card {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    max-height: calc(100vh - 20px) !important;
    overflow: auto;
  }

  #doughModal {
    padding: 10px;
    align-items: flex-end !important;
  }
}

@media (max-width: 420px) {
  body {
    padding: 10px;
  }

  .card,
  .box,
  section {
    padding: 12px !important;
  }

  table {
    min-width: 520px;
  }
}
