:root {
    --pn-navy-950: #07142c;
    --pn-navy-900: #0b1d3f;
    --pn-navy-800: #102b5b;
    --pn-navy-700: #173c78;
    --pn-blue-100: #dceaff;
    --pn-blue-50: #eef5ff;
    --pn-orange: #f58220;
    --pn-orange-2: #f9b64a;
    --pn-ink: #10213f;
    --pn-muted: #71829f;
    --pn-line: #dde7f4;
    --pn-shadow: 0 24px 60px rgba(8, 30, 63, .12);
    --pn-shadow-soft: 0 14px 30px rgba(8, 30, 63, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    color: var(--pn-ink);
}

a {
    text-decoration: none;
}

/* Login screen: kept close to the supplied AQHFT.NET reference */
.pn-login-body {
    min-height: 100vh;
    background: #fff;
}

.pn-login-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 31% 69%;
}

.pn-login-panel {
    background: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 42px 32px;
}

.pn-login-card {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.pn-login-logo {
    width: min(280px, 78vw);
    height: auto;
    margin: 4px auto 44px;
    display: block;
}

.pn-login-card h1 {
    margin: 0 0 36px;
    color: #000;
    font-size: 22px;
    font-weight: 400;
}

.pn-login-alerts {
    text-align: left;
    margin-bottom: 16px;
}

.pn-login-form {
    display: grid;
    gap: 31px;
}

.pn-login-field {
    position: relative;
    display: block;
    text-align: left;
    margin: 0;
}

.pn-login-field span {
    display: block;
    color: #555d6b;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px 14px;
}

.pn-login-field.error-state span {
    color: #ff2b2b;
}

.pn-login-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #8e9299;
    outline: 0;
    height: 35px;
    padding: 4px 40px 8px 14px;
    font-size: 15px;
    background: transparent;
}

.pn-login-field.error-state input {
    border-bottom-color: #ff2b2b;
}

.pn-eye-button {
    position: absolute;
    right: 10px;
    bottom: 8px;
    border: 0;
    background: transparent;
    color: #888;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
}

.pn-signin-button {
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #f7b650, #f9ba52);
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    margin-top: 8px;
}

.pn-forgot-line {
    color: #5f6570;
    font-size: 12px;
    margin-top: 19px;
}

.pn-forgot-line a {
    color: #ff7800;
    font-weight: 800;
}

.pn-version {
    display: inline-block;
    float: right;
    margin-top: 22px;
    padding: 2px 5px;
    border-radius: 3px;
    background: #f58a00;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.pn-login-photo {
    background-image: url('https://images.pexels.com/photos/2499786/pexels-photo-2499786.jpeg?auto=compress&dpr=1&h=750&w=1260');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Back-office workspace: top command bar, no side menu */
.pn-workspace-body {
    min-height: 100vh;
    background: #08182f;
    overflow-x: hidden;
}

.pn-background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% -10%, rgba(245, 130, 32, .20), transparent 28%), radial-gradient(circle at 88% 2%, rgba(86, 150, 255, .22), transparent 30%), linear-gradient(180deg, #08182f 0%, #10254b 34%, #f3f7fc 34%, #f3f7fc 100%);
    z-index: -2;
}

.pn-background-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}

.pn-globalbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 84px;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: 260px minmax(360px, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: rgba(7, 20, 44, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

.pn-brandmark {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #fff;
}

/*
 * The source SVG is a full horizontal logo (800x300).
 * In the top navigation we only need its left emblem.  Render the SVG
 * at a larger height and crop the wordmark inside a fixed window so the
 * emblem is no longer shrunk to an unreadable size.
 */
.pn-brandmark-symbol {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    overflow: hidden;
    display: block;
}

.pn-brandmark-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: 82px;
    max-width: none;
    display: block;
    transform: translate(-10px, -2px);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
}

.pn-brandmark-text {
    display: grid;
    line-height: 1.05;
}

.pn-brandmark-text b {
    color: #fff;
    font-size: 17px;
    letter-spacing: .01em;
}

.pn-brandmark-text small {
    color: #8eb3ee;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    margin-top: 5px;
}

.pn-module-nav {
    justify-self: center;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pn-module-link {
    color: #c5d4ee;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .045);
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .18s ease;
}

.pn-module-link span {
    color: var(--pn-orange-2);
    font-size: 11px;
    letter-spacing: .08em;
}

.pn-module-link:hover {
    color: #fff;
    border-color: rgba(249, 182, 74, .6);
    transform: translateY(-1px);
}

.pn-module-link.active {
    color: #08182f;
    background: linear-gradient(90deg, var(--pn-orange), var(--pn-orange-2));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 130, 32, .25);
}

.pn-module-link.active span {
    color: #08182f;
}

.pn-session-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pn-lang-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
}

