/* TP Escolar — mobile-first, cores vibrantes para leitura no trânsito */

:root {
  --tp-navy: #0b3d5c;
  --tp-navy-2: #062536;
  --tp-yellow: #ffc107;
  --tp-orange: #ff6b00;
  --tp-green: #00c853;
  --tp-green-dark: #009624;
  --tp-sky: #4fc3f7;
  --tp-cream: #fff6e5;
  --tp-white: #ffffff;
  --tp-red: #e53935;
  --tp-muted: #5c7384;
  --tp-radius: 1.15rem;
  --tp-shadow: 0 10px 28px rgba(11, 61, 92, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

.tp-body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: linear-gradient(180deg, #b3ecff 0%, #fff6e5 42%, #ffe8b8 100%);
  color: var(--tp-navy);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Shell: main rola; nav permanece fixed na viewport (não sobe com SweetAlert) */
body.tp-shell-nav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* SweetAlert2 aplica height:auto no body e derruba o shell no celular */
body.swal2-height-auto,
body.tp-shell-nav.swal2-shown,
body.tp-shell-nav.swal2-height-auto {
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 100dvh !important;
}

body.tp-shell-nav > .tp-topbar {
  flex: 0 0 auto;
}

body.tp-shell-nav > .tp-wrap,
body.tp-shell-nav > main.tp-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.tp-shell-nav > .tp-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  flex: none;
  width: 100%;
  z-index: 40;
}

.tp-sky {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 40%, rgba(255,255,255,.9) 0 18px, transparent 19px),
    radial-gradient(circle at 18% 38%, rgba(255,255,255,.75) 0 28px, transparent 29px),
    radial-gradient(circle at 78% 30%, rgba(255,255,255,.85) 0 22px, transparent 23px);
  z-index: 0;
  will-change: transform;
  animation: tp-sky-drift 32s ease-in-out infinite alternate;
}

@keyframes tp-sky-drift {
  from { transform: translate3d(-4%, 0, 0); }
  to { transform: translate3d(4%, 0, 0); }
}

.tp-topbar,
.tp-wrap,
.tp-footer-note { position: relative; z-index: 1; }

.tp-topbar {
  background: var(--tp-navy);
  color: #fff;
  padding: .7rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

.tp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  max-width: 720px;
  margin: 0 auto;
}

.tp-brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.tp-topbar-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.tp-link-quiet {
  color: #cdefff;
  font-size: .8rem;
  text-decoration: none;
}

.tp-wrap {
  width: min(720px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.4rem;
}

.tp-auth .tp-wrap {
  padding-bottom: 1.5rem;
}

.tp-auth-painel .tp-wrap {
  padding-bottom: 1.5rem;
}

.tp-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem;
  background: var(--tp-navy);
  padding: .3rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(11, 61, 92, .22);
  /* camada própria: evita “sumir” ao rolar em alguns WebViews */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.tp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  min-height: 3rem;
  padding: .15rem .2rem;
  color: #cdefff;
  text-decoration: none;
  font-weight: 800;
  font-size: .68rem;
  line-height: 1.15;
  text-align: center;
  border-radius: .75rem;
}

.tp-nav-item span {
  max-width: 100%;
}

.tp-nav-item i {
  font-size: 1.2rem;
  line-height: 1;
}

.tp-nav-item.is-on {
  color: var(--tp-yellow);
  background: rgba(255, 255, 255, .08);
}

button.tp-nav-item {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.tp-nav-turno.is-run {
  color: #ffab91;
}

.tp-nav-turno.is-run.is-on {
  color: var(--tp-yellow);
}

.tp-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(3.7rem + env(safe-area-inset-bottom, 0px));
  z-index: 39;
  max-width: 720px;
  margin: 0 auto;
  padding: .45rem .75rem .35rem;
  background: linear-gradient(180deg, rgba(255, 246, 229, 0) 0%, rgba(255, 246, 229, .94) 28%);
}

.tp-btn-principal {
  width: 100%;
  min-height: 3.2rem;
  font-size: 1.05rem;
  border-radius: 1rem;
}

.tp-hero {
  text-align: center;
  padding: 1.4rem .4rem 1rem;
}

.tp-hero img {
  width: 9.5rem;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(11,61,92,.25));
}

