/* Dashboard de Visão Geral de Pessoas - Estilos Customizados */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.header-section {
    background: #7A34F3;
    color: white;
    padding: 2rem 0;
    min-height: 15vh;
    margin-top: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.header-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.75rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    padding-left: 0;
}

.header-date {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 1rem;
}

.navigation-section {
    background-color: white;
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-tabs {
    border: none;
    gap: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    position: relative;
    background: none;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #7A34F3;
}

.nav-tabs .nav-link.active {
    color: #7A34F3;
    background: none;
    border: none;
    border-bottom: 3px solid #7A34F3;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #7A34F3;
}

.content-section {
    background: #ffffff;
    padding: 4rem 0;
    min-height: 60vh;
}

/* Seção da tabela com fundo cinza */
.servidores-table-section {
    background: #F7F7F7;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7A34F3;
    margin-bottom: 0.5rem;
}

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

/* ==============================
   BUDGET SECTION - ORÇAMENTO
   ============================== */

.budget-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: #202020;
    margin-bottom: 1rem;
    text-align: left;
}

.budget-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 88px;
    width: 100%;
}

.budget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #7A34F3;
}

.budget-card-header {
    margin-bottom: 0.5rem;
}

/* Budget Card Sizes - Proporções adequadas para 8 colunas */
.budget-card-small {
    min-width: 140px;
}

.budget-card-medium {
    min-width: 180px;
}

.budget-card-large {
    min-width: 220px;
}

.budget-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7A34F3;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.budget-card-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.budget-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #202020;
    margin: 0;
    line-height: 1;
}

/* Responsividade */
@media (max-width: 1200px) {
    .header-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .header-section {
        padding: 1.5rem 0;
        min-height: 12vh;
    }
    
    .header-title {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .budget-section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .budget-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-section {
        padding: 1rem 0;
        min-height: 10vh;
    }
    
    .header-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .nav-tabs {
        gap: 1rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 1rem;
    }
    
    .bar-label {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .bar-container {
        height: 20px;
    }
    
    .bar-value {
        font-size: 0.75rem;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    }
    
    .chart-card {
        min-height: 350px;
        padding: 2rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-legend {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .header-section {
        padding: 1rem 0;
        min-height: 8vh;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-date {
        font-size: 1rem;
    }
    
    .navigation-section {
        padding: 1rem 0 0.5rem 0;
    }
    
    .nav-tabs {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
}

/* ==============================
   BAR CHART STYLES - GRÁFICO DE GÊNERO
   ============================== */

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    width: 100%;
    min-height: 200px;
}

.bars-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    position: relative;
}


.chart-axis {
    margin-top: 0;
    padding-left: calc(1rem + 120px);
    padding-right: 1rem;
    position: relative;
    top: -0.5rem;
    width: 100%;
}

.axis-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0;
    position: relative;
    width: 100%;
    font-size: 0.75rem;
    color: #6B7280;
}

.axis-labels span:first-child {
    text-align: left;
    margin-left: 0;
}

.axis-labels span:last-child {
    text-align: right;
    margin-right: 0;
}

/* Linha principal removida - agora está no bars-container */

.axis-labels span {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    position: relative;
}

.axis-labels span::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1.5rem;
    background-color: #E5E7EB;
    z-index: 2;
    display: block;
}

.axis-labels span:first-child::before {
    left: 0;
    transform: none;
    z-index: 2;
    height: 1.5rem;
    background-color: #E5E7EB;
}

.axis-labels span:last-child::before {
    left: auto;
    right: 0;
    transform: none;
    height: 1.5rem;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 30px;
    visibility: visible;
}

.bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-width: 100px;
    width: 100px;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    position: relative;
    height: 24px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    min-width: 100px;
    visibility: visible;
    display: flex;
    align-items: center;
}

.bar-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #E5E7EB;
    z-index: 1;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
}

.bar-fill.feminino {
    background: #8B5CF6;
}

.bar-fill.masculino {
    background: #22D3EE;
}

.bar-value {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Sobrescrever para o gráfico de situação funcional */
.functional-situation-chart .bar-value {
    position: static !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    text-shadow: none !important;
    z-index: auto !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000000;
    min-width: 50px;
    width: 50px;
    text-align: right;
    flex-shrink: 0;
    display: block !important;
    margin: 0;
    padding: 0;
}

/* Legend Styles */
.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-masculino {
    background-color: #22D3EE;
}

.legend-feminino {
    background-color: #8B5CF6;
}

/* ==============================
   CHART CARDS STYLES
   ============================== */

.chart-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #7A34F3;
    margin: 0;
    line-height: 1;
    margin-bottom: 1rem;
}

.chart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.race-chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
}

