@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            display: flex;
            background: #f3f4f6;
            margin: 0;
        }
        .sidebar {
            width: 250px;
            height: 100vh;
            background-color: #ffffff;

            position: fixed;
            left: 0;
            top: 0;
            padding: 12px;
            border-right: 1px solid #e5e7eb;

            display: flex;
            flex-direction: column;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;

            font-size: 28px;
            font-weight: 700;

            color: #111827;
            margin-bottom: 50px;
        }
        .sidebar h2 {
            text-align: center;
            margin-bottom: 30px;
            font-size: 24px;
        }
        .sidebar ul {
            list-style: none;
        }
        .sidebar li {
            margin-bottom: 6px;
        }
        .sidebar a {
            display: flex;
            align-items: center;
            gap: 12px;

            padding: 12px 14px;

            text-decoration: none;
            color: #6b7280;

            border-radius: 12px;

            transition: all .2s ease;
        }
        .sidebar a:hover {
        background: #f3f4f6;
        }
        .sidebar-footer {
            margin-top: auto;

            display: flex;
            align-items: left;
            gap: 6px;

            padding-top: 10px;
            border-top: 1px solid #e5e7eb;
        }
        .avatar {
            width: 40px;
            height: 40px;

            border-radius: 50%;

            background: #2563eb;
            box-shadow: 0 4px;
            color: white;

            display: flex;
            align-items: center;
            justify-content: center;

            font-weight: 600;
        }
        .menu-title {
            font-size: 12px;
            letter-spacing: 2px;
            color: #9ca3af;
            margin-bottom: 12px;
        }
        .menu-active {
            background: #eef2ff !important;
            color: #2563eb !important;
        }
        .material-icons {
            font-size: 24px;
            margin-right: 10px;
            border: none;
            background: transparent;
            cursor: pointer;
        }
        .content {
            margin-left: 250px;
            padding: 1px;
            width: calc(100% - 250px);
            background: #f3f4f6;
        }
        h1 {
            color: #2c3e50;
            margin-bottom: 25px;
            font-size: 24px;
        }
        .cards {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 0 10px;
        }
        .card {
            background: white;
            border-radius: 16px;
            padding: 24px;
            min-height: 140px;
            border: 1px solid #e5e7eb;
            transition: .2s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .card h5 {
            color: #6b7280;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
        }
        .card h2 {
            color: #2b3140;
            font-size: 26px;
            font-weight: 600;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        thead {
            background: #f9fafb;
        }
        th {
            padding: 16px;
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        td {
            padding: 16px;
        }
        tbody tr:hover {
            background-color: #f9f9f9;
        }
        .chart-container {
            width: 100%;
            height: 500px;
            background: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .chart-proventos {
            width: 100%;
            height: 500px;
            background: white;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 12px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .chart-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding: 8px 12px;


            color: #1f2937;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.02em;


        }
        .chart-label::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2563eb, #06b6d4);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
        }
        .chart-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 52px;
        }
        .chart-filter-form {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
            padding: 7px 10px 7px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            background: #f8fafc;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .chart-filter-form label {
            color: #6b7280;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .chart-filter-form select {
            height: 32px;
            min-width: 150px;
            padding: 0 30px 0 10px;
            border: 1px solid #cbd5e1;
            border-radius: 7px;
            background: #fff;
            color: #1e293b;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }
        .chart-filter-form select:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
        }
        .btn-periodo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 16px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 0.9rem;
            border: 1px solid #d1d5db;
            color: #374151;
            background: white;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }
        .btn-periodo:hover {
            border-color: #9ca3af;
        }
        .btn-periodo.active {
            background: #1340A2;
            color: white;
            border-color: #1340A2;
        }
        .chart-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            width: 100%;
        }
        .chart-toolbar .btn-periodo {
            min-width: 100px;
        }
        .table-container {
            width: auto;
            background: white;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            margin-right: 12px;
            margin-left: 12px;
        }
        
        .table-container h2 {
            margin-bottom: 20px;
            font-size: 12px;
            color: #6b7280;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .table-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            width: 100%;
            margin-bottom: 15px;
        }

        .btn-export-csv {
            margin-left: auto;
            gap: 6px;
            white-space: nowrap;
        }

        .btn-export-csv .material-icons {
            font-size: 20px;
        }
        @media (max-width: 768px) {
            .sidebar {
                width: 200px;
            }
            .content {
                margin-left: 200px;
                width: calc(100% - 200px);
                padding: 15px;
            }
            h1 {
                font-size: 24px;
            }
        }
        .grid-top {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-top: 12px;
            margin-bottom: 12px;
        }
        .grid-middle {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 12px;
            margin-top: 12px;
            padding: 0 10px;
        }
        .grid-bottom {
            display: grid;
            grid-template-columns: 2fr 3fr;
            gap: 12px;
            margin-top: 6px;
            padding: 0 10px;
        }
        .grid-bottom .table-container {
            margin-left: 0;
            margin-right: 0;
        }
        .grid-proventos {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-top: 12px;
            padding: 0 10px;
        }
        .topbar {
            height: 70px;
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 35px;
            border-bottom: 1px solid #e5e7eb;
            margin-bottom: 12px;
        }
        .topbar h1 {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 2px;
            color: #6b7280;
            margin: 0;
        }
        .acoes {
            display: flex;
            align-items: center;
            gap: 10px; /* espaço entre os botões */
        }
        .btn-primary {
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            display: inline-flex;
            transition: 0.2s;
            align-items: center;
        }
        .btn-primary .material-icons {font-size: 20px;}

        .modal {
            display: none;

            position: fixed;

            z-index: 9999;

            left: 0;
            top: 0;

            width: 100%;
            height: 100%;

            background: rgba(0,0,0,0.5);

            justify-content: center;
            align-items: center;
        }
        .modal-content {
            background: white;
            width: 650px;
            max-width: 90%;
            padding: 32px;
            border-radius: 20px;
            box-shadow:
                0 20px 25px -5px rgba(0,0,0,.1),
                0 10px 10px -5px rgba(0,0,0,.04);
            display: block;
        }
        .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        }
        .modal-header h2 {
            font-size: 36px;
            font-weight: 700;
            color: #111827;
        }
        .modal-content form p {
            margin-bottom: 18px;
        }
        .modal-content label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            font-weight: 600;
            color: #6b7280;
        }
