:root {
    --brand-yellow: #f5c400;
    --text-dark: #222;
    --muted: #6b7280;
    --bg: #f5f6f8;
    --altura-barra: 58px;
}

body { background: var(--bg); color: var(--text-dark); font-family: Arial, Helvetica, sans-serif; }

.barra { background: var(--brand-yellow); min-height: var(--altura-barra); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.barra .navbar-brand img { height: 38px; }
.barra .navbar-brand span { font-weight: bold; vertical-align: middle; margin-left: 6px; }
.barra .nav-link { color: var(--text-dark); font-weight: bold; }
.barra .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
.barra .navbar-toggler { border: none; font-size: 1.4rem; }

/* Páginas com o Dashboard ocupam a tela toda abaixo da barra. */
.tela-cheia { overflow: hidden; }
.painel-dx { position: absolute; top: var(--altura-barra); left: 0; right: 0; bottom: 0; }

.card-gestao { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.07); padding: 18px; margin-bottom: 16px; }
.atalho { display: block; text-decoration: none; color: var(--text-dark); height: 100%; }
.atalho:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.atalho .ic { font-size: 1.8rem; }

.login { max-width: 380px; margin: 8vh auto; }
.btn-brand { background: var(--brand-yellow); border: none; font-weight: bold; color: var(--text-dark); }
.btn-brand:hover { background: #e4b600; }

.tabela-gestao th { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.tabela-gestao td { vertical-align: middle; }
.qr-mini { width: 64px; height: 64px; image-rendering: pixelated; }

/* Inventário excluído (exclusão lógica): fica riscado e apagado na lista. */
.card-gestao.excluido { opacity: .55; }
.card-gestao.excluido .titulo { text-decoration: line-through; }

/* Cabeçalho de escopo do inventário (categoria › subcategoria). */
.escopo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.escopo-rotulo { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.escopo-item { background: #fff7d1; border: 1px solid var(--brand-yellow); border-radius: 999px; padding: 3px 12px; font-weight: bold; font-size: .9rem; }

/* Ajuda escondida atrás do ícone ⓘ (abre ao tocar). */
.ajuda { display: inline-block; vertical-align: middle; margin-left: 6px; }
.ajuda > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; background: #fff7d1; border: 1px solid var(--brand-yellow); font-size: .95rem; color: var(--text-dark); }
.ajuda > summary::-webkit-details-marker { display: none; }
.ajuda[open] { display: block; margin-left: 0; }
.ajuda > div { margin-top: 8px; background: #fff; border: 1px solid #eceef2; border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: var(--muted); }
.ajuda > div p { margin-bottom: 6px; }

/* Botões com ícone de código de barras. */
.btn-produto { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ic-barras { flex-shrink: 0; }

/* Botão só com ícone (ex.: exportar para Excel). */
.btn-icone { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #dfe3e8; }
