﻿/*
 * BykeLease reusable UI components
 * Bootstrap 5 / NiceAdmin vendor foundation with project-safe .byke-* names.
 * Keep global shell rules in admin-shell.css and unique page rules in pages/.
 */

:root {
    --byke-navy: #001f48;
    --byke-blue: var(--byke-primary, #3059f3);
    --byke-blue-dark: var(--byke-dark-blue, #15447e);
    --byke-surface: #ffffff;
    --byke-page-bg: #edf6ff;
    --byke-text-strong: #001f48;
    --byke-text-muted: #607292;
    --byke-border: #d8e3f1;
    --byke-success: #16a36a;
    --byke-warning: #f3a51f;
    --byke-danger: #e34155;
    --byke-info-bg: #edf2ff;
    --byke-radius-sm: 8px;
    --byke-radius: 12px;
    --byke-radius-lg: 16px;
    --byke-shadow-sm: 0 3px 10px rgba(0, 31, 72, 0.07);
    --byke-shadow: 0 8px 24px rgba(0, 31, 72, 0.09);
}

/* Page structure */
.byke-page {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 28px;
    color: var(--byke-text-strong);
}

.byke-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.byke-page-heading {
    min-width: 0;
}

.byke-page-title {
    margin: 0;
    color: var(--byke-text-strong);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.byke-page-subtitle {
    margin: 7px 0 0;
    color: var(--byke-text-muted);
    font-size: 17px;
}

.byke-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.byke-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--byke-text-muted);
    font-size: 14px;
    list-style: none;
}

/* Tariff overview: accessible breadcrumb size without altering other pages. */
.tariff-overview .byke-breadcrumb {
    font-size: 0.95rem;
}

.byke-breadcrumb a {
    color: var(--byke-blue);
    text-decoration: none;
}

    .byke-breadcrumb a:hover {
        text-decoration: underline;
    }

.byke-breadcrumb li + li::before {
    margin-right: 7px;
    color: #96a6bd;
    content: "/";
}

/* Shared cards */
.byke-card {
    overflow: hidden;
    border: 1px solid var(--byke-border);
    border-radius: var(--byke-radius-lg);
    background: var(--byke-surface);
    box-shadow: var(--byke-shadow-sm);
}

.byke-card-header,
.byke-card-body,
.byke-card-footer {
    padding: 20px 22px;
}

.byke-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--byke-border);
}

.byke-card-footer {
    border-top: 1px solid var(--byke-border);
    background: #fbfdff;
}

.byke-card-title {
    margin: 0;
    color: var(--byke-text-strong);
    font-size: 19px;
    font-weight: 700;
}

.byke-card-description {
    margin: 5px 0 0;
    color: var(--byke-text-muted);
    font-size: 14.5px;
    max-width: 760px !important;
}

.byke-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .byke-section-heading .byke-card-title {
        font-size: 1.25rem;
    }

.byke-section-icon,
.byke-section-number {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--byke-blue);
    background: var(--byke-info-bg);
    font-size: 1.25rem;
    font-weight: 800;
}

.byke-section-number {
    font-size: 1.1rem;
}

.byke-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--byke-border);
}

/* Bootstrap controls, scoped so existing pages do not change until migrated. */
.byke-page .form-label {
    margin-bottom: 7px;
    color: var(--byke-text-strong);
    font-size: 15px;
    font-weight: 600;
}

    .byke-page .form-label .byke-required,
    .byke-required {
        margin-left: 2px;
        color: var(--byke-danger);
    }

.byke-page .form-control,
.byke-page .form-select {
    min-height: 44px;
    border-color: var(--byke-border);
    border-radius: var(--byke-radius-sm);
    color: var(--byke-text-strong);
    background-color: #fff;
    font-size: 15px;
    box-shadow: none;
}

.byke-page textarea.form-control {
    min-height: 105px;
    resize: vertical;
}

.byke-page .form-control::placeholder {
    color: #98a6ba;
}

