/* The portal's look: the colours of the Mac portal (scripts/portal/index.html), without the custom fonts. */
:root {
  --ink: #1b1530;
  --ink-muted: #4a4370;
  --cream: #fff4de;
  --tile: #1e3fa6;
  --tile-dark: #14286e;
  --line: #e7dcc4;
  --paper: #fffaf0;
  --good: #0e9a66;
  --bad: #c7372e;
  --warn: #b26b00;
  --gold: #ffc929;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    500 15px/1.45 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  background: var(--tile);
  color: white;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
header h1 {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
}
nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
}
nav a.ativo,
nav a:hover {
  background: var(--tile-dark);
}
.spacer {
  flex: 1;
}
.chip {
  background: var(--tile-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
h2 {
  margin: 24px 0 10px;
  font-size: 18px;
}
h2:first-child {
  margin-top: 0;
}
.cartoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cartao {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 160px;
}
.cartao b {
  display: block;
  font-size: 30px;
  font-weight: 800;
}
.cartao span {
  color: var(--ink-muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 13px;
  color: var(--ink-muted);
  background: white;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tr.retirada td {
  color: var(--ink-muted);
  text-decoration: line-through;
}
tr.retirada td:last-child {
  text-decoration: none;
}
.barra {
  height: 8px;
  border-radius: 4px;
  background: var(--tile);
  min-width: 2px;
}
.filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
input,
select,
textarea {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: white;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tile);
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  background: white;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn.primario {
  background: var(--gold);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.btn.perigo {
  color: var(--bad);
  box-shadow: inset 0 0 0 2px var(--bad);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.acoes {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
td.acoes {
  display: table-cell;
}
td.acoes > * + * {
  margin-left: 6px;
}
.vazio {
  color: var(--ink-muted);
}
.etiqueta {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--line);
}
.etiqueta.mau {
  background: var(--bad);
  color: white;
}
.etiqueta.bom {
  background: var(--good);
  color: white;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 20px;
  width: min(720px, 94vw);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(27, 21, 48, 0.45);
}
dialog form {
  display: grid;
  gap: 10px;
}
dialog label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
}
.respostas {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
}
.erros {
  color: var(--bad);
  margin: 0;
  padding-left: 18px;
}
#aviso {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  max-width: 90vw;
  z-index: 5;
}
#aviso.erro {
  background: var(--bad);
}
