:root {
    --primary: #011C5F;
    --accent: #01C058;
    --ink: #011C5F;
    --ink2: #0A1633;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f7f8fb;
    --card: #fff;
    --green: #01C058;
    --red: #e5484d;
    --amber: #d97706;
    --shadow: 0 14px 40px rgba(1, 28, 95, .10);
    --radius: 18px
}

* {
    box-sizing: border-box
}

html {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink2)
}

body {
    margin: 0
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

.app-shell {
    display: flex;
    min-height: 100vh
}

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

.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 265px;
    background: linear-gradient(165deg, #011747, #011C5F 52%, #02266F);
    color: #fff;
    padding: 10px 17px;
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: -10px 0 40px rgba(17, 24, 39, .08)
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), #00A94D 52%, #04317F);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(1, 192, 88, .28)
}

.brand span:last-child {
    display: flex;
    flex-direction: column
}

.brand b {
    font-size: 16px
}

.brand small {
    font-size: 10px;
    opacity: .65;
    margin-top: 2px
}

.sidebar nav {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 13px;
    border-radius: 12px;
    color: #d8dce3;
    font-size: 14px;
    transition: .2s
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255, 255, 255, .09);
    color: #fff;
    transform: translateX(-2px)
}

.sidebar nav a.active {
    box-shadow: inset -3px 0 0 var(--accent)
}

.nav-label {
    font-size: 10px;
    color: #8f98a7;
    margin: 18px 12px 5px
}

.sidebar-user {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(1, 192, 88, .18);
    color: #8FF0BB;
    font-weight: 700
}

.sidebar-user>div {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column
}

.sidebar-user b {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-user small {
    font-size: 9px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-user button {
    border: 0;
    background: transparent;
    color: #c9ced6;
    cursor: pointer;
    font-size: 17px
}

.main {
    margin-right: 265px;
    flex: 1;
    min-width: 0
}

.topbar {
    height: 92px;
    display: flex;
    align-items: center;
    padding: 0 34px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, .8);
    position: sticky;
    top: 0;
    z-index: 10
}

.topbar h1 {
    font-size: 20px;
    margin: 0 0 5px
}

.topbar p {
    font-size: 11px;
    color: var(--muted);
    margin: 0
}

.top-docs {
    margin-right: auto;
    font-size: 12px;
    border: 1px solid var(--line);
    padding: 9px 13px;
    border-radius: 10px;
    background: #fff
}

.menu-btn {
    display: none
}

.page {
    padding: 28px 34px 60px;
    max-width: 1500px;
    margin: auto
}

.grid {
    display: grid;
    gap: 18px
}

.grid.cols-4 {
    grid-template-columns: repeat(4, 1fr)
}

.grid.cols-3 {
    grid-template-columns: repeat(3, 1fr)
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(17, 24, 39, .025)
}

.pad {
    padding: 22px
}

.stat {
    padding: 20px;
    position: relative;
    overflow: hidden
}

.stat:after {
    content: "";
    position: absolute;
    left: -30px;
    top: -38px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(1, 192, 88, .14), rgba(1, 28, 95, .04))
}

.stat .label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px
}

.stat .value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px
}

.stat .hint {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 7px
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 12px
}

.section-head h2 {
    font-size: 15px;
    margin: 0
}

.section-head a {
    font-size: 11px;
    color: var(--accent)
}

table {
    width: 100%;
    border-collapse: collapse
}

.table-wrap {
    overflow: auto
}

.table th {
    font-size: 10px;
    text-align: right;
    color: #8b93a1;
    font-weight: 600;
    padding: 13px 16px;
    background: #fbfbfc;
    border-bottom: 1px solid var(--line);
    white-space: nowrap
}

.table td {
    font-size: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f1f3;
    vertical-align: middle
}

.table tr:last-child td {
    border-bottom: 0
}

.badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700
}

.badge.paid,
.badge.active {
    background: #e8f8f2;
    color: #087a55
}

.badge.pending {
    background: #fff7e8;
    color: #b46100
}

.badge.receipt_review {
    background: #eef2ff;
    color: #4f46e5
}

.badge.expired,
.badge.failed,
.badge.disabled {
    background: #fff0f0;
    color: #bf3036
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    direction: ltr;
    text-align: left
}

