/* =========================================================
   ADEGA - PDV / ESTOQUE / PRODUTOS
   TEMA: PRETO PREMIUM + DOURADO
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --preto: #080808;
    --preto-2: #0d0d0d;
    --preto-3: #121212;
    --grafite: #181818;
    --grafite-2: #202020;

    --cinza: #2a2a2a;
    --cinza-medio: #777;
    --cinza-claro: #bdbdbd;
    --branco: #f5f5f5;
    --branco-suave: #e8e8e8;

    --dourado: #c9a227;
    --dourado-claro: #e0bd55;
    --dourado-escuro: #8f7218;

    --verde: #28a745;
    --verde-claro: #39c95a;

    --vermelho: #dc3545;
    --vermelho-escuro: #a71d2a;

    --azul: #17a2b8;
    --amarelo: #d6a900;

    --borda: rgba(255,255,255,0.08);
    --sombra: 0 15px 45px rgba(0,0,0,0.55);
}

/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top, #252525 0%, #0d0d0d 40%, #050505 100%);
    color: var(--branco);
    min-height: 100vh;
    padding: 20px;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    max-width: 1400px;
    margin: 0 auto;

    background: var(--preto-2);

    border-radius: 18px;

    border: 1px solid var(--borda);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 0 1px rgba(201,162,39,0.03);

    overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    background:
        linear-gradient(
            135deg,
            #050505 0%,
            #151515 50%,
            #080808 100%
        );

    color: white;

    padding: 30px;

    text-align: center;

    border-bottom: 1px solid rgba(201,162,39,0.25);

    position: relative;
}

.header::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 180px;
    height: 2px;

    transform: translateX(-50%);

    background: linear-gradient(
        90deg,
        transparent,
        var(--dourado),
        transparent
    );
}

.logo {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-bottom: 10px;
}

.logo .emoji {
    font-size: 3em;

    filter:
        drop-shadow(0 0 8px rgba(201,162,39,0.35));
}

.logo h1 {
    font-size: 2em;

    font-weight: 700;

    letter-spacing: 1px;
}

.subtitle {
    color: #aaa;

    opacity: 1;

    font-size: 1.1em;
}

/* =========================================================
   TABS
   ========================================================= */

.tabs {
    display: flex;

    background: #0b0b0b;

    border-bottom: 1px solid var(--borda);
}

.tab-btn {
    flex: 1;

    padding: 15px 20px;

    background: none;

    border: none;

    cursor: pointer;

    font-size: 1em;

    font-weight: 600;

    color: #888;

    transition: all 0.3s;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;
}

.tab-btn:hover {
    background: #171717;

    color: var(--branco);
}

.tab-btn.active {
    background: #111;

    color: var(--dourado-claro);

    border-bottom: 3px solid var(--dourado);
}

/* =========================================================
   TAB CONTENT
   ========================================================= */

.tab-content {
    display: none;

    padding: 30px;

    animation: fadeIn 0.35s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   PDV
   ========================================================= */

.pdv-container {
    display: grid;

    grid-template-columns: 1fr 380px;

    gap: 20px;
}

.pdv-left {
    background: #101010;

    border-radius: 15px;

    padding: 20px;

    border: 1px solid var(--borda);
}

/* =========================================================
   PDV HEADER
   ========================================================= */

.pdv-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

    flex-wrap: wrap;

    gap: 15px;
}

.carrinho-info {
    background: #171717;

    padding: 10px 20px;

    border-radius: 10px;

    display: flex;

    gap: 20px;

    font-weight: bold;

    color: var(--branco);

    border: 1px solid var(--borda);

    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
}

/* =========================================================
   CATEGORIAS
   ========================================================= */

.categorias-produtos {
    display: flex;

    gap: 10px;

    margin-bottom: 20px;

    flex-wrap: wrap;
}

.categoria-btn {
    padding: 8px 16px;

    border: 1px solid #333;

    background: #151515;

    color: #aaa;

    border-radius: 20px;

    cursor: pointer;

    transition: all 0.3s;

    font-weight: 500;
}

