/* Tema do SaaS = tema do sistema Doce Morena: Bootstrap 3.3.2 + base.css do Doce Morena (barra inverse escura, jumbotron cinza,
   trilha de navegacao, .well, .btn, .table, .alert, .label, paginacao) + estes ajustes para o CELULAR em pe, uma mao, galpao com luz ruim:
   alvos grandes, contraste alto e feedback grande. Carregado depois de ../assets/css/bootstrap.min.css e base-doce-morena.css. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { padding-top: 50px; background: #fff; color: #333; font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
a { color: #337ab7; }

/* moldura: navbar-inverse fixa + jumbotron compacto (aproveita a tela) + trilha */
.navbar-brand { font-weight: 700; }
.navbar-inverse .navbar-text { color: #9d9d9d; }
.navbar-form.quem { margin: 8px 15px; padding: 0; border: 0; box-shadow: none; }
.navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
.jumbotron { padding: 14px 0 10px; margin: 0 0 12px; border-bottom: 1px solid #e3e3e3; }
.jumbotron h1 { font-size: 26px; margin: 0; font-weight: 600; }
.jumbotron p { margin: 3px 0 0; font-size: 14px; color: #777; }
.container-fluid.corpo { padding-left: 15px; padding-right: 15px; }
.breadcrumb { margin-bottom: 12px; padding: 7px 12px; }
.toolbar { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
main { padding-bottom: 24px; }

/* titulos */
h1 { font-size: 26px; margin: 4px 0 12px; } h2 { font-size: 18px; margin: 18px 0 8px; color: #555; }
.msg { color: #777; margin: 8px 0; } .msg.erro { color: #a94442; font-weight: 600; }

/* campos (equivalente a .form-control, maiores para toque) */
label { display: block; margin: 10px 0 0; font-weight: 600; color: #444; font-size: 14px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 14px; height: 46px; font-size: 18px; color: #555; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); }
input[type=checkbox], input[type=radio], input[type=hidden] { display: inline; width: auto; height: auto; }
textarea { height: auto; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #66afe9; box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6); }
input[type=file] { height: auto; padding: 8px; }
input::placeholder { color: #aaa; }

/* botoes: <button> e a.botao seguem o .btn-default; .grande e o .btn-primary .btn-lg .btn-block */
button, .botao { display: inline-block; padding: 10px 16px; font-size: 16px; font-weight: 400; line-height: 1.43; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; text-align: center; text-decoration: none; touch-action: manipulation; }
button:hover, .botao:hover { background: #e6e6e6; border-color: #adadad; color: #333; text-decoration: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
button.grande, .botao.grande { display: block; width: 100%; min-height: 56px; margin: 12px 0; font-size: 20px; font-weight: 600; color: #fff; background: #337ab7; border-color: #2e6da4; }
button.grande:hover, .botao.grande:hover { background: #286090; border-color: #204d74; color: #fff; }
button.grande:disabled { background: #337ab7; }
.navbar .btn, .toolbar .btn { font-size: 14px; }

/* paineis (.well / .panel) */
.cartao { background: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; padding: 15px; margin: 0 0 15px; box-shadow: inset 0 1px 1px rgba(0,0,0,.05); }
.cartao h2 { margin-top: 0; }
figure.cartao { margin: 0 0 15px; }

/* resposta GRANDE da leitura (cores do Bootstrap: success / danger / warning / info) */
.feedback { border-radius: 4px; padding: 20px 14px; margin: 0 0 12px; text-align: center; font-size: 26px; font-weight: 700; min-height: 88px; display: flex; align-items: center; justify-content: center; }
.feedback.neutro { background: #d9edf7; color: #31708f; border: 1px solid #bce8f1; font-size: 18px; font-weight: 400; }
.feedback.ok { background: #5cb85c; color: #fff; border: 1px solid #4cae4c; }
.feedback.erro { background: #d9534f; color: #fff; border: 1px solid #d43f3a; }
.feedback.aviso { background: #f0ad4e; color: #fff; border: 1px solid #eea236; }

/* contadores (quadros do painel) */
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.grade div { background: #fff; border: 1px solid #ddd; border-top: 3px solid #337ab7; border-radius: 4px; padding: 10px 6px; text-align: center; }
.grade b { display: block; font-size: 30px; color: #333; line-height: 1.1; } .grade small { color: #777; font-size: 13px; }
.grade.pequeno b { font-size: 22px; }

/* abas (QR / Protocolo / Sem pre) */
.abas { display: flex; gap: 0; margin: 0 0 12px; } .abas button { flex: 1; border-radius: 0; margin-left: -1px; }
.abas button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; } .abas button:last-child { border-radius: 0 4px 4px 0; }
.abas button.ativa { background: #337ab7; border-color: #2e6da4; color: #fff; font-weight: 600; }
.linha { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
video { width: 100%; border-radius: 4px; background: #000; max-height: 46vh; object-fit: cover; }

/* listas (.list-group) e historico */
.lista, .historico { list-style: none; padding: 0; margin: 0 0 15px; }
.lista li, .historico li { background: #fff; border: 1px solid #ddd; margin-bottom: -1px; padding: 10px 15px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 15px; }
.lista li:first-child, .historico li:first-child { border-radius: 4px 4px 0 0; } .lista li:last-child, .historico li:last-child { border-radius: 0 0 4px 4px; margin-bottom: 0; }
.lista li button, .lista li .botao { padding: 6px 12px; font-size: 14px; } .lista li form { margin: 0; }
.historico li.ok { border-left: 5px solid #5cb85c; } .historico li.erro { border-left: 5px solid #d9534f; } .historico li.aviso { border-left: 5px solid #f0ad4e; }
.historico li small { color: #999; white-space: nowrap; }

/* menu da pagina inicial (atalhos grandes) */
.menu { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.menu .botao.grande { margin: 0; }

/* situacao (equivale ao .label do Bootstrap) */
.chip { display: inline-block; padding: .25em .7em; font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: #777; border-radius: .25em; }
.chip.ativo, .chip.paga { background: #5cb85c; } .chip.teste { background: #5bc0de; } .chip.suspenso { background: #f0ad4e; } .chip.bloqueado, .chip.cancelado, .chip.vencida { background: #d9534f; }
.tabela { margin-bottom: 15px; }
.paginacao { margin: 0 0 15px; } .pagination { margin: 4px 0 0; }
.qr { width: 220px; height: 220px; margin: 0 auto; background: #fff; padding: 8px; border: 1px solid #ddd; border-radius: 4px; } .qr svg { width: 100%; height: 100%; }

.login { max-width: 440px; margin: 20px auto; }

/* telas largas: usa o espaco (duas colunas nos formularios curtos) */
@media (min-width: 992px) {
  .grade { grid-template-columns: repeat(6, 1fr); } .grade.pequeno { grid-template-columns: repeat(3, 1fr); }
  .duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
}
@media (max-width: 767px) { .navbar-form.quem { margin: 6px 15px; } .jumbotron h1 { font-size: 22px; } }

/* etiquetas (termica 100 x 150 mm) */
.etiqueta { width: 100mm; height: 150mm; background: #fff; color: #000; margin: 12px auto; padding: 5mm; display: flex; flex-direction: column; justify-content: space-between; page-break-after: always; font-family: Arial, Helvetica, sans-serif; border: 1px dashed #888; }
.etiqueta .et-topo { display: flex; justify-content: space-between; font-size: 11pt; border-bottom: 1px solid #000; padding-bottom: 2mm; }
.etiqueta .et-dest strong { display: block; font-size: 20pt; line-height: 1.1; } .etiqueta .et-dest small, .etiqueta .et-rem small { font-size: 8pt; color: #444; display: block; }
.etiqueta .et-dest span { font-size: 13pt; } .etiqueta .et-rem { font-size: 11pt; }
.etiqueta .et-qr { align-self: center; width: 60mm; height: 60mm; display: flex; align-items: center; justify-content: center; font-size: 7pt; word-break: break-all; text-align: center; }
.etiqueta .et-qr canvas, .etiqueta .et-qr img, .etiqueta .et-qr svg { width: 60mm; height: 60mm; }
.etiqueta .et-base { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12pt; }
.etiqueta .et-prot { font: 700 22pt "Courier New", monospace; letter-spacing: 1px; } .etiqueta .et-vol { font-weight: 700; font-size: 14pt; } .etiqueta .et-peso { font-size: 10pt; }
@media screen { .etiqueta { width: min(100mm, 100%); height: auto; min-height: 150mm; gap: 3mm; } .etiqueta .et-base { flex-wrap: wrap; gap: 4px 10px; } .etiqueta .et-qr { width: min(60mm, 70%); height: auto; aspect-ratio: 1; } .etiqueta .et-qr svg { width: 100%; height: 100%; } }
@page { size: 100mm 150mm; margin: 0; }
@media print { body { padding: 0; background: #fff; } .navbar, .jumbotron, .breadcrumb, .toolbar, .nao-imprimir { display: none !important; } main, .container-fluid { padding: 0 !important; max-width: none; } .etiqueta { margin: 0; border: 0; } }