.modal-content input,
.modal-content select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    transition: .2s;
    background: white;
}
.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.modal-content .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
}
.close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: .2s;
}

.close:hover {
    background: #f3f4f6;
}
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.autocomplete-list {
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 8px 8px;
}

.autocomplete-list:empty {
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f3f4f6;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 3px 3px;
    text-decoration: none;
    border-radius: 12px;
    transition: .2s;
    border: none;
    background-color: white;
    margin-right: 0px;
    margin-left: 50%;
}

.logout-btn:hover {
    background: white;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 100,
  'GRAD' -25,
  'opsz' 20
}

.logo .material-icons {
    font-size: 28px;
    color: #2563eb;
}

/* ==========================
   LOGIN
========================== */

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f3f4f6;
}

.login-card {
    width: 100%;
    max-width: 420px;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow:
        0 20px 25px -5px rgba(0,0,0,.08),
        0 10px 10px -5px rgba(0,0,0,.04);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-bottom: 10px;
}

.login-logo .material-icons {
    font-size: 36px;
    color: #2563eb;
}

.login-logo h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    color: #111827;
}

.auth-brand-caption {
    margin-bottom: 28px;
    font-size: 14px;
}

.auth-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
}

.auth-heading .material-icons {
    color: #2563eb;
    font-size: 25px;
}

.auth-heading h2 {
    margin: 0;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
}

.auth-description {
    margin: 0 0 24px;
    color: #6b7280;
    line-height: 1.5;
    text-align: center;
}

