/* Estilos globais para a página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2c2c3e;
    color: #e0e0e0;
    margin: 0;
}

/* Container principal para o layout de duas colunas */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Estilo para a barra lateral (o menu) */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1f1f2e 0%, #2a2a3e 100%);
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease-in-out;
    /* Adicionado para a transição em mobile */
    flex-shrink: 0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h1 {
    color: #fff;
    font-size: 24px;
}

/* Estilo para o conteúdo principal */
.content {
    flex-grow: 1;
    padding: 40px;
    background-color: #fff;
    color: #333;
}

/* Estilo dos links no menu lateral */
.sidebar-menu a,
.dropdown-btn {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 16px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-menu a:hover,
.dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
}

.sidebar-menu a i,
.dropdown-btn i {
    margin-right: 10px;
}

/* Estilos para o dropdown */
.dropdown-container {
    padding-left: 30px;
    border-left: 2px solid #ff6347;
    margin-left: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dropdown-container a {
    color: #e0e0e0;
    padding: 8px;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Estilos dos títulos e links de ação */
h1,
h2 {
    color: #ff6347;
}

.action-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-links a {
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.action-links a:hover {
    background: #218838;
}

/* Estilos para a lista de funcionários */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #f9f9f9;
    margin: 5px 0;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mensagens flash */
.flash-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.flash-message.danger {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
}


/* Estilo para a tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #555;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons a,
.action-buttons button {
    background: #0275d8;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

.action-buttons a.delete,
.action-buttons button.delete {
    background: #ff6347;
}

/* Estilo para os cards do dashboard e relatórios */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-top: 0;
    color: #555;
}

.remaining-limit {
    font-weight: bold;
    color: #28a745;
    /* Cor verde para saldos positivos */
}

.back-button {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Estilo para o container do formulário */
.form-container {
    max-width: 800px;
    margin: auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* --- Estilos para Formulários --- */

.form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    /* Define uma largura máxima para o formulário */
    margin: 20px auto;
    /* Centraliza o formulário na área de conteúdo */
}

.form-group {
    margin-bottom: 20px;
    /* Espaçamento entre os campos */
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    /* Espaçamento entre o rótulo e o campo */
}

/* Estilo unificado para inputs, selects, etc. */
.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    /* Garante que padding e borda não aumentem a largura total */
}

.form-control:focus {
    outline: none;
    border-color: #c82333;
    /* Usa a cor principal do seu tema */
    box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.15);
    background-color: #fff;
}

/* Linha divisória */
.form-divider {
    margin-top: 30px;
    margin-bottom: 30px;
    border: 0;
    border-top: 1px solid #e9ecef;
}

/* Estilo do Botão de Submissão */
.btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #28a745;
    /* Um verde sucesso, como na sua imagem */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit:hover {
    background-color: #218838;
    /* Verde um pouco mais escuro */
}

/* Estilo para a barra de pesquisa */
.search-container {
    display: flex;
    justify-content: flex-end;
    /* Alinha a barra de pesquisa à direita */
    margin-bottom: 10px;
}

.search-bar {
    width: 50% !important;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

/* --- Estilos para a Página de Produtos --- */

/* Botões de Filtro */
.filter-buttons {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-filter {
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.btn-filter:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.btn-filter.active {
    background-color: #c82333;
    /* Cor principal (vermelho) */
    color: white;
    border-color: #c82333;
    font-weight: 600;
}

/* Grid de Produtos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card de Produto Individual */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #c82333;
    /* Cor principal (vermelho) */
    white-space: nowrap;
    margin-left: 15px;
}

/* --- Estilos para a Tabela de Gerenciar Funcionários --- */

.table-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    /* Remove espaçamento entre células */
}

.user-table th,
.user-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    /* Linha sutil separando as linhas */
}

.user-table th {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}

.user-table tbody tr:hover {
    background-color: #f8f9fa;
    /* Efeito de hover suave */
}

.user-link {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* --- Estilos para o Status do Saldo --- */
.saldo-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.saldo-ok {
    background-color: #d4edda;
    /* Verde claro */
    color: #155724;
}

.saldo-atencao {
    background-color: #fff3cd;
    /* Amarelo claro */
    color: #856404;
}

.saldo-critico {
    background-color: #f8d7da;
    /* Vermelho claro */
    color: #721c24;
}

/* --- Estilos para os Botões de Ação --- */
.actions-cell {
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-action svg {
    margin-bottom: 2px;
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* --- Estilos para Botões Genéricos --- */

.btn {
    /* Propriedades adicionadas para garantir consistência entre <a> e <button> */
    box-sizing: border-box;
    /* Garante que o padding não aumente a largura final */
    border: 1px solid transparent;
    /* Define uma borda base para ambos */
    line-height: 1.5;
    /* Normaliza a altura da linha do texto */
    font-family: inherit;
    /* Garante que ambos usem a mesma fonte da página */

    /* Estilos existentes */
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-radius: 6px;
    /* Adicionado para consistência */
}

/* Garante que os botões não tenham margens estranhas */
.btn:hover {
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-2px);
    /* Efeito de "levantar" ao passar o mouse */
}

/* Estilo para o botão primário (azul) */
.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    /* Tom de azul mais escuro */
}

/* --- Estilos para Checkbox nos Formulários --- */

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-right: 10px;
    cursor: pointer;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* --- Estilos para a Página de Registrar Consumo (DESIGN PDV - VERSÃO CORRIGIDA) --- */
.content {
    background-color: #ffffff;
}

.pdv-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: flex-start;
}

/* Painel de Produtos (Esquerda) */
.pdv-products-panel {
    background-color: #ececec;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border: 1px solid #e9ecef;
}

.search-bar {
    margin-bottom: 15px;
    padding-right: 45px;
    /* Garante que não fique colada na barra de rolagem */
}

/* Bloco Novo - USE ESTE NO LUGAR */
.pdv-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    max-height: 60vh;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
}

.pdv-product-item {
    background-color: #efefef;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #fff4f4;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pdv-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #c82333;
}

.pdv-product-item.selected {
    background-color: #fdf0f1;
    border-color: #c82333;
    box-shadow: 0 0 0 2px rgba(200, 35, 51, 0.3);
}

