/* =====================================================
   BESTAX — Plataforma Inversión Fiscal
   bestax.css  — Bootstrap 5 complement
   ===================================================== */

:root {
    --bx-blue: #2f7edb;
    --bx-blue-dark: #1a5fa8;
    --bx-blue-light: #ebf3fb;
    --bx-gray-d: #3f4a4f;
    --bx-gray-dd: #2e3438;
    --bx-gray-l: #f5f6f8;
    --bx-gray-m: #e0e3e7;
    --bx-green: #16a34a;
    --bx-green-l: #dcfce7;
    --bx-amber: #d97706;
    --bx-amber-l: #fef3c7;
    --bx-red: #dc2626;
    --bx-red-l: #fee2e2;
    --sidebar-w: 220px;
    --topbar-h: 54px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bx-gray-l);
    color: var(--bx-gray-d);
    font-size: 14px;
    margin: 0;
}

/* ── TOPBAR ── */
.bx-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--bx-gray-m);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 10px;
}
.bx-brand {
    font-size: 19px;
    font-weight: 800;
    color: var(--bx-gray-dd);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.bx-brand span {
    color: var(--bx-blue);
}
.bx-search {
    position: relative;
    display: flex;
    align-items: center;
}
.bx-search-icon {
    position: absolute;
    left: 9px;
    color: #aaa;
    font-size: 13px;
    pointer-events: none;
}
.bx-search-input {
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    padding: 6px 10px 6px 30px;
    font-size: 13px;
    width: 210px;
    outline: none;
    background: var(--bx-gray-l);
    transition:
        width 0.2s,
        border-color 0.15s;
    color: var(--bx-gray-dd);
}
.bx-search-input:focus {
    border-color: var(--bx-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
    width: 260px;
}
.bx-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--bx-gray-m);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
    transition:
        border-color 0.12s,
        color 0.12s;
    padding: 0;
    position: relative;
}
.bx-icon-btn:hover {
    border-color: var(--bx-blue);
    color: var(--bx-blue);
}
.bx-notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--bx-red);
    border-radius: 50%;
    border: 2px solid #fff;
}
.bx-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bx-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.12s;
    flex-shrink: 0;
}
.bx-avatar-btn:hover {
    border-color: var(--bx-blue-dark);
}
.bx-avatar-btn.dropdown-toggle::after {
    display: none;
}

/* ── SIDEBAR ── */
.bx-sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #fff;
    border-right: 1px solid var(--bx-gray-m);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1030;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bx-sidebar-brand-row {
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--bx-gray-m);
    font-size: 10px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.bx-sidebar-section {
    font-size: 10px;
    color: #aaa;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 16px 4px;
    flex-shrink: 0;
}
.bx-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    color: var(--bx-gray-d);
    font-size: 13px;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition:
        background 0.1s,
        color 0.1s;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}
.bx-nav-item i {
    width: 15px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}
.bx-nav-item:hover {
    background: var(--bx-gray-l);
    color: var(--bx-blue-dark);
    text-decoration: none;
}
.bx-nav-item.active {
    background: var(--bx-blue-light);
    color: var(--bx-blue);
    border-left-color: var(--bx-blue);
    font-weight: 600;
}
.bx-sidebar-footer {
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1px solid var(--bx-gray-m);
    flex-shrink: 0;
}
.bx-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bx-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.bx-user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--bx-gray-dd);
}
.bx-user-role {
    font-size: 11px;
    color: #999;
}
.bx-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1029;
}
.bx-overlay.show {
    display: block;
}

/* ── MAIN ── */
.bx-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
}
.bx-page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--bx-gray-m);
    height: 52px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bx-page-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bx-gray-dd);
    white-space: nowrap;
}
.bx-page-sub {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bx-content {
    padding: 20px 24px;
}

/* ── BUTTONS ── */
.btn-bx {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--bx-gray-m);
    background: #fff;
    color: var(--bx-gray-d);
    transition:
        border-color 0.12s,
        color 0.12s,
        background 0.12s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}
.btn-bx:hover {
    border-color: var(--bx-blue);
    color: var(--bx-blue);
    text-decoration: none;
}
.btn-bx-primary {
    background: var(--bx-blue);
    color: #fff !important;
    border-color: var(--bx-blue);
}
.btn-bx-primary:hover {
    background: var(--bx-blue-dark);
    border-color: var(--bx-blue-dark);
    color: #fff !important;
}
.btn-bx-sm {
    padding: 5px 10px;
    font-size: 11px;
}
.btn-bx:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.w-100 {
    width: 100%;
}
.justify-content-center {
    justify-content: center;
}

