﻿.xantract-v2 {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4f8 0%, #dfeaf1 100%);
    color: #16324a;
    padding: 24px;
    box-sizing: border-box;
}

    .xantract-v2 *,
    .xantract-v2 *::before,
    .xantract-v2 *::after {
        box-sizing: border-box;
    }

    .xantract-v2 .xv2-shell {
        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 24px;
        align-items: start;
    }

    .xantract-v2 .xv2-left-panel,
    .xantract-v2 .xv2-card,
    .xantract-v2 .xv2-topbar,
    .xantract-v2 .xv2-card-large {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(25, 98, 132, 0.14);
        box-shadow: 0 10px 26px rgba(18, 49, 75, 0.08);
    }

    .xantract-v2 .xv2-left-panel {
        border-radius: 20px;
        padding: 20px;
        position: sticky;
        top: 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .xantract-v2 .xv2-brand {
        display: flex;
        gap: 14px;
        align-items: center;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(25, 98, 132, 0.12);
    }

    .xantract-v2 .xv2-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 22px;
        background: linear-gradient(135deg, #2f9cc3, #1f6d8f);
        color: white;
    }

    .xantract-v2 .xv2-brand h1 {
        margin: 0 0 6px 0;
        font-size: 24px;
        font-weight: 800;
        color: #12314b;
        letter-spacing: -0.02em;
    }

    .xantract-v2 .xv2-brand p {
        margin: 4px 0 0;
        color: #6f8597;
        font-size: 13px;
    }

    .xantract-v2 .xv2-card {
        border-radius: 18px;
        padding: 16px;
    }

    .xantract-v2 .xv2-card-large {
        border-radius: 24px;
        padding: 20px;
    }

    .xantract-v2 .xv2-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

        .xantract-v2 .xv2-card-header h3 {
            margin: 0 0 6px 0;
            font-size: 18px;
            font-weight: 800;
            color: #12314b;
            letter-spacing: -0.02em -0.48px;
        }

        .xantract-v2 .xv2-card-header span {
            font-size: 12px;
            color: #1f6d8f;
            background: #e8f3f8;
            border: 1px solid rgba(31, 109, 143, 0.16);
            border-radius: 999px;
            padding: 5px 10px;
        }

    .xantract-v2 .xv2-field {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
    }

        .xantract-v2 .xv2-field label {
            font-size: 13px;
            color: #274861;
            font-weight: 600;
        }

    .xantract-v2 .xv2-input,
    .xantract-v2 .xv2-select {
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(25, 98, 132, 0.18);
        background: #fdfefe;
        color: #16324a;
        padding: 12px 14px;
        font-size: 14px;
        outline: none;
    }

        .xantract-v2 .xv2-input:focus,
        .xantract-v2 .xv2-select:focus {
            border-color: rgba(31, 109, 143, 0.65);
            box-shadow: 0 0 0 3px rgba(47, 156, 195, 0.14);
        }

        .xantract-v2 .xv2-select option {
            background: #ffffff;
            color: #16324a;
        }

    .xantract-v2 .xv2-stack {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .xantract-v2 .xv2-button-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 8px;
    }

    /*new for width of buttons upload*/
        .xantract-v2 .xv2-button-grid > * {
            width: 100%;
            max-width: 100%;
        }

        .xantract-v2 .xv2-button-grid .xv2-btn,
        .xantract-v2 .xv2-button-grid .xv2-upload {
            width: 100%;
            max-width: 100%;
        }

        .xantract-v2 .xv2-button-grid label.xv2-btn {
            display: flex;
            width: 100%;
            max-width: 100%;
        }

    .xantract-v2 .xv2-card {
        overflow: hidden;
    }

    .xantract-v2 .xv2-button-grid {
        width: 100%;
    }

    .xantract-v2 .xv2-upload,
    .xantract-v2 .xv2-btn,
    .xantract-v2 .xv2-select,
    .xantract-v2 .xv2-input {
        width: 100%;
        max-width: 100%;
    }

    .xantract-v2 .xv2-button-grid label.xv2-btn-secondary {
        overflow: hidden;
    }

    /*hide bestand kiezen button*/
    .xantract-v2 .xv2-button-grid input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .xantract-v2 .xv2-button-grid label.xv2-btn {
        position: relative;
        overflow: hidden;
    }
    /*hide bestand kiezen button*/

    /*new for width of buttons upload*/

    .xantract-v2 .xv2-btn {
        border: none;
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
    }

        .xantract-v2 .xv2-btn:hover:not(:disabled) {
            transform: translateY(-1px);
        }

        .xantract-v2 .xv2-btn:disabled,
        .xantract-v2 .xv2-btn-disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    .xantract-v2 .xv2-btn-primary {
        background: linear-gradient(135deg, #0f4e67 0%, #0a0064 100%);
        color: white;
    }

    .xantract-v2 .xv2-btn-secondary {
        background: linear-gradient(135deg, #0f4e67 0%, #0a0064 100%);
        color: #ffffff;
        border: 1px solid rgba(25, 98, 132, 0.16);
    }
    /*Excel V*/
    .xantract-v2 .xv2-btn-tertiary {
        background: linear-gradient( 90deg, #0f4e6700 0%, #0a006459 100%);
        /*color: #ffffff;*/
        /*border: 1px solid rgba(25, 98, 132, 0.16);*/
    }

    .xantract-v2 .xv2-btn-danger {
        background: #a52828;
        color: #fff0f0;
        border: 1px solid rgba(165, 40, 40, 0.18);
    }

    .xantract-v2 .xv2-btn-ghost {
        background: transparent;
        color: #35556d;
        border: 1px dashed rgba(25, 98, 132, 0.24);
    }

    .xantract-v2 .xv2-btn-large {
        min-width: 220px;
        min-height: 48px;
    }

    .xantract-v2 .xv2-upload {
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #0f4e67 0%, #0a0064 100%);
        color: white;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        /*margin-bottom: 14px;*/
    }

        .xantract-v2 .xv2-upload input[type="file"] {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
        }

    .xantract-v2 .xv2-selected-info {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(25, 98, 132, 0.12);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .xantract-v2 .xv2-kv {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
    }

        .xantract-v2 .xv2-kv span {
            color: #6f8597;
        }

        .xantract-v2 .xv2-kv strong {
            color: #16324a;
            text-align: right;
        }

    .xantract-v2 .xv2-help p {
        margin: 0 0 10px;
        color: #466175;
        font-size: 13px;
        line-height: 1.45;
    }

    .xantract-v2 .xv2-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-width: 0;
    }

    .xantract-v2 .xv2-topbar {
        border-radius: 20px;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: center;
    }

        .xantract-v2 .xv2-topbar h2 {
            margin: 0 0 6px 0;
            font-size: 30px;
            font-weight: 800;
            color: #12314b;
            letter-spacing: -0.03em;
        }

        .xantract-v2 .xv2-topbar p {
            /*margin: 6px 0 0;
            color: #6f8597;
            font-size: 14px;*/
            margin: 0;
            color: #617b90;
            font-size: 15px;
        }

    .xantract-v2 .xv2-status-wrap {
        min-width: 260px;
        display: flex;
        justify-content: flex-end;
    }

    .xantract-v2 .xv2-status {
        border-radius: 12px;
        padding: 12px 14px;
        font-size: 13px;
        font-weight: 600;
    }

    .xantract-v2 .xv2-status-success {
        background: #e6f7eb;
        color: #1f6a3c;
        border: 1px solid rgba(31, 106, 60, 0.12);
    }

    .xantract-v2 .xv2-status-error {
        background: #fdecec;
        color: #992929;
        border: 1px solid rgba(153, 41, 41, 0.12);
    }

    .xantract-v2 .xv2-status-info {
        background: #eaf4fb;
        color: #1f5f88;
        border: 1px solid rgba(31, 95, 136, 0.12);
    }

    .xantract-v2 .xv2-workspace {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .xantract-v2 .xv2-empty {
        min-height: 240px;
        border: 1px dashed rgba(25, 98, 132, 0.18);
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        text-align: center;
        color: #6f8597;
        padding: 32px;
        background: #f9fcfe;
    }

        .xantract-v2 .xv2-empty h4 {
            margin: 0;
            color: #16324a;
            font-size: 18px;
        }

    .xantract-v2 .xv2-template-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
    }

    .xantract-v2 .xv2-pill,
    .xantract-v2 .xv2-tag {
        border-radius: 999px;
        font-size: 12px;
        padding: 6px 10px;
        border: 1px solid rgba(25, 98, 132, 0.14);
        background: #edf6fb;
        color: #35556d;
    }

    .xantract-v2 .xv2-excel-banner {
        border-radius: 16px;
        padding: 14px 16px;
        margin-bottom: 18px;
        background: #eef8fc;
        border: 1px solid rgba(47, 156, 195, 0.18);
    }

        .xantract-v2 .xv2-excel-banner strong {
            color: #1f5f88;
        }

        .xantract-v2 .xv2-excel-banner p {
            margin: 4px 0 0;
            color: #4e748b;
            font-size: 13px;
        }

    .xantract-v2 .xv2-form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 16px;
    }

    /*.xantract-v2 .xv2-input-card {
        border-radius: 18px;
        padding: 16px;
        background: #fdfefe;
        border: 1px solid rgba(25, 98, 132, 0.14);
        display: flex;
        flex-direction: column;
        gap: 14px;
    }*/

    .xantract-v2 .xv2-input-card {
        border-radius: 20px;
        padding: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,254,0.98) 100%);
        border: 1px solid rgba(25, 98, 132, 0.16);
        display: flex;
        flex-direction: column;
        gap: 14px;
        box-shadow: 0 8px 20px rgba(18, 49, 75, 0.06);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    }

        .xantract-v2 .xv2-input-card:hover {
            transform: scale(1.015);
            /*box-shadow: 0 16px 30px rgba(18, 49, 75, 0.10);*/
            box-shadow: 0 18px 38px rgb(11 13 100 / 26%), 0 4px 12px rgba(18, 49, 75, 0.08);
            border-color: rgba(47, 105, 240, 0.22);
            background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,247,252,1) 100%);
        }

    .xantract-v2 .xv2-template-summary-bar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .xantract-v2 .xv2-view-toggle {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .xantract-v2 .xv2-mini-action-active {
        background: linear-gradient(135deg, #2f69f0, #234fc7);
        color: white;
        border-color: rgba(35, 79, 199, 0.28);
    }

    .xantract-v2 .xv2-form-grid.xv2-form-grid-wide {
        grid-template-columns: repeat(4, minmax(220px, 1fr));
    }

    .xantract-v2 .xv2-form-grid.xv2-form-grid-compact {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .xantract-v2 .xv2-title-tooltip-wrap {
        position: relative;
        display: inline-block;
        max-width: 100%;
    }

    .xantract-v2 .xv2-hover-tooltip {
        position: absolute;
        left: 0;
        top: calc(100% + 10px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(4px);
        transition: opacity 0.2s ease 2s, transform 0.2s ease 2s, visibility 0s linear 2s;
        background: rgba(22, 50, 74, 0.96);
        color: white;
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        box-shadow: 0 10px 22px rgba(18, 49, 75, 0.18);
        z-index: 20;
        pointer-events: none;
    }

    .xantract-v2 .xv2-title-tooltip-wrap:hover .xv2-hover-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .xantract-v2 .xv2-input-title {
        margin: 0;
        color: #16324a;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.2;
    }

    .xantract-v2 .xv2-input-card-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(25, 98, 132, 0.08);
    }

    /*.xantract-v2 .xv2-input-card-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
    }*/

    .xantract-v2 .xv2-input-title-group {
        min-width: 0;
        flex: 1 1 auto;
    }

        .xantract-v2 .xv2-input-title-group h4 {
            margin: 0;
            color: #16324a;
            font-size: 16px;
        }

        .xantract-v2 .xv2-input-title-group span {
            display: block;
            margin-top: 4px;
            color: #6f8597;
            font-size: 12px;
        }

    .xantract-v2 .xv2-input-card-tools {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        max-width: 58%;
    }

    .xantract-v2 .xv2-mini-action {
        border: 1px solid rgba(25, 98, 132, 0.16);
        background: #edf6fb;
        color: #35556d;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        min-height: 32px;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.15s ease;
        white-space: nowrap;
    }

        .xantract-v2 .xv2-mini-action:hover {
            background: #e2f0f8;
            transform: translateY(-1px);
        }

    .xantract-v2 .xv2-tag {
        white-space: nowrap;
        background: #eef6fb;
        border: 1px solid rgba(25, 98, 132, 0.16);
        color: #35556d;
        font-weight: 600;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    /*.xantract-v2 .xv2-tag {
        white-space: nowrap;
    }*/

    .xantract-v2 .xv2-inline-actions {
        display: flex;
        gap: 12px;
        align-items: end;
        flex-wrap: wrap;
    }

    .xantract-v2 .xv2-field-small {
        min-width: 120px;
        margin-bottom: 0;
    }

    .xantract-v2 .xv2-note {
        font-size: 12px;
        color: #1f5f88;
        background: #edf7fc;
        border: 1px solid rgba(31, 95, 136, 0.12);
        border-radius: 12px;
        padding: 10px 12px;
    }

    .xantract-v2 .xv2-quick-actions {
        margin-top: 24px;
        border-top: 1px solid rgba(25, 98, 132, 0.12);
        padding-top: 20px;
    }

    .xantract-v2 .xv2-quick-actions-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .xantract-v2 .xv2-footer-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 24px;
    }

    .xantract-v2 .xv2-editor-top {
        display: grid;
        grid-template-columns: 1.2fr auto 1fr;
        gap: 16px;
        align-items: end;
        margin-bottom: 20px;
    }

    .xantract-v2 .xv2-checkbox-field {
        justify-content: flex-end;
    }

    .xantract-v2 .xv2-checkbox {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #274861;
        font-size: 14px;
        user-select: none;
    }

        .xantract-v2 .xv2-checkbox input {
            accent-color: #2f69f0;
        }

    .xantract-v2 .xv2-editor-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .xantract-v2 .xv2-editor-row {
        border-radius: 18px;
        padding: 16px;
        background: #fdfefe;
        border: 1px solid rgba(25, 98, 132, 0.14);
    }

    .xantract-v2 .xv2-editor-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(160px, 1fr));
        gap: 14px;
        align-items: end;
    }

    .xantract-v2 .xv2-editor-wide {
        grid-column: span 2;
    }

    .xantract-v2 .xv2-editor-row-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
    }

    .xantract-v2 .xv2-editor-actions-top {
        display: flex;
        gap: 10px;
    }

    .xantract-v2 .xv2-input-card-child {
        background: linear-gradient(180deg, rgba(243, 248, 252, 0.98) 0%, rgba(235, 243, 248, 0.98) 100%);
        border-color: rgba(25, 98, 132, 0.20);
        margin-left: 18px;
    }

    .xantract-v2 .xv2-expand-toggle {
        border: 1px solid rgba(15, 78, 103, 0.18);
        background: #f2f7fa;
        color: #0f4e67;
        border-radius: 8px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        flex: 0 0 auto;
    }

        .xantract-v2 .xv2-expand-toggle:hover {
            background: #e8f1f6;
        }

    .xantract-v2 .xv2-child-badge {
        font-size: 11px;
        color: #56758c;
        background: #e7f0f6;
        border: 1px solid rgba(25, 98, 132, 0.12);
        border-radius: 999px;
        padding: 4px 8px;
        margin-left: 6px;
    }

    .xantract-v2 .xv2-input-title-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .xantract-v2 .xv2-help-panel-wrap {
        margin-top: 22px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .xantract-v2 .xv2-help-panel {
        border-radius: 18px;
        padding: 16px;
        background: linear-gradient(180deg, rgba(248,252,255,0.98) 0%, rgba(239,247,252,0.98) 100%);
        border: 1px solid rgba(25, 98, 132, 0.14);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .xantract-v2 .xv2-help-section {
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(25, 98, 132, 0.12);
        background: rgba(255,255,255,0.9);
    }

    .xantract-v2 .xv2-help-section-header {
        width: 100%;
        border: none;
        background: #eef6fb;
        color: #1d4866;
        font-weight: 700;
        font-size: 14px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    /*copy template modal stuff*/
    .xantract-v2 .xv2-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 31, 46, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        z-index: 5000;
    }

    .xantract-v2 .xv2-modal {
        width: min(720px, 100%);
        max-height: 85vh;
        overflow: auto;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(25, 98, 132, 0.16);
        box-shadow: 0 24px 60px rgba(18, 49, 75, 0.20);
        border-radius: 24px;
        padding: 22px;
    }

    .xantract-v2 .xv2-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        margin-bottom: 10px;
    }

        .xantract-v2 .xv2-modal-header h3 {
            margin: 0;
            color: #16324a;
            font-size: 22px;
        }

    .xantract-v2 .xv2-modal-close {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid rgba(25, 98, 132, 0.14);
        background: #eef6fb;
        color: #16324a;
        font-size: 22px;
        cursor: pointer;
    }

    .xantract-v2 .xv2-modal-subtitle {
        margin: 0 0 16px 0;
        color: #56758c;
        font-size: 14px;
    }

    .xantract-v2 .xv2-import-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px;
    }

    .xantract-v2 .xv2-import-option {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 16px;
        border: 1px solid rgba(25, 98, 132, 0.14);
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,250,253,0.98) 100%);
        cursor: pointer;
    }

        .xantract-v2 .xv2-import-option input[type="radio"] {
            margin-top: 3px;
            accent-color: #2f69f0;
        }

    .xantract-v2 .xv2-import-option-body {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .xantract-v2 .xv2-import-option-body strong {
            color: #16324a;
            font-size: 15px;
        }

        .xantract-v2 .xv2-import-option-body span {
            color: #6f8597;
            font-size: 13px;
        }

    .xantract-v2 .xv2-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 20px;
    }
    /*copy template modal stuff*/

    /*preview image*/
    .xantract-v2 .xv2-selected-image-preview {
        margin-top: 10px;
        padding: 10px;
        border-radius: 14px;
        border: 1px solid rgba(25, 98, 132, 0.12);
        background: rgba(247, 251, 254, 0.98);
        display: inline-flex;
        flex-direction: column;
        gap: 8px;
        max-width: 220px;
    }

        .xantract-v2 .xv2-selected-image-preview img {
            max-width: 200px;
            max-height: 140px;
            object-fit: contain;
            border-radius: 10px;
            background: white;
            border: 1px solid rgba(25, 98, 132, 0.10);
        }
    /*preview image*/

    /*excel panel extra*/
    .xantract-v2 .xv2-excel-preview-panel.is-hidden {
        display: none;
    }

    .xantract-v2 .xv2-excel-preview-panel.is-open {
        display: block;
    }
    /*excel panel extra*/

        .xantract-v2 .xv2-help-section-header:hover {
            background: #e5f1f8;
        }

    .xantract-v2 .xv2-help-section-body {
        padding: 14px 16px;
        color: #35556d;
        font-size: 14px;
    }

        .xantract-v2 .xv2-help-section-body ul {
            margin: 0;
            padding-left: 18px;
            display: grid;
            gap: 8px;
        }

        .xantract-v2 .xv2-help-section-body code {
            background: #edf3f8;
            border: 1px solid rgba(25, 98, 132, 0.12);
            border-radius: 8px;
            padding: 2px 6px;
            font-size: 12px;
        }
        /*Excel in xantract*/


    .xantract-v2 .xv2-file-picker-field {
        margin-bottom: 14px;
    }

    .xantract-v2 .xv2-file-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 8px;
    }

    .xantract-v2 .xv2-file-picker-label {
        margin: 0;
    }

    .xantract-v2 .xv2-file-picker-backups {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        margin: 0;
    }

        .xantract-v2 .xv2-file-picker-backups input {
            margin: 0;
        }

