/* ============================================================
   LackPlus Insurance Module — lp-insurance.css
   ============================================================ */

/* ── Hide main container padding when overlay is open ────── */
body:has(.ins-modal-overlay) .lp-page {
    overflow: hidden;
}

/* ============================================================
   INDEX PAGE — Yellow gradient header, table layout
   ============================================================ */
.ins-index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    margin-bottom: 1.25rem;
}

.ins-index-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.ins-index-kpi {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(255,255,255,.25);
    color: #fff;
}

.ins-btn-create {
    background: #fff;
    color: #f97316;
    border: none;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.35rem 0.9rem;
}

.ins-btn-create:hover {
    background: #fff9f0;
    color: #ea580c;
}

.ins-index-search {
    margin-bottom: 1.25rem;
}

.ins-index-search .form-control {
    border-radius: 8px;
}

.ins-index-search .input-group-text {
    border-radius: 8px 0 0 8px;
}

.ins-index-table {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.ins-index-colheader {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ins-col-partner { flex: 1; min-width: 0; }
.ins-col-status  { width: 100px; text-align: center; }
.ins-col-contract { width: 260px; }
.ins-col-arrow   { width: 30px; text-align: center; }

.ins-index-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.ins-index-row:last-child {
    border-bottom: none;
}

.ins-index-row:hover {
    background: #fafbfc;
}

.ins-index-row .ins-col-partner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ins-index-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ins-index-logo img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}

.ins-index-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    background: var(--lp-blue-900, #1e3a5f);
}

.ins-col-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.ins-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.ins-status-dot.active {
    background: #22c55e;
}

.ins-progress-track {
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    margin-top: 4px;
}

.ins-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.ins-detail-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.ins-feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ins-feature-tag.blue {
    background: #eff6ff;
    color: #0656b0;
    border-color: #bfdbfe;
}

.ins-feature-tag.orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.ins-feature-tag.yellow {
    background: #fefce8;
    color: #a16207;
    border-color: #fde68a;
}

/* ── Detail Tabs ─────────────────────────────────────────── */
.ins-detail-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
}

.ins-detail-tabs li {
    flex-shrink: 0;
}

.ins-detail-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.ins-detail-tab:hover {
    color: #f97316;
}

.ins-detail-tab.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

.ins-detail-pane {
    display: none;
    padding: 1.5rem;
}

.ins-detail-pane.active {
    display: block;
}

/* ── Detail: Contract cards ──────────────────────────────── */
.ins-contract-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #fff;
}

/* ── Detail: Service box ─────────────────────────────────── */
.ins-service-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    height: 100%;
}

/* ── Detail: Rate box ────────────────────────────────────── */
.ins-rate-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
}

.ins-rate-box .rate-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lp-blue-900, #0a1929);
}

