:root {
    color-scheme: light;
    --fcc-blue: #00549f;
    --fcc-blue-dark: #003e77;
    --fcc-bg: #f3f6f8;
    --fcc-border: #d7e0e7;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--fcc-bg);
    color: #23313d;
    font-family: "Segoe UI", Arial, sans-serif;
}

.prototype-header {
    min-height: 64px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border-bottom: 1px solid var(--fcc-border);
    box-shadow: 0 2px 8px rgb(34 55 74 / 8%);
}

.brand {
    color: var(--fcc-blue);
    font-size: 1.35rem;
    font-weight: 750;
    text-decoration: none;
}

.prototype-header nav {
    display: flex;
    gap: 18px;
}

.prototype-header nav a {
    color: #33495b;
    text-decoration: none;
    font-weight: 600;
}

.prototype-header nav a:hover {
    color: var(--fcc-blue);
}

.customer-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.customer-switcher label {
    margin: 0;
    color: #64748b;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.customer-switcher select {
    min-width: 210px;
    max-width: 320px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--fcc-border);
    border-radius: 6px;
    background: #fff;
}

.prototype-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff2cc;
    border: 1px solid #e6bf4f;
    color: #6b5100;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-box form {
    margin: 0;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--fcc-blue);
    cursor: pointer;
    padding: 0;
}

.prototype-main {
    padding: 28px;
}

.prototype-panel {
    background: #fff;
    border: 1px solid var(--fcc-border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgb(34 55 74 / 7%);
    padding: 28px;
}

.prototype-panel h1 {
    margin-top: 0;
    font-size: 1.65rem;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.status-list {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 8px 20px;
    margin: 24px 0;
}

.status-list dt {
    font-weight: 700;
}

.status-list dd {
    margin: 0;
}

.status-ok { color: #267014; }
.status-error,
.validation-summary,
.field-validation-error { color: #b42318; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, var(--fcc-blue-dark), var(--fcc-blue));
}

.login-card {
    width: min(440px, 100%);
    padding: 32px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px rgb(0 0 0 / 28%);
}

.login-logo {
    display: block;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.login-badge { margin: 0 auto 22px; }
.login-card h1 { font-size: 1.55rem; }

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .78rem;
    font-weight: 700;
}

.status-pill.active { background: #e8f5e3; color: #2f6d1d; }
.status-pill.inactive { background: #f1f3f5; color: #68727d; }

.customers-page {
    max-width: 1540px;
    margin: 0 auto;
}

.customers-page .page-heading { margin-bottom: 18px; }
.customers-page .page-heading h1 { margin-bottom: 0; }

.customers-page .card {
    border-color: var(--fcc-border);
    box-shadow: none;
}

.customers-page .card-body { padding: 20px; }

.customers-page .es-top-table {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin-bottom: 12px;
}

.customers-page .table-title {
    margin: 0;
    color: #33495b;
    font-size: 1rem;
    font-weight: 700;
}

.customers-page .table-wrapper { overflow-x: auto; }

.customers-page table.biz-table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 14px !important;
}

.customers-page table.biz-table th,
.customers-page table.biz-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e8edf1;
    vertical-align: middle;
}

.customers-page table.biz-table th {
    color: #526576;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.customers-page table.biz-table th:nth-child(1) { width: 38%; }
.customers-page table.biz-table th:nth-child(2) { width: 28%; }
.customers-page table.biz-table th:nth-child(3) { width: 18%; }
.customers-page table.biz-table th:nth-child(4) { width: 16%; }

.customers-page .es-sortable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.customers-page .es-sorting {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3af;
}

.customers-page .es-sorting::before {
    content: "↕";
    font-size: 13px;
    line-height: 18px;
}

.customers-page .es-sorting.sort-up::before {
    content: "↑";
    color: var(--fcc-blue);
}

.customers-page .es-sorting.sort-down::before {
    content: "↓";
    color: var(--fcc-blue);
}

.customers-page .biz-table-empty {
    padding: 34px 14px !important;
    color: #64748b;
    text-align: center;
}

.customers-page .es-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.customers-page .pagination-info {
    color: #64748b;
    font-size: .875rem;
}

.customers-page .es-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.customers-page .es-pagination-buttons .biz-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    margin: 0;
    border: 1px solid #d6e0e7;
    border-radius: 6px;
    background: #fff;
    color: #496174;
    text-decoration: none;
}

.customers-page .es-pagination-buttons a.biz-link:hover {
    border-color: #9db8ce;
    background: #eef5fa;
    color: var(--fcc-blue);
}

.customers-page .es-pagination-buttons .biz-link.active {
    border-color: var(--fcc-blue);
    background: var(--fcc-blue);
    color: #fff;
}

.command-result + .command-result {
    margin-top: 30px;
}

.command-result-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.command-result-heading h2 {
    margin: 0;
    font-size: 1.15rem;
}

.command-type {
    padding: 2px 7px;
    border-radius: 4px;
    background: #e8eef5;
    color: #35526d;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 780px) {
    .prototype-header {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px 18px;
        gap: 12px 18px;
    }

    .user-box { margin-left: 0; width: 100%; }
    .customer-switcher { margin-left: 0; width: 100%; }
    .customer-switcher select { flex: 1; max-width: none; }
    .prototype-main { padding: 16px; }
    .prototype-panel { padding: 18px; }
    .status-list { grid-template-columns: 1fr; }
    .customers-page .card-body { padding: 14px; }
    .customers-page .es-pagination { align-items: flex-start; flex-direction: column; }
    .customers-page .es-pagination-buttons { flex-wrap: wrap; }
}