.byke-page .form-control:focus,
.byke-page .form-select:focus {
    border-color: var(--byke-blue);
    box-shadow: 0 0 0 0.2rem rgba(48, 89, 243, 0.14);
}

.byke-page .form-control[readonly],
.byke-page .form-control:disabled,
.byke-page .form-select:disabled {
    color: #75859c;
    background: #f4f7fb;
}

.byke-page .form-text,
.byke-help {
    margin-top: 6px;
    color: var(--byke-text-muted);
    font-size: 0.78rem;
}

.byke-page .invalid-feedback {
    color: var(--byke-danger);
    font-size: 0.78rem;
}

.byke-page .btn {
    min-height: 42px;
    padding: 9px 17px;
    border-radius: var(--byke-radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.byke-page .btn-primary {
    border-color: var(--byke-blue);
    background: var(--byke-blue);
}

    .byke-page .btn-primary:hover,
    .byke-page .btn-primary:focus {
        border-color: #2449d5;
        background: #2449d5;
    }

.byke-page .btn-outline-primary {
    border-color: var(--byke-blue);
    color: var(--byke-blue);
}

    .byke-page .btn-outline-primary:hover,
    .byke-page .btn-outline-primary:focus {
        border-color: var(--byke-blue);
        color: #fff;
        background: var(--byke-blue);
    }

.byke-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .byke-btn-icon > i {
        font-size: 1.05rem;
    }

.byke-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.byke-field-full {
    grid-column: 1 / -1;
}

.byke-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}

.byke-field-action {
    display: flex;
    align-items: flex-end;
}

    .byke-field-action .btn {
        width: 100%;
    }

.byke-phone-input {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
}

    .byke-phone-input .form-select {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .byke-phone-input .form-control {
        margin-left: -1px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

/* Status and context */
.byke-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--byke-blue);
    background: var(--byke-info-bg);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.byke-chip-success {
    color: #08794b;
    background: #e7f8f0;
}

.byke-chip-warning {
    color: #9b6500;
    background: #fff5d9;
}

.byke-chip-danger {
    color: #b3263a;
    background: #ffeaed;
}

.byke-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #dce6fb;
    border-radius: var(--byke-radius);
    color: var(--byke-text-strong);
    background: #f5f8ff;
    font-size: 0.85rem;
}

.byke-customer-context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 320px;
}

.byke-customer-context-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
}

    .byke-customer-context-copy > span,
    .byke-customer-context-copy > small {
        color: var(--byke-text-muted);
        font-size: 0.72rem;
    }

    .byke-customer-context-copy > strong {
        overflow: hidden;
        max-width: 220px;
        font-size: 0.88rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.byke-context > i {
    color: var(--byke-blue);
    font-size: 1.25rem;
}

/* Multi-step forms */
.byke-wizard {
    display: grid;
    grid-template-columns: repeat(var(--byke-step-count, 4), minmax(0, 1fr));
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--byke-border);
    border-radius: var(--byke-radius-lg);
    background: #fff;
    box-shadow: var(--byke-shadow-sm);
    overflow-x: auto;
}

.byke-wizard-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0 8px 0 0;
    border: 0;
    color: #8492a7;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

    .byke-wizard-step:not(:last-child)::after {
        position: absolute;
        z-index: 0;
        top: 17px;
        left: 43px;
        width: calc(100% - 51px);
        height: 2px;
        background: #dce3ed;
        content: "";
    }

.byke-wizard-dot {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #cbd5e3;
    border-radius: 50%;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.byke-wizard-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-right: 10px;
    background: #fff;
}

