h1:focus {
    outline: none;
}

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

body {
    color: #17212b;
}

a {
    color: #003865;
}

.customer-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(0, 56, 101, 0.08) 0, rgba(245, 247, 250, 0) 280px),
        #f5f7fa;
}

.customer-appbar {
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(23, 33, 43, 0.08);
    background: rgba(255, 255, 255, 0.94) !important;
    color: #17212b !important;
    backdrop-filter: blur(10px);
}

.customer-brand {
    font-weight: 700;
    color: #003865;
}

.customer-nav {
    align-items: center;
}

.customer-nav .mud-button-root {
    min-width: 0;
    border-radius: 6px;
    color: #32485a;
    font-weight: 600;
    text-transform: none;
}

.customer-nav .mud-button-root:hover {
    background: rgba(0, 56, 101, 0.08);
    color: #003865;
}

.customer-user-menu .mud-icon-button {
    color: #003865;
}

.customer-user-menu .mud-icon-button:hover {
    background: rgba(0, 56, 101, 0.08);
}

.customer-main {
    min-height: calc(100vh - 120px);
}

.customer-content {
    width: 100%;
}

.customer-footer {
    padding: 20px 28px 28px;
    color: #6f7d89;
    text-align: center;
}

.customer-dashboard {
    padding-top: 40px;
    padding-bottom: 56px;
}

.dashboard-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.06);
}

.dashboard-title {
    margin-bottom: 8px;
    color: #17212b;
    font-weight: 750;
}

.dashboard-subtitle {
    max-width: 760px;
    color: #5d6b78;
}

.dashboard-chip {
    border: 1px solid rgba(15, 139, 141, 0.22);
    border-radius: 999px;
    background: rgba(15, 139, 141, 0.08);
    color: #0d696b;
    font-weight: 700;
}

.dashboard-card {
    display: flex;
    height: 100%;
    padding: 24px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.05);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dashboard-card:hover {
    border-color: rgba(0, 56, 101, 0.24);
    box-shadow: 0 16px 34px rgba(23, 33, 43, 0.09);
    transform: translateY(-1px);
}

.dashboard-card-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 56, 101, 0.08);
    color: #003865;
}

.dashboard-card-title {
    color: #17212b;
    font-weight: 700;
}

.dashboard-card-text {
    min-height: 56px;
    color: #5d6b78;
}

.dashboard-card-action {
    align-self: flex-start;
    margin-top: 8px;
    border-radius: 6px;
    text-transform: none;
    font-weight: 700;
}

.auth-page {
    min-height: calc(100vh - 116px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 20px 58px;
}

.auth-panel {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: stretch;
}

.auth-panel-wide {
    width: min(1180px, 100%);
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.auth-copy {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    border: 1px solid rgba(0, 56, 101, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 56, 101, 0.96), rgba(15, 139, 141, 0.9)),
        #003865;
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(23, 33, 43, 0.16);
}

.auth-logo-card {
    display: flex;
    width: 150px;
    height: 122px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(0, 20, 36, 0.18);
}

.auth-logo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
    font-weight: 800;
}

.auth-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

.auth-badge {
    width: max-content;
    margin-bottom: 26px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(23, 33, 43, 0.08);
}

.auth-card-wide {
    justify-content: flex-start;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.auth-field-span {
    grid-column: 1 / -1;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #32485a;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-field .form-control {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    background: #ffffff;
    color: #17212b;
    font: inherit;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-field .form-control:focus {
    border-color: #003865;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 56, 101, 0.12);
}

.auth-options {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 22px;
    color: #5d6b78;
    font-size: 0.93rem;
}

.auth-options a,
.auth-links a {
    color: #003865;
    font-weight: 700;
    text-decoration: none;
}

.auth-options a:hover,
.auth-links a:hover {
    text-decoration: underline;
}

.auth-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: #003865;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: background 120ms ease, transform 120ms ease;
}

.auth-submit:hover {
    background: #002c50;
    transform: translateY(-1px);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 20px;
    color: #9aa6b2;
    font-size: 0.92rem;
}

.auth-links span {
    width: 1px;
    background: #d7dee6;
}

.validation-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(198, 40, 40, 0.18);
    border-radius: 6px;
    background: rgba(198, 40, 40, 0.06);
}