.categoria-btn:hover {
    background: #222;

    color: white;

    border-color: #555;

    transform: translateY(-2px);
}

.categoria-btn.active {
    background:
        linear-gradient(
            135deg,
            var(--dourado),
            var(--dourado-escuro)
        );

    color: #080808;

    border-color: var(--dourado);

    font-weight: 700;

    box-shadow:
        0 4px 15px rgba(201,162,39,0.18);
}

/* =========================================================
   BUSCA
   ========================================================= */

.busca-produto {
    margin-bottom: 20px;
}

.busca-produto input {
    width: 100%;

    padding: 12px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 10px;

    font-size: 1em;

    transition: all 0.3s;
}

.busca-produto input::placeholder {
    color: #777;
}

.busca-produto input:focus {
    outline: none;

    border-color: var(--dourado);

    box-shadow:
        0 0 0 3px rgba(201,162,39,0.08);
}

/* =========================================================
   GRID PRODUTOS
   ========================================================= */

.produtos-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));

    gap: 15px;

    max-height: 550px;

    overflow-y: auto;

    padding: 5px;
}

/* Scrollbar */

.produtos-grid::-webkit-scrollbar,
.carrinho-items::-webkit-scrollbar,
.estoque-lista::-webkit-scrollbar,
.historico-vendas::-webkit-scrollbar,
.produtos-gestao-lista::-webkit-scrollbar,
.ingredientes-lista::-webkit-scrollbar {
    width: 7px;
}

.produtos-grid::-webkit-scrollbar-track,
.carrinho-items::-webkit-scrollbar-track,
.estoque-lista::-webkit-scrollbar-track,
.historico-vendas::-webkit-scrollbar-track,
.produtos-gestao-lista::-webkit-scrollbar-track,
.ingredientes-lista::-webkit-scrollbar-track {
    background: #0b0b0b;
}

.produtos-grid::-webkit-scrollbar-thumb,
.carrinho-items::-webkit-scrollbar-thumb,
.estoque-lista::-webkit-scrollbar-thumb,
.historico-vendas::-webkit-scrollbar-thumb,
.produtos-gestao-lista::-webkit-scrollbar-thumb,
.ingredientes-lista::-webkit-scrollbar-thumb {
    background: #444;

    border-radius: 10px;
}

.produtos-grid::-webkit-scrollbar-thumb:hover,
.carrinho-items::-webkit-scrollbar-thumb:hover,
.estoque-lista::-webkit-scrollbar-thumb:hover,
.historico-vendas::-webkit-scrollbar-thumb:hover,
.produtos-gestao-lista::-webkit-scrollbar-thumb:hover,
.ingredientes-lista::-webkit-scrollbar-thumb:hover {
    background: var(--dourado);
}

/* =========================================================
   PRODUTO CARD
   ========================================================= */

.produto-card {
    background:
        linear-gradient(
            145deg,
            #1a1a1a,
            #101010
        );

    border-radius: 12px;

    padding: 15px;

    cursor: pointer;

    transition: all 0.3s;

    text-align: center;

    border: 1px solid #292929;
}

.produto-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.5);

    border-color: var(--dourado);

    background:
        linear-gradient(
            145deg,
            #202020,
            #121212
        );
}

.produto-nome {
    font-weight: bold;

    margin-bottom: 10px;

    font-size: 1.1em;

    color: #eee;
}

.produto-preco {
    color: var(--dourado-claro);

    font-weight: bold;

    font-size: 1.3em;
}

/* =========================================================
   CARRINHO DIREITO
   ========================================================= */

.pdv-right {
    background:
        linear-gradient(
            145deg,
            #171717,
            #0d0d0d
        );

    border-radius: 15px;

    padding: 20px;

    border: 1px solid var(--borda);

    box-shadow:
        0 8px 30px rgba(0,0,0,0.45);

    position: sticky;

    top: 20px;

    height: fit-content;
}