.byke-wizard-label,
.byke-wizard-state {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.byke-wizard-label {
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.byke-wizard-state {
    margin-top: 2px;
    font-size: 0.7rem;
}

.byke-wizard-step.is-current {
    color: var(--byke-blue);
}

    .byke-wizard-step.is-current .byke-wizard-dot {
        border-color: var(--byke-blue);
        color: #fff;
        background: var(--byke-blue);
        box-shadow: 0 0 0 5px rgba(48, 89, 243, 0.12);
    }

.byke-wizard-step.is-complete {
    color: var(--byke-success);
}

    .byke-wizard-step.is-complete .byke-wizard-dot {
        border-color: var(--byke-success);
        color: #fff;
        background: var(--byke-success);
    }

    .byke-wizard-step.is-complete:not(:last-child)::after {
        background: var(--byke-success);
    }

[data-byke-view][hidden] {
    display: none !important;
}

/* Upload control */
.byke-upload {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed #a9b9d0;
    border-radius: var(--byke-radius);
    background: #fbfdff;
}

.byke-upload-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: var(--byke-blue);
    background: var(--byke-info-bg);
    font-size: 1.25rem;
}

.byke-upload-copy {
    min-width: 0;
    flex: 1;
}

.byke-upload-name {
    display: block;
    overflow: hidden;
    color: var(--byke-text-strong);
    font-size: 0.84rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.byke-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.byke-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.byke-data-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--byke-border);
    border-radius: var(--byke-radius);
    background: #fbfdff;
}

.byke-data-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.byke-data-box-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

/* Tables */
.byke-table-card {
    overflow: hidden;
    border: 1px solid var(--byke-border);
    border-radius: var(--byke-radius-lg);
    background: #fff;
    box-shadow: var(--byke-shadow-sm);
}

    .byke-table-card .table-responsive {
        margin: 0;
    }

.byke-page .table {
    margin: 0;
    color: var(--byke-text-strong);
    font-size: 0.84rem;
    vertical-align: middle;
}

    .byke-page .table > :not(caption) > * > * {
        padding: 13px 15px;
        border-bottom-color: #e5ecf5;
    }

    .byke-page .table thead th {
        border-bottom-width: 1px;
        color: var(--byke-text-muted);
        background: #f7faff;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        white-space: nowrap;
    }

.byke-empty-row {
    padding: 36px 20px !important;
    color: var(--byke-text-muted);
    text-align: center;
}

/* Dashboard/overview building blocks */
.byke-stat-grid,
.byke-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.byke-stat-card,
.byke-choice-card {
    border: 1px solid var(--byke-border);
    border-radius: var(--byke-radius);
    background: #fff;
    box-shadow: var(--byke-shadow-sm);
}

.byke-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
}

.byke-stat-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--byke-blue);
    background: var(--byke-info-bg);
    font-size: 1.15rem;
}

.byke-stat-label,
.byke-stat-value {
    display: block;
}

.byke-stat-label {
    color: var(--byke-text-muted);
    font-size: 14px;
}

.byke-stat-value {
    margin-top: 2px;
    color: var(--byke-text-strong);
    font-size: 1.25rem;
    font-weight: 700;
}

.byke-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.byke-choice-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    .byke-choice-card:hover,
    .byke-choice-card:focus-visible {
        border-color: var(--byke-blue);
        color: inherit;
        box-shadow: var(--byke-shadow);
        transform: translateY(-2px);
    }

.byke-choice-icon {
    display: inline-flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    color: var(--byke-navy);
    background: var(--byke-info-bg);
    font-size: 2rem;
}

.byke-choice-image {
    display: inline-flex;
    flex: 0 0 112px;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 16px;
    background: var(--byke-info-bg);
}

    .byke-choice-image img {
        width: 86px;
        height: 86px;
        object-fit: contain;
    }

.byke-choice-copy,
.byke-choice-copy > span,
.byke-choice-copy > strong {
    display: block;
}

