@import './layout/shell.css';
@import './layout/sidebar.css';
@import './components/preloader.css';
@import './components/toast.css';
@import './components/avatar.css';
@import './components/detail-page.css';
@import './components/document-editor.css';
@import './components/flow-wizard.css';
@import './components/metrics.css';
@import './components/record-profile.css';
@import './components/schedule-grid.css';
@import './components/wizard.css';
@import './components/benefits-formulas.css';
@import './components/prospection.css';
@import './dashboard/dashboard.css';
@import './tables/tables.css';
@import './tables/data-table.css';
@import './forms/forms.css';

.success-panel {
    border: 1px solid #b7e8cb;
    background: #edfdf3;
    border-radius: 12px;
}

#global-modal .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

#global-modal #frame_modal {
    max-height: calc(100vh - 2rem);
    min-height: 0;
}

#global-modal #frame_modal > [data-modal-size],
#global-modal #frame_modal > form,
#global-modal #frame_modal > .modal-dialog {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    min-height: 0;
}

#global-modal #frame_modal > .modal-dialog {
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
}

#global-modal #frame_modal > .modal-dialog > .modal-content {
    flex: 1 1 auto;
    min-height: 0;
}

#global-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
}

.convention-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 2.5rem;
    min-height: 620px;
}

#frame_modal:has(.convention-edit-form) {
    display: flex;
    min-height: 0;
}

.convention-edit-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem);
    min-height: 0;
}

.convention-edit-form .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.convention-edit-form .modal-header,
.convention-edit-form .modal-footer {
    flex: 0 0 auto;
}

.convention-edit-left {
    border-right: 1px solid #dce5ee;
    padding: 1rem 2.5rem 1rem .5rem;
}

.convention-edit-right {
    padding: 1rem .5rem 1rem 0;
}

.convention-source-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    color: #26313d;
    display: flex;
    gap: 1.3rem;
    margin-bottom: 1.5rem;
    padding: 1.8rem;
    text-align: left;
    width: 100%;
}

.convention-source-card.is-selected {
    background: #effdf3;
    border-color: #b9efc8;
}

.convention-source-radio {
    border: 2px solid #c7d0dc;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    width: 30px;
}

.convention-source-card.is-selected .convention-source-radio {
    border: 9px solid #0b4772;
}

.convention-formula-reminder {
    align-items: center;
    background: #eef3fa;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    min-height: 180px;
    padding: 2.2rem;
}

.convention-formula-name {
    color: #9aa7b3;
    font-size: 1.8rem;
    font-weight: 800;
}

.convention-formula-amount {
    color: #9aa7b3;
    font-size: 3.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.convention-edit-switch .form-check-input {
    height: 32px;
    width: 64px;
}

.convention-schedule {
    border: 1px solid #dce5ee;
    border-radius: 18px;
    padding: 1.6rem;
}

.convention-amount-group.is-valid .form-control,
.convention-amount-group.is-valid .convention-row-state {
    border-color: #5fca7a;
}

.convention-amount-group.is-invalid .form-control,
.convention-amount-group.is-invalid .convention-row-state {
    border-color: #ff6f98;
}

.convention-row-state {
    background: #fff;
    color: #5fca7a;
    font-size: 1.4rem;
    min-width: 52px;
}

.convention-amount-group.is-invalid .convention-row-state {
    color: #ff6f98;
}

.convention-edit-footer {
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .convention-edit-grid {
        grid-template-columns: 1fr;
    }

    .convention-edit-left {
        border-right: 0;
        border-bottom: 1px solid #dce5ee;
        padding-right: .5rem;
        padding-bottom: 2rem;
    }

    .convention-formula-reminder {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .convention-formula-amount {
        font-size: 2.5rem;
    }
}

.convention-document-page {
    color: #26313d;
}

.convention-document-hero {
    margin-bottom: 0;
}

.convention-document-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 45, 75, .06);
    margin: 0 2rem 3rem;
    padding: 1.5rem 1.8rem 2rem;
}

.convention-document-tab {
    align-items: center;
    border-bottom: 2px solid #0a4773;
    color: #0a4773;
    display: inline-flex;
    font-weight: 600;
    gap: .5rem;
    margin-bottom: 2.5rem;
    padding: .7rem .5rem 1rem;
}

.convention-editor-wrap {
    margin: 0 auto;
    max-width: 960px;
}

.convention-editor-wrap .tox,
.convention-template-editor .tox {
    border-radius: 10px;
}

.convention-document-sidebar {
    background: #fff;
    min-height: 100%;
    padding: .5rem 0 .5rem 1rem;
}

.convention-document-metadata {
    padding: 1rem 0;
}

.convention-signer-row {
    align-items: center;
    border-bottom: 1px solid #e5edf4;
    display: flex;
    gap: .85rem;
    padding: .9rem 0;
}