.tp-hero .tp-bus-scene {
  max-width: 18rem;
  height: 6.8rem;
}

.tp-hero .tp-bus-scene-bus {
  width: 16rem;
}

.tp-bus-scene {
  position: relative;
  height: 6.4rem;
  margin: 0 auto .35rem;
  max-width: 16rem;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(180deg, #b3ecff 0%, #dff4ff 72%, #eceff1 100%);
}

.tp-bus-scene-sm {
  height: 4.6rem;
  max-width: 12rem;
}

.tp-bus-scene-sm .tp-bus-scene-bus { width: 7.2rem; }

.tp-bus-scene-parallax {
  position: absolute;
  inset: 0;
  bottom: 1.15rem;
  overflow: hidden;
  pointer-events: none;
}

.tp-bus-scene-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 88%;
  will-change: transform;
}

.tp-bus-scene-layer--far {
  background-image: url('/tpescolar/images/scene-parallax.svg');
  opacity: .72;
  animation: tp-scene-roll-far 36s linear infinite;
}

.tp-bus-scene-layer--near {
  background-image: url('/tpescolar/images/scene-parallax.svg');
  opacity: .95;
  background-size: auto 100%;
  animation: tp-scene-roll-near 22s linear infinite;
  filter: saturate(1.08);
}

.tp-bus-scene-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.15rem;
  background: linear-gradient(180deg, #90a4ae 0%, #607d8b 45%, #546e7a 100%);
  border-top: 2px solid #455a64;
  z-index: 1;
  pointer-events: none;
}

.tp-bus-scene-road::before {
  content: "";
  position: absolute;
  left: 0;
  top: 42%;
  width: 200%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, .92) 0 14px,
    transparent 14px 28px
  );
  animation: tp-road-dash 1.1s linear infinite;
}

.tp-bus-scene-road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: rgba(255, 255, 255, .22);
}

.tp-bus-scene-bus {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  display: block;
  margin: 0;
  width: 9.5rem;
  height: auto;
  transform: translateX(calc(-50% + var(--tp-px, 0px))) translateY(var(--tp-py, 0px));
  filter: drop-shadow(0 4px 6px rgba(11, 61, 92, .28));
  animation: tp-bus-ground 3.2s ease-in-out infinite;
}