.byke-choice-link {
    margin-top: 13px;
    color: var(--byke-blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.byke-status-message {
    min-height: 20px;
    color: var(--byke-text-muted);
    font-size: 0.8rem;
}

    .byke-status-message.is-success {
        color: var(--byke-success);
    }

    .byke-status-message.is-error {
        color: var(--byke-danger);
    }

.byke-form-shell {
    margin-top: 20px;
}

.byke-choice-title {
    margin: 0 0 5px;
    font-size: 1.05rem;
    font-weight: 700;
}

.byke-choice-description {
    margin: 0;
    color: var(--byke-text-muted);
    font-size: 0.84rem;
}

.byke-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 1199.98px) {
    .byke-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .byke-page {
        padding: 20px 16px;
    }

    .byke-page-header {
        flex-direction: column;
        gap: 16px;
    }

    .byke-page-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .byke-form-grid,
    .byke-form-grid-3,
    .byke-choice-grid {
        grid-template-columns: 1fr;
    }

    .byke-customer-context {
        min-width: 0;
        justify-content: flex-start;
    }

    .byke-customer-context-copy {
        align-items: flex-start;
    }

    .byke-wizard {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .byke-wizard-step:not(:last-child)::after {
        top: 39px;
        left: 16px;
        width: 2px;
        height: calc(100% - 21px);
    }

    .byke-wizard-copy {
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .byke-stat-grid {
        grid-template-columns: 1fr;
    }

    .byke-card-header,
    .byke-card-body,
    .byke-card-footer {
        padding: 17px;
    }

    .byke-upload {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .byke-upload-actions {
        width: 100%;
    }

    .byke-choice-card {
        align-items: flex-start;
    }

    .byke-choice-image {
        flex-basis: 82px;
        width: 82px;
        height: 82px;
    }

        .byke-choice-image img {
            width: 64px;
            height: 64px;
        }
}

@media (prefers-reduced-motion: reduce) {
    .byke-choice-card {
        transition: none;
    }
}

/*
 * Approved Customer UI visual profile
 *
 * These scoped rules preserve the original BykeLease Customer screens while
 * keeping their Razor markup on the shared Bootstrap/.byke-* component layer.
 */
.byke-customer-create,
.byke-customer-form {
    --byke-customer-navy: #001f48;
    --byke-customer-blue: #3059f3;
    padding: 30px 40px 40px;
    color: var(--byke-customer-navy);
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

.byke-customer-form {
    padding-bottom: 30px;
}

    .byke-customer-form .byke-breadcrumb {
        gap: 7px;
        margin-bottom: 10px;
        color: #607292;
        font-size: 15px;
        font-weight: 400;
    }

        .byke-customer-form .byke-breadcrumb a {
            color: var(--byke-blue);
            font-weight: 400;
        }

        .byke-customer-form .byke-breadcrumb li:last-child {
            color: #607292;
            font-weight: 400;
        }

    .byke-customer-create .byke-page-header,
    .byke-customer-form .byke-page-header {
        margin-bottom: 0;
    }

    .byke-customer-create .byke-page-title,
    .byke-customer-form .byke-page-title {
        color: var(--byke-customer-navy);
        font-size: 34px;
        font-weight: 800;
        line-height: 1.2;
    }

    .byke-customer-create .byke-page-subtitle,
    .byke-customer-form .byke-page-subtitle {
        margin-top: 4px;
        color: rgba(0, 31, 72, 0.6);
        font-size: 17px;
        font-weight: 300;
    }

/* Create Customer name card */
.byke-customer-create .byke-customer-name-card {
    margin-top: 22px;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 31, 72, 0.06);
}

    .byke-customer-create .byke-customer-name-card .byke-card-body {
        padding: 18px 20px;
    }

.byke-customer-create .byke-section-heading {
    gap: 12px;
}

.byke-customer-create .byke-section-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #edf3ff;
    font-size: 20px;
}

.byke-customer-create .byke-section-heading .byke-card-title {
    color: var(--byke-customer-navy);
    font-size: 20px;
    font-weight: 800;
}

.byke-customer-create .byke-card-description {
    margin-top: 3px;
    color: #7d8ba0;
    font-size: 15.5px;
}

.byke-customer-create .byke-customer-name-card .row {
    margin-top: 11px !important;
}

.byke-customer-create .form-label {
    margin: 0 0 7px 2px;
    color: #42516a;
    font-size: 16px;
    font-weight: 800;
}

.byke-customer-create .input-group {
    min-height: 48px;
}

.byke-customer-create .input-group-text {
    width: 44px;
    justify-content: center;
    border-color: #d5dfec;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    color: #8493a8;
    background: #fbfdff;
}

.byke-customer-create .input-group .form-control {
    height: 48px;
    border-color: #d5dfec;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: #fbfdff;
    font-size: 14px;
}

.byke-customer-create .input-group:focus-within .input-group-text,
.byke-customer-create .input-group:focus-within .form-control {
    border-color: var(--byke-customer-blue);
    background: #fff;
}

.byke-customer-create .input-group:focus-within {
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(48, 89, 243, 0.1);
}

.byke-customer-create .input-group .form-control:focus {
    box-shadow: none;
}

.byke-customer-create #saveCustomerNameBtn {
    min-width: 112px;
    height: 48px;
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(48, 89, 243, 0.14);
    font-size: 12px;
    font-weight: 800;
}

.byke-customer-create .byke-status-message {
    min-height: 17px;
    color: #8795a8;
    font-size: 11px;
}

    .byke-customer-create .byke-status-message.is-success {
        color: #168657;
        font-weight: 700;
    }

    .byke-customer-create .byke-status-message.is-error {
        color: #c84b4b;
        font-weight: 700;
    }

/* Customer type cards retain the approved large, centred appearance. */
.byke-customer-create .byke-choice-grid {
    min-height: 350px;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: stretch;
    gap: 34px;
    margin-top: 28px;
}

.byke-customer-create .byke-choice-card {
    min-height: 350px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 40px 24px;
    border-color: transparent;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 31, 72, 0.07);
    text-align: center !important;
}

    .byke-customer-create .byke-choice-card:hover,
    .byke-customer-create .byke-choice-card:focus-visible {
        border-color: rgba(48, 89, 243, 0.25);
        box-shadow: 0 14px 30px rgba(0, 31, 72, 0.14);
        transform: translateY(-4px);
    }

.byke-customer-create .byke-choice-image {
    width: auto;
    height: auto;
    margin-bottom: 34px;
    flex-basis: auto;
    border-radius: 0;
    background: transparent;
}

    .byke-customer-create .byke-choice-image img {
        width: 118px;
        height: 118px;
    }

.byke-customer-create .byke-choice-title {
    margin: 0;
    color: var(--byke-customer-navy);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.byke-customer-create .byke-choice-description {
    max-width: 360px;
    margin: 12px auto 0;
    color: rgba(0, 31, 72, 0.55);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

.byke-customer-create .byke-choice-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding: 11px 26px;
    border-radius: 6px;
    color: #fff;
    background: var(--byke-customer-navy);
    font-size: 13px;
    font-weight: 600;
}

/* Corporate and Individual create/update pages */
.byke-customer-form .byke-customer-context {
    width: min(450px, 100%);
    min-width: 360px;
    min-height: 68px;
    flex: 0 1 450px;
    justify-content: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid #d8e4f3;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 31, 72, 0.05);
}

.byke-customer-form .byke-customer-context-copy {
    min-width: 0;
    flex: 1 1 auto;
    align-items: flex-start;
}

    .byke-customer-form .byke-customer-context-copy > span {
        color: #8592a5;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.05em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .byke-customer-form .byke-customer-context-copy > strong {
        max-width: 210px;
        color: var(--byke-customer-navy);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
    }

    .byke-customer-form .byke-customer-context-copy > small {
        min-height: 14px;
        color: #8492a6;
        font-size: 10px;
    }

.byke-customer-form .byke-chip {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 800;
}

/* Exact approved centred progress stepper. */
.byke-customer-form .byke-wizard {
    display: flex;
    gap: 0;
    margin: 14px 0 0;
    padding: 26px 24px 22px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 31, 72, 0.06);
    overflow-x: auto;
}

.byke-customer-form .byke-wizard-step {
    position: relative;
    min-width: 120px;
    flex: 1 0 120px;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 4px;
    color: var(--byke-customer-navy);
    text-align: center;
}

    .byke-customer-form .byke-wizard-step::after {
        content: none;
    }

    .byke-customer-form .byke-wizard-step:not(:first-child)::before {
        position: absolute;
        z-index: 0;
        top: 14px;
        left: -50%;
        width: 100%;
        height: 2px;
        background: #d7deea;
        content: "";
    }

    .byke-customer-form .byke-wizard-step.is-complete:not(:first-child)::before {
        background: var(--byke-customer-blue);
    }

.byke-customer-form .byke-wizard-dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border: 2px solid #d7deea;
    background: #fff;
    color: #90a0b8;
    font-size: 13px;
    box-shadow: none;
}

