﻿/* ==================================================================
   BAGL — TERMINAL OPERACIONAL  |  style.css  (toda a aparência)
   ------------------------------------------------------------------
   As CORES ficam no bloco :root logo abaixo — mude ali para trocar
   o tema do sistema inteiro. As seções vêm na ordem das telas:
   LOGIN > TOPBAR > TOTENS > PAINEL > FOTO DA AERONAVE > FICHA DE VOO
   > ACOMPANHAMENTO > PÁTIOS 3D
   ================================================================== */

:root{--bg:#080c14;--panel:rgba(16,25,43,.93);--panel-border:rgba(56,189,248,.24);--cyan:#38bdf8;--text:#f8fafc;--muted:#94a3b8;--green:#22c55e;--amber:#f59e0b;--red:#ef4444;--bagl-bg-image:none}
*{box-sizing:border-box;margin:0;padding:0;font-family:'Segoe UI',system-ui,sans-serif}
body{background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column;position:relative;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;background-image:radial-gradient(circle at center,rgba(8,12,20,.55) 0%,rgba(8,12,20,.88) 75%),var(--bagl-bg-image);background-position:center;background-repeat:no-repeat;background-size:cover,min(68vw,540px) auto;opacity:.22;pointer-events:none;z-index:0}
header,main{position:relative;z-index:1}
.hidden{display:none!important}

/* LOGIN */
.login-overlay{position:fixed;inset:0;background:rgba(5,8,15,.96);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}
.login-box{background:var(--panel);border:1px solid var(--panel-border);border-radius:22px;padding:32px;width:100%;max-width:440px;box-shadow:0 24px 48px rgba(0,0,0,.75)}
.login-header{text-align:center;margin-bottom:22px}
.badge-sbgl{background:rgba(56,189,248,.16);color:var(--cyan);padding:6px 14px;border-radius:999px;font-size:.8rem;font-weight:800;letter-spacing:.8px}
.login-header h2{font-size:1.4rem;margin-top:12px}
.login-header p{font-size:.9rem;color:var(--muted);margin-top:4px}
.form-group{margin-bottom:16px;display:flex;flex-direction:column;gap:8px}
.form-group label{font-size:.9rem;font-weight:700;color:#e2e8f0}
.form-group input,.form-group select{background:#090e1a;border:1.5px solid rgba(255,255,255,.16);border-radius:12px;padding:13px 14px;color:var(--text);font-size:1rem;outline:none}
.form-group input:focus,.form-group select:focus{border-color:var(--cyan)}
.erro-msg{color:#fca5a5;font-size:.88rem;margin-bottom:12px;font-weight:700}
.btn-primary{background:var(--cyan);color:#07111e;border:none;font-weight:900;padding:15px 20px;border-radius:14px;cursor:pointer;width:100%;font-size:1.05rem}

/* TOPBAR */
.topbar{background:rgba(16,25,43,.94);border-bottom:1px solid rgba(255,255,255,.08);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1000;gap:12px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px}
.brand-badge{background:var(--cyan);color:#07111e;font-weight:900;padding:8px 14px;border-radius:10px;font-size:.95rem}
.brand h1{font-size:1.02rem}
.brand p{font-size:.78rem;color:var(--muted)}
.topbar-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.user-pill{background:rgba(9,14,26,.92);border:1px solid rgba(255,255,255,.14);padding:8px 16px;border-radius:999px;display:flex;align-items:center;gap:14px;font-size:.9rem}
.user-pill span{display:block;font-size:.76rem;color:var(--cyan);font-weight:800}
.btn-logout{background:transparent;border:none;color:#f87171;cursor:pointer;font-size:.85rem;font-weight:800}

.container{max-width:1360px;width:100%;margin:0 auto;padding:18px;flex:1;display:flex;flex-direction:column;gap:20px}

/* TOTENS */
.totem-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:20px}
@media(max-width:680px){.totem-menu-grid{grid-template-columns:1fr}}
.totem-card{background:linear-gradient(160deg,rgba(19,32,56,.92) 0%,rgba(11,18,32,.94) 100%);border:2px solid rgba(56,189,248,.28);border-radius:24px;min-height:215px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;cursor:pointer;color:#fff;transition:transform .15s,border-color .15s}
.totem-card:hover{border-color:var(--cyan);transform:translateY(-3px)}
.totem-card:active{transform:scale(.98)}
.totem-quadrado-icone{width:92px;height:92px;border-radius:22px;background:rgba(56,189,248,.15);border:2px solid rgba(56,189,248,.48);display:flex;align-items:center;justify-content:center;font-size:2.9rem}
.totem-titulo{font-size:1.3rem;font-weight:900;text-align:center}

/* PAINEL */
.panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:22px;padding:20px;box-shadow:0 12px 28px rgba(0,0,0,.38)}
.panel-top-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.panel-top-bar h2{font-size:1.25rem}
.btn-voltar-totens{background:rgba(56,189,248,.14);color:var(--cyan);border:1.5px solid var(--cyan);border-radius:12px;padding:11px 18px;font-size:.95rem;font-weight:800;cursor:pointer}
.btn-voltar-totens:hover{background:var(--cyan);color:#07111e}
.aviso-bloqueio{background:rgba(239,68,68,.18);border:1.5px solid var(--red);color:#fecaca;border-radius:14px;padding:16px;font-size:.98rem;font-weight:700}
.area-vazia-placeholder{min-height:240px;border:2px dashed rgba(148,163,184,.25);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted);font-size:1.05rem;font-weight:700}

/* FOTO DA AERONAVE (quadro) */
.img-aeronave-frame{background:radial-gradient(circle at center,#1b3358 0%,#070c16 100%);border:1.5px solid rgba(56,189,248,.34);border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:4px;position:relative}
.img-aeronave-frame img{width:100%;height:100%;object-fit:contain;display:block}
.foto-fallback{font-size:2.4rem;opacity:.75}

/* BLOCOS DE AERONAVES */
.secao-bloco{background:rgba(9,13,22,.84);border:1.5px solid rgba(56,189,248,.22);border-radius:18px;padding:16px;margin-bottom:18px}
.secao-titulo-grande{font-size:1rem;font-weight:900;color:#fff;margin-bottom:14px;display:block}
.aircraft-square-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
@media(max-width:480px){.aircraft-square-grid{grid-template-columns:repeat(2,1fr);gap:10px}}
.aircraft-square-tile{background:rgba(30,41,59,.74);border:2px solid rgba(255,255,255,.12);border-radius:18px;min-height:170px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:#f8fafc;transition:all .15s}
.aircraft-square-tile:hover{border-color:var(--cyan);background:rgba(30,41,59,.95)}
.aircraft-square-tile.active{background:rgba(34,197,94,.16);border-color:var(--green);box-shadow:0 0 16px rgba(34,197,94,.25)}
.aircraft-quadro-img{width:100%;height:96px}
.aircraft-square-tile.active .img-aeronave-frame{border-color:var(--green);background:radial-gradient(circle at center,rgba(34,197,94,.24) 0%,#07120c 100%)}
.aircraft-quadro-nome{font-size:.96rem;font-weight:900;text-align:center;color:#fff;line-height:1.1}
.aircraft-quadro-sub{font-size:.72rem;font-weight:700;color:var(--muted);text-align:center;line-height:1.1}
.aircraft-square-tile.active .aircraft-quadro-sub{color:#bbf7d0}

/* MATRÍCULA E PÁTIO */
.dados-voo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:18px}
@media(max-width:760px){.dados-voo-grid{grid-template-columns:1fr}}
.campo-destaque-card{background:rgba(9,14,26,.92);border:2px solid rgba(56,189,248,.32);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px}
.campo-destaque-topo{display:flex;align-items:center;justify-content:space-between;gap:10px}
.campo-destaque-label{font-size:.92rem;font-weight:900;letter-spacing:.6px;color:var(--cyan);text-transform:uppercase}
.campo-destaque-valor{font-size:1.35rem;font-weight:900;color:#fff;font-family:monospace}
.select-grande,.input-grande{width:100%;background:#101b30;border-radius:14px;padding:14px;color:#fff;font-size:1.05rem;font-weight:700;outline:none;min-height:52px}
.select-grande{border:2px solid rgba(255,255,255,.16)}
.select-grande:focus{border-color:var(--cyan)}
.input-grande{border:2px solid var(--cyan)}

/* AUTORIDADE E LANCHE */
.detalhe-box-autoridade{background:rgba(168,85,247,.14);border:1.5px solid rgba(168,85,247,.45);border-radius:18px;padding:16px;margin-bottom:18px}
.detalhe-box-lanche{background:rgba(245,158,11,.14);border:1.5px solid rgba(245,158,11,.45);border-radius:18px;padding:16px;margin-bottom:18px}
.grid-2-detalhe{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:640px){.grid-2-detalhe{grid-template-columns:1fr}}

/* RELÓGIO PAPA */
.clock-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;background:rgba(9,14,26,.92);border:1.5px solid rgba(255,255,255,.12);border-radius:18px;padding:16px;margin-bottom:18px}
.clock-group{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.clock-display{background:#0d2247;border:2px solid rgba(56,189,248,.5);border-radius:12px;padding:11px 18px;font-family:monospace;font-size:1.45rem;font-weight:900;color:#fff}
.oct-btn{width:56px;height:56px;background:#102a5c;color:#fff;border:1.5px solid rgba(56,189,248,.5);font-weight:900;font-size:.92rem;cursor:pointer;clip-path:polygon(30% 0%,70% 0%,100% 30%,100% 70%,70% 100%,30% 100%,0% 70%,0% 30%)}
.oct-btn:hover{background:var(--cyan);color:#07111e}
.btn-reset{background:#c53030;color:#fff;border:none;border-radius:12px;padding:13px 18px;font-size:.95rem;font-weight:900;cursor:pointer;min-height:50px}
.tempo-resumo{font-size:1rem;font-weight:800;color:#e2e8f0}

/* ENTIDADES */
.app-icons-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:12px;margin-bottom:20px}
@media(max-width:480px){.app-icons-grid{grid-template-columns:repeat(2,1fr);gap:10px}}
.app-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:116px;padding:14px 8px;border-radius:18px;background:rgba(30,41,59,.72);border:2px solid transparent;cursor:pointer;user-select:none}
.app-tile input{display:none}
.app-icon-box{width:56px;height:56px;border-radius:15px;background:#090e1a;border:1.5px solid rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-size:1.7rem}
.app-label{font-size:.88rem;font-weight:800;color:#f1f5f9;text-align:center}
.app-tile:has(input:checked){background:rgba(34,197,94,.16);border-color:var(--green)}
.app-tile:has(input:checked) .app-icon-box{background:var(--green);color:#07111e}

/* BOTÕES FINAIS */
.bottom-actions{display:grid;grid-template-columns:1fr 2fr;gap:14px}
@media(max-width:600px){.bottom-actions{grid-template-columns:1fr}}
.btn-limpar{background:#b5875a;color:#fff;border:none;border-radius:14px;padding:16px;font-size:1.05rem;font-weight:900;cursor:pointer;min-height:54px}
.btn-enviar{background:#2f5fa8;color:#fff;border:none;border-radius:14px;padding:16px;font-size:1.08rem;font-weight:900;cursor:pointer;min-height:54px}

/* CONFIRMAÇÃO */
.confirmacao-box{margin-top:20px;background:rgba(34,197,94,.14);border:2px solid var(--green);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px}
.confirmacao-topo{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tag-confirmado{background:var(--green);color:#06210f;font-weight:900;font-size:.82rem;padding:6px 12px;border-radius:999px}
.confirmacao-detalhes{font-size:.95rem;color:#ecfdf5;line-height:1.45}

/* ACOMPANHAMENTO */
.filtros-acomp{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
@media(max-width:780px){.filtros-acomp{grid-template-columns:repeat(2,1fr)}}
.filtro-btn{background:rgba(30,41,59,.75);border:2px solid rgba(255,255,255,.12);color:#f8fafc;border-radius:14px;padding:13px 10px;font-size:.92rem;font-weight:800;cursor:pointer;min-height:48px}
.filtro-btn.active{background:rgba(56,189,248,.2);border-color:var(--cyan);color:#fff}
.voos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
@media(max-width:480px){.voos-grid{grid-template-columns:1fr}}
.voo-card{background:rgba(9,13,22,.92);border:2px solid rgba(56,189,248,.28);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:14px}
.voo-card-topo{display:flex;align-items:center;gap:14px}
.voo-img-grande{width:130px;height:80px;flex-shrink:0}
.voo-info-principal{flex:1;min-width:0}
.voo-modelo-mat{font-size:1.15rem;font-weight:900;color:#fff}
.voo-patio-hora{font-size:.92rem;font-weight:800;color:var(--cyan);margin-top:4px}
.voo-protocolo{font-size:.78rem;color:var(--muted);font-family:monospace;margin-top:2px}
.status-badge{padding:6px 12px;border-radius:999px;font-size:.78rem;font-weight:900;text-transform:uppercase;align-self:flex-start}
.status-ENVIADO{background:rgba(56,189,248,.2);color:#7dd3fc;border:1px solid var(--cyan)}
.status-EM_ATENDIMENTO{background:rgba(245,158,11,.22);color:#fde68a;border:1px solid var(--amber)}
.status-CONCLUIDO{background:rgba(34,197,94,.2);color:#86efac;border:1px solid var(--green)}
.voo-entidades-lista{display:flex;flex-wrap:wrap;gap:8px}
.entidade-chip{background:rgba(30,41,59,.88);border:1px solid rgba(255,255,255,.16);border-radius:10px;padding:7px 11px;font-size:.85rem;font-weight:800;color:#f8fafc}
.voo-detalhes-extras{background:rgba(16,25,43,.85);border-radius:12px;padding:10px 12px;font-size:.88rem;color:#e2e8f0;display:flex;flex-direction:column;gap:4px}
.voo-acoes-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.btn-acao-voo{border:none;border-radius:12px;padding:13px 10px;font-size:.92rem;font-weight:900;cursor:pointer;min-height:48px}
.btn-receber{background:var(--amber);color:#1b1102}
.btn-concluir{background:var(--green);color:#06210f;grid-column:span 2}
.btn-acao-voo:disabled{opacity:.4;cursor:not-allowed}

/* ===== PÁTIOS 3D (visão estática) ===== */
.p3d-resumo{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.p3d-resumo button{background:rgba(30,41,59,.8);border:2px solid;color:#fff;border-radius:12px;padding:9px 14px;font-size:.88rem;font-weight:800;cursor:pointer}
.p3d-resumo button:hover,.p3d-resumo button.on{background:rgba(56,189,248,.25)}
.p3d-vp{position:relative;height:68vh;min-height:380px;border:2px solid rgba(56,189,248,.3);border-radius:18px;overflow:hidden;perspective:1500px;background:radial-gradient(circle at 50% 40%,#16263f 0%,#060a12 100%);pointer-events:none;user-select:none}
.p3d-stage{position:absolute;left:50%;top:48%;width:1000px;height:580px;margin:-290px 0 0 -500px;transform-style:preserve-3d;transform:translate(var(--px,0px),var(--py,0px)) scale(var(--z,1)) rotateX(var(--tilt,48deg)) rotateZ(var(--rot,0deg));transition:transform .7s ease}
.p3d-ground{position:absolute;inset:0;background:#26402a;overflow:hidden;box-shadow:0 0 0 6px #1a2c1d}
.p3d-ground>div{position:absolute}
.p3d-grama{background:#35603a;border-radius:18px}
.p3d-asf{background:#3d4552}
.p3d-asf2{background:#2f3641}
.p3d-pista{background:#222831;border:2px solid #4b5563;background-image:repeating-linear-gradient(90deg,#e5e7eb 0 22px,transparent 22px 44px);background-size:100% 3px;background-repeat:repeat-x;background-position:0 50%}
.p3d-slot{border:1.5px dashed rgba(250,204,21,.75);border-radius:4px;width:26px;height:26px;color:rgba(250,204,21,.9);font-size:8px;font-weight:900;display:flex;align-items:flex-end;justify-content:center}
.p3d-bld{position:absolute;transform-style:preserve-3d}
.p3d-bld>div{position:absolute;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:900;color:#0f172a;text-align:center}
.p3d-top{left:0;top:0;background:repeating-linear-gradient(45deg,#97a3b5 0 4px,#8793a6 4px 8px)}
.p3d-sd{background:#5a6677}
.p3d-sd2{background:#465162}
.p3d-ac{position:absolute;width:0;height:0;transform-style:preserve-3d}
.p3d-ring{position:absolute;border-radius:50%;border:2.5px solid var(--c);background:color-mix(in srgb,var(--c) 25%,transparent);transform:translate(-50%,-50%) translateZ(1px);animation:p3dp 2s infinite}
@keyframes p3dp{50%{box-shadow:0 0 14px var(--c)}}
.p3d-bb{position:absolute;left:0;top:0;width:max-content;display:flex;flex-direction:column;align-items:center;transform-origin:50% 100%;transform:translate(-50%,-100%) rotateX(calc(-1*var(--tilt,48deg)))}
.p3d-bb img{display:block;height:auto;filter:drop-shadow(0 5px 3px rgba(0,0,0,.55))}
.p3d-ac.prev .p3d-bb img{opacity:.45}
.p3d-ac.prev .p3d-ring{border-style:dashed}
.p3d-tag2{background:rgba(7,12,22,.92);border:1.5px solid var(--c);border-radius:8px;padding:2px 6px;text-align:center;white-space:nowrap;line-height:1.15;margin-bottom:1px}
.p3d-tag2 b{display:block;font-size:11px;color:#fff}
.p3d-tag2 span{display:block;font-size:9px;color:#cbd5e1;font-family:monospace}
.p3d-tag2 i{display:block;font-size:8px;font-style:normal;font-weight:800;color:var(--c)}
.p3d-ptag{position:absolute;transform:translateZ(8px) rotateX(calc(-1*var(--tilt,48deg)));transform-origin:50% 100%}
.p3d-ptag>div{transform:translate(-50%,-100%);border-radius:999px;padding:4px 12px;font-size:13px;font-weight:900;color:#fff;background:var(--c);white-space:nowrap}
.p3d-toasts{position:absolute;left:10px;bottom:10px;display:flex;flex-direction:column;gap:6px;z-index:5;max-width:min(420px,80%)}
.p3d-toast{background:rgba(34,197,94,.92);color:#04210f;font-weight:900;font-size:.9rem;padding:10px 14px;border-radius:12px}
.p3d-legenda{display:flex;gap:14px;flex-wrap:wrap;font-size:.8rem;font-weight:700;color:var(--muted);margin-top:10px}
.p3d-legenda i{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:5px;vertical-align:-1px}
.btn-liberar{background:var(--red);color:#fff;grid-column:span 2}

/* ===== ENTIDADES (MINHAS SOLICITAÇÕES) ===== */
.status-PENDENTE{background:rgba(148,163,184,.2);color:#cbd5e1;border:1px solid #94a3b8}
.status-EM_ANDAMENTO{background:rgba(245,158,11,.22);color:#fde68a;border:1px solid var(--amber)}
.aviso-nova{background:rgba(56,189,248,.18);border:1.5px solid var(--cyan);color:#e0f2fe;border-radius:14px;padding:13px 16px;font-weight:800;margin-bottom:14px}
.voo-progresso{font-size:.85rem;font-weight:800;color:#e2e8f0}
.entidade-chip.ent-PENDENTE{border-color:#94a3b8;color:#cbd5e1}
.entidade-chip.ent-EM_ANDAMENTO{border-color:var(--amber);background:rgba(245,158,11,.2);color:#fde68a}
.entidade-chip.ent-CONCLUIDO{border-color:var(--green);background:rgba(34,197,94,.2);color:#bbf7d0}
.ent-demais{font-size:.78rem;color:var(--muted);font-weight:700}
.btn-iniciar{background:var(--amber);color:#1b1102}

/* ===== RELATÓRIO DO SERVIÇO ===== */
.rel-gerar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:rgba(9,14,26,.92);border:1.5px solid rgba(56,189,248,.3);border-radius:16px;padding:16px;margin-bottom:18px;font-weight:700;line-height:1.5}
.rel-gerar .btn-enviar{width:auto;padding:16px 22px}
.rel-sub{margin:6px 0 12px;font-size:1rem}
.rel-acoes{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.rel-doc{background:#fff;color:#0f172a;border-radius:14px;padding:24px;font-size:.9rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rel-cab{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;border-bottom:3px solid #0b3a74;padding-bottom:10px;margin-bottom:14px}
.rel-cab h1{font-size:1.25rem;color:#0b3a74}
.rel-cab small{display:block;color:#475569;font-weight:600;margin-top:3px}
.rel-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px}
.rel-card{border:1.5px solid #cbd5e1;border-radius:10px;padding:10px;text-align:center;font-weight:700;font-size:.8rem;color:#475569}
.rel-card b{display:block;font-size:1.6rem;color:#0b3a74}
.rel-doc h2{font-size:1rem;color:#0b3a74;margin:14px 0 6px}
.rel-doc p{margin-bottom:4px}
.rel-wrap{overflow-x:auto}
.rel-doc table{width:100%;border-collapse:collapse;font-size:.82rem}
.rel-doc th{background:#0b3a74;color:#fff;text-align:left;padding:7px}
.rel-doc td{border-bottom:1px solid #cbd5e1;padding:7px;vertical-align:top}
.rel-doc tr{page-break-inside:avoid}
.rel-thumb{width:74px;height:44px;object-fit:contain;display:block;margin-bottom:3px}
.rel-ent{margin-bottom:3px}
.rel-rodape{margin-top:16px;padding-top:8px;border-top:1px solid #cbd5e1;color:#64748b;font-size:.75rem}
@media print{
  body{background:#fff!important}
  body::before,.topbar,.panel-top-bar,.rel-acoes,#rel-lista-area,#alerta-permissao{display:none!important}
  .container{padding:0;max-width:none}
  .panel{background:#fff!important;border:none!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important}
  .rel-doc{padding:0;border-radius:0}
}

/* ==========================================
   BAGL - NAVEGAÇÃO ESTILO TOTEM LOCALIZA
   ========================================== */

.wizard-bagl {
  width: 100%;
  animation: wizardEntrada .25s ease;
}

.wizard-progresso {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}

.wizard-passo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #94a3b8;
}

.wizard-passo span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #17243b;
  border: 2px solid #334155;
  font-size: 17px;
  font-weight: 800;
}

.wizard-passo small {
  font-size: 12px;
  font-weight: 700;
}

.wizard-passo.atual span {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #06111f;
}

.wizard-passo.atual small {
  color: #38bdf8;
}

.wizard-passo.concluido span {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

.wizard-etapa {
  animation: wizardEntrada .25s ease;
}

.wizard-titulo {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin: 20px 0 26px;
  color: white;
}

.wizard-subtitulo {
  font-size: 19px;
  margin: 24px 0 14px;
  color: #38bdf8;
}

.wizard-instrucao {
  text-align: center;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.wizard-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
  margin: 15px 0;
}

.wizard-opcao {
  min-height: 90px;
  padding: 18px 12px;
  border-radius: 18px;
  background: #17243b;
  border: 2px solid #334155;
  color: white;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}

.wizard-opcao:hover {
  background: #1d3657;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.wizard-opcao:active {
  transform: scale(.97);
}

.wizard-opcao.ativo {
  border-color: #22c55e;
  background: #123b30;
}

.wizard-confirmar {
  width: 100%;
  min-height: 60px;
  background: #2563eb;
  border-color: #38bdf8;
  margin-top: 20px;
}

.wizard-voltar {
  min-height: 48px;
  padding: 10px 24px;
  margin-top: 20px;
  background: transparent;
  border: 1px solid #64748b;
  color: #cbd5e1;
}

.wizard-etapa .campo-destaque-card {
  max-width: 900px;
  margin: 0 auto;
}

.wizard-etapa #ficha-matricula,
.wizard-etapa #ficha-patio,
.wizard-etapa #ficha-posicao {
  display: none;
}

.wizard-etapa .clock-bar {
  justify-content: center;
  flex-direction: column;
  padding: 30px 16px;
}

.wizard-etapa .clock-group {
  justify-content: center;
}

.wizard-etapa .clock-display {
  font-size: 2rem;
}

@keyframes wizardEntrada {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CELULAR */
@media (max-width: 600px) {
  .wizard-progresso {
    gap: 3px;
  }

  .wizard-passo span {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .wizard-passo small {
    font-size: 9px;
  }

  .wizard-titulo {
    font-size: 21px;
  }

  .wizard-opcoes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .wizard-opcao {
    min-height: 76px;
    font-size: 14px;
    padding: 12px 8px;
  }

  .wizard-etapa .clock-display {
    font-size: 1.5rem;
  }
}


/* BAGL - FICHA PROGRESSIVA */

.bagl-cabecalho {
  width: 100%;
  padding: 20px;
  margin-bottom: 12px;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  background: #11243d;
  color: white;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.bagl-cabecalho:hover {
  background: #193b60;
}

.bagl-proximo {
  display: block;
  width: 100%;
  padding: 16px;
  margin: 14px 0;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.bagl-proximo:hover {
  background: #1d4ed8;
}

.bagl-resumo {
  background: #0e2036;
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 20px;
  margin: 22px 0;
}

.bagl-resumo h3 {
  color: #38bdf8;
  margin-bottom: 15px;
}

.bagl-resumo p {
  padding: 9px 0;
  border-bottom: 1px solid #334155;
  color: #f1f5f9;
  font-size: 15px;
}

.bagl-resumo strong {
  color: #7dd3fc;
}

@media(max-width:600px) {
  .bagl-cabecalho {
    font-size: 17px;
    padding: 16px;
  }

  .bagl-resumo {
    padding: 14px;
  }
}


/* ==========================================
   BAGL - PAINEL TIPO CARDÁPIO
   ========================================== */

.bagl-form-cardapio {
  width: 100%;
}

.bagl-painel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.bagl-card {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #101e33, #0a1424);
  border: 1px solid rgba(56, 189, 248, .28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.bagl-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.bagl-card-header h3 {
  margin: 0;
  color: #f1f5f9;
  font-size: 18px;
  font-weight: 800;
}

.bagl-card-numero {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #123b62;
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 900;
}

.bagl-card .secao-bloco {
  padding: 0;
  margin: 0 0 15px;
  border: none;
  background: transparent;
}

.bagl-card .dados-voo-grid {
  display: block;
  margin: 0;
}

.bagl-card .campo-destaque-card {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
}

.bagl-botao-selecao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px;
  margin: 14px 0;
  border: 1px solid #38bdf8;
  border-radius: 12px;
  background: #143251;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.bagl-botao-selecao:hover {
  background: #1d456d;
}

.bagl-card .aircraft-square-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 350px;
  overflow-y: auto;
  padding: 5px;
  margin-top: 10px;
}

.bagl-campo-label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.bagl-card .select-grande,
.bagl-card .input-grande {
  width: 100%;
  min-width: 0;
}

.bagl-card .clock-bar {
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 14px;
}

.bagl-card .clock-group {
  justify-content: center;
  flex-wrap: wrap;
}

.bagl-card .app-icons-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.bagl-card .app-tile {
  min-width: 0;
}

.bagl-rodape {
  margin-top: 20px;
  padding: 20px;
  background: #0e1c30;
  border: 1px solid rgba(56, 189, 248, .25);
  border-radius: 18px;
}

.bagl-aviso {
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 850px) {
  .bagl-painel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bagl-card {
    padding: 14px;
  }

  .bagl-card-header h3 {
    font-size: 16px;
  }

  .bagl-card .app-icons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* NOVO BOTÃO DE AERONAVES */

#btn-abrir-aeronaves {
  width: 150px;
  height: 150px;
  margin: 15px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #173454, #0d1b30);
  border: 2px solid #38bdf8;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

#btn-abrir-aeronaves:hover {
  background: #1c4268;
  transform: translateY(-3px);
}

#btn-abrir-aeronaves .icone-aviao {
  font-size: 48px;
  line-height: 1;
}

#btn-abrir-aeronaves .texto-aviao {
  font-size: 14px;
  font-weight: 800;
}

#btn-abrir-aeronaves small {
  font-size: 11px;
  color: #94a3b8;
}


#ficha-cotejamento {
  width: 100%;
  padding: 14px;
  background: #0b1220;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 10px;
  resize: vertical;
}

.check-cotejamento {
  padding: 15px;
  margin-top: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid #166534;
  border-radius: 10px;
}

.check-cotejamento input {
  accent-color: #22c55e;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.dados-cotejamento {
  padding: 12px;
  margin: 8px 0;
  background: #101c30;
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* COTEJAMENTO AUTOMATICO */

.cotejamento-box {
    background: #142b3e;
    border: 2px solid #38bdf8;
    border-radius: 18px;
    padding: 20px;
    margin: 20px 0;
}

.cotejamento-box h3 {
    color: #38bdf8;
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 15px;
}

.cotejamento-box p {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.cotejamento-box strong {
    color: #fff;
}

.cotejo-confirmacao {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #334155;
    color: #fff;
    font-weight: 700;
}

.cotejo-confirmacao input {
    width: 20px;
    height: 20px;
    accent-color: #22c55e;
    flex-shrink: 0;
}

.servico-acompanhamento {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #142033;
}

.status-servico {
    background: #0b1220;
    color: #fff;
    border: 1px solid #64748b;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.status-servico[data-status="PENDENTE"] {
    color: #94a3b8;
}

.status-servico[data-status="EM_ANDAMENTO"] {
    color: #f59e0b;
    border-color: #f59e0b;
}

.status-servico[data-status="CONCLUIDO"] {
    color: #22c55e;
    border-color: #22c55e;
}

@media (max-width: 600px) {
    .cotejamento-box {
        padding: 15px;
    }

    .cotejamento-box p {
        font-size: 14px;
    }

    .status-servico {
        width: 100%;
    }
}


/* HORARIO PAPA - PAINEL AMPLIADO */

.bagl-card .clock-bar {
    flex: 1;
    width: 100%;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 24px;
    gap: 24px;
    box-sizing: border-box;
}

.bagl-card .clock-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.bagl-card .clock-display {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    text-align: center;
    padding: 24px 10px;
    border: 2px solid #38bdf8;
    border-radius: 16px;
    background: #0d2247;
    color: #ffffff;
}

.bagl-card .clock-display::before {
    content: "HORARIO PAPA";
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.bagl-card .oct-btn {
    width: 100%;
    height: 70px;
    font-size: 1.3rem;
    border-radius: 12px;
    clip-path: none;
}

.bagl-card #btn-reset-clock {
    width: 100%;
    height: 70px;
    font-size: 0.9rem;
    border-radius: 12px;
    padding: 5px;
}

.bagl-card .tempo-resumo {
    width: 100%;
    box-sizing: border-box;
    background: #091424;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 22px 12px;
    text-align: center;
    font-size: 0;
}

.bagl-card .tempo-resumo #lbl-papa {
    display: none;
}

.bagl-card .tempo-resumo #lbl-pouso {
    display: block;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 900;
    font-family: monospace;
    color: #38bdf8;
}

.bagl-card .tempo-resumo #lbl-pouso::before {
    content: "PREVISAO DE POUSO";
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* ADAPTACAO PARA CELULAR */

@media (max-width: 600px) {

    .bagl-card .clock-bar {
        min-height: 320px;
        padding: 16px;
        gap: 18px;
    }

    .bagl-card .clock-group {
        gap: 8px;
    }

    .bagl-card .clock-display {
        font-size: 3.5rem;
        padding: 20px 8px;
    }

    .bagl-card .oct-btn {
        height: 60px;
        font-size: 1.2rem;
    }

    .bagl-card #btn-reset-clock {
        height: 60px;
        font-size: 0.8rem;
    }

    .bagl-card .tempo-resumo #lbl-pouso {
        font-size: 3.2rem;
    }
}


/* =================================
   ACOMPANHAMENTO RESPONSIVO 3.0
   ================================= */

.voo-mobile-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 16px !important;
    gap: 10px !important;
    border-radius: 16px !important;
}

.voo-mobile-detalhes {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.voo-mobile-resumo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 14px;
    background: #172b43;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.voo-mobile-resumo::-webkit-details-marker {
    display: none;
}

.voo-mobile-resumo::after {
    content: "⌄";
    font-size: 22px;
}

.voo-mobile-detalhes[open]
.voo-mobile-resumo::after {
    content: "⌃";
}

.voo-mobile-detalhes[open]
.voo-mobile-resumo {
    margin-bottom: 12px;
    border-color: #38bdf8;
}

.voo-mobile-card .voo-progresso {
    margin: 5px 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.voo-mobile-card .voo-entidades-lista {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px !important;
    margin: 10px 0 !important;
}

.voo-mobile-card .servico-acompanhamento {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 145px;
    align-items: center;
    gap: 8px;
    padding: 8px !important;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 8px;
}

.voo-mobile-card .entidade-chip {
    font-size: 12px !important;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 6px !important;
}

.voo-mobile-card .status-servico {
    width: 100%;
    min-width: 0;
    height: 42px;
    font-size: 12px;
    padding: 6px;
    box-sizing: border-box;
}

.voo-mobile-card .voo-acoes-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.voo-mobile-card .btn-acao-voo {
    min-height: 46px;
    padding: 10px 6px !important;
    font-size: 12px !important;
    border-radius: 9px;
}

.voo-mobile-card [hidden] {
    display: none !important;
}

.voo-mobile-card .voo-detalhes-extras {
    font-size: 13px;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
}

/* CELULAR */

@media (max-width: 768px) {

    .voo-mobile-card {
        padding: 12px !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .voo-mobile-card > :first-child {
        display: grid !important;
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: center;
        gap: 10px !important;
    }

    .voo-mobile-card .voo-img-grande {
        width: 78px !important;
        height: 65px !important;
        min-width: 0 !important;
        padding: 4px !important;
    }

    .voo-mobile-card .voo-img-grande img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .voo-mobile-card h2,
    .voo-mobile-card h3 {
        font-size: 17px !important;
        margin: 3px 0 !important;
    }

    .voo-mobile-card p {
        font-size: 12px !important;
        line-height: 1.4;
        margin: 3px 0 !important;
    }

    .voo-mobile-card .voo-progresso {
        font-size: 12px !important;
        padding: 8px !important;
    }

    .voo-mobile-resumo {
        padding: 10px 12px;
        min-height: 44px;
        box-sizing: border-box;
        font-size: 13px;
    }

}

@media (max-width: 360px) {

    .voo-mobile-card .servico-acompanhamento {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .voo-mobile-card .status-servico {
        font-size: 11px;
    }

}
