/* É ESSE! */

:root {
    --color-1: #117302; 
    --color-2: #468C3B;
    --color-3: #255916;
    --color-4: #87D936;
    --color-primary: #255916; 
    --color-secondary: #f4f4f7;
    --color-background: #F2F2F2; 
    --color-white: #ffffff;
    --color-error: #e74c3c; /* Cor para mensagens de erro */
    /*
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    */
    --bg-light: ;
    --card-light: #ffffff;
    --text-light: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a{
    color:  var(--color-1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-3);
}

.app-body {
    max-width: 500px; 
    margin: 0 auto;
    min-height: 100vh;
    position: relative; /* Garante que elementos fixos se comportem corretamente dentro de max-width */
    overflow-x: hidden; /* Previne barras de rolagem horizontais indesejadas */
}

/* --- Footer Inferior (Menu de Navegação App) --- */
.app-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    /* Removido max-width aqui, será aplicado na media query */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top-left-radius: 15px; /* Adiciona borda no mobile e desktop */
    border-top-right-radius: 15px; /* Adiciona borda no mobile e desktop */
}

/*
================================================================================
||                                                                            ||
||                                 HEADER                                     ||
||                                                                            ||
================================================================================
*/

.app-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 70px;
    color: white;
    border-radius: 0 0 20px 20px;
    z-index: 1001;
}