.pn-lang-toggle a {
    color: #c4d2ea;
    min-width: 34px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
}

.pn-lang-toggle a.active {
    background: #fff;
    color: var(--pn-navy-900);
}

.pn-profile-form {
    display: grid;
    grid-template-columns: auto 112px;
    gap: 7px;
    align-items: center;
    color: #9eb2d3;
    font-size: 11px;
    font-weight: 800;
}

.pn-profile-form .form-select {
    height: 34px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    color: var(--pn-navy-900);
}

.pn-status-pill {
    display: grid;
    gap: 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    min-width: 120px;
}

.pn-status-pill small {
    font-size: 10px;
    color: #9eb2d3;
}

.pn-status-pill b {
    font-size: 12px;
}

.pn-ghost-button,
.pn-exit-button,
.pn-solid-button,
.pn-download-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    transition: .18s ease;
}

.pn-ghost-button {
    background: rgba(255, 255, 255, .08);
    color: #e9f1ff;
    border: 1px solid rgba(255, 255, 255, .13);
}

.pn-ghost-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.pn-exit-button {
    color: #fff;
    background: rgba(245, 130, 32, .16);
    border: 1px solid rgba(245, 130, 32, .42);
}

.pn-exit-button:hover {
    color: #08182f;
    background: var(--pn-orange-2);
}

.pn-solid-button,
.pn-download-button {
    background: linear-gradient(90deg, var(--pn-orange), var(--pn-orange-2));
    color: #08182f;
    box-shadow: 0 12px 24px rgba(245, 130, 32, .20);
}

.pn-solid-button:hover,
.pn-download-button:hover {
    color: #08182f;
    filter: brightness(.98);
    transform: translateY(-1px);
}

.pn-solid-button.big {
    min-height: 44px;
    padding: 0 28px;
    font-size: 14px;
}

.pn-mainframe {
    width: min(1560px, calc(100% - 52px));
    margin: 24px auto 0;
}

.pn-status-deck {
    display: grid;
    grid-template-columns: 1.1fr 1.7fr 1.1fr .9fr;
    gap: 12px;
    margin-bottom: 18px;
}

.pn-status-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border-radius: 22px;
    padding: 16px 18px;
    backdrop-filter: blur(14px);
    min-height: 82px;
}

.pn-status-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -44px;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.pn-status-card.emphasis {
    background: linear-gradient(135deg, rgba(245, 130, 32, .95), rgba(249, 182, 74, .88));
    color: #07142c;
}

.pn-status-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .72;
    font-weight: 900;
}

.pn-status-card strong {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pn-alert-stack {
    margin-bottom: 16px;
}

.pn-command-center {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
}

.pn-command-copy,
.pn-command-account,
.pn-report-desktop,
.pn-admin-console {
    border: 1px solid rgba(255, 255, 255, .70);
    background: rgba(255, 255, 255, .90);
    border-radius: 30px;
    box-shadow: var(--pn-shadow);
}

.pn-command-copy {
    padding: 28px;
    background: radial-gradient(circle at 90% 0%, rgba(245, 130, 32, .16), transparent 32%), rgba(255, 255, 255, .94);
}

.pn-command-copy h1 {
    margin: 7px 0 8px;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 950;
    color: var(--pn-navy-950);
}

.pn-command-copy p {
    margin: 0;
    color: var(--pn-muted);
    font-weight: 600;
}

.pn-mini-label {
    display: inline-flex;
    color: var(--pn-orange);
    letter-spacing: .18em;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.pn-command-account {
    padding: 24px;
    display: grid;
    align-content: center;
    background: linear-gradient(135deg, #102b5b, #07142c);
    color: #fff;
}

.pn-command-account span {
    color: #9fb5dc;
    font-size: 12px;
    font-weight: 900;
}

.pn-command-account strong {
    margin-top: 8px;
    font-size: 21px;
    line-height: 1.2;
}

.pn-command-account small {
    margin-top: 8px;
    color: var(--pn-orange-2);
    font-weight: 900;
}

.pn-report-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.pn-report-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 132px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--pn-line);
    color: var(--pn-ink);
    background: #fff;
    box-shadow: var(--pn-shadow-soft);
}

.pn-report-tile::before {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--pn-blue-100);
}

