:root {
  --bg: #05080f;
  --panel: #0d1624;
  --border: #22344b;
  --text: #e6ecf5;
  --muted: #8494ab;
  --orange: #ff7a00;
  /* GrillPro License Manager: azul, preto e relevo 3D */
  --blue: #2f7dff;
  --blue-2: #1554d1;
  --blue-glow: rgba(47, 125, 255, 0.45);
  --red: #ef4444;
  --green: #22c55e;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(900px 420px at 85% -10%, rgba(47, 125, 255, 0.28), transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(21, 84, 209, 0.22), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 'Segoe UI', system-ui, sans-serif;
}
.hidden {
  display: none !important;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1424, #060a12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(47, 125, 255, 0.35);
}
.brand {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
}
.brand .grill {
  color: #dfe4ea;
}
.brand .pro {
  color: var(--orange);
}
.brand small {
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.2em;
  color: #8fb6ff;
  margin-left: 8px;
  text-shadow: 0 0 10px var(--blue-glow);
}
.who button {
  margin-left: 10px;
}
main,
.narrow {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}
.narrow {
  max-width: 420px;
}
.card {
  background: linear-gradient(180deg, #101c2f, #0a1220);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  overflow-x: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
h1,
h2 {
  margin: 0 0 12px;
}
label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
input,
select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #070c16;
  color: var(--text);
  font-size: 15px;
}
button {
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #142133;
  color: var(--text);
  padding: 8px 14px;
  font-weight: 700;
}
button.primary {
  background: linear-gradient(180deg, #4a90ff, var(--blue-2));
  border-color: #8fb6ff;
  box-shadow: 0 4px 0 #0b3a99, 0 8px 18px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(0);
  transition: transform 0.08s, box-shadow 0.08s;
}
button.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0b3a99, 0 4px 10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
button.danger {
  border-color: var(--red);
  color: #fca5a5;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tabs button.active {
  background: linear-gradient(180deg, #4a90ff, var(--blue-2));
  border-color: #8fb6ff;
  box-shadow: 0 3px 0 #0b3a99, 0 6px 14px var(--blue-glow);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.stat {
  background: linear-gradient(180deg, #12223a, #0a1322);
  border: 1.5px solid var(--blue);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 18px -6px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat.warn {
  border-color: #f59e0b;
}
.stat.bad {
  border-color: var(--red);
}
.stat b {
  display: block;
  font-size: 32px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.badge.ok {
  border-color: var(--green);
  color: #86efac;
}
.badge.bad {
  border-color: var(--red);
  color: #fca5a5;
}
.token,
pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #070c16;
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 12px;
  font-family: Consolas, monospace;
  font-size: 12px;
  margin-top: 12px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: #fca5a5;
}
code {
  color: #8fb6ff;
}
.qr {
  width: 220px;
  margin: 12px 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.filters {
  max-width: 260px;
}
dialog {
  width: min(960px, 96vw);
  max-height: 92vh;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--blue);
  border-radius: 14px;
  padding: 20px;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.modules label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
}
.modules label.extra {
  border-color: var(--blue);
}
.modules input {
  width: auto;
  margin: 3px 0 0;
}
.modules small {
  display: block;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.warn {
  color: #fcd34d;
}
.badge.warn {
  border-color: #f59e0b;
  color: #fcd34d;
}
.credential {
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  background: #070c16;
  box-shadow: 0 0 22px -8px var(--blue-glow);
}
.credential .secret {
  font-family: Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  user-select: all;
  color: #cfe0ff;
}
.inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* "Esqueci a senha do proprietário" na tela de login */
.forgot {
  margin-top: 14px;
  border-top: 1px solid rgba(47, 125, 255, 0.25);
  padding-top: 10px;
}
.forgot summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
}
.forgot summary:hover {
  text-decoration: underline;
}
.forgot ol {
  padding-left: 20px;
}
.forgot li {
  margin: 4px 0;
}

/* ---------- Tela de acesso: senha numérica + teclado (2.2.0) ---------- */
.login-card {
  max-width: 400px;
  text-align: center;
  border-color: rgba(47, 125, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 125, 255, 0.15), 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(47, 125, 255, 0.18);
}
.login-card form label {
  text-align: left;
}
.login-lock {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cfe0ff;
  background: radial-gradient(circle at 30% 30%, #4a90ff, var(--blue-2));
  box-shadow: 0 4px 0 #0b3a99, 0 10px 24px var(--blue-glow);
}
.pin-label {
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
}
.pin-dots.active {
  border-color: rgba(47, 125, 255, 0.6);
  background: rgba(47, 125, 255, 0.07);
}
.pin-dots .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #4a6a99;
  transition: background 0.1s, transform 0.1s;
}
.pin-dots .dot.on {
  background: var(--blue);
  border-color: #8fb6ff;
  box-shadow: 0 0 10px var(--blue-glow);
  transform: scale(1.08);
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px auto 6px;
  max-width: 300px;
}
.keypad .key {
  height: 58px;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #172338, #0c1422);
  border: 1px solid #2c4366;
  box-shadow: 0 4px 0 #050a14, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.06s, box-shadow 0.06s;
}
.keypad .key:hover {
  border-color: var(--blue);
}
.keypad .key:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #050a14;
}
.keypad .key-fn {
  font-size: 0.95rem;
  color: var(--muted);
}
button.big {
  width: 100%;
  height: 52px;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.linkbtn {
  background: none;
  border: none;
  box-shadow: none;
  color: #8fb6ff;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 10px;
  cursor: pointer;
}
.linkbtn:hover {
  text-decoration: underline;
}
.ok {
  color: var(--green);
}

/* ---------- Supervisor Master universal (2.2.1) ---------- */
.sup-card h2 {
  letter-spacing: 0.04em;
}
.sup-status {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 125, 255, 0.35);
  background: rgba(47, 125, 255, 0.07);
}
.sup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.sup-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.6);
}
.sup-val {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #cfe0ff;
}
.sup-actions {
  margin-top: 12px;
}

/* Dispositivos autorizados (License Manager na nuvem) */
#deviceCode {
  margin: 14px 0;
  padding: 14px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  background: #070c16;
  box-shadow: 0 0 22px -8px var(--blue-glow);
}
#deviceCode b {
  display: block;
  font: 900 28px/1.2 Consolas, monospace;
  letter-spacing: 0.08em;
  color: #cfe0ff;
  user-select: all;
  margin: 6px 0;
}
#deviceForm input[name='code'] {
  font: 700 20px Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