@media (max-width: 700px) {
    .xantract-v2 .xv2-file-picker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
    /* Excel preview in Xantract */
    .xantract-v2 .xv2-excel-preview-bar {
        margin: 0 0 18px 0;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,251,254,0.98) 100%);
        border: 1px solid rgba(25, 98, 132, 0.14);
        box-shadow: 0 8px 20px rgba(18, 49, 75, 0.05);
        overflow: hidden;
    }

    .xantract-v2 .xv2-excel-preview-toggle {
        width: 100%;
        border: none;
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 18px;
        font-size: 15px;
        font-weight: 600;
        color: #15384f;
        cursor: pointer;
        text-align: left;
    }

        .xantract-v2 .xv2-excel-preview-toggle:hover {
            background: rgba(25, 98, 132, 0.04);
        }

   
    .xantract-v2 .e-spreadsheet .e-row-header {
        overflow-y: visible !important;
    }

    .xantract-v2 .xv2-file-row {
        display: flex;
        align-items: flex-end;
        gap: 16px;
        margin-bottom: 14px;
    }

    .xantract-v2 .xv2-file-select-field {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    .xantract-v2 .xv2-file-backups-field {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .xantract-v2 .xv2-checkbox-row {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        white-space: nowrap;
    }

        .xantract-v2 .xv2-checkbox-row input {
            margin: 0;
        }

.xantract-v2 .xv2-excel-action-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
}

.xantract-v2 .xv2-excel-row-field {
    flex: 1 1 33.333%;
    min-width: 0;
    margin-bottom: 0;
}

.xantract-v2 .xv2-excel-action-button {
    flex: 2 1 66.666%;
    min-width: 0;
}

    .xantract-v2 .xv2-excel-action-button .xv2-btn {
        width: 100%;
    }

.xantract-v2 .xv2-helper-label-spacer {
    display: block;
    visibility: hidden;
    margin-bottom: 6px;
}

@media (max-width: 700px) {
    .xantract-v2 .xv2-excel-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .xantract-v2 .xv2-excel-row-field,
    .xantract-v2 .xv2-excel-action-button {
        flex: 1 1 auto;
        width: 100%;
    }

    .xantract-v2 .xv2-helper-label-spacer {
        display: none;
    }
}

@media (max-width: 700px) {
    .xantract-v2 .xv2-file-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .xantract-v2 .xv2-file-backups-field label:first-child {
        display: none;
    }

    .xantract-v2 .xv2-checkbox-row {
        min-height: unset;
    }
}
        /*Excel in xantract*/

@media (max-width: 1300px) {
    .xantract-v2 .xv2-form-grid {
        grid-template-columns: 1fr;
    }

    .xantract-v2 .xv2-editor-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .xantract-v2 .xv2-editor-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .xantract-v2 {
        padding: 16px;
    }

        .xantract-v2 .xv2-shell {
            grid-template-columns: 1fr;
        }

        .xantract-v2 .xv2-left-panel {
            position: static;
        }

        .xantract-v2 .xv2-topbar {
            flex-direction: column;
            align-items: flex-start;
        }

        .xantract-v2 .xv2-status-wrap {
            width: 100%;
            justify-content: flex-start;
        }
}
@media (max-width: 900px) {
    .xantract-v2 .xv2-input-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .xantract-v2 .xv2-input-card-tools {
        justify-content: flex-start;
        max-width: 100%;
    }
}


@media (max-width: 700px) {
    .xantract-v2 .xv2-editor-grid {
        grid-template-columns: 1fr;
    }

    .xantract-v2 .xv2-editor-wide {
        grid-column: span 1;
    }

    .xantract-v2 .xv2-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xantract-v2 .xv2-footer-actions {
        justify-content: stretch;
    }

    .xantract-v2 .xv2-btn-large {
        width: 100%;
    }
}