.pn-report-tile:hover {
    color: var(--pn-ink);
    transform: translateY(-2px);
}

.pn-report-tile.active {
    background: linear-gradient(145deg, #fff, #fff8ec);
    border-color: rgba(245, 130, 32, .45);
}

.pn-report-tile.active::before {
    background: linear-gradient(90deg, var(--pn-orange), var(--pn-orange-2));
}

.pn-report-no {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #edf4ff;
    color: var(--pn-navy-800);
    font-weight: 950;
    font-size: 13px;
}

.pn-report-tile.active .pn-report-no {
    background: var(--pn-orange);
    color: #fff;
}

.pn-report-tile b {
    font-size: 18px;
    color: var(--pn-navy-950);
}

.pn-report-tile small {
    color: var(--pn-muted);
    line-height: 1.45;
}

.pn-report-desktop {
    overflow: hidden;
    margin-bottom: 28px;
}

.pn-window-bar {
    min-height: 52px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: #07142c;
    color: #fff;
}

.pn-window-bar strong {
    text-align: center;
    font-size: 13px;
    letter-spacing: .04em;
    color: #dbe8ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pn-window-bar span:last-child {
    color: #9eb2d3;
    font-size: 12px;
    font-weight: 800;
}

.pn-window-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.pn-window-dot.orange {
    background: var(--pn-orange);
}

.pn-window-dot.blue {
    background: #5b8fff;
}

.pn-window-dot.green {
    background: #3fc786;
}

.pn-window-body {
    padding: 24px;
}

.pn-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.pn-section-head h2 {
    margin: 6px 0 6px;
    color: var(--pn-navy-950);
    font-size: 28px;
    font-weight: 950;
}

.pn-section-head p {
    margin: 0;
    color: var(--pn-muted);
}

.pn-section-head.compact h2 {
    font-size: 24px;
}

.pn-ledger-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.pn-client-dossier {
    border-radius: 26px;
    padding: 22px;
    color: #fff;
    background: radial-gradient(circle at top right, rgba(245, 130, 32, .34), transparent 34%), linear-gradient(160deg, #102b5b, #07142c);
    min-height: 360px;
}

.pn-client-dossier>span {
    color: #9fb5dc;
    font-size: 11px;
    letter-spacing: .10em;
    font-weight: 900;
    text-transform: uppercase;
}

.pn-client-dossier>strong {
    display: block;
    margin: 10px 0 20px;
    font-size: 22px;
    line-height: 1.25;
}

.pn-client-dossier dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.pn-client-dossier dl div {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.pn-client-dossier dt {
    color: #9fb5dc;
    font-size: 11px;
    font-weight: 800;
}

.pn-client-dossier dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.pn-balance-ticker {
    margin-top: 20px;
    padding: 17px;
    border-radius: 18px;
    background: rgba(245, 130, 32, .18);
    border: 1px solid rgba(245, 130, 32, .35);
    display: grid;
}

.pn-balance-ticker small {
    color: #ffd9a6;
    font-weight: 900;
}

.pn-balance-ticker b {
    color: #fff;
    font-size: 26px;
    margin-top: 5px;
}

.pn-table-console {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--pn-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.pn-table-console.compact-table {
    border-radius: 18px;
    box-shadow: none;
}

.pn-data-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 13px;
}

.pn-data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #0f2c5a;
    color: #fff;
    text-align: left;
    padding: 13px 15px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pn-data-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf2f8;
    color: #233a62;
    white-space: nowrap;
    font-weight: 650;
}

.pn-data-table tbody tr:hover td {
    background: #f8fbff;
}

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

.pn-number-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pn-row-heading {
    color: var(--pn-navy-950) !important;
    font-weight: 950 !important;
}

.pn-empty-cell {
    text-align: center;
    color: var(--pn-muted) !important;
    padding: 32px !important;
}

.pn-risk-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.pn-risk-strip div {
    border: 1px solid var(--pn-line);
    border-radius: 20px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--pn-shadow-soft);
}

.pn-risk-strip small {
    color: var(--pn-muted);
    display: block;
    font-weight: 950;
    letter-spacing: .12em;
}

.pn-risk-strip b {
    color: var(--pn-navy-950);
    display: block;
    font-size: 20px;
    margin-top: 5px;
}

.pn-market-mosaic {
    display: grid;
    gap: 18px;
}

.pn-market-card {
    border: 1px solid var(--pn-line);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--pn-shadow-soft);
}