@keyframes tp-scene-roll-far {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tp-scene-roll-near {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tp-road-dash {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@keyframes tp-bus-ground {
  0%, 100% {
    transform: translateX(calc(-50% + var(--tp-px, 0px))) translateY(calc(var(--tp-py, 0px)));
  }
  50% {
    transform: translateX(calc(-50% + var(--tp-px, 0px) + 4px)) translateY(calc(var(--tp-py, 0px) - 1px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-sky,
  .tp-bus-scene-bus,
  .tp-bus-scene-layer,
  .tp-bus-scene-road::before { animation: none; }
}

.tp-hero h1,
.tp-page-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  margin: .7rem 0 .35rem;
  color: var(--tp-navy);
}

.tp-lead {
  color: var(--tp-muted);
  font-weight: 600;
  margin: 0 0 1.1rem;
}

.tp-card {
  background: var(--tp-white);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 1.15rem;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 193, 7, .35);
}

.tp-aluno-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .85rem;
}

.tp-aluno-nome {
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.tp-aluno-acoes {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.tp-aluno-acoes .tp-btn-sm {
  min-height: 2.5rem;
  min-width: 5.25rem;
  padding: .35rem .7rem;
  font-size: .82rem;
  line-height: 1.15;
  border: 0;
}

.tp-aluno-acoes .tp-btn-primary.tp-btn-sm {
  box-shadow: 0 4px 0 #c45300;
}

.tp-aluno-acoes .tp-btn-blue.tp-btn-sm {
  box-shadow: 0 4px 0 #0a58ca;
}

.tp-aluno-acoes .tp-btn-danger.tp-btn-sm {
  box-shadow: 0 4px 0 #b71c1c;
}

.tp-aluno-acoes .tp-btn-sm:active {
  transform: translateY(2px);
}

.tp-aluno-acoes .tp-btn-primary.tp-btn-sm:active {
  box-shadow: 0 2px 0 #c45300;
}

.tp-aluno-acoes .tp-btn-blue.tp-btn-sm:active {
  box-shadow: 0 2px 0 #0a58ca;
}

.tp-aluno-acoes .tp-btn-danger.tp-btn-sm:active {
  box-shadow: 0 2px 0 #b71c1c;
}

.tp-card-route {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.tp-rotas-list {
  display: grid;
  gap: .85rem;
  margin-top: .85rem;
}

.tp-rota-card.is-live {
  box-shadow: 0 0 0 2px rgba(0, 122, 51, .25);
}

.tp-rota-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .75rem;
}

.tp-hero-hub {
  margin-top: .55rem;
  text-align: center;
}

.tp-hero-hub .tp-link-quiet {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tp-badge-wait { background: #fff3cd; color: #9a6b00; }
.tp-badge-run  { background: #d7ffea; color: #007a33; }
.tp-badge-done { background: #e3f2fd; color: #0b3d5c; }

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  padding: .75rem 1.1rem;
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}

.tp-btn-sm { padding: .4rem .75rem; font-size: .85rem; }

.tp-btn-primary {
  background: var(--tp-orange);
  color: #fff;
  box-shadow: 0 6px 0 #c45300;
}

.tp-btn-blue {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 6px 0 #0a58ca;
}

.tp-btn-primary:active { transform: translateY(2px); box-shadow: 0 4px 0 #c45300; }

.tp-btn-blue:active { transform: translateY(2px); box-shadow: 0 4px 0 #0a58ca; }

.tp-btn-yellow {
  background: var(--tp-yellow);
  color: var(--tp-navy);
  box-shadow: 0 6px 0 #d39e00;
}

.tp-btn-green {
  background: var(--tp-green);
  color: #fff;
  box-shadow: 0 6px 0 var(--tp-green-dark);
}

.tp-btn-navy {
  background: var(--tp-navy);
  color: #fff;
  box-shadow: 0 6px 0 #062536;
}

.tp-btn-ghost {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  box-shadow: none;
}

.tp-btn-danger {
  background: var(--tp-red);
  color: #fff;
  box-shadow: 0 6px 0 #b71c1c;
}

.tp-btn-block { width: 100%; }

.tp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.tp-actions-3 { grid-template-columns: 1fr; }

@media (min-width: 576px) {
  .tp-actions-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.tp-form-label {
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .25rem;
}

.tp-input,
.tp-select {
  border: 2px solid #d7e6ef;
  border-radius: .9rem;
  padding: .7rem .85rem;
  width: 100%;
  font-weight: 700;
  color: var(--tp-navy);
}

.tp-input:focus,
.tp-select:focus {
  outline: 3px solid rgba(255, 107, 0, .35);
  border-color: var(--tp-orange);
}

.tp-radio-lista {
  display: grid;
  gap: .55rem;
}

.tp-turno-acoes {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: .65rem;
  margin-top: 1rem;
}

.tp-turno-acoes .tp-btn {
  flex: 1 1 0;
  min-height: 2.65rem;
  font-size: .95rem;
}

.tp-turno-acoes .tp-btn-primary {
  flex: 1.35 1 0;
}

.tp-turno-acoes .tp-btn-sm {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.65rem;
  align-self: stretch;
  padding: .45rem .7rem;
  font-size: .88rem;
}

.tp-hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .75rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tp-hero-title-row .tp-page-title {
  margin: 0;
  text-align: left;
  line-height: 1.2;
}

.tp-hero-title-bus {
  display: block;
  height: 2.22rem;
  width: auto;
  max-width: 4.5rem;
  object-fit: contain;
  justify-self: end;
  align-self: center;
}

.tp-radio-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .7rem .9rem;
  border: 2px solid #d7e6ef;
  border-radius: 1rem;
  background: #fff;
  font-weight: 800;
  color: var(--tp-navy);
  cursor: pointer;
}

.tp-radio-item.is-on {
  border-color: var(--tp-orange);
  background: #fff7e8;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.tp-radio-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tp-radio-marca {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 3px solid #90a4ae;
  flex-shrink: 0;
  position: relative;
  background: #fff;
}

.tp-radio-item.is-on .tp-radio-marca {
  border-color: var(--tp-orange);
}

.tp-radio-item.is-on .tp-radio-marca::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tp-orange);
}

.tp-radio-txt {
  min-width: 0;
}

.tp-status-hero {
  position: relative;
  text-align: center;
  padding: .5rem 0 .85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: .35rem;
  width: 100%;
}

.tp-status-hero .tp-badge { font-size: .95rem; padding: .4rem 1rem; }

.tp-status-hero .tp-badge {
  position: relative;
  z-index: 1;
  align-self: center;
}

/* Timeline vertical — linha e pontos no mesmo eixo, ponto no centro do card */
.tp-timeline {
  --tp-rail: 2.45rem;
  --tp-dot: 1.25rem;
  --tp-line: 6px;
  --tp-gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--tp-gap);
}

.tp-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tp-rail) minmax(0, 1fr);
  align-items: center;
  column-gap: .75rem;
}

.tp-tl-item::before,
.tp-tl-item::after {
  content: "";
  position: absolute;
  left: calc(var(--tp-rail) / 2);
  width: var(--tp-line);
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--tp-yellow), var(--tp-orange));
  z-index: 0;
  pointer-events: none;
}

/* do centro do card até o topo do próximo (inclui o gap) */
.tp-tl-item:not(:last-child)::before {
  top: 50%;
  height: calc(50% + var(--tp-gap));
}

.tp-tl-item:last-child::before {
  content: none;
}

/* do topo do card até o centro (encontra a linha do item anterior) */
.tp-tl-item:not(:first-child)::after {
  top: 0;
  height: 50%;
}

.tp-tl-item:first-child::after {
  content: none;
}

.tp-tl-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  box-sizing: border-box;
  width: var(--tp-dot);
  height: var(--tp-dot);
  border-radius: 50%;
  background: #fff;
  border: 4px solid #cfd8dc;
}

.tp-tl-item.is-coletado .tp-tl-dot {
  border-color: var(--tp-green);
  background: var(--tp-green);
}

.tp-tl-item.is-buscando {
  --tp-dot: 2.75rem;
}

.tp-tl-item.is-buscando .tp-tl-dot {
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  border-radius: 0;
  overflow: visible;
}

.tp-tl-dot--bus {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-tl-dot--bus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(11, 61, 92, .25));
}

.tp-tl-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .28rem;
  background: #fff;
  border-radius: 1rem;
  padding: .55rem .7rem .5rem;
  border: 2px solid #edf3f7;
  box-shadow: 0 6px 14px rgba(11,61,92,.08);
}