.ins-rate-box .rate-lbl {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* ── Detail: Info box ────────────────────────────────────── */
.ins-info-box {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ins-info-box.yellow {
    background: #fefce8;
    border-color: #fde68a;
}

.ins-info-box.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* ── Detail: Extra pill ──────────────────────────────────── */
.ins-extra-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── Detail: Billing card ────────────────────────────────── */
.ins-billing-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.ins-billing-card .val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lp-blue-900, #0a1929);
}

.ins-billing-card .lbl {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* ============================================================
   CREATE WIZARD — Fullscreen Modal Overlay
   ============================================================ */
.ins-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(10, 15, 30, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: insOverlayIn 0.25s ease-out;
}

@keyframes insOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes insCardIn {
    from { opacity: 0; transform: scale(0.97) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ins-modal-card {
    width: 100%;
    max-width: 1100px;
    height: calc(100vh - 3rem);
    max-height: 820px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation: insCardIn 0.3s ease-out;
}

.ins-modal-card form {
    flex: 1;
    min-height: 0;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.ins-modal-sidebar {
    width: 250px;
    background: #1a1f2e;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 1.25rem 0;
    position: relative;
    border-radius: 16px 0 0 16px;
}

.ins-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 0.85rem;
}

.ins-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ins-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f08c00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ── Sidebar Nav ─────────────────────────────────────────── */
.ins-modal-nav {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.ins-modal-nav li {
    margin: 0;
}

.ins-modal-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.ins-modal-nav-link:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.ins-modal-nav-link.active {
    color: #fff;
    background: rgba(240, 140, 0, 0.12);
    border-left-color: #f08c00;
    font-weight: 600;
}

.ins-modal-nav-link.completed {
    color: #4ade80;
}

.ins-modal-nav-link .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-weight: 700;
}

.ins-modal-nav-link.active .step-num {
    background: #f08c00;
    border-color: #f08c00;
    color: #fff;
}

.ins-modal-nav-link.completed .step-num {
    background: #4ade80;
    border-color: #4ade80;
    color: #1a1f2e;
}

/* ── Sidebar Footer ──────────────────────────────────────── */
.ins-modal-progress {
    padding: 0.75rem 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ins-modal-submit {
    margin: 0 1.25rem;
    width: calc(100% - 2.5rem);
    background: #16a34a;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    transition: background 0.15s;
    box-sizing: border-box;
}

.ins-modal-submit:hover {
    background: #15803d;
    color: #fff;
}

/* ── Content Area ────────────────────────────────────────── */
.ins-modal-content {
    flex: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 16px 16px 0;
}

.ins-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Orange action button ────────────────────────────────── */
.ins-btn-orange {
    background: #f08c00;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 1rem;
    font-weight: 500;
    transition: background 0.15s;
}

.ins-btn-orange:hover {
    background: #e07b00;
    color: #fff;
}

/* ── Info banner ─────────────────────────────────────────── */
.ins-info-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0656b0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
}

/* ── Chip buttons ────────────────────────────────────────── */
.ins-chip-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    color: #475569;
}

.ins-chip-btn:hover {
    border-color: #f08c00;
    color: #f08c00;
}

.ins-chip-btn.selected {
    background: #f08c00;
    border-color: #f08c00;
    color: #fff;
}

/* ── Contact cards in wizard ─────────────────────────────── */
.ins-contact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* ── Provision cards in wizard ───────────────────────────── */
.ins-provision-card {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

/* ── Summary (Step 9) ────────────────────────────────────── */
.ins-summary-section {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.ins-summary-section-header {
    background: #f8fafc;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lp-blue-900, #0a1929);
    border-bottom: 1px solid #e2e8f0;
}

.ins-summary-section-body {
    padding: 0.5rem 1rem;
}

.ins-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.ins-summary-row:last-child {
    border-bottom: none;
}

.ins-summary-label {
    color: #64748b;
}

.ins-summary-value {
    font-weight: 600;
    color: #1e293b;
}

.ins-summary-contact {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}

.ins-summary-contact:last-child {
    border-bottom: none;
}

.ins-summary-rates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ins-summary-rate {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
}

.ins-summary-rate .rate-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-blue-900, #0a1929);
}

.ins-summary-rate .rate-lbl {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* ============================================================
   DETAIL VIEW
   ============================================================ */

/* ── Wizard (old — kept for backward compat) ─────────────── */
.ins-wizard {
    display: flex;
    min-height: calc(100vh - 80px);
}

.ins-wizard-sidebar {
    width: 260px;
    background: #1a1f2e;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.ins-wizard-sidebar .wizard-title {
    padding: 0 1.25rem;
    margin-bottom: 1.5rem;
}

.ins-wizard-sidebar .wizard-title .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ins-wizard-sidebar .wizard-title h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ins-wizard-sidebar .wizard-title small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.ins-wizard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.ins-wizard-nav li {
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #94a3b8;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ins-wizard-nav li:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ins-wizard-nav li.active {
    color: #fff;
    background: rgba(249, 115, 22, 0.12);
    border-left-color: #f97316;
    font-weight: 600;
}

.ins-wizard-nav li.completed {
    color: #4ade80;
}

.ins-wizard-nav .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.ins-wizard-nav li.active .step-num {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.ins-wizard-nav li.completed .step-num {
    background: #4ade80;
    border-color: #4ade80;
    color: #1a1f2e;
}

.ins-wizard-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ins-wizard-footer .progress-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.ins-wizard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.ins-wizard-content .step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ins-wizard-content .step-header h4 {
    margin: 0;
    font-weight: 700;
}

.ins-step {
    display: none;
}

.ins-step.active {
    display: block;
}

/* ── Chip buttons (partner types, regions, uploads) ──────── */
.ins-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ins-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.ins-chip:hover {
    border-color: #f97316;
}

.ins-chip.selected {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ── Toggle sections (show/hide) ─────────────────────────── */
.ins-toggle-section {
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
    margin-top: 0.75rem;
    display: none;
}

.ins-toggle-section.show {
    display: block;
}

/* ── Detail header ───────────────────────────────────────── */
.ins-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ins-detail-header .logo-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.ins-detail-header .partner-meta {
    flex: 1;
}

.ins-detail-header .partner-meta h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.ins-detail-kpis {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.ins-detail-kpi {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 70px;
}

.ins-detail-kpi .val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lp-blue-900, #0a1929);
}

.ins-detail-kpi .lbl {
    font-size: 0.72rem;
    color: #64748b;
}

/* ── Detail tabs ─────────────────────────────────────────── */
.ins-tabs .nav-link {
    color: #475569;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1rem;
}

.ins-tabs .nav-link.active {
    color: #f97316;
    border-bottom-color: #f97316;
    background: none;
}

.ins-tabs .nav-link:hover {
    color: #f97316;
}

.ins-tab-pane {
    display: none;
    padding-top: 1.5rem;
}

.ins-tab-pane.active {
    display: block;
}

/* ── Detail: Condition cards ─────────────────────────────── */
.ins-rate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.ins-rate-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    text-align: center;
}

.ins-rate-card .rate-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.ins-rate-card .rate-lbl {
    font-size: 0.72rem;
    color: #64748b;
}

/* ── Detail: Service package cards ───────────────────────── */
.ins-pkg-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ins-pkg-card .pkg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ins-pkg-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ins-pkg-service {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ── Detail: Additional service chips ────────────────────── */
.ins-extra-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ins-extra-chip {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
}

.ins-extra-chip.allowed {
    background: #dcfce7;
    color: #166534;
}

.ins-extra-chip.standgeld {
    background: #fef9c3;
    color: #854d0e;
}

.ins-extra-chip.transport {
    background: #dbeafe;
    color: #0656b0;
}

/* ── Detail: Provision box ───────────────────────────────── */
.ins-provision-box {
    background: #fef9c3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* ── Detail: History timeline ────────────────────────────── */
.ins-history-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 0.75rem;
}

.ins-history-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.ins-history-item .ts {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Billing KPI row ─────────────────────────────────────── */
.ins-billing-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ins-billing-kpi {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.ins-billing-kpi .val {
    font-size: 1.3rem;
    font-weight: 700;
}

.ins-billing-kpi .lbl {
    font-size: 0.78rem;
    color: #64748b;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 992px) {
    .ins-modal-card {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .ins-modal-sidebar {
        width: 220px;
        border-radius: 0;
    }

    .ins-modal-content {
        border-radius: 0;
    }

    .ins-summary-rates {
        grid-template-columns: repeat(2, 1fr);
    }

    .ins-col-contract {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .ins-modal-overlay {
        padding: 0;
    }

    .ins-modal-card {
        flex-direction: column;
        border-radius: 0;
    }

    .ins-modal-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.75rem;
        border-radius: 0;
    }

    .ins-modal-sidebar .text-center {
        display: none;
    }

    .ins-modal-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        margin: 0;
    }

    .ins-modal-nav-link {
        white-space: nowrap;
        padding: 0.4rem 0.75rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: 0.78rem;
    }

    .ins-modal-nav-link.active {
        border-left-color: transparent;
        border-bottom-color: #f08c00;
    }

    .ins-modal-progress,
    .ins-modal-submit {
        display: none;
    }

    .ins-modal-content {
        padding: 1rem;
    }

    .ins-index-header {
        flex-direction: column;
        text-align: center;
    }

    .ins-col-contract {
        display: none;
    }

    .ins-col-status {
        width: 70px;
    }

    .ins-wizard-sidebar {
        width: 200px;
    }

    .ins-rate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ins-pkg-services {
        grid-template-columns: 1fr;
    }

    .ins-billing-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   DETAIL — CRUD Modal Forms (Add/Edit overlays)
   ============================================================ */
.ins-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(10, 15, 30, 0.6);
    display: none;
}

.ins-modal-backdrop.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: insBackdropIn 0.2s ease-out;
}

@keyframes insBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ins-form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1070;
    width: 95%;
    max-width: 620px;
    max-height: 85vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: insFormModalIn 0.25s ease-out;
}

@keyframes insFormModalIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ins-form-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px 14px 0 0;
}

.ins-form-modal-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--lp-blue-900, #0a1929);
}

.ins-form-modal-header .btn-close-modal {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
}

.ins-form-modal-header .btn-close-modal:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.ins-form-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.ins-form-modal-body .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

.ins-form-modal-body .form-control,
.ins-form-modal-body .form-select {
    font-size: 0.9rem;
    border-radius: 8px;
    border-color: #cbd5e1;
}

.ins-form-modal-body .form-control:focus,
.ins-form-modal-body .form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.ins-form-modal-body .form-check-input:checked {
    background-color: #f97316;
    border-color: #f97316;
}

.ins-form-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}

.ins-form-modal-footer .btn-cancel {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}

.ins-form-modal-footer .btn-cancel:hover {
    background: #f1f5f9;
}

.ins-form-modal-footer .btn-save {
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    border: none;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s;
}

.ins-form-modal-footer .btn-save:hover {
    background: #ea580c;
}

.ins-form-modal-footer .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.ins-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1090;
    min-width: 280px;
    max-width: 420px;
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: insToastIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ins-toast.success {
    background: #16a34a;
}

.ins-toast.error {
    background: #dc2626;
}

.ins-toast.warning {
    background: #d97706;
}

.ins-toast.hiding {
    animation: insToastOut 0.3s ease-in forwards;
}

@keyframes insToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes insToastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ── Responsive for form modals ─────────────────────────── */
@media (max-width: 576px) {
    .ins-form-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    @keyframes insFormModalIn {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .ins-form-modal-header,
    .ins-form-modal-footer {
        border-radius: 0;
    }
}

/* ============================================================
   SIMULATOR
   ============================================================ */
.sim-page { padding: 0.5rem 0; }
.sim-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sim-btn-calc {
    background: #f08c00;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
}
.sim-btn-calc:hover { background: #d97706; color: #fff; }

.sim-result-card {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.9rem;
}
.sim-result-title { font-weight: 600; margin-bottom: 0.4rem; }
.sim-result-source { margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.85; }

.sim-blue   { background: #eff6ff; border-color: #bfdbfe; color: #0656b0; }
.sim-green  { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.sim-purple { background: #faf5ff; border-color: #ddd6fe; color: #6b21a8; }
.sim-yellow { background: #fefce8; border-color: #fde68a; color: #854d0e; }
.sim-orange { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

/* ===== Import (Daten + Logos) ===== */
.ins-import-page { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.ins-import-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    margin-bottom: 1rem;
}
.ins-import-table th { font-size: .75rem; text-transform: uppercase; color: #6b7280; }
.ins-import-table td { font-size: .875rem; }
.ins-import-stat {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.ins-import-stat-ok   { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.ins-import-stat-warn { background: #fefce8; border-color: #fde68a; color: #854d0e; }
.ins-import-stat-err  { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