/* ── CARDS ── */
.bx-card {
    background: #fff;
    border: 1px solid var(--bx-gray-m);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.bx-card.mb-0 {
    margin-bottom: 0;
}
.bx-card.h-100 {
    height: 100%;
}
.bx-card-hd {
    padding: 13px 16px;
    border-bottom: 1px solid var(--bx-gray-m);
    display: flex;
    align-items: center;
    gap: 10px;
}
.bx-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--bx-gray-dd);
}
.bx-card-body {
    padding: 16px;
}

/* ── STATS ── */
.bx-stat {
    background: #fff;
    border: 1px solid var(--bx-gray-m);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
}
.bx-stat-label {
    font-size: 10.5px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 6px;
}
.bx-stat-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--bx-gray-dd);
    line-height: 1.1;
    margin-bottom: 4px;
}
.bx-stat-trend {
    font-size: 12px;
    color: var(--bx-green);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ── BADGES ── */
.bx-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}
.bx-blue {
    background: var(--bx-blue-light);
    color: var(--bx-blue-dark);
}
.bx-green {
    background: var(--bx-green-l);
    color: #15803d;
}
.bx-amber {
    background: var(--bx-amber-l);
    color: #92400e;
}
.bx-red {
    background: var(--bx-red-l);
    color: #991b1b;
}
.bx-gray {
    background: var(--bx-gray-l);
    color: #555;
}

/* ── ALERTS ── */
.bx-alert {
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    font-size: 13px;
    align-items: flex-start;
}
.bx-alert-blue {
    background: var(--bx-blue-light);
    color: var(--bx-blue-dark);
    border: 1px solid rgba(47, 126, 219, 0.25);
}
.bx-alert-amber {
    background: var(--bx-amber-l);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.25);
}
.bx-alert-red {
    background: var(--bx-red-l);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.bx-alert-green {
    background: var(--bx-green-l);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}
.bx-link {
    color: var(--bx-blue);
    text-decoration: underline;
    cursor: pointer;
}

/* ── TABS ── */
.bx-tabs {
    display: flex;
    border-bottom: 1px solid var(--bx-gray-m);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bx-tabs::-webkit-scrollbar {
    display: none;
}
.bx-tab {
    padding: 9px 16px;
    font-size: 12px;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.12s;
    white-space: nowrap;
    flex-shrink: 0;
}
.bx-tab:hover {
    color: var(--bx-blue);
}
.bx-tab.active {
    color: var(--bx-blue);
    border-bottom-color: var(--bx-blue);
    font-weight: 600;
}

/* ── BAR ROWS (territory chart) ── */
.bx-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bx-bar-row:last-child {
    margin-bottom: 0;
}
.bx-bar-lbl {
    font-size: 12px;
    color: var(--bx-gray-d);
    width: 110px;
    flex-shrink: 0;
}
.bx-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bx-gray-m);
    border-radius: 3px;
    overflow: hidden;
    min-width: 0;
}
.bx-bar-fill {
    height: 100%;
    background: var(--bx-blue);
    border-radius: 3px;
}
.bx-bar-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--bx-gray-dd);
    width: 16px;
    text-align: right;
    flex-shrink: 0;
}