/* Logo Centralizada */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo-text { color: #A65D78; font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; }
.logo-sub { color: #4D1E51; }
.logo-img { padding-top: 10px; }

/* Menu Hambúrguer (Esquerda) */
.menu-trigger {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Botão Perfil Quadrado (Direita) */
.profile-btn {
    width: 45px;
    height: 45px;
    background-color: var(--color-4);
    border-radius: 8px; /* Quadrado levemente arredondado */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}
.logout-btn {
    color: white;
}

/* === MENU SUSPENSO (POPUP) === */
.dropdown-menu {
    position: sticky;
    top: 0;
    position: absolute;
    top: -300px; /* Começa fora da tela (em cima) */
    left: 10px;
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
    padding: 10px 0;
}

.dropdown-menu.active {
    top: 80px; /* Desce para a posição */
}

.menu-item {
    display: flex;
    margin: 12px;
    align-items: center;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(166, 93, 120, 0.1); /* Linha roxa bem clara */
}

.menu-item i {
    width: 30px;
    color: var(--color-primary);
    font-size: 1.1rem;
}


/* AJUSTE CIRÚRGICO: Garante que o app-body não 'engula' o footer fixo */
.app-body {
    position: relative; /* Garante que elementos fixos se comportem corretamente dentro de max-width */
    overflow-x: hidden; /* Previne barras de rolagem horizontais indesejadas */
    /* A regra min-height: 100vh; já existe e ajuda a evitar o sumiço */
}

/* --- Conteúdo Principal / Login Page --- */
.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alinha o conteúdo ao topo para não ficar centralizado verticalmente */
    padding: 40px 20px;
}

.login-section {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 1em;
    color: var(--color-white);
    margin-bottom: 30px;
}

/* --- Formulário --- */
.login-form {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 15px; /* Arredondamento app-like */
    box-shadow: var(--shadow-light);
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.9em;
}

.input-group i {
    color: var(--color-primary);
    margin-right: 5px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px; /* Arredondamento */
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* --- Botão Primário (Login) --- */
.btn-primary {
    width: 100%;
    background-color: var(--color-4);
    color: var(--color-white);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(163, 80, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-2);
}

/* --- Mensagens de Erro --- */
.alert-error {
    background-color: #fdd;
    color: var(--color-error);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-error);
    font-size: 0.9em;
}

/* --- Outros links --- */
.forgot-password {
    margin-top: 20px;
    color: var(--color-white);
}

.forgot-password a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9em;
}
.forgot-password a:hover {
    font-weight: bold;
}

/* === RESPONSIVIDADE (Desktop) === */
@media (min-width: 501px) {
    .app-header {
        max-width: 500px;
        margin: 0 auto;
    }
}

.search-results-container {
    position: absolute; width: 100%; background: white; border: 1px solid #ddd;
    border-radius: 8px; z-index: 100; max-height: 200px; overflow-y: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.search-item-result { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; color: #333; }
.search-item-result:hover { background: #f8f9fa; color: #007bff; }

/*
 * === ESTILOS ESPECÍFICOS DO PAINEL ADM ===
 */

/* --- Card de Módulo/Ação --- */
.module-card {
    text-align: center;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    margin: 20px 0px;
    border-top: 5px solid var(--color-primary);
}

.module-card .card-title {
    color: var(--color-4);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    align-items: left;
    text-align: left;
}

.module-card .card-title i {
    margin-right: 10px;
    font-size: 1.1em;
}

/* --- Botões de Ação --- */
.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.action-buttons button {
    margin-right: 10px;
    margin-top: 10px;
}

.btn-secondary {
    background-color: #f7f7f7;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #ededed;
}

/* --- Tabela Responsiva (Estilo App) --- */
.table-responsive {
    overflow-x: auto; /* Permite rolagem horizontal em telas pequenas */
    padding-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Espaçamento entre linhas para estilo app */
}

.data-table thead {
    display: none; /* Oculta o cabeçalho em mobile (Mobile First) */
}

.data-table tbody tr {
    display: block;
    margin-bottom: 10px;
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.data-table td {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.data-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
    justify-content: flex-start;
}

.data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.status-active {
    color: green;
    font-weight: 600;
}

.status-inactive {
    color: red;
    font-weight: 600;
}

.actions .icon-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1.1em;
    margin-right: 15px;
    transition: color 0.2s;
}

.actions .edit-btn:hover { color: var(--color-secondary); }
.actions .toggle-btn { color: #555; }
.actions .toggle-btn:hover { color: var(--color-primary); }

/* --- Desktop/Tablet (Melhora visual da tabela) --- */
@media (min-width: 501px) {
    .data-table thead {
        display: table-header-group;
    }
    .data-table tbody tr {
        display: table-row;
        border-radius: 0;
        padding: 0;
        background-color: var(--color-white);
        border-bottom: 1px solid #ddd;
    }
    .data-table tbody tr:last-child {
        border-bottom: none;
    }
    .data-table td {
        display: table-cell;
        padding: 10px 15px;
        border-bottom: none;
        justify-content: flex-start;
        text-align: left;
    }
    .data-table td::before {
        content: none;
    }
    .data-table th {
        padding: 10px 15px;
        background-color: var(--color-primary);
        color: var(--color-white);
        font-weight: 600;
        text-align: left;
    }
    .data-table tr:first-child th:first-child {
        border-top-left-radius: 10px;
    }
    .data-table tr:first-child th:last-child {
        border-top-right-radius: 10px;
    }
    .data-table tbody tr:last-child td {
        border-bottom: none;
    }
}

/* Estilos principais */
        .card-header-info {
            background-color: #fff;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }
        .dashboard-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--color-primary);
            background-color:  var(--color-background); 
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s, transform 0.2s;
            text-align: center;
            border: none;
            cursor: pointer;
        }
        .dashboard-item:hover {
            background-color: #bdc3c7;
            transform: translateY(-2px);
        }
        .dashboard-item i {
            font-size: 2em;
            margin-bottom: 10px;
            color: var(--color-primary); 
        }
        .dashboard-item span {
            font-weight: 600;
            font-size: 0.9em;
        }
        
        /* Estilos da pesquisa */
        .search-form {
            display: flex;
            gap: 10px;
        }
        .search-form input[type="text"] {
            flex-grow: 1;
        }
        .search-form button {
            background-color: var(--color-1);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
        }
        .search-form button:hover {
            background-color: var(--color-2);
        }
        
        /* === ESTILOS DO MODAL === */
        .modal-overlay {
            display: none; 
            position: fixed; 
            top: 0; left: 0; 
            width: 100%; 
            height: 100%; 
            background: rgba(0, 0, 0, 0.7); 
            z-index: 1000; 
            justify-content: center; 
            align-items: center;
        }
        .modal-content {
            background: #fff; 
            padding: 30px; 
            border-radius: 15px; 
            max-width: 90%; 
            width: 400px; 
            box-shadow: 0 5px 20px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s ease-out;
            text-align: center;
        }
        
        /* Estilos da Barra de Progresso */
        .progress-bar-container {
            width: 100%;
            background-color: #f1f1f1;
            border-radius: 5px;
            margin: 15px 0;
            display: none; 
        }
        .progress-bar {
            height: 20px;
            background-color: #2ecc71;
            width: 0%;
            border-radius: 5px;
            text-align: center;
            line-height: 20px;
            color: white;
            font-size: 0.8em;
            transition: width 1s ease;
        }
        
        /* Estilos para Botões no Modal */
        /* Limpar FINAL (roxo da marca) */
        #btn-limpar-final {
            background-color:  var(--color-primary) !important; /* ROXO DA MARCA */
            color: white;
            border: none;
            padding: 15px 20px;
            border-radius: 10px;
            font-weight: 700;
            transition: background-color 0.3s;
        }
        #btn-limpar-final:hover {
            background-color: #9b59b6 !important;
        }

        /* Botão Secundário (FECHAR) */
        .btn-secondary {
            background-color:  var(--color-primary);
            color: #34495e;
            border: 2px solid #bdc3c7;
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .btn-secondary:hover {
            background-color: #bdc3c7;
        }

        /* Corrigindo estilos do link de download e exportação */
        .btn-primary {
            display: inline-block; /* Para garantir que o link use a largura total */
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 600;
            margin-top: 15px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: opacity 0.3s;
        }
        /* Botão de Exportação (VERDE) */
        #etapa-exportacao button.btn-primary {
            background-color:  var(--color-primary);
            color: white;
            border: none;
        }
        /* Link de Download (AZUL) */
        #etapa-download a.btn-primary {
            background-color: var(--color-primary); 
            color: white;
        }

/*
 * === ESTILOS ESPECÍFICOS DO PAINEL GERENTE ===
 */

/* --- Componentes de Busca Rápida --- */
.search-form {
    display: flex;
    gap: 10px;
}

.input-full {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
}

.input-btn-icon {
    width: auto;
    padding: 12px 20px;
    border-radius: 10px;
}

/* --- Grid de Atalhos (MÓDULO 2) --- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    text-align: center;
    border-top: 5px solid var(--color-secondary); /* Cor secundária */
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background-color: var(--color-background);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.2s;
}