.carrinho {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.carrinho h3 {
    color: var(--branco);

    border-bottom: 1px solid #333;

    padding-bottom: 10px;
}

/* =========================================================
   CARRINHO ITEMS
   ========================================================= */

.carrinho-items {
    max-height: 400px;

    overflow-y: auto;

    min-height: 200px;
}

.carrinho-item {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px;

    border-bottom: 1px solid #292929;

    margin-bottom: 10px;
}

.carrinho-item-info {
    flex: 1;
}

.carrinho-item-nome {
    font-weight: bold;

    font-size: 0.95em;

    color: #eee;
}

.carrinho-item-preco {
    font-size: 0.85em;

    color: #888;
}

.carrinho-item-quantidade {
    display: flex;

    align-items: center;

    gap: 8px;
}

.quantidade-btn {
    width: 30px;
    height: 30px;

    border: 1px solid #333;

    background: #222;

    color: #ddd;

    border-radius: 5px;

    cursor: pointer;

    font-size: 1.2em;

    font-weight: bold;

    transition: all 0.2s;
}

.quantidade-btn:hover {
    background: var(--dourado);

    color: #000;

    border-color: var(--dourado);
}

.carrinho-item-total {
    font-weight: bold;

    margin-left: 15px;

    min-width: 80px;

    text-align: right;

    color: var(--dourado-claro);
}

.remove-item {
    background: var(--vermelho);

    color: white;

    border: none;

    width: 30px;
    height: 30px;

    border-radius: 5px;

    cursor: pointer;

    margin-left: 10px;
}

.remove-item:hover {
    background: var(--vermelho-escuro);
}

/* =========================================================
   TOTAL
   ========================================================= */

.carrinho-total {
    border-top: 1px solid #333;

    padding-top: 15px;
}

.total-line {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

    align-items: center;
}

.total-line input {
    width: 120px;

    padding: 5px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 5px;
}

.grand-total {
    font-size: 1.3em;

    font-weight: bold;

    color: var(--dourado-claro);
}

/* =========================================================
   PAGAMENTO
   ========================================================= */

.pagamento-area {
    display: flex;

    gap: 10px;

    flex-direction: column;
}

.pagamento-area label {
    font-weight: 500;

    color: #aaa;
}

.pagamento-area select,
.pagamento-area input {
    padding: 10px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 8px;

    font-size: 1em;
}

.pagamento-area select:focus,
.pagamento-area input:focus {
    outline: none;

    border-color: var(--dourado);
}

.troco {
    margin-top: 5px;

    color: var(--verde-claro);

    font-weight: bold;
}

/* =========================================================
   BOTÃO FINALIZAR
   ========================================================= */

.btn-finalizar {
    background:
        linear-gradient(
            135deg,
            var(--dourado),
            var(--dourado-escuro)
        );

    color: #080808;

    padding: 15px;

    border: none;

    border-radius: 10px;

    font-weight: 800;

    cursor: pointer;

    transition: all 0.3s;

    font-size: 1.1em;
}

.btn-finalizar:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(201,162,39,0.25);
}

/* =========================================================
   BOTÃO LIMPAR
   ========================================================= */

.btn-limpar {
    background: #292929;

    color: #ddd;

    padding: 12px;

    border: 1px solid #3a3a3a;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 500;

    transition: all 0.3s;
}

.btn-limpar:hover {
    background: #333;

    color: white;
}

/* =========================================================
   ESTOQUE
   ========================================================= */

.estoque-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    flex-wrap: wrap;

    gap: 15px;
}

.estoque-header h2 {
    font-size: 1.8em;

    color: #eee;
}

/* =========================================================
   RESUMO ESTOQUE
   ========================================================= */

.estoque-resumo {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.resumo-card {
    background:
        linear-gradient(
            135deg,
            #1d1d1d,
            #0c0c0c
        );

    padding: 25px;

    border-radius: 15px;

    color: white;

    text-align: center;

    border: 1px solid rgba(201,162,39,0.18);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.4);

    transition: all 0.3s;
}

.resumo-card:hover {
    transform: translateY(-4px);

    border-color: rgba(201,162,39,0.45);
}

.resumo-card h4 {
    font-size: 1em;

    margin-bottom: 10px;

    color: #999;
}

