/* Adaptaciones para páginas independientes y acceso; estilos compartidos del origen. */
:focus-visible {
    outline: 3px solid var(--primary-700);
    outline-offset: 3px;
}
.header {
    flex-shrink: 0;
}
.app-nav {
    flex-shrink: 0;
}
.toolbar {
    flex-shrink: 0;
}
.table-search {
    min-width: 0;
}
.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;
}
.app-nav .nav-item {
    flex-shrink: 0;
}
.app-nav .logo {
    flex-shrink: 0;
}
.app-nav .brand {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    transition:
        height 0.6s ease-in-out,
        margin 0.6s ease-in-out;
}
.app-nav .brand-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition:
        opacity 0.3s ease-in-out,
        transform 0.6s ease-in-out;
}
.app-nav .brand-logo--full {
    width: 150px;
    max-width: none;
    transition-delay: 0.3s, 0s;
}
.app-nav .brand-logo--compact {
    display: block;
    width: 28px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}
@media (min-width: 601px) {
    .nav-collapsed .app-nav .brand {
        height: 64px;
        margin-top: 0;
        margin-bottom: 0;
    }
    .nav-collapsed .app-nav .brand-logo--full {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.65);
        transition-delay: 0s, 0s;
    }
    .nav-collapsed .app-nav .brand-logo--compact {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        transition-delay: 0.3s, 0s;
    }
    .nav-collapsed .app-nav .nav-item {
        padding-left: 16.5px;
    }
}
.header-avatar {
    background: var(--primary-100);
    color: var(--primary-700);
}
.account-menu {
    position: relative;
}
.account-menu summary {
    list-style: none;
}
.account-menu summary::-webkit-details-marker {
    display: none;
}
.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: white;
    min-width: 180px;
    border: 1px solid var(--border-color-gray);
    border-radius: 10px;
    box-shadow: 0 14px 30px var(--shadow-100);
    padding: 8px;
    z-index: 20;
}
.account-action {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
}
.account-action:hover {
    background: var(--gray-100);
}
.table-wrapper {
    overflow-x: auto;
}
.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);
}
.nav-collapsed .nav-item {
    padding-left: 14px;
    padding-right: 10px;
}
/* Tarjeta compartida para listados. */
.table-page {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 24px;
    background: var(--surface-200);
    overflow: auto;
}
.table-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    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;
    width: calc(100% - 40px);
    margin-inline: 20px;
    border: 1px solid #cbd5de;
    border-radius: 10px;
}
.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: 52px;
    padding: 8px 10px !important;
    text-align: center;
}
.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;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0f3f6;
    color: #566574;
    font-size: 0.78rem;
    font-weight: 500;
}
.role-badge--consultor {
    background: #e6f4f5;
    color: #0a6675;
}
.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;
    }
}
/* Estilos compartidos de los formularios de gestión y acceso. */
.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-primary {
    background: #0b7d90;
    border-color: #0b7d90;
}
.form-card .btn-primary:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
}
.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;
}
.edia_oportunidad-filter-menu {
    width: min(430px, calc(100vw - 32px));
}
.edia_oportunidad-filter-section-title {
    margin: 0 0 8px;
    color: #314053;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.edia_oportunidad-filter-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5eaee;
}
.edia_oportunidad-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: #445268;
    font-size: 0.82rem;
    font-weight: 600;
}
.edia_oportunidad-filter-field input {
    width: 100%;
    height: 38px;
    padding: 7px 9px;
    border: 1px solid #dce4e9;
    border-radius: 8px;
    background: #fff;
    color: #314053;
    font: inherit;
    font-weight: 400;
}
.edia_oportunidad-filter-field input:focus {
    outline: none;
    border-color: #0b7d90;
    box-shadow: 0 0 0 3px rgba(15, 142, 162, 0.12);
}
.edia_oportunidad-filter-field .field-error {
    font-weight: 400;
}
.edia_oportunidad-filter-companies {
    margin-bottom: 8px;
}
.edia_oportunidad-company-selector {
    margin-bottom: 12px;
}
.edia_oportunidad-company-selector .company-filter-toggle {
    overflow: hidden;
}
.edia_oportunidad-company-selector [data-company-selector-summary] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.edia_oportunidad-company-selector .company-filter-menu {
    top: calc(100% + 6px);
}
.password-help-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
}
.password-form-actions {
    align-items: stretch;
}
.flow-status {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #b9dfe5;
    border-radius: 9px;
    background: #eef9fb;
    color: #174b55;
}
.password-status-card p {
    margin-top: 16px;
}
.password-status-card .form-actions form {
    margin: 0;
}
.field-help {
    display: block;
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 5px;
}
[aria-invalid="true"],
.form-card [aria-invalid="true"] {
    border-color: #b42336;
}
.edia_oportunidad-mode-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 24px;
    background: var(--surface-200);
    overflow: auto;
}
.edia_oportunidad-context,
.mode-panel {
    background: #fff;
    border: 1px solid #d9e3eb;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(23, 32, 46, 0.045);
}
.edia_oportunidad-context {
    display: flex;
    gap: 44px;
    padding: 18px;
}
.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;
}
.mode-panel {
    padding: 18px;
}
.mode-panel-heading h2 {
    margin: 0 0 4px;
    color: #0b253f;
    font-size: 1.08rem;
    font-weight: 700;
}
.mode-panel-heading p {
    margin: 0;
    color: #506580;
    font-size: 0.86rem;
}
.mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.mode-options form {
    margin: 0;
}
.mode-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 98px;
    padding: 20px 48px 20px 18px;
    text-align: left;
    background: #fff;
    border: 1px solid #d5e0e8;
    border-radius: 14px;
    color: #102a4c;
    cursor: pointer;
}
.mode-option:hover {
    border-color: #8fcdd8;
    background: #fbfeff;
}
.mode-option:focus-visible {
    outline: 3px solid rgba(11, 125, 144, 0.3);
    outline-offset: 3px;
}
.mode-option.is-selected {
    border-color: #00a6c2;
    box-shadow: 0 0 0 1px #00a6c2;
    background: #fff;
}
.mode-option-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.mode-option-content strong {
    font-size: 1rem;
    font-weight: 700;
}
.mode-option-content span {
    color: #506580;
    font-size: 0.86rem;
    line-height: 1.45;
}
.mode-option-indicator {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #b7c8d4;
    border-radius: 50%;
}
.mode-option.is-selected .mode-option-indicator {
    border-color: #008fa7;
}
.mode-option.is-selected .mode-option-indicator::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #008fa7;
}
.login-form h1 {
    margin: 20px 0 28px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #314053;
}
.guest-page {
    background: var(--surface-200);
}
.guest-main {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border-color-gray);
    border-radius: 20px;
    box-shadow: 0 12px 32px var(--shadow-100);
}
.login-card h1 {
    margin: 24px 0 16px;
    font-size: 1.4rem;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 12px;
    z-index: 200000;
    background: white;
    padding: 8px 16px;
}
.skip-link:focus {
    top: 8px;
}
@media (max-width: 767px) {
    .form-card {
        padding: 24px;
    }
}
@media (max-width: 767px) {
    .edia_oportunidad-context {
        flex-direction: column;
    }
    .mode-options {
        grid-template-columns: 1fr;
    }
}
.edia_oportunidad-process-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 24px;
    background: var(--surface-200);
    overflow: visible;
}
.edia_oportunidad-process-form-page {
    min-height: auto;
    padding-bottom: 36px;
}
.contenido-shadow:has(.edia_oportunidad-process-page) {
    background: var(--surface-200);
}
.edia_oportunidad-process-page .table-page {
    flex: 1 0 auto;
    min-height: auto;
    padding: 0;
    overflow: visible;
}
.edia_oportunidad-process-page .table-card {
    flex: 1 0 auto;
    min-height: auto;
    max-height: none;
    overflow: hidden;
}
.edia_oportunidad-process-page .table-wrapper {
    flex: 1 0 auto;
    min-height: 260px;
    overflow-x: auto;
    overflow-y: visible;
}
.edia_oportunidad-process-page .table-footer {
    margin-top: auto;
}
.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-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    background: #e9f7f3;
    color: #007a5a;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.process-table th,