.tp-tl-item.is-buscando .tp-tl-card {
  border-color: var(--tp-orange);
  background: #fff7e8;
  animation: tp-card-pulse 1.15s ease-in-out infinite;
}

@keyframes tp-card-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, .4);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 107, 0, .14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-tl-item.is-buscando .tp-tl-card { animation: none; }
}

.tp-tl-item.is-coletado .tp-tl-card {
  border-color: #b9f6ca;
  background: #f1fff6;
  opacity: .92;
}

.tp-tl-item.is-mine .tp-tl-card {
  outline: 3px solid var(--tp-sky);
}

.tp-tl-item > .tp-tl-card {
  min-width: 0;
  width: 100%;
}

.tp-tl-item.tp-tl-grupo {
  align-items: center;
}

.tp-tl-item.tp-tl-grupo .tp-tl-dot {
  align-self: center;
  margin-top: 0;
}

.tp-tl-card.tp-tl-card--grupo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: stretch;
  gap: 0;
  padding: .55rem .7rem .5rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-tl-card.tp-tl-card--grupo > .tp-tl-grupo-cabeca,
.tp-tl-card.tp-tl-card--grupo > .tp-tl-grupo-corpo,
.tp-tl-card.tp-tl-card--grupo > .tp-tl-grupo-rodape {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-tl-grupo-cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding-bottom: .35rem;
  margin-bottom: .15rem;
  border-bottom: 1px solid #e8eef3;
}