/* ── TABLE ── */
.bx-tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 480px;
}
.bx-table thead th {
    background: var(--bx-gray-l);
    padding: 9px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid var(--bx-gray-m);
    white-space: nowrap;
}
.bx-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--bx-gray-m);
    vertical-align: middle;
}
.bx-table tbody tr:hover {
    background: #fafbfc;
}
.bx-table tbody tr:last-child td {
    border-bottom: none;
}
.bx-clickable {
    cursor: pointer;
}
.bx-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── FORM ── */
.bx-form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--bx-gray-d);
}
.bx-req {
    color: var(--bx-red);
}
.bx-form-control {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    font-size: 13px;
    color: var(--bx-gray-dd);
    outline: none;
    transition:
        border-color 0.12s,
        box-shadow 0.12s;
    background: #fff;
    font-family: inherit;
}
.bx-form-control:focus {
    border-color: var(--bx-blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
}
select.bx-form-control {
    appearance: auto;
}
.bx-form-hint {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}
.bx-search-inline {
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: border-color 0.12s;
    font-family: inherit;
}
.bx-search-inline:focus {
    border-color: var(--bx-blue);
}

/* ── CHECKLIST ── */
.bx-chk {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 13px;
}
.bx-chk:last-child {
    margin-bottom: 0;
}
.bx-chk.ok {
    background: var(--bx-green-l);
    color: #15803d;
}
.bx-chk.warn {
    background: var(--bx-amber-l);
    color: #92400e;
}
.bx-chk.err {
    background: var(--bx-red-l);
    color: #991b1b;
}

/* ── STEPS ── */
.bx-steps {
    display: flex;
    align-items: center;
}
.bx-step {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.bx-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.bx-step.done .bx-step-num {
    background: var(--bx-green);
    color: #fff;
}
.bx-step.active .bx-step-num {
    background: var(--bx-blue);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.2);
}
.bx-step.todo .bx-step-num {
    background: var(--bx-gray-m);
    color: #666;
}
.bx-step-lbl {
    font-size: 11px;
    font-weight: 600;
    margin-left: 7px;
    white-space: nowrap;
}
.bx-step.active .bx-step-lbl {
    color: var(--bx-blue);
}
.bx-step.done .bx-step-lbl {
    color: var(--bx-green);
}
.bx-step.todo .bx-step-lbl {
    color: #aaa;
}
.bx-step-line {
    flex: 1;
    height: 2px;
    background: var(--bx-gray-m);
    margin: 0 10px;
    min-width: 20px;
}

/* ── PILLS ── */
.bx-terr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.bx-terr-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--bx-gray-m);
    cursor: pointer;
    background: #fff;
    color: #666;
    transition: all 0.12s;
    user-select: none;
}
.bx-terr-pill:hover {
    border-color: var(--bx-blue);
    color: var(--bx-blue);
}
.bx-terr-pill.on {
    background: var(--bx-blue);
    color: #fff;
    border-color: var(--bx-blue);
}

/* ── DROPZONE ── */
.bx-dropzone {
    border: 2px dashed var(--bx-gray-m);
    border-radius: 6px;
    padding: 28px 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}
.bx-dropzone:hover {
    border-color: var(--bx-blue);
}

/* ── SIMULATOR ── */
.bx-sim-result {
    background: var(--bx-blue-light);
    border: 1px solid rgba(47, 126, 219, 0.2);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 14px;
}
.bx-sim-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--bx-blue);
}
.bx-sim-lbl {
    font-size: 12px;
    color: var(--bx-blue-dark);
    margin-top: 4px;
}
.bx-result-box {
    background: var(--bx-gray-l);
    border-radius: 6px;
    padding: 12px;
}
.bx-result-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--bx-gray-dd);
}
.bx-result-lbl {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── TIMELINE ── */
.bx-timeline {
    padding-left: 20px;
    position: relative;
}
.bx-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bx-gray-m);
}
.bx-tl-item {
    position: relative;
    padding-bottom: 14px;
}
.bx-tl-item:last-child {
    padding-bottom: 0;
}
.bx-tl-dot {
    position: absolute;
    left: -16px;
    top: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bx-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--bx-blue);
}
.bx-tl-dot.green {
    background: var(--bx-green);
    box-shadow: 0 0 0 2px var(--bx-green);
}
.bx-tl-date {
    font-size: 10px;
    color: #999;
}
.bx-tl-text {
    font-size: 12px;
    margin-top: 2px;
}

