body {
    font-family: var(--ecip-font-family-base);
    background: var(--ecip-color-bg);
    color: var(--ecip-color-primary);
    min-height: 100vh;
    margin: 0;
    background-attachment: fixed;
}

html, body {
    height: 100%;
}

.wrapper {
    background: transparent !important;
}

body.ecip-auth-body {
    background: linear-gradient(135deg, var(--ecip-color-primary) 0%, var(--ecip-color-secondary) 100%);
    background-attachment: fixed;
}

.ecip-auth {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ecip-surface,
.ecip-card,
.panel,
.card {
    background: var(--ecip-color-surface);
    border: 1px solid var(--ecip-color-border);
    border-radius: var(--ecip-radius-md);
    box-shadow: var(--ecip-shadow-sm);
}

.ecip-content-wrap {
    padding-top: 24px;
    padding-bottom: 32px;
}

.ecip-page-header {
    margin-bottom: 20px;
}

.ecip-page-header__title {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ecip-color-primary);
}

.ecip-page-header__subtitle {
    margin-top: 6px;
    color: var(--ecip-color-muted);
}

.ecip-page-header__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ecip-breadcrumb {
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.ecip-breadcrumb > li {
    display: inline-flex;
    align-items: center;
    color: #5f6f86;
}

.ecip-breadcrumb > li > a {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf3ff;
    border: 1px solid #d6e2f7;
    color: #174c91;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--ecip-transition-fast), border-color var(--ecip-transition-fast), color var(--ecip-transition-fast);
}

.ecip-breadcrumb > li > a:hover,
.ecip-breadcrumb > li > a:focus {
    background: #dfeafb;
    border-color: #bfd3f3;
    color: #0f3f7d;
    text-decoration: none;
}

.ecip-breadcrumb > li.active {
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe5f2;
    color: #314a68;
    font-weight: 600;
}

.ecip-breadcrumb > li + li:before {
    color: var(--ecip-color-muted);
    content: "\203A";
    margin-right: 8px;
    margin-left: 2px;
    font-weight: 700;
}

.btn-primary,
.ecip-btn-primary {
    background-color: var(--ecip-color-primary);
    border-color: var(--ecip-color-primary);
    color: #fff;
    border-radius: var(--ecip-radius-sm);
}

.btn-primary:hover,
.ecip-btn-primary:hover,
.btn-primary:focus {
    background-color: var(--ecip-color-primary-strong);
    border-color: var(--ecip-color-primary-strong);
}

.btn-default,
.ecip-btn-secondary {
    border-radius: var(--ecip-radius-sm);
    border-color: var(--ecip-color-border);
    color: var(--ecip-color-primary);
}

.ecip-btn-ghost {
    border: 1px dashed var(--ecip-color-secondary);
    color: var(--ecip-color-secondary);
    background: transparent;
    border-radius: var(--ecip-radius-sm);
}

.form-control,
.select2-container .select2-choice {
    border-color: var(--ecip-color-border);
    border-radius: var(--ecip-radius-sm);
    transition: border-color var(--ecip-transition-fast), box-shadow var(--ecip-transition-fast);
}

.form-control:focus,
.select2-container-active .select2-choice {
    border-color: var(--ecip-color-accent);
    box-shadow: 0 0 0 3px rgba(15, 106, 180, 0.15);
}

.table,
.table-bordered {
    background: var(--ecip-color-surface);
    border-color: var(--ecip-color-border);
}

.table > thead > tr > th {
    border-bottom: 2px solid var(--ecip-color-border);
    color: var(--ecip-color-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .04em;
}

.badge,
.label {
    border-radius: 999px;
    font-weight: 600;
    padding: 6px 10px;
}

.ecip-badge-status--success { background: #e8f5ee; color: var(--ecip-color-success); }
.ecip-badge-status--warning { background: #fff3df; color: var(--ecip-color-warning); }
.ecip-badge-status--danger { background: #fde9e9; color: var(--ecip-color-danger); }
.ecip-badge-status--info { background: #e7f1fb; color: var(--ecip-color-accent); }

.ecip-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ecip-kpi-card {
    padding: 14px;
}

.ecip-kpi-card__label {
    color: var(--ecip-color-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ecip-kpi-card__value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.ecip-alert {
    border-radius: var(--ecip-radius-md);
    border-left: 4px solid var(--ecip-color-secondary);
    background: #f0f5ff;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ecip-state {
    text-align: center;
    border: 1px dashed var(--ecip-color-border);
    background: var(--ecip-color-surface);
    border-radius: var(--ecip-radius-md);
    padding: 28px 20px;
    color: var(--ecip-color-muted);
    margin: 14px 0;
}

.ecip-skeleton {
    position: relative;
    min-height: 14px;
    background: #e7edf8;
    border-radius: 8px;
    overflow: hidden;
}

.ecip-skeleton:after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 120px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
    animation: ecip-shimmer 1.3s infinite;
}

@keyframes ecip-shimmer {
    100% { transform: translateX(300px); }
}

.ecip-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ecip-home-section {
    background: var(--ecip-color-surface);
    border: 1px solid var(--ecip-color-border);
    border-radius: var(--ecip-radius-md);
    padding: 18px;
    box-shadow: var(--ecip-shadow-sm);
}

.ecip-home-section--full {
    grid-column: 1 / -1;
}

.ecip-home-section__title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ecip-color-primary);
}

.ecip-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.ecip-action-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 128px;
    padding: 16px;
    text-decoration: none;
    background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #d7e2f4;
    position: relative;
    overflow: hidden;
}

.ecip-action-card::after {
    content: '';
    position: absolute;
    inset: auto -28px -44px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 119, 203, 0.18), rgba(36, 119, 203, 0));
    transition: transform var(--ecip-transition-fast);
}

.ecip-action-card:hover,
.ecip-action-card:focus {
    text-decoration: none;
    border-color: var(--ecip-color-accent);
}

.ecip-action-card:hover::after,
.ecip-action-card:focus::after {
    transform: scale(1.2);
}

.ecip-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 106, 180, 0.12);
    color: var(--ecip-color-accent);
}