.tp-tl-grupo-cabeca-info {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.tp-tl-grupo-cabeca .tp-tl-hora {
  color: var(--tp-muted);
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}

.tp-tl-grupo-qtd {
  color: var(--tp-muted);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tp-tl-grupo-corpo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tp-tl-grupo-linha {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .28rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: .45rem 0;
}

.tp-tl-grupo-linha + .tp-tl-grupo-linha {
  border-top: 1px dashed #e8eef3;
}

.tp-tl-grupo-linha .tp-tl-name {
  font-size: 1rem;
}

.tp-tl-grupo-linha > .tp-tl-acoes {
  width: 100%;
  margin-top: .05rem;
}

.tp-tl-grupo-linha.is-mine {
  background: rgba(3, 169, 244, .06);
  border-radius: .65rem;
  margin: 0 -.35rem;
  padding-left: .35rem;
  padding-right: .35rem;
}

.tp-tl-grupo-rodape {
  padding-top: .35rem;
  margin-top: .1rem;
  border-top: 1px solid #e8eef3;
}

.tp-tl-grupo-rodape .tp-tl-status {
  margin: 0;
}

.tp-btn-coletar-todos {
  flex-shrink: 0;
  font-size: .74rem;
  padding: .24rem .55rem;
  min-height: 1.85rem;
  box-shadow: 0 3px 8px rgba(46, 125, 50, .22);
}

.tp-btn-desfazer-grupo {
  flex-shrink: 0;
  font-size: .74rem;
  padding: .24rem .55rem;
  min-height: 1.85rem;
  box-shadow: 0 3px 8px rgba(211, 158, 0, .22);
}

.tp-tl-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
}

.tp-tl-topo .tp-tl-name {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-tl-topo .tp-tl-hora {
  flex: 0 0 auto;
  color: var(--tp-muted);
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
}

.tp-tl-name {
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.tp-tl-linha2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
}

.tp-tl-linha2 .tp-tl-ponto {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--tp-muted);
  font-weight: 700;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-tl-linha2 .tp-tl-status {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  justify-content: flex-end;
}

.tp-tl-linha2 .tp-aviso-urc--destaque {
  white-space: normal;
  word-break: break-word;
}

.tp-tl-rota {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.tp-tl-rota .tp-tl-hora {
  flex-shrink: 0;
  color: var(--tp-muted);
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
}

.tp-tl-rota .tp-tl-ponto {
  min-width: 0;
  flex: 1;
  color: var(--tp-muted);
  font-weight: 700;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-tl-card > .tp-tl-acoes {
  width: 100%;
  margin-top: .1rem;
}

.tp-tl-acoes {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
  width: 100%;
}

.tp-tl-acoes .tp-btn-status {
  flex: 0 0 calc((100% - .7rem) / 3);
  width: calc((100% - .7rem) / 3);
  max-width: calc((100% - .7rem) / 3);
  min-width: 0;
  height: auto;
  min-height: 2.15rem;
  aspect-ratio: auto;
  padding: .35rem .4rem;
  font-size: .78rem;
  line-height: 1.2;
  border-radius: .7rem;
  white-space: nowrap;
  text-align: center;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}

.tp-tl-acoes .tp-btn-green.tp-btn-status {
  box-shadow: 0 3px 0 var(--tp-green-dark);
}

.tp-tl-acoes .tp-btn-danger.tp-btn-status {
  box-shadow: 0 3px 0 #b71c1c;
}

.tp-tl-acoes .tp-btn-navy.tp-btn-status {
  box-shadow: 0 3px 0 #062536;
}

.tp-tl-acoes .tp-btn-yellow.tp-btn-status {
  box-shadow: 0 3px 0 #d39e00;
  color: var(--tp-navy);
}

.tp-tl-acoes .tp-btn-aviso {
  margin: 0;
}

.tp-tl-acoes .tp-btn-aviso i {
  font-size: .95rem;
  line-height: 1;
}

.tp-tl-status {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}

.tp-tl-acoes .tp-btn-desfazer {
  text-decoration: none;
}

.tp-tl-extra {
  width: 100%;
}

.tp-tl-item.is-ausente .tp-tl-dot {
  border-color: #90a4ae;
  background: #cfd8dc;
}

.tp-tl-item.is-ausente .tp-tl-card {
  border-color: #cfd8dc;
  background: #eceff1;
  opacity: .85;
}

.tp-banner-imp {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border-radius: 1rem;
  padding: .9rem 1rem;
  margin-bottom: .85rem;
  font-weight: 700;
  box-shadow: var(--tp-shadow);
}

.tp-banner-imp.d-none { display: none; }

.tp-banner-imp--amarelo {
  background: #fff3cd;
  border: 3px solid var(--tp-yellow);
  color: #7a5b00;
}

.tp-banner-imp--vermelho {
  background: #ffebee;
  border: 3px solid var(--tp-red);
  color: #8b1d1d;
}

.tp-banner-imp-ico {
  font-size: 1.5rem;
  line-height: 1;
}

.tp-toast-aviso {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  padding: .75rem .75rem 0;
}

.tp-toast-aviso.is-on { display: block; }

.tp-toast-aviso-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--tp-navy);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  border: 4px solid var(--tp-yellow);
  text-align: center;
}

.tp-toast-aviso-inner i {
  font-size: 1.6rem;
  color: var(--tp-yellow);
  display: block;
  margin-bottom: .35rem;
}

.tp-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  padding: .55rem .2rem;
  text-align: left;
}

.tp-check input { width: 1.15rem; height: 1.15rem; }

.tp-tl-meta {
  color: var(--tp-muted);
  font-weight: 700;
  font-size: .88rem;
}

.tp-tl-coletado-hora {
  color: var(--tp-green-dark);
  font-weight: 800;
  margin-left: .15rem;
}

.tp-van-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--tp-orange);
  font-weight: 800;
  animation: tp-pulse 1s ease-in-out infinite;
}