.resumo-card p {
    font-size: 2em;

    font-weight: bold;

    color: var(--dourado-claro);
}

/* =========================================================
   FILTROS ESTOQUE
   ========================================================= */

.estoque-filtros {
    display: flex;

    gap: 15px;

    margin-bottom: 30px;

    flex-wrap: wrap;
}

.estoque-filtros input,
.estoque-filtros select {
    flex: 1;

    padding: 12px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 10px;

    font-size: 1em;
}

.estoque-filtros input:focus,
.estoque-filtros select:focus {
    outline: none;

    border-color: var(--dourado);
}

/* =========================================================
   LISTA ESTOQUE
   ========================================================= */

.estoque-lista {
    background: #0e0e0e;

    border-radius: 15px;

    padding: 20px;

    max-height: 500px;

    overflow-y: auto;

    border: 1px solid var(--borda);
}

.estoque-item {
    background:
        linear-gradient(
            135deg,
            #1b1b1b,
            #121212
        );

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    border-left: 4px solid var(--dourado);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.3);

    transition: all 0.3s;
}

.estoque-item:hover {
    box-shadow:
        0 8px 25px rgba(0,0,0,0.5);

    transform: translateX(3px);
}

.estoque-item-info {
    flex: 2;
}

.estoque-item-nome {
    font-weight: bold;

    font-size: 1.1em;

    margin-bottom: 5px;

    color: #eee;
}

.estoque-item-info div {
    font-size: 0.85em;

    color: #888;

    margin-top: 3px;
}

.estoque-item-quantidade {
    font-size: 1.3em;

    font-weight: bold;

    padding: 8px 15px;

    border-radius: 30px;

    min-width: 150px;

    text-align: center;
}

.estoque-baixo {
    background: rgba(220,53,69,0.12);

    color: #ff6573;

    border: 1px solid rgba(220,53,69,0.35);
}

.estoque-normal {
    background: rgba(40,167,69,0.12);

    color: #54d875;

    border: 1px solid rgba(40,167,69,0.35);
}

.estoque-acoes {
    display: flex;

    gap: 8px;
}

.estoque-acoes button {
    padding: 8px 15px;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;

    transition: all 0.3s;
}

.estoque-acoes button:hover {
    transform: translateY(-2px);
}

.btn-editar {
    background: var(--dourado);

    color: #000;
}

.btn-editar:hover {
    background: var(--dourado-claro);
}

.btn-deletar {
    background: var(--vermelho);

    color: white;
}

/* =========================================================
   VENDAS
   ========================================================= */

.vendas-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    flex-wrap: wrap;

    gap: 15px;
}

.filtro-vendas {
    display: flex;

    gap: 10px;
}

.filtro-vendas input {
    padding: 10px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 8px;
}

.filtro-vendas input:focus {
    outline: none;

    border-color: var(--dourado);
}

.historico-vendas {
    background: #0e0e0e;

    border-radius: 15px;

    padding: 20px;

    max-height: 600px;

    overflow-y: auto;

    border: 1px solid var(--borda);
}

.venda-item {
    background:
        linear-gradient(
            135deg,
            #1a1a1a,
            #111
        );

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 15px;

    border-left: 4px solid var(--verde);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.3);
}

.venda-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

    padding-bottom: 10px;

    border-bottom: 1px solid #292929;
}

.venda-total {
    font-weight: bold;

    font-size: 1.2em;

    color: var(--verde-claro);
}

.venda-items {
    margin-top: 10px;

    padding-left: 20px;

    color: #bbb;
}

/* =========================================================
   MODAL
   ========================================================= */

.modal {
    display: none;

    position: fixed;

    z-index: 1000;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.78);

    backdrop-filter: blur(5px);
}

.modal-content {
    background:
        linear-gradient(
            145deg,
            #1b1b1b,
            #0d0d0d
        );

    margin: 10% auto;

    padding: 30px;

    border-radius: 20px;

    width: 90%;

    max-width: 500px;

    position: relative;

    border: 1px solid #333;

    box-shadow:
        0 20px 70px rgba(0,0,0,0.7);
}

