:root {
    --erp-navy-950: #071426;
    --erp-navy-900: #0b1f3a;
    --erp-blue-700: #2459b3;
    --erp-blue-600: #3573d4;
    --erp-blue-500: #4b8bea;
    --erp-blue-200: #bfdbfe;
    --erp-blue-100: #dbeafe;
    --erp-blue-050: #eff6ff;

    --erp-surface: #ffffff;
    --erp-surface-soft: #f8fbff;
    --erp-surface-muted: #f1f5f9;

    --erp-border: #d9e3f0;
    --erp-border-strong: #bfd0e5;

    --erp-text: #172033;
    --erp-text-muted: #617087;
    --erp-text-soft: #8795aa;

    --erp-success: #17875b;
    --erp-success-soft: #e9f8f1;
    --erp-warning: #b56a13;
    --erp-warning-soft: #fff6e8;
    --erp-danger: #b93b48;
    --erp-danger-soft: #fff0f2;

    --erp-radius-sm: 8px;
    --erp-radius-md: 14px;
    --erp-radius-lg: 20px;
    --erp-radius-xl: 28px;

    --erp-shadow-sm:
        0 2px 8px rgba(15, 35, 64, 0.05);

    --erp-shadow-md:
        0 12px 34px rgba(15, 35, 64, 0.09);

    --erp-shadow-lg:
        0 24px 64px rgba(15, 35, 64, 0.12);

    --erp-transition:
        160ms ease;
}

.erp-page {
    min-height: calc(100vh - 120px);
    color: var(--erp-text);
    background:
        linear-gradient(
            90deg,
            rgba(53, 115, 212, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(53, 115, 212, 0.03) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 82% 8%,
            rgba(75, 139, 234, 0.12),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f5f9fe 100%
        );

    background-size:
        42px 42px,
        42px 42px,
        auto,
        auto;
}

.erp-page-shell {
    width: min(1540px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 56px;
}

.erp-eyebrow {
    margin-bottom: 8px;
    color: var(--erp-blue-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.erp-title {
    margin: 0;
    color: var(--erp-navy-950);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.erp-subtitle {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--erp-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.erp-card {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 251, 255, 0.98)
        );

    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius-lg);
    box-shadow: var(--erp-shadow-sm);
}

.erp-card-header {
    padding: 22px 24px 0;
}

.erp-card-body {
    padding: 22px 24px 24px;
}

.erp-section-title {
    margin: 0;
    color: var(--erp-navy-950);
    font-size: 19px;
    font-weight: 750;
}

.erp-section-description {
    margin: 5px 0 0;
    color: var(--erp-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.erp-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.erp-status::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.erp-status-active {
    color: var(--erp-success);
    background: var(--erp-success-soft);
}

.erp-status-inactive {
    color: var(--erp-danger);
    background: var(--erp-danger-soft);
}

.erp-status-progress {
    color: var(--erp-blue-700);
    background: var(--erp-blue-050);
}

.erp-field-label {
    display: block;
    margin-bottom: 7px;
    color: #34445d;
    font-size: 12px;
    font-weight: 750;
}

.erp-input,
.erp-select {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    color: var(--erp-text);
    background: #ffffff;
    border: 1px solid var(--erp-border-strong);
    border-radius: var(--erp-radius-sm);
    outline: none;
    transition:
        border-color var(--erp-transition),
        box-shadow var(--erp-transition);
}

.erp-input:focus,
.erp-select:focus {
    border-color: var(--erp-blue-500);
    box-shadow:
        0 0 0 3px rgba(75, 139, 234, 0.12);
}

.erp-help {
    margin-top: 6px;
    color: var(--erp-text-soft);
    font-size: 11px;
    line-height: 1.45;
}

.erp-divider {
    height: 1px;
    margin: 22px 0;
    background: var(--erp-border);
}

.erp-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 760px) {
    .erp-page-shell {
        width: min(100% - 24px, 1540px);
        padding-top: 18px;
    }

    .erp-card-header,
    .erp-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.erp-test-mode-banner {
    position: sticky;
    top: 0;
    z-index: 1025;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #6f3d08 0%,
            #9b5a0d 52%,
            #704008 100%
        );
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(63, 33, 4, 0.55);
    box-shadow:
        0 8px 24px rgba(33, 20, 4, 0.18);
}

.erp-test-mode-shell {
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.erp-test-mode-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.erp-test-mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
    white-space: nowrap;
}

.erp-test-mode-title {
    font-size: 14px;
    line-height: 1.35;
}

.erp-test-mode-copy {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.4;
}

.erp-test-mode-controls,
.erp-test-mode-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 9px;
}

.erp-test-mode-field {
    min-width: 160px;
}

.erp-test-mode-field label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.erp-test-mode-select {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
}

.erp-test-mode-apply,
.erp-test-mode-reset {
    min-height: 36px;
    white-space: nowrap;
}

.erp-test-mode-reset-form {
    margin: 0;
}

@media (max-width: 980px) {
    .erp-test-mode-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .erp-test-mode-controls,
    .erp-test-mode-form {
        width: 100%;
        justify-content: flex-start;
    }

    .erp-test-mode-field {
        flex: 1 1 190px;
    }
}

@media (max-width: 560px) {
    .erp-test-mode-shell {
        width: min(100% - 20px, 1540px);
    }

    .erp-test-mode-controls,
    .erp-test-mode-form {
        align-items: stretch;
        flex-direction: column;
    }

    .erp-test-mode-field,
    .erp-test-mode-apply,
    .erp-test-mode-reset,
    .erp-test-mode-reset-form {
        width: 100%;
    }
}