.pn-market-card-head {
    min-height: 82px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(90deg, #f8fbff, #fff);
    border-bottom: 1px solid var(--pn-line);
}

.pn-market-card-head span {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pn-navy-800), var(--pn-navy-950));
    font-size: 12px;
    font-weight: 950;
}

.pn-market-card-head h3 {
    margin: 0;
    color: var(--pn-navy-950);
    font-size: 18px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pn-market-card-head small {
    color: var(--pn-orange);
    font-weight: 950;
}

/* Admin editor */
.pn-admin-console {
    padding: 0 0 24px;
    overflow: hidden;
    margin-bottom: 28px;
}

.pn-admin-hero {
    padding: 28px;
    color: #fff;
    background: radial-gradient(circle at 80% 0%, rgba(245, 130, 32, .25), transparent 30%), linear-gradient(135deg, #102b5b, #07142c);
}

.pn-admin-hero h1 {
    margin: 6px 0 8px;
    font-size: 32px;
    font-weight: 950;
}

.pn-admin-hero p {
    margin: 0;
    color: #c1d3f0;
}

.pn-admin-filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 280px) auto;
    gap: 14px;
    align-items: end;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pn-line);
    background: #f8fbff;
}

.pn-admin-filter-panel label,
.pn-field-grid label,
.pn-form-line {
    display: grid;
    gap: 7px;
    color: var(--pn-muted);
    font-size: 12px;
    font-weight: 950;
}

.pn-admin-filter-panel .form-select,
.pn-field-grid .form-control,
.pn-field-grid .form-select,
.pn-form-line .form-control {
    border-radius: 14px;
    border: 1px solid var(--pn-line);
    min-height: 42px;
    font-weight: 700;
}

.pn-admin-editor-form {
    padding: 24px;
    background: #fff;
}

.pn-editor-chapter {
    border: 1px solid var(--pn-line);
    border-radius: 26px;
    margin-bottom: 18px;
    background: #fbfdff;
    overflow: hidden;
}

.pn-editor-chapter.always-open {
    padding: 0;
}

.pn-editor-chapter>header,
.pn-editor-chapter>summary {
    list-style: none;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--pn-line);
    cursor: pointer;
}

.pn-editor-chapter>summary::-webkit-details-marker {
    display: none;
}

.pn-editor-chapter>header span,
.pn-editor-chapter>summary span {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--pn-navy-900);
    color: #fff;
    font-weight: 950;
}

.pn-editor-chapter h2 {
    margin: 0;
    color: var(--pn-navy-950);
    font-size: 20px;
    font-weight: 950;
}

.pn-editor-chapter p {
    margin: 4px 0 0;
    color: var(--pn-muted);
}

.pn-editor-chapter.always-open .pn-field-grid {
    padding: 20px;
}

.pn-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.pn-field-grid.two-column {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    padding: 0;
    margin-bottom: 14px;
}

.pn-field-grid.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pn-market-editor-grid {
    padding: 20px;
    display: grid;
    gap: 18px;
}

.pn-editor-block {
    border: 1px solid var(--pn-line);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
}

