@font-face {
  font-family: Roboto;
  src: url("/font.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF;
}
@font-face {
  font-family: Roboto;
  src: url("/font-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  color-scheme: dark;
  --bg: #0e161a;
  --panel: #172227;
  --line: #2b3b43;
  --fg: #e5edf1;
  --muted: #8c9ea8;
  --accent: #b0ded3;
  --blue: #168fd8;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 13px;
  color: var(--fg);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body > header,
dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
header strong {
  font-size: 18px;
}
header span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.75rem;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 1.5rem;
}
h1 {
  font-size: 24px;
  margin: 0 0 1rem;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 1rem;
}
button,
input,
select {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  background: var(--panel);
  min-height: 32px;
}
button {
  cursor: pointer;
}
button:hover,
button:focus-visible {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--blue);
  color: white;
}
input,
select {
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
label {
  display: grid;
  gap: 0.4rem;
}
form {
  display: grid;
  gap: 1rem;
}
.login-card {
  max-width: 370px;
  margin: 10vh auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}
nav [aria-selected="true"] {
  background: var(--accent);
  color: #102329;
}
.muted,
small {
  color: var(--muted);
}
#message {
  min-height: 1.2rem;
}
#message.error {
  color: #ff8394;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
#settings {
  margin-top: 1rem;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
td,
th {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-weight: 500;
}
.search {
  max-width: 360px;
  margin-bottom: 1rem;
}
.row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
.row > button {
  flex: 0 auto;
}
dialog {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(920px, calc(100vw - 2rem));
  max-height: 90dvh;
  padding: 0;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(4px);
}
#customer-content {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}
.break {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 36rem;
}
code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
[hidden] {
  display: none;
}