.tp-van-live img {
  width: 2rem;
  height: auto;
}

.tp-tl-status .tp-van-live img { width: 1.35rem; }

@keyframes tp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .72; }
}

.tp-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 92, .72);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.tp-alert-overlay.is-on { display: flex; }

.tp-alert-box {
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.4rem 1.2rem;
  text-align: center;
  max-width: 22rem;
  border: 6px solid var(--tp-yellow);
}

.tp-alert-box h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
}

.tp-empty {
  text-align: center;
  color: var(--tp-muted);
  font-weight: 700;
  padding: 1.2rem .4rem;
}

.tp-kid-row {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: .55rem;
}

.tp-kid-row .tp-input { flex: 1; }

.tp-icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .8rem;
  border: 0;
  background: #eef6fb;
  color: var(--tp-navy);
  font-size: 1.05rem;
}

.tp-erros-table { font-size: .82rem; }
.tp-erros-row--pendente { background: #ffebee; }
.tp-erros-row--ignorado { background: #eceff1; color: #607d8b; }
.tp-erros-row--resolvido { background: #e8f5e9; }

.tp-footer-note {
  text-align: center;
  font-size: .8rem;
  color: var(--tp-muted);
  padding-bottom: 1.5rem;
}

.tp-escolher-card {
  position: relative;
  z-index: 2;
}

.btn-escolher-filho {
  touch-action: manipulation;
  min-height: 3rem;
}

.tp-select-child,
#select-filho,
label[for="select-filho"] {
  display: none !important;
}

#rota-publica.is-acompanhando {
  padding-bottom: 1.25rem;
}

#rota-publica.is-acompanhando #tela-escolher {
  display: none !important;
}

.tp-nav-urc {
  grid-template-columns: 1fr 1fr;
}

.tp-nav-urc .tp-nav-alarme.is-autorizar {
  color: var(--tp-yellow);
}

.tp-nav-urc .tp-nav-alarme.is-off {
  color: #90a4ae;
}

.tp-nav-urc .tp-nav-alarme.is-on {
  color: #a5f3bc;
}

.tp-opcoes-alarme.is-on {
  border-color: var(--tp-green);
  color: var(--tp-navy);
}

.tp-opcoes-alarme.is-off {
  color: var(--tp-muted);
}

.tp-agenda-locais {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-agenda-locais li {
  padding: .35rem 0;
  border-bottom: 1px dashed #e8eef3;
}

.tp-agenda-locais li:last-child {
  border-bottom: 0;
}

.tp-modal-dicas .tp-keep-open,
.tp-modal-dicas .tp-dica-volume {
  margin-bottom: .75rem;
}

.tp-modal-dicas .tp-dica-volume:last-child {
  margin-bottom: 0;
}

.swal2-popup { font-family: "Nunito", sans-serif !important; }

.tp-help {
  font-size: .9rem;
  color: var(--tp-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.tp-keep-open {
  background: #fff8e6;
  border: 2px solid #ffe08a;
  border-radius: .9rem;
  padding: .75rem .9rem;
  font-weight: 800;
  color: var(--tp-navy);
  font-size: .92rem;
  margin-bottom: .5rem;
}

.tp-dica-volume {
  background: #fff;
  border: 2px solid #d7e6ef;
  border-radius: .9rem;
  padding: .65rem .9rem;
  font-weight: 700;
  color: var(--tp-muted);
  font-size: .88rem;
  margin-bottom: .85rem;
}

.tp-home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: .35rem;
}

@media (min-width: 640px) {
  .tp-home-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.tp-home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 2px solid #edf3f7;
  border-radius: var(--tp-radius);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: var(--tp-shadow);
  min-height: 9.5rem;
  transition: border-color .15s ease, transform .15s ease;
}

.tp-home-card:hover,
.tp-home-card:focus-visible {
  border-color: var(--tp-orange);
  color: inherit;
  outline: none;
}

.tp-home-card:active {
  transform: translateY(1px);
}

.tp-home-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .85rem;
  background: #e8f4fb;
  color: var(--tp-navy);
  font-size: 1.35rem;
  margin-bottom: .15rem;
}

.tp-home-card-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--tp-navy);
}