/* ── DOCS ── */
.bx-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    margin-bottom: 6px;
}
.bx-doc-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--bx-blue-light);
    color: var(--bx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.bx-doc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bx-gray-dd);
}
.bx-doc-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* ── STRUCTURES ── */
.bx-pill-item {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.bx-pill-blue {
    background: var(--bx-blue-light);
    color: var(--bx-blue-dark);
}
.bx-pill-green {
    background: var(--bx-green-l);
    color: #15803d;
}
.bx-pill-amber {
    background: var(--bx-amber-l);
    color: #92400e;
}
.bx-struct-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.bx-struct-table th {
    background: var(--bx-blue);
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.bx-struct-table td {
    padding: 7px 10px;
    border-bottom: 1px solid var(--bx-gray-m);
    vertical-align: top;
    font-size: 12px;
}
.bx-struct-table tr:hover td {
    background: #fafbfc;
}
.terr-hd {
    background: var(--bx-blue-light) !important;
    font-weight: 700;
    color: var(--bx-blue-dark);
}

/* ── ADMIN ── */
.bx-rule-item {
    padding: 9px 12px;
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
}

/* ── MISC ── */
.bx-section-hd {
    font-size: 13px;
    font-weight: 700;
    color: var(--bx-gray-dd);
    margin-bottom: 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bx-blue);
    display: inline-block;
}
code {
    background: var(--bx-gray-l);
    border: 1px solid var(--bx-gray-m);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px;
    color: var(--bx-gray-dd);
}
.ms-auto {
    margin-left: auto !important;
}
.min-w-0 {
    min-width: 0;
}

/* ════════════════════════ RESPONSIVE ════════════════ */
@media (min-width: 992px) {
    .bx-sidebar {
        transform: none !important;
    }
    .bx-main {
        margin-left: var(--sidebar-w);
    }
}
@media (max-width: 991.98px) {
    .bx-sidebar {
        transform: translateX(-100%);
    }
    .bx-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    }
    .bx-main {
        margin-left: 0;
    }
    .bx-content {
        padding: 16px;
    }
    .bx-page-header {
        padding: 0 16px;
    }
    .bx-page-sub {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .bx-topbar {
        padding: 0 12px;
        gap: 8px;
    }
    .bx-stat-val {
        font-size: 22px;
    }
    .bx-sim-val {
        font-size: 28px;
    }
    .bx-content {
        padding: 12px;
    }
    .bx-step-lbl {
        display: none;
    }
    .bx-doc-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ── ADMIN-SPECIFIC ADDITIONS ──────────────────────── */
/* Modal body scrollable on small screens */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}
/* Textarea inherits font */
textarea.bx-form-control {
    resize: vertical;
    min-height: 60px;
}
/*------------- css starts for investors page ----------------------- */
/* ── CARDS / SECTIONS ── */
.bx-section-card {
    background: #fff;
    border: 1px solid var(--bx-gray-m);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bx-section-hd {
    padding: 14px 20px;
    border-bottom: 1px solid var(--bx-gray-m);
}

.bx-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bx-blue);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.bx-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bx-gray-dd);
}

.bx-section-body {
    padding: 20px;
}

/* ── FORM CONTROLS ── */
.bx-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--bx-gray-d);
    margin-bottom: 4px;
}

.bx-label .req {
    color: var(--bx-red);
    margin-left: 2px;
}

.bx-label .opt {
    font-size: 10px;
    color: #aaa;
    font-weight: 400;
    margin-left: 4px;
}

.bx-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}

.form-control,
.form-select {
    font-size: 13px;
    color: var(--bx-gray-dd);
    border-color: var(--bx-gray-m);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bx-blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
}

.form-control::placeholder {
    color: #c0c0c0;
}

/* ── ALERTS ── */
.alert-bx-blue {
    background: var(--bx-blue-l);
    color: var(--bx-blue-dark);
    border: 1px solid rgba(47, 126, 219, 0.2);
    font-size: 12.5px;
}

.alert-bx-amber {
    background: var(--bx-amber-l);
    color: #92400e;
    border: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 12.5px;
}

/* ── RADIO OPTIONS ── */
.bx-radio-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--bx-gray-d);
    transition: background 0.1s;
}

.bx-radio-opt:hover {
    background: var(--bx-gray-l);
}

.bx-radio-opt.selected {
    background: var(--bx-blue-l);
    color: var(--bx-blue);
}

.bx-radio-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bx-gray-m);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s;
}

.bx-radio-opt.selected .bx-radio-dot {
    border-color: var(--bx-blue);
    background: var(--bx-blue);
}

.bx-radio-opt.selected .bx-radio-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: block;
}

/* ── CONDITIONAL PANEL ── */
.bx-cond {
    display: none;
    background: var(--bx-gray-l);
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    padding: 16px;
    margin: 8px 0 4px;
}

.bx-cond.show {
    display: block;
}

.bx-cond-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--bx-blue);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 12px;
}

/* ── TYPE SELECTOR CARDS ── */
.bx-type-card {
    background: #fff;
    border: 2px solid var(--bx-gray-m);
    border-radius: 10px;
    padding: 20px 22px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    user-select: none;
}

.bx-type-card:hover {
    border-color: #b3ceef;
}

