/* ================== ESTILOS GERAIS ================== */
:root {
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f0f9ff;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --border-input: #cbd5e1;
    --shadow-card: 0 4px 12px rgba(15, 23, 42, .04);
    --shadow-hover: 0 8px 24px rgba(15, 23, 42, .1);
}
body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --bg-hover: #1e3a5f;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --border-input: #475569;
    --shadow-card: 0 4px 12px rgba(0,0,0,.2);
    --shadow-hover: 0 8px 24px rgba(0,0,0,.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--bg-body); color: var(--text-main); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { 
    position: fixed; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 220px; 
    background: linear-gradient(180deg, #071a3d 0%, #061b48 100%); 
    color: white; 
    padding: 15px 16px 16px;
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    overflow: visible; 
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    flex-shrink: 0;
    padding: 0 2px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.sidebar-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-brand-text strong {
    font-size: 15px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: 0.3px;
}

.sidebar-brand-text small {
    font-size: 9px;
    color: #8998b5;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-toggle { 
    background: rgba(255,255,255,0.1); 
    border: none; 
    color: #e5eaf4; 
    font-size: 18px; 
    padding: 0; 
    border-radius: 6px; 
    cursor: pointer; 
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.3s, color 0.3s, transform 0.3s; 
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.25); color: #fff; transform: scale(1.1); }

.sidebar.collapsed { width: 75px; padding: 15px 8px 16px; }
.sidebar.collapsed .sidebar-header { justify-content: center; }
.sidebar.collapsed .sidebar-brand { display: none; }

.sidebar-menu-scroll {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 2px;
}
.sidebar-menu-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-menu-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-menu-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
.sidebar-menu-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

.menu-title { color: #8492ae; font-size: 11px; font-weight: 600; letter-spacing: .5px; margin: 15px 9px 10px; white-space: nowrap; align-self: flex-start; transition: opacity 0.3s ease; }
.menu-item { height: 55px; display: flex; align-items: center; gap: 12px; padding: 0 10px; border-radius: 10px; margin-bottom: 4px; color: #e5eaf4; cursor: pointer; transition: background 0.3s, transform 0.3s ease; position: relative; overflow: hidden; width: 100%; justify-content: flex-start; }
.menu-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(37, 99, 235, 0.5), transparent); transition: width 0.3s ease; z-index: -1; }
.menu-item:hover::before { width: 100%; }
.menu-item:hover { background: rgba(255,255,255,.08); }
.menu-item.active { background: linear-gradient(90deg, rgba(37,99,235,.32), rgba(37,99,235,.12)); border-left: 3px solid #2870ff; padding-left: 9px; }
.menu-icon { width: 25px; text-align: center; font-size: 19px; flex-shrink: 0; transition: transform 0.3s ease; }
.menu-item:hover .menu-icon { transform: scale(1.2) rotate(5deg); }
.menu-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; white-space: nowrap; opacity: 1; transition: opacity 0.3s ease, transform 0.3s ease; }
.menu-text small { color: #8998b5; font-size: 11px; }

.sidebar.collapsed .menu-title, .sidebar.collapsed .menu-text { opacity: 0; transform: translateX(-20px); pointer-events: none; display: none; }
.sidebar.collapsed .menu-item { justify-content: center; padding: 0; }
.sidebar.collapsed .menu-icon { margin-right: 0; font-size: 22px; }
.sidebar.collapsed .menu-item:hover .menu-icon { transform: scale(1.3) rotate(0deg); }

.main { margin-left: 220px; padding: 28px 32px; min-height: 100vh; transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.collapsed + .main { margin-left: 75px; }
.sidebar:not(.collapsed) .menu-icon { animation: slideIn 0.4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }

/* ================== RODAPÉ USUÁRIO SIDEBAR ================== */
.sidebar-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user-wrapper {
    position: relative;
    width: 100%;
}

.sidebar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    color: #e5eaf4;
    transition: background 0.2s;
    text-align: left;
}
.sidebar-user-btn:hover { background: rgba(255,255,255,0.08); }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2463eb, #1a4fc4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.user-info-mini {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}
.user-info-mini strong {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-info-mini small {
    font-size: 11px;
    color: #8998b5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-chevron { font-size: 12px; color: #8998b5; margin-left: auto; transition: transform 0.3s ease; }

.user-empresa-mini {
    font-size: 10px;
    color: #60a5fa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.user-empresa-mini i {
    font-size: 9px;
    opacity: 0.8;
}

.sidebar.collapsed .sidebar-user-btn { justify-content: center; padding: 8px 0; }
.sidebar.collapsed .user-info-mini, .sidebar.collapsed .user-chevron { display: none; }

.sidebar-user-popover {
    position: absolute;
    bottom: 0;
    left: 100%;
    margin-left: 15px;
    width: 280px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}
.sidebar-user-wrapper.open .sidebar-user-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-user-wrapper.open .user-chevron { transform: rotate(180deg); }

.popover-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.user-avatar.large { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
.user-info-popover { display: flex; flex-direction: column; overflow: visible; width: 100%; }
.user-info-popover strong { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info-popover small { font-size: 12px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.popover-divider { height: 1px; background: #334155; margin: 12px 0; }
.popover-section { margin-bottom: 12px; }
.popover-label { display: block; font-size: 11px; font-weight: 600; color: #8998b5; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

.theme-toggle-group {
    display: flex;
    background: #1e293b;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}
.theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.theme-btn:hover { color: #e2e8f0; }
.theme-btn.active {
    background: #334155;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.popover-item:hover { background: #1e293b; }
.popover-item.text-danger { color: #ef4444; }
.popover-item.text-danger:hover { background: rgba(239, 68, 68, 0.1); }

/* ================== SELETOR DE EMPRESA ================== */
.sidebar-user-popover .company-selector {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.sidebar-user-popover .company-selector::before { display: none; }

.sidebar-user-popover .company-selector-inner .custom-select-trigger {
    background: rgba(96, 165, 250, 0.1) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    color: #60a5fa !important;
    border-radius: 6px;
    min-height: 26px !important;
    height: 26px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    display: inline-flex;
    gap: 6px;
    width: auto !important;
    max-width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
    transition: background 0.2s ease;
}
.sidebar-user-popover .company-selector-inner .custom-select-trigger:hover {
    background: rgba(96, 165, 250, 0.2) !important;
}
.sidebar-user-popover .company-selector-inner .custom-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.sidebar-user-popover .company-selector-inner .custom-select-trigger i {
    color: #60a5fa !important;
    font-size: 10px !important;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.sidebar-user-popover .company-selector-inner .custom-select.open .custom-select-trigger i {
    transform: rotate(-90deg) !important;
}

.sidebar-user-popover .company-selector-inner .custom-select-options {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    padding: 6px;
    
    top: 0 !important; 
    bottom: auto !important;
    left: calc(100% + 8px) !important; 
    right: auto !important; 
    width: 250px; 
    
    max-height: 160px; 
    overflow-y: auto;
    
    animation: fadeInRight 0.15s ease !important;
}

.sidebar-user-popover .company-selector-inner .custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.sidebar-user-popover .company-selector-inner .custom-select-options::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

@keyframes fadeInRight { 
    from { opacity: 0; transform: translateX(-5px); } 
    to { opacity: 1; transform: translateX(0); } 
}

.sidebar-user-popover .company-selector-inner .custom-option {
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    padding: 10px 12px;
}
.sidebar-user-popover .company-selector-inner .custom-option:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #ffffff;
}
.sidebar-user-popover .company-selector-inner .custom-option.selected {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
}

/* ================== HEADER ================== */
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 20px; flex-wrap: wrap; }
.header-left { display: flex; flex-direction: column; gap: 8px; }
.header h1 { font-size: 25px; color: var(--text-main); margin-bottom: 0; font-weight: 700; letter-spacing: -0.5px; }
.header-subtitle-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.subtitle { color: var(--text-secondary); font-size: 13px; display: flex; align-items: center; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #13b879; margin-right: 6px; }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* ✅ EMPRESA ATIVA NO CABEÇALHO (GRANDE) */
.empresa-ativa-header {
    display: flex;
    align-items: center;
    gap: 12px; 
    background: #eff6ff;
    border: 2px solid #bfdbfe; 
    border-radius: 10px;
    padding: 8px 16px;
    box-shadow: 0 4px 10px rgba(36, 99, 235, 0.1);
    color: #1e40af;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    max-width: 350px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: fadeInRight 0.3s ease;
}
.empresa-ativa-header i { font-size: 22px; color: #2463eb; }
body.dark-mode .empresa-ativa-header {
    background: #1e3a5f;
    border-color: #3b82f6;
    color: #93c5fd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
body.dark-mode .empresa-ativa-header i { color: #60a5fa; }

/* ✅ COMPETÊNCIA (PEQUENA E ORIGINAL) */
.competencia-header { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 4px 12px; box-shadow: 0 2px 5px rgba(0,0,0,.03); }
.competencia-header .calendar { font-size: 14px; color: #2463eb; }
body.dark-mode .competencia-header .calendar { color: #60a5fa; }
.competencia-header .competencia-text strong { display: block; font-size: 9px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.competencia-header .competencia-text span { display: block; font-size: 12px; color: var(--text-main); font-weight: 700; line-height: 1.2; }

/* ================== CARDS KPI ================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 13px; padding: 24px; min-height: 142px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.card:hover { box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.card-icon { width: 59px; height: 59px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; transition: transform 0.3s ease; }
.card-icon i { font-size: 28px; }
.blue { background: #e7f0ff; color: #2870ed; }
.green { background: #ddf7ec; color: #08aa72; }
.purple { background: #eee6ff; color: #8054e8; }
.orange { background: #fff0d8; color: #f59e0b; }
body.dark-mode .blue { background: #1e3a5f; color: #60a5fa; }
body.dark-mode .green { background: #1e3a5f; color: #34d399; }
body.dark-mode .purple { background: #1e3a5f; color: #a78bfa; }
body.dark-mode .orange { background: #1e3a5f; color: #fbbf24; }
.card-info label { color: var(--text-secondary); font-size: 13px; display: block; margin-bottom: 7px; }
.card-info strong { font-size: 24px; color: var(--text-main); letter-spacing: .2px; }

/* ================== FILTROS ================== */
.filter-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 13px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-card); transition: all 0.3s ease; position: relative; z-index: 100; }
.filter-box:hover { box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.filter-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.filter-title { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; color: var(--text-main); transition: color 0.3s ease; }
.filter-box:hover .filter-title { color: #1d4ed8; }
.filter-title-icon { color: #2463eb; font-size: 19px; }
.filter-title-icon i { font-size: 19px; }
.clear-filter { color: #2463eb; font-size: 13px; cursor: pointer; }
.clear-filter i { font-size: 13px; margin-right: 4px; }
#btn-clear-filters { display: inline-flex; align-items: center; gap: 8px; background: #f0f4ff; color: #2463eb; border: 1px solid #bfdbfe; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; user-select: none; }
body.dark-mode #btn-clear-filters { background: #1e3a5f; color: #60a5fa; border-color: #1e3a5f; }
#btn-clear-filters:hover { background: #2463eb; color: #ffffff; border-color: #2463eb; box-shadow: 0 4px 12px rgba(36, 99, 235, 0.2); transform: translateY(-1px); }
#btn-clear-filters i { font-size: 14px; transition: transform 0.4s ease; }
#btn-clear-filters:hover i { transform: rotate(180deg); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.filter-row-bottom { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto; gap: 18px; align-items: end; }
.filter-row-bottom .field { display: flex; flex-direction: column; }
.filter-row-bottom .field label { margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-row-bottom .input, .filter-row-bottom .custom-select { width: 100%; }
.filter-row-bottom .search-btn { height: 42px; min-width: 140px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.input { height: 42px; width: 100%; border: 1px solid var(--border-input); border-radius: 8px; padding: 0 12px; outline: none; color: var(--text-main); background: var(--bg-input); font-size: 13px; transition: all 0.2s; }
.input:focus { border-color: #2463eb; box-shadow: 0 0 0 3px rgba(36,99,235,.15); }
select.input { cursor: pointer; }
.search-wrapper { position: relative; }
.search-wrapper .input { padding-right: 40px; }
.search-icon { position: absolute; right: 12px; top: 12px; color: var(--text-secondary); }
.search-icon i { font-size: 16px; }
#btn-search { height: 42px; min-width: 130px; border: none; border-radius: 8px; background: linear-gradient(135deg, #2463eb 0%, #1a4fc4 100%); color: white; font-weight: 600; cursor: pointer; transition: .3s ease; box-shadow: 0 4px 10px rgba(36,99,235,.2); }
#btn-search:hover { background: linear-gradient(135deg, #1a4fc4 0%, #0d3b9e 100%); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(36,99,235,.35); }
#btn-search i { font-size: 14px; transition: transform 0.3s ease; }
#btn-search:hover i { transform: scale(1.1); }
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-top: none; max-height: 250px; overflow-y: auto; z-index: 1000; display: none; box-shadow: 0 4px 8px rgba(0,0,0,0.1); border-radius: 0 0 8px 8px; }
.autocomplete-list.active { display: block; }
.autocomplete-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid var(--border-color); font-size: 13px; transition: background 0.2s; color: var(--text-main); }
.autocomplete-item:hover { background: var(--bg-hover); }
.autocomplete-item .code { font-weight: bold; color: var(--text-main); }
.autocomplete-item .desc { color: var(--text-secondary); font-size: 12px; }

/* ================== TABELA PRINCIPAL ================== */
.results { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 0; transition: all 0.3s ease; }
.results:hover { box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.results-header { height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border-color); }
.results-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--text-main); transition: color 0.3s ease; }
.results:hover .results-title { color: #1d4ed8; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { height: 37px; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 7px; color: var(--text-secondary); cursor: pointer; width: 40px; }
.icon-btn.active { border-color: #2463eb; color: #2463eb; background: #f4f7ff; }
body.dark-mode .icon-btn.active { background: #1e3a5f; color: #60a5fa; border-color: #1e3a5f; }
.table-responsive { overflow-x: auto; }
.table-responsive table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table-responsive thead { display: table; width: 100%; table-layout: fixed; }
.table-responsive thead th { text-align: left; padding: 13px 12px; color: var(--text-secondary); font-size: 11px; font-weight: 600; border-bottom: 2px solid var(--border-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-responsive tbody { display: block; max-height: 500px; overflow-y: auto; width: 100%; }
.table-responsive tbody tr { display: table; width: 100%; table-layout: fixed; transition: background 0.2s ease; }
.table-responsive tbody tr:hover { background: var(--bg-hover); }
.table-responsive tbody td { padding: 13px 12px; color: var(--text-main); font-size: 13px; border-bottom: 1px solid var(--border-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.table-responsive th:nth-child(1), .table-responsive td:nth-child(1) { width: 11%; }
.table-responsive th:nth-child(2), .table-responsive td:nth-child(2) { width: 28%; }
.table-responsive th:nth-child(3), .table-responsive td:nth-child(3) { width: 34%; }
.table-responsive th:nth-child(4), .table-responsive td:nth-child(4) { width: 6%; }
.table-responsive th:nth-child(5), .table-responsive td:nth-child(5) { width: 4%; }
.table-responsive th:nth-child(6), .table-responsive td:nth-child(6) { width: 9%; }
.table-responsive th:nth-child(7), .table-responsive td:nth-child(7) { width: 8%; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #e1f8ee; color: #079c68; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
body.dark-mode .status { background: #1e3a5f; color: #34d399; }
.status-dot-small { width: 6px; height: 6px; background: #0ba66e; border-radius: 50%; flex-shrink: 0; }
.btn-detail { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #2463eb, #1a4fc4); color: #ffffff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 6px rgba(36, 99, 235, 0.2); white-space: nowrap; }
.btn-detail:hover { background: linear-gradient(135deg, #1a4fc4, #0d3b9e); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(36, 99, 235, 0.35); }
.btn-detail i { font-size: 13px; }
.table-footer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-top: 16px; }
.showing { font-size: 12px; color: var(--text-secondary); }
.pagination { display: flex; align-items: center; gap: 8px; }
.page-btn { width: 35px; height: 35px; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 6px; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; }
.page-btn:hover { background: var(--bg-hover); border-color: #2463eb; color: #2463eb; }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.page-indicator { padding: 0 15px; height: 35px; display: flex; align-items: center; justify-content: center; background: #2463eb; color: white; border-radius: 6px; font-size: 13px; font-weight: 600; min-width: 90px; text-align: center; }

/* ================== SEGMENTOS ================== */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.card-segmento { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 13px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.card-segmento:hover { box-shadow: var(--shadow-hover); border-color: #c7d2fe; }
.card-segmento h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-main); transition: color 0.3s ease; }
.card-segmento:hover h2 { color: #1d4ed8; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select { padding: 0.75rem 1rem; border: 1px solid var(--border-input); border-radius: 8px; font-size: 14px; color: var(--text-main); background: var(--bg-input); width: 100%; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; }
.form-group input:focus, .form-group select:focus, #segment-nome:focus, #link-cnae-select:focus { outline: none; border-color: #2463eb; box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.15); transform: translateY(-2px); }
.input-with-button { display: flex; gap: 10px; align-items: center; width: 100%; }
.input-with-button select { flex: 1; height: 46px; min-width: 0; padding: 0 12px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--bg-input); font-size: 14px; color: var(--text-main); }
.input-with-button .custom-select { flex: 1; min-width: 0; }
.input-with-button .custom-select-trigger { height: 46px; min-height: 46px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--bg-input); font-size: 14px; display: flex; align-items: center; justify-content: space-between; color: var(--text-main); }
.btn-vincular { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; background: #2463eb; color: white; border: none; border-radius: 8px; padding: 0 20px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 10px rgba(36, 99, 235, 0.2); transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; flex-shrink: 0; position: relative; overflow: hidden; }
.btn-vincular:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(36, 99, 235, 0.3); }
.btn-vincular i { transition: transform 0.4s ease; }
.btn-vincular:hover i { transform: rotate(90deg) scale(1.1); }
.helper-text { font-size: 13px; color: var(--text-secondary); }
.form-actions { display: flex; gap: 0.75rem; padding-top: 0.5rem; }
.btn-primary { background: #2463eb; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-input); padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: .2s; }
.btn-secondary:hover { background: #f5f7fa; border-color: #b0bcc9; }
body.dark-mode .btn-secondary { background: transparent; color: var(--text-main); border-color: var(--border-input); }
body.dark-mode .btn-secondary:hover { background: #334155; border-color: #475569; }
.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.table-header h2 { font-size: 20px; color: var(--text-main); margin: 0; }
.table-search { border: 2px solid var(--border-color); border-radius: 10px; padding: 12px 16px; font-size: 14px; background: var(--bg-input); width: 250px; transition: all 0.2s; color: var(--text-main); }
.table-search:focus { border-color: #2463eb; outline: none; box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.1); }
#segment-screen .table-responsive { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); }
#segment-screen .table-responsive table { width: 100%; border-collapse: separate; border-spacing: 0; display: block; }
#segment-screen .table-responsive thead { display: table; width: 100%; table-layout: fixed; position: sticky; top: 0; z-index: 20; background: #1e3a8a; }
#segment-screen .table-responsive thead th { background: #1e3a8a; color: #ffffff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 20px; text-align: left; border: none; position: sticky; top: 0; z-index: 20; white-space: nowrap; }
#segment-screen .table-responsive thead th:first-child { border-top-left-radius: 12px; }
#segment-screen .table-responsive thead th:last-child { border-top-right-radius: 12px; }
#segment-screen .table-responsive tbody { display: block; max-height: 500px; overflow-y: auto; width: 100%; }
#segment-screen .table-responsive tbody tr { transition: background 0.2s ease; display: table; width: 100%; table-layout: fixed; }
#segment-screen .table-responsive th, #segment-screen .table-responsive td { padding: 10px 12px; text-align: left; white-space: nowrap; }
#segment-screen .table-responsive td:nth-child(2) { overflow: visible; }
/* ✅ Ajuste de largura e alinhamento das colunas */
#segment-screen .table-responsive th:nth-child(1), 
#segment-screen .table-responsive td:nth-child(1) { width: 50%; }

#segment-screen .table-responsive th:nth-child(2), 
#segment-screen .table-responsive td:nth-child(2) { 
    width: 15%; 
    text-align: center !important; /* Centraliza o número */
}

#segment-screen .table-responsive th:nth-child(3), 
#segment-screen .table-responsive td:nth-child(3) { 
    width: 35%; 
    text-align: center !important; /* Centraliza os botões */
}

#segment-screen .cell-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.cnae-tooltip { position: relative; display: inline-block; cursor: help; z-index: 1; }
.cnae-tooltip.open { z-index: 2147483647; }
.tooltip-trigger { font-weight: 700; font-size: 16px; color: #2463eb; padding: 4px 10px; border-radius: 6px; background: #eff6ff; transition: all 0.2s; cursor: pointer; user-select: none; display: inline-block; }
body.dark-mode .tooltip-trigger { background: #1e3a5f; color: #60a5fa; }
.cnae-tooltip:hover .tooltip-trigger, .cnae-tooltip.open .tooltip-trigger { background: #1e3a8a; color: white; }
.cnae-tooltip-content { display: none; position: fixed !important; background: #1e3a8a; color: white; padding: 14px 18px; width: 360px; max-width: calc(100vw - 20px); max-height: 280px; overflow-y: auto; box-sizing: border-box; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); z-index: 2147483647 !important; font-size: 13px; line-height: 1.5; white-space: normal; word-break: break-word; text-align: left; }
.cnae-tooltip-content.tooltip-visible { display: block !important; }
.cnae-tooltip-content::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #1e3a8a; }
.tooltip-item { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tooltip-item:last-child { border-bottom: none; }
.tooltip-item strong { color: #93c5fd; }
#segmentosTable .btn-table { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 8px; font-weight: 600; padding: 8px 16px; position: relative; overflow: hidden; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
#segmentosTable .btn-table[data-action="edit"] { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
#segmentosTable .btn-table[data-action="edit"]:hover { background: #1d4ed8; color: #ffffff; border-color: #1d4ed8; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3); }
#segmentosTable .btn-delete { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
#segmentosTable .btn-delete:hover { background: #dc2626; color: #ffffff; border-color: #dc2626; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3); }
body.dark-mode #segmentosTable .btn-table[data-action="edit"] { background: #1e3a5f; color: #60a5fa; border-color: #1e3a5f; }
body.dark-mode #segmentosTable .btn-table[data-action="edit"]:hover { background: #2563eb; color: #ffffff; border-color: #2563eb; }
body.dark-mode #segmentosTable .btn-delete { background: #1e3a5f; color: #f87171; border-color: #1e3a5f; }
body.dark-mode #segmentosTable .btn-delete:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; }

/* ================== MODAIS ================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 20px; }
.modal-content { background: var(--bg-card); border-radius: 16px; padding: 24px; width: 100%; max-width: 600px; height: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.2); position: relative; color: var(--text-main); display: flex; flex-direction: column; border: 1px solid var(--border-color); }
.modal-content.large-modal { max-width: 900px; height: 700px; }
.modal-content.generic-content { max-width: 750px; width: 90%; padding: 30px; height: 650px; display: flex; flex-direction: column; }
.modal-content.confirm-content { max-width: 500px; text-align: center; height: auto; min-height: auto; display: block; padding: 32px 28px; }
.modal-scroll-area { flex: 1; overflow-y: auto; padding-right: 10px; margin-bottom: 20px; }
.generic-modal-list-container { flex: 1; overflow-y: auto; padding-right: 5px; margin-bottom: 20px; max-height: 60vh; }
.generic-search-box { margin-bottom: 20px; flex-shrink: 0; position: relative; }
.modal-header { flex-shrink: 0; margin-bottom: 20px; }
.modal-footer { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 15px; }
/* ============================================================
   BOTÃO DE FECHAR MODAL (ANIMAÇÃO GLOBAL)
   ============================================================ */
.close-modal { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    z-index: 9999;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    background: var(--bg-card);
    font-size: 28px; 
    font-weight: bold; 
    color: var(--text-secondary); 
    cursor: pointer; 
    line-height: 1;
    transition: color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.close-modal:hover { 
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444; 
    animation: closeSpin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.close-modal:active { 
    transform: rotate(90deg) scale(0.9); 
}

@keyframes closeSpin {
    0%   { transform: rotate(0)     scale(1); }
    100% { transform: rotate(90deg) scale(1.15); }
}
.modal-header h2 { font-size: 20px; font-weight: 600; color: var(--text-main); margin-bottom: 5px; }
.modal-header p { font-size: 13px; color: var(--text-secondary); }
.principal-card { background: #f8fafc; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
body.dark-mode .principal-card { background: #1e3a5f; border-color: #1e3a5f; }
.cnpj-label { font-size: 14px; color: var(--text-secondary); display: block; margin-bottom: 8px; font-weight: 600; }
.principal-card h3 { font-size: 18px; color: var(--text-main); margin-bottom: 5px; }
.fantasia-label { font-size: 14px; color: var(--text-secondary); display: block; margin-bottom: 15px; }
.badges { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-block; }
.badge-green { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
body.dark-mode .badge-green { background: #1e3a5f; color: #34d399; border-color: #1e3a5f; }
.badge-blue { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
body.dark-mode .badge-blue { background: #1e3a5f; color: #60a5fa; border-color: #1e3a5f; }
.badge-orange { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
body.dark-mode .badge-orange { background: #3a2410; color: #fdba74; border-color: #7c2d12; }
.badge-classificacao { font-size: 11px; letter-spacing: 0.3px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 15px; }
.info-card h4 { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.info-line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.info-line span { color: var(--text-secondary); }
.info-line strong { color: var(--text-main); text-align: right; max-width: 60%; word-break: break-word; }
.full-width { grid-column: 1 / -1; }
.footer-actions { display: flex; gap: 10px; }
.btn-light-blue { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.3s ease, box-shadow 0.3s ease; }
body.dark-mode .btn-light-blue { background: #1e3a5f; color: #60a5fa; border-color: #1e3a5f; }
.btn-light-blue:hover { background: #0ea5e9; color: #ffffff; border-color: #0ea5e9; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3); }
.btn-register { background: linear-gradient(135deg, #2463eb 0%, #1a4fc4 100%); color: white; border: 1px solid transparent; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(36, 99, 235, 0.25); }
.btn-register:hover { background: linear-gradient(135deg, #1a4fc4 0%, #0d3b9e 100%); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35); }
body.dark-mode .btn-register { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
body.dark-mode .btn-register:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); }

/* ================== CLASSIFICAÇÃO C/X ================== */
.footer-classificacao {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-classify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-classify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.btn-classify-x {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}
.btn-classify-x:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}
body.dark-mode .btn-classify-x {
    background: #3a1e1e;
    color: #f87171;
    border-color: #7f1d1d;
}
body.dark-mode .btn-classify-x:hover:not(:disabled) {
    background: #dc2626;
    color: #fff;
}

.btn-classify-activate {
    background: #e1f8ee !important;
    color: #079c68 !important;
    border-color: #bbf7d0 !important;
}
.btn-classify-activate:hover:not(:disabled) {
    background: #079c68 !important;
    color: #ffffff !important;
    border-color: #079c68 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 156, 104, 0.25);
}
body.dark-mode .btn-classify-activate {
    background: #14532d !important;
    color: #86efac !important;
    border-color: #166534 !important;
}
body.dark-mode .btn-classify-activate:hover:not(:disabled) {
    background: #166534 !important;
    color: #ffffff !important;
}

.generic-search-box input { width: 100%; padding: 14px 16px; padding-right: 45px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 15px; background: var(--bg-input); transition: all 0.2s; color: var(--text-main); }
.generic-search-box input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.generic-search-box i { font-size: 20px; color: var(--text-secondary); }
.generic-list { list-style: none; padding: 0; margin: 0; }
.generic-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 2px solid var(--border-color); border-radius: 16px; margin-bottom: 12px; background: var(--bg-card); cursor: pointer; transition: all 0.2s ease; }
.generic-card:hover { background: var(--bg-hover); border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.generic-card.selected { background: #eff6ff; border-color: #2563eb; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }
body.dark-mode .generic-card.selected { background: #1e3a5f; border-color: #2563eb; }
.card-info { display: flex; flex-direction: column; gap: 4px; flex: 1; margin-right: 15px; }
.card-sigla { font-size: 18px; font-weight: 700; color: #2563eb; letter-spacing: 0.5px; }
.card-nome { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.card-btn { background: #2563eb; color: white; border: none; padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.card-btn:hover { background: #1d4ed8; transform: scale(1.03); }

/* ============================================================
   MODAL DE AVISO / CONFIRMAÇÃO (MAIOR)
   ============================================================ */
.confirm-icon { font-size: 64px; margin-bottom: 20px; }
.confirm-icon i { font-size: 64px; }
.confirm-icon.success i { color: #10b981 !important; } /* Verde */
.confirm-icon.error i { color: #ef4444 !important; }   /* Vermelho */
.confirm-icon.warning i { color: #f59e0b !important; } /* Amarelo/Laranja */
.confirm-content h3 { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 14px; }
.confirm-content p { font-size: 16px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 28px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }
.confirm-actions .btn-primary, 
.confirm-actions .btn-secondary, 
.confirm-actions .btn-danger {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 8px;
}
.btn-danger { background: #ef4444; color: white; border: none; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-danger:hover { background: #dc2626; transform: translateY(-4px); box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3); }

/* ================== DROPDOWN ================== */
.custom-select { position: relative; width: 100%; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; border: 2px solid var(--border-color); border-radius: 10px; background: var(--bg-input); padding: 0 14px; cursor: pointer; font-size: 14px; color: var(--text-main); transition: all 0.2s; }
.custom-select-trigger:hover { background: var(--bg-hover); border-color: #cbd5e1; }
.custom-select.open .custom-select-trigger { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.custom-select-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-select-trigger i { font-size: 14px; color: var(--text-secondary); margin-left: 10px; transition: transform 0.2s; }
.custom-select.open .custom-select-trigger i { transform: rotate(180deg); }
.custom-select-options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.12); max-height: 280px; overflow-y: auto; z-index: 9999; display: none; padding: 6px; }
.custom-select.open .custom-select-options { display: block; animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.custom-option { padding: 12px 14px; border-radius: 8px; font-size: 14px; color: var(--text-main); cursor: pointer; transition: background 0.15s; }
.custom-option:hover { background: var(--bg-hover); color: #2463eb; }
.custom-option.selected { background: #eff6ff; color: #2463eb; font-weight: 600; }
body.dark-mode .custom-option.selected { background: #1e3a5f; color: #60a5fa; }
.custom-select select { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
#linked-cnae-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#linked-cnae-list .linked-item { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
body.dark-mode #linked-cnae-list .linked-item { background: #1e3a5f; border-color: #1e3a5f; color: #60a5fa; }
#linked-cnae-list .linked-item button { background: transparent; border: none; color: #ef4444; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; }
#linked-cnae-list .linked-item button:hover { background: #fee2e2; color: #b91c1c; }

/* ================== IGNORADOS ================== */
#ignorados-screen .results { margin-bottom: 0; }
#ignorados-screen .table-footer { margin-top: 16px; padding: 0 4px; min-height: 50px; display: flex; align-items: center; justify-content: flex-start; }
#ignorados-screen .table-footer .showing { font-size: 12px; color: var(--text-secondary); }
#ignorados-screen .table-responsive td { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; word-break: break-word; }
#ignorados-screen .table-responsive th:nth-child(1), #ignorados-screen .table-responsive td:nth-child(1) { width: 12%; }
#ignorados-screen .table-responsive th:nth-child(2), #ignorados-screen .table-responsive td:nth-child(2) { width: 24%; }
#ignorados-screen .table-responsive th:nth-child(3), #ignorados-screen .table-responsive td:nth-child(3) { width: 30%; }
#ignorados-screen .table-responsive th:nth-child(4), #ignorados-screen .table-responsive td:nth-child(4) { width: 7%; }
#ignorados-screen .table-responsive th:nth-child(5), #ignorados-screen .table-responsive td:nth-child(5) { width: 4%; }
#ignorados-screen .table-responsive th:nth-child(6), #ignorados-screen .table-responsive td:nth-child(6) { width: 12%; }
#ignorados-screen .table-responsive th:nth-child(7), #ignorados-screen .table-responsive td:nth-child(7) { width: 11%; }
.ignorados-header .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.ignorados-header .table-search { width: 280px; flex-shrink: 0; }

/* ===== MAPA ===== */
#map-screen {
    margin: -28px -32px;
    width: calc(100% + 64px);
    height: 100vh;
}
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
#map-screen #map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    z-index: 1;
    background: #a8d5e5;
}
body.dark-mode #map-screen #map { background: #0c2f4a; }

/* ================== SCROLLBAR ================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 10px; margin: 4px 0; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2463eb, #1a4fc4); border-radius: 10px; border: 2px solid var(--bg-input); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1a4fc4, #0d3b9e); }
* { scrollbar-width: thin; scrollbar-color: #2463eb var(--bg-input); }
body.dark-mode ::-webkit-scrollbar-track { background: #1e293b; }
body.dark-mode ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b82f6, #2563eb); border-color: #1e293b; }
body.dark-mode * { scrollbar-color: #3b82f6 #1e293b; }
.table-responsive::-webkit-scrollbar, #segment-screen .table-responsive::-webkit-scrollbar { width: 8px; height: 8px; }
.table-responsive::-webkit-scrollbar-track, #segment-screen .table-responsive::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 10px; }
.table-responsive::-webkit-scrollbar-thumb, #segment-screen .table-responsive::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #2463eb, #1a4fc4); border-radius: 10px; }
body.dark-mode .table-responsive::-webkit-scrollbar-track, body.dark-mode #segment-screen .table-responsive::-webkit-scrollbar-track { background: #1e293b; }
body.dark-mode .table-responsive::-webkit-scrollbar-thumb, body.dark-mode #segment-screen .table-responsive::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b82f6, #2563eb); }
#btn-ignore-cadastro.btn-secondary { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 8px; font-weight: 600; padding: 10px 20px; cursor: pointer; border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; font-size: 14px; }
#btn-ignore-cadastro.btn-secondary:hover { background: #dc2626; color: #ffffff; border-color: #dc2626; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3); }
body.dark-mode #btn-ignore-cadastro.btn-secondary { background: #1e3a5f; color: #f87171; border-color: #1e3a5f; }
body.dark-mode #btn-ignore-cadastro.btn-secondary:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; }

/* ================== RESPONSIVO ================== */
@media (max-width: 1200px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .filter-row-bottom { grid-template-columns: 1fr 1fr; }
    .search-btn { width: 100%; }
}
@media (max-width: 900px) {
    .header { flex-direction: column; align-items: stretch; }
    .header-right { flex-wrap: wrap; width: 100%; justify-content: flex-start; margin-top: 10px; }
    .sidebar { width: 75px; padding: 15px 8px 16px; }
    .sidebar-header { justify-content: center; }
    .sidebar-brand { display: none; }
    .sidebar .menu-title, .sidebar .menu-text { display: none; }
    .sidebar .menu-item { justify-content: center; padding: 0; }
    .sidebar-user-btn { justify-content: center; padding: 8px 0; }
    .sidebar-user-btn .user-info-mini, .sidebar-user-btn .user-chevron { display: none; }
    .main { margin-left: 75px; padding: 20px; }
    .filter-row { grid-template-columns: 1fr; }
    .filter-row-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    .cards { grid-template-columns: 1fr; }
    .results { overflow-x: auto; position: static; z-index: auto; }
    table { min-width: 900px; }
    .footer-classificacao { flex-direction: column; width: 100%; }
    .btn-classify { justify-content: center; width: 100%; }
}
@media (max-width: 768px) { #map-screen #map { height: 100%; } }
@media (min-width: 769px) and (max-width: 1366px) {
    .filter-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .filter-row-bottom { grid-template-columns: 1fr 1fr; gap: 12px; }
    .filter-row-bottom .field:nth-child(2) { grid-column: span 2; }
    .filter-row-bottom .search-btn { grid-column: span 2; width: 100%; min-width: unset; }
    .input, .custom-select-trigger { height: 38px; font-size: 13px; }
    .custom-select-trigger { min-height: 38px; padding: 0 10px; }
    .filter-box { padding: 16px; }
    .header h1 { font-size: 20px; }
    .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card { padding: 14px; min-height: 90px; }
    .card-icon { width: 40px; height: 40px; font-size: 18px; }
    .card-info strong { font-size: 18px; }
    .card-info label { font-size: 11px; }
    .table-responsive th, .table-responsive td { padding: 6px 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .table-responsive th:nth-child(1), .table-responsive td:nth-child(1) { width: 10%; }
    .table-responsive th:nth-child(2), .table-responsive td:nth-child(2) { width: 20%; }
    .table-responsive th:nth-child(3), .table-responsive td:nth-child(3) { width: 22%; }
    .table-responsive th:nth-child(4), .table-responsive td:nth-child(4) { width: 8%; }
    .table-responsive th:nth-child(5), .table-responsive td:nth-child(5) { width: 4%; }
    .table-responsive th:nth-child(6), .table-responsive td:nth-child(6) { width: 16%; }
    .table-responsive th:nth-child(7), .table-responsive td:nth-child(7) { width: 10%; }
    .btn-detail { padding: 3px 8px; font-size: 10px; white-space: nowrap; }
    .table-footer { flex-wrap: wrap; gap: 6px; padding: 8px 0; }
    .page-indicator { min-width: 60px; font-size: 12px; height: 30px; }
    .page-btn { width: 30px; height: 30px; font-size: 12px; }
    .container { padding: 12px; }
    .card-segmento { padding: 14px; }
    .input-with-button { flex-direction: column; align-items: stretch; }
    .btn-vincular { width: 100%; height: 40px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn-primary, .form-actions .btn-secondary { width: 100%; text-align: center; }
    .table-header { flex-direction: column; align-items: stretch; gap: 8px; }
    .table-search { width: 100%; }
    .modal-content { max-width: 90%; width: 90%; height: 80vh; padding: 16px; }
    .modal-content.large-modal { max-width: 95%; width: 95%; height: 85vh; }
    .info-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .modal-footer { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .footer-actions { flex-wrap: wrap; }
}

/* ============================================================
   MAPA — remove o quadrado preto ao clicar
   ============================================================ */
.leaflet-container svg path:focus,
.leaflet-interactive:focus,
.leaflet-container svg path:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================
   TOOLTIP DOS VENDEDORES — só o nome da cidade
   ============================================================ */
.vendedor-tooltip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
    color: #172b4d !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}
.vendedor-tooltip::before { border-top-color: #ffffff !important; }
body.dark-mode .vendedor-tooltip { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; }
body.dark-mode .vendedor-tooltip::before { border-top-color: #1e293b !important; }

/* ============================================================
   LEGENDA DE VENDEDORES — flutuante no canto do mapa
   ============================================================ */
.vendedores-stats {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 500;
    width: 240px;
    max-height: calc(100% - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
    scrollbar-width: thin;
    scrollbar-color: #2463eb transparent;
}
.vendedores-stats::-webkit-scrollbar { width: 6px; }
.vendedores-stats::-webkit-scrollbar-track { background: transparent; }
.vendedores-stats::-webkit-scrollbar-thumb { background: #2463eb; border-radius: 6px; }
body.dark-mode .vendedores-stats::-webkit-scrollbar-thumb { background: #3b82f6; }
.vendedor-stat { display: flex; align-items: center; gap: 10px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 10px; padding: 9px 11px; width: 100%; min-width: 0; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden; user-select: none; }
.vendedor-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--vendedor-cor, #2463eb); opacity: 0.55; transition: opacity 0.2s ease; }
.vendedor-stat:hover { background: var(--bg-hover); border-color: var(--vendedor-cor, #2463eb); }
.vendedor-stat.active { background: var(--bg-card); border-color: var(--vendedor-cor, #2463eb); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); }
.vendedor-stat.active::before { opacity: 1; }
.vendedor-stat.active .vendedor-stat-nome { color: var(--vendedor-cor, #2463eb); }
.vendedor-stat-checkbox { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer; position: relative; border: 2px solid var(--border-input); border-radius: 6px; background: var(--bg-input); transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vendedor-stat-checkbox:hover { border-color: var(--vendedor-cor, #2463eb); box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.12); }
.vendedor-stat-checkbox:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(36, 99, 235, 0.2); }
.vendedor-stat-checkbox:checked { background: var(--vendedor-cor, #2463eb); border-color: var(--vendedor-cor, #2463eb); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.vendedor-stat-checkbox::after { content: ''; position: absolute; top: 50%; left: 50%; width: 5px; height: 10px; border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: translate(-50%, -60%) rotate(45deg) scale(0); transform-origin: center; opacity: 0; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease; }
.vendedor-stat-checkbox:checked::after { transform: translate(-50%, -60%) rotate(45deg) scale(1); opacity: 1; }
.vendedor-stat-checkbox:active { transform: scale(0.9); }
.vendedor-stat-body { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.vendedor-stat-header { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vendedor-stat-color { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
body.dark-mode .vendedor-stat-color { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.vendedor-stat-nome { font-size: 13px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vendedor-stat-numbers { display: flex; gap: 12px; padding-left: 20px; }
.vendedor-stat-num { display: flex; flex-direction: column; gap: 1px; }
.vendedor-stat-num strong { font-size: 13px; color: var(--text-main); font-weight: 700; line-height: 1.15; }
.vendedor-stat-num small { font-size: 10px; color: var(--text-secondary); text-transform: lowercase; letter-spacing: 0.2px; }
@media (min-width: 769px) and (max-width: 1600px) {
    .vendedor-stat-nome,
    .vendedor-stat-num strong { font-size: 12px; }
    .vendedor-stat-num small { font-size: 10px; }
    .vendedor-stat { padding: 8px 10px; }
    .vendedores-stats { width: 220px; padding: 8px; }
}
@media (max-width: 900px) {
    .vendedores-stats {
        position: static;
        width: 100%;
        max-height: 200px;
        margin-top: 12px;
        box-shadow: var(--shadow-card);
    }
}

/* ============================================================
   AJUSTE DE LARGURA DA SIDEBAR POR TAMANHO DE TELA
   ============================================================ */
@media (max-width: 1366px) {
    .sidebar:not(.collapsed) { width: 215px; }
    .sidebar:not(.collapsed) + .main { margin-left: 215px; }
    .sidebar:not(.collapsed) .menu-item { gap: 10px; padding: 0 8px; }
    .sidebar.collapsed { width: 70px; }
    .sidebar.collapsed + .main { margin-left: 70px; }
}
@media (min-width: 1367px) and (max-width: 1599px) {
    .sidebar:not(.collapsed) { width: 230px; }
    .sidebar:not(.collapsed) + .main { margin-left: 230px; }
    .sidebar.collapsed { width: 85px; }
    .sidebar.collapsed + .main { margin-left: 85px; }
    .menu-text { font-size: 15px; }
}
@media (min-width: 1600px) {
    .sidebar:not(.collapsed) { width: 250px; }
    .sidebar:not(.collapsed) + .main { margin-left: 250px; }
    .sidebar.collapsed { width: 90px; }
    .sidebar.collapsed + .main { margin-left: 90px; }
    .menu-text { font-size: 16px; }
    .menu-icon { font-size: 22px; }
}

/* ============================================================
   TOOLTIP DO MAPA (NORMAL E CONFLITO)
   ============================================================ */
.custom-tooltip {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    font-family: 'Inter', Arial, sans-serif !important;
    line-height: 1.5 !important;
    max-width: 320px !important;
    min-width: 200px !important;
    white-space: normal !important;
}
.custom-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.96) !important;
}
.custom-tooltip-conflict {
    padding: 22px 26px !important; 
    max-width: 380px !important; 
    border: 2px solid #fbbf24 !important; 
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15), 0 12px 30px rgba(0, 0, 0, 0.6) !important;
}
.custom-tooltip-conflict::before {
    border-top-color: #fbbf24 !important; 
}

/* ============================================================
   CORREÇÃO DO DROPDOWN NO MODAL DE SELEÇÃO DE EMPRESA
   ============================================================ */
#empresa-select-modal .modal-content {
    overflow: visible !important; 
    height: auto !important;
    min-height: 380px; 
    padding-bottom: 30px;
}
#empresa-select-modal .custom-select-options {
    z-index: 2147483001 !important; 
}
#empresa-select-modal .form-group {
    margin-bottom: 20px;
}

/* ============================================================
   ESTILOS DO MODAL DE DADOS COM IA
   ============================================================ */
@keyframes pulseBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.ia-section {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.ia-section h4 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.ia-section h4 i {
    color: #2463eb;
}

.ia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ia-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ia-item strong {
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.ia-item a {
    color: #2463eb;
    text-decoration: none;
}

.ia-item a:hover {
    text-decoration: underline;
}

.ia-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ia-list li {
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .ia-list li {
    background: #1e3a5f;
    color: #60a5fa;
}

.ia-description {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-top: 10px;
}

.ia-additional-list {
    padding-left: 20px;
    margin: 10px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

body.dark-mode .ia-section {
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FILTROS — ESTADO "IGNORADO" (especificidade)
   ============================================================ */
.field.filter-ignored {
    position: relative;
}

.field.filter-ignored > label {
    opacity: 0.45;
}

/* Aplica o cinza apenas no gatilho customizado (o que o usuário vê) */
.field.filter-ignored .custom-select-trigger {
    opacity: 0.6;
    background: #f1f5f9 !important;
    cursor: not-allowed;
}

/* Garante que o select nativo (escondido por baixo) continue invisível */
.field.filter-ignored .custom-select select {
    opacity: 0 !important;
}

/* Para inputs de texto que não são custom select */
.field.filter-ignored .input:not(.custom-select select) {
    opacity: 0.6;
    background: #f1f5f9 !important;
    cursor: not-allowed;
}

/* Modo escuro */
body.dark-mode .field.filter-ignored .custom-select-trigger,
body.dark-mode .field.filter-ignored .input:not(.custom-select select) {
    background: #1a1f2e !important;
}

/* Selo "ignorado" com aviso dinâmico */
.field.filter-ignored > label::after {
    content: '· ignorado (' attr(data-warning) ')';
    font-size: 10px;
    color: #dc2626;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: 6px;
    text-transform: none; /* Deixa o aviso em minúsculo para não ficar gritante */
    opacity: 1;
    white-space: nowrap;
}

body.dark-mode .field.filter-ignored > label::after {
    color: #f87171;
}

/* Garante que o dropdown aberto fique SEMPRE opaco */
.field.filter-ignored .custom-select.open .custom-select-options {
    opacity: 1 !important;
}

.field.filter-ignored .custom-select-trigger,
.field.filter-ignored .input {
    pointer-events: none;
}


/* ============================================================
   TOOLTIP DE INFO (balão de observação)
   ============================================================ */
.info-tooltip {
    display: inline-flex;
    align-items: center;
    color: #2463eb;
    cursor: help;
    position: relative;
    font-size: 13px;
    transition: color 0.2s;
}
.info-tooltip:hover {
    color: #1d4ed8;
}
body.dark-mode .info-tooltip {
    color: #60a5fa;
}
.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 320px;
    white-space: normal;
    width: max-content;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}
.info-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
}
.info-tooltip:hover::after,
.info-tooltip:hover::before {
    opacity: 1;
}

#det-crm-observacao {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}