:root {
    --bg: #F8F9FA;
    --ink: #111111;
    --accent: #193AEE;
    --grid: #eeeeee; /* cor das linhas do grid */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "Helvetica Neue", Arial, sans-serif;
    /*display: grid; */

    /* Grid de fundo */
    background-color: var(--bg);
    background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 0px 0px; /* tamanho dos quadrados do grid */
}

p { line-height: 1.5 }

a {
    text-decoration: none;
    color: var(--accent);
}


#chart-container {
    height: 400px;
    border: 1px solid var(--grid);
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 4px;
}

#performanceChart {
    width: 100% !important;
    height: 100% !important;
}

/* Table Container */
.table-container {
    margin: 30px 0;
    overflow-x: auto;
    /*border-radius: 6px;*/
    /*box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);*/
    background: white;
    border: 1px solid var(--grid);
}

.table-container-year {
    margin: 30px 0;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--grid);
    width: 100%;
    max-width: 100%;
}

/* Main Table Styles */
.table-rentabilidade {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9em;
    /*min-width: 100%;*/
    min-width: 600px;
    text-align: right;
    background: white;
    /*table-layout: fixed;*/
}

.table-rentabilidade-year {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9em;
    min-width: 100%;
    text-align: left;
    background: white;
    table-layout: fixed;
}

/* Table Cells */
.table-rentabilidade th, 
.table-rentabilidade td,
.table-rentabilidade-year th,
.table-rentabilidade-year td {
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
    color: #111111;
    width: 25%;
}

/* Table Headers */
.table-rentabilidade thead th,
.table-rentabilidade-year thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #193AEE;
    overflow-x: auto;
}

/* First Column */
.table-rentabilidade td:first-child,
.table-rentabilidade-year td:first-child {
    text-align: left;
    font-weight: 500;
    color: #343a40;
    background-color: white;
    position: sticky;
    left: 0;
    z-index: 1;
}

/* Yearly Total */
.acumulado {
    font-weight: 600;
    color: #193AEE;
}

/* Zebra Striping */
.table-rentabilidade tbody tr:nth-child(even),
.table-rentabilidade-year tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Hover Effect */
.table-rentabilidade tbody tr:hover,
.table-rentabilidade-year tbody tr:hover {
    background-color: rgba(25, 58, 238, 0.02);
}

/* Remove bottom border from last row */
.table-rentabilidade tbody tr:last-child td,
.table-rentabilidade-year tbody tr:last-child td {
    border-bottom: none;
}

/* Positive/Negative Values */
.positive {
    color: var(--accent) !important;
}

.negative {
    color: #dc3545 !important;
}