.bx-type-card.selected {
    border-color: var(--bx-blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
}

.bx-type-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bx-gray-m);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    transition:
        background 0.15s,
        border-color 0.15s;
}

.bx-type-card.selected .bx-type-indicator {
    background: var(--bx-blue);
    border-color: var(--bx-blue);
}

.bx-type-card-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bx-type-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bx-gray-dd);
    margin-top: 6px;
}

.bx-type-card-sub {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* ── STEPS ── */
.bx-steps {
    display: flex;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.bx-step {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.bx-step-n {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bx-step.done .bx-step-n {
    background: var(--bx-green);
    color: #fff;
}

.bx-step.active .bx-step-n {
    background: var(--bx-blue);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.18);
}

.bx-step.todo .bx-step-n {
    background: var(--bx-gray-m);
    color: #777;
}

.bx-step-lbl {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.bx-step.active .bx-step-lbl {
    color: var(--bx-blue);
}

.bx-step.done .bx-step-lbl {
    color: var(--bx-green);
}

.bx-step.todo .bx-step-lbl {
    color: #aaa;
}

.bx-step-line {
    flex: 1;
    height: 2px;
    background: var(--bx-gray-m);
    margin: 0 8px;
    min-width: 20px;
}

.bx-step.done + .bx-step-line {
    background: var(--bx-green);
}

/* ── SUMMARY ── */
.bx-sum-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--bx-gray-l);
    font-size: 13px;
}

.bx-sum-row:last-child {
    border-bottom: none;
}

.bx-sum-key {
    width: 200px;
    flex-shrink: 0;
    color: #888;
    font-size: 12px;
}

.bx-sum-val {
    color: var(--bx-gray-dd);
    font-weight: 500;
}

/* ── BADGES ── */
.badge-jur {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-fis {
    background: var(--bx-gray-l);
    color: #555;
    border: 1px solid var(--bx-gray-m);
}

/* ── TABLE (inversores list) ── */
.bx-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.7px;
    border-bottom: 1px solid var(--bx-gray-m);
    background: var(--bx-gray-l);
}

.bx-table tbody tr:hover {
    background: var(--bx-blue-l);
    cursor: pointer;
}

.bx-table td {
    font-size: 13px;
    color: var(--bx-gray-d);
    vertical-align: middle;
}

/* ── TOAST ── */
#bxToast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--bx-green);
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 9999;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .bx-sidebar {
        transform: translateX(-100%);
    }

    .bx-sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .bx-main {
        margin-left: 0;
    }

    .bx-hamburger {
        display: block;
    }

    .bx-steps .bx-step-lbl {
        display: none;
    }

    .bx-sum-key {
        width: 130px;
    }

    .bx-section-body {
        padding: 14px;
    }
}

@media (max-width: 576px) {
    .bx-topbar-title {
        font-size: 13px;
    }
}

/* producsers css*/
.bx-producer-type-card {
    background: #fff;
    border: 1px solid var(--bx-gray-m);
    border-radius: 10px;
    padding: 18px 20px;
    height: 100%;
    transition: box-shadow 0.15s;
}
.bx-producer-type-card:hover {
    box-shadow: 0 4px 16px rgba(47, 126, 219, 0.09);
}

/* ── PRODUCER TYPE BADGE (coloured pill icon) ── */
/* Circular icon chip used in category cards (AV / ESP / MIX) */
.bx-type-chip {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    margin-bottom: 10px;
}
.bx-type-chip.av {
    background: #dbeafe;
    color: #1d4ed8;
}
.bx-type-chip.esp {
    background: #fce7f3;
    color: #be185d;
}
.bx-type-chip.mix {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── ACTIVE COUNT BADGE (top-right of type card) ── */
/* Small pill showing "X activas" count in type cards */
.bx-type-active-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.bx-type-active-count.av {
    background: #dbeafe;
    color: #1d4ed8;
}
.bx-type-active-count.esp {
    background: #fce7f3;
    color: #be185d;
}
.bx-type-active-count.mix {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── PRODUCER TYPE CARD TITLE ── */
.bx-producer-type-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bx-gray-dd);
    margin-bottom: 2px;
}
.bx-producer-type-sub {
    font-size: 11px;
    color: #9aa;
    margin-bottom: 14px;
}

/* ── PRODUCER TYPE CARD DIVIDER ── */
.bx-producer-type-card hr {
    border-color: var(--bx-gray-m);
    margin: 14px 0;
}

/* ── PRODUCER TYPE CARD METRICS ── */
.bx-producer-type-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--bx-gray-d);
    padding: 3px 0;
}
.bx-producer-type-metric-val {
    font-weight: 700;
    color: var(--bx-gray-dd);
}