.grid-item:hover {
    background-color: #e9e9ed;
}

.grid-item i {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.admin-link i {
    color: #3498db; /* Cor diferenciada para Admin */
}

/* --- Lista de Comandas Abertas (MÓDULO 3) --- */
.comanda-item {
    display: flex;
    align-items: center;
    background-color: var(--color-background);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}

.comanda-item:hover {
    background-color: #e9e9ed;
}

.item-icon-box {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-right: 15px;
    font-size: 0.8em;
}

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 700;
    color: var(--color-primary);
}

.item-subtitle {
    font-size: 0.8em;
    color: var(--color-1);
}

.item-time {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--color-text-dark);
}

.info-message {
    padding: 15px;
    background-color: var(--color-2);
    border: 1px solid #91d5ff;
    color: var(--color-white);
    border-radius: 8px;
    font-size: 0.9em;
}

/*
 * === ESTILOS ESPECÍFICOS DO FORMULÁRIO DE EDIÇÃO ===
 */

/* --- Estilos de Mensagens (Alerts) --- */
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Estilo para Select e Checkbox --- */
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    background-color: var(--color-white);
    appearance: none; /* Remove estilo padrão do navegador */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23820ad1' d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--color-primary); /* Cor do checkbox */
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
}

/* Botão Secundário 100% de Largura */
.full-width-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
}

/* Ajuste do botão primário para ocupar 100% */
.form-edit .btn-primary {
    width: 100%;
}

/*
 * === ESTILOS ESPECÍFICOS DO PAINEL ATENDENTE ===
 */

 .comanda-item.atendente-item {
    display: flex;
    flex-wrap: wrap;
    background-color: #E9E9E9;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    align-items: flex-start !important;
    justify-content: space-between;
}

.comanda-item.atendente-item .info-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 80px;
    margin-bottom: 10px;
    border-radius: 12px;
    padding: 5px;
}

.info-group{
    background-color: #F9F9F9;
    margin: 3px;
}

.comanda-item.atendente-item .label {
    display: block;
    color: #117302;
    font-weight: 700;
    font-size: 0.7em;
    margin-bottom: 3px;
}

.comanda-item.atendente-item .value {
    display: block;
    color: #666;
    font-size: 0.7em;
}

.comanda-item.atendente-item .width50 {
    display: flex;
    flex: 0 0 48%;
}

.comanda-item.atendente-item .full-width {
    flex: 0 0 100%;
}

.item-icon-blue {
    /* Cor de destaque para o painel do atendente (diferente do roxo principal) */
    background-color: var(--color-4); 
}

.comanda-item.atendente-item {
    align-items: center;
}

.atendente-item .item-details {
    margin-right: auto; /* Empurra o ícone de ação para a direita */
}