.ltr {
    direction: ltr
}

.muted {
    color: var(--muted)
}

.small {
    font-size: 11px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 15px;
    border-radius: 11px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    transition: .18s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn.primary {
    background: linear-gradient(270deg, var(--accent), #00A94D 28%, var(--ink));
    color: #fff;
    /* box-shadow: 0 9px 20px rgba(1, 192, 88, .16); */
    border: none;
}

.btn.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--ink)
}

.btn.danger {
    background: #fff0f0;
    color: #c23339;
    border-color: #ffdede
}

.btn.sm {
    padding: 8px 11px;
    font-size: 11px
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px
}

.field {
    margin-bottom: 15px
}

.field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #4b5563
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #dde0e5;
    background: #fff;
    padding: 11px 12px;
    border-radius: 11px;
    outline: none;
    transition: .18s;
    color: #0A1633
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #01C058;
    box-shadow: 0 0 0 3px rgba(1, 192, 88, .10)
}

.field .help {
    font-size: 9px;
    color: #9ca3af;
    margin-top: 6px;
    line-height: 1.8
}

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 12px;
    border: 1px solid
}

.alert.success {
    background: #ecfbf5;
    border-color: #c7f1df;
    color: #087a55
}

.alert.danger {
    background: #fff2f2;
    border-color: #ffd8d8;
    color: #ad2e32
}

.secret-box {
    border: 1px dashed #63D99A;
    background: #F2FFF8;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px
}

.secret-box code {
    display: block;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    background: #fff;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid #D9F7E6;
    margin-top: 8px
}

.empty {
    padding: 45px;
    text-align: center;
    color: #8b93a1
}

.empty b {
    display: block;
    color: #4b5563;
    margin-bottom: 7px
}

.card-visual {
    position: relative;
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, #01133F, #011C5F 58%, #04317F);
    min-height: 175px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.card-visual:before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .22);
    left: -40px;
    top: -55px
}

.card-visual .bank {
    font-size: 11px;
    opacity: .75
}

.card-visual .number {
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: left;
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 40px
}

.card-visual .holder {
    font-size: 11px;
    margin-top: 22px
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px
}

.code {
    direction: ltr;
    text-align: left;
    background: #0A1633;
    color: #e5e7eb;
    border-radius: 13px;
    padding: 16px;
    overflow: auto;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    line-height: 1.75;
    white-space: pre
}

.docs h2 {
    font-size: 17px;
    margin-top: 30px
}

.docs h3 {
    font-size: 14px;
    margin-top: 22px
}

.docs p,
.docs li {
    font-size: 12px;
    line-height: 2;
    color: #4b5563
}

.notice {
    border-right: 3px solid var(--accent);
    padding: 12px 14px;
    background: #F2FFF8;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.9
}

.public-shell {
    background: #fff
}

.public-nav {
    max-width: 1180px;
    margin: auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.public-nav nav {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px
}

.hero {
    max-width: 1180px;
    margin: 55px auto 0;
    padding: 20px 24px 80px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 55px;
    align-items: center
}

.hero-kicker {
    display: inline-flex;
    background: #ECFFF4;
    color: #01994A;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700
}

.hero h1 {
    font-size: 48px;
    line-height: 1.25;
    margin: 17px 0 18px;
    letter-spacing: -1.5px
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--ink));
    -webkit-background-clip: text;
    color: transparent
}

.hero p {
    font-size: 14px;
    color: #697180;
    line-height: 2.05;
    max-width: 580px
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px
}

.hero-panel {
    border-radius: 28px;
    background: linear-gradient(155deg, #011747, #011C5F 62%, #02266F);
    padding: 28px;
    color: #fff;
    box-shadow: 0 30px 70px rgba(1, 28, 95, .20);
    position: relative;
    overflow: hidden
}

.hero-panel:before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(1, 192, 88, .20);
    left: -90px;
    top: -90px
}

.mock-amount {
    position: relative;
    text-align: center;
    padding: 25px
}

.mock-amount small {
    opacity: .6
}

.mock-amount b {
    display: block;
    font-size: 30px;
    margin-top: 9px
}

.mock-card {
    position: relative;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    padding: 18px;
    border-radius: 17px
}