/* ── PRODUCER DIRECTORY HEADER ── */
/* Top area of the directory table card */
.bx-dir-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--bx-gray-m);
    gap: 12px;
    flex-wrap: wrap;
}
.bx-dir-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--bx-gray-dd);
}
.bx-dir-count-hint {
    font-size: 11.5px;
    color: #9aa;
    margin-left: auto;
    white-space: nowrap;
}

/* ── PRODUCER SEARCH INPUT (inside page-header bar) ── */
.bx-prod-search {
    position: relative;
    display: flex;
    align-items: center;
}
.bx-prod-search-icon {
    position: absolute;
    left: 9px;
    color: #aaa;
    font-size: 12px;
    pointer-events: none;
}
.bx-prod-search-input {
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    padding: 6px 10px 6px 28px;
    font-size: 12px;
    width: 190px;
    outline: none;
    background: #fff;
    color: var(--bx-gray-dd);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.bx-prod-search-input:focus {
    border-color: var(--bx-blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
    width: 220px;
}

/* ── PRODUCER TYPE SELECT (filter dropdown in header) ── */
.bx-prod-type-select {
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    background: #fff;
    color: var(--bx-gray-d);
    cursor: pointer;
    transition: border-color 0.15s;
}
.bx-prod-type-select:focus {
    border-color: var(--bx-blue);
    box-shadow: 0 0 0 3px rgba(47, 126, 219, 0.1);
}

/* ── PRODUCER AVATAR (initials chip in table) ── */
/* Circular letter avatar in the directory table rows */
.bx-prod-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.bx-prod-avatar.av {
    background: #dbeafe;
    color: #1d4ed8;
}
.bx-prod-avatar.esp {
    background: #fce7f3;
    color: #be185d;
}
.bx-prod-avatar.mix {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── PRODUCER NAME + LOCATION IN TABLE ── */
.bx-prod-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--bx-gray-dd);
    line-height: 1.3;
}
.bx-prod-location {
    font-size: 11px;
    color: #9aa;
}

/* ── TIPO BADGE (Audiovisual / Espectáculo / Mixta) ── */
/* Coloured type pills in the directory table */
.bx-tipo-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.bx-tipo-badge.av {
    background: #dbeafe;
    color: #1d4ed8;
}
.bx-tipo-badge.esp {
    background: #fce7f3;
    color: #be185d;
}
.bx-tipo-badge.mix {
    background: #ede9fe;
    color: #6d28d9;
}

/* ── ESTADO BADGE (Activa / En revisión) ── */
/* Status pills reusing base .bx-badge colour helpers */
/* No extra rules needed — uses .bx-badge.bx-green / .bx-badge.bx-amber */

/* ── VER ACTION BUTTON ── */
.bx-prod-ver-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid var(--bx-gray-m);
    border-radius: 6px;
    background: #fff;
    color: var(--bx-gray-d);
    cursor: pointer;
    transition:
        border-color 0.12s,
        color 0.12s,
        background 0.12s;
    white-space: nowrap;
}
.bx-prod-ver-btn:hover {
    border-color: var(--bx-blue);
    color: var(--bx-blue);
    background: var(--bx-blue-light);
}

/* ── STAT CARD TREND (positive green) ── */
.bx-stat-trend-green {
    font-size: 12px;
    color: var(--bx-green);
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

/* ── TABS WRAPPER for Productoras directory ── */
/* Reuses .bx-tabs / .bx-tab from bestax.css — no overrides needed */

/* ── RESPONSIVE: stack type cards vertically on small screens ── */
@media (max-width: 767px) {
    .bx-producer-type-card {
        margin-bottom: 0;
    }
    .bx-dir-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bx-dir-count-hint {
        margin-left: 0;
    }
    .bx-prod-search-input {
        width: 150px;
    }
}

/* ── RESPONSIVE: hide less-important table columns on mobile ── */
@media (max-width: 575px) {
    .bx-prod-search-input {
        width: 120px;
    }
    .bx-prod-type-select {
        max-width: 130px;
    }
}