.byke-customer-form .byke-wizard-step.is-current .byke-wizard-dot {
    border-color: var(--byke-customer-blue);
    color: var(--byke-customer-blue);
    background: #fff;
    box-shadow: none;
}

.byke-customer-form .byke-wizard-step.is-complete .byke-wizard-dot {
    border-color: var(--byke-customer-blue);
    color: #fff;
    background: var(--byke-customer-blue);
}

.byke-customer-form .byke-wizard-copy {
    padding: 0 6px;
    background: transparent;
}

.byke-customer-form .byke-wizard-label {
    margin-top: 11px;
    color: var(--byke-customer-navy);
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
}

.byke-customer-form .byke-wizard-state {
    margin-top: 4px;
    color: #90a0b8;
    font-size: 13px;
}

.byke-customer-form .byke-wizard-step.is-current .byke-wizard-state {
    color: #e6a100;
}

.byke-customer-form .byke-wizard-step.is-complete .byke-wizard-state {
    color: #1faf68;
}

.byke-customer-form .byke-form-shell {
    margin-top: 18px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 31, 72, 0.06);
}

.byke-customer-form .byke-card-body {
    padding: 30px 34px 34px;
}

.byke-customer-form .byke-section-heading {
    gap: 16px;
    margin-bottom: 22px;
}