.close {
    position: absolute;

    right: 20px;
    top: 15px;

    font-size: 28px;

    font-weight: bold;

    cursor: pointer;

    color: #777;

    transition: all 0.2s;
}

.close:hover {
    color: var(--dourado);
}

/* =========================================================
   FORMULÁRIOS
   ========================================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;

    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 10px;

    background: #111;

    color: white;

    border: 1px solid #333;

    border-radius: 8px;

    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;

    border-color: var(--dourado);

    box-shadow:
        0 0 0 3px rgba(201,162,39,0.08);
}

/* =========================================================
   BOTÕES
   ========================================================= */

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--dourado),
            var(--dourado-escuro)
        );

    color: #080808;

    padding: 12px;

    border: none;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;

    width: 100%;

    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(201,162,39,0.2);
}

.btn-secondary {
    background: #292929;

    color: white;

    padding: 8px 20px;

    border: 1px solid #3a3a3a;

    border-radius: 8px;

    cursor: pointer;
}

.btn-pdf {
    background: var(--vermelho);

    color: white;

    padding: 8px 20px;

    border: none;

    border-radius: 8px;

    cursor: pointer;
}

.btn-pdf:hover {
    background: var(--vermelho-escuro);
}

/* =========================================================
   GESTÃO DE PRODUTOS
   ========================================================= */

.produtos-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    flex-wrap: wrap;

    gap: 15px;
}

.produtos-header h2 {
    font-size: 1.8em;

    color: #eee;
}

.produtos-filtros {
    display: flex;

    gap: 15px;

    margin-bottom: 30px;

    flex-wrap: wrap;
}

.produtos-filtros input,
.produtos-filtros select {
    flex: 1;

    padding: 12px;

    background: #151515;

    color: white;

    border: 1px solid #333;

    border-radius: 10px;

    font-size: 1em;
}

.produtos-filtros input:focus,
.produtos-filtros select:focus {
    outline: none;

    border-color: var(--dourado);
}

.produtos-gestao-lista {
    background: #0e0e0e;

    border-radius: 15px;

    padding: 20px;

    max-height: 550px;

    overflow-y: auto;

    border: 1px solid var(--borda);
}

.produto-gestao-item {
    background:
        linear-gradient(
            135deg,
            #1a1a1a,
            #101010
        );

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 15px;

    border-left: 4px solid var(--dourado);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.3);

    transition: all 0.3s;
}

.produto-gestao-item:hover {
    transform: translateX(3px);

    box-shadow:
        0 8px 25px rgba(0,0,0,0.5);
}

.produto-gestao-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

    flex-wrap: wrap;

    gap: 10px;
}

.produto-gestao-nome {
    font-size: 1.2em;

    font-weight: bold;

    color: #eee;
}

.produto-gestao-preco {
    font-size: 1.3em;

    font-weight: bold;

    color: var(--dourado-claro);
}

.produto-gestao-categoria {
    display: inline-block;

    padding: 4px 12px;

    background: #252525;

    color: #aaa;

    border: 1px solid #333;

    border-radius: 20px;

    font-size: 0.8em;

    margin-left: 10px;
}

.produto-gestao-ingredientes {
    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid #292929;
}

.produto-gestao-ingredientes h4 {
    font-size: 0.9em;

    color: #888;

    margin-bottom: 10px;
}

.ingrediente-tag {
    display: inline-block;

    background: #202020;

    color: #bbb;

    border: 1px solid #333;

    padding: 5px 10px;

    border-radius: 15px;

    font-size: 0.8em;

    margin-right: 10px;

    margin-bottom: 5px;
}

.produto-gestao-acoes {
    display: flex;

    gap: 10px;

    margin-top: 15px;
}

.modal-large {
    max-width: 700px;
}

.ingredientes-lista {
    background: #101010;

    padding: 15px;

    border-radius: 10px;

    margin-bottom: 15px;

    max-height: 300px;

    overflow-y: auto;

    border: 1px solid #292929;
}

.ingrediente-item-form {
    display: flex;

    gap: 10px;

    align-items: center;

    margin-bottom: 10px;

    padding: 10px;

    background: #1b1b1b;

    border-radius: 8px;
}