tr.current td:first-child::after {
  content: ' (este)';
  color: var(--green);
  font-weight: 400;
}

/* Celular e telas estreitas */
@media (max-width: 700px) {
  body {
    font-size: 14px;
    background-attachment: scroll;
  }
  .top {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .brand {
    font-size: 21px;
  }
  .who {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
  .who button {
    margin-left: 0;
  }
  main,
  .narrow {
    margin: 12px auto;
    padding: 0 10px;
  }
  .card {
    padding: 14px 12px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .tabs button {
    flex: none;
  }
  .grid2,
  .row {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  input,
  select {
    font-size: 16px; /* evita zoom automático no celular */
  }
  table {
    font-size: 13px;
  }
  dialog {
    width: calc(100vw - 16px);
    max-width: none;
    padding: 12px;
  }
}

/* Central de Atualizações (Visão geral) */
.upd-card {
  margin-top: 16px;
  border: 1.5px solid var(--blue);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 26px -8px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.upd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.upd-head h2 {
  color: #cfe0ff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px var(--blue-glow);
}
.upd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.upd-stats .stat {
  padding: 12px;
}
.upd-stats .stat .hint {
  display: block;
  font-size: 12px;
}
.upd-actions {
  margin-bottom: 8px;
}
.upd-msg {
  max-width: 340px;
  white-space: normal;
  word-break: break-word;
}
.upd-alvo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 8px 0;
}
label.radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
label.radio input,
#updPubClients input {
  width: auto;
  display: inline-block;
  margin: 0;
}
#updPubClients {
  margin: 6px 0 12px;
}
textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #070c16;
  color: var(--text);
  font: inherit;
}
@media (max-width: 700px) {
  .upd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .upd-actions button {
    flex: 1 1 45%;
  }
}

/* 2.4.0 — central de clientes */
.ids-preview { margin: 0 0 10px; color: var(--muted, #9aa); font-size: 0.9em; }
.lic-info { margin: 6px 0 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; line-height: 1.6; }
#clientDialog { width: min(1180px, 97vw); }
#clientDialog h3 { margin: 18px 0 6px; font-size: 1em; }

/* Gerenciar Licenças: painel operacional azul/preto inspirado no layout desktop do License Manager. */
#app {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: min(1600px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 12px 16px 24px 8px;
}
#app > .tabs {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 6px 0;
}
#app > .tabs button {
  min-height: 40px;
  width: 100%;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #c7d7f5;
}
#app > .tabs button:hover,
#app > .tabs button.active {
  background: linear-gradient(100deg, #087bff, #0753cf);
  border-color: #168dff;
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
}
#app > [data-panel] {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.license-pagehead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  margin: 0 0 10px;
}
.license-pagehead h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
}
.license-pagehead p {
  margin: 2px 0 0;
  color: #bfd3f3;
}
.license-pageicon {
  color: #14a2ff;
  font-size: 36px;
  line-height: 1;
  transform: rotate(-35deg);
  text-shadow: 0 0 14px rgba(20, 162, 255, 0.8);
}
.license-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1.5px solid #098bff;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(0, 95, 210, 0.16), rgba(3, 12, 27, 0.96) 42%, rgba(3, 10, 21, 0.98));
  box-shadow: 0 0 0 1px rgba(0, 112, 255, 0.2), 0 0 25px rgba(0, 105, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.license-card {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 132, 255, 0.55);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(7, 26, 51, 0.96), rgba(4, 13, 27, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 12px rgba(0, 99, 220, 0.07);
}
.license-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
}
.license-section-title h2 {
  margin: 0;
  color: #f1f6ff;
  font-size: 1rem;
}
.license-section-title p {
  margin: 1px 0 0;
  color: #b6c9e9;
  font-size: 0.79rem;
}
.license-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(155deg, #148cff, #0645b6);
  color: white;
  font-size: 23px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 106, 255, 0.25);
}
.license-customer {
  padding: 9px 12px;
}
.license-customer .license-section-title {
  margin-bottom: 7px;
}
.license-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(360px, 45%);
  margin: 0 0 0 auto;
  padding: 0 10px;
  border: 1px solid #075cae;
  border-radius: 9px;
  background: #030b17;
  color: #9dcaff;
}
.license-search input {
  min-width: 0;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  font-size: 0.84rem;
  outline: 0;
}
.license-customer-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(100px, 120px) auto;
  align-items: end;
  gap: 10px;
  padding: 0 5px;
}
.license-customer-row label {
  margin: 0;
  color: #d6e4fb;
}
.license-status {
  align-self: center;
  justify-self: start;
  padding: 4px 12px;
  border: 1px solid #08744d;
  border-radius: 7px;
  background: rgba(0, 180, 115, 0.14);
  color: #67efb0;
  font-size: 0.8rem;
  white-space: nowrap;
}
.license-secondary {
  min-height: 34px;
  border-color: #075cae;
  background: #071a31;
  font-size: 0.78rem;
  white-space: nowrap;
}
.license-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.license-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 10px;
}
.license-left-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.license-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  column-gap: 10px;
  row-gap: 0;
}
.license-fields label {
  margin: 0 0 8px;
  color: #d6e4fb;
}
.license-fields .license-field-wide {
  grid-column: 1 / -1;
}
.license-fields input,
.license-fields select,
.license-customer-row select {
  min-width: 0;
  margin-top: 3px;
  padding: 7px 9px;
  border-color: #075cae;
  background-color: #020a16;
  font-size: 0.84rem;
}
.license-fields input:disabled,
.license-fields select:disabled {
  color: #dce9ff;
  opacity: 0.85;
}
.license-context {
  padding-top: 5px;
  border-top: 1px solid rgba(0, 130, 255, 0.23);
  color: #a8bedf;
  font-size: 0.76rem;
}
.license-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  gap: 10px;
}
.license-summary-list {
  display: grid;
  gap: 4px;
  margin: 0;
}
.license-summary-list > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.5fr);
  gap: 8px;
  font-size: 0.75rem;
}
.license-summary-list dt {
  color: #9bb3d6;
}
.license-summary-list dd {
  min-width: 0;
  margin: 0;
  color: #e5efff;
  overflow-wrap: anywhere;
}
.license-timeline {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 0 0 10px;
  list-style: none;
}
.license-timeline li {
  position: relative;
  min-height: 30px;
  padding-left: 15px;
  border-left: 1px solid #15528a;
  color: #dce9ff;
  font-size: 0.74rem;
}
.license-timeline li::before {
  position: absolute;
  top: 3px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #62baff;
  border-radius: 50%;
  background: #087bff;
  content: '';
  box-shadow: 0 0 9px rgba(0, 132, 255, 0.7);
}
.license-timeline li.timeline-warning::before {
  border-color: #ffc65b;
  background: #e99a00;
}
.license-timeline li.timeline-success::before {
  border-color: #7cf1ad;
  background: #0cbb68;
}
.license-timeline li.timeline-empty {
  border: 0;
  color: #95a9c7;
}
.license-timeline li.timeline-empty::before {
  display: none;
}
.license-timeline small {
  display: block;
  color: #94afd4;
}
.license-automation .license-section-title {
  margin-bottom: 6px;
}
.license-rule {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid rgba(37, 113, 188, 0.48);
}
.license-rule:last-of-type {
  border-bottom: 0;
}
.rule-icon {
  color: #a6c9ff;
  font-size: 20px;
  text-align: center;
}
.license-rule b,
.license-rule small {
  display: block;
}
.license-rule b {
  color: #e8f1ff;
  font-size: 0.79rem;
}
.license-rule small {
  margin-top: 1px;
  color: #9cb2d2;
  font-size: 0.68rem;
}
.license-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 23px;
  margin: 0;
}
.license-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.license-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #315173;
  border-radius: 99px;
  background: #25354a;
}
.license-switch span::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  content: '';
  transition: transform 0.15s ease;
}
.license-switch input:checked + span {
  border-color: #148cff;
  background: #087bff;
}
.license-switch input:checked + span::before {
  transform: translateX(19px);
}
.license-switch input:disabled + span {
  opacity: 0.9;
  cursor: not-allowed;
}
.license-error {
  min-height: 0;
  margin: 4px 0 0;
  color: #ff9292;
  font-size: 0.75rem;
}
.license-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0 3px;
}
.license-send {
  min-height: 48px;
  border-radius: 10px;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}