.ecip-action-card__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ecip-action-card__title {
    color: var(--ecip-color-primary);
    font-weight: 700;
    font-size: 15px;
}

.ecip-action-card__desc {
    color: var(--ecip-color-muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: auto;
}

.ecip-home-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecip-home-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--ecip-color-border);
}

.ecip-home-list li:last-child {
    border-bottom: 0;
}

.ecip-home-muted {
    color: var(--ecip-color-muted);
}

.ecip-home-role-badge {
    margin-left: 6px;
    margin-top: 2px;
    background: #f0f5ff;
    color: var(--ecip-color-accent);
}

.ecip-home-text {
    color: var(--ecip-color-muted);
    margin-bottom: 10px;
}

.ecip-home-link {
    font-weight: 600;
}

.ecip-help-card {
    background: linear-gradient(165deg, #ffffff 0%, #f2f7ff 100%);
    border: 1px solid #d7e2f4;
    border-radius: var(--ecip-radius-md);
    padding: 14px;
    box-shadow: var(--ecip-shadow-sm);
}

.ecip-help-card__text {
    margin-bottom: 14px;
}

.ecip-help-card__links {
    display: grid;
    gap: 10px;
}

.ecip-help-link {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    border: 1px solid rgba(15, 106, 180, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color var(--ecip-transition-fast), box-shadow var(--ecip-transition-fast), transform var(--ecip-transition-fast);
}

.ecip-help-link:hover,
.ecip-help-link:focus {
    text-decoration: none;
    border-color: var(--ecip-color-accent);
    box-shadow: 0 8px 20px rgba(15, 106, 180, 0.12);
    transform: translateY(-1px);
}

.ecip-help-link__title {
    display: block;
    color: var(--ecip-color-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.ecip-help-link__desc {
    display: block;
    color: var(--ecip-color-muted);
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .ecip-home-grid {
        grid-template-columns: 1fr;
    }

    .ecip-home-section--full {
        grid-column: auto;
    }
}

/* ==========================================
   ECIP Premium reusable components
   ========================================== */

.ecip-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.ecip-container.ecip-container--wide {
    max-width: 1320px;
}

.ecip-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ecip-page-header__main {
    flex: 1 1 320px;
    min-width: 0;
}

.ecip-page-header__actions {
    flex: 0 0 auto;
    align-self: center;
}

.ecip-section {
    margin-top: 0;
    margin-bottom: 24px;
}

.ecip-section:last-child {
    margin-bottom: 0;
}

.ecip-card {
    border-radius: var(--ecip-radius-md);
    box-shadow: var(--ecip-shadow-sm);
    transition: transform var(--ecip-transition-fast), box-shadow var(--ecip-transition-fast);
}

.ecip-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--ecip-shadow-md);
}

.ecip-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.ecip-grid > * {
    grid-column: span 12;
}

.ecip-btn-primary,
.ecip-btn-secondary,
.ecip-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: var(--ecip-radius-sm);
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--ecip-transition-fast), border-color var(--ecip-transition-fast), color var(--ecip-transition-fast), box-shadow var(--ecip-transition-fast), opacity var(--ecip-transition-fast);
}

