/* =========================================================
   SMART PANEL (TV) — CSS ÚNICO
   Mantém o design antigo e casa com o HTML atual
   ========================================================= */

/* Variáveis removidas — valores inlined para simplicidade */


  *,
  *::before,
  *::after { box-sizing: border-box; }
  
  html, body{
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
  }
  
  /* Tema azul (igual ao antigo) */
  .theme-blue { background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%); }
  
  /* ===== Shell ===== */
  .panel{
    display: flex;
    flex-direction: column;
    max-width: 95vw;
    margin: 0 auto;
    height: 92vh;
    justify-content: space-around;
  }
  
  /* ===== Header ===== */
  .hdr{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8vh 2.4vh;
    /* sem linha de separação — mock não tem borda extra */
    background: rgba(0,0,0,.20);
    backdrop-filter: blur(.4vh);
    border-radius: 1.6vh;
  }
  .hdr .brand{ display:flex; align-items:center;}
  .hdr .brand-logo{ width:5.2vh; height:5.2vh; object-fit:contain; display:none; }
  .hdr .brand-names{ display:flex; flex-direction:column; }
  .hdr .brand-title{ font-size:2.3vh; font-weight:800; line-height:1; }
  .hdr .brand-sub{   font-size:1.5vh; opacity:.8; margin-top:.4vh; }
  
  .hdr .timebox{ text-align:right; }
  .hdr .timebox .clock{ font-family: ui-monospace, Menlo, Consolas, monospace; font-size:2.3vh; }
  .hdr .timebox .sub{ font-size:1.5vh; opacity:.8; }
  
  /* Mostrar brasão quando houver URL */
  .show-logo .hdr .brand-logo{ display:block; }
  
  /* ===== Hero (cartão principal) ===== */
  .hero{
    border-radius: calc(2.2vh + .6vh);
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.06));
    backdrop-filter: blur(.5vh);
    padding: 2vh 2.2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 40vh;
  }
  .hero .hero-title{
    text-align:center;
    font-size: 2.4vh;
    font-weight: 800;
  }
  .hero .person-content{
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero .person{
    text-align:center;
    white-space: nowrap;
    font-size: 8.5vh;
    font-weight: 900;
    color:#fde047;                     /* amarelo do layout */
    line-height: 1.1;
    text-shadow: 0 .2vh .2vh rgba(0,0,0,.18);
    max-width: 30ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero .ticket{
    text-align:center;
    font-size: 4vh;
    font-weight: 800;
    opacity:.98;
  }
  
  /* Linha de informações (LOCAL / CHAMADAS) */
  .info-row{
    margin-top: auto;
    display:flex;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Pílulas padrão */
  .pill{
    background: rgba(255,255,255,.17);
    border-radius: 2vh;
    padding: 2.0vh 1.8vh;
    width: 49.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  .pill .pill-label{
    font-size: 2.7vh;
    opacity:.78;
  }
  .pill .pill-value{
    font-size: 2.65vh;   /* valor dentro das pills conforme mock */
    font-weight: 800;
    margin-top:.7vh;
    text-align: center;
  }
  
  /* Pílula do LOCAL com aro amarelo igual à tela antiga */
  #desk-card{
    border-color: #fbbf24 !important;
    box-shadow: inset 0 0 0 .18vh rgba(251,191,36,.85);
  }
  
  /* KPI (Chamadas) */
  .kpi{
    background: rgba(255,255,255,.16);
    border-radius: 2.2vh;
    padding: 2.0vh 1.8vh;
    width: 49.5%;
    display:flex; 
    align-items:center; 
    justify-content:center;
    flex-direction: column;
  }
  .kpi .kpi-label{ text-transform:uppercase; font-size:1.7vh;  opacity:.78; }
  .kpi .kpi-value{ font-size:2.8vh; font-weight:900; }
  
  /* ===== Grid inferior (sempre 2 colunas) ===== */
  .panel-columns{
    display:flex;
    max-height: 40vh;
    justify-content: space-between;
  }
  .panel-columns > .card:first-child{
    width: 62%;
  }
  .panel-columns > .card:last-child{
    width: 36%;
  }
  .card{
    display:flex;
    flex-direction:column;
    background: rgba(255,255,255,.12);
    border-radius: 2.2vh;
    padding: 2vh 2.2vh;
    backdrop-filter: blur(.4vh);
    height: 36vh;
  }
  .card .card-title{
    display:flex; align-items:center; justify-content:center;
    font-size: 1.8vh;
    font-weight: 800;
    opacity:.9;
    margin-bottom: 2.0vh;
  }
  .card .card-body{
    height: 100%;
    overflow: hidden;
    display:flex; 
    flex-direction:column; 
    justify-content: start;
    gap: 2vh;
  }

  /* Grid 2 colunas para próximas senhas */
  .next-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2vh;
  }
  
  /* Linhas das listas */
  .list-item{
    display:flex; align-items:center; justify-content:space-between;
    background: rgba(255,255,255,.15);
    border-radius: 1.6vh;
    padding: 1.55vh 1.6vh;
  }
  .list-item .left{ display:flex; align-items:center; }
  
  .badge-num{
    margin-right: 1vh;
    width: 3.2vh; height: 3.2vh; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:#3b82f6; color:#fff;
    font-weight:900; font-size:1.6vh;
  }
  
  .dot{ width:1.2vh; height:1.2vh; border-radius:50%; margin-right: 1vh;}
  .dot.green{  background:#4ade80; }
  .dot.blue{   background:#60a5fa; }
  .dot.yellow{ background:#facc15; }
  .dot.purple{ background:#c4b5fd; }
  
  .li-title{ font-size:1.9vh; font-weight:800; line-height:1.05; }
  .li-sub {
    font-size: 1.5vh;
    opacity: .72;
    overflow: hidden;
    height: 2vh;
    width: 100%;
    white-space: nowrap;  
}
  .li-right{ text-align:right; font-size:1.35vh; opacity:.65; }
  
  /* Estados vazios */
  .empty{
    text-align:center;
    opacity:.72;
    margin-top: 6vh;
    font-size: 2.0vh;
  }
  .section-footer {
    background-color: rgba(0, 0, 0, 0.5);
    height: 8vh;
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }
  
  .footer-message {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    height: 100%;
    width: 100%;
    font-size: 6vh;
    font-weight: 600;
    overflow: hidden; /* pra cortar o que passar */
  }
  
  .footer-message-text {
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    will-change: transform;
  }
  
  
  /* ===== Efeitos que o JS usa ===== */
  .pulse-notification{ animation: pulse 3s infinite ease-in-out; }
  @keyframes pulse{
    0%,100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    50%    { box-shadow: 0 0 0 .8vh rgba(59,130,246,.14); }
  }
  .zoom-in{ animation: zoom .25s ease-out; }
  @keyframes zoom{ from{ transform:scale(.97); opacity:.85 } to{ transform:scale(1); opacity:1 } }
  /* Piscar do nome quando a senha é chamada (JS adiciona .person-name-blink) */
  .person-name-blink{ animation: nameBlink .8s ease-in-out 8; }
  @keyframes nameBlink{ 0%,100%{ opacity:1 } 50%{ opacity:.55 } }
  
  .ticket-called-highlight{ border-color:#fff !important; }
  .desk-card-highlight{ border-color:#fbbf24 !important; }
  
  /* ===== Debug overlay sempre rolável ===== */
  #tv-debug-overlay{
    position:fixed; z-index:999999;
    top:8px !important; left:8px !important; right:8px !important; bottom:8px !important;
    max-height: calc(100vh - 16px) !important; overflow:auto !important;
  }
  