.ingrediente-item-form select,
.ingrediente-item-form input {
    flex: 1;

    padding: 8px;

    background: #101010;

    color: white;

    border: 1px solid #333;

    border-radius: 5px;
}

.ingrediente-item-form button {
    background: var(--vermelho);

    color: white;

    border: none;

    width: 30px;
    height: 30px;

    border-radius: 5px;

    cursor: pointer;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-actions {
    display: flex;

    gap: 10px;

    justify-content: flex-end;

    margin-top: 20px;
}

.btn-small {
    padding: 6px 12px;

    font-size: 0.9em;

    width: auto;
}

/* =========================================================
   TOTAL DO DIA
   ========================================================= */

.total-dia-container {
    margin-top: 20px;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #151515,
            #0b0b0b
        );

    border-radius: 12px;

    border: 1px solid var(--dourado);

    box-shadow:
        0 5px 20px rgba(0,0,0,0.4);
}

.total-dia-card {
    text-align: center;
}

.total-dia-card h3 {
    color: var(--dourado-claro);

    font-size: 1.2em;

    margin-bottom: 10px;
}

.total-dia-valor {
    font-size: 2.5em;

    font-weight: 700;

    color: var(--dourado-claro);

    margin: 10px 0;
}

.total-vendas-dia {
    font-size: 1em;

    color: #888;
}

/* =========================================================
   BOTÃO IMPRIMIR
   ========================================================= */

.btn-imprimir {
    background: var(--azul);

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    transition: all 0.3s;
}

.btn-imprimir:hover {
    background: #138496;

    transform: translateY(-2px);
}

.btn-imprimir-pequeno {
    background: var(--azul);

    color: white;

    border: none;

    padding: 5px 12px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 12px;

    transition: all 0.3s;

    margin-top: 10px;
}

.btn-imprimir-pequeno:hover {
    background: #138496;

    transform: scale(1.05);
}

/* =========================================================
   VENDA AÇÕES
   ========================================================= */

.venda-acoes {
    margin-top: 10px;

    text-align: right;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .pdv-container {
        grid-template-columns: 1fr;
    }

    .pdv-right {
        position: static;
    }
}

@media (max-width: 768px) {

    body {
        padding: 8px;
    }

    .container {
        border-radius: 12px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .estoque-item {
        flex-direction: column;

        text-align: center;
    }

    .estoque-item-quantidade {
        width: 100%;
    }

    .estoque-acoes {
        width: 100%;

        justify-content: center;
    }

    .modal-content {
        margin: 30% auto;

        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.5em;
    }

    .logo .emoji {
        font-size: 2.3em;
    }

    .produtos-grid {
        grid-template-columns:
            repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {

    body {
        background: white !important;

        color: #000 !important;

        padding: 0;

        margin: 0;
    }

    .container {
        box-shadow: none;

        margin: 0;

        border-radius: 0;

        border: none;

        background: white !important;
    }

    .header {
        background: white !important;

        color: #000 !important;

        border-bottom: 2px solid #000;
    }

    .tabs,
    .tab-btn,
    .btn-imprimir,
    .btn-imprimir-pequeno,
    .btn-pdf,
    .btn-secondary,
    .registro-delete {
        display: none !important;
    }

    .tab-content {
        display: block !important;

        padding: 0;

        background: white !important;
    }

    .total-dia-container {
        border: 2px solid #000 !important;

        background: white !important;

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;
    }

    .total-dia-valor {
        color: #000 !important;

        -webkit-print-color-adjust: exact !important;

        print-color-adjust: exact !important;
    }

    .venda-item {
        page-break-inside: avoid;

        border: 1px solid #ddd;

        padding: 10px;

        margin: 10px 0;

        border-radius: 8px;

        background: white !important;

        color: #000 !important;
    }

    .registro-item {
        break-inside: avoid;

        page-break-inside: avoid;

        background: white !important;

        color: #000 !important;
    }

    .stats-grid {
        break-inside: avoid;
    }

    .chart-box {
        break-inside: avoid;
    }
}