.byke-customer-form .byke-section-number {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 14px;
    color: var(--byke-customer-blue);
    background: #eaf1fb;
    font-size: 24px;
}

.byke-customer-form .byke-section-heading .byke-card-title {
    color: var(--byke-customer-navy);
    font-size: 24px;
    font-weight: 800;
}

.byke-customer-form .byke-section-heading .byke-card-description {
    max-width: 700px;
    margin-top: 3px;
    color: rgba(0, 31, 72, 0.55);
    font-size: 15px;
}

.byke-customer-form .byke-divider {
    margin: 0 0 26px;
    background: #e7ebf2;
}

.byke-customer-form .byke-form-grid,
.byke-customer-form .byke-form-grid-3 {
    gap: 24px 40px;
}

.byke-customer-form .byke-form-grid-3 {
    gap: 24px 28px;
}

.byke-customer-form .form-label {
    margin-bottom: 8px;
    color: #2b3a52;
    font-size: 15px;
    font-weight: 700;
}

.byke-customer-form .form-control,
.byke-customer-form .form-select {
    min-height: 46px;
    padding: 12px 14px;
    border-color: #d7deea;
    border-radius: 8px;
    color: #1a2b45;
    background-color: #fff;
    font-size: 16px;
}

.byke-customer-form textarea.form-control {
    height: 96px;
    min-height: 96px;
    resize: none;
}

.byke-customer-form .form-control[readonly] {
    color: #8a97ab;
    background: #eef1f6;
    cursor: not-allowed;
}

.byke-customer-form .byke-help {
    margin-top: 7px;
    color: #8a97ab;
    font-size: 15px;
    line-height: 1.4;
}