.ecip-btn-primary {
    background: var(--ecip-color-primary);
    border-color: var(--ecip-color-primary);
    color: #fff;
}

.ecip-btn-primary:hover,
.ecip-btn-primary:focus {
    background: var(--ecip-color-primary-strong);
    border-color: var(--ecip-color-primary-strong);
    color: #fff;
}

.ecip-btn-secondary {
    background: var(--ecip-color-surface);
    border-color: var(--ecip-color-border);
    color: var(--ecip-color-primary);
}

.ecip-btn-secondary:hover,
.ecip-btn-secondary:focus {
    background: #f3f6fd;
    border-color: #bbc9e4;
    color: var(--ecip-color-primary);
}

.ecip-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ecip-color-primary);
}

.ecip-btn-ghost:hover,
.ecip-btn-ghost:focus {
    background: rgba(11, 61, 145, 0.08);
    color: var(--ecip-color-primary-strong);
}

.ecip-btn-primary:focus-visible,
.ecip-btn-secondary:focus-visible,
.ecip-btn-ghost:focus-visible,
.ecip-table a:focus-visible,
.ecip-empty__cta:focus-visible {
    outline: 2px solid var(--ecip-color-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(15, 106, 180, 0.22);
}

.ecip-btn-primary[disabled],
.ecip-btn-secondary[disabled],
.ecip-btn-ghost[disabled],
.ecip-btn-primary.is-disabled,
.ecip-btn-secondary.is-disabled,
.ecip-btn-ghost.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.ecip-btn-primary.is-loading,
.ecip-btn-secondary.is-loading,
.ecip-btn-ghost.is-loading {
    position: relative;
    color: transparent;
}

.ecip-btn-primary.is-loading::after,
.ecip-btn-secondary.is-loading::after,
.ecip-btn-ghost.is-loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ecip-btn-spin .65s linear infinite;
    color: inherit;
}

.ecip-btn-primary.is-loading::after {
    color: #fff;
}