/* Responsividade para Chart Cards */
@media (max-width: 1199px) {
    .chart-card {
        min-height: 400px;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .chart-axis {
        padding-left: calc(1rem + 120px);
        padding-right: 1rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .axis-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 1161px) {
    .chart-card {
        min-height: 400px;
        padding: 1.5rem;
    }
    
    .chart-axis {
        padding-left: calc(1rem + 120px);
        padding-right: 1rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .axis-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 992px) {
    .chart-card {
        min-height: 400px;
        padding: 2rem;
    }
    
    .bar-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .bar-label {
        min-width: 120px;
        width: 120px;
        flex-shrink: 0;
    }
    
    .bar-container {
        width: 100%;
        height: 24px;
        display: flex;
        align-items: center;
    }
    
    .chart-axis {
        padding-left: calc(1rem + 120px);
        padding-right: 1rem;
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .axis-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .chart-card {
        min-height: 350px;
        padding: 1.5rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .chart-legend {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .bar-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .bar-label {
        min-width: 100px;
        width: 100px;
        flex-shrink: 0;
    }
    
    .bar-container {
        width: 100%;
        height: 24px;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        align-items: center;
    }
    
    .bar-value {
        font-size: 0.8rem;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .chart-axis {
        display: none;
    }
    
    .bars-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .chart-card {
        min-height: 300px;
        padding: 1rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .chart-legend {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .bar-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .bar-label {
        min-width: 80px;
        width: 80px;
        flex-shrink: 0;
    }
    
    .bar-container {
        width: 100%;
        height: 24px;
        margin-left: 0;
        margin-right: 0;
        display: flex;
        align-items: center;
    }
    
    .bar-value {
        font-size: 0.7rem;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 1);
    }
    
    .chart-axis {
        display: none;
    }
    
    .bars-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .chart-card {
        min-height: 280px;
        padding: 0.8rem;
    }
    
    .bar-item {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .bar-label {
        min-width: 70px;
        width: 70px;
        flex-shrink: 0;
        font-size: 0.8rem;
    }
    
    .bar-container {
        width: 100%;
        height: 24px;
        display: flex;
        align-items: center;
    }
    
    .bar-value {
        font-size: 0.6rem;
        font-weight: 700;
        color: #000000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 1);
    }
    
    .chart-axis {
        display: none;
    }
    
    .bars-container {
        padding: 0 0.3rem;
    }
}

/* Mapa do Brasil */
.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brazil-map {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brazil-map svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 400px;
}

.brazil-map svg path {
    fill: #F3F4F6;
    stroke: #D1D5DB;
    stroke-width: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brazil-map svg path:hover {
    fill: #8B5CF6;
    stroke: #6B46C1;
    stroke-width: 2;
}

.map-legend {
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legend-gradient {
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, #66BB6A, #9C27B0);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.legend-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
}

/* Tooltip para o mapa */
.map-tooltip {
    position: absolute;
    background: #66BB6A;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-tooltip.show {
    opacity: 1;
}



/* ==============================
   GRÁFICO DE SITUAÇÃO FUNCIONAL
   ============================== */

.functional-situation-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    width: 100%;
    min-height: 400px;
}

.functional-situation-chart .bars-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    position: relative;
}

.functional-situation-chart .bar-item {
    display: flex !important;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-height: 28px;
    visibility: visible;
    flex-direction: column;
    position: relative;
}

/* Linha de texto acima da barra: valor + título */
.functional-situation-chart .bar-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.functional-situation-chart .bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    min-width: auto;
    width: auto;
    flex-shrink: 0;
    line-height: 1.2;
}

.functional-situation-chart .bar-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000000;
    min-width: auto;
    width: auto;
    text-align: left;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.functional-situation-chart .bar-container {
    width: 100%;
    position: relative;
    height: 12px;
    background: transparent;
    border-radius: 4px;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0;
    visibility: visible;
    display: flex;
    align-items: flex-start;
}

.functional-situation-chart .bar-container::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background: #E5E7EB;
    z-index: 1;
}


.functional-situation-chart .bar-fill.functional-bar {
    height: 12px;
    background: #7A34F3;
    border-radius: 6px;
    transition: width 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 1;
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    z-index: 2;
}


.functional-situation-chart .chart-axis {
    margin-top: 0.5rem;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    top: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.functional-situation-chart .axis-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0;
    position: relative;
    width: 100%;
    font-size: 0.75rem;
    color: #6B7280;
}

.functional-situation-chart .axis-labels span {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #D3D3D3;
    position: relative;
}

.functional-situation-chart .axis-labels span::before {
    display: none;
}

.functional-situation-chart .axis-labels span:first-child {
    text-align: left;
}

.functional-situation-chart .axis-labels span:last-child {
    text-align: right;
}

/* Responsividade do mapa */
@media (max-width: 992px) {
    .map-container {
        height: 400px;
    }
    
    .brazil-map {
        height: 350px;
    }
    
    .brazil-map svg {
        max-width: 100%;
        max-height: 350px;
    }
    
    .functional-situation-chart {
        min-height: 350px;
    }
    
    .functional-situation-chart .bar-label {
        min-width: 100px;
        width: 100px;
        font-size: 0.75rem;
    }
    
    .functional-situation-chart .chart-axis {
        padding-left: calc(1rem + 50px + 0.5rem + 100px + 0.5rem);
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .brazil-map {
        height: 250px;
    }
    
    .brazil-map svg {
        max-width: 100%;
        max-height: 250px;
    }
    
    .legend-gradient {
        height: 15px;
    }
    
    .legend-labels {
        font-size: 0.75rem;
    }
    
    .functional-situation-chart {
        min-height: 300px;
    }
    
    .functional-situation-chart .bar-item {
        min-height: 24px;
    }
    
    .functional-situation-chart .bar-label {
        min-width: 90px;
        width: 90px;
        font-size: 0.7rem;
    }
    
    .functional-situation-chart .bar-container {
        height: 18px;
    }
    
    .functional-situation-chart .bar-fill.functional-bar {
        height: 6px;
    }
    
    .functional-situation-chart .bar-value {
        font-size: 0.7rem;
    }
    
    .functional-situation-chart .chart-axis {
        padding-left: calc(1rem + 50px + 0.5rem + 90px + 0.5rem);
        padding-right: 1rem;
    }
    
    .functional-situation-chart .axis-labels {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 250px;
    }
    
    .brazil-map {
        height: 200px;
    }
    
    .brazil-map svg {
        max-height: 200px;
    }
    
    .functional-situation-chart {
        min-height: 250px;
    }
    
    .functional-situation-chart .bar-item {
        min-height: 22px;
    }
    
    .functional-situation-chart .bar-label {
        min-width: 80px;
        width: 80px;
        font-size: 0.65rem;
    }
    
    .functional-situation-chart .bar-container {
        height: 16px;
    }
    
    .functional-situation-chart .bar-fill.functional-bar {
        height: 5px;
    }
    
    .functional-situation-chart .bar-value {
        font-size: 0.65rem;
    }
    
    .functional-situation-chart .chart-axis {
        padding-left: calc(1rem + 50px + 80px + 0.5rem);
        padding-right: 1rem;
    }
    
    .functional-situation-chart .axis-labels {
        font-size: 0.65rem;
    }
}

/* ==============================
   TABELA RESUMO DE SERVIDORES
   (Usando classes teds-table para compatibilidade)
   ============================== */

/* Header da Tabela */
.servidores-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.servidores-table-title-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.servidores-table-title {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #202020;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.servidores-table-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #202020;
    margin: 0;
    line-height: 1.3;
}

.servidores-search-section {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
    margin-bottom: 0;
}

.servidores-search-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
    position: relative;
}

.servidores-search-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #7A34F3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.servidores-search-input {
    display: none;
    border: 1px solid #7A34F3;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #202020;
    outline: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 250px;
    transition: all 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.servidores-search-wrapper.active .servidores-search-input {
    display: block;
}

.servidores-search-input:focus {
    border-color: #6B2EE8;
    box-shadow: 0 0 0 2px rgba(122, 52, 243, 0.1);
}

.servidores-search-input::placeholder {
    color: #9ca3af;
}

.servidores-search-icon {
    font-size: 1rem;
    color: #7A34F3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teds-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    max-height: 440px; /* ~55px por linha x 8 linhas */
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Estilização da barra de scroll */
.teds-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.teds-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.teds-table-wrapper::-webkit-scrollbar-thumb {
    background: #7A34F3;
    border-radius: 4px;
}

.teds-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6B2EE8;
}

/* Cabeçalho fixo da tabela */
.teds-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table {
    margin-bottom: 0 !important;
}

.teds-table {
    width: 100%;
    margin: 0;
    table-layout: fixed;
}

.teds-table thead th {
    background: #7A34F3;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    vertical-align: middle;
    line-height: 1.4;
}

.teds-table thead th:not(:first-child) {
    padding-left: 1.5rem;
}

/* Ajustando larguras para 6 colunas */
.teds-table thead th:nth-child(1) {
    width: 25%;
}

.teds-table thead th:nth-child(2) {
    width: 15%;
}

.teds-table thead th:nth-child(3) {
    width: 20%;
}

.teds-table thead th:nth-child(4) {
    width: 15%;
}

.teds-table thead th:nth-child(5) {
    width: 10%;
}

.teds-table thead th:nth-child(6) {
    width: 15%;
}

.teds-table thead th i {
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

.teds-table tbody td {
    color: #202020;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.teds-table tbody td:not(:first-child) {
    padding-left: 1.5rem;
}

.teds-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.teds-table tbody tr:nth-child(even) td {
    background: #F7F7F7;
}

.teds-table tbody tr + tr td {
    border-top: 1px solid #eef2f7;
}

.teds-table-wrapper { 
    margin-top: 0.25rem; 
}

/* Botão Carregar Mais */
.servidores-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
}

.servidores-load-more-btn {
    background: #9249CA;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(146, 73, 202, 0.3);
}

.servidores-load-more-btn:hover {
    background: #8243B5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(146, 73, 202, 0.4);
}

.servidores-load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(146, 73, 202, 0.3);
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    .teds-table {
        table-layout: auto;
    }
    
    .teds-table thead th {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .teds-table tbody td {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .teds-table-wrapper {
        margin-top: 0.5rem;
        overflow-x: auto;
    }
    
    .teds-table {
        min-width: 600px;
    }
}