.byke-customer-form .byke-phone-input {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
}

    .byke-customer-form .byke-phone-input .form-select,
    .byke-customer-form .byke-phone-input .form-control {
        margin: 0;
        border-radius: 8px;
    }

.byke-customer-form .byke-data-box {
    margin-top: 22px;
    padding: 16px;
    border-color: #e0e6ef;
    border-radius: 10px;
    background: #fbfdff;
}

.byke-customer-form .byke-data-box-title {
    color: var(--byke-customer-navy);
    font-size: 16px;
    font-weight: 800;
}

.byke-customer-form .byke-upload {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 15px 16px;
    border-color: #c8d4e4;
    border-radius: 10px;
}

.byke-customer-form .byke-upload-name {
    font-size: 15px;
}

.byke-customer-form .byke-card-footer {
    margin-top: 10px;
    padding: 20px 34px;
    border-top-color: #eef1f6;
    background: #fff;
}

    .byke-customer-form .byke-card-footer .btn {
        min-height: 44px;
        padding: 11px 20px;
        font-size: 15px;
        font-weight: 700;
    }

@media (max-width: 1100px) {
    .byke-customer-form .byke-page-header {
        flex-direction: column;
    }

    .byke-customer-form .byke-customer-context {
        width: min(450px, 100%);
        min-width: 0;
        justify-content: flex-start;
    }

    .byke-customer-form .byke-customer-context-copy {
        align-items: flex-start;
    }

    .byke-customer-form .byke-form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .byke-customer-create,
    .byke-customer-form {
        padding: 22px 18px 30px;
    }

        .byke-customer-create .byke-choice-grid,
        .byke-customer-form .byke-form-grid,
        .byke-customer-form .byke-form-grid-3 {
            grid-template-columns: 1fr;
        }

        .byke-customer-form .byke-card-body {
            padding: 24px 20px;
        }

        .byke-customer-form .byke-card-footer {
            padding: 18px 20px;
        }
}