.pdv-product-item .product-name {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

/* Painel de Resumo (Direita) */
.pdv-summary-panel {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

/* CORREÇÃO 2: Garantindo que o input da senha não vaze */
.pdv-summary-panel .form-control {
    box-sizing: border-box;
    /* Garante que padding e borda não aumentem a largura total */
    width: 100%;
}

.summary-title {
    font-size: 20px;
    margin-top: 0;
    text-align: center;
    color: #495057;
}

.selected-products-list {
    min-height: 100px;
    max-height: 250px;
    overflow-y: auto;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.empty-cart-message {
    text-align: center;
    color: #888;
    padding: 30px 0;
}

.summary-total,
.summary-total-per-person {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    color: #343a40;
}

.divide-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #007bff;
    font-size: 14px;
    margin-top: -10px;
}

.divide-btn:hover {
    text-decoration: underline;
}

.multi-select-funcionarios {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.multi-select-funcionarios.hidden,
.summary-total-per-person.hidden {
    display: none;
}

/* Adicionando estilo para os itens selecionados na lista de resumo (vamos precisar no JS) */
.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.cart-item .item-name {
    color: #495057;
}

.cart-item .item-price {
    font-weight: 500;
    color: #343a40;
}

/* --- Estilos para o Dashboard de Relatórios --- */
.kpi-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.kpi-title {
    font-size: 16px;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #343a40;
    margin: 0;
}

.chart-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
    height: 400px;
}

.employee-report-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.employee-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.employee-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    text-align: center;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: #c82333;
}

/* --- Estilos de Utilidade --- */
.text-success {
    color: #155724 !important;
}

.text-danger {
    color: #721c24 !important;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 30px;
    /* mt-4 = margin-top 4 (aproximadamente) */
}

/* --- Estilos para Status de Pagamento --- */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.status-pago {
    background-color: #28a745;
    /* Verde */
}

.status-pendente {
    background-color: #ffc107;
    /* Amarelo */
}

/* Estilo para o botão de sucesso (Pagar) */
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Estilo para a linha da tabela quando o item está pago */
.item-pago {
    background-color: #f8f9fa;
    color: #6c757d;
}

.item-pago td {
    text-decoration: line-through;
    /* Tacha o texto do item pago */
}

/* --- Estilos para o Dashboard (Página Inicial) --- */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: #c82333;
}

.action-icon {
    font-size: 24px;
    margin-right: 15px;
}