.tp-home-card-txt {
  color: var(--tp-muted);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.35;
  flex: 1 1 auto;
}

.tp-home-card-cta {
  margin-top: .35rem;
  color: var(--tp-orange);
  font-weight: 800;
  font-size: .92rem;
}

.tp-card-instalar {
  border-color: var(--tp-navy);
}
.tp-card-instalar p {
  margin: 0;
  font-weight: 700;
  color: var(--tp-navy);
  font-size: .92rem;
}

.tp-card-alarme {
  border-color: var(--tp-orange);
  background: #fff7e8;
}
.tp-card-alarme p {
  margin: 0 0 .55rem;
  font-weight: 700;
  color: var(--tp-navy);
  font-size: .92rem;
}
.tp-card-alarme p:last-of-type { margin-bottom: .75rem; }

.tp-grade {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 .35rem;
}
.tp-grade th,
.tp-grade td {
  padding: .15rem .25rem;
  vertical-align: middle;
}
.tp-grade th {
  font-size: .85rem;
  color: var(--tp-navy);
}
.tp-aviso-urc {
  font-size: .85rem;
  font-weight: 800;
  color: #c62828;
  margin: .15rem 0 .25rem;
}

.tp-aviso-urc--destaque {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  text-align: right;
  max-width: 100%;
}