.process-table td {
    min-width: 140px;
}
.process-table th.action-cell,
.process-table td.action-cell {
    min-width: 52px;
}
.process-form {
    max-width: 980px;
    margin: 0 auto;
}
.process-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.process-form textarea.form-control {
    resize: vertical;
}
.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-menu {
    width: min(420px, 100%);
}
.process-participant-filter[data-invalid="true"] .company-filter-toggle {
    border-color: #b42336 !important;
}
@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;
    }
    .process-form-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .header-actions {
        min-width: 0;
    }
    .nav-mobile-toggle {
        width: 32px;
        height: 32px;
    }
    .app-nav .nav-label {
        max-width: 170px;
        opacity: 1;
        transform: none;
    }
    .toolbar {
        gap: 0;
    }
    .form-actions .btn {
        flex: 1;
    }
}
@media (max-width: 600px) {
    .edia_oportunidad-filter-dates {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .edia_oportunidad-process-page {
        min-height: auto;
        padding: 24px 16px;
    }
    .edia_oportunidad-process-form-page {
        padding-bottom: 36px;
    }
    .edia_oportunidad-context {
        gap: 28px;
        padding: 18px;
    }
    .edia_oportunidad-steps {
        flex-shrink: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 600px) {
    .nav-toggle-wrapper {
        display: none !important;
    }
}