.license-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.license-send span {
  margin-right: 12px;
  font-size: 1.15rem;
}
.license-history-send {
  min-width: 190px;
  min-height: 44px;
}
.license-result {
  padding: 8px 12px;
  border: 1px solid #168dff;
  border-radius: 8px;
  background: rgba(0, 112, 255, 0.12);
  color: #d5e8ff;
  font-size: 0.82rem;
}
.license-result[data-status='error'] {
  border-color: #d04f5a;
  background: rgba(208, 79, 90, 0.1);
  color: #ffc2c8;
}
.license-result[data-status='pending'] {
  border-color: #d29322;
  background: rgba(210, 147, 34, 0.1);
  color: #ffe0a0;
}
.license-records {
  margin-top: 10px;
}
.license-records h2 {
  margin-bottom: 4px;
}
.license-records .hint {
  margin-top: 0;
}

@media (min-width: 1250px) {
  #app {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 14px;
  }
  .license-workspace {
    gap: 10px;
    padding: 12px;
  }
}
@media (max-width: 980px) {
  .license-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .license-automation {
    order: 2;
  }
}
@media (max-width: 700px) {
  #app {
    display: block;
    width: 100%;
    padding: 8px;
  }
  #app > .tabs {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding: 2px 0 7px;
  }
  #app > .tabs button {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    text-align: center;
  }
  #app > [data-panel] {
    padding: 0;
  }
  .license-workspace {
    padding: 8px;
  }
  .license-section-title {
    flex-wrap: wrap;
  }
  .license-search {
    width: 100%;
    margin: 4px 0 0;
  }
  .license-customer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .license-customer-row label {
    grid-column: 1 / -1;
  }
  .license-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .license-fields .license-field-wide {
    grid-column: 1 / -1;
  }
  .license-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .license-action-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .license-history-send {
    width: 100%;
  }
  .license-records {
    overflow-x: auto;
  }
}
#clientDialog table { width: 100%; }
#clientEdit label { min-width: 180px; }
#customersTable td.inline button { margin: 2px 0; }
.plan-box { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 10px 14px 4px; margin: 6px 0 12px; }
.plan-box legend { padding: 0 6px; font-weight: 700; letter-spacing: 0.04em; }
.act-validate { margin-top: 12px; }
.act-validate input { max-width: 220px; }
.center { text-align: center; }
#stepUpDialog { width: min(420px, 94vw); }
#stepUpCode { font-size: 1.4em; letter-spacing: 0.2em; text-align: center; }

