﻿:root {
    --canvas: #f5f7fa;
    --ink: #19283f;
    --muted: #6b788c;
    --border: #e5eaf0;
    --primary: #087f76;
    --primary-dark: #06685f;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--canvas);
    --bs-primary: var(--primary);
    --bs-link-color: var(--primary);
}
* { box-sizing: border-box; }
html, body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--canvas); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -.65px; line-height: 1.3; margin-bottom: 8px; }
h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.2px; margin-bottom: 0; }
h3 { font-size: .86rem; font-weight: 650; }
h1:focus { outline: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #58bcb3; outline-offset: 3px; }
.btn { --bs-btn-font-size: .8rem; --bs-btn-font-weight: 600; --bs-btn-border-radius: 7px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); --bs-btn-disabled-bg: var(--primary); --bs-btn-disabled-border-color: var(--primary); color: #fff; box-shadow: 0 2px 3px #064e3b10; }
.btn-outline-secondary { --bs-btn-color: #536277; --bs-btn-border-color: #dce3eb; --bs-btn-hover-bg: #f0f4f7; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #ccd6e2; --bs-btn-active-bg: #e8eef4; --bs-btn-active-color: var(--ink); background: #fff; }
.btn-outline-danger { --bs-btn-color: #b44646; --bs-btn-border-color: #eed6d6; --bs-btn-hover-bg: #b44646; --bs-btn-hover-border-color: #b44646; }
.btn-sm { font-size: .73rem; padding: 7px 11px; }
.muted { color: var(--muted); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-bottom: 0; font-size: .85rem; line-height: 1.7; }
.eyebrow { display: block; color: #8390a3; font-size: .6rem; font-weight: 650; letter-spacing: 1.45px; line-height: 1.5; margin-bottom: 9px; }
.live-label { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; color: #668175; white-space: nowrap; }
.live-label > span { background: #24917d; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 3px #e4f1eb; }
.section-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-bottom: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 20px; box-shadow: 0 2px 4px #19283f02; }
.stat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .76rem; }
.stat-symbol { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; font-weight: 650; font-size: 1.13rem; }
.teal { background: #e6f4f0; color: #0b8673; }
.green { background: #edf6ed; color: #45865a; }
.amber { background: #fff4e1; color: #b88730; }
.blue { background: #edf0ff; color: #6677b9; }
.stat-value { color: var(--ink); font-size: clamp(1.5rem, 2.1vw, 2.1rem); font-weight: 700; letter-spacing: -.9px; margin-top: 14px; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-value > span { font-size: 1.2rem; font-weight: 500; }
.stat-card p { color: #8b96a6; font-size: .68rem; margin: 10px 0 0; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 11px; box-shadow: 0 2px 4px #19283f02; overflow: hidden; }
.panel-heading { padding: 22px 24px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading p { font-size: .74rem; color: var(--muted); line-height: 1.6; margin: 5px 0 0; }
.panel-body { padding: 3px 24px 24px; }
.panel-note { font-size: .71rem; color: var(--muted); background: #f8fafb; border-top: 1px solid var(--border); padding: 16px 24px; margin: 10px 0 0; line-height: 1.7; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(295px, 1fr); gap: 24px; align-items: start; }
.text-action { font-size: .74rem; font-weight: 600; white-space: nowrap; }
.quick-action { display: flex; gap: 13px; padding: 16px 24px; align-items: center; color: var(--ink); }
.quick-action:hover { background: #f8fafb; color: var(--ink); }
.quick-action > span:nth-child(2) { flex: 1; }
.quick-action > span:last-child { color: #97a1b0; }
.action-symbol { width: 35px; height: 35px; border-radius: 9px; font-size: 1.25rem; display: grid; place-items: center; flex-shrink: 0; }
.quick-action strong { display: block; font-size: .8rem; font-weight: 600; }
.quick-action small { display: block; font-size: .68rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .78rem; }
th { font-size: .66rem; font-weight: 600; color: #788499; background: #f9fafc; white-space: nowrap; text-align: left; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 20px; }
td { padding: 16px 20px; border-bottom: 1px solid #eff2f6; vertical-align: middle; color: #526278; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfd; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { color: #26384f; font-weight: 600; }
.date-cell { white-space: nowrap; font-size: .72rem; }
.cell-secondary { display: block; font-size: .68rem; color: #8a96a6; margin-top: 5px; overflow-wrap: anywhere; }
.device-cell { white-space: nowrap; font-size: .73rem; }
.raw { min-width: 210px; max-width: 380px; font-size: .73rem; line-height: 1.8; overflow-wrap: anywhere; }
code { font-family: 'Cascadia Code', Consolas, monospace; color: #3e6572; font-size: .82em; background: #f1f6f7; border: 1px solid #e8eff1; padding: 3px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; font-weight: 550; font-size: .64rem; padding: 6px 8px; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.pending { background: #fff5df; color: #a57824; }
.badge.paid { background: #e9f5ef; color: #258467; }
.badge.expired { background: #f0f2f5; color: #738094; }
.badge.cancelled { background: #fceded; color: #b75858; }
.badge.underpaid { background: #fceded; color: #a84646; }
.badge.overpaid { background: #fff3df; color: #946b1d; }
.amount-underpaid { color: #a84646; font-weight: 600; }
.amount-overpaid { color: #946b1d; font-weight: 600; }
.subtle-badge { display: inline-flex; align-items: center; border: 1px solid #e4e9ef; background: #fff; color: #63748a; padding: 6px 10px; border-radius: 6px; font-size: .67rem; font-weight: 600; white-space: nowrap; }
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state.compact { padding: 20px 10px; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 16px; background: #f0f4f7; color: #8c9cac; font-size: 1.4rem; }
.empty-state strong { display: block; color: #506175; font-size: .85rem; font-weight: 600; }
.empty-state p { margin: 8px 0 12px; color: #8793a5; font-size: .74rem; line-height: 1.8; }
.empty-state a { font-size: .75rem; font-weight: 600; }
.filters { display: flex; align-items: center; gap: 12px; padding: 0 24px 20px; flex-wrap: wrap; }
.search-input { max-width: 350px; }
.filter-select { max-width: 200px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; color: #65748a; font-size: .76rem; cursor: pointer; }
input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; }
.form-control, .form-select { font-size: .8rem; color: #35465e; background-color: #fff; border: 1px solid #dce3eb; border-radius: 7px; padding: 10px 12px; min-height: 41px; box-shadow: 0 1px 2px #19283f02; }
.form-control::placeholder { color: #a2aab8; opacity: 1; font-size: .77rem; }
.form-control:focus, .form-select:focus { border-color: #51a89b; box-shadow: 0 0 0 3px #087f7612; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field label { font-size: .76rem; font-weight: 550; color: #56657a; }
.form-field .optional { font-weight: 400; color: #94a0af; font-size: .67rem; margin-left: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: 0; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-help { font-size: .69rem; color: #8793a3; line-height: 1.75; margin: 0; }
.form-actions { display: flex; justify-content: flex-start; }
.payment-create { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); margin-bottom: 26px; }
.payment-form { padding: 0 26px 24px; }
.payment-form .panel-heading { padding-left: 0; padding-right: 0; }
.account-strip { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 5px; background: #f8fafb; padding: 12px 14px; border: 1px solid #edf1f5; border-radius: 7px; margin: 0 0 21px; font-size: .69rem; color: #8190a2; }
.account-strip strong { font-size: .71rem; color: #54667d; font-weight: 600; }
.qr-preview { background: #fbfcfd; border-left: 1px solid var(--border); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 350px; }
.qr-preview > strong:not(.qr-amount) { font-size: .86rem; font-weight: 600; color: #5c6e83; }
.qr-preview > p { font-size: .73rem; line-height: 1.9; color: #8793a5; margin: 0; }
.qr-preview .eyebrow { margin: 0; }
.qr-amount { font-size: 1.5rem; color: var(--ink); letter-spacing: -.5px; }
.qr-image { width: 240px; max-width: 100%; height: auto; background: #fff; border: 1px solid #e7edf1; border-radius: 9px; padding: 10px; }
.qr-placeholder { display: grid; place-items: center; width: 150px; height: 150px; margin-bottom: 8px; background: #fff; border: 1px dashed #d7e0e9; border-radius: 12px; }
.qr-placeholder svg { width: 80px; height: 80px; stroke: #c7d3de; stroke-width: 5px; stroke-linecap: round; stroke-linejoin: round; }
.pairing-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1080px; }
.pairing-grid .panel-body > .form-field { margin-bottom: 20px; }
.pairing-preview .qr-preview { border-left: 0; border-top: 1px solid var(--border); min-height: 440px; }
.pairing-preview .qr-image { width: 280px; }
.pairing-steps { border-top: 1px solid var(--border); padding: 23px 24px; }
.pairing-steps h3 { margin-bottom: 16px; }
.pairing-steps ol { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pairing-steps li { display: flex; gap: 11px; font-size: .74rem; color: #7d899a; line-height: 1.8; }
.pairing-steps li > span { flex-shrink: 0; width: 23px; height: 23px; display: grid; place-items: center; background: #f0f5f5; color: #6d8b8a; border: 1px solid #e6edee; border-radius: 50%; font-size: .68rem; font-weight: 600; }
.pairing-steps strong { font-weight: 550; color: #54667b; }
.qr-security-note { max-width: 320px; padding: 14px 0 0; font-size: .67rem !important; color: #8995a4; }
.alert { border-radius: 8px; padding: 13px 16px; font-size: .8rem; line-height: 1.7; }
.alert-danger { background: #fff2f2; border: 1px solid #f3d9d9; color: #b45757; }
.alert-info { background: #eef7f7; border: 1px solid #d5e9e8; color: #4e8581; }
.alert-success { background: #eaf7ee; border: 1px solid #d1e9da; color: #357b58; }
.alert .btn { margin-left: 10px; }
.validation-message, .validation-summary-errors, .validation-errors { color: #b64c4c; font-size: .76rem; line-height: 1.7; }
.validation-errors, .validation-summary-errors ul { padding-left: 20px; }
.validation-summary-valid { display: none; }
.invalid, .input-validation-error { border-color: #cd7777 !important; }
.blazor-error-boundary { background: #fff2f2; color: #b45757; padding: 16px; border-radius: 8px; }
.blazor-error-boundary::after { content: 'Không thể tải nội dung. Vui lòng tải lại trang.'; }
.auth-page { min-height: 100vh; background: #f3f7f8; }
.auth-shell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 450px; padding: 38px 40px; border: 1px solid #e1e9ec; border-radius: 16px; background: #fff; box-shadow: 0 15px 45px #18314508; }
.auth-brand { display: inline-grid; grid-template-columns: 35px auto; align-items: center; column-gap: 10px; font-size: 1.3rem; font-weight: 750; letter-spacing: -.6px; color: var(--ink); margin-bottom: 35px; line-height: 1.25; }
.auth-brand::before { content: 'B'; grid-row: 1 / span 2; display: grid; place-items: center; height: 38px; width: 35px; background: var(--primary); color: #fff; border-radius: 10px; font-size: 1.3rem; }
.auth-brand > span { grid-column: 2; color: #8a96a7; font-size: .64rem; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 10px; }
.auth-subtitle { font-size: .82rem; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.auth-form { display: flex; flex-direction: column; gap: 19px; }
.auth-form .btn-primary { width: 100%; padding: 11px 16px; }
.auth-form .form-field { gap: 8px; }
.auth-form .form-check, .auth-form label:has(input[type=checkbox]) { font-size: .78rem; color: var(--muted); }
.auth-form label:has(input[type=checkbox]) { display: flex; gap: 9px; align-items: center; }
.auth-footer { border-top: 1px solid var(--border); margin: 28px 0 0; padding-top: 22px; font-size: .73rem; color: #8895a5; line-height: 1.8; text-align: center; }
.auth-shell > .auth-footer { border: 0; margin: 22px 0 0; padding: 0; }
@media (min-width: 1500px) { .stat-value { font-size: 2.1rem; } }
@media (max-width: 1250px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .quick-actions { max-width: none; } .stat-value { font-size: 1.85rem; } }
@media (max-width: 1060px) { .payment-create { grid-template-columns: minmax(0, 1fr); } .payment-create .qr-preview { border-left: 0; border-top: 1px solid var(--border); min-height: 290px; } .pairing-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { h1 { font-size: 1.55rem; } .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; } .page-heading p:not(.eyebrow) { font-size: .78rem; } .page-heading .btn { padding: 9px 13px; } .stats-grid { gap: 12px; } .stat-card { padding: 16px; } .stat-heading { font-size: .68rem; } .stat-symbol { width: 26px; height: 26px; } .stat-value { font-size: 1.65rem; } .stat-card p { font-size: .62rem; } .panel-heading { padding: 19px 18px 16px; } .panel-heading h2 { font-size: .93rem; } .panel-heading p { font-size: .69rem; } .panel-body { padding: 3px 18px 20px; } .filters { padding: 0 18px 18px; } .search-input { max-width: none; } .filter-select { max-width: none; } .quick-action { padding: 16px 18px; } .panel-note, .pairing-steps { padding: 18px; } .payment-form { padding: 0 18px 22px; } .qr-preview { padding: 24px 18px; } .empty-state { padding: 35px 8px; } th, td { padding: 13px 16px; } th:first-child, td:first-child { padding-left: 18px; } th:last-child, td:last-child { padding-right: 18px; } .auth-card { padding: 28px 25px; } }
@media (max-width: 390px) { .stats-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .stat-value { font-size: 1.9rem; } .section-meta { flex-wrap: wrap; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