.login-subtitle {
    text-align: center;

    color: #6b7280;

    margin-bottom: 30px;
}

.login-card form p {
    margin-bottom: 16px;
}

.login-card label {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 600;

    color: #6b7280;
}

.login-card input {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    font-size: 14px;
}

.login-card input:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.btn-login {
    width: 100%;

    background: #2563eb;
    color: white;

    border: none;
    border-radius: 10px;

    padding: 14px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.btn-login:hover {
    background: #1d4ed8;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.login-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.login-card .errorlist {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.login-card .errorlist li {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.login-card .helptext {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.login-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #f3f4f6;
}

/* ==========================
   FILTROS GRAFICO PROVENTOS
========================== */

.filter-bar{
    background:#fff;
    border-radius:16px;
    padding:20px 24px;
    margin-top: 12px;
    margin-bottom: 0px;
    margin-left: 12px;
    margin-right: 12px;

    display:flex;
    justify-content:space-between;
    align-items:end;

    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.filters{
    display:flex;
    gap:18px;
    align-items:end;
    flex-wrap:wrap;
}

.btn-exportar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #166534;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.btn-exportar:hover {
    background: #14532d;
}

.btn-exportar .material-icons {
    margin-right: 0;
    font-size: 18px;
}

.filter-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.filter-group label{

    font-size:12px;
    text-transform:uppercase;
    letter-spacing:1px;

    color:#6B7280;
    font-weight:600;
}

.filter-group select,
.filter-group input{

    min-width:180px;
    height: 38px;
    padding:10px 14px;
    border:1px solid #D1D5DB;
    border-radius:10px;
    background:#fff;
    font-size:12px;
    line-height: 16px;
    transition:.2s;
}

.filter-group select:focus,
.filter-group input:focus{

    outline:none;
    border-color:#2563EB;
    box-shadow:0 0 0 4px rgba(37,99,235,.15);

}

.rentabilidade-filters{
    display:flex;
    align-items:flex-end;
    gap:24px;
    flex-wrap:wrap;
    width:100%;
}

.benchmark-options{
    display:flex;
    align-items:center;
    gap:14px;
    min-height:38px;
    margin-left:auto;
}

.benchmark-option{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:#374151;
    cursor:pointer;
    font-size:13px;
    font-weight:500;
    line-height:16px;
    text-transform:none;
    letter-spacing:0;
    white-space:nowrap;
}

.benchmark-option input[type="checkbox"]{
    width:16px;
    min-width:16px;
    height:16px;
    margin:0;
    padding:0;
    accent-color:#2563EB;
    cursor:pointer;
    flex:0 0 16px;
}

.filter-group .autocomplete-container {
    position: relative;
    min-width: 260px;
}

.filter-group .autocomplete-container input {
    width: 100%;
    padding-right: 42px;
}

.filter-group .autocomplete-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
}

.filter-group .autocomplete-clear:hover {
    background: #F3F4F6;
    color: #111827;
}

.filter-group .autocomplete-clear .material-icons {
    margin: 0;
    font-size: 18px;
    background: transparent;
}

.filter-group .autocomplete-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 240px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(15,23,42,.12);
}

.filter-group .autocomplete-item,
.filter-group .autocomplete-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 14px;
}

.filter-group .autocomplete-item {
    cursor: pointer;
}

.filter-group .autocomplete-item span {
    color: #111827;
    font-weight: 700;
}

.filter-group .autocomplete-item small,
.filter-group .autocomplete-empty {
    color: #6B7280;
}

.filter-group .autocomplete-item:hover {
    background: #F3F4F6;
}

.btn-filter{

    padding:11px 22px;
    border:none;
    border-radius:10px;
    background:#2563EB;
    color:white;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.btn-filter:hover{

    background:#1D4ED8;

}

/* ===========================
   PAGINAÇAO TABELA PROVENTOS
=========================== */

.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 25px 0;
}

