* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fonte condensada e alta para o número da senha na TV */
@font-face {
  font-family: "SenhaFont";
  src: local("Archivo Black"), local("Arial Black"), local("Impact");
  font-weight: 900;
  font-display: swap;
}

/* Paleta Sicoob: verde-petróleo escuro + verde-água (mesma da TV e do totem) */
:root {
  --blue: #00ae9d;
  --blue-hover: #00c7b3;
  --blue-dark: #003641;
  --blue-darker: #00242b;
  --green: #00ae9d;
  --red: #e5484d;
  --yellow: #f5b301;
  --bg: #00242b;
  --panel-bg: #00323c;
  --card-bg: #ffffff;
  --text: #1c3a38;
  --muted: #7a9693;
  --line: #dde8e6;
  --soft-teal: #e7f7f5;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

button {
  font-family: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7eeee;
  padding-top: 28px;
}
.check-field input {
  width: 18px;
  height: 18px;
  accent-color: #00ae9d;
}
.slide-help {
  margin: 14px 0 0;
}
.slide-row {
  align-items: center;
  gap: 18px;
}
.slide-thumb {
  width: 150px;
  height: 82px;
  flex: 0 0 150px;
  object-fit: cover;
  border-radius: 10px;
  background: #003641;
  border: 1px solid rgba(159, 224, 217, 0.25);
}
.slide-row .data-main {
  flex: 1;
  min-width: 0;
}
.slide-status {
  color: #9fe0d9;
  font-size: 0.9rem;
}
.slide-status.off {
  color: #d0a66a;
}

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.2rem;
  color: var(--muted);
}
.clock-big {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- shared buttons ---------- */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 0.1s ease,
    background 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--blue);
  color: #003641;
  font-weight: 800;
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-hover);
  box-shadow: 0 4px 14px rgba(0, 174, 157, 0.4);
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover {
  background: #ee5b60;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-edit {
  background: rgba(0, 174, 157, 0.15);
  color: #4dd8c8;
  border: 1px solid rgba(0, 174, 157, 0.35);
}
.btn-edit:hover {
  background: rgba(0, 174, 157, 0.28);
}
.btn-reset-pa {
  background: rgba(245, 179, 1, 0.16);
  color: #f5d27a;
  border: 1px solid rgba(245, 179, 1, 0.35);
}
.btn-reset-pa:hover {
  background: rgba(245, 179, 1, 0.28);
}
.btn-cancel {
  background: #eef1f5;
  color: var(--muted);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 7px;
}

/* ---------- TOTEM ---------- */
.totem-body {
  background: #003641;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.totem-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.totem-logo-img {
  height: 56px;
  max-width: 40vw;
  object-fit: contain;
}