.text-danger {
    color: #c62828;
}

.customer-page {
    padding-top: 34px;
    padding-bottom: 56px;
}

.customer-page-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px;
}

.customer-page-title {
    font-weight: 800;
}

.customer-page-subtitle {
    max-width: 760px;
    color: #5d6b78;
}

.customer-address-card,
.tenant-site-card,
.account-card,
.empty-state {
    border: 1px solid rgba(23, 33, 43, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.06);
}

.customer-address-card {
    padding: 22px;
}

.address-card-header,
.tenant-card-header,
.usage-tile-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.site-empty {
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed #cbd5df;
    border-radius: 8px;
    background: #f8fafc;
    color: #5d6b78;
}

.tenant-site-card {
    padding: 18px;
    background: #fbfcfe;
}

.tenant-usage-grid {
    margin-top: 12px;
    margin-bottom: 12px;
}

.usage-tile {
    height: 100%;
    min-height: 132px;
    padding: 14px;
    border: 1px solid #dbe3eb;
    border-radius: 8px;
    background: #ffffff;
}

.usage-empty {
    margin-top: 18px;
    color: #7b8794;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid #eef2f6;
}

.usage-item span {
    color: #17212b;
    font-weight: 700;
}

.usage-item small {
    color: #657382;
}

.account-card {
    padding: 26px;
}

.account-label {
    display: block;
    margin-bottom: 8px;
    color: #32485a;
    font-size: 0.92rem;
    font-weight: 700;
}

.account-input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #cbd5df;
    border-radius: 6px;
    background: #ffffff;
    color: #17212b;
    font: inherit;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.empty-state {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding: 34px;
    text-align: center;
}

.empty-state .mud-icon-root {
    color: #003865;
    font-size: 3rem;
}

@media (max-width: 760px) {
    .customer-appbar {
        min-height: auto;
        padding: 12px 16px;
    }

    .customer-brand {
        max-width: 100%;
    }

    .customer-nav {
        display: none;
    }

    .customer-dashboard {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .dashboard-hero {
        display: block;
        padding: 22px;
    }

    .dashboard-chip {
        margin-top: 16px;
    }

    .customer-page-header,
    .address-card-header,
    .tenant-card-header {
        display: block;
    }

    .customer-page-header .mud-button-root,
    .address-card-header .mud-stack-root {
        margin-top: 14px;
    }

    .auth-page {
        align-items: flex-start;
        padding: 24px 14px 34px;
    }

    .auth-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-copy {
        min-height: auto;
        padding: 26px;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-options {
        display: block;
    }

    .auth-options a {
        display: inline-block;
        margin-top: 10px;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub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Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.product-choice-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.account-manage-page {
    align-items: flex-start;
}

.account-manage-panel {
    width: min(1240px, 100%);
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.account-manage-copy {
    min-height: 640px;
    justify-content: flex-start;
}

.account-nav-list {
    display: grid;
    gap: 6px;
    margin-top: 28px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 600;
}

.account-nav-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.account-nav-link.active {
    background: #ffffff;
    color: #063c67;
}

.account-page-inner.customer-page {
    padding: 0;
}

.account-page-inner .customer-page-header {
    margin-bottom: 24px;
}

.account-manage-content > h1,
.account-manage-content > h2,
.account-manage-content > h3 {
    margin-top: 0;
    color: #1f2937;
}

.account-manage-content {
    display: block;
    justify-content: flex-start;
}

.account-manage-content > .row,
.account-manage-content > div:not(.customer-page-header):not(.mud-alert),
.account-manage-content > form,
.account-manage-content > .alert {
    max-width: 860px;
}

.account-manage-content .row {
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(23, 42, 58, 0.04);
}

.account-manage-content .col-md-4,
.account-manage-content .col-md-6 {
    width: 100%;
    max-width: none;
}

.account-manage-content .btn {
    border-radius: 6px;
    font-weight: 700;
}

.account-manage-content .btn-primary {
    background: #063c67;
    border-color: #063c67;
}

.account-manage-content .btn-primary:hover {
    background: #0b4d7f;
    border-color: #0b4d7f;
}

.tenant-key-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

@media (max-width: 900px) {
    .account-manage-panel {
        grid-template-columns: 1fr;
    }

    .account-manage-copy {
        min-height: auto;
    }
}