.tp-tl-status .tp-aviso-urc--destaque {
  font-size: 1.02rem;
}
.tp-turnos-card {
  padding: 0;
  overflow: hidden;
}

.tp-turnos-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.tp-turnos-table thead th {
  padding: .65rem .5rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--tp-muted);
  background: #f7fbfd;
  border-bottom: 2px solid #edf3f7;
}

.tp-turnos-table tbody td,
.tp-turnos-table tbody th {
  padding: .5rem .45rem;
  vertical-align: middle;
  border-bottom: 1px solid #edf3f7;
}

.tp-turnos-table tbody tr:last-child td,
.tp-turnos-table tbody tr:last-child th {
  border-bottom: 0;
}

.tp-turnos-num {
  width: 3.2rem;
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tp-navy);
  text-align: center;
}

.tp-turnos-col-x {
  width: 2.85rem;
  text-align: center;
}

.tp-turnos-table .tp-hora-wrap {
  min-width: 0;
}

.tp-turnos-table .tp-input {
  padding: .55rem .65rem;
  padding-right: 2.5rem;
  font-size: .95rem;
}

.tp-btn-turno-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 2px solid #cfd8dc;
  border-radius: 50%;
  background: #fff;
  color: var(--tp-muted);
  cursor: pointer;
  line-height: 1;
}

.tp-btn-turno-x:hover,
.tp-btn-turno-x:focus-visible {
  border-color: var(--tp-red);
  color: var(--tp-red);
  background: #ffebee;
}

.tp-turnos-x-vazio {
  display: inline-block;
  width: 2.35rem;
  height: 2.35rem;
}

.tp-turno-row.is-off {
  background: #f3f5f7;
}

.tp-turno-row.is-off .tp-turnos-num {
  color: var(--tp-muted);
}

.tp-turno-row.is-off .tp-input {
  background: #fff;
}

.tp-hora-wrap {
  position: relative;
}
.tp-hora-campo {
  padding-right: 2.7rem;
}
.tp-hora-rel {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  background: transparent;
  color: var(--tp-navy);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp-hora-picker {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + .35rem);
  background: #fff;
  border: 2px solid #d7e6ef;
  border-radius: .9rem;
  box-shadow: 0 10px 28px rgba(11, 61, 92, .16);
  padding: .7rem .7rem .8rem;
}
.tp-hora-picker-tit {
  font-size: .8rem;
  font-weight: 800;
  color: var(--tp-muted);
  margin-bottom: .4rem;
}
.tp-hora-picker-cols {
  display: flex;
  align-items: stretch;
  gap: .4rem;
  margin-bottom: .7rem;
}
.tp-hora-picker-col {
  flex: 1;
  max-height: 9.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tp-hora-picker-sep {
  font-weight: 800;
  color: var(--tp-navy);
  align-self: center;
}
.tp-hora-opt {
  border: 0;
  background: #eef6fb;
  color: var(--tp-navy);
  font-weight: 800;
  border-radius: .65rem;
  padding: .35rem .2rem;
}
.tp-hora-opt.is-on {
  background: var(--tp-orange);
  color: #fff;
}

.tp-local-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  margin-bottom: .75rem;
}
.tp-local-row .tp-hora-wrap {
  min-width: 0;
  width: 100%;
}
.tp-local-horas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
@media (min-width: 768px) {
  .tp-local-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .tp-local-horas {
    display: contents;
  }
}

.tp-modo-seg {
  display: inline-flex;
  border: 2px solid #d7e6ef;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.tp-modo-btn {
  border: 0;
  background: #fff;
  color: var(--tp-navy);
  font-weight: 800;
  font-size: .82rem;
  padding: .35rem .75rem;
}
.tp-modo-btn.is-on {
  background: var(--tp-navy);
  color: #fff;
}

.tp-quinzena-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .7rem;
}
.tp-quinzena-linha .tp-select {
  width: auto;
  min-width: 4.2rem;
  flex: 1 1 4.5rem;
}
.tp-quinzena-linha .q-ponto {
  flex: 2 1 8rem;
}