.action-title {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.action-title {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.dashboard-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activity-feed,
.limit-alerts,
.top-products-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item,
.alert-item,
.top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child,
.alert-item:last-child,
.top-item:last-child {
    border-bottom: none;
}

.activity-text strong {
    color: #c82333;
}

.activity-value {
    font-weight: 600;
}

.alert-percent {
    font-weight: 700;
    color: #dc3545;
}

.top-count {
    font-weight: 600;
    color: #6c757d;
}

/* --- Estilos para a Página de Sucesso --- */
.success-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.btn-success {
    background-color: #25D366;
    /* Cor do WhatsApp */
    color: white;
}

.btn-success:hover {
    background-color: #1DA851;
}

.standalone-form-container {
    width: 100%;
    max-width: 450px;
    margin: 5% auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* --- Estilos para a Lista de Checkboxes de Adicionais --- */
.checkbox-list {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* Em style.css */

/* Estilos para o Modal de Adicionais */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    /* Garante que fica por cima de tudo */
    display: none;
    /* Começa escondido */
}

.modal-dialog {
    width: 100%;
    max-width: 900px;
    /* Tamanho do modal, pode ajustar */
    margin: 1.75rem auto;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

.adicionais-list-container {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
    /* Espaço para a barra de scroll */
}

/* Para melhorar a aparência dos itens na lista de adicionais */
.adicionais-list-container .form-check {
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.adicionais-list-container .form-check:hover {
    background-color: #f8f9fa;
}

/* Estilos para os itens no resumo do carrinho */
.cart-item-main {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.cart-item-adicionais {
    font-size: 12px;
    color: #6c757d;
    padding-left: 10px;
}

.cart-item-adicionais span {
    display: block;
    margin-top: 2px;
}

/* --- Estilos para a Barra de Progresso de Limite --- */
.limit-bar-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.limit-bar-wrapper h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #6c757d;
}

.limit-bar-container {
    background-color: #e9ecef;
    border-radius: 20px;
    height: 25px;
    width: 100%;
    overflow: hidden;
}

.limit-bar-fill {
    height: 100%;
    background-color: #28a745;
    /* Começa verde */
    border-radius: 20px;
    transition: width 0.5s ease-in-out, background-color 0.5s ease;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 25px;
    white-space: nowrap;
}

/* Estilo para o formulário de filtro */
.filter-form {
    margin-left: auto;
    /* Empurra o formulário para a direita */
    width: 200px;
    /* Define uma largura para o seletor */
}

/* Estilo para o formulário de filtro */
.filter-form {
    margin-left: auto;
    /* Empurra o formulário para a direita */
    width: auto;
    /* Ajusta a largura automaticamente */
}

.filter-form select {
    min-width: 150px;
    /* Define uma largura mínima para os seletores */
}

/* --- Estilos para a Timeline de Histórico --- */
.timeline-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.timeline-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #c82333;
    border: 3px solid #fff;
}

.timeline-content {
    padding-left: 10px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.timeline-product {
    font-weight: 600;
    color: #343a40;
}

.timeline-value {
    font-weight: 500;
}

.timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.profile-link {
    font-size: 14px;
    color: #adb5bd;
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

.profile-link:hover {
    text-decoration: underline;
    color: #fff;
}

/* --- Estilos para a Página de Perfil com Abas --- */
.profile-container {
    max-width: 700px;
    margin: 20px auto;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: -1px;
    /* Para a borda se sobrepor */
}

.tab-link {
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: #343a40;
}

.tab-link.active {
    color: #c82333;
    border-bottom-color: #c82333;
}

.tab-content {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #e9ecef;
    border-radius: 0 8px 8px 8px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.btn-secondary {
    display: inline-block;
    width: 50%;
    text-align: center;
    text-decoration: none;
    background-color: #6c757d;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
}

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

.form-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* <-- Altere este valor para aumentar ou diminuir o espaço  entre botões */
}

.form-actions-vertical .btn {
    width: 80;
    padding-top: 8px;
    /* <-- Diminuído de 12px */
    padding-bottom: 8px;
    /* <-- Diminuído de 12px */
    font-size: 14px;
    /* <-- Adicionado para diminuir o texto */
}

.mt-2 {
    margin-top: 10px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

/* --- Estilos para a Página de Editar Produto (Layout de Colunas v2) --- */
.edit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Duas colunas de largura igual */
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}


/* Garante que a barra de pesquisa e o input dentro dela ocupem todo o espaço */
.search-bar {
    width: 100% !important;
    /* ocupa toda a largura */
    padding: 0;
    /* tira o espaço interno do container */
    border: none;
    /* não mostra borda no container */
}

.search-bar .form-control,
#adicional-search {
    width: 100% !important;
    /* expande igual Nome/Valor */
    height: 45px;
    /* altura igual */
    font-size: 16px;
    /* mesmo tamanho de texto */
    padding: 10px 12px;
    /* espaçamento interno */
    border: 1px solid #ccc;
    /* borda igual */
    border-radius: 8px;
    /* cantos arredondados */
    box-sizing: border-box;
    /* garante alinhamento certinho */
}

#adicional-search {
    width: 100%;
    height: 50px;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 8px;
}


.action-buttons-footer {
    display: flex;
    justify-content: space-between;
    /* Alinha os itens nas extremidades */
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.main-actions {
    display: flex;
    gap: 15px;
}

.action-buttons-footer .btn {
    width: auto;
    min-width: 120px;
}

/* Estilo para o botão de Excluir como um botão de "outline" */
.action-buttons-footer .btn-danger {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.action-buttons-footer .btn-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* ###################################################### */
/* ### CÓDIGO RESPONSIVO PARA MOBILE ADICIONADO ABAIXO ### */
/* ###################################################### */

/* --- BOTÃO HAMBURGER (SÓ APARECE EM MOBILE) --- */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background-color: #2c2f33;
    /* Mesma cor da sidebar */
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1002;
        transform: translateX(-100%);
        box-shadow: 5px 0px 15px rgba(0, 0, 0, 0.2);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        padding-top: 80px;
    }

    .hamburger-menu {
        display: block;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        margin-bottom: 15px;
    }

    /* Ajuste para tabelas em mobile */
    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    /* Ajustes no layout do PDV */
    .pdv-container {
        grid-template-columns: 1fr;
        /* Coluna única em mobile */
    }

    .pdv-summary-panel {
        position: static;
        /* Remove o 'sticky' em mobile */
        margin-top: 20px;
    }
}

/* Em static/css/style.css */

.company-section {
    background-color: #f9f9f9;
    /* Um fundo levemente diferente para a seção da empresa */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.company-header {
    text-align: center;
    margin-bottom: 30px;
}

.company-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c0392b;
    /* Uma cor de destaque para o nome da empresa */
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #c0392b;
}

/* Ajusta o título da categoria para ser um pouco menor que o da empresa */
.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.product-name {
    font-size: 1.1rem;
    /* Ajuste o tamanho da fonte do nome do produto se necessário */
}

/* =============================================== */
/* NOVOS ESTILOS PARA A PÁGINA DE LISTA DE PRODUTOS */
/* =============================================== */

/* Bloco principal que envolve todos os filtros */
.filters-container {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Remove a margem padrão dos grupos de botões */
.filter-buttons {
    margin-bottom: 0;
}

/* NÍVEL 1: Filtros de EMPRESA (MaxPizza, ZubDog) */
.company-filters {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.company-filters .btn-filter {
    font-size: 1.1rem;
    /* Fonte maior para destacar */
    font-weight: 600;
    /* Mais forte */
    padding: 10px 20px;
    background-color: transparent;
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    /* Remove o arredondamento para parecer aba */
}

.company-filters .btn-filter:hover {
    color: #343a40;
    background-color: #f8f9fa;
}

.company-filters .btn-filter.active {
    color: #0d6efd;
    /* Cor primária do seu site */
    border-bottom-color: #0d6efd;
    /* Linha inferior para indicar a aba ativa */
    background-color: transparent;
}


/* NÍVEL 2: Filtros de CATEGORIA */
.category-filters .btn-filter {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 6px 14px;
    font-size: 0.9rem;
    margin: 4px;
    border-radius: 20px;
    /* Formato de pílula */
    transition: all 0.2s ease-in-out;
}

.category-filters .btn-filter:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-2px);
}

.category-filters .btn-filter.active {
    background-color: #c0392b;
    /* Cor de destaque (vermelho/vinho) */
    color: #ffffff;
    border-color: #c0392b;
    font-weight: 500;
}


/* Ajuste de espaçamento geral da página */
.page-header {
    margin-bottom: 25px;
}

/* Em Front-end/static/css/style.css, adicione no final */

/* Novo container para alinhar as abas de empresa e o botão de cadastro */
.company-filters-header {
    display: flex;
    /* Ativa o modo Flexbox */
    justify-content: space-between;
    /* Joga os itens para as extremidades */
    align-items: center;
    /* Alinha verticalmente no centro */
    width: 100%;
    border-bottom: 2px solid #f0f2f5;
    /* A borda inferior que estava no .company-filters */
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* Removemos a borda da classe antiga para não duplicar */
.company-filters {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Garante que o botão não encolha em telas menores */
.company-filters-header .btn {
    white-space: nowrap;
    /* Impede que o texto do botão quebre em duas linhas */
    flex-shrink: 0;
    /* Impede que o botão seja 'esmagado' */
    margin-left: 15px;
}

/* =============================================== */
/* DESIGN DA PÁGINA DE MONTAGEM DE PIZZA (INICIAL) */
/* =============================================== */

.pizza-size-selector {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pizza-size-selector h4 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #343a40;
}

.pizza-size-selector .btn-size {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d6efd;
    background-color: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.pizza-size-selector .btn-size:hover {
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* estado inicial: escondido */
.modal-overlay {
    display: none;
    /* some da tela */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* quando o JS adiciona .visible, mostra */
.modal-overlay.visible {
    display: flex;
}


/* --- NOVO DESIGN PARA O RESUMO DO CONSUMO (CARRINHO) --- */

.selected-products-list {
    min-height: 100px;
    max-height: 280px;
    /* Um pouco mais de espaço */
    overflow-y: auto;
    padding: 5px;
    margin: -5px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Alinha pelo topo */
    padding: 15px 5px;
    border-bottom: 1px solid #f0f2f5;
}

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

.item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-right: 10px;
}

.item-info .item-name {
    font-weight: 600;
    color: #343a40;
}

.item-info .cart-item-adicionais {
    font-size: 13px;
    color: #6c757d;
}

.item-info .cart-item-adicionais span {
    display: block;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #dee2e6;
}

.quantity-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item .item-price {
    font-weight: 600;
    color: #343a40;
    min-width: 70px;
    text-align: right;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: #dc3545;
}

/* Garante que a sidebar ocupe toda a altura da tela e organiza os itens em coluna */
.sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Viewport Height - Faz a sidebar ter no mínimo 100% da altura da tela */
}

/* Esta é a "mágica": empurra o rodapé para o final do container flex */
.sidebar-footer {
    margin-top: auto;
    /* A mágica acontece aqui! */
    padding: 20px;
    /* Adiciona um espaçamento interno para não ficar colado na borda */
    border-top: 1px solid #e0e0e0;
    /* Opcional: adiciona uma linha para separar o rodapé */
}

/* Estilo para o link de logout dentro do rodapé */
.sidebar-footer a {
    display: block;
    /* Faz o link ocupar toda a largura da div */
    text-align: center;
    /* Centraliza o texto */
    color: #888;
    /* Opcional: uma cor mais suave para o logout */
    text-decoration: none;
    font-weight: bold;
}

.sidebar-footer a:hover {
    color: #d9534f;
    /* Opcional: muda para uma cor de "perigo/saída" ao passar o mouse */
}

/* =================================================================== */

/* ### PÁGINA PDV (VENDA RÁPIDA) ### */

/* =================================================================== */

.pdv-container {

    display: grid;

    grid-template-columns: 1fr 400px;

    gap: 30px;

    align-items: flex-start;

}

.pdv-products-panel {

    background-color: #fff;

    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    padding: 20px;

    border: 1px solid #e9ecef;

}

.product-filters {

    display: flex;

    flex-wrap: wrap;

    gap: 1rem;

    align-items: center;

    margin-bottom: 1.5rem;

    border-bottom: 1px solid #e9ecef;

    padding-bottom: 1.5rem;

}

.filter-search {

    flex-grow: 1;

    min-width: 250px;

}

.filter-categories .btn-group {

    display: flex;

    flex-wrap: wrap;

    gap: 0.5rem;

}

.btn-filter {

    padding: 0.5rem 1rem;

    border-radius: 20px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 500;

    transition: all 0.3s ease;

    border: 1px solid #ddd;

    width: auto !important;

    flex-shrink: 0;

}

.btn-filter:hover {

    background-color: #e0e0e0;

    border-color: #ccc;

}

.btn-filter.active {

    background-color: #ff6347;
    /* Cor principal */

    color: white;

    border-color: #ff6347;

    font-weight: 600;

}

.pdv-product-list {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));

    gap: 15px;

    max-height: 60vh;

    overflow-y: auto;

    padding-right: 10px;

}

.pdv-product-item {

    background-color: #fff;

    padding: 15px;

    border-radius: 6px;

    border: 1px solid #e0e0e0;

    cursor: pointer;

    transition: all 0.2s ease;

    text-align: center;

}

.pdv-product-item:hover {

    transform: translateY(-3px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

    border-color: #ff6347;

}

.pdv-product-item .product-name {

    font-weight: 600;

    display: block;

    margin-bottom: 5px;

}

.pdv-product-item .product-price {

    font-weight: 700;

    color: #ff6347;

}

.pdv-summary-panel {

    background-color: #fff;

    border-radius: 8px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

    padding: 25px;

    border: 1px solid #e9ecef;

    position: sticky;

    top: 30px;

}

.summary-title {

    font-size: 20px;

    margin-top: 0;

    text-align: center;

    color: #495057;

}

.selected-products-list {

    min-height: 100px;

    max-height: 250px;

    overflow-y: auto;

    border-bottom: 1px solid #e9ecef;

    padding-bottom: 10px;

    margin-bottom: 10px;

}

.empty-cart-message {

    text-align: center;

    color: #888;

    padding: 30px 0;

}

.summary-total,
.summary-total-per-person {

    display: flex;

    justify-content: space-between;

    font-size: 18px;

    font-weight: bold;

    margin-top: 10px;

    color: #343a40;

}

.divide-btn {

    display: block;

    text-align: center;

    text-decoration: none;

    color: #007bff;

    font-size: 14px;

    margin-top: -10px;

}

.divide-btn:hover {
    text-decoration: underline;
}

.multi-select-funcionarios {

    border: 1px solid #e9ecef;

    border-radius: 6px;

    padding: 10px;

    margin-top: 10px;

}

/* =================================================================== */
/* ### DESIGN DO MODAL DE MONTAGEM DE PIZZA ### */
/* =================================================================== */
.pizza-builder-container {
    display: flex;
    gap: 25px;
    height: 65vh;
}

.builder-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.builder-summary {
    flex-basis: 280px;
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.builder-summary h5 {
    margin-top: 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    color: #343a40;
}

#pizza-summary-details {
    flex-grow: 1;
    overflow-y: auto;
    padding-top: 10px;
}

.builder-summary .summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.builder-nav {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    flex-shrink: 0;
}

.nav-tab {
    display: inline-block;
    width: auto;
    flex-grow: 1;
    text-align: center;
    padding: 12px 15px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #343a40;
    background-color: #f8f9fa;
}

.nav-tab.active {
    color: #ff6347;
    border-bottom-color: #ff6347;
}

.builder-content {
    flex-grow: 1;
    position: relative;
    padding-top: 15px;
    overflow: hidden;
}

.builder-view {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
}

.builder-view.active {
    display: flex;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 5px;
    flex-grow: 1;
    flex-grow: 0;
    /* Impede que APENAS a grade de adicionais cresça para preencher o espaço */

}

.options-grid.single-column {
    grid-template-columns: 1fr;
}

.option-card {
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    position: relative;
}

.option-card:hover {
    border-color: #86b7fe;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.option-card input {
    display: none;
}

.option-card .option-label {
    display: block;
    padding: 15px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.option-card input:checked+.option-label {
    border: 2px solid #0d6efd;
    background-color: #e7f1ff;
    padding: 14px;
}

.option-card input:checked+.option-label .option-name {
    font-weight: 600;
    color: #0d6efd;
}

.option-name {
    display: block;
    margin-bottom: 5px;
    color: #343a40;
    font-size: 0.95rem;
}

.option-price {
    display: block;
    font-size: 0.9rem;
    color: #c0392b;
    font-weight: bold;
}


/* =============================================== */
/* ### ESTILOS PARA FORMULÁRIOS AVANÇADOS ### */
/* =============================================== */

.form-container-large {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-section-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* --- Wrapper para o campo de senha --- */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #888;
}

/* --- Switch para Admin --- */
.form-group-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.switch-label {
    font-weight: 600;
    color: #495057;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #28a745;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* --- Botões de Ação do Formulário --- */
.form-actions-vertical .btn.btn-primary,
.form-actions-vertical .btn.btn-secondary {
    width: 89%;
    padding-top: 08px;
    /* <-- Ajuste o preenchimento aqui */
    padding-bottom: 8px;
    /* <-- Ajuste o preenchimento aqui */
    font-size: 14px;
    /* <-- Ajuste a fonte aqui */
}

.form-actions .btn {
    min-width: 120px;
}

/* =============================================== */
/* ### PÁGINA DE LOGIN (TEMA ESCURO) ### */
/* =============================================== */

.login-page-body {
    background-color: #1f1f2e;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.login-card {
    display: flex;
    background-color: #2c2c3e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Painel da Esquerda (Marca) */
.login-branding-panel {
    background: linear-gradient(135deg, #ff6347, #ff4500);
    color: #fff;
    padding: 60px 40px;
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.login-branding-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.login-branding-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Painel da Direita (Formulário) */
.login-form-panel {
    padding: 50px 40px;
    width: 55%;
    color: #e0e0e0;
}

.login-form-panel h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: #888;
}

.input-wrapper input {
    width: 83%;
    padding: 15px 15px 15px 50px;
    /* Espaço para o ícone */
    border: 1px solid #444;
    border-radius: 10px;
    background-color: #1f1f2e;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #ff6347;
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.2);
}

/* Ajusta o ícone de mostrar senha */
.input-wrapper .password-toggle-icon {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background: #ff6347;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: #ff5733;
    transform: translateY(-2px);
}

.login-footer-links {
    text-align: center;
    margin-top: 25px;
    color: #aaa;
}

.login-footer-links a {
    color: #ff6347;
    text-decoration: none;
    font-weight: 600;
}

/* Estilo para as mensagens flash na tela de login */
.flash-message.login-flash {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-branding-panel,
    .login-form-panel {
        width: 100%;
    }

    .login-branding-panel {
        padding: 40px 20px;
    }
}

/* =============================================== */
/* ### PÁGINA DE PERFIL ### */
/* =============================================== */

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: flex-start;
}

/* Coluna Esquerda */
.profile-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6347, #ff4500);
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.profile-name {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.profile-email {
    font-size: 1rem;
    color: #888;
    margin-top: 5px;
}

/* Coluna Direita */
.profile-forms {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* Para o border-radius funcionar com as abas */
}

.tab-nav {
    display: flex;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.tab-link {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    color: #333;
}

.tab-link.active {
    color: #ff6347;
    border-bottom-color: #ff6347;
}

.tab-pane {
    padding: 30px;
    display: none;
}

.tab-pane.active {
    display: block;
}

.profile-forms .form-actions {
    border-top: none;
    padding-top: 10px;
}

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================== */
/* ### PÁGINA DE GERENCIAR FUNCIONÁRIOS ### */
/* =================================================================== */

:root {
    --color-green: #28a745;
    --color-yellow: #ffc107;
    --color-red: #dc3545;
}

.page-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 250px;
}

.table-container-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.user-table tbody tr:last-child td {
    border-bottom: none;
}

.user-table thead th {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-table tbody tr:hover {
    background-color: #f9f9f9;
}

.user-info-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff6347;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.user-name-link {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.user-name-link:hover {
    text-decoration: underline;
}

.user-email-muted {
    font-size: 0.9rem;
    color: #999;
}

.balance-cell span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.progress-bar-container {
    width: 100%;
    min-width: 120px;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.action-buttons .action-btn i {
    font-size: 0.75rem;
}

.action-btn.btn-edit {
    background-color: #007bff;
}

.action-btn.btn-edit:hover {
    background-color: #0056b3;
}

.action-btn.btn-delete {
    background-color: #dc3545;
}

.action-btn.btn-delete:hover {
    background-color: #c82333;
}

.empty-list-message {
    padding: 40px;
    text-align: center;
    color: #888;
}

/* Regras de cor para a barra de progresso baseadas no atributo data-color */
.progress-bar-fill[data-color="green"] {
    background-color: #28a745;
    /* Cor verde */
}

.progress-bar-fill[data-color="yellow"] {
    background-color: #ffc107;
    /* Cor amarela */
}

.progress-bar-fill[data-color="red"] {
    background-color: #dc3545;
    /* Cor vermelha */
}

/* Estilo para o bloco de instruções nos formulários */
.form-instructions .text-muted {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #888;
}

/* =================================================================== */
/* ### PÁGINA DE GESTÃO (CATEGORIAS, ADICIONAIS, ETC.) ### */
/* =================================================================== */

.management-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: flex-start;
}

.form-card,
.list-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.list-card h3,
.form-card h3 {
    margin-top: 0;
    color: #333;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-name {
    font-weight: 600;
    color: #333;
}

.category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    color: #fff;
    background-color: #6c757d;
    /* Cor padrão */
    text-transform: uppercase;
    width: fit-content;
}

/* Cores específicas para as empresas */
.category-badge[data-empresa="MaxPizza"] {
    background-color: #c82333;
}

.category-badge[data-empresa="ZubDog"] {
    background-color: #007bff;
}

.action-btn-sm {
    padding: 8px 10px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: transparent;
    color: #888;
    transition: all 0.2s;
}

.action-btn-sm:hover {
    color: #fff;
}

.action-btn-sm.edit-btn:hover {
    background-color: #007bff;
}

.action-btn-sm.delete-btn:hover {
    background-color: #dc3545;
}

@media(max-width: 992px) {
    .management-grid {
        grid-template-columns: 1fr;
    }
}

/* Adicione ao final da seção de PÁGINA DE GESTÃO */

.addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.addon-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.addon-name {
    font-weight: 600;
    color: #333;
}

.addon-price {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
}

.addon-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilo para o grid de preços no formulário de produto */
.form-grid-precos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* =================================================================== */
/* ### AJUSTES FINOS PARA PÁGINA DE CADASTRO DE PRODUTO ### */
/* =================================================================== */

/* Melhora o visual das abas para ficarem consistentes com a página de perfil */
#manual,
#import {
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Garante que o conteúdo das abas ocupe o espaço corretamente */
.tab-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-top: 0;
}

/* Melhora o espaçamento da grid de duas colunas do formulário */
.edit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /* Adiciona um espaçamento moderno e limpo */
}

/* Estiliza o botão de upload de arquivo para ser mais elegante */
.file-input-wrapper {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.file-input-wrapper input[type="file"] {
    display: none;
    /* Esconde o botão padrão feio */
}

.btn-file-input {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-file-input:hover {
    background-color: #e0e0e0;
}

#file-name-display {
    font-style: italic;
    color: #888;
}

/* Remove a margem extra do botão de submit na aba de importação */
.btn-submit.mt-2 {
    margin-top: 1rem;
}

/* Garante que o h3 dentro da aba de importação tenha margem */
.import-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* =================================================================== */
/* ### PÁGINA DE CONSUMO PIZZARIA (Layout Corrigido) ### */
/* =================================================================== */

.size-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btn-size {
    padding: 10px 18px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #f7f7f7;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-size:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

.pdv-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 25vh;
    overflow-y: auto;
    padding: 5px;
}

.pdv-product-item.simple-product-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdv-product-item.simple-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pdv-product-item .product-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.pdv-product-item .product-price {
    font-size: 0.9rem;
    color: var(--color-green);
    font-weight: bold;
}

.selected-products-list {
    min-height: 150px;
    max-height: 35vh;
    overflow-y: auto;
    padding-right: 10px;
}

.divide-btn {
    display: block;
    text-align: center;
    color: #007bff;
    font-size: 0.9rem;
    margin-top: -10px;
    text-decoration: none;
}

.divide-btn:hover {
    text-decoration: underline;
}

/* Estilos para os itens no carrinho */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.item-info {
    flex-grow: 1;
    margin-right: 10px;
}

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

.cart-item-adicionais {
    font-size: 0.8rem;
    color: #888;
    margin-top: 3px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
}

.quantity-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.item-price {
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}

.remove-item-btn:hover {
    color: #dc3545;
}

/* Container para a lista de funcionários */
.multi-select-funcionarios {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Espaço entre os itens da lista */
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 200px;
    /* Altura máxima com barra de rolagem */
    overflow-y: auto;
}

/* Título dentro do container */
.multi-select-funcionarios p {
    font-size: 0.9em;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    /* Reduz o espaço inferior */
}

/* Estilo para cada item da lista (label) */
.multi-select-funcionarios .list-item {
    display: block;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

/* Estilo do conteúdo do item */
.multi-select-funcionarios .item-content {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    /* Reduz o padding para um design mais compacto */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
    /* Fonte um pouco menor */
    color: #495057;
}

/* Efeito de hover */
.multi-select-funcionarios .list-item:hover .item-content {
    background-color: #e9ecef;
    border-color: #0d6efd;
}

/* Container para a lista de funcionários (NOVO LAYOUT DE GRID) */
.multi-select-funcionarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Divide em 2 colunas de largura igual */
    gap: 8px;
    /* Espaço entre os itens da lista */
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
}

/* O resto do CSS para os itens da lista permanece o mesmo */
.multi-select-funcionarios p {
    grid-column: 1 / -1;
    /* Faz o título ocupar todas as colunas */
    font-size: 0.9em;
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
}

.multi-select-funcionarios .list-item {
    display: block;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.multi-select-funcionarios .item-content {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
    color: #495057;
}

.multi-select-funcionarios .list-item:hover .item-content {
    background-color: #e9ecef;
    border-color: #0d6efd;
}

.multi-select-funcionarios .item-content::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.multi-select-funcionarios .hidden-checkbox:checked+.item-content {
    background-color: #d4edda;
    border-color: #28a745;
}

.multi-select-funcionarios .hidden-checkbox:checked+.item-content::before {
    border-color: #28a745;
    background-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.753l-3.59 3.617-1.542-1.542.707-.707 1.285 1.292 2.885-2.906.707.707z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.hidden-checkbox {
    display: none;
}

/* estilo para mostrar desconto pagina venda rapida zubdog*/
.item-discount {
    color: #28a745;
    /* Cor verde para destacar o desconto */
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 10px;
}

/* Container do formulário de busca */
.search-form-container {
    display: flex;
    /* Permite alinhar o input */
    align-items: center;
    /* Centraliza verticalmente o input */
    gap: 10px;
    /* Espaço entre o input e qualquer possível botão */
    margin-bottom: 20px;
    /* Espaço abaixo da barra de busca */
    max-width: 400px;
    /* Limita a largura máxima da barra de busca */
}

/* Estilo para o campo de input */
#product-search-input {
    flex-grow: 1;
    /* Permite que o input cresça para ocupar o espaço disponível */
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    /* Bordas levemente arredondadas */
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

#product-search-input::placeholder {
    color: #6c757d;
}

#product-search-input:focus {
    border-color: #007bff;
    /* Cor da borda ao focar */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    /* Sombra ao focar */
    outline: none;
    /* Remove outline padrão */
}

/* Ajustes para o alinhamento da empresa e botão "Cadastrar Novo Produto" */
.company-filters-header {
    display: flex;
    justify-content: space-between;
    /* Espalha os itens horizontalmente */
    align-items: center;
    /* Alinha verticalmente */
    flex-wrap: wrap;
    /* Permite quebrar linha em telas menores */
    margin-bottom: 20px;
    /* Espaço abaixo deste container */
    gap: 15px;
    /* Espaço entre os itens */
}

/* Ajusta os botões de filtro de categoria */
.filter-buttons.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* Espaço entre os botões */
    margin-bottom: 20px;
    /* Espaço abaixo dos filtros de categoria */
}

/* --- Media Query para telas de até 768px de largura (Smartphones e Tablets) --- */
@media (max-width: 768px) {

    /* Layout Geral */
    body {
        font-size: 14px;
    }

    .main-container {
        flex-direction: column;
        /* Transforma o layout em uma única coluna */
    }

    .sidebar-nav {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        /* Garante que a barra lateral fique acima de todo o conteúdo */
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar-nav.active {
        transform: translateX(0);
        /* Mostra a barra lateral */
    }

    .content {
        margin-left: 0;
        padding: 15px;
        /* Reduz o padding para economizar espaço */
    }

    /* Menu Hamburguer */
    .sidebar-toggle {
        display: block;
        /* Mostra o botão de menu */
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        /* Fica acima da barra lateral */
    }

    /* Oculta a navegação padrão */
    .sidebar-nav .nav-item {
        display: block;
    }

    /* Esconde o botão de logout padrão */
    .sidebar-nav .nav-item:last-child {
        display: none;
    }

    /* Tabela de Gerenciar Funcionários */
    .management-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .management-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .management-table th,
    .management-table td {
        padding: 8px;
        /* Reduz o padding das células */
        font-size: 12px;
        white-space: nowrap;
    }

    .management-table thead {
        display: none;
        /* Oculta o cabeçalho da tabela */
    }

    .management-table tbody,
    .management-table tr,
    .management-table td {
        display: block;
        width: 100%;
    }

    .management-table tr {
        margin-bottom: 10px;
        border: 1px solid #ccc;
    }

    .management-table td {
        text-align: right;
        /* Alinha o conteúdo à direita */
        padding-left: 50%;
        /* Espaço para o cabeçalho simulado */
        position: relative;
    }

    .management-table td::before {
        content: attr(data-label);
        /* Usa o atributo data-label como cabeçalho */
        position: absolute;
        left: 6px;
        font-weight: bold;
        text-align: left;
    }

    /* Cards de Produtos Cadastrados */
    .product-grid {
        grid-template-columns: 1fr;
        /* Muda para uma única coluna */
        gap: 10px;
    }

    .product-card {
        padding: 15px;
        text-align: left;
    }

    .product-info,
    .product-price {
        text-align: left;
    }
}


/* =============================INICIO ESTILO PAGINA MOTOBYS====================================== */

/* Estilo para a seção de formulário */
.form-container {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
}

/* Estilo para a tabela de entregadores */
.management-table {
    background-color: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.management-table h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e6ed;
    margin: 0;
}

.management-table table {
    width: 100%;
    border-collapse: collapse;
}

.management-table th {
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-align: left;
    padding: 15px 25px;
    border-bottom: 2px solid #e0e6ed;
}

.management-table td {
    padding: 15px 25px;
    border-bottom: 1px solid #e0e6ed;
    color: #666;
}

/* Efeito de hover nas linhas da tabela */
.management-table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Estilo para a mensagem de lista vazia */
.management-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estilo para o cabeçalho da página */
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 20px;
}

/* Estilo para a seção de filtro */
.filter-controls {
    background-color: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-controls label {
    font-weight: 600;
    color: #555;
    margin: 0;
}

.filter-controls input[type="month"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
}

.filter-controls .btn-secondary {
    padding: 8px 15px;
}

/* --- Relatório de Pagamentos (Novo Design) --- */

/* ================================================= */
/* === ESTILO PÁGINA RELATÓRIO DE ENTREGADORES === */
/* ================================================= */

/* Container principal do relatório */
.report-container {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

/* Cabeçalho que contém as abas e o filtro */
.tabs-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 0 15px;
    /* Adiciona padding e remove o inferior para a borda colar */
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    flex-wrap: wrap;
    /* Permite que o filtro quebre a linha em telas pequenas */
    gap: 15px;
}

.tab-buttons {
    display: flex;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
    white-space: nowrap;
    /* Impede que o texto "Filtrar por Mês" quebre */
}

/* Estilo dos botões das abas */
.tab-item {
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    /* Alinha a borda do item ativo com a borda do header */
}

.tab-item:hover {
    color: #0d6efd;
}

.tab-item.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

/* Conteúdo das abas (tabelas) */
.tabs-content {
    padding: 25px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rodapé do Card com o Resumo */
.report-footer {
    padding: 15px 25px;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    text-align: right;
}

.report-summary .summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 8px;
}

.report-summary .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d6efd;
}

/* Tabela de Relatórios (sem alterações) */
.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table thead th {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.report-table tbody tr:hover {
    background-color: #f1f7ff;
}

.report-table .text-center {
    text-align: center;
    color: #6c757d;
    padding: 30px;
}


/* Responsividade */
@media (max-width: 768px) {
    .tabs-nav-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-form {
        padding-bottom: 15px;
    }
}

/* ================================================= */
/* === ESTILO PÁGINA GERENCIAR ENTREGADORES === */
/* ================================================= */

/* Container principal com layout de grid */
.management-container {
    display: grid;
    /* Define as colunas: 1 parte para o formulário, 1.8 partes para a lista */
    grid-template-columns: 1fr 1.8fr;
    gap: 25px;
    /* Espaço entre as colunas */
    align-items: start;
    /* Alinha os cards pelo topo */
}

/* Estilo base para os cards de formulário e lista */
.form-card,
.list-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Cabeçalho dos cards */
.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
}

/* Corpo dos cards */
.card-body {
    padding: 20px;
}

/* Melhorias no formulário */
.form-card .form-group {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

/* Tabela de gerenciamento */
.management-table {
    width: 100%;
    border-collapse: collapse;
}

.management-table thead th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.management-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    vertical-align: middle;
}

.management-table tbody tr:last-child td {
    border-bottom: none;
}

.management-table tbody tr:hover {
    background-color: #f1f7ff;
}

/* Ações na tabela */
.management-table .text-right {
    text-align: right;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Espaço entre o ícone e o texto */
}

/* Responsividade para telas menores */
@media (max-width: 992px) {
    .management-container {
        /* Em telas menores, volta para o layout de uma coluna */
        grid-template-columns: 1fr;
    }
}

/* Estilo para o prefixo 'R$' no campo de valor - pagina de pagamento motoboy */
.input-group {
    display: flex;
}

.input-group .input-group-text {
    padding: 6px 12px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group .form-control {
    border-radius: 0 0.25rem 0.25rem 0;
}

/* =============================FIM ESTILO PAGINA MOTOBYS====================================== */
/* ================================================= */
/* ============== ESTILO DASHBOARD V3 ============== */
/* ================================================= */

/* Fundo da página para dar contraste aos cards */
body {
    background-color: #f4f7f6;
}

.dashboard-grid {
    display: grid;
    gap: 25px;
    /* Para telas menores, 1 coluna */
    grid-template-columns: 1fr;
}

/* Em telas maiores, ativamos o layout de 3 colunas */
@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* KPIs ocupam 1 coluna cada */
.kpi-card {
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.06);
}

/* ... (estilos internos do kpi-card continuam os mesmos) ... */
.kpi-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.kpi-icon-container.bg-blue {
    background-color: #0d6efd;
}

.kpi-icon-container.bg-green {
    background-color: #198754;
}

.kpi-icon-container.bg-orange {
    background-color: #fd7e14;
}

.kpi-content .kpi-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.kpi-content .kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

/* Gráfico ocupa 2 colunas em telas grandes */
.chart-card {
    grid-column: 1 / -1;
    /* Ocupa a largura toda em telas pequenas */
}

@media (min-width: 992px) {
    .chart-card {
        grid-column: span 2;
        /* Ocupa 2 de 3 colunas em telas grandes */
    }
}

/* Novo container para empilhar os cards da direita */
.stacked-cards-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Espaço entre os cards empilhados */
}

/* Estilo base para os cards */
.dashboard-card {
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e6ed;
}

.dashboard-card .card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-card .card-body {
    padding: 20px;
    flex-grow: 1;
}

.chart-card .card-body {
    position: relative;
    height: 350px;
}

/* Estilos dos cards de lista (sem alterações) */
/* ... (debtor-list-redesigned e employee-list-redesigned) ... */
.debtor-list-redesigned {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.debtor-list-redesigned li {
    display: flex;
    flex-direction: column;
}

.debtor-name {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
}

.debtor-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-container {
    flex-grow: 1;
    background-color: #e9ecef;
    border-radius: 5px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
}

.progress-bar-fill[data-color="green"] {
    background-color: #28a745;
}

.progress-bar-fill[data-color="yellow"] {
    background-color: #ffc107;
}

.progress-bar-fill[data-color="red"] {
    background-color: #dc3545;
}

.limit-text {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    font-weight: 500;
}

.employee-list-redesigned {
    list-style: none;
    padding: 0;
    margin: 0;
}

.employee-list-redesigned li a {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid #e9ecef;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.employee-list-redesigned li:last-child a {
    border-bottom: none;
}

.employee-list-redesigned li a:hover {
    background-color: #f8f9fa;
}

.employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.employee-name {
    flex-grow: 1;
    color: #212529;
    font-weight: 500;
}

.employee-list-redesigned svg {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.employee-list-redesigned li a:hover svg {
    transform: translateX(4px);
    color: #0d6efd;
}

/* ================================================= */
/* ========= ESTILO PÁGINA PERFIL FUNCIONÁRIO ====== */
/* ================================================= */

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 25px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-name h1 {
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    color: #212529;
}

.profile-name span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Header do card de histórico, com controles */
.card-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e6ed;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header-controls h3 {
    margin: 0;
}

.controls-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls-container .filter-form {
    display: flex;
    gap: 10px;
}

/* Badges de Status (Pago/Pendente) */
.status-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.status-pago {
    background-color: #28a745;
}

.status-pendente {
    background-color: #ffc107;
    color: #212529;
}

.actions-cell {
    text-align: center;
    white-space: nowrap;
}
/* Ajustes para o botão "Voltar" na página de perfil */
.profile-actions {
    display: flex; /* Garante que os itens dentro possam ser alinhados */
    align-items: center; /* Alinha verticalmente */
    flex-shrink: 0; /* Impede que o container do botão encolha */
}

.btn-fixed-width {
    min-width: 100px; /* Define uma largura mínima para o botão */
    padding: 8px 15px; /* Ajusta o padding para um tamanho agradável */
    font-size: 0.9rem; /* Garante um tamanho de fonte consistente */
    text-align: center; /* Centraliza o texto no botão */
}   

/* Estilos para o novo formulário de filtro por período pagamento entregadores*/ 
.filter-form-range {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-form-range .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-form-range .form-label {
    margin-bottom: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================= */
/* === NOVO LAYOUT PDV - PIZZARIA (ESTILO LIMPO E MODERNO) === */
/* ============================================================= */

/* 1. Container Principal da Página */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px; /* Esquerda Flexível | Direita Fixa */
    gap: 30px;
    padding: 20px;
    height: calc(100vh - 80px); /* Altura da tela menos o header */
    box-sizing: border-box;
}

/* 2. Área de Seleção de Tamanhos (Esquerda) */
.pos-selection-area {
    display: flex;
    flex-direction: column;
}

.pos-header-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Card de Tamanho de Pizza */
.size-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.size-card:hover {
    border-color: #e74c3c; /* Vermelho Pizza */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.15);
}

.size-card svg {
    width: 60px;
    height: 60px;
    fill: #ff6b6b;
    margin-bottom: 10px;
}

.size-card h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.size-card span {
    color: #888;
    font-size: 0.9rem;
}

/* 3. Área do Carrinho/Resumo (Direita) */
.pos-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.sidebar-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: #333;
}

.cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.cart-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ============================================================= */
/* === NOVO MODAL DE MONTAGEM (ESTILO OVERLAY CHEIO) === */
/* ============================================================= */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); /* Efeito de desfoque no fundo */
}

.modal-overlay.visible {
    display: flex;
}

.modal-container-modern {
    background: white;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 280px 1fr 300px; /* Menu Lateral | Conteúdo Central | Resumo */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Coluna 1: Menu de Navegação (Abas Verticais) */
.modal-nav-col {
    background: #f1f3f5;
    padding: 20px;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-pill {
    padding: 15px;
    border-radius: 8px;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.nav-pill:hover { background: #e9ecef; }
.nav-pill.active {
    background: white;
    color: #e74c3c;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Coluna 2: Área de Escolha (Central) */
.modal-content-col {
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para o scroll interno */
}

.search-sticky {
    margin-bottom: 20px;
}
.search-sticky input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
}
.search-sticky input:focus {
    border-color: #e74c3c;
    outline: none;
}

.options-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-bottom: 20px;
}

.grid-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* Card de Opção (Sabor/Borda) */
.option-card-modern {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.option-card-modern:hover { border-color: #e74c3c; transform: translateY(-3px); }
.option-card-modern.selected {
    border: 2px solid #e74c3c;
    background: #fff5f5;
}
.option-card-modern input { display: none; } /* Esconde checkbox */

/* Coluna 3: Resumo (Direita) */
.modal-summary-col {
    background: #fff;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.summary-header {
    padding: 20px;
    background: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.summary-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.btn-add-cart {
    width: 100%;
    padding: 15px;
    background: #27ae60; /* Verde Sucesso */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
}
.btn-add-cart:hover { background: #219150; }

/* Mobile */
@media (max-width: 900px) {
    .pos-layout { grid-template-columns: 1fr; height: auto; }
    .modal-container-modern { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; height: 95vh; }
    .modal-nav-col { flex-direction: row; overflow-x: auto; padding: 10px; }
    .modal-summary-col { display: none; /* Esconder resumo em mobile ou adaptar */ }
}
.size-card svg {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 15px;
    display: block;
    fill: #ff6b6b; /* Cor do ícone */
}

/* Garante que o card não estoure a tela */
.size-card {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Organiza o grid para não ficar um bloco só */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Cria colunas automaticamente */
    gap: 20px;
    width: 100%;
}


/* --- MODAL DE PIZZA MODERNO --- */
#pizza-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Inicia escondido */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#pizza-modal-overlay.visible {
    display: flex !important; /* Mostra quando tem a classe visible */
}

.modal-container-modern {
    display: grid !important;
    grid-template-columns: 220px 1fr 320px; /* Nav | Conteúdo | Resumo */
    background: #fff;
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Coluna de Navegação (Esquerda) */
.modal-nav-col {
    background: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-pill {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.nav-pill.active {
    background: #ff6347; /* Cor Laranja/Vermelho */
    color: white;
}

/* Coluna Central de Conteúdo */
/* Container Principal do Modal */
.modal-container-modern {
    display: grid !important;
    grid-template-columns: 220px 1fr 300px; /* Define as 3 colunas fixas */
    grid-template-rows: 1fr; /* Ocupa a altura total */
    background: #fff;
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    border-radius: 12px;
    overflow: hidden; /* Impede que a busca "vaze" */
    position: relative;
}

/* Coluna Central (Onde fica a busca e as opções) */
.modal-content-col {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #eee;
    height: 100%;
    position: relative; /* Necessário para conter a busca sticky */
}

/* Barra de Pesquisa Ajustada */
.search-sticky {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    width: 100%; /* Agora ela respeita apenas a largura da coluna do meio */
    box-sizing: border-box;
}

.search-sticky input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px; /* Deixa ela mais elegante */
    outline: none;
}

/* Área onde aparecem os sabores/cards */
.options-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Grid de sabores/opções */
.grid-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    pointer-events: auto !important; /* Garante que os cliques funcionem */
}

.builder-view {
    display: none; /* Esconde todas as abas */
    flex-direction: column;
    height: 100%;
}

.builder-view.active {
    display: flex; /* Mostra apenas a ativa */
}

.search-sticky {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.search-sticky input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.search-sticky input:focus {
    border-color: #ff6347;
}

.options-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.grid-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* Coluna de Resumo (Direita) */
.modal-summary-col {
    background: #f1f3f5;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.summary-header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.summary-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.btn-add-cart {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Estilização dos Cards de KPI */
.kpi-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 12px;
}
.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Gráfico */
.chart-card {
    min-height: 400px;
}

/* Barras de Progresso Dinâmicas */
.progress-bar-container {
    background-color: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Cores baseadas no atributo data-color */
.progress-bar-fill[data-color="green"] { background: linear-gradient(90deg, #10b981, #34d399); }
.progress-bar-fill[data-color="yellow"] { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.progress-bar-fill[data-color="red"] { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Lista de Funcionários */
.employee-list-redesigned li a {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.employee-list-redesigned li a:hover {
    background-color: #f8fafc;
}