.mock-card .num {
    direction: ltr;
    font-family: monospace;
    font-size: 17px;
    letter-spacing: 2px;
    margin: 22px 0
}

.mock-status {
    margin-top: 14px;
    background: rgba(34, 197, 94, .12);
    color: #baf5d2;
    padding: 12px;
    border-radius: 12px;
    font-size: 11px
}

.features {
    background: #f8f9fb;
    padding: 70px 24px
}

.features-inner {
    max-width: 1180px;
    margin: auto
}

.features-title {
    text-align: center;
    margin-bottom: 32px
}

.features-title h2 {
    font-size: 27px;
    margin: 0 0 8px
}

.feature {
    padding: 23px
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #E9FFF3, #EEF4FF);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900
}

.feature h3 {
    font-size: 14px;
    margin: 15px 0 8px
}

.feature p {
    font-size: 11px;
    line-height: 1.9;
    color: #6b7280;
    margin: 0
}

.auth-wrap {
    min-height: calc(100vh - 88px);
    display: grid;
    place-items: center;
    padding: 30px
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 28px
}

.auth-card h1 {
    font-size: 22px;
    margin: 0 0 7px
}

.auth-card>p {
    font-size: 11px;
    color: #7a8391;
    margin-bottom: 24px
}

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: #7a8391;
    margin-top: 18px
}

.payment-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(1, 192, 88, .13), transparent 36%), #f7f8fb;
    display: grid;
    place-items: center;
    padding: 24px
}

.pay-card {
    width: 100%;
    max-width: 510px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(17, 24, 39, .11);
    overflow: hidden
}