.convention-signer-avatar {
    align-items: center;
    background: #e8f6ef;
    border-radius: 50%;
    color: #0a4773;
    display: inline-flex;
    flex: 0 0 40px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.convention-signer-avatar.is-partner {
    background: #0a4773;
    color: #fff;
}

.convention-pdf-viewer {
    background: #2f2f2f;
    border-radius: 4px;
    margin: 0 auto;
    min-height: 620px;
    overflow: hidden;
}

.convention-pdf-viewer iframe {
    border: 0;
    display: block;
    height: 720px;
    width: 100%;
}

@media (max-width: 1199.98px) {
    .convention-document-card {
        margin-inline: 0;
    }

    .convention-document-sidebar {
        border-top: 1px solid #e5edf4;
        padding-left: 0;
        padding-top: 1.5rem;
    }
}

.partnership-show {
    --partnership-border: #dde7f0;
    --partnership-muted: #66788a;
    --partnership-soft: #f3f7fb;
    --partnership-primary: #0b4772;
}

.partnership-hero {
    padding: 28px 32px;
    border-radius: 18px 18px 0 0;
    background: #f3f7fb;
}

.partnership-logo {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partnership-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partnership-logo span {
    color: var(--partnership-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.partnership-title {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #26313d;
}

.partnership-subtitle {
    margin-top: 4px;
    color: var(--partnership-muted);
    font-size: 1rem;
}

.partnership-panel {
    background: #fff;
    padding: 0 28px 42px;
}

.partnership-tabs {
    gap: 18px;
    border-bottom: 1px solid var(--partnership-border);
}

.partnership-tabs .nav-link {
    border: 0;
    border-radius: 0;
    color: #526b80;
    padding: 18px 10px 16px;
}

.partnership-tabs .nav-link.active {
    color: var(--partnership-primary);
    border-bottom: 3px solid var(--partnership-primary);
    background: transparent;
}

.partnership-tab-content {
    padding: 32px 0 0;
}

.partnership-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px 28px;
    margin-bottom: 30px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(33, 55, 75, .06);
}

.partnership-kpi {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid var(--partnership-border);
}

.partnership-kpi:first-child {
    padding-left: 0;
}

.partnership-kpi:last-child {
    border-right: 0;
    padding-right: 0;
}

.partnership-kpi i {
    color: #60798f;
    font-size: 1.5rem;
}

.partnership-kpi-label {
    color: #3d4d5c;
    font-weight: 700;
}

.partnership-kpi-value {
    color: #1e2a35;
    font-weight: 700;
    font-size: 1.15rem;
}

.partnership-section,
.partnership-side-card {
    border: 1px solid var(--partnership-border);
    border-radius: 14px;
    background: #fff;
    padding: 28px;
    margin-bottom: 28px;
}

.partnership-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.partnership-section-header h2,
.partnership-side-card h2 {
    margin: 0;
    color: #2d3a45;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
}

.partnership-section-header h2 i,
.partnership-side-card h2 i {
    margin-right: 8px;
    color: #587287;
}

.partnership-inner-table {
    padding: 16px;
    border-radius: 14px;
    background: #f5f7fa;
}

.partnership-inner-table table {
    overflow: hidden;
    border: 1px solid var(--partnership-border);
    border-radius: 12px;
    background: #fff;
}

.partnership-document-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-top: 24px;
    border-radius: 14px;
    background: #f5f7fa;
}

.partnership-document-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffd3e1;
    color: #ff5f92;
    font-size: 1.35rem;
}

.partnership-round-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #48cf74;
    border-radius: 50%;
    color: #48cf74;
}

.partnership-round-action.is-disabled {
    opacity: .45;
}

.partnership-empty-document,
.partnership-loading {
    padding: 18px 20px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #8a9baa;
}

.partnership-side-card h2 {
    margin-bottom: 22px;
}

.partnership-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.partnership-status-badge {
    min-width: 74px;
    display: inline-flex;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 800;
}

.partnership-status-success {
    background: #dcf8e7;
    color: #31bd64;
}

.partnership-status-warning {
    background: #fff3cf;
    color: #d9a700;
}

.partnership-status-info {
    background: #d9eaf2;
    color: #155173;
}

.partnership-activity-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--partnership-border);
}

.partnership-activity-item:last-child {
    border-bottom: 0;
}

.partnership-activity-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0d6c5;
    color: #7a3c22;
    font-size: .75rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .partnership-kpis {
        grid-template-columns: 1fr;
    }

    .partnership-kpi {
        border-right: 0;
        border-bottom: 1px solid var(--partnership-border);
        padding: 16px 0;
    }

    .partnership-kpi:last-child {
        border-bottom: 0;
    }
}