/* License Manager 2.4.9 — painel do proprietário, sem alterar fluxos. */
:root { --bg:#020a12; --panel:#061422; --border:#173c58; --muted:#94adc2; --blue:#008bff; --blue-2:#0052df; --blue-glow:rgba(0,139,255,.25); }
body { font-size:14px; background:radial-gradient(ellipse at 35% -25%,#074180 0,transparent 50%),#020a12; }
.top { min-height:76px; position:sticky; top:0; z-index:20; padding:12px 24px; background:linear-gradient(110deg,#020b14 12%,#062447 48%,#030c17 80%); border-bottom:1px solid #1475ab; }
.brand { line-height:1; font-size:29px; flex-shrink:0; }
.brand small { display:block; margin:6px 0 0; color:#12ceff; font-size:9px; letter-spacing:.23em; }
.who { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.owner-identity { display:flex; align-items:center; gap:9px; }
.owner-identity small,.owner-identity b { display:block; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.owner-identity small { color:#9bb4ce; font-size:10px; }
.owner-avatar,.profile-avatar { display:grid; place-items:center; border:1px solid #14c7ff; background:linear-gradient(145deg,#087dcb,#033057); border-radius:50%; width:34px; height:34px; font-size:12px; font-weight:800; color:#d7f6ff; flex-shrink:0; }
body:has(#app:not(.hidden)) #app { display:block; width:auto; max-width:none; margin:0 0 0 224px; padding:24px; min-width:0; }
#app>.tabs { position:fixed; top:76px; bottom:0; left:0; width:224px; display:flex; flex-direction:column; flex-wrap:nowrap; gap:6px; margin:0; padding:22px 12px; overflow-y:auto; background:linear-gradient(180deg,#03111f,#020810); border-right:1px solid #194665; }
#app>.tabs button { display:flex; align-items:center; gap:11px; text-align:left; min-height:46px; padding:10px 12px; width:100%; background:transparent; border:1px solid transparent; box-shadow:none; font-size:12px; font-weight:600; white-space:normal; }
#app>.tabs button:hover { background:#09233b; border-color:#1b5579; }
#app>.tabs button.active { background:linear-gradient(110deg,#00bbff,#0058f6); border-color:#39cfff; color:white; box-shadow:0 0 15px #008cff40,inset 0 1px 0 #ffffff38; }
.nav-icon { display:inline-flex; flex-shrink:0; width:20px; color:#a5d6ff; }
.tabs .active .nav-icon { color:white; }
.panel { min-width:0; max-width:1600px; margin:0 auto; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.panel-heading h1 { font-size:26px; letter-spacing:-.7px; line-height:1.2; margin:0 0 7px; }
.panel-heading p { margin:0; color:#8fb1cc; font-size:12px; }
.release-label { border:1px solid #194e70; border-radius:9px; padding:8px 12px; color:#9fcbf0; font-size:11px; white-space:nowrap; background:#071b2c; }
.card { border:1px solid #174563; border-radius:12px; padding:18px; margin-bottom:16px; background:linear-gradient(150deg,#071b2b,#030f1b 75%); box-shadow:0 5px 20px #0003,inset 0 1px 0 #ffffff05; }
.card h2 { font-size:15px; letter-spacing:0; margin-bottom:14px; color:#edf7ff; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.stat { position:relative; overflow:hidden; min-height:105px; padding:16px 18px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid #1b72a8; border-radius:12px; background:linear-gradient(125deg,#074783,#041e3d); font-size:11px; line-height:1.3; box-shadow:inset 0 1px 0 #ffffff15,0 4px 14px #0003; }
.stat b { font-size:32px; font-variant-numeric:tabular-nums; letter-spacing:-1px; color:white; margin-top:8px; }
.stat:nth-child(7) { order:-4; border-color:#15ab6b; background:linear-gradient(125deg,#047746,#03261d); }
.stat:nth-child(8) { order:-3; }
.stat:nth-child(3) { order:-2; border-color:#c98b36; background:linear-gradient(125deg,#7d470c,#241e18); }
.stat:nth-child(4) { order:-1; border-color:#8460d8; background:linear-gradient(125deg,#5426a4,#181239); }
.stat.bad { border-color:#a43a53; background:linear-gradient(125deg,#631d37,#220f20); }
.stat.warn { border-color:#9c7a29; background:linear-gradient(125deg,#52441c,#1b1c1c); }
.stats>.stat:nth-child(8) { border-color:#1b72a8; background:linear-gradient(125deg,#074783,#041e3d); color:var(--text); }
.table-scroll { overflow-x:auto; max-width:100%; overscroll-behavior-x:contain; border:1px solid #173c58; border-radius:9px; }
.table-scroll table { margin:0; min-width:560px; }
table { font-size:12px; }
th { background:#0c253c; color:#b9d9f4; font-size:10px; letter-spacing:.035em; text-transform:uppercase; }
th,td { padding:11px 12px; border-bottom:1px solid #123047; }
tr:last-child td { border-bottom:0; }
tbody tr:hover, tr:has(td):hover { background:#0a264044; }
td button { padding:6px 10px; font-size:11px; }
.badge { border-radius:20px; font-size:10px; padding:3px 7px; }
button { min-height:34px; border-radius:7px; font-size:12px; font-weight:600; background:#0c2238; }
button.primary { background:linear-gradient(120deg,#009eff,#0056ec); border:1px solid #22b6ff; box-shadow:0 3px 10px #006aff25,inset 0 1px 0 #ffffff22; }
button.primary:active { transform:translateY(1px); }
button:disabled { opacity:.55; cursor:wait; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #4ddcff; outline-offset:3px; }
input,select,textarea { background:#041321; border-color:#1c405f; border-radius:7px; min-height:38px; font-size:13px; }
.inline,.row,.grid2,.profile-fields { min-width:0; }
.profile-heading { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.profile-heading h2,.profile-heading p { margin:0 0 4px; }
.profile-avatar { width:62px; height:62px; font-size:20px; box-shadow:0 0 22px #008cff25; }
.profile-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 20px; }
.profile-fields label { color:#c0d5e6; }
.profile-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; }
.profile-actions p { margin:0; font-size:12px; }
.profile-success { color:#69e9bc; }
dialog { border-color:#24648d; background:linear-gradient(140deg,#0b2338,#030d18); border-radius:14px; max-height:92dvh; }
dialog::backdrop { background:#000b; backdrop-filter:blur(4px); }
@media(min-width:1600px) { body:has(#app:not(.hidden)) #app { padding:30px 40px; } }
@media(max-width:1100px) {
  #app>.tabs { width:192px; padding:16px 8px; }
  body:has(#app:not(.hidden)) #app { margin-left:192px; padding:18px; }
  .stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
  .top { position:relative; padding:14px; gap:12px; flex-wrap:wrap; }
  .brand { font-size:25px; }
  .who { gap:8px; }
  .owner-identity b { max-width:140px; }
  body:has(#app:not(.hidden)) #app { margin:0; padding:0 12px 20px; }
  #app>.tabs { position:sticky; top:0; z-index:15; width:auto; margin:0 -12px 20px; padding:10px 12px; flex-direction:row; gap:6px; border-right:0; border-bottom:1px solid #184766; overflow:auto; }
  #app>.tabs button { width:auto; min-width:max-content; min-height:42px; font-size:11px; gap:7px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .stat { min-height:100px; padding:14px; }
  .panel-heading { gap:8px; margin-bottom:16px; }
  .panel-heading h1 { font-size:22px; }
  .release-label { font-size:10px; padding:6px 8px; }
  .card { padding:14px; border-radius:10px; }
  .grid2,.row,.profile-fields { grid-template-columns:minmax(0,1fr); }
  .profile-actions { align-items:stretch; flex-direction:column; }
  .profile-actions button { width:100%; }
  .inline { flex-wrap:wrap; }
  dialog { max-width:96vw; padding:18px; }
}

/* License Manager 2.4.11 — refinamento visual comum (somente apresentação). */
#stats { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
#stats .stat { min-height:84px; padding:12px 14px; font-size:10.5px; }
#stats .stat b { font-size:24px; margin-top:4px; }
.est-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.est-stats .stat, .est-stats .stat:nth-child(n) { order:0; min-height:84px; flex-direction:column-reverse; justify-content:flex-end; gap:2px; border-color:#1b72a8; background:linear-gradient(125deg,#07335f,#041e3d); font-size:12px; font-weight:600; color:#eaf6ff; }
.est-stats .stat b { font-size:26px; margin:0; }
.est-stats .stat .hint { font-size:10.5px; color:#8fb1cc; font-weight:400; }
.est-stats .stat.ok:nth-child(n) { border-color:#15ab6b; background:linear-gradient(125deg,#06583a,#03261d); }
.est-stats .stat.warn:nth-child(n) { border-color:#c98b36; background:linear-gradient(125deg,#6e420d,#241e18); }
.est-stats .stat.bad:nth-child(n) { border-color:#c23a57; background:linear-gradient(125deg,#6d1c38,#220f20); }
[data-panel=establishments] .filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; }
[data-panel=establishments] .filters .est-search { flex:1 1 220px; }
[data-panel=establishments] .filters input, [data-panel=establishments] .filters select { min-height:38px; }
[data-panel=establishments] .filters button { min-height:38px; }
select[data-regra-plano] { min-width:13.5rem; }
.badge.ok { border:1px solid #27d38a; color:#7dffc4; background:#06301f; }
.badge.bad { border:1px solid #ff4d6d; color:#ff9fb1; background:#3a0b18; }
.badge.warn { border:1px solid #e0a23a; color:#ffd27a; background:#3a2a08; }
td button[data-plan] { background:linear-gradient(110deg,#0a77c8,#0848b8); border-color:#2da7ff; color:white; }
@media (max-width:1100px) { #stats { grid-template-columns:repeat(3,minmax(0,1fr)); } .est-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { #stats { grid-template-columns:repeat(2,minmax(0,1fr)); } [data-panel=establishments] .filters > * { flex:1 1 100%; } }
[data-panel=establishments] .filters { max-width:none; }
[data-panel=establishments] .filters > label, [data-panel=establishments] .filters > button { margin:0; }
[data-panel=establishments] .filters > label:not(.est-search) { flex:0 0 190px; }
.est-stats .stat, .est-stats .stat:nth-child(n) { flex-direction:column; justify-content:flex-start; }
.est-stats .stat b { order:-1; }
.est-stats .stat .hint { order:2; }

/* License Manager 2.4.12 — layout definitivo (Estabelecimentos neon, Visão Geral clara, demais abas no mesmo padrão). */
.pager { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:10px; }
.pager select { min-height:32px; width:auto; }
.pager button { min-height:32px; min-width:34px; }
.est-who { display:flex; align-items:center; gap:10px; }
.est-avatar { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:50%; border:1px solid #1fb6ff; background:linear-gradient(145deg,#0b79d0,#052a52); color:#e3f7ff; font-size:12px; font-weight:800; box-shadow:0 0 12px #0a9bff55; }
.est-actions { white-space:nowrap; }
.est-more { min-width:34px; padding:6px 9px; }
[data-panel=establishments] .table-scroll { border-color:#1b5f8f; box-shadow:0 0 18px #0a7cff22; }
[data-panel=establishments] .card { border-color:#1b72a8; box-shadow:0 0 22px #0a7cff22,inset 0 1px 0 #ffffff0a; }
#btnModulosSistema { border-color:#2da7ff; color:#bfe6ff; background:#07223c; }
button { transition:filter .15s,transform .05s; }
button:hover:not(:disabled) { filter:brightness(1.18); }

/* Visão Geral — área principal clara, menu e cabeçalho escuros */
body:has([data-panel=overview]:not(.hidden)) #app { background:#eaf0f8; min-height:calc(100dvh - 76px); }
[data-panel=overview] { color:#0f2540; }
[data-panel=overview] .panel-heading h1 { color:#0b1e3a; }
[data-panel=overview] .panel-heading p { color:#51688a; }
[data-panel=overview] .release-label { background:#fff; color:#2e5b92; border-color:#c5d6ea; }
.ov-top { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.ov-search { flex:1 1 auto; margin:0; }
[data-panel=overview] input,[data-panel=overview] select { background:#fff; color:#0f2540; border:1px solid #c5d6ea; }
.ov-chip { padding:8px 14px; border:1px solid #c5d6ea; border-radius:999px; background:#fff; color:#2e5b92; font-size:12px; white-space:nowrap; }
[data-panel=overview] button { background:#fff; color:#1b4a85; border:1px solid #bcd0e8; box-shadow:0 1px 3px #0a2a5a18; }
[data-panel=overview] button.primary { background:linear-gradient(120deg,#1a8bff,#0a4fd8); color:#fff; border-color:#0a4fd8; }
.ov-kpis { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.ov-kpi { display:flex; flex-direction:column; gap:4px; min-height:98px; padding:14px 16px; border-radius:14px; color:#fff; box-shadow:0 6px 16px #0a2a5a30,inset 0 1px 0 #ffffff40; }
.ov-kpi span { font-size:12px; font-weight:600; opacity:.95; }
.ov-kpi b { font-size:30px; line-height:1.1; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ov-kpi small { font-size:11px; opacity:.85; }
.ov-kpi.blue { background:linear-gradient(135deg,#2f8dff,#1559d6); }
.ov-kpi.green { background:linear-gradient(135deg,#2dd47c,#0f9a56); }
.ov-kpi.orange { background:linear-gradient(135deg,#ffab3d,#e87a12); }
.ov-kpi.purple { background:linear-gradient(135deg,#9a6bff,#6a3fd6); }
.ov-kpi.red { background:linear-gradient(135deg,#ff6b6b,#d63636); }
.ov-kpi.pink { background:linear-gradient(135deg,#ff6fa8,#d6307a); }
.ov-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.ov-actions button { min-height:40px; padding:0 16px; }
[data-panel=overview] .card { background:#fff; border:1px solid #d3e0f0; color:#0f2540; box-shadow:0 4px 14px #0a2a5a14; }
[data-panel=overview] .card h2 { color:#0b1e3a; }
.ov-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.ov-card-head h2 { margin:0; }
.ov-tools { display:flex; gap:8px; }
[data-panel=overview] .hint { color:#5b7392; }
[data-panel=overview] .table-scroll { border-color:#d3e0f0; }
[data-panel=overview] th { background:#eef4fc; color:#35557f; }
[data-panel=overview] th,[data-panel=overview] td { border-bottom-color:#e2ebf6; color:#17304f; }
[data-panel=overview] tbody tr:hover,[data-panel=overview] tr:has(td):hover { background:#f3f8ff; }
[data-panel=overview] .badge.ok { background:#dcfce9; color:#0f7a43; border-color:#86e0b0; }
[data-panel=overview] .badge.bad { background:#fee2e2; color:#b42323; border-color:#f4a3a3; }
[data-panel=overview] .badge.warn { background:#fff1d6; color:#9a5b00; border-color:#f2c277; }
[data-panel=overview] .stats { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
[data-panel=overview] .stat { color:#e8f2ff; }
.ov-bottom { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.ov-mini { margin:0; display:flex; flex-direction:column; gap:6px; }
.ov-big { font-size:30px; color:#1559d6; }
.ov-donut-wrap { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ov-donut { position:relative; width:96px; height:96px; border-radius:50%; flex:0 0 96px; }
.ov-donut::after { content:''; position:absolute; inset:18px; border-radius:50%; background:#fff; }
.ov-donut span { position:absolute; inset:0; z-index:1; display:grid; place-items:center; font-weight:800; font-size:20px; color:#0b1e3a; }
.ov-legend { list-style:none; margin:0; padding:0; font-size:12px; display:grid; gap:4px; }
.ov-legend li::before { content:''; display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; }
.ov-legend .g::before { background:#22c55e; } .ov-legend .r::before { background:#ef4444; } .ov-legend .p::before { background:#a855f7; }
@media (max-width:1100px) { .ov-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } .ov-bottom { grid-template-columns:1fr; } }
@media (max-width:640px) {
  .ov-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ov-top { flex-wrap:wrap; } .ov-top .ov-search { flex:1 1 100%; } .ov-chip { flex:1; text-align:center; }
  .ov-actions button { flex:1 1 calc(50% - 10px); }
  body:has([data-panel=overview]:not(.hidden)) #app { padding:8px; }
}.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.brand .pro { color:#2a8bff; }
[data-panel=overview] .stats { margin-top:4px; }
/* License Manager 2.4.13 — Supervisor Master neon e atualizações dentro da Visão Geral */
#updCentral .upd-actions { display:none; }
[data-panel=supervisor] .card { border-color:#1b72a8; box-shadow:0 0 24px #0a7cff2e,inset 0 1px 0 #ffffff0d; background:linear-gradient(150deg,#08234a,#030f22 80%); }
.sup-status { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:2px 4px; font-size:14px; }
.sup-status .badge { padding:6px 12px; font-size:12px; font-weight:800; }
.sup-until { flex:1 1 260px; color:#e6f1ff; }
.sup-left { margin-left:auto; padding:6px 12px; border:1px solid #1b5f8f; border-radius:8px; color:#bfe0ff; font-size:13px; }
.sup-title { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.sup-title h2 { margin:0 0 2px; font-size:18px; }
.sup-title p { margin:0; }
.sup-ico { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#0a5cff30; border:1px solid #2a86e0; box-shadow:0 0 14px #1e90ff55; flex:0 0 42px; }
.sup-ico svg { width:22px; height:22px; fill:none; stroke:#4db4ff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sup-refresh { margin-left:auto; }
.sup-grid { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:12px; margin-bottom:14px; }
.sup-field { display:flex; flex-direction:column; gap:6px; padding:12px 14px; border:1px solid #1b4f85; border-radius:12px; background:#04132b99; min-width:0; }
.sup-field .sup-val { font-size:20px; color:#fff; letter-spacing:.04em; }
.sup-pinbox { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sup-pinbox .sup-val { font-size:26px; letter-spacing:.35em; }
.sup-pinbox button { min-height:32px; padding:0 10px; background:transparent; border:0; color:#9fc3ee; box-shadow:none; }
.sup-actions { gap:10px; margin-bottom:8px; }
.sup-actions button { min-width:150px; min-height:42px; }
.sup-actions button.danger { border:1px solid #ff4d6d; color:#ff9fb1; background:#3a0b1888; }
.sup-info { padding:9px 12px; border:1px solid #1b4f85; border-radius:10px; background:#04132b99; }
[data-panel=supervisor] th { background:#0a2750; }
@media (max-width:900px) { .sup-grid { grid-template-columns:1fr; } .sup-left { margin-left:0; } .sup-actions button { flex:1 1 100%; } .sup-refresh { margin-left:0; width:100%; } .sup-title { flex-wrap:wrap; } }
.sup-card { padding:10px 12px !important; }
.sup-card .sup-status { margin:0; }