@media (max-width: 620px) {
    .byke-customer-form .byke-customer-context {
        width: 100%;
        flex-wrap: wrap;
    }

    .byke-customer-form .byke-phone-input {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .byke-customer-form .byke-upload {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .byke-customer-form .byke-upload-actions {
        grid-column: 1 / -1;
    }

    .byke-customer-form .byke-card-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .byke-customer-create .byke-choice-card {
        align-items: center;
    }

    .byke-customer-create .byke-choice-image {
        width: auto;
        height: auto;
    }

        .byke-customer-create .byke-choice-image img {
            width: 118px;
            height: 118px;
        }
}

.byke-supplier-form .byke-supplier-context {
    width: min(470px, 100%);
    min-width: 380px;
    min-height: 84px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #d8e4f3;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 31, 72, 0.07);
}

.byke-supplier-form .byke-supplier-context-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

    .byke-supplier-form .byke-supplier-context-copy > span {
        margin: 0;
        color: #8592a5;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.05em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .byke-supplier-form .byke-supplier-context-copy > strong {
        max-width: 230px;
        margin: 1px 0 0;
        color: var(--byke-customer-navy);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.3;
    }

    .byke-supplier-form .byke-supplier-context-copy > small {
        margin-top: 1px;
        color: #8492a6;
        font-size: 14px;
        line-height: 1.3;
    }

.byke-supplier-form .byke-supplier-context > .d-flex {
    min-width: 128px;
    flex: 0 0 auto;
    align-items: flex-end !important;
    justify-content: center;
    gap: 10px !important;
}

.byke-supplier-form .byke-supplier-context .byke-chip {
    min-width: 112px;
    padding: 7px 12px;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   Corporate Supplier Record Card
   ========================================================= */

.byke-supplier-form .supplier-record-card {
    width: min(470px, 100%);
    min-width: 380px;
    min-height: 92px;
    padding: 15px 22px 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid #d5e3f3;
    border-bottom: 4px solid #9dc4f5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 31, 72, 0.07), 0 3px 7px rgba(48, 89, 243, 0.06);
}

.byke-supplier-form .supplier-record-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.byke-supplier-form .supplier-record-card__label {
    color: #637590;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.byke-supplier-form .supplier-record__dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    display: inline-block;
    border-radius: 50%;
}

.byke-supplier-form .supplier-record__dot--pending {
    background: #ffd76a;
}

.byke-supplier-form .supplier-record__dot--completed {
    background: #29b765;
}

.byke-supplier-form .supplier-record-card__name {
    margin-top: 10px;
    overflow: hidden;
    color: #001f48;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.byke-supplier-form .supplier-record-card__bottom {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.byke-supplier-form .supplier-record-card__code {
    overflow: hidden;
    color: #445d80;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.byke-supplier-form .supplier-record-card__pill {
    min-width: 148px;
    padding: 8px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #4267f5;
    background: #eef2ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {

    .byke-supplier-form .supplier-record-card {
        width: min(470px, 100%);
        min-width: 0;
    }
}

@media (max-width: 620px) {

    .byke-supplier-form .supplier-record-card {
        width: 100%;
        padding: 14px 16px;
    }

    .byke-supplier-form .supplier-record-card__name {
        font-size: 17px;
    }

    .byke-supplier-form .supplier-record-card__pill {
        min-width: auto;
        padding: 7px 12px;
    }
}

/* =========================================================
   Corporate Supplier Header Alignment
   ========================================================= */

.byke-supplier-form .byke-page-header {
    align-items: center;
    margin-bottom: 0;
}

.byke-supplier-form .byke-page-heading {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .byke-supplier-form .byke-page-heading .byke-breadcrumb {
        margin: 0 0 7px;
    }

    .byke-supplier-form .byke-page-heading .byke-page-title {
        margin: 0;
    }

    .byke-supplier-form .byke-page-heading .byke-page-subtitle {
        margin-top: 4px;
    }

.byke-supplier-form .byke-wizard {
    margin-top: 14px;
}

.byke-supplier-form .byke-form-shell {
    margin-top: 18px;
}
/* Tariff Add/Edit/View breadcrumb readability (scoped; other modules unchanged). */
.byke-tariff-form-page .byke-breadcrumb,
.byke-tariff-view-page .byke-breadcrumb {
    font-size: 14px;
}

    .byke-tariff-form-page .byke-breadcrumb a,
    .byke-tariff-view-page .byke-breadcrumb a {
        font-size: inherit;
    }

.byke-customer-form .byke-data-box .table {
    font-size: 15.5px;
}

    .byke-customer-form .byke-data-box .table thead th {
        font-size: 14px;
    }

.byke-customer-form .form-text {
    font-size: 14.5px;
}

.byke-customer-form .invalid-feedback {
    font-size: 14px;
}


/* Corporate Customer record card */

.byke-customer-form .customer-record-card {
    width: min(470px, 100%);
    min-height: 92px;
    flex: 0 1 470px;
    padding: 15px 22px 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    border-bottom: 4px solid #9dc4f5;
    border-radius: 14px;
}

.byke-customer-form .customer-record-card__top,
.byke-customer-form .customer-record-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.byke-customer-form .customer-record-card #customerContextLabel {
    color: #637590;
    font-size: 14px;
    font-weight: 600;
}

.byke-customer-form .customer-record-card__name {
    margin-top: 8px;
    color: #001f48;
    font-size: 19px;
    font-weight: 800;
}

.byke-customer-form .customer-record-card #customerContextId {
    color: #445d80;
    font-size: 14px;
    font-weight: 500;
}

.byke-customer-form .customer-record-card__dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: #ffd76a;
}

.byke-customer-form .customer-record-card__bottom .byke-chip {
    min-width: 148px;
    padding: 8px 17px;
    justify-content: center;
}
