.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 24px);
    height: 70px;
    margin: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    overflow: hidden;
}

.brand-logo--compact {
    display: none;
    max-width: 28px;
}

.table-wrapper td.action-cell,
.table-wrapper th.action-cell {
    width: 50px;
    max-width: none;
    overflow: visible;
}

.empty-state {
    text-align: center;
    padding: 32px !important;
    color: var(--gray-500);
}

.table-page {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 100%;
    padding: 24px;
    background: var(--surface-200);
    overflow: visible;
}

.table-card {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: auto;
    max-height: none;
    background: #fff;
    border: 1px solid #e5ebef;
    border-radius: 18px;
    box-shadow:
        0 8px 28px rgba(23, 32, 46, 0.055),
        0 2px 5px rgba(23, 32, 46, 0.025);
    overflow: hidden;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    flex-shrink: 0;
}

.table-toolbar > .d-flex {
    flex-shrink: 0;
}

.table-toolbar .table-search {
    margin-right: 0;
}

.table-toolbar .table-search-input {
    background: #fff;
    border-color: #dce4e9;
    border-radius: 10px;
}

.table-toolbar .toolbar-button {
    width: 136px;
    min-width: 136px;
    border-radius: 10px;
    background: #0b7d90;
    border-color: #0b7d90;
}

.table-toolbar .toolbar-button:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
}

.table-toolbar .btn-download {
    background: #fff;
    border-color: #dce4e9;
    color: #445268;
}

.table-toolbar .btn-download:hover {
    background: var(--gray-100);
    border-color: #b9c7cf;
    color: #314053;
}

.table-toolbar .toolbar-button .icon {
    fill: none;
}

.table-card .table-wrapper {
    flex: 1 0 auto;
    min-height: 260px;
    width: calc(100% - 40px);
    margin-inline: 20px;
    border: 1px solid #cbd5de;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: visible;
}

.table-card .table {
    margin: 0;
}

.table-card .table th {
    background: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
}

.table-card .table th,
.table-card .table td {
    padding: 12px 20px !important;
    border-color: #d5dee6;
}

.table-card .table td {
    color: #314053;
    font-size: 0.9rem;
}

.table-card .table tbody tr:last-child td {
    border-bottom: 0;
}

.table-card .table td:nth-child(2) {
    font-weight: 500;
}

.table-card .table td:nth-child(3) {
    color: #5a6576;
}

.table-card .table .action-cell {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    padding: 8px 10px !important;
    text-align: center;
    position: sticky;
    z-index: 2;
    background: #fff;
}

.table-card .table .action-cell:last-child {
    right: 0;
}

.table-card .table .action-cell:nth-last-child(2) {
    right: 54px;
}

.table-card .table .action-cell:nth-last-child(3) {
    right: 108px;
}

.table-card .table thead .action-cell {
    z-index: 3;
    background: #f8fafc;
}

.table-card .table :not(.action-cell) + .action-cell {
    box-shadow: -10px 0 12px -12px rgba(23, 32, 46, 0.45);
}

.table-card .table-hover tbody tr:hover td {
    background: #f8fbfc;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #657787;
    text-decoration: none;
}

.table-action-form {
    margin: 0;
}

.table-action-form .table-action {
    border: 0;
    background: transparent;
}

.table-action:hover {
    color: var(--primary-700);
    background: #eaf5f7;
}

.table-action--delete:hover {
    color: #b42336;
    background: #fff0f1;
}

.table-action--disabled,
.table-action--disabled:hover {
    border: 0;
    background: transparent;
    color: #9aa7b4;
    cursor: default;
    opacity: 0.75;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 16px 20px;
}

.table-count {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7c8b;
}

.table-count strong {
    font-weight: 500;
    color: #445268;
}

@media (max-width: 900px) {
    .table-toolbar .toolbar-button {
        width: 40px;
        min-width: 40px;
        padding: 0;
    }
}

@media (max-width: 600px) {
    .table-page {
        padding: 16px;
    }
    .table-toolbar.toolbar {
        padding: 16px;
        gap: 10px;
    }
    .table-card {
        border-radius: 14px;
    }
    .table-card .table-wrapper {
        width: calc(100% - 32px);
        margin-inline: 16px;
    }
    .table-footer {
        padding: 14px 16px;
    }
}

.form-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: var(--surface-200);
}

.form-card {
    width: 100%;
    max-width: 540px;
    flex-shrink: 0;
    margin: auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5ebef;
    border-radius: 18px;
    box-shadow:
        0 12px 36px rgba(23, 32, 46, 0.07),
        0 2px 6px rgba(23, 32, 46, 0.03);
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.full-width {
    grid-column: 1/-1;
}

.form-card .col-form-label {
    padding: 0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #314053;
}

.form-card .form-control,
.form-card .form-select {
    min-height: 44px;
    padding: 10px 12px;
    border-color: #dce4e9;
    border-radius: 9px;
}

.form-card .form-select {
    padding-right: 36px;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(15, 142, 162, 0.12);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #edf1f4;
    padding-top: 24px;
    margin-top: 28px;
}

.form-card .form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 9px;
    font-weight: 500;
}

