:root {
    --navy: #071b30;
    --navy-2: #102b4a;
    --blue: #075bea;
    --blue-dark: #064fc8;
    --amber: #f6a900;
    --charcoal: #111c28;
    --border: #d8dde5;
    --muted: #667085;
    --surface: #ffffff;
    --background: #f7f8fa;
}

/* Compact operational layout for the payments page. */
.payments-reference {
    color: #20242b;
    font-family: Arial, Helvetica, sans-serif;
}

.payments-reference .payments-strip {
    padding: 5px 18px;
    color: #fff;
    background: #cf5b0b;
    font-size: 12px;
    font-weight: 700;
}

.payments-reference .payments-strip a {
    color: inherit;
    text-decoration: underline;
}

.payments-reference .client-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 230px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.payments-reference .client-account span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payments-reference .client-account-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    position: relative;
    display: inline-block;
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.payments-reference .client-account-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 5px;
    border: 1.5px solid #fff;
    border-radius: 50%;
}

.payments-reference .client-account-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 3px;
    width: 11px;
    height: 5px;
    border: 1.5px solid #fff;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.payments-reference .client-account-chevron {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    margin: -3px 2px 0 1px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
}

.payments-reference .client-logout {
    padding-left: 14px;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 700;
}

.payments-reference .client-logout:hover {
    color: var(--amber);
}

.payments-reference .payments-main {
    padding: 10px 14px 28px;
}

.payments-reference .payments-heading h1 {
    color: #294ef5;
    font-size: 25px;
    line-height: 1.1;
}

.payments-reference .payments-heading p {
    margin-top: 5px;
    font-size: 12px;
}

.payments-reference .utility-actions {
    gap: 25px;
    padding-top: 5px;
    font-size: 12px;
}

.payments-reference .filter-box {
    margin: 10px 0 0;
    padding: 12px 7px 8px;
    gap: 15px;
    border-radius: 2px 2px 0 0;
}

.payments-reference .filter-box .field {
    width: 175px;
}

.payments-reference .filter-box .field:nth-child(2) {
    width: 205px;
}

.payments-reference .field label {
    margin-bottom: 5px;
    color: #555b65;
    font-size: 11px;
    font-weight: 400;
}

.payments-reference .field input,
.payments-reference .field select {
    min-height: 28px;
    padding: 4px 7px;
    border-radius: 2px;
    font-size: 11px;
}

.payments-reference .filter-box .btn {
    min-height: 28px;
    padding: 5px 13px;
    color: #fff;
    background: #525c70;
    border-radius: 2px;
    font-size: 11px;
}

.payments-reference .table-frame {
    border-radius: 0 0 2px 2px;
}

.payments-reference .table-toolbar {
    min-height: 35px;
    padding: 5px 7px;
    color: #6c727c;
    font-size: 10px;
}

.payments-reference .pager select,
.payments-reference .pager button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 10px;
}

.payments-reference .pager select {
    margin: 0 8px;
}

.payments-reference table {
    min-width: 1180px;
}

.payments-reference th {
    padding: 8px 9px;
    color: #4b515a;
    background: #dfe1e3;
    font-size: 10px;
    white-space: nowrap;
}

.payments-reference td {
    padding: 9px;
    font-size: 10px;
    white-space: nowrap;
}

.payments-reference td:nth-child(3) {
    min-width: 215px;
    white-space: normal;
}

.payments-reference td:last-child {
    text-align: right;
}

.payments-reference td a {
    color: #234ff5;
    font-weight: 700;
}

.payment-summary {
    min-height: 43px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #d9ffa8;
    border-top: 1px solid #b7e278;
    font-size: 12px;
}

.payment-summary > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-summary button {
    min-height: 29px;
    padding: 5px 12px;
    color: #fff;
    background: #b8c5d4;
    border: 0;
    font-size: 10px;
    font-weight: 700;
}

.payment-summary .payment-action {
    min-height: 29px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #2457e6;
    border: 0;
    font-size: 10px;
    font-weight: 700;
}