@keyframes ecip-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.ecip-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.ecip-badge--success { background: #e8f5ee; color: #0c5f34; border-color: #b9e2cb; }
.ecip-badge--warning { background: #fff3df; color: #8c5200; border-color: #f0cf98; }
.ecip-badge--danger { background: #fde9e9; color: #a12525; border-color: #f0b7b7; }
.ecip-badge--info { background: #e7f1fb; color: #0f4f93; border-color: #bfd8f4; }
.ecip-badge--muted { background: #f2f4f8; color: #4b5568; border-color: #d9deea; }

.ecip-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ecip-color-surface);
    border: 1px solid var(--ecip-color-border);
    border-radius: var(--ecip-radius-md);
    overflow: hidden;
}

.ecip-table thead th {
    padding: 12px 14px;
    background: #f8faff;
    color: var(--ecip-color-primary);
    border-bottom: 1px solid var(--ecip-color-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ecip-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ecip-color-border);
    vertical-align: middle;
}

.ecip-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.ecip-table tbody tr:last-child td {
    border-bottom: 0;
}

.ecip-table__actions,
.ecip-table td.ecip-table__actions,
.ecip-table th.ecip-table__actions {
    text-align: right;
    white-space: nowrap;
}

.ecip-skeleton {
    min-height: 14px;
    background: #e9eef8;
}

.ecip-empty {
    border: 1px dashed var(--ecip-color-border);
    border-radius: var(--ecip-radius-md);
    background: var(--ecip-color-surface);
    padding: 28px 20px;
    text-align: center;
    color: var(--ecip-color-muted);
}

.ecip-empty__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: var(--ecip-color-accent);
}

.ecip-empty__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ecip-empty__title {
    margin: 0 0 6px;
    color: var(--ecip-color-primary);
    font-size: 18px;
    font-weight: 700;
}

.ecip-empty__description {
    margin: 0 0 12px;
}

@media (min-width: 992px) {
    .ecip-grid > .ecip-col-3 { grid-column: span 3; }
    .ecip-grid > .ecip-col-4 { grid-column: span 4; }
    .ecip-grid > .ecip-col-5 { grid-column: span 5; }
    .ecip-grid > .ecip-col-6 { grid-column: span 6; }
    .ecip-grid > .ecip-col-7 { grid-column: span 7; }
    .ecip-grid > .ecip-col-8 { grid-column: span 8; }
    .ecip-grid > .ecip-col-9 { grid-column: span 9; }
    .ecip-grid > .ecip-col-12 { grid-column: span 12; }
}

@media (max-width: 767px) {
    .ecip-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .ecip-page-header {
        margin-bottom: 18px;
    }

    .ecip-section {
        margin-bottom: 18px;
    }

    .ecip-table thead th,
    .ecip-table tbody td {
        padding: 10px 12px;
    }
}

.ecip-session-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #0f2d52;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: center;
    line-height: 1.2;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ecip-session-timer--warn {
    background: rgba(249, 170, 51, .28);
    border-color: rgba(249, 170, 51, .55);
    color: #fff4e0;
}

.ecip-session-timer--danger {
    background: rgba(220, 53, 69, .35);
    border-color: rgba(248, 152, 163, .75);
    color: #fff2f4;
    animation: ecip-session-timer-pulse 1.5s ease-in-out infinite;
}

@keyframes ecip-session-timer-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.15);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

.ecip-form-row {
    row-gap: 12px;
    margin-top: 10px;
}

.ecip-field-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ecip-color-muted);
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.ecip-field-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ecip-color-primary);
}

.ecip-kpi-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ecip-table-actions {
    white-space: nowrap;
    text-align: right;
}