.form-card .btn-secondary {
    color: #445268;
    background: #fff;
    border-color: #dce4e9;
}

.form-card .btn-secondary:hover {
    background: var(--gray-100);
    border-color: #b9c7cf;
}

.delete-form h2 {
    margin: 0 0 18px;
    color: #0b253f;
    font-size: 1.45rem;
    font-weight: 700;
}

.field-error {
    color: #b42336;
    font-size: 0.875rem;
    margin: 4px 0 0;
}

.company-filter {
    position: relative;
}

.company-filter-toggle {
    background: #fff !important;
    border-color: #dce4e9 !important;
    color: #445268 !important;
}

.company-filter-toggle .company-filter-icon {
    flex: 0 0 auto;
}

.company-filter-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 32, 46, 0.14);
}

.company-filter-search {
    width: 100%;
    height: 38px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #dce4e9;
    border-radius: 8px;
    color: #314053;
}

.company-filter-search:focus {
    outline: none;
    border-color: #0b7d90;
    box-shadow: 0 0 0 3px rgba(15, 142, 162, 0.12);
}

.company-filter-menu fieldset {
    min-width: 0;
    max-height: 240px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    overflow: auto;
}

.company-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 7px;
    color: #314053;
    font-size: 0.86rem;
    line-height: 1.35;
    cursor: pointer;
}

.company-filter-option:hover,
.company-filter-option:focus-within {
    background: #eef8fa;
}

.company-filter-option input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #0b7d90;
}

.company-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.company-filter-actions .btn {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.table-toolbar .company-filter {
    flex: 0 0 auto;
}

.filter-drawer-control {
    flex: 0 0 auto;
}

.filter-drawer-toggle {
    position: relative;
}

.filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110020;
    background: rgba(12, 27, 43, 0.36);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.filter-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.filter-drawer-panel {
    position: fixed;
    z-index: 110030;
    top: 0;
    right: 0;
    width: min(470px, 100vw);
    height: 100dvh;
    background: #fff;
    border-left: 1px solid #d9e3eb;
    box-shadow: -18px 0 48px rgba(16, 42, 76, 0.18);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 240ms ease, visibility 240ms ease;
}

.filter-drawer-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.filter-drawer-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
    min-height: 88px;
    padding: 20px 24px;
    border-bottom: 1px solid #dfe8ed;
    background: #fff;
}

.filter-drawer-header h2 {
    margin: 0;
    color: #102a4c;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.filter-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce4e9;
    border-radius: 50%;
    background: #fff;
    color: #445268;
}

.filter-drawer-close:hover,
.filter-drawer-close:focus-visible {
    border-color: var(--primary-500);
    background: #eef8fa;
    color: var(--primary-700);
}

.filter-drawer-close svg {
    width: 19px;
    height: 19px;
}

.filter-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.filter-drawer-group {
    padding: 22px 0;
    border-bottom: 1px solid #e6edf2;
}

.filter-drawer-group:last-child {
    border-bottom: 0;
}

.filter-drawer-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.filter-drawer-group-heading h3,
.filter-drawer-section-title {
    margin: 0;
    color: #1f344f;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.filter-drawer-group-heading span {
    color: #718096;
    font-size: 0.76rem;
}

.filter-drawer-search {
    width: 100%;
    height: 42px;
    margin-bottom: 10px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #dce4e9;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 12px center;
    color: #314053;
}

.filter-drawer-search:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(15, 142, 162, 0.12);
}

.filter-drawer-group fieldset {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.filter-drawer-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    color: #314053;
    font-size: 0.9rem;
    line-height: 1.35;
    cursor: pointer;
}

.filter-drawer-option:hover,
.filter-drawer-option:focus-within {
    background: #eef8fa;
}

.filter-drawer-option input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--primary-500);
}

.filter-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    flex: 0 0 auto;
    padding: 16px 24px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #dfe8ed;
    background: #fff;
    box-shadow: 0 -10px 28px rgba(16, 42, 76, 0.06);
}

.filter-drawer-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
}

body.filter-drawer-open .contenido-shadow {
    overflow: hidden;
}

.filter-chip-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-active-filters {
    flex-shrink: 0;
    margin: 0 20px 12px;
}

.filter-chip-list-label {
    color: #718096;
    font-size: 0.76rem;
    font-weight: 700;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 9px 5px 11px;
    border: 1px solid #b9dbe1;
    border-radius: 999px;
    background: #eef9fb;
    color: #0a6675;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    border-color: var(--primary-500);
    background: #dff3f6;
    color: #075766;
}