.payment-summary .payment-action:hover {
    background: #1744c4;
}

.payments-reference .info-box {
    margin-top: 28px;
}

.payments-reference .info-box h2 {
    padding: 9px 8px;
    background: #3152f5;
    font-size: 11px;
}

.payments-reference .info-body {
    padding: 10px 14px;
    display: block;
    font-size: 10px;
    line-height: 1.45;
}

.payments-reference .info-body p {
    margin: 0 0 8px;
}

.payments-reference .info-body ul {
    margin: 0 0 8px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .payments-reference .payments-main {
        padding: 10px 8px 24px;
    }

    .payments-reference .payments-heading h1 {
        font-size: 21px;
    }

    .payments-reference .utility-actions {
        flex-wrap: wrap;
        gap: 8px 15px;
    }

    .payments-reference .client-account {
        max-width: min(260px, 70vw);
    }

    .payments-reference .filter-box .field,
    .payments-reference .filter-box .field:nth-child(2) {
        width: 100%;
    }

    .payments-reference .table-toolbar,
    .payment-summary,
    .payment-summary > div {
        align-items: flex-start;
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #162033;
    background: var(--background);
}

button,
input,
select {
    font: inherit;
}

a {
    color: var(--blue);
    text-decoration: none;
}

.site-header {
    color: #fff;
    background: linear-gradient(115deg, #06182a, #092641);
    border-bottom: 2px solid var(--amber);
}

.header-main {
    min-height: 126px;
    display: grid;
    grid-template-columns: 230px minmax(280px, 680px) auto;
    align-items: center;
    gap: 26px;
    max-width: 1540px;
    margin: 0 auto;
    padding: 4px 28px;
}

.brand-space {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-space img {
    display: block;
    width: auto;
    max-width: 320px;
    max-height: 120px;
    object-fit: contain;
    image-rendering: auto;
}

.search {
    display: flex;
    gap: 10px;
}

.search input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cfd6df;
    border-radius: 5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-amber {
    color: #172033;
    background: var(--amber);
}

.btn-outline {
    color: var(--amber);
    background: transparent;
    border-color: var(--amber);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    white-space: nowrap;
}

.header-locale {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
}

.locale-country {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.locale-globe {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    overflow: visible;
    fill: none;
    stroke: #fff;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.locale-separator {
    opacity: .7;
}

.nav {
    max-width: 1540px;
    margin: 0 auto;
    padding: 0 28px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font-size: 13px;
    font-weight: 600;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--amber);
}

.nav .has-menu::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -3px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.notice-strip {
    padding: 7px 20px;
    color: #fff;
    text-align: center;
    background: #df6500;
    font-size: 13px;
}

.login-shell {
    min-height: 515px;
    padding: 48px 24px;
    background: #fff;
}

.login-grid {
    display: grid;
    grid-template-columns: 390px 650px;
    gap: 32px;
    max-width: 1072px;
    margin: 0 auto;
}

.page-title {
    grid-column: 1 / -1;
    margin: 0 0 -14px;
    color: #1357ed;
    font-size: 28px;
    font-weight: 800;
}

.account-type-bar {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    align-items: center;
    gap: 14px;
    margin: -28px -28px 24px;
    padding: 9px 16px;
    color: #fff;
    background: #1458ee;
    border-radius: 6px 6px 0 0;
}

.account-type-bar label {
    font-weight: 700;
    white-space: nowrap;
}

.account-type-bar select {
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    color: #263244;
    background: #fff;
    border: 1px solid #d2d7df;
    border-radius: 5px;
}

.login-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 43, 74, .08);
}

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #fff;
}

.login-options {
    display: flex;
    justify-content: space-between;
    margin: 5px 0 22px;
    font-size: 13px;
}

.full {
    width: 100%;
}

.login-footer {
    margin-top: 22px;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid #e5e8ec;
    font-size: 14px;
}

.demo-note {
    display: none;
    margin-top: 14px;
    padding: 10px;
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 4px;
    font-size: 13px;
}