.pn-editor-block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pn-editor-block-title h3 {
    margin: 0;
    color: var(--pn-navy-950);
    font-weight: 950;
}

.pn-editor-block-title code {
    color: var(--pn-orange);
    background: #fff7ed;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
}

.pn-editor-table-wrap {
    border: 1px solid var(--pn-line);
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    overflow: hidden;
}

.pn-editor-scroll {
    overflow: auto;
}

.pn-editor-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.pn-editor-table th {
    background: #102b5b;
    color: #fff;
    padding: 11px;
    font-size: 11px;
    letter-spacing: .05em;
}

.pn-editor-table td {
    border-bottom: 1px solid #edf2f8;
    padding: 8px;
}

.pn-editor-table td .form-control {
    min-height: 34px;
    border-radius: 10px;
}

.pn-action-col {
    width: 118px;
}

.pn-add-row,
.pn-delete-row {
    border: 0;
    border-radius: 999px;
    min-height: 34px;
    padding: 0 12px;
    font-weight: 900;
    font-size: 12px;
}

.pn-add-row {
    color: var(--pn-navy-900);
    background: #eaf2ff;
    margin-top: 10px;
}

.pn-delete-row {
    color: #a92828;
    background: #fff0f0;
}

.pn-save-dock {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 18px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 38%);
}

.pn-modal-card {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--pn-shadow);
    overflow: hidden;
}

.pn-modal-card .modal-header {
    background: #f8fbff;
}

.pn-modal-card .modal-body {
    display: grid;
    gap: 14px;
}

.pn-footerbar {
    width: min(1560px, calc(100% - 52px));
    margin: 0 auto;
    color: #7d8ca7;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0 28px;
}

