/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #cccccc54;
    color: #1e1e1e;
    line-height: 1.6;
    padding: 20px;
    
}

/* Títulos */
h1, h2, h3, h4, h5 {
    color: #1e1e1e;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Botões */
button, .btn {
    background-color: #a6580d;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #8f4c0c;
}
.table-responsive {
    zoom: 0.8;
}
.dashboard-content{
     zoom: 0.8;
}
/* Botão claro */
.btn-light {
    background-color: #ffffff;
    color: #a6580d;
    border: 2px solid #a6580d;
}

.btn-light:hover {
    background-color: #a6580d;
    color: #ffffff;
}

/* Containers principais */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Blocos de conteúdo */
.card {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Destaques com fundo marrom */
.card-highlight {
    background-color: #a6580d;
    color: #ffffff;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    /*padding: 10px;
    margin: 8px 0 16px 0;*/
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Seções cinza */
.section-gray {
    background-color: #f5f5f5;
    padding: 40px 20px;
}

/* Texto centralizado */
.text-center {
    text-align: center;
}

/* Cards de opção (como os da segunda imagem) */
.option-card {
    border: 2px solid transparent;
    border-left: 5px solid #a6580d;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #1e1e1e;
}

.option-card:hover {
    border-left-color: #8f4c0c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.option-card.red {
    border-left-color: #d32f2f;
    color: #d32f2f;
}

.option-card.blue {
    border-left-color: #1976d2;
    color: #1976d2;
}

/* Título dentro do card */
.option-card .title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ícone ou botão no lado direito */
.option-card .icon {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.option-card:hover .icon {
    color: #666;
}


/*novo CSS view vendas modal de confirmação*/

/* Adicione este CSS ao seu arquivo de estilos ou na seção <style> da view */

.status-select {
    border: 2px solid transparent;
    transition: all 0.3s ease;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.status-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.status-select.status-updating {
    border-color: #ffc107;
    background-color: #fff8e1;
}

/* Animação para o modal */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Estilo para os alertas de feedback */
.alert {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loader para o botão de confirmação */
.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   MÓDULO FINANCEIRO - ESTILOS BASE
   ============================================= */

/* Stat Cards (Cards de Estatísticas) */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card-danger {
    border-left: 4px solid #dc3545;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.75rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Badge de Cliente Inativo */
.badge-danger-inactive {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    width: fit-content;
}

/* Badge de Cliente Crítico */
.badge-danger-critical {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #b71c1c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    width: fit-content;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Client Info Column */
.client-info-column {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.client-info-with-badge {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Badge Days Critical */
.badge-danger-days.badge-critical {
    background: #b71c1c;
    animation: pulse 2s infinite;
}

/* Filter Separator */
.filter-separator {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
}

/* Documento Card (Relatório Cliente) */
.documento-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.documento-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.documento-card i {
    font-size: 2rem;
    color: #0d6efd;
}

/* Quick Stats Clickable */
.quick-stat-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-stat-clickable:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.quick-stat-danger {
    background: #ffebee;
}

.quick-stat-danger:hover {
    background: #ffcdd2;
}

.quick-stat-details {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
}

.quick-stat-details .badge {
    font-size: 0.65rem;
}

/* KPI Card Clickable */
.kpi-card-clickable {
    cursor: pointer;
}

.kpi-card-clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.kpi-card-danger {
    border-left: 4px solid #b71c1c;
}

/* Linhas de tabela com status */
tr[data-marcado="1"] {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Tabela cabeçalho vermelho (clientes críticos) */
.table-danger th {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Responsividade Módulo Financeiro */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .quick-stat-item {
        min-width: 120px;
    }
}

/* =============================================
   CARDS DE FAIXA DE ATRASO - BASE
   ============================================= */

.faixa-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faixa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.faixa-card-info { border-left: 4px solid #17a2b8; }
.faixa-card-warning { border-left: 4px solid #ffc107; }
.faixa-card-danger { border-left: 4px solid #dc3545; }
.faixa-card-dark { border-left: 4px solid #343a40; }

.faixa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.faixa-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.faixa-icon i {
    font-size: 1.25rem;
}

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

.faixa-label {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

.faixa-descricao {
    font-size: 0.75rem;
    color: #6c757d;
}

.faixa-body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.faixa-stat {
    display: flex;
    flex-direction: column;
}

.faixa-quantidade {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.faixa-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.faixa-valor {
    font-size: 1rem;
    font-weight: 600;
    color: #dc3545;
    text-align: right;
}

.faixa-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e87a21;
}

.faixa-footer i {
    transition: transform 0.2s;
}

.faixa-card:hover .faixa-footer i {
    transform: translateX(4px);
}

/* =============================================
   AÇÕES DO TELEFONE - WHATSAPP E COPIAR
   ============================================= */

.telefone-acoes {
    display: inline-flex;
    gap: 2px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.telefone-acoes:hover {
    opacity: 1;
}

.telefone-acoes .btn {
    line-height: 1;
    border-radius: 4px;
}

.telefone-acoes .btn-success {
    background-color: #25D366;
    border-color: #25D366;
}

.telefone-acoes .btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* =============================================
   RESPONSIVIDADE - FAIXAS
   ============================================= */

@media (max-width: 768px) {
    .faixa-quantidade {
        font-size: 1.5rem;
    }
    
    .faixa-icon {
        width: 40px;
        height: 40px;
    }
    
    .faixa-icon i {
        font-size: 1rem;
    }
}