.totem-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 32px;
}
.totem-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 600;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 80vw;
  max-width: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 28px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(150deg, #16325c, #0f2140);
  color: #fff;
  text-align: left;
  font-size: 1.1rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.service-card .service-name {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.service-card .service-next {
  color: #9fb3d4;
}
.service-card .service-waiting {
  color: var(--yellow);
  font-weight: 600;
}

.totem-body .service-card.totem-btn {
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  padding: 38px 32px;
  border-radius: 18px;
  background: #00ae9d;
  color: #003641;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.totem-body .service-card.totem-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}
.totem-body .service-card.totem-btn:active {
  transform: scale(0.98);
}
.totem-body .service-card.totem-btn:disabled {
  background: #6f9a97;
  color: #e6efef;
  cursor: default;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.7);
}
.totem-body .service-card.totem-btn:disabled .service-name {
  color: #e6efef;
}
.totem-body .service-card.totem-btn .service-name {
  font-size: 2.6rem;
  font-weight: 900;
  color: #003641;
  letter-spacing: 0.02em;
}

.totem-footer {
  padding: 18px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.footer-pa-name {
  grid-column: 2;
  justify-self: center;
  color: #9fe0d9;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.footer-link {
  grid-column: 3;
  justify-self: end;
  color: #00ae9d;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(0, 174, 157, 0.5);
  border-radius: 12px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.footer-link:hover {
  background: #00ae9d;
  color: #003641;
}

.totem-error-note {
  color: #8fa2bf;
  font-size: 1.1rem;
}

/* ---------- PAINEL (TV) SICOOB ---------- */
/* Layout: header (carrossel + senha) = 75vh | footer (histórico + logo + relógio) = 25vh */
.painel-body {
  background:
    radial-gradient(1400px 800px at 12% -12%, #00566a 0%, transparent 60%),
    linear-gradient(160deg, #00434f 0%, #00303b 55%, #00262f 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.painel-header {
  height: 75vh;
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.painel-footer {
  height: 25vh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 0;
  /* border-top: 2px solid rgba(0, 174, 157, 0.3); */
  padding: 12px 20px;
}

/* Hotspot temporariamente visível no totem para teste de posição e clique. */
.kiosk-exit-hotspot {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 70px;
  z-index: 10000;
  box-sizing: border-box;
  padding: 0;
  border: 3px solid #003641;
  border-radius: 0;
  margin: 0;
  opacity: 1;
  background: #003641;
  cursor: pointer;
}
.kiosk-exit-hotspot:focus,
.kiosk-exit-hotspot:hover,
.kiosk-exit-hotspot:active {
  outline: none;
  border-color: #003641;
  opacity: 1;
  background: #003641;
}

/* --- carrossel (70%) --- */
.painel-carousel {
  position: relative;
  background: linear-gradient(150deg, #00434f, #00323c);
  /* border: 1px solid rgba(0, 174, 157, 0.25); */
  overflow: hidden;
  min-height: 0;
}
.slide-track {
  position: relative;
  height: 100%;
  min-height: 320px;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active {
  opacity: 1;
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(150deg, #00434f, #00323c);
}
/* Slide com imagem centralizada: imagem ocupa o máximo sem cortar; texto sobe sobre a área inferior */
.slide.has-image .slide-img {
  object-fit: cover;
}
.slide.has-image .slide-img.safe-fit {
  object-fit: contain;
}
.slide.has-image {
  justify-content: flex-end;
  padding: 0;
  text-align: left;
}
.slide.has-image .slide-content {
  width: 100%;
  padding: 30px 36px;
  background: linear-gradient(
    to top,
    rgba(0, 38, 47, 0.95) 0%,
    rgba(0, 38, 47, 0.55) 55%,
    transparent 100%
  );
}
.slide-title {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}
.slide-text {
  font-size: 1.5rem;
  color: #9fe0d9;
  max-width: 70%;
  line-height: 1.4;
}
.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.dot.active {
  background: #00ae9d;
  transform: scale(1.2);
}

/* --- última senha (30%) --- */
.painel-last {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}
.last-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  padding: 40px 26px;
  background: linear-gradient(
    170deg,
    rgba(0, 174, 157, 0.16),
    rgba(0, 174, 157, 0.02)
  );
  /* border: 1px solid rgba(0, 174, 157, 0.35); */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.last-service {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00ae9d;
  color: #fff;
}
.last-number {
  font-size: clamp(4.6rem, 11vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  color: #00ae9d;
  letter-spacing: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  font-family: inherit;
  transform: scaleY(1.35);
  transform-origin: center center;
}
.last-guiche {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
}
.last-guiche-line {
  display: block;
  margin-top: 5px;
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  font-size: 5rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.last-service-line {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  color: #9fe0d9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.last-tag {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #d7e6e4;
  letter-spacing: 0.06em;
}
.last-tag.pri {
  background: #00ae9d;
  border-color: #00ae9d;
  color: #003641;
}

.last-card.blink {
  animation: blinkGlow 2.4s ease;
}

/* --- rodapé --- */
.footer-recent {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fe0d9;
  margin-bottom: 10px;
}
.footer-calls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.footer-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  min-width: 0;
}
.footer-call.recall {
  border-color: rgba(0, 174, 157, 0.6);
}
.fc-num {
  font-size: 2rem;
  font-weight: 900;
  color: #00ae9d;
  line-height: 1.15;
}
.fc-svc {
  font-size: 2rem;
  color: #d7e6e4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fc-guiche {
  font-size: 1.05rem;
  color: #8fbab7;
}
.fc-pri {
  margin-top: 3px;
  background: #00ae9d;
  color: #003641;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.fc-re {
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(0, 174, 157, 0.6);
  color: #9fe0d9;
  border-radius: 12px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.footer-empty {
  color: #6f9a97;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 8vh;
  object-fit: contain;
}
.footer-date {
  font-size: 1.5rem;
  color: #9fe0d9;
  text-transform: capitalize;
}
.footer-clock {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --- reutilizados pelo admin --- */
.recent-num {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--yellow);
}
.recent-svc {
  color: #cdd7e6;
}
.recent-guiche {
  color: #9fb3d4;
  text-align: right;
}
.recent-time {
  color: var(--muted);
  text-align: right;
}
.recent-empty {
  color: #8fa2bf;
  padding: 14px 0;
}

.data-dept {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 174, 157, 0.18);
  border: 1px solid rgba(0, 174, 157, 0.4);
  color: #4dd8c8;
  font-size: 12px;
  font-weight: 700;
}

.data-dept-unlinked {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #7fbfb8;
  font-weight: 500;
}

.waiting-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px 28px;
  text-align: center;
  color: #fff;
}
.waiting-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.waiting-label {
  color: #cdd7e6;
  font-size: 1rem;
}

/* ---------- ADMIN ---------- */
.admin-body {
  background:
    radial-gradient(1400px 700px at 8% -8%, #004a58 0%, transparent 55%),
    linear-gradient(165deg, #00242b 0%, #00242b 30%, #001d23 100%);
  min-height: 100vh;
  color: #d7e6e4;
}

.admin-view {
  min-height: 100vh;
}

#view-login,
#view-guiche {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 700px at 50% 10%, #00505f 0%, transparent 55%),
    linear-gradient(160deg, #00242b, #001d23);
}
#view-login.hidden,
#view-guiche.hidden {
  display: none;
}

.login-card {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.3);
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  width: min(440px, 90vw);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.login-card h1 {
  margin-bottom: 8px;
  color: #00e5cd;
  letter-spacing: 0.04em;
}
.login-card p {
  color: #9fe0d9;
  margin-bottom: 20px;
}
.login-card input {
  width: 100%;
  padding: 14px;
  font-size: 1.2rem;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
  outline: none;
}
.login-card input {
  background: #00242b;
  border: 2px solid rgba(0, 174, 157, 0.35);
  color: #fff;
}
.login-card input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 157, 0.15);
}
.login-card input::placeholder {
  color: #6f9a97;
}
.login-card .btn {
  width: 100%;
}
.login-error {
  color: var(--red);
  font-weight: 600;
  margin-top: 12px;
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(0, 174, 157, 0.1);
  border-radius: 12px;
  padding: 5px;
}
.login-tabs .tab {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 10px 0;
  background: transparent;
  font-weight: 700;
  color: var(--muted);
}
.login-tabs .tab {
  color: #7fbfb8;
}
.login-tabs .tab.active {
  background: #00ae9d;
  color: #003641;
  box-shadow: 0 2px 12px rgba(0, 174, 157, 0.35);
}

.guiche-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.guiche-btn {
  padding: 18px 0;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid rgba(0, 174, 157, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #9fe0d9;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.guiche-btn:hover {
  border-color: rgba(0, 174, 157, 0.6);
  color: #fff;
}
.guiche-btn.selected {
  background: #00ae9d;
  color: #003641;
  border-color: #00ae9d;
  box-shadow: 0 4px 16px rgba(0, 174, 157, 0.4);
}

.session-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #b8860b 0%, #a06f00 100%);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.session-banner.show {
  transform: translateY(0);
}
.admin-header {
  background: linear-gradient(120deg, #00323c 0%, #00242b 100%);
  border-bottom: 2px solid rgba(0, 174, 157, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.admin-brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  color: #00e5cd;
}
.admin-logo {
  width: 200px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  opacity: 0.95;
}
.admin-user {
  color: #9fe0d9;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(0, 50, 60, 0.75);
  border-bottom: 1px solid rgba(0, 174, 157, 0.2);
  flex-wrap: wrap;
}

/* Seleção múltipla de departamentos no formulário de atendente */
.dept-select-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dept-select-group .field-label {
  font-weight: 700;
  color: #9fe0d9;
  font-size: 0.95rem;
}
.dept-select-group .field-label small {
  font-weight: 400;
  color: #7fbfb8;
}
.dept-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dept-select-group .dept-check-label {
  color: #d7e6e4 !important;
}
.dept-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 174, 157, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e6e4;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.dept-check-label:hover {
  border-color: rgba(0, 174, 157, 0.65);
  color: #fff;
}
.dept-check-label input[type="checkbox"] {
  accent-color: #00ae9d;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.dept-check-label:has(input:checked) {
  background: rgba(0, 174, 157, 0.22);
  border-color: #00ae9d;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 174, 157, 0.25);
}
.dept-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
}
.dept-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 174, 157, 0.18);
  border: 1px solid rgba(0, 174, 157, 0.4);
  color: #4dd8c8;
}
.tab {
  padding: 10px 22px;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: #9fe0d9;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.tab:hover {
  border-color: rgba(0, 174, 157, 0.55);
  color: #fff;
}
.tab.active {
  background: #00ae9d;
  border-color: #00ae9d;
  color: #003641;
  font-weight: 800;
  box-shadow: 0 3px 14px rgba(0, 174, 157, 0.35);
}

.admin-main {
  padding: 28px 32px;
  max-width: 1200px;
  margin: 0 auto;
  color: #d7e6e4;
}

.guiche-current {
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(150deg, #00505f 0%, #00323c 55%, #00242b 100%);
  border: 1px solid rgba(0, 174, 157, 0.35);
  border-radius: 18px;
  padding: 32px 40px;
  margin-bottom: 28px;
  color: #fff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}
.guiche-current .current-inner {
  flex: 1;
  text-align: center;
}
.guiche-current .current-number {
  font-size: 6rem;
}
.guiche-current .current-label {
  font-size: 1.2rem;
}
.guiche-current .current-sub {
  font-size: 1.2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.admin-service-card {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  color: #d7e6e4;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.admin-service-card .service-name {
  font-size: 1.3rem;
}
.admin-service-card .service-waiting {
  color: var(--muted);
  font-size: 0.95rem;
}
.admin-service-card .service-oldest-wait {
  display: block;
  margin-top: 6px;
  color: #f5d27a;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-call {
  margin-top: 14px;
  width: 100%;
  color: #fff;
}

.admin-history h2 {
  margin-bottom: 12px;
  color: #9fe0d9;
}
.history-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 12px;
  align-items: center;
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.history-row:hover {
  border-color: rgba(0, 174, 157, 0.6);
  box-shadow: 0 2px 12px rgba(0, 174, 157, 0.15);
}

.geral-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.geral-top .waiting-box {
  background: rgba(0, 50, 60, 0.8);
  border: 1px solid rgba(0, 174, 157, 0.3);
}
.geral-top .waiting-num {
  color: #00e5cd;
}

.target-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
}
.target-row select {
  padding: 8px 12px;
  border: 1px solid rgba(0, 174, 157, 0.35);
  border-radius: 8px;
  font-size: 1rem;
}

.queue-section {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.queue-section h3 {
  color: #9fe0d9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.badge {
  background: #00ae9d;
  color: #003641;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}
.queue-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 174, 157, 0.15);
}
.queue-list li:last-child {
  border-bottom: none;
}
.queue-num {
  font-weight: 800;
  font-size: 1.2rem;
  color: #00e5cd;
  width: 120px;
}
.queue-list li .recent-time {
  flex: 1;
}

.pri-badge {
  background: rgba(229, 72, 77, 0.15);
  color: #ff8a8e;
  border: 1px solid rgba(229, 72, 77, 0.4);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- super admin forms ---------- */
.admin-form {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.admin-form h3 {
  color: #9fe0d9;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-grid input,
.form-grid select {
  padding: 11px 12px;
  font-size: 1rem;
  border: 2px solid rgba(0, 174, 157, 0.3);
  border-radius: 10px;
  outline: none;
  background: #00242b;
  color: #fff;
}
.form-grid input::placeholder {
  color: #6f9a97;
}
.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 157, 0.12);
}
.form-actions {
  display: flex;
  gap: 10px;
}

.filter-bar {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.filter-bar label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}
.filter-bar select {
  padding: 9px 12px;
  font-size: 1rem;
  border: 2px solid rgba(0, 174, 157, 0.3);
  border-radius: 10px;
  outline: none;
  background: #00242b;
  color: #fff;
  min-width: 240px;
}
.filter-bar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 157, 0.12);
}

.data-list {
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}
.data-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 174, 157, 0.15);
}
.data-row:last-child {
  border-bottom: none;
}
.data-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}
.data-main strong {
  color: #9fe0d9;
}
.data-meta {
  color: #7fbfb8;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: linear-gradient(120deg, #00434f, #00323c);
  border: 1px solid rgba(0, 174, 157, 0.45);
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 100;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- landing ---------- */
.landing-body {
  background:
    radial-gradient(1400px 800px at 50% 12%, #00505f 0%, transparent 55%),
    linear-gradient(160deg, #00242b, #001d23);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}
.landing-body h1 {
  color: #fff;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}
.landing-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}
.landing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #00323c;
  border: 1px solid rgba(0, 174, 157, 0.3);
  border-radius: 16px;
  padding: 32px;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.landing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 157, 0.6);
  box-shadow: 0 18px 44px rgba(0, 174, 157, 0.25);
}
.landing-card .name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00e5cd;
}
.landing-card .desc {
  color: #9fe0d9;
}
.landing-card .url {
  color: #4dd8c8;
  font-size: 0.9rem;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes flashGlow {
  0% {
    box-shadow: 0 0 0 rgba(255, 208, 75, 0);
  }
  40% {
    box-shadow: 0 0 80px rgba(255, 208, 75, 0.7);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 208, 75, 0);
  }
}

@keyframes blinkGlow {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(0, 174, 157, 0);
  }
  50% {
    opacity: 0.25;
    box-shadow: 0 0 60px rgba(0, 174, 157, 0.55);
  }
}

/* ---------- impressão da senha (80mm) ---------- */
.print-ticket {
  display: none;
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }
  body * {
    visibility: hidden;
  }
  .print-ticket,
  .print-ticket * {
    visibility: visible;
  }
  .print-ticket {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
  }
  .ticket {
    width: 72mm;
    margin: 0 auto;
    padding: 4mm 0;
    text-align: center;
    font-family: "Courier New", "Courier", monospace;
    font-size: 11pt;
    line-height: 1.45;
    color: #000;
  }
  .ticket-header {
    font-weight: bold;
    font-size: 13pt;
    letter-spacing: 0.12em;
  }
  .ticket-label {
    font-size: 11pt;
    margin-top: 1mm;
  }
  .ticket-pa {
    font-size: 12pt;
    font-weight: bold;
    margin-top: 1mm;
  }
  .ticket-number {
    font-size: 42pt;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin: 3mm 0;
  }
  .ticket-service {
    font-size: 13pt;
    font-weight: bold;
  }
  .ticket-pri {
    font-size: 11pt;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-top: 2mm;
  }
  .ticket-divider {
    border-top: 1px dashed #000;
    margin: 3mm 0;
  }
  .ticket-info {
    font-size: 10pt;
  }
  .ticket-note {
    font-size: 10pt;
    margin-top: 2mm;
  }
}