@media (max-width: 1280px) {
    .pn-globalbar {
        grid-template-columns: 230px 1fr;
    }

    .pn-session-tools {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .pn-status-deck {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pn-command-center {
        grid-template-columns: 1fr;
    }

    .pn-ledger-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .pn-login-split {
        display: block;
    }

    .pn-login-panel {
        min-height: 100vh;
        padding: 48px 30px;
    }

    .pn-login-photo {
        display: none;
    }

    .pn-globalbar {
        position: relative;
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .pn-module-nav {
        justify-content: flex-start;
    }

    .pn-mainframe,
    .pn-footerbar {
        width: min(100% - 28px, 1560px);
    }

    .pn-status-deck,
    .pn-report-rail,
    .pn-risk-strip,
    .pn-admin-filter-panel,
    .pn-field-grid,
    .pn-field-grid.two-column,
    .pn-field-grid.three-column {
        grid-template-columns: 1fr;
    }

    .pn-section-head {
        display: block;
    }

    .pn-download-button {
        margin-top: 14px;
    }

    .pn-window-bar {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .pn-window-bar span:last-child {
        display: none;
    }
}

@media (max-width: 560px) {
    .pn-login-logo {
        width: min(250px, 74vw);
        margin-bottom: 38px;
    }

    .pn-login-card h1 {
        font-size: 20px;
    }

    .pn-session-tools,
    .pn-module-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pn-module-link,
    .pn-ghost-button,
    .pn-exit-button,
    .pn-profile-form {
        width: 100%;
        justify-content: center;
    }

    .pn-command-copy h1 {
        font-size: 26px;
    }

    .pn-window-body {
        padding: 16px;
    }

    .pn-market-card-head {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .pn-market-card-head small {
        grid-column: 2;
    }
}

/* === English-only + dark report tables update === */
.pn-language-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    border-radius: 999px;
    color: #07142c;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
}

.pn-admin-filter-panel-english-only {
    grid-template-columns: minmax(220px, 1fr) 190px auto;
}

.pn-fixed-language-card {
    min-height: 42px;
    border: 1px solid var(--pn-line);
    border-radius: 14px;
    background: #fff;
    padding: 8px 12px;
    display: grid;
    align-content: center;
}

.pn-fixed-language-card span {
    color: var(--pn-muted);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.pn-fixed-language-card strong {
    color: var(--pn-navy-950);
    font-size: 13px;
    font-weight: 950;
}

.pn-dark-report-console,
.pn-table-console {
    background: #030814;
    border-color: rgba(128, 167, 224, .25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 18px 40px rgba(2, 8, 22, .18);
}

.pn-dark-report-console .pn-data-table,
.pn-table-console .pn-data-table {
    background: #030814;
}

.pn-dark-report-console .pn-data-table th,
.pn-table-console .pn-data-table th {
    background: linear-gradient(180deg, #102b5b 0%, #07142c 100%);
    color: #f4f8ff;
    border-bottom: 1px solid rgba(128, 167, 224, .28);
}

.pn-dark-report-console .pn-data-table td,
.pn-table-console .pn-data-table td {
    background: #050b18;
    color: #dce8ff;
    border-bottom: 1px solid rgba(128, 167, 224, .14);
}

.pn-dark-report-console .pn-data-table tbody tr:nth-child(even) td,
.pn-table-console .pn-data-table tbody tr:nth-child(even) td {
    background: #071020;
}

.pn-dark-report-console .pn-data-table tbody tr:hover td,
.pn-table-console .pn-data-table tbody tr:hover td {
    background: #0d1d3a;
}

.pn-dark-report-console .pn-data-table tr:last-child td,
.pn-table-console .pn-data-table tr:last-child td {
    border-bottom: 0;
}

.pn-dark-report-console .pn-row-heading,
.pn-table-console .pn-row-heading {
    color: #ffffff !important;
    font-weight: 950 !important;
}

.pn-tone-positive {
    color: #35e59b !important;
    text-shadow: 0 0 12px rgba(53, 229, 155, .24);
}

.pn-tone-negative {
    color: #ff5f73 !important;
    text-shadow: 0 0 12px rgba(255, 95, 115, .22);
}

.pn-tone-zero {
    color: #9fb2d1 !important;
}

.pn-tone-text {
    color: inherit;
}

.pn-dark-report-console .pn-empty-cell,
.pn-table-console .pn-empty-cell {
    color: #8fa6ca !important;
    background: #050b18 !important;
}

.pn-market-card {
    background: #07142c;
    border-color: rgba(128, 167, 224, .28);
}

.pn-market-card-head {
    background: linear-gradient(90deg, #102b5b, #07142c);
    border-bottom-color: rgba(128, 167, 224, .22);
}

.pn-market-card-head h3 {
    color: #ffffff;
}

.pn-market-card-head small {
    color: var(--pn-orange-2);
}

@media (max-width: 900px) {
    .pn-admin-filter-panel-english-only {
        grid-template-columns: 1fr;
    }
}






/* ========================================================================== */
/* AQHFT.NET imported Reports section — restored dark report presentation      */
/* ========================================================================== */
.pn-module-dropdown {
    display: flex;
    align-items: stretch;
}

.pn-module-dropdown>.pn-reports-toggle {
    height: 100%;
    color: #c5d4ee;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .045);
}

.pn-module-dropdown>.pn-reports-toggle:hover {
    color: #fff;
    border-color: rgba(249, 182, 74, .6);
    background: rgba(255, 255, 255, .07);
}

.pn-module-dropdown>.pn-reports-toggle.active,
.pn-module-dropdown>.pn-reports-toggle.active:hover,
.pn-module-dropdown>.pn-reports-toggle.show {
    color: #08182f;
    background: linear-gradient(90deg, var(--pn-orange), var(--pn-orange-2));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(245, 130, 32, .25);
}

.pn-module-dropdown>.pn-reports-toggle.active span,
.pn-module-dropdown>.pn-reports-toggle.show span {
    color: #08182f;
}

.pn-module-dropdown-menu {
    --bs-dropdown-bg: rgba(7, 17, 30, .98);
    --bs-dropdown-border-color: rgba(91, 137, 177, .32);
    --bs-dropdown-link-color: #d8e7f4;
    --bs-dropdown-link-hover-color: #ffffff;
    --bs-dropdown-link-hover-bg: rgba(60, 129, 184, .18);
    --bs-dropdown-link-active-bg: rgba(52, 142, 208, .28);
    min-width: 220px;
    padding: .45rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.pn-module-dropdown-menu .dropdown-item {
    border-radius: 6px;
    font-size: .82rem;
    letter-spacing: .02em;
}

.pn-imported-report-shell {
    position: relative;
    z-index: 1;
    padding: 24px 26px 30px;
    border: 1px solid rgba(88, 137, 177, .2);
    background: linear-gradient(180deg, rgba(14, 28, 43, .94), rgba(8, 18, 30, .94));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.pn-imported-report-heading {
    margin-bottom: 18px;
}

.pn-imported-report-heading h1 {
    margin: 4px 0 3px;
    font-size: 1.26rem;
    color: #f5f9fc;
    font-weight: 650;
}

.pn-imported-report-heading p {
    margin: 0;
    color: #8fa9bf;
    font-size: .82rem;
}

.pn-imported-toolbar-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}

.pn-imported-toolbar {
    width: max-content;
    min-width: 100%;
}

.pn-imported-toolbar .input-group-text,
.pn-imported-toolbar .form-control,
.pn-imported-toolbar .form-select,
.pn-imported-toolbar .btn {
    min-height: 38px;
    border-radius: 0 !important;
    white-space: nowrap;
    font-size: .82rem;
}

.pn-imported-toolbar .input-group-text {
    background: #e9eef2;
    color: #142130;
    border-color: #c7d0d8;
}

.pn-imported-toolbar .form-control,
.pn-imported-toolbar .form-select {
    min-width: 160px;
    border-color: #c7d0d8;
}

.pn-imported-toolbar .pn-currency-select {
    min-width: 100px;
    width: 110px;
}

.pn-now-check-wrap {
    min-width: 205px;
    align-items: center;
}

.pn-tabulator-card {
    width: 100%;
    overflow-x: auto;
    padding: 14px;
    border: 1px solid rgba(128, 167, 224, .18);
    border-radius: 18px;
    background: rgba(3, 8, 20, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
    scrollbar-color: rgba(91, 137, 177, .72) rgba(3, 8, 20, .45);
}

.pn-tabulator-card>.tabulator,
.pn-tabulator-card>#pl-table.tabulator,
.pn-tabulator-card>#aq-fubon-taifex-table.tabulator {
    margin-left: auto;
    margin-right: auto;
}

.pn-imported-report-shell .tabulator {
    background: #050b18;
    border: 1px solid rgba(128, 167, 224, .28);
    border-radius: 14px;
    overflow: hidden;
    font-size: 12.5px;
    color: #dce8ff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.pn-imported-report-shell .tabulator .tabulator-header {
    background: linear-gradient(180deg, #102b5b 0%, #07142c 100%);
    color: #f4f8ff;
    border-bottom: 1px solid rgba(128, 167, 224, .30);
    font-weight: 850;
}

.pn-imported-report-shell .tabulator .tabulator-header .tabulator-col {
    background: transparent;
    color: #f4f8ff;
    border-right: 1px solid rgba(128, 167, 224, .18);
}

.pn-imported-report-shell .tabulator .tabulator-header .tabulator-col:hover {
    background: rgba(66, 119, 184, .16);
}

.pn-imported-report-shell .tabulator .tabulator-header .tabulator-col-content {
    padding: 9px 8px;
}

.pn-imported-report-shell .tabulator .tabulator-col-title {
    font-size: 11.5px;
    letter-spacing: .02em;
}

.pn-imported-report-shell .tabulator .tabulator-arrow {
    border-bottom-color: #f9b64a;
    border-top-color: #f9b64a;
}

.pn-imported-report-shell .tabulator .tabulator-row {
    min-height: 32px;
    background: #050b18;
    color: #dce8ff;
}

.pn-imported-report-shell .tabulator .tabulator-row:nth-child(even) {
    background: #071020;
}

.pn-imported-report-shell .tabulator .tabulator-row:hover,
.pn-imported-report-shell .tabulator .tabulator-row.tabulator-selectable:hover {
    background: #0d1d3a;
}

.pn-imported-report-shell .tabulator .tabulator-row .tabulator-cell {
    padding: 7px 8px;
    color: #dce8ff;
    border-right: 1px solid rgba(128, 167, 224, .12);
    border-bottom: 1px solid rgba(128, 167, 224, .12);
}

.pn-imported-report-shell .tabulator .tabulator-row .tabulator-cell[tabulator-field="date"] {
    color: #ffffff !important;
    font-weight: 850;
    background: rgba(16, 43, 91, .22);
}

.pn-imported-report-shell .tabulator .tabulator-footer {
    background: #07142c;
    color: #dce8ff;
    border-top: 1px solid rgba(128, 167, 224, .24);
}

/* Bottom calculation row: Tabulator 5.4 may place the calc holder either
   inside the footer or directly under the table. Explicitly paint both the
   row and every calc cell so the library's default light cell background
   cannot hide the white/green/red total text. */
.pn-imported-report-shell .tabulator .tabulator-calcs-holder,
.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-calcs-holder,
.pn-imported-report-shell .tabulator .tabulator-calcs-holder .tabulator-row,
.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-row,
.pn-imported-report-shell .tabulator .tabulator-row.tabulator-calcs {
    background: #08182f !important;
    color: #f4f8ff;
}

.pn-imported-report-shell .tabulator .tabulator-calcs-holder .tabulator-cell,
.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-calcs-holder .tabulator-cell,
.pn-imported-report-shell .tabulator .tabulator-row.tabulator-calcs .tabulator-cell {
    background: #08182f !important;
    color: #f4f8ff;
    font-weight: 800;
    border-right-color: rgba(128, 167, 224, .14);
    border-bottom-color: rgba(128, 167, 224, .14);
}

.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-page {
    color: #dce8ff;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(128, 167, 224, .20);
    border-radius: 7px;
}

.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-page.active {
    color: #08182f;
    background: linear-gradient(90deg, var(--pn-orange), var(--pn-orange-2));
    border-color: transparent;
}

.pn-imported-report-shell .tabulator .tabulator-footer .tabulator-page:disabled {
    color: #627493;
    background: rgba(255, 255, 255, .02);
}

#aq-fubon-column-toggle-bar {
    margin: 2px auto 10px;
}

#aq-fubon-column-toggle-bar .btn {
    font-size: .75rem;
    padding: .32rem .72rem;
    border-radius: 999px;
    color: #dce8ff;
    border-color: rgba(128, 167, 224, .34);
    background: rgba(16, 43, 91, .52);
}

#aq-fubon-column-toggle-bar .btn:hover {
    color: #fff;
    border-color: rgba(249, 182, 74, .62);
    background: rgba(23, 60, 120, .70);
}

@media (max-width: 1100px) {
    .pn-imported-report-shell {
        padding: 18px 14px 24px;
    }

    .pn-imported-report-heading p {
        display: none;
    }
}


/* =====================================================================
   2026-09-07 Account Summary · Class B / Vertex
   ===================================================================== */
.pn-account-summary-actions {
    display: grid;
    justify-items: end;
    gap: 12px;
    min-width: 285px;
}

.pn-class-b-nav-card {
    min-width: 285px;
    padding: 14px 18px;
    border: 1px solid rgba(245, 130, 32, .30);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(245, 130, 32, .16), transparent 40%),
        linear-gradient(145deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 12px 28px rgba(8, 24, 47, .10);
    text-align: right;
}

.pn-class-b-nav-card small {
    display: block;
    color: #60708d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .035em;
}

.pn-class-b-nav-card strong {
    display: block;
    margin-top: 5px;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 950;
    color: #0b1b36;
}

.pn-subaccount-switcher {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.pn-subaccount-switcher a {
    text-decoration: none;
    color: #377dff;
    font-weight: 800;
}

.pn-subaccount-switcher a.active {
    color: #377dff;
}

.pn-account-summary-total-row td {
    border-top: 2px solid rgba(245, 130, 32, .46) !important;
    font-weight: 950 !important;
    background: rgba(245, 130, 32, .075) !important;
}

.pn-editor-help {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.pn-editor-table input[readonly] {
    background: #eef2f7;
    color: #334155;
    font-weight: 800;
    cursor: default;
}

@media (max-width: 900px) {
    .pn-account-summary-actions {
        justify-items: stretch;
        min-width: 0;
        margin-top: 14px;
    }

    .pn-class-b-nav-card {
        min-width: 0;
        text-align: left;
    }
}
