:root {
    --altura-menu: 60px;
    --sidebar-width: 250px;
}

/*============= CSS Para Impressão =====================*/
@media print {
    .sidebar,
    .menu{
        /* Não mostrar o botão de impressão no papel */
        display: none;
    }

    body * {
        visibility: hidden;
    }

    .recibo, .recibo * {
        visibility: visible;
    }

    .recibo {
        margin: 0 auto;
        font-family: monospace;
    }

    /* 80mm */
    body.thermal_80 .recibo {
        width: 80mm;
        font-size: 12px;
    }

    /* 58mm */
    body.thermal_58 .recibo {
        width: 58mm;
        font-size: 11px;
    }

    /* A4 */
    body.a4 .recibo {
        width: 210mm;
        font-size: 14px;
    }

    .no-print {
        display: none;
    }
}

/* ======= body ========*/
body{
    font-family: Arial, Helvetica, sans-serif;
}
/* ==============Mensagem ==================*/
.flash {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}
/*====================================*/


.app {
    margin-left: var(--sidebar-width);
    padding: 20px;
}

/* =========== Sidebar ============== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #14002b;
    color: #fff;
    overflow-y: auto;
}

.sidebar h2 {
    color: #fff;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.btn-close {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}


/* SCROLL INTERNO */
.sidebar nav {
    flex: 1;
    overflow-y: auto;
}

/* LISTA */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* LINKS */
.sidebar li {
    margin-bottom: 5px;
}

.sidebar a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #ebe5e5;
    border-radius: 6px;
}

.sidebar a:hover {
    background: #7e6f6f;
}

/* TITULOS */
.sidebar h2 {
    margin-bottom: 10px;
}

.sidebar h3 {
    margin-top: 15px;
    font-size: 14px;
    color: #888;
}

/* ===== BOTÃO MENU ===== */
.btn-menu {
    display: none;
    font-size: 22px;
    background: #110524;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* ===== OVERLAY ===== */
.overlay {
    display: none;
}


/*  ============= Content (area principal) ======================*/
.content {
    flex: 1;
    padding: 25px;
    background: #f9fafb;
}

/*  ============ Cards padrão =======================*/
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
/*  ============= Títulos ======================*/
h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
}
/*  ============== Botões =====================*/
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}


/*  ============== Dashboard (Admin da loja)=====================*/
.cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cards .card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.cards .card:hover {
    transform: translateY(-3px);
}

.cards .card h3 {
    font-size: 14px;
    color: #6b7280;
}

.cards .card p {
    font-size: 20px;
    font-weight: bold;
    margin-top: 8px;
}

.grafico-card {
    flex: 1;
    min-width: 300px;
}

.grafico-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.alertas {
    margin-bottom: 20px;
}

.alerta {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.alerta.success {
    background: #d1fae5;
    color: #065f46;
}

.alerta.error {
    background: #fee2e2;
    color: #991b1b;
}

.alerta.warning {
    background: #fff3cd;
    color: #856404;
}

.content ul {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    list-style: none;
}

.content ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.content ul li:last-child {
    border-bottom: none;
}

.content h2,
.content h3 {
    margin-top: 25px;
}

.barra-container {
    background: #e5e7eb;
    border-radius: 8px;
    height: 20px;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.barra-preenchida {
    background: #3b82f6;
    height: 100%;
    transition: width 0.5s ease;
}

#formMetaSalvar input, #formMeta input{
    padding: 8px;
    border-radius: 5px;
}

.green {
    color: #16a34a;
    font-weight: bold;
}

.red {
    color: #dc2626;
    font-weight: bold;
}


#iosInstall {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  font-family: sans-serif;
  animation: slideUp 0.3s ease;
}

#iosInstall h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #14002b;
}

#iosInstall p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

#iosInstall strong {
  color: #000;
}

#iosInstall .close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ============ dashboard/alertas ====== */
.estoque-baixo-row {
    background: #fff7ed;
}

.estoque-baixo {
    color: #dc2626;
    font-weight: 600;
}

.sucesso {
    color: #16a34a;
    font-weight: 500;
}

.estoque-baixo-row:hover {
    background: #ffedd5;
}

.acoes a:first-child {
    font-weight: 600;
}

/* ============= view alterar_senha ====== */ 

.form-card {
    max-width: 420px;
    margin: 0 auto;
}

.form-card h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    color: #374151;
    display: block;
    margin-bottom: 5px;
}