.filter-chip svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    .filter-drawer-panel {
        width: 100vw;
        border-left: 0;
    }

    .filter-drawer-header {
        min-height: 78px;
        padding: 16px 18px;
    }

    .filter-drawer-body {
        padding: 4px 18px 24px;
    }

    .filter-drawer-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .table-active-filters {
        margin-right: 16px;
        margin-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .filter-drawer-panel,
    .filter-drawer-backdrop {
        transition: none;
    }
}

.confirmation-modal {
    width: min(460px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #173550;
    box-shadow: 0 24px 70px rgba(8, 28, 42, 0.28);
}

.confirmation-modal::backdrop {
    background: rgba(8, 28, 42, 0.58);
}

.confirmation-modal__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 18px;
}

.confirmation-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dff3f6;
    color: var(--primary-700);
}

.confirmation-modal[data-tone="danger"] .confirmation-modal__icon {
    background: #f8d7da;
    color: #a12538;
}

.confirmation-modal__icon svg {
    width: 24px;
    height: 24px;
}

.confirmation-modal__body {
    min-width: 0;
}

.confirmation-modal__body h2 {
    margin: 1px 0 8px;
    font-size: 1.15rem;
}

.confirmation-modal__body p {
    margin: 0;
    color: #526477;
    line-height: 1.55;
    white-space: pre-line;
}

.confirmation-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 22px;
    border-top: 1px solid #e5ebef;
}

@media (max-width: 480px) {
    .confirmation-modal__content {
        padding: 20px 18px 16px;
    }

    .confirmation-modal__actions {
        padding: 14px 18px 18px;
    }
}

.field-help {
    display: block;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 5px;
}

.linked-information-alert {
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #e3a6ad;
    border-radius: 12px;
    background: #fff2f3;
    color: #8f1d2c;
}

.linked-information-alert summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 14px;
    list-style: none;
    cursor: pointer;
}

.linked-information-alert summary::-webkit-details-marker {
    display: none;
}

.linked-information-alert__icon,
.linked-information-alert__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.linked-information-alert__icon svg {
    width: 21px;
    height: 21px;
}

.linked-information-alert__toggle {
    width: 28px;
    height: 28px;
    margin-left: auto;
}

.linked-information-alert__toggle svg {
    width: 19px;
    height: 19px;
}

.linked-information-alert[open] summary {
    border-bottom: 1px solid #edc0c5;
    background: #fde8ea;
}

.linked-information-alert ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 13px 18px 15px 42px;
    color: #6f2530;
    font-size: .88rem;
    line-height: 1.45;
}

[aria-invalid="true"],
.form-card [aria-invalid="true"] {
    border-color: #b42336;
}

.edia_oportunidad-context {
    display: flex;
    gap: 44px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d9e3eb;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 32, 46, 0.045);
}

.edia_oportunidad-context div {
    min-width: 0;
}

.edia_oportunidad-context span {
    display: block;
    margin-bottom: 6px;
    color: #7b8aa0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.edia_oportunidad-context strong {
    display: block;
    color: #102a4c;
    font-size: 0.92rem;
    line-height: 1.35;
}

.edia_oportunidad-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    flex: 0 0 auto;
    min-height: 60px;
    background: #fff;
    border: 1px solid #d9e3eb;
    border-radius: 16px;
    overflow: hidden;
}

.edia_oportunidad-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 14px 16px;
    color: #66748a;
    text-decoration: none;
    border-right: 1px solid #d9e3eb;
}

.edia_oportunidad-step:last-child {
    border-right: 0;
}

.edia_oportunidad-step > span {
    grid-row: 1/3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #8ea0b3;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
}

.edia_oportunidad-step strong {
    min-width: 0;
    color: #66748a;
    font-size: 0.86rem;
    line-height: 1.2;
}

.edia_oportunidad-step small {
    min-width: 0;
    color: #8290a3;
    font-size: 0.7rem;
    line-height: 1.2;
}

.edia_oportunidad-step.is-active {
    background: #eef9fb;
    color: #087d92;
}

.edia_oportunidad-step.is-active > span {
    border-color: #087d92;
    background: #087d92;
    color: #fff;
}

.edia_oportunidad-step.is-active strong {
    color: #087d92;
}

.edia_oportunidad-step.is-future {
    cursor: not-allowed;
}

.process-participant-filter .company-filter-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    border-radius: 9px;
    font-weight: 500;
}

.process-participant-filter .company-filter-toggle > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-participant-filter .company-filter-menu {
    width: min(420px, 100%);
}

.process-participant-filter[data-invalid="true"] .company-filter-toggle {
    border-color: #b42336 !important;
}

@media (max-width: 767px) {
    .form-card {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .edia_oportunidad-context {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .edia_oportunidad-steps {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .edia_oportunidad-step {
        border-right: 0;
        border-bottom: 1px solid #d9e3eb;
    }
    .edia_oportunidad-step:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 600px) {
    .form-actions .btn {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .edia_oportunidad-context {
        gap: 28px;
        padding: 18px;
    }
    .edia_oportunidad-steps {
        flex-shrink: 0;
    }
}
