:root { --bo-ink: #1f2a37; --bo-accent: #f5b301; }
body { background: #f4f5f7; color: var(--bo-ink); }
.bo-nav { background: var(--bo-ink); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.stat.alerta { border-left: 4px solid #dc3545; }
.bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--bo-accent); }
.bo-numero { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid #d1d5db; padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.timeline li.manual::before { background: var(--bo-accent); }
.texto-relato { white-space: pre-wrap; }
.table td, .table th { vertical-align: middle; }
.env-form { background: #f9fafb; border-radius: .5rem; padding: .75rem; margin-bottom: .75rem; }
.login-box { max-width: 380px; margin: 10vh auto; }

/* ---- celular ---- */
.midia-botoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.midia-botoes .btn { padding: .9rem .25rem; font-size: .9rem; line-height: 1.2; }
.midia-botoes .btn i { display: block; font-size: 1.6rem; margin-bottom: .2rem; }
.midia-lista, .galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.midia-item, .galeria-item { position: relative; aspect-ratio: 1; border-radius: .5rem; overflow: hidden; background: #e5e7eb; }
.midia-item img, .midia-item video, .galeria-item img, .galeria-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.midia-doc { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2rem; color: #6b7280; }
.midia-tam { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; padding: 0 .3rem; border-radius: .25rem; }
.midia-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; text-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none; }
.midia-rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; }
.galeria-item .legenda { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .7rem; padding: .8rem .35rem .25rem; }
.galeria-video { grid-column: 1 / -1; aspect-ratio: auto; background: #000; }
.galeria-video video { max-height: 70vh; object-fit: contain; }
#bo-envio { position: fixed; inset: 0; background: rgba(17,24,39,.75); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.bo-envio-box { background: #fff; border-radius: 1rem; padding: 1.5rem; width: 100%; max-width: 340px; text-align: center; }
.logo-empresa { max-height: 44px; max-width: 140px; object-fit: contain; }
.logo-preview { max-height: 56px; max-width: 160px; object-fit: contain; }
.fab { position: fixed; right: 1rem; bottom: 1rem; width: 60px; height: 60px; border-radius: 50%; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 1030; }
.barra-salvar { position: sticky; bottom: 0; background: #f4f5f7; padding: .75rem 0; z-index: 10; border-top: 1px solid #e5e7eb; }
.bo-card-item { display: block; color: inherit; text-decoration: none; }
.bo-card-item:active { background: #f3f4f6; }
@media (max-width: 767.98px) {
  main.container-xl { padding-left: .75rem; padding-right: .75rem; padding-bottom: 5rem; }
  h1.h3 { font-size: 1.35rem; }
  .card-body { padding: .9rem; }
  .btn { min-height: 44px; }
  .barra-salvar .btn-dark { flex: 1; }
}

/* ---- portal: tela de ícones ---- */
.app-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1.25rem .75rem; }
.app-item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; }
.app-icone { position: relative; width: 76px; height: 76px; border-radius: 22px; background: var(--cor); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; box-shadow: 0 6px 16px rgba(0,0,0,.15); transition: transform .1s; }
.app-item:active .app-icone { transform: scale(.94); }
.app-nome { margin-top: .5rem; font-weight: 600; font-size: .95rem; }
.app-desc { font-size: .72rem; color: #6b7280; line-height: 1.2; }
.app-aviso { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: #dc2626; color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #f4f5f7; }
.app-breve { opacity: .45; }
.modulo-check { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border: 1px solid #e5e7eb; border-radius: .6rem; background: #fff; width: 100%; cursor: pointer; }
.modulo-check input { width: 1.2rem; height: 1.2rem; }
@media (min-width: 768px) { .app-grade { grid-template-columns: repeat(auto-fill, 120px); } }
