/* ==========================================
   TOVLOG ENTERPRISE - DESIGN SYSTEM GLOBAL
========================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --slate: #1e293b;
    --bg-body: #f1f5f9;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --error: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --premium-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* --- RESETS E SCROLLBAR --- */
html { scrollbar-gutter: stable; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

body.bg-premium {
    background-color: var(--bg-body);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container-full { width: 100%; box-sizing: border-box; margin: 0 auto; }
.content-wrapper { padding: 10px 30px; max-width: 1800px; margin: 0 auto; }

/* ==========================================
   NAVEGAÇÃO ENTERPRISE
========================================== */
.nav-enterprise {
    box-sizing: border-box; 
    width: 98%;
    margin: 15px auto;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    height: 65px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0 30px;
}
.nav-content { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.main-logo { height: 35px; width: auto; transition: transform 0.2s ease; }
.main-logo:hover { transform: scale(1.05); }

.nav-links { flex: 1; display: flex; justify-content: center; gap: 5px; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; 
    padding: 8px 16px; border-radius: 6px; transition: 0.2s;
}
.nav-links a:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: white; background: var(--navy-light); box-shadow: inset 0 -2px 0 var(--primary); }

/* Dropdown da Navegação */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-trigger { color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 8px 16px; cursor: default; display: flex; align-items: center; gap: 5px; }
.dropdown-trigger::after { content: '▾'; font-size: 10px; }
.dropdown-content { display: none; position: absolute; background-color: var(--navy); min-width: 180px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); z-index: 1000; border-radius: 8px; top: 100%; left: 50%; transform: translateX(-50%); padding: 8px 0; border: 1px solid #334155; }
.dropdown-content a { color: #94a3b8 !important; padding: 10px 16px; font-size: 12px; display: block; background: transparent !important; }
.dropdown-content a:hover { color: white !important; background: rgba(255, 255, 255, 0.05) !important; }
.nav-dropdown:hover .dropdown-content { display: block; }
.nav-dropdown:hover .dropdown-trigger { color: white; }

.nav-actions { flex: 1; display: flex; justify-content: flex-end; }
.btn-logout { height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 700; font-size: 12px; background: #1e293b; color: #94a3b8; border: 1px solid #334155; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.btn-logout:hover { background: var(--error); color: white; border-color: #dc2626; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); transform: translateY(-1px); }

/* ==========================================
   SISTEMA DE ABAS (TABS)
========================================== */
.tab-menu { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab-btn { background: transparent; border: none; padding: 12px 20px; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; font-family: 'Inter', sans-serif;}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   CARDS E HEADERS
========================================== */
.config-card { background: white; border: 1px solid var(--border); padding: 25px; border-radius: 12px; box-shadow: var(--premium-shadow); margin-bottom: 20px; }
.header-acoes { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f1f3f5; padding-bottom: 15px; margin-bottom: 20px; }
.header-acoes h2 { margin: 0; color: var(--navy); font-size: 18px; font-weight: 700; }

/* ==========================================
   FORMULÁRIOS E INPUTS
========================================== */
label { display: block; font-size: 11px; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
input, select { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; box-sizing: border-box; background: #f8fafc; color: var(--navy); font-family: 'Inter', sans-serif; font-size: 13px; transition: 0.2s; }
input:focus, select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: white; }
input[type="checkbox"] { width: 16px !important; height: 16px !important; cursor: pointer; vertical-align: middle; accent-color: var(--primary); }

.form-container-novo { background: #f8fafc; padding: 20px; border-radius: 10px; border: 1px dashed #cbd5e1; margin-bottom: 20px; }
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 15px; }
.field-group { flex: 1; min-width: 150px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }

/* ==========================================
   BOTÕES PREMIUM
========================================== */
.btn { background: var(--primary); color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 8px; font-weight: 600; font-size: 13px; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: 'Inter', sans-serif; }
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 0 12px; height: 32px; font-size: 11px; min-width: 75px; border-radius: 6px; }
.btn-edit { background: #e0f2fe; color: #0284c7; }
.btn-edit:hover { background: #bae6fd; color: #0369a1; }
.btn-del { background: #fee2e2; color: #dc2626; }
.btn-del:hover { background: #fecaca; color: #b91c1c; }
.btn-cancel { background: white; color: var(--text-muted); border: 1px solid var(--border); }
.btn-cancel:hover { background: #f1f5f9; color: var(--navy); }
.acoes-celula { display: flex; gap: 6px; align-items: center; }

/* ==========================================
   TABELAS
========================================== */
.config-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; }
.config-table th { background: #f8fafc; color: var(--text-muted); font-size: 11px; padding: 12px 15px; text-transform: uppercase; font-weight: 700; text-align: left; border-bottom: 1px solid var(--border); letter-spacing: 0.5px; }
.config-table td { padding: 12px 15px; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: var(--navy); vertical-align: middle; }
.config-table tr:hover td { background-color: #f8fafc; }
.tabela-editando-linha td { background-color: #eff6ff !important; border-bottom: 1px solid #bfdbfe; }
.input-inline-tabela { height: 32px !important; font-size: 12px !important; border-color: #93c5fd !important; background: white !important; }

/* ==========================================
   BADGES E UTILITÁRIOS
========================================== */
.status-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-ativo { background: #dcfce7; color: #166534; }
.status-inativo { background: #fee2e2; color: #991b1b; }
.badge-turno { background: #e0f2fe; color: #0369a1; padding: 4px 8px; border-radius: 6px; font-weight: 600; font-size: 11px; }

/* Notificações */
.notificacao-toast { position: fixed; top: 20px; right: 20px; padding: 14px 24px; border-radius: 8px; color: white; font-weight: 600; font-size: 14px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: none; z-index: 9999; animation: slideIn 0.3s ease; }
.notificacao-sucesso { background-color: var(--navy); border-left: 4px solid var(--success); }
.notificacao-erro { background-color: var(--navy); border-left: 4px solid var(--error); }
.notificacao-aviso { background-color: var(--navy); border-left: 4px solid var(--warning); }


/* ==========================================
   ESTILOS ESPECÍFICOS: PÁGINA DE SLOTS (REFINADOS)
========================================== */
.control-bar { width: 96%; margin: 0 auto 25px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 16px; padding: 15px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--premium-shadow); }
.filter-group-premium { display: flex; background: #f1f5f9; padding: 6px; border-radius: 12px; gap: 4px; flex: 1; max-width: 600px; }
.filter-box-premium { flex: 1; background: white; padding: 5px 12px; border-radius: 8px; border: 1px solid transparent; transition: all 0.2s ease; }
.filter-box-premium:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.filter-box-premium label { font-size: 9px; font-weight: 700; color: var(--text-muted); margin: 0; text-transform: uppercase; }
.filter-box-premium select { border: none; height: 24px; padding: 0; font-size: 13px; font-weight: 600; color: var(--navy); background: transparent; cursor: pointer; width: 100%; }
.action-group-premium { display: flex; align-items: center; gap: 10px; }
.btn-premium-outline { background: white; border: 1px solid var(--border); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; }
.btn-premium-outline:hover { background: #f8fafc; border-color: var(--primary); color: var(--primary); }
.btn-premium-primary { background: var(--navy); color: white; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; transition: 0.2s; }
.btn-premium-primary:hover { background: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn-premium-danger {
    background: white;
    border: 1px solid #fca5a5; /* Borda vermelha clara */
    color: var(--error); /* Texto vermelho do sistema */
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-premium-danger:hover {
    background: #fef2f2; /* Fundo levemente rosado no hover */
    border-color: var(--error);
    color: #b91c1c;
}
.btn-sync-premium { background: white; border: 1px solid var(--border); width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: all 0.3s; }
.btn-sync-premium:hover { color: var(--primary); border-color: var(--primary); transform: rotate(45deg); }

.group-label { font-size: 10px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.week-selector { display: flex; align-items: center; background: #f1f5f9; padding: 4px; border-radius: 10px; border: 1px solid #e2e8f0; }
.week-display { padding: 0 20px; text-align: center; min-width: 120px; }
.btn-arrow { background: white; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: 0.2s; }
.btn-arrow:hover { background: var(--primary); color: white; }

.state-container { background: white; border-radius: 12px; overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.state-title { background: var(--slate); color: white; padding: 12px 20px; font-weight: 700; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; }
.grid-enterprise { display: grid; grid-template-columns: 180px repeat(7, 1fr); }
.header-day { padding: 15px 12px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-muted); background: #f8fafc; border-bottom: 1px solid var(--border); text-transform: uppercase; position: relative;}

.cell-sub { padding: 15px; font-weight: 700; color: var(--navy); background: #f8fafc; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; display: flex; align-items: center; }
.cell-day { padding: 10px; border-right: 1px solid #f1f5f9; border-bottom: 1px solid var(--border); min-height: 120px; background: #fafbfc; }

/* Remove a palavra HOJE, deixa só a marcação azul sutil no fundo */
.header-day.today { background: #eff6ff; color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }

/* ==========================================
   CARDS PREMIUM E MODO EDIÇÃO (MAIS RESPIRO)
========================================== */
.card-slot { 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    margin-bottom: 15px; /* Mais espaço entre os cards */
    overflow: hidden; 
    transition: all 0.2s ease; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03); 
    display: flex; 
    flex-direction: column; 
}
.card-slot:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08); 
    border-color: #cbd5e1; 
}

/* Header do Card - Empilhado (Coluna) */
.card-header-minimal { 
    background: white; 
    padding: 15px 15px 10px 15px; /* Muito mais respiro */
    border-bottom: 1px solid transparent; 
    display: flex; 
    flex-direction: column; /* Horário embaixo do nome */
    align-items: flex-start;
    gap: 4px;
}
.card-header-minimal .title { font-size: 12px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px;}
.card-header-minimal .time { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* Corpo e Métricas - Visual mais limpo sem blocos cinzas */
.card-body-metrics { padding: 5px 15px 15px 15px; flex: 1; }
.metric-pill { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.metric-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.metric-value { font-size: 15px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 6px; }

/* Painel de Regras */
.rules-panel { 
    background: #f8fafc; 
    color: var(--text-muted); 
    padding: 10px 15px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 10px; 
    font-weight: 600; 
    border-top: 1px dashed var(--border);
}
.rules-panel b { color: var(--primary); font-weight: 800; }

/* Footer (Dinheiro) */
.card-footer-price { 
    background: #fafbfc; 
    padding: 12px 15px; 
    border-top: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.price-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.price-tag { color: var(--success); font-weight: 800; font-size: 14px; }

/* Efeito Neon Modo Edição */
.input-premium { 
    border: 1px solid #bfdbfe; 
    background: #eff6ff; 
    color: var(--primary-dark); 
    padding: 6px 8px !important; 
    font-size: 14px; 
    font-weight: 800; 
    border-radius: 6px; 
    text-align: center; 
    box-sizing: border-box; 
    transition: all 0.2s; 
}
.input-premium:focus { background: white; border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }
.card-slot:has(.input-premium) { border-color: #93c5fd; box-shadow: 0 0 0 1px #93c5fd, 0 6px 10px -2px rgba(0,0,0,0.05); }
.card-slot:has(.input-premium) .card-header-minimal { background: #eff6ff; }
.card-slot:has(.input-premium) .card-footer-price { background: #eff6ff; border-top-color: #bfdbfe; }

/* ==========================================
   ESTILOS ESPECÍFICOS: RESULTADOS GARANTIDOS
========================================== */
.resultado-subpraca { background: white; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden; }
.subpraca-header { background: var(--navy); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.subpraca-header h3 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.subpraca-header .data-tag { background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.subpraca-metrics { display: flex; gap: 20px; }
.subpraca-metrics .metric { text-align: right; }
.subpraca-metrics .label { font-size: 10px; color: #cbd5e1; text-transform: uppercase; font-weight: 700; display: block; }
.subpraca-metrics .value { font-size: 16px; font-weight: 800; color: white; }

.turno-container { margin: 15px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; overflow: hidden; }
.turno-header { background: #e2e8f0; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.turno-header h4 { margin: 0; font-size: 14px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.turno-header .horario { font-size: 12px; font-weight: 600; color: var(--text-muted); background: white; padding: 2px 8px; border-radius: 4px; }
.turno-metrics { display: flex; gap: 15px; }
.turno-metric-pill { background: white; border: 1px solid #cbd5e1; padding: 6px 12px; border-radius: 6px; display: flex; flex-direction: column; align-items: flex-end; }
.turno-metric-pill .label { font-size: 9px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.turno-metric-pill .value { font-size: 14px; font-weight: 800; color: var(--primary); }

.badge-modelo { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge-agendado { background: #dbeafe; color: #1e40af; }
.badge-nuvem { background: #f1f5f9; color: #475569; }

.detalhe-aceitacao { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.detalhe-aceitacao b { color: var(--navy); }
.detalhe-aceitacao .rejeite { color: var(--error); }

.wrapper-tabela-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px; /* Altura máxima para não sumir da tela */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.tabela-full-dados {
    width: max-content; /* Força a tabela a expandir além dos 100% */
    border-collapse: separate;
    border-spacing: 0;
}

.tabela-full-dados th {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    z-index: 10;
    white-space: nowrap; /* Impede quebra de linha no cabeçalho */
    padding: 12px 15px;
}

.tabela-full-dados td {
    white-space: nowrap; /* Mantém os dados em uma linha só */
    font-size: 12px;
    padding: 8px 15px;
}

/* Cores para os status */
.status-cancelado { color: #ef4444; font-weight: bold; }
.status-entregue { color: #10b981; font-weight: bold; }



/*****************************************************
página agenda
*****************************************************/
.week-control { display: flex; align-items: center; background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 40px; }
    .week-btn { background: #f8fafc; border: none; padding: 0 15px; cursor: pointer; font-weight: bold; color: var(--navy); transition: 0.2s; height: 100%; }
    .week-btn:hover { background: #e2e8f0; }
    .week-label { padding: 0 15px; font-weight: bold; font-size: 13px; color: var(--primary); min-width: 90px; text-align: center; }
    
    .grid-metas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; text-align: center; font-size: 11px; }
    .grid-metas span { background: #f8fafc; padding: 4px; border-radius: 4px; border: 1px solid var(--border); }
    .meta-header { font-size: 9px; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 2px; }
    
    .badge-regra { background: #e0f2fe; color: #0369a1; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-align: center; display: inline-block; width: 100%; box-sizing: border-box; }
    
    .multi-select-container { position: relative; display: inline-block; }
    .multi-select-container button {
        min-width: 260px; max-width: 320px; height: 40px; padding: 0 12px; background: white; border: 1px solid var(--border);
        border-radius: 8px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
        color: var(--navy); font-family: inherit; font-size: 13px; transition: all 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .multi-select-container button:hover { border-color: var(--primary); background-color: #f8fafc; }
    .multi-select-content { 
        display: none; position: absolute; background-color: white; min-width: 100%; box-shadow: 0px 8px 16px rgba(0,0,0,0.1); 
        z-index: 1000; border-radius: 8px; padding: 8px; border: 1px solid var(--border); top: 100%; margin-top: 5px; 
        max-height: 280px; overflow-y: auto;
    }
    .multi-select-content label { display: flex; align-items: center; padding: 8px; font-size: 13px; cursor: pointer; color: var(--navy); border-radius: 4px; transition: 0.2s; }
    .multi-select-content label:hover { background-color: #f1f5f9; }
    .multi-select-content input { margin-right: 12px; accent-color: var(--primary); cursor: pointer; }
    .multi-select-content::-webkit-scrollbar { width: 6px; }
    .multi-select-content::-webkit-scrollbar-track { background: #f1f5f9; }
    .multi-select-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }


/***************************************
DIAS DA SEMANA NA CONFIGURAÇÕES BOLINHAS
***************************************/

/* Container que agrupa as bolinhas */
.dias-container {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0;
}

/* Estilo base da bolinha (inativo por padrão) */
.dia-dot {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    user-select: none;
    border: 2px solid transparent;
}

/* Estado INATIVO (Cinza) */
.dia-dot.inativo {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

/* Estado ATIVO (Verde TOVLOG) */
.dia-dot.ativo {
    background-color: #22c55e; /* Verde Sucesso */
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

/* Estilo para quando a bolinha for clicável (na edição inline) */
.dia-dot.interativo {
    cursor: pointer;
}

.dia-dot.interativo:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

/* Estilo para o Vira Dia (Destaque Laranja) */
.badge-vira-dia {
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid #fdba74;
}

/********************************************
página importação
****/

    .alerta-bloqueio { background: #fee2e2; border: 1px solid #ef4444; padding: 15px 20px; border-radius: 8px; color: #991b1b; margin-bottom: 20px; display: none; align-items: center; gap: 10px; }
    .linha-alerta td { background-color: #fffbeb !important; border-left: 3px solid #f59e0b; }
    .motivo-badge { font-size: 10px; padding: 4px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
    .m-sucesso { background: #dcfce7; color: #166534; }
    .m-aviso { background: #fef3c7; color: #b45309; }
    .m-erro { background: #fee2e2; color: #991b1b; }