/* PromoACIP Upgrade v6: melhora visual sem substituir os fluxos antigos. */
:root { --v6-primary:#1356b2; --v6-dark:#153455; --v6-accent:#10b8a0; --v6-border:#dce6f2; --v6-bg:#f5f8fc; }
html { scroll-behavior:smooth; }
body { background:var(--v6-bg) !important; color:#243a53; font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }
body[style*="margin-top: -15px"] { margin-top:0 !important; }
body .container { max-width:1160px; }
body .conteudo, body .modal-content, body .card, body .bg-white { border-radius:16px; }
body .conteudo { background:#fff; border:1px solid var(--v6-border); box-shadow:0 10px 35px rgba(25,61,96,.07); }
body .btn, body button, body .form-control, body .form-select { transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease; }
body .btn { border-radius:10px; font-weight:600; padding:.65em 1em; }
body .btn:focus-visible, body a:focus-visible, body input:focus-visible, body select:focus-visible { outline:3px solid #73d1ff; outline-offset:2px; }
body .btn-primary, body .btn-info.bg-info { background:#1663c7 !important; border-color:#1663c7 !important; color:#fff !important; }
body .btn-primary:hover, body .btn-info.bg-info:hover { background:#0e4898 !important; }
body .form-control, body .form-select { min-height:43px; border:1px solid #bdccdc; border-radius:10px; box-shadow:none; max-width:100%; }
body .form-control:focus { border-color:#4080d8; box-shadow:0 0 0 3px rgba(29,112,210,.14); }
body img { max-width:100%; height:auto; }
body iframe { max-width:100%; border:1px solid #dbe6f2; border-radius:12px; }
body .topo img, body img.img-responsive { display:block; max-width:100%; height:auto; margin-inline:auto; object-fit:contain; }
body .topo { width:100%; margin:0 auto 14px; }
body .topo img { max-height:360px; width:auto; }
body .row > div { min-width:0; }
/* Compatibilidade com grades legadas do Bootstrap 3 nos formulários. */
@media(max-width:575.98px) { body .row > .col-xs-12 { flex:0 0 100%; max-width:100%; width:100%; } }
body .modal-dialog { max-width:min(96vw,760px); }
body .modal-body { overflow-wrap:anywhere; }
body .table-responsive { border-radius:12px; }
body .nav, body .nav-tabs { display:flex; flex-wrap:wrap; gap:4px; }
body .nav .nav-link { min-height:42px; display:flex; align-items:center; }
body .nav-tabs { border-bottom:1px solid #d9e5f1; gap:5px; }
body .nav-tabs .nav-link { border-radius:10px 10px 0 0; font-weight:600; }
body .modal-content { border:0; box-shadow:0 24px 65px rgba(0,0,0,.18); }
#menu.menu { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 24px !important; padding:10px; list-style:none; background:#fff; border:1px solid #dae6f1; border-radius:14px; box-shadow:0 8px 20px rgba(21,51,85,.05); }
#menu.menu li { list-style:none; margin:0; }
#menu.menu a { display:block; padding:10px 12px; color:#fff !important; font-weight:650; text-decoration:none; cursor:pointer; border-radius:8px; }
#menu.menu a:link, #menu.menu a:visited { color:#fff !important; }
#menu.menu a:hover, #menu.menu a:focus-visible { color:#fff !important; background:#54378f; }
#menu.menu select { color:#38245d; background:#fff; font-weight:650; }
#mobile_menu { cursor:pointer; border-radius:10px; }
.hidden-lg.hidden-md.hidden-sm { display:none; }
.v6-topbar { background:linear-gradient(115deg,#103b75 0%,#155fbb 65%,#118f9f 100%); color:#fff; margin:0 0 24px; box-shadow:0 6px 30px rgba(18,64,117,.18); }
.v6-topbar-inner { max-width:1160px; margin:auto; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.v6-brand { display:flex; align-items:center; gap:12px; text-decoration:none !important; color:#fff !important; }
.v6-brand-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.17); font-weight:800; font-size:25px; }
.v6-brand strong { display:block; font-size:20px; line-height:1.05; letter-spacing:-.4px; }
.v6-brand small { display:block; margin-top:4px; opacity:.85; font-size:12px; }
.v6-toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.v6-pill { border:1px solid rgba(255,255,255,.35); border-radius:30px; padding:8px 13px; background:rgba(255,255,255,.10); color:#fff; font-size:13px; text-decoration:none !important; }
.v6-pill:hover { color:#103b75; background:#fff; }
.v6-pill.v6-notify { cursor:pointer; background:#fff; color:#174c84; border:0; font-weight:700; }
.v6-pill[disabled] { opacity:.65; cursor:not-allowed; }
.v6-alert { max-width:1160px; margin:0 auto 12px; padding:0 20px; font-size:13px; color:#eaf7ff; }
.v6-alert span { display:inline-block; padding:5px 10px; border-radius:6px; background:rgba(0,0,0,.18); }
.v6-form-vendedor { padding:14px 15px; margin:12px 0 15px; background:#f0f7ff; border:1px solid #c7def7; border-radius:12px; }
.v6-form-vendedor label { display:block; font-weight:750; color:#173f73; margin-bottom:6px; }
.v6-form-vendedor small { display:block; margin-top:5px; color:#52677c; }
.v6-resultado { border:1px solid #dde8f3; background:#fbfdff; border-radius:14px; padding:12px; margin-top:10px; }
.v6-painel-bilhetes { background:#fff; border:1px solid #dce6f2; border-radius:16px; padding:14px; margin:12px 0 24px; box-shadow:0 10px 35px rgba(25,61,96,.07); }
.v6-painel-bilhetes[hidden] { display:none !important; }
.v6-painel-bilhetes h2 { color:#173f73; font-size:clamp(19px,2.5vw,25px); margin:2px 0 6px; font-weight:750; }
.v6-painel-bilhetes p { color:#52677c; margin-bottom:12px; }
.v6-sair-area { display:flex; justify-content:flex-end; margin:5px 3px 12px; }
.v6-sair-btn { background:#422774; color:#fff !important; border-radius:9px; padding:9px 16px; font-weight:700; text-decoration:none !important; }
.v6-sair-btn:hover { background:#57389a; color:#fff !important; }
.v9-menu-cliente { background:#fff; border:1px solid #dce7f4; border-radius:18px; margin:12px 0 20px; padding:18px; box-shadow:0 10px 30px rgba(23,69,122,.065); }
.v9-menu-cliente[hidden], .v9-voltar-menu[hidden] { display:none !important; }
.v9-menu-cabecalho { margin:0 0 15px; }
.v9-menu-cabecalho h2 { font-size:clamp(20px,3.2vw,27px); font-weight:800; color:#173e71; margin:0 0 4px; }
.v9-menu-cabecalho p { color:#63778d; margin:0; font-size:14px; }
.v9-menu-grade { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.v9-menu-opcao { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; min-height:140px; padding:17px 9px; border:1px solid #dce9f7; border-radius:17px; background:linear-gradient(150deg,#fff 0%,#f5faff 100%); color:#183e66; box-shadow:0 5px 16px rgba(29,75,131,.09); text-align:center; cursor:pointer; }
.v9-menu-opcao:hover { border-color:#9ac6f4; box-shadow:0 9px 24px rgba(29,96,170,.16); transform:translateY(-2px); }
.v9-menu-opcao:active { transform:translateY(0); }
.v9-menu-opcao:focus-visible { outline:3px solid #73d1ff; outline-offset:3px; }
.v9-menu-opcao img { display:block; width:66px; height:66px; object-fit:contain; }
.v9-menu-opcao strong { font-size:15px; line-height:1.25; font-weight:750; }
.v9-menu-opcao small { display:block; color:#6d8299; line-height:1.3; font-size:12px; }
.v9-voltar-menu { position:sticky; top:8px; z-index:1010; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; padding:10px 12px; background:#fff; border:1px solid #dce7f4; border-radius:14px; box-shadow:0 6px 20px rgba(29,75,131,.08); }
.v9-voltar-menu button { flex-shrink:0; padding:10px 14px; border:0; border-radius:10px; background:#165db7; color:#fff; font-weight:750; cursor:pointer; }
.v9-voltar-menu button:hover { background:#114688; }
.v9-voltar-menu strong { color:#173e71; font-size:15px; text-align:right; }
/* Os cinco destinos estão visíveis como cartões: não há abas para arrastar. */
#barra_abas { display:none !important; }
@media(min-width:700px) { .v9-menu-grade { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(min-width:1100px) { .v9-menu-grade { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media(max-width:699px) { .v9-menu-grade .v9-menu-opcao:last-child:nth-child(odd) { grid-column:1/-1; width:calc(50% - 7px); justify-self:center; } }
.v6-bilhetes-iframe { display:block; width:100%; min-height:320px; height:360px; border:0 !important; border-radius:12px; background:#fff; }
.v6-mobile-dock { display:none; }
body img.v6-foto-ausente { min-height:120px; background:#eef4fa; border:1px dashed #c8d8e8; border-radius:12px; object-fit:contain; }
@media(max-width:768px) { .v6-topbar-inner { padding:14px 12px; } .v6-toolbar { width:100%; } .v6-toolbar>* { flex:1 1 auto; text-align:center; } body .conteudo { padding:14px !important; } body .container { padding-left:12px; padding-right:12px; } body .row { margin-left:-8px; margin-right:-8px; } body .row > [class*='col-'] { padding-left:8px; padding-right:8px; } .v6-brand strong { font-size:18px; } .hidden-lg.hidden-md.hidden-sm { display:block; } #menu.menu { display:none !important; flex-direction:column; align-items:stretch; } #menu.menu.v6-mobile-open { display:flex !important; } }
@media(max-width:768px) {
  body { padding-bottom:88px; }
  body .modal-dialog { max-width:calc(100vw - 16px); margin:8px; }
  body .modal-body { max-height:calc(100dvh - 162px); overflow-y:auto; }
  body .modal-content { border-radius:15px; }
  body .form-control, body input, body select, body textarea { font-size:16px; }
  body .btn { min-height:46px; white-space:normal; }
  body .topo img { max-height:220px; width:auto; }
  body .nav-tabs { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
  body .nav-tabs .nav-link { font-size:13px; white-space:nowrap; padding:10px 12px; }
  .v6-painel-bilhetes { padding:10px; }
  .v9-menu-cliente { padding:13px; }
  .v9-menu-opcao { min-height:130px; padding:13px 7px; }
  .v9-menu-opcao img { width:58px; height:58px; }
  .v9-menu-opcao strong { font-size:14px; }
  .v9-voltar-menu { top:5px; }
  #menu.menu li, #menu.menu li a { width:100%; }
  #menu.menu a { padding:13px 14px; }
  .v6-mobile-dock { position:fixed; z-index:1040; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:9px max(10px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); background:rgba(255,255,255,.97); box-shadow:0 -4px 24px #163a671a; border-top:1px solid #d8e5f2; backdrop-filter:blur(12px); }
  .v6-mobile-dock button,.v6-mobile-dock a { border:0; text-align:center; border-radius:11px; text-decoration:none; padding:9px 5px; min-height:48px; background:#eef5fd; color:#145190; font-weight:700; font-size:13px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; }
  .v6-mobile-dock button.v6-active { background:#1767bf; color:white; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } body * { transition:none !important; } }
