.form-boletim-container {
    width: min(600px, 100%) !important;
    max-width: 600px !important;
    transition: max-width 0.25s ease;
}

.form-boletim-container.showing-results {
    width: min(1024px, 100%) !important;
    max-width: 1024px !important;
}

.form-boletim-container .form-steps {
    background: linear-gradient(180deg, #f9fcff 0%, #f4f7fb 100%);
}

.form-boletim-container .boletim-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.form-boletim-container .boletim-tabs-wrap {
    border-radius: 10px;
    border: 1px solid #cfe5d9;
    padding: 8px;
}

.form-boletim-container .boletim-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.form-boletim-container .boletim-tab {
    border: 1px solid #b8d9c5;
    background: #ffffff;
    border-radius: 8px;
    color: #234133 !important;
    padding: 10px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: max-content;
    flex: 0 0 auto;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-sizing: border-box;
}

.form-boletim-container .boletim-tab:hover,
.form-boletim-container .boletim-tab:focus {
    border-color: #5fa87c;
    color: #234133 !important;
    text-decoration: none !important;
}

.form-boletim-container .boletim-tab.active {
    border-color: #2f8a57;
    box-shadow: 0 0 0 3px rgba(47, 138, 87, 0.16);
    background: #e7f6ec;
    color: #1f4d35 !important;
}

.form-boletim-container .boletim-tab.active .boletim-tab-title {
    color: #1f4d35 !important;
}

.form-boletim-container .boletim-tab-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    color: inherit !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.form-boletim-container .boletim-panels {
    display: block;
}

.form-boletim-container .boletim-panel {
    display: none;
}

.form-boletim-container .boletim-panel.active {
    display: block;
}

.form-boletim-container .boletim-curso-card {
    border: 1px solid #d6e1ef;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 41, 68, 0.06);
}

.form-boletim-container .boletim-curso-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.form-boletim-container .boletim-curso-header h3 {
    margin: 0;
    font-size: 18px;
    color: #213245;
}

.form-boletim-container .boletim-status {
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.1;
    text-align: center;
    max-width: 130px;
    overflow-wrap: normal;
    word-break: normal;
}

.form-boletim-container .boletim-tab .boletim-status {
    flex: 0 0 auto;
}

.form-boletim-container .boletim-status.status-aprovado {
    color: #0f6e39;
    background: #d8f5e5;
    border-color: #8fd3b2;
}

.form-boletim-container .boletim-status.status-cursando {
    color: #0a4f9a;
    background: #d9ebff;
    border-color: #8ab8ef;
}

.form-boletim-container .boletim-status.status-reprovado {
    color: #8a1020;
    background: #ffdbe1;
    border-color: #ee9baa;
}

.form-boletim-container .boletim-status.status-nao-cursou,
.form-boletim-container .boletim-status.status-neutro {
    color: #58606a;
    background: #eceff3;
    border-color: #c8d0da;
}

.form-boletim-container .boletim-curso-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #3f4f61;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f5f8fc;
    border-radius: 8px;
    border: 1px solid #deebf7;
}

.form-boletim-container .boletim-table-wrap {
    overflow-x: auto;
    border-radius: 0;
    border: 1px solid #cfe5d9;
}

.form-boletim-container .boletim-table {
    width: 100%;
    min-width: 680px;
    table-layout: fixed;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0;
    font-size: 13px;
}

.form-boletim-container .boletim-table th,
.form-boletim-container .boletim-table td {
    border: none !important;
    margin: 0 !important;
    padding: 10px 9px;
    text-align: left !important;
    font-weight: normal !important;
    vertical-align: top;
    color: #25384f;
    overflow-wrap: anywhere;
    word-break: normal;
}

.form-boletim-container .boletim-table th:nth-child(1),
.form-boletim-container .boletim-table td:nth-child(1) {
    width: 43%;
}

.form-boletim-container .boletim-table th:nth-child(2),
.form-boletim-container .boletim-table td:nth-child(2) {
    width: 31%;
}

.form-boletim-container .boletim-table th:nth-child(3),
.form-boletim-container .boletim-table td:nth-child(3) {
    width: 10%;
    text-align: center !important;
}

.form-boletim-container .boletim-table th:nth-child(4),
.form-boletim-container .boletim-table td:nth-child(4) {
    width: 16%;
}

.form-boletim-container .boletim-table th {
    background: #5fb882;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-boletim-container .boletim-table tbody tr:nth-child(even) {
    background: #f3faf5;
}

.form-boletim-container .boletim-table tbody tr:hover {
    background: #e7f6ec;
}

.form-boletim-container .boletim-col-nota {
    text-align: center;
    font-weight: 700;
    min-width: 70px;
}

.form-boletim-container .boletim-prova-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.form-boletim-container .boletim-prova-status.prova-aprovado {
    color: #136a36;
    background: #d8f5e5;
    border-color: #91d4b5;
}

.form-boletim-container .boletim-prova-status.prova-reprovado {
    color: #901427;
    background: #ffe0e5;
    border-color: #ee9dad;
}

.form-boletim-container .boletim-prova-status.prova-nao-realizou,
.form-boletim-container .boletim-prova-status.prova-neutro {
    color: #5c6470;
    background: #edf1f6;
    border-color: #cbd3dd;
}

.form-boletim-container .boletim-empty {
    font-size: 14px;
    color: #5f6f82;
    padding: 12px;
    border-radius: 8px;
    background: #f7f9fc;
    border: 1px dashed #cdd9e8;
}

/* Isolamento contra estilos globais do Elementor */
.form-boletim-container a,
.form-boletim-container a:hover,
.form-boletim-container button,
.form-boletim-container button:hover {
    text-decoration: none !important;
}

.form-boletim-container .btn-pdf,
.form-boletim-container .btn-secondary,
.form-boletim-container .btn-primary {
    color: #fff !important;
}

.form-boletim-container .btn-pdf:hover,
.form-boletim-container .btn-secondary:hover,
.form-boletim-container .btn-primary:hover {
    color: #fff !important;
}

@media (max-width: 1024px) {
    .form-boletim-container,
    .form-boletim-container.showing-results {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .form-boletim-container .boletim-curso-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-boletim-container .boletim-status {
        max-width: 100%;
    }
}