.page-btn{
    display: flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;
    background: #fff;
    color: #374151;
    
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e7eb;

    transition: .2s;
}

.page-btn:hover{
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

.page-btn.active{
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}

.page-dots{
    padding:0 6px;
    color:#6B7280;
    font-weight:600;
}

.proventos-table th{
    background:#F8FAFC;
    padding:14px 18px;
    border-bottom:1px solid #E5E7EB;
}

.proventos-table th a{
    display:flex;
    align-items:center;
    justify-content:space-between;

    color:#374151;
    text-decoration:none;
    font-weight:600;

    padding:6px 10px;
    border-radius:8px;

    transition:.2s;
}

.proventos-table tbody tr{
    transition:.2s;
}

.proventos-table tbody tr:nth-child(even){
    background:#FAFAFA;
}

.proventos-table tbody tr:hover{
    background:#EFF6FF;
}
.proventos-table td{
    padding:14px 18px;
    border-bottom:1px solid #F1F5F9;
}
.stratos-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.stratos-table th{
    background:#F8FAFC;
    border-bottom:1px solid #E5E7EB;
    padding:14px 18px;
    text-align: center;
}

.stratos-table th a{
    display:flex;
    justify-content:space-between;
    align-items:center;

    color:#374151;
    text-decoration:none;
    font-weight:600;

    padding:8px 10px;
    border-radius:8px;

    transition:.2s;
}

.stratos-table th a:hover{
    background:#DBEAFE;
    color:#2563EB;
}

.stratos-table th a .sort-icon{
    font-size:18px;
    line-height:1;
}

.stratos-table td{
    padding:14px 18px;
    border-bottom:1px solid #F3F4F6;
    text-align: right;
}

.stratos-table tbody tr:nth-child(even){
    background:#FAFAFA;
}

.stratos-table tbody tr:hover{
    background:#EFF6FF;
    transition:.2s;
}

.stratos-table td.number{
    text-align:right;
}

.stratos-table td.center{
    text-align:center;
}

.user-plan{
    font-size: small;
    padding: 0px 6px;
}

.user-name{
    font-size: small;
    text-transform: capitalize;
    padding: 6px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0;
    font-weight: 500;
    margin-left: 12px;
    margin-right: 12px;
}

.table-summary {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
    margin-top: 12px;
}


.aportes-table th{
    background:#F8FAFC;
    padding:14px 18px;
    border-bottom:1px solid #E5E7EB;
}

.aportes-table th a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;

    color:#374151;
    text-decoration:none;
    font-weight:600;

    padding:6px 10px;
    border-radius:8px;

    transition:.2s;
}

.aportes-table th a .sort-icon{
    font-size:18px;
    line-height:1;
}

.aportes-table tbody tr{
    transition:.2s;
}

.aportes-table tbody tr:nth-child(even){
    background:#FAFAFA;
}

.aportes-table tbody tr:hover{
    background:#EFF6FF;
}
.aportes-table td{
    padding:14px 18px;
    border-bottom:1px solid #F1F5F9;
}

th.sorted {
    background-color: #eef5ff;
}

th.sorted a {
    color: #2563eb;
    font-weight: 600;
}

.logo-icon {
            font-size: 24px;
            margin-right: 10px;
            border: none;
            border-radius: 5px;
            background: #072971;
            cursor: pointer;
            color: white;
        }
.acoes-col {
    width: 72px;
}

.aportes-table tbody tr {
    position: relative;
}

.acoes-lancamento {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.aportes-table tbody tr:hover .acoes-lancamento {
    opacity: 1;
    visibility: visible;
}

.acoes-lancamento form {
    margin: 0;
}

.btn-acao {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}

.btn-acao:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-excluir:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.btn-acao .material-icons {
    font-size: 18px;
    margin: 0;
}

.sidebar ul li a.active {
    background: #3d76e0;
    color: white;
}

.sidebar ul li a.active .material-icons {
    color: white;
}

        .table-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding: 8px 12px;


            color: #1f2937;
            font-size: 0.95rem;
            font-weight: 600;
            letter-spacing: 0.02em;


        }