.ecip-photo-frame {
    border-style: dashed;
    background: linear-gradient(180deg, #fff, #f7faff);
}

@media (max-width: 991px) {
    .ecip-table {
        min-width: 680px;
    }
}

.ecip-print-dashboard {
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.ecip-print-dashboard__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ecip-print-dashboard__subtitle {
    margin: 0;
}

.ecip-print-dashboard__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ecip-print-dashboard__crea-select {
    min-width: 180px;
}

.ecip-print-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ecip-print-kpi-card {
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ecip-print-kpi-card__label {
    font-size: 12px;
    color: var(--ecip-color-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ecip-print-kpi-card__value {
    font-size: 22px;
    color: var(--ecip-color-primary);
}

.ecip-print-kpi-card__badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    color: #8a2731;
    background: #fdecef;
}

.ecip-print-dashboard__content {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 14px;
}

.ecip-print-dashboard__chart-wrap {
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    min-height: 250px;
}

.ecip-print-dashboard__ranking {
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.ecip-print-dashboard__ranking h4,
.ecip-print-dashboard__ranking h5 {
    margin: 0;
    color: var(--ecip-color-primary);
}

.ecip-print-dashboard__ranking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ecip-print-dashboard__ranking ol {
    margin: 8px 0 0;
    padding-left: 16px;
}

.ecip-print-dashboard__ranking li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .ecip-print-dashboard__content {
        grid-template-columns: 1fr;
    }
}

.ecip-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ecip-status-badge--pendente,
.ecip-status-badge--processando { background: #fff4db; color: #9a6a00; }
.ecip-status-badge--criado { background: #e6eefb; color: #31558c; }
.ecip-status-badge--validado,
.ecip-status-badge--processado { background: #dcfce7; color: #166534; }
.ecip-status-badge--erro_validacao { background: #fee2e2; color: #991b1b; }
.ecip-status-badge--enviado { background: #dbeafe; color: #1d4ed8; }
.ecip-status-badge--cancelado,
.ecip-status-badge--default { background: #e5e7eb; color: #374151; }

.ecip-home-ops {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 55%, #eef4ff 100%);
    border: 1px solid #d8e4f7;
    position: relative;
    overflow: visible;
}

.ecip-home-ops:before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(38, 89, 194, 0.16), rgba(38, 89, 194, 0));
    pointer-events: none;
}

.ecip-home-ops__header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ecip-home-ops__filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.ecip-home-ops__crea-select {
    min-width: 210px;
    max-width: 260px;
}

.ecip-home-ops__kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.ecip-home-ops__kpi-card {
    border: 1px solid #d7e3f8;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    animation: ecip-home-card-in .3s ease both;
}

.ecip-home-ops__kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, .10);
}

.ecip-home-ops__kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ecip-home-ops__kpi-icon--1 { background: #e3ecff; color: #1f58c4; }
.ecip-home-ops__kpi-icon--2 { background: #e7f2ff; color: #1f6fc4; }
.ecip-home-ops__kpi-icon--3 { background: #fff3e1; color: #aa6a09; }
.ecip-home-ops__kpi-icon--4 { background: #e6f8ef; color: #0f7a54; }
.ecip-home-ops__kpi-icon--5 { background: #ffebeb; color: #b52f35; }
.ecip-home-ops__kpi-icon--6 { background: #ecefff; color: #4e5cbf; }
.ecip-home-ops__kpi-icon--7 { background: #e9f7ff; color: #146c8f; }

.ecip-home-ops__kpi-label {
    font-size: 12px;
    color: var(--ecip-color-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ecip-home-ops__kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ecip-color-primary);
}

.ecip-home-ops__analytics {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.ecip-home-ops__chart-card,
.ecip-home-ops__ranking-card,
.ecip-home-ops__insight-card {
    border: 1px solid #d7e3f8;
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.ecip-home-ops__chart-card h4,
.ecip-home-ops__ranking-card h4,
.ecip-home-ops__insight-card h4 {
    margin: 0 0 10px;
    color: var(--ecip-color-primary);
    font-weight: 700;
}

.ecip-home-ops__chart-wrap {
    min-height: 250px;
    position: relative;
}

.ecip-home-ops__period-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.ecip-home-ops__period-btn {
    min-width: 106px;
}

.ecip-home-ops__period-btn i {
    margin-right: 5px;
}

.ecip-home-ops__filters .btn-group .btn {
    border-color: #c5d6f2;
    color: #23436e;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ecip-home-ops__filters .btn-group .btn.active {
    background: #214f9f;
    border-color: #214f9f;
    color: #fff;
}

.ecip-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #0d3468 0%, #1a4e8f 62%, #2a66b3 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 14px 30px rgba(10, 42, 90, 0.2);
}

.ecip-home-hero:after {
    content: '';
    position: absolute;
    top: -70px;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.ecip-home-hero__badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.ecip-home-hero__title {
    margin: 8px 0 6px;
    font-size: 27px;
    font-weight: 700;
    color: #fff;
}

.ecip-home-hero__subtitle {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.ecip-home-ops__ranking-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf1f8;
    padding: 9px 0;
}

.ecip-home-ops__ranking-row:last-child {
    border-bottom: 0;
}

.ecip-home-ops__ranking-row strong {
    display: block;
    color: var(--ecip-color-primary);
}

.ecip-home-ops__ranking-row span {
    font-size: 12px;
    color: var(--ecip-color-muted);
}

.ecip-home-ops__ranking-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ecip-home-ops__insight-list {
    margin: 0;
    padding-left: 18px;
    color: var(--ecip-color-primary);
}

.ecip-home-ops__insight-list li {
    margin-bottom: 8px;
}

.ecip-home-ultimas__table-wrap {
    overflow-x: auto;
    border-radius: 12px;
}

.ecip-home-ultimas__table-wrap .ecip-table tbody tr:hover {
    background: #f1f6ff;
}

@keyframes ecip-home-card-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .ecip-home-ops__analytics {
        grid-template-columns: 1fr;
    }

    .ecip-home-ops__filters {
        flex-wrap: wrap;
    }

    .ecip-home-ops__crea-select {
        max-width: 100%;
        width: 100%;
    }
}