.pay-head {
    background: linear-gradient(145deg, #011747, #011C5F);
    color: #fff;
    padding: 25px 27px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.pay-head small {
    font-size: 9px;
    color: #b7bdc7
}

.secure {
    font-size: 10px;
    background: rgba(255, 255, 255, .08);
    padding: 7px 9px;
    border-radius: 9px
}

.pay-body {
    padding: 26px
}

.merchant {
    text-align: center;
    font-size: 11px;
    color: #6b7280
}

.amount {
    text-align: center;
    margin: 13px 0 22px
}

.amount b {
    display: block;
    font-size: 34px;
    letter-spacing: -1px
}

.amount span {
    font-size: 10px;
    color: #8d95a2
}

.transfer-box {
    border: 1px solid #e7e9ed;
    border-radius: 17px;
    padding: 18px;
    background: #fbfbfc
}

.transfer-box label {
    display: block;
    font-size: 9px;
    color: #9299a5;
    margin-bottom: 7px
}

.transfer-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.transfer-value b {
    font-family: ui-monospace, monospace;
    direction: ltr;
    font-size: 17px;
    letter-spacing: 1px
}

.copy-btn {
    border: 0;
    background: #E9FFF3;
    color: #01994A;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 9px;
    cursor: pointer
}

.holder-line {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #ddd;
    font-size: 10px
}

.pay-meta {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 10px;
    color: #737b88
}

.timer {
    font-family: monospace;
    font-size: 14px;
    font-weight: 800;
    color: #011C5F
}

.pay-state {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f5f7;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px
}

.pay-state b {
    font-size: 11px
}

.pay-state.success {
    background: #eafaf3;
    color: #087a55
}

.pay-state.review {
    background: #eef2ff;
    color: #4f46e5
}

.pay-state.danger {
    background: #fff0f0;
    color: #b62f35
}

.receipt-box {
    margin-top: 16px;
    border-top: 1px solid #eceef1;
    padding-top: 16px
}

.receipt-box p {
    font-size: 10px;
    color: #777f8d;
    line-height: 1.8
}

.file {
    border: 1px dashed #d8dce2;
    border-radius: 12px;
    padding: 11px;
    width: 100%;
    font-size: 10px
}

.pay-footer {
    text-align: center;
    padding: 0 20px 22px;
    font-size: 9px;
    color: #a0a6b0
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.detail {
    background: #fafbfc;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    padding: 13px
}

.detail label {
    font-size: 9px;
    color: #8c94a1;
    display: block;
    margin-bottom: 5px
}

.detail b {
    font-size: 12px
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.admin-tabs a {
    font-size: 11px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 12px;
    border-radius: 10px
}

@media(max-width:1050px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid.cols-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .sidebar {
        transform: translateX(110%);
        transition: .25s
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main {
        margin-right: 0
    }

    .menu-btn {
        display: block;
        border: 0;
        background: #f2f3f5;
        border-radius: 10px;
        padding: 8px 10px;
        margin-left: 12px
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-panel {
        max-width: 580px
    }

    .hero h1 {
        font-size: 40px
    }
}

@media(max-width:650px) {
    .page {
        padding: 20px 15px 50px
    }

    .topbar {
        padding: 0 15px;
        height: 76px
    }

    .top-docs {
        display: none
    }

    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2,
    .form-row {
        grid-template-columns: 1fr
    }

    .hero {
        margin-top: 25px;
        gap: 25px;
        padding-bottom: 50px
    }

    .hero h1 {
        font-size: 33px
    }

    .public-nav {
        padding: 16px
    }

    .public-nav nav a:first-child {
        display: none
    }

    .auth-wrap {
        padding: 18px
    }

    .pay-body {
        padding: 20px
    }

    .amount b {
        font-size: 29px
    }

    .detail-list {
        grid-template-columns: 1fr
    }
}

.badge.approved {
    background: #e8f8f2;
    color: #087a55
}

.badge.unsubmitted {
    background: #f3f4f6;
    color: #6b7280
}

.badge.rejected,
.badge.overdue {
    background: #fff0f0;
    color: #bf3036
}

.badge.issued {
    background: #fff7e8;
    color: #b46100
}

.badge.partial {
    background: #eef2ff;
    color: #4f46e5
}

.badge.void,
.badge.cancelled {
    background: #f3f4f6;
    color: #6b7280
}

.btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important
}

.table .mono {
    white-space: nowrap
}

.help {
    font-size: 9px;
    color: #9ca3af;
    line-height: 1.8
}

.card h2 {
    color: #011C5F
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-bottom: 14px
}

.invoice-sheet {
    max-width: 1150px;
    margin: 0 auto
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line)
}

.invoice-brand {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent), var(--ink));
    -webkit-background-clip: text;
    color: transparent
}

.invoice-number {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px
}

.invoice-number>span:first-child {
    font-size: 9px;
    color: var(--muted)
}

.invoice-number b {
    font-size: 14px
}

.invoice-parties {
    margin-top: 18px
}

.invoice-party {
    display: flex;
    flex-direction: column;
    gap: 7px;
    line-height: 1.7
}

.invoice-party span {
    font-size: 10px;
    color: var(--muted)
}

.invoice-meta {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px
}

.invoice-section-title {
    font-size: 14px !important;
    margin: 25px 0 11px
}

.invoice-lines th,
.invoice-lines td {
    font-size: 10px
}

.invoice-total {
    margin: 20px 0 0 auto;
    width: min(100%, 420px);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.invoice-total>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 11px
}

.invoice-total>div:last-child {
    border-bottom: 0
}

.invoice-total .grand {
    background: #F0FFF7
}

.invoice-total .grand b {
    font-size: 14px
}

.invoice-pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--line)
}

@media(max-width:650px) {
    .invoice-header {
        flex-direction: column
    }

    .invoice-number {
        align-items: flex-start
    }

    .invoice-meta {
        grid-template-columns: 1fr 1fr
    }

    .invoice-pay {
        align-items: stretch;
        flex-direction: column
    }

    .invoice-pay .btn {
        width: 100%
    }
}

@media print {
    body {
        background: #fff !important
    }

    .sidebar,
    .topbar,
    .no-print,
    .alert {
        display: none !important
    }

    .main {
        margin: 0 !important
    }

    .page {
        padding: 0 !important;
        max-width: none !important
    }

    .invoice-sheet {
        max-width: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important
    }

    .card {
        box-shadow: none !important
    }

    .invoice-lines {
        font-size: 9px
    }

    .invoice-lines th,
    .invoice-lines td {
        padding: 8px 7px
    }

    .invoice-brand {
        -webkit-text-fill-color: #0A1633;
        color: #0A1633;
        background: none
    }

    .invoice-party,
    .detail {
        break-inside: avoid
    }

    .table-wrap {
        overflow: visible !important
    }

    @page {
        size: A4 landscape;
        margin: 12mm
    }
}