.table-label::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2563eb, #06b6d4);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Página de ativos */
.assets-page {
    padding: 0 10px 20px;
}

.assets-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.assets-summary-card {
    min-height: 132px;
    padding: 20px;
}

.assets-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.assets-card-heading .material-icons {
    margin: 0;
    color: #2563eb;
    font-size: 18px;
}

.assets-summary-card strong {
    display: block;
    margin-top: 17px;
    color: #2b3140;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
}

.assets-table-section .filter-bar {
    margin: 0 2px 12px;
}

.assets-filter-bar {
    align-items: center;
}

.assets-filter-description {
    margin: -4px 0 0 12px;
    color: #6b7280;
    font-size: 13px;
}

.assets-table-container {
    margin: 0 2px;
    padding: 0;
    overflow: hidden;
}

.assets-table-scroll {
    overflow-x: auto;
}

.assets-table {
    min-width: 1080px;
}

.assets-table td:first-child {
    text-align: left;
}

.asset-name {
    display: block;
    color: #111827;
    font-weight: 700;
}

.asset-category {
    display: inline-flex;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 600;
}

.is-positive { color: #047857; }
.is-negative { color: #b91c1c; }

.performance-pill {
    display: inline-block;
    min-width: 72px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.performance-pill.is-negative { background: #fef2f2; }

.assets-empty-state {
    height: 250px;
    color: #6b7280;
    text-align: center !important;
}

.assets-empty-state .material-icons,
.assets-empty-state strong,
.assets-empty-state span:last-child {
    display: block;
    margin: 0 auto 8px;
}

.assets-empty-state .material-icons {
    color: #93c5fd;
    font-size: 34px;
}

.assets-empty-state strong { color: #374151; }

/* Tabelas resumidas do dashboard */
.dashboard-table-container {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard-notifications {
    position: relative;
}

.dashboard-notifications-toggle {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.dashboard-notifications-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.dashboard-notifications-icon > .material-icons {
    margin-right: 0;
    font-size: 26px;
}

.dashboard-notifications-toggle:hover,
.dashboard-notifications-toggle[aria-expanded="true"] { color: #d97706; background: transparent; }
.dashboard-notifications-toggle:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.dashboard-notifications-count { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border: 2px solid white; border-radius: 999px; background: #dc2626; color: white; font-size: 10px; font-weight: 700; line-height: 13px; text-align: center; }
.dashboard-notifications-panel { position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: min(370px, calc(100vw - 32px)); padding: 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); }
.dashboard-notifications-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 11px; border-bottom: 1px solid #f1f5f9; }
.dashboard-notifications-title strong { color: #1f2937; font-size: 14px; }
.dashboard-notifications-title span { color: #64748b; font-size: 11px; }
.dashboard-alerts-list { display: grid; gap: 1px; margin-top: 8px; }
.dashboard-alert { display: flex; gap: 9px; align-items: flex-start; padding: 11px 4px; border-bottom: 1px solid #f1f5f9; }
.dashboard-alert:last-child { border-bottom: 0; }
.dashboard-alert > .material-icons { color: #d97706; font-size: 19px; }
.dashboard-alert.is-danger > .material-icons { color: #dc2626; }
.dashboard-alert.is-info > .material-icons { color: #2563eb; }
.dashboard-alert strong, .dashboard-alert span { display: block; }
.dashboard-alert strong { color: #374151; font-size: 12px; }
.dashboard-alert div span { margin-top: 2px; color: #6b7280; font-size: 11px; line-height: 1.4; }

.dashboard-table-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 12px;
}

.dashboard-table-heading .table-label {
    margin: 0;
    padding: 0;
}

.dashboard-table-heading p {
    margin: 2px 0 0 12px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-table-icon {
    padding: 8px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
}

.dashboard-table-scroll {
    overflow-x: auto;
}

.dashboard-table {
    border-radius: 0;
}

.dashboard-table th {
    padding: 11px 20px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.dashboard-table td {
    padding: 14px 20px;
    color: #374151;
    font-size: 13px;
    vertical-align: middle;
}

.dashboard-table th:first-child,
.dashboard-table td:first-child {
    text-align: left;
}

.dashboard-table .asset-name {
    font-size: 13px;
}

.dashboard-table .asset-category {
    margin: 0;
}

.dashboard-value {
    color: #111827 !important;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-percentage {
    min-width: 58px;
    color: #2563eb;
    background: #eff6ff;
}

.transaction-date {
    color: #6b7280 !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.transaction-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.transaction-type.is-purchase {
    background: #ecfdf5;
    color: #047857;
}

.transaction-type.is-sale {
    background: #fef2f2;
    color: #b91c1c;
}

.dashboard-quantity {
    font-variant-numeric: tabular-nums;
}

.dashboard-empty-state {
    height: 210px;
    padding: 24px !important;
}

.allocation-container {
    margin: 12px 10px 0;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #2563eb;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.allocation-heading {
    align-items: center;
    padding-top: 18px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.allocation-heading .table-label {
    display: block;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.allocation-heading p {
    max-width: 360px;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.allocation-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.allocation-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(82px, 1fr));
    gap: 8px;
}

.allocation-inputs label {
    display: grid;
    position: relative;
    gap: 5px;
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.allocation-inputs input {
    width: 100%;
    min-width: 82px;
    box-sizing: border-box;
    padding: 9px 26px 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    appearance: textfield;
    -moz-appearance: textfield;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.allocation-inputs input::-webkit-outer-spin-button,
.allocation-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.allocation-inputs label::after {
    content: '%';
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}

.allocation-inputs input:hover {
    border-color: #93c5fd;
}

.allocation-inputs input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.allocation-save-button {
    min-height: 39px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.allocation-save-button .material-icons {
    font-size: 17px;
}

.allocation-table th {
    background: #f8fafc;
    font-size: 10px;
}

.allocation-table td {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.allocation-table td:nth-child(2),
.allocation-table td:nth-child(3),
.allocation-table td:nth-child(4) {
    color: #334155;
    font-weight: 600;
}

.allocation-table small {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 11px;
}

.allocation-deviation.is-over { color: #b45309; font-weight: 700; }
.allocation-deviation.is-under { color: #047857; font-weight: 700; }

.allocation-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 82px;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

.allocation-suggestion.is-comprar { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }
.allocation-suggestion.is-comprar::before { content: '↑'; font-size: 13px; }
.allocation-suggestion.is-reduzir { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.allocation-suggestion.is-reduzir::before { content: '↓'; font-size: 13px; }
.allocation-suggestion.is-manter { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }
.allocation-suggestion.is-manter::before { content: '•'; font-size: 15px; line-height: 10px; }
.allocation-suggestion.is-definir { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }

@media (max-width: 640px) {
    .dashboard-notifications-panel { right: -46px; }
    .assets-page { padding: 0 8px 16px; }
    .assets-filter-bar { align-items: flex-start; }
    .assets-filter-bar .filters, .assets-filter-bar .filter-group, .assets-filter-bar select { width: 100%; }
    .dashboard-table { min-width: 510px; }
    .positions-table { min-width: 430px; }
    .dashboard-table-heading { padding: 16px; }
    .dashboard-table-heading p { margin-left: 0; }
    .dashboard-table th, .dashboard-table td { padding-left: 16px; padding-right: 16px; }
    .allocation-heading { align-items: stretch; }
    .allocation-form { display: block; }
    .allocation-inputs { grid-template-columns: repeat(3, 1fr); margin: 12px 0; }
    .allocation-inputs input { width: 100%; box-sizing: border-box; }
    .allocation-save-button { width: 100%; justify-content: center; }
}