.item-action-icon {
    font-size: 1.2em;
    color: var(--color-primary);
    margin-left: 15px;
}

/*
 * === ESTILOS GERAIS DO RODAPÉ (FOOTER) ===
 */
/* --- Footer Inferior (Menu de Navegação App) --- */
.app-footer {
    background-color: var(--color-white);
    border-top: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    /* Removido max-width aqui, será aplicado na media query */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-top-left-radius: 15px; /* Adiciona borda no mobile e desktop */
    border-top-right-radius: 15px; /* Adiciona borda no mobile e desktop */
}

/* === RESPONSIVIDADE (Desktop - Minimalista) === */
@media (min-width: 501px) {
    /* Garante que o corpo do app não seja muito largo no desktop */
    .app-body {
        max-width: 500px; 
        margin: 0 auto;
        /* Não precisa de left/transform aqui */
    }

    /* Centraliza e limita a largura do Header fixo/sticky */
    .app-header {
        max-width: 500px;
        left: 50%;

        right: auto;
    }

    /* Centraliza e limita a largura do Footer fixo */
    .app-footer {
        max-width: 500px;
        left: 50%; 

        right: auto;
    }
}

.footer-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d; /* Cor padrão */
    font-size: 0.75em;
    transition: color 0.3s;
}

.footer-icon i {
    font-size: 1.2em;
    margin-bottom: 3px;
}

.footer-icon.active {
    color: var(--color-primary); /* Roxo para o ícone ativo */
    font-weight: 600;
}

.icon-label {
    display: block;
}

/* Garante que o conteúdo não fique escondido atrás do footer */
.app-main-content {
    padding-bottom: 70px; 
}

/* Ajuste para telas maiores */
@media (min-width: 501px) {
    .app-footer {
        left: auto; /* Alinha o footer com a caixa do .app-body */
    }
}

/*
 * === ESTILOS ESPECÍFICOS DO LANÇAMENTO DE PEDIDOS ===
 */

/* --- Header e Resumo de Comanda --- */
.card-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px;
    color: var(--color-4);
}

.summary-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background-color: var(--color-background);
}

.summary-label {
    font-size: 0.8em;
    color: #777;
    font-weight: 500;
}

.summary-value {
    font-size: 1em;
    font-weight: 700;
    color: var(--color-text-dark);
}

.summary-total {
    grid-column: 1 / -1; /* Ocupa as duas colunas */
    background-color: var(--color-background);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.summary-total .total-value {
    color: var(--color-4); /* Cor de destaque para o total */
    font-size: 1.3em;
}

/* --- Menu de Produtos --- */
.category-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 25px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--color-1);
    text-align: left;
}

.product-form {
    margin-bottom: 10px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: left;
    text-align: left;
    padding: 12px;
    border-radius: 12px;
    border-bottom: 1px solid #f0f0f0;
    background-color: var(--color-background);
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    color: var(--color-text-dark);
    display: block;
}

.product-price {
    font-size: 0.9em;
    color: #777;
}

.product-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-quant {
    background-color: var(--color-4);
    size: 20%;
    text-align: center;
    width: 80px;
    padding: 8px 5px;
    color: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold !important;
}