.form-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    color: #a21f25;
    background: #fff0f1;
    border: 1px solid #efa8ac;
    border-radius: 4px;
    font-size: 13px;
}

.password-change-card {
    width: min(430px, 100%);
    margin: 0 auto;
}

.hero-panel {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: 40px;
    color: #fff;
    border-radius: 7px;
    background:
        radial-gradient(circle at 80% 35%, rgba(255,255,255,.22), transparent 22%),
        linear-gradient(125deg, #061b33 5%, #0b3c6e 55%, #6388a5);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: -2%;
    bottom: 1%;
    width: 62%;
    height: 62%;
    background: url("./hero-car.png") right bottom / contain no-repeat;
    pointer-events: none;
}

.hero-panel h2 {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: 0 0 15px;
    font-size: 40px;
    line-height: 1.05;
}

.hero-panel h2 span {
    color: var(--amber);
}

.hero-panel p,
.hero-panel ul,
.hero-panel .btn {
    position: relative;
    z-index: 1;
}

.hero-panel p {
    max-width: 330px;
    line-height: 1.5;
}

.hero-panel ul {
    margin: 24px 0;
    padding-left: 20px;
    line-height: 1.8;
}

.site-footer {
    padding: 34px 28px 18px;
    color: #e7ebf0;
    background: #111923;
}

.footer-grid {
    max-width: 1540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr);
    gap: 45px;
}

.footer-brand-space {
    min-height: 45px;
}

.footer-grid h3 {
    color: var(--amber);
    font-size: 15px;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 8px 0;
    color: #e7ebf0;
    font-size: 13px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1540px;
    margin: 26px auto 0;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #2f3945;
    font-size: 12px;
}

.payments-page {
    min-height: 100vh;
    background: #fff;
}

.payments-strip {
    padding: 9px 18px;
    text-align: center;
    color: #111;
    background: var(--amber);
    font-size: 14px;
}

.payments-main {
    padding: 38px 40px 45px;
}

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

.payments-heading h1 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 38px;
}

.payments-heading p {
    margin: 8px 0 0;
    font-weight: 700;
}

.utility-actions {
    display: flex;
    gap: 24px;
    padding-top: 10px;
}

.filter-box {
    margin: 36px 0 38px;
    padding: 24px 20px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.filter-box .field {
    width: 280px;
    margin: 0;
}

.filter-spacer {
    flex: 1;
}

.pager {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.pager select,
.pager button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--border);
}

.pager select {
    margin: 0 10px;
    color: #162033;
}

.table-frame {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.table-toolbar {
    min-height: 54px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

th {
    padding: 14px 20px;
    text-align: left;
    background: #e8e8e8;
    font-size: 13px;
}

td {
    padding: 15px 20px;
    border-top: 1px solid #e3e6ea;
    font-size: 14px;
}

.status {
    display: inline-block;
    min-width: 90px;
    padding: 7px 12px;
    text-align: center;
    border-radius: 5px;
    font-weight: 700;
}

.status-paid {
    color: #13752b;
    background: #e9f8ec;
    border: 1px solid #65bd75;
}

.status-pending {
    color: #a45b00;
    background: #fff7e7;
    border: 1px solid #efa928;
}

.status-overdue {
    color: #c21f25;
    background: #fff0f1;
    border: 1px solid #ff696e;
}

.info-box {
    margin-top: 28px;
    border: 1px solid #cbd8ef;
}

.info-box h2 {
    margin: 0;
    padding: 13px 18px;
    color: #fff;
    background: var(--blue);
    font-size: 16px;
}

.info-body {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.info-body ul {
    margin: 0;
    padding-left: 20px;
    line-height: 2;
}

@media (max-width: 900px) {
    .header-main {
        grid-template-columns: 1fr;
    }

    .brand-space {
        display: flex;
    }

    .header-actions,
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .login-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-box {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-box .field {
        width: 100%;
    }

    .payments-heading,
    .info-body {
        align-items: flex-start;
        flex-direction: column;
    }
}
