:root {
    --bolsa-blue: #155fb8;
    --bolsa-blue-dark: #0f4f9d;
    --bolsa-red: #c40000;
    --bolsa-bg: #eef3f9;
    --bolsa-text: #1f2937;
    --bolsa-muted: #667085;
    --bolsa-border: #d9e2ef;
    --bolsa-soft: #f8fafc;
}

body.area-bolsa-page {
    background: radial-gradient(circle at top left, rgba(21, 95, 184, .14), transparent 34%), var(--bolsa-bg);
    color: var(--bolsa-text);
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.bolsa-header {
    background: rgba(255, 255, 255, .88);
    border-top: 5px solid var(--bolsa-red);
    border-bottom: 1px solid rgba(217, 226, 239, .9);
    backdrop-filter: blur(16px);
}

.bolsa-logo { max-width: 128px; height: auto; }
.bolsa-kicker { color: var(--bolsa-red); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.bolsa-title { color: var(--bolsa-blue); font-size: 23px; font-weight: 900; margin: 0; letter-spacing: -.3px; }
.bolsa-subtitle { color: var(--bolsa-muted); font-size: 13px; margin-top: 2px; }
.bolsa-header-bar { height: 8px; background: linear-gradient(90deg, var(--bolsa-blue), #38a3ef); }

.bolsa-page-wrap { padding-top: 34px; padding-bottom: 56px; }

.bolsa-card,
.bolsa-sidebar,
.bolsa-content,
.bolsa-step-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(15, 35, 75, .12);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.bolsa-card-topbar { height: 6px; background: linear-gradient(90deg, var(--bolsa-blue), #38a3ef); }
.bolsa-login-card { max-width: 560px; margin: 0 auto; }
.bolsa-login-icon,
.bolsa-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #eaf2ff;
    color: var(--bolsa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    flex: 0 0 auto;
}

.form-label { color: #344054; font-weight: 800; }
.form-control,
.form-select {
    min-height: 48px;
    border-radius: 14px;
    border-color: #d6deea;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--bolsa-blue);
    box-shadow: 0 0 0 .2rem rgba(21, 95, 184, .12);
}

.btn-bolsa-primary,
.btn-primary {
    background: var(--bolsa-blue);
    border-color: var(--bolsa-blue);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
}
.btn-bolsa-primary:hover,
.btn-primary:hover { background: var(--bolsa-blue-dark); border-color: var(--bolsa-blue-dark); }
.btn-bolsa-light,
.btn-light { background: #eef2f7; border-color: #e1e8f2; color: #475467; border-radius: 14px; font-weight: 800; }
.btn-bolsa-outline { border: 1px solid #cbd7e8; color: #344054; background: #fff; border-radius: 14px; font-weight: 800; }
.btn-bolsa-outline:hover { border-color: var(--bolsa-blue); color: var(--bolsa-blue); background: #eaf2ff; }
.btn-bolsa-logout { background: #eef2f7; color: #475467; border: 1px solid #e1e8f2; border-radius: 14px; padding: 10px 18px; font-weight: 800; }
.btn-bolsa-logout:hover { background: var(--bolsa-red); border-color: var(--bolsa-red); color: #fff; }

.bolsa-side-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    color: #344054;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 8px;
    transition: .2s ease;
}
.bolsa-side-menu a.active,
.bolsa-side-menu a:hover { background: #eaf2ff; color: var(--bolsa-blue); }

.bolsa-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.bolsa-protocol-box { background: #eafaf1; border: 1px solid #bcebd0; color: #146c43; border-radius: 18px; padding: 12px 16px; min-width: 160px; text-align: center; }
.bolsa-protocol-box small { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.bolsa-protocol-box strong { font-size: 15px; line-height: 1; }

.info-box,
.doc-box,
.status-box {
    background: var(--bolsa-soft);
    border: 1px solid #e4ebf5;
    border-radius: 18px;
    padding: 16px;
    height: 100%;
}
.info-label { color: var(--bolsa-muted); font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.info-value { color: #25324b; font-weight: 500; line-height: 1.35; }
.section-title { color: var(--bolsa-blue); font-size: 16px; font-weight: 900; margin: 24px 0 14px; border-bottom: 1px solid #e1e7ef; padding-bottom: 9px; }

.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.status-ok { background: #eafaf1; color: #146c43; }
.status-warning { background: #fff7ed; color: #9a3412; }
.status-danger { background: #fee2e2; color: #991b1b; }
.status-info { background: #eaf2ff; color: var(--bolsa-blue); }
.status-muted { background: #eef2f7; color: #475467; }

.progress { height: 12px; border-radius: 999px; background: #e8eef7; }
.progress-bar { background: linear-gradient(90deg, var(--bolsa-blue), #38a3ef); border-radius: 999px; }

.bolsa-step-card { padding: 18px; height: 100%; }
.step-icon { width: 46px; height: 46px; border-radius: 16px; background: #eaf2ff; color: var(--bolsa-blue); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.step-title { font-weight: 900; color: #25324b; margin-bottom: 4px; }
.step-text { color: var(--bolsa-muted); font-size: 14px; margin: 0; }

.doc-title { color: #25324b; font-weight: 900; margin-bottom: 6px; }
.doc-meta { color: var(--bolsa-muted); font-size: 12px; margin-top: 8px; }
.doc-observation { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 14px; padding: 12px; font-size: 13px; margin-top: 12px; }
.alert { border-radius: 10px; font-size: 12px; }

.captcha-box {
    background: #f8fafc;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    padding: 14px;
}

.captcha-img {
    display: block;
    width: 100%;
    max-width: 160px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dce8f7;
}

.captcha-refresh {
    color: var(--bolsa-blue);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.captcha-refresh:hover { color: var(--bolsa-red); }


@media (max-width: 991px) {
    .bolsa-header-main { text-align: center; }
    .bolsa-logo { max-width: 118px; }
    .bolsa-sidebar { margin-bottom: 20px; }
}

@media (max-width: 767px) {
    .bolsa-heading { flex-direction: column; }
    .bolsa-protocol-box { width: 100%; }
    .bolsa-title { font-size: 23px; }
    .bolsa-page-wrap { padding-top: 22px; }
    .bolsa-content .card-body,
    .bolsa-sidebar .card-body,
    .bolsa-card .card-body { padding: 1.15rem !important; }
    .bolsa-side-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .bolsa-side-menu a { margin-bottom: 0; justify-content: center; text-align: center; font-size: 13px; }
}

.bolsa-modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 35, 75, .24);
    overflow: hidden;
}

.escolha-solicitacao-card {
    cursor: pointer;
    transition: .18s ease;
}

.escolha-solicitacao-card:hover {
    border-color: rgba(21, 95, 184, .35);
    background: #f5f9ff;
}

.escolha-solicitacao-card .form-check-input:checked {
    background-color: var(--bolsa-blue);
    border-color: var(--bolsa-blue);
}