.form-default input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.form-default input:focus {
    border-color: #2563eb;
    outline: none;
}

/* Botão específico */
.btn-primary {
    width: 100%;
    margin-top: 10px;
}

input.error {
    border-color: #dc2626;
}

input.success {
    border-color: #16a34a;
}

/* ============ Views Cadastro ================ */


.form-card {
    max-width: 420px;
    margin: 0 auto;
}

.form-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    color: #374151;
    display: block;
    margin-bottom: 5px;
}

.form-default input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: 0.2s;
}

.form-default input:focus {
    border-color: #2563eb;
    outline: none;
}

.btn-primary {
    width: 100%;
    margin-top: 10px;
}

.form-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.form-link a {
    color: #2563eb;
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}


/*========== tela Esqueci_senha */

.form-description {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-card h2 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.btn-primary {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-default {
    margin-top: 10px;
}

/*============ Tela Login======== */

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.login-links a {
    color: #2563eb;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/*========== Resetar_senha==========*/

.form-card {
    margin-top: 40px;
}

.btn-primary {
    font-weight: 600;
}

.form-default {
    margin-top: 15px;
}

/* =========== Abrir caixa ========== */

.input-money-highlight {
    font-size: 16px;
}

.btn-caixa {
    font-size: 16px;
    letter-spacing: 0.3px;
}

.input-money-highlight:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* ========= página Fechar caixa ========*/



.caixa-card {
    max-width: 500px;
    margin: 0 auto;
}


.caixa-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.valor-esperado {
    font-size: 15px;
    margin-top: 10px;
}

.valor-esperado strong {
    font-size: 18px;
}

.btn-fechar-caixa {
    margin-top: 15px;
    font-size: 16px;
}


/* ============  view caixa/dashboard ============*/


.caixa-resumo .linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.caixa-resumo .destaque {
    font-size: 16px;
    margin-top: 10px;
}

.caixa-resumo strong {
    font-weight: 600;
}

.caixa-resumo hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.caixa-resumo .linha:first-of-type strong {
    font-size: 15px;
}


/* ============= Histórico de caixa ====== */

.filtro-caixa {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 15px;
}

.filtro-caixa input[type="date"]{
    padding: 5px;
}

.filtro-group {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.filtro-actions {
    display: flex;
    gap: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.export-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
}

.table-default th {
    background: #f3f4f6;
    font-weight: 600;
    padding: 5px;
}

.table-default td {
    font-size: 14px;
    padding: 5px;
}


/* =========== categoria/index ========= */

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 14px;
}

.acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.text-danger {
    color: #dc2626;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}


/* ================ categoria/editar ======== */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}


.form-actions .btn-link {
    font-size: 14px;
}


*/* ========= categoria/criar ======== */
.form-card h2 {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*__________ despesas/Index====== */

.valor-despesa {
    color: #dc2626;
    font-weight: 500;
}
.empty-state {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-style: italic;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}

/* ============= despesas/criar ======== */


.valor-despesa-input {
    font-weight: 600;
}

.form-card {
    margin-top: 30px;
}

/* ============== estoque/histórico ====== */

.pagination {
    margin-top: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    text-decoration: none;
    font-size: 14px;
    color: #374151;
}

.page-link.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

.page-link:hover {
    background: #e5e7eb;
}

/* ============ estoque/movimentar ========== */

.form-description strong {
    font-weight: 600;
}

.form-default select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-card {
    margin-top: 30px;
}


/* =========== pdv/index  =========== */

.pdv-layout {
    display: flex;
    gap: 20px;
}

.pdv-left {
    flex: 1;
}

.product-list{
    width: 300px;
}

.pdv-right {
    width: 300px;
}

.pdv-search {
    width: 90%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 10px;
}

.form-pdv select{
    padding: 5px;
}

.pdv-scanner {
width: 90%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}


.product-list button {
    width: 100%;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #412323;
    cursor: pointer;
}

.product-list button:hover {
    background: #804d4d;
}

.cart-box {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pagamento-box {
    margin-top: 10px;
}

.btn-finalizar {
    width: 100%;
    font-size: 16px;
}

.btn-cancelar {
    width: 100%;
    margin-top: 8px;
    background: #dc2626;
    color: #fff;
}


/* ====== pedidos/index  =============== */
.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status.finalizado {
    background: #dcfce7;
    color: #166534;
}

.status.cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.valor-cancelado {
    color: #dc2626;
    font-weight: 600;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}

/* =========== pedidos/ver =========== */
.recibo-card {
    max-width: 400px;
    margin: 0 auto;
}

.recibo {
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 50px;
}

.linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.linha-sub {
    font-size: 13px;
    color: #6b7280;
}

.total {
    font-size: 16px;
    margin-top: 8px;
}

.center {
    text-align: center;
}

.small {
    font-size: 12px;
    color: #6b7280;
}

.recibo-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


/* ============= perfil/index ========== */

.perfil-card {
    max-width: 500px;
    margin: 0 auto;
}

.perfil-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.perfil-info span {
    color: #6b7280;
}

.perfil-info strong {
    font-weight: 600;
}

.perfil-actions {
    margin-top: 10px;
}


/* ============ planos/index ========== */

.planos-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.plano-box {
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 12px;
}

.plano-preco {
    font-size: 26px;
    font-weight: bold;
    color: #16a34a;
}

.plano-preco span {
    font-size: 14px;
    color: #6b7280;
}

.plano-trial {
    color: #f59e0b;
    font-weight: 500;
    margin-bottom: 10px;
}

.plano-beneficios {
    text-align: left;
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.plano-beneficios li {
    margin-bottom: 6px;
}

.plano-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.btn-assinar {
    display: block;
    background: #16a34a;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-assinar:hover {
    background: #15803d;
}



/* =============== planos/assinar ====== */

.plano-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.pix-box {
    border: 1px dashed #d1d5db;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.pix-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 5px;
}

.pix-chave {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.pix-chave button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.pix-chave button:hover {
    background: #1d4ed8;
}

.plano-desc {
    margin-bottom: 10px;
}

.plano-info {
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

/* ============ produtos/index ======== */

 .estoque-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.estoque-baixo-label {
    background: #fee2e2;
    color: #991b1b;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}

/* ========= produtos/criar produtos/editar ======= */

.form-card {
    margin-top: 30px;
}

.form-default select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* =================== relatorios/vendas  ====== */

.relatorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.relatorio-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.relatorio-card span {
    display: block;
    color: #6b7280;
    margin-bottom: 5px;
}

.relatorio-card strong {
    font-size: 18px;
    font-weight: bold;
}

.relatorio-card.negativo {
    background: #fee2e2;
    color: #991b1b;
}

.relatorio-card.destaque {
    background: #dcfce7;
    color: #166534;
}

/* ======== relatorios/vendas_periodo ======== */

.periodo-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.periodo-links a {
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #374151;
}

.periodo-links a:hover {
    background: #e5e7eb;
}

.relatorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

/* ============== relatorios/produtos ====== */

.qtd-cell {
    font-weight: 600;
}

.faturamento-cell {
    font-weight: bold;
    color: #16a34a;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}

.top-produto {
    background: #fef9c3;
}


/* ============ relatorios/lucro ====== */

.section-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
}

.relatorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.relatorio-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
}

.relatorio-card span {
    display: block;
    color: #6b7280;
    margin-bottom: 5px;
}

.relatorio-card strong {
    font-size: 18px;
    font-weight: bold;
}

.relatorio-card.destaque {
    background: #dcfce7;
    color: #166534;
}

.relatorio-card.negativo {
    background: #fee2e2;
    color: #991b1b;
}

.relatorio-card.destaque-azul {
    background: #dbeafe;
    color: #1e3a8a;
}

/* ================ relatorios/despesas_categoria ==== */

.valor-cell {
    font-weight: 600;
}

.percentual-cell {
    font-weight: 600;
}

.barra-container-mini {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.barra-preenchida-mini {
    height: 100%;
    background: #2563eb;
    border-radius: 6px;
}

.table-default tbody tr:hover {
    background: #f9fafb;
}

/* =========== simulador/lucro ============== */

.comparacao-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card.atual {
    background: #f3f4f6;
    width: 80%;
}

.card.simulado {
    background: #ecfeff;
    width: 80%;
}

.impacto {
    margin-top: 15px;
    font-weight: 500;
}

.positivo {
    color: #16a34a;
}

.negativo {
    color: #dc2626;
}

.equilibrio {
    margin-top: 10px;
    font-weight: bold;
    color: #2563eb;
}

/* ≠============ sistema/loja_suspensa ======= */

 .suspensao-text.destaque {
    font-weight: 500;
    color: #111;
}

.suspensao-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suspensao-link {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.suspensao-link:hover {
    text-decoration: underline;
}
 

/* ================ sistema/loja_inativa ======= */
.suspensao-text.destaque {
    font-weight: 500;
    color: #111;
}

.suspensao-actions {
    margin-top: 10px;
}

.suspensao-card.desativado {
    border-left: 5px solid #dc2626;
}
 /* ========== stores/criar ============ */

.loja-card {
    max-width: 450px;
    margin: 60px auto;
    text-align: center;
}

.loja-desc {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ======= superadmin/dashboard.  ============ */
.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status.ativa {
    background: #dcfce7;
    color: #166534;
}

.status.suspensa {
    background: #fee2e2;
    color: #991b1b;
}

.status.trial {
    background: #fef3c7;
    color: #92400e;
}

.card-mini {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.card-mini span {
    display: block;
    font-size: 13px;
    color: #6b7280;
}

.card-mini strong {
    font-size: 20px;
    font-weight: bold;
}

.card-mini.destaque {
    background: #dcfce7;
    color: #166534;
}

.card-mini.negativo {
    background: #fee2e2;
    color: #991b1b;
}

/*. ======= superadmin/criar ======= */
.badge-role {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-role.admin {
    background: #dbeafe;
    color: #1e3a8a;
}

.badge-role.user {
    background: #f3f4f6;
    color: #374151;
}

.status.ativo {
    background: #dcfce7;
    color: #166534;
}

.status.inativo {
    background: #fee2e2;
    color: #991b1b;
}

.acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ========= superadmin/editar ========== */
.form-hint {
    font-size: 12px;
    color: #6b7280;
}

/* ======== superadmin/users ======== */
.badge-role {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-role.admin {
    background: #dbeafe;
    color: #1e3a8a;
}

.badge-role.user {
    background: #f3f4f6;
    color: #374151;
}

.status.ativo {
    background: #dcfce7;
    color: #166534;
}

.status.inativo {
    background: #fee2e2;
    color: #991b1b;
}

.acoes {
    display: flex;
    gap: 10px;
}
/*================ users/Index ============= */
.badge-role {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge-role.admin {
    background: #dbeafe;
    color: #1e3a8a;
}

.badge-role.funcionario {
    background: #f3f4f6;
    color: #374151;
}

.status.ativo {
    background: #dcfce7;
    color: #166534;
}

.status.inativo {
    background: #fee2e2;
    color: #991b1b;
}

.acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
 
/* ============== users/criar =========*/
.form-group {
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ============== users/editar  =========  */
.form-hint {
    font-size: 12px;
    color: #6b7280;
}

/*========== sistema/notfound ============*/
.notfound {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f5f6fa;
}

.notfound-card {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 350px;
}

.logo {
    color: #6c2bd9;
    margin-bottom: 10px;
}


.code {
    font-size: 80px;
    margin: 10px 0;
    color: #333;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.text {
    color: #666;
    margin: 10px 0 20px;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn.primary {
    background: #6c2bd9;
    color: #fff;
}

.btn.secondary {
    background: #eee;
    color: #333;
}

/*================ Footer ================*/
.rodape-site{
    text-align:center; padding:10px; font-size:14px; color:#666;
}

/* ======= Responsividade (Moble)  ===========*/
@media (max-width: 700px) {

    main.content{
        padding-left: 25px;
    }

    .sidebar-header{
        position: sticky;
        top: 0;
        z-index: 1005;
        background: #14002b;
        border-bottom: 1px  solid #5510a3;
    }
    .app{
        margin-left: 0;
         margin-top: var(--altura-menu);
    }

    .btn-menu {
        display: block;
        position: fixed;
        height: var(--altura-menu);
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
    }

    .content {
        margin-top: var(--altura-menu);
    }

    .btn-close {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: 0.3s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.active {
        left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        display: none;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .acoes {
        /*flex-direction: column;*/
        align-items: flex-start;
        gap: 5px;
    }
    .pdv-layout {
        flex-direction: column;
    }

    .pdv-right {
        width: 100%;
    }

    .pagination {
        justify-content: center;
    }
    .table-default td,
    .table-default th {
        font-size: 13px;
    }

    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filtro-caixa {
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-actions {
        flex-direction: column;
    }

    .export-actions {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }

    .cards .card {
        width: 100%;
    }

    .content, .app, table {
        padding: 10px;
         width: 96%;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .login-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}