.btn-lancar {
    background-color: var(--color-4); /* Verde Lançamento */
    color: var(--color-white);
    border: none;
    padding: 10px;
    border-radius: 20%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-lancar:hover {
    background-color: var(--color-2);
}

/* --- Lista de Itens Atuais --- */
.current-items-list {
    margin-top: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    background-color: var(--color-background);
}
.current-items-list span {
    text-align: left;
}

.item-pedido {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.9em;
    text-align: left !important;
}
.item-pedido span {
    text-align: left;
}

.item-pedido:last-child {
    border-bottom: none;
}

.item-quant {
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 10px;
    width: 30px;
}

.item-name {
    flex-grow: 1;
}

.item-subtotal {
    font-weight: 600;
}

.app-footer.fixed-bottom {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            max-width: 500px;
            width: 100%;
            height: 70px;
            background: none;
            box-shadow: none;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 20px;
            z-index: 1000;
        }

        .footer-action-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 50px;
            background-color: #27ae60; /* Verde para ação de pagamento/finalização */
            color: white;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1em;
            box-shadow: 0 4px 10px rgba(39, 174, 96, 0.4);
            transition: background-color 0.3s;
        }

        .footer-action-button i {
            margin-right: 10px;
            font-size: 1.2em;
        }
        
        .footer-action-button:hover {
            background-color: #2ecc71;
        }
        
        /* Ajusta o padding do main para o botão não ficar por cima do conteúdo */
        .app-main-content {
            padding-bottom: 90px; /* Garante espaço para o footer fixo */
        }

        /* MODAL */
        .status-badge {
            padding: 4px 8px;
            border-radius: 5px;
            font-weight: 600;
            font-size: 0.8em;
            display: inline-block;
        }
        .status-ativo { background-color: #D4EDDA; color: #155724; }
        .status-inativo { background-color: #F8D7DA; color: #721C24; }
        
        .action-link {
            color: #3498db;
            margin: 0 5px;
            font-size: 1.1em;
            cursor: pointer;
            transition: color 0.2s;
        }
        .action-link.delete-btn { color: #e74c3c; }
        .action-link.toggle-btn { font-size: 1.3em; }
        .action-link:hover { opacity: 0.7; }

        .btn-new-user {
            background-color: #8e44ad;
            color: white;
            border: none;
            padding: 12px 20px; 
            border-radius: 10px; 
            font-weight: 600;
            text-decoration: none;
            display: block; 
            width: 90%; 
            max-width: 300px;
            margin: 20px auto; 
            align-items: center;
            transition: background-color 0.3s;
            text-align: center;
        }
        .btn-new-user:hover {
            background-color: #fff;
        }
        .btn-new-user i {
            margin-right: 8px;
        }
        
        .modal-overlay {
            display: none; 
            position: fixed; top: 0; left: 0; 
            width: 100%; height: 100%; 
            background: rgba(0, 0, 0, 0.7); 
            z-index: 1000; 
            justify-content: center; 
            align-items: center;
        }
        .modal-content {
            background: #fff; 
            padding: 25px; 
            border-radius: 15px; 
            max-width: 90%; 
            width: 400px; 
            box-shadow: 0 5px 20px rgba(0,0,0,0.5);
            animation: modalFadeIn 0.3s ease-out;
        }
        .modal-content h3 {
            color: var(--color-3);
            margin-top: 0;
            border-bottom: 2px solid var(--color-2);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #34495e;
            font-size: 0.9em;
        }
        .form-group input, .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 8px;
            box-sizing: border-box;
            font-size: 1em;
        }
        
        .btn-confirm {
            background-color: var(--color-3);
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 8px;
            width: 100%;
            font-weight: 600;
            margin-top: 15px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        .btn-confirm:hover {
            background-color: var(--color-1);
        }
        .btn-danger-modal {
            background-color: #e74c3c;
            margin-top: 10px;
        }
        .btn-danger-modal:hover {
            background-color: #c0392b;
        }
        .card-header-info {
            background-color: #fff;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }


        /* Estilização do Campo de Anotações (Textarea) */
        textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            background-color: #f9fafb;
            font-family: 'Poppins', sans-serif;
            font-size: 0.95rem;
            color: #374151;
            resize: vertical; /* Permite redimensionar apenas na vertical */
            min-height: 120px;
            line-height: 1.5;
            transition: all 0.3s ease;
            box-sizing: border-box;
            outline: none;
        }


        /* Estilo para a visualização da planilha no PDF */
        .pdf-table {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, sans-serif;
            font-size: 10px;
        }
        .pdf-table th {
            background-color: #e2efda;
            border: 1px solid #ccc;
            padding: 8px;
            text-align: left;
            text-transform: uppercase;
        }
        .pdf-table td {
            border-bottom: 1px dashed #ccc;
            padding: 6px;
            vertical-align: top;
        }
        .pdf-header {
            text-align: center;
            font-weight: bold;
            margin-bottom: 20px;
            text-transform: uppercase;
        }
        .conteudo-pdf {
            margin: 1%;
            background-color: var(--color-white);
            border-radius: 15px;      /* Define o arredondamento dos cantos */
            padding: 20px;            /* Espaçamento interno para o conteúdo não tocar na borda */
            /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  Sombra leve para dar profundidade */
            overflow: hidden;         /* Garante que o conteúdo interno não "escape" das bordas arredondadas */
            border: 1px solid var(--color-1);

            /* Faz a div ocupar o máximo de altura possível na tela */
            min-height: 95vh; 
            display: flex;
            flex-direction: column;
        }

        @media print {
            body {
                background-color: #f4f4f4 !important;
                -webkit-print-color-adjust: exact;
            }
            .conteudo-pdf {
                border-radius: 15px !important;
                background-color: #ffffff !important;
            }
        }