:root {
  --psm-primary: #883494; --psm-primary-dark: #5e2466; --psm-tint: #faf5fb; --psm-tint-2: #f1e6f4;
  --psm-line: #efe6f3; --psm-line-2: #d9b8e4; --psm-ink: #2d1a36; --psm-muted: #8a7a93; --psm-soft: #6b5577;
  --psm-active: #2e7d32; --psm-active-bg: #e8f5e9; --psm-locked: #5f5a66; --psm-locked-bg: #f1eff3;
  --psm-adjusted: #b26a00; --psm-adjusted-bg: #fff4e0; --psm-focus: 0 0 0 3px rgba(136,52,148,.20);
}
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: #f7f5f9; color: var(--psm-ink); }
.psm-muted { color: var(--psm-muted); }

/* ── Header ── */
/* ── QTM Hero Card (shared design across pages — bản sao như job_correction_report.php) ── */
.kpi-hero-card { background: linear-gradient(135deg, #faf6fc 0%, #ffffff 60%); border: 1px solid #f0e6f5; border-left: 4px solid #883494; border-radius: 16px; padding: 20px 24px; box-shadow: 0 4px 16px rgba(115,44,125,.06); margin-bottom: 20px; }
.kpi-hero-card .kpi-hero-logo { height: 64px; width: auto; flex-shrink: 0; }
.kpi-hero-card .kpi-hero-divider-v { width: 1px; align-self: stretch; background: linear-gradient(to bottom, transparent, #e9d5f0 30%, #e9d5f0 70%, transparent); flex-shrink: 0; }
.kpi-hero-card h1.kpi-hero-title { color: #883494; margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.kpi-hero-card .kpi-hero-sub { color: #6b5577; margin: 4px 0 0; font-size: 0.92rem; }
.kpi-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e9d5f0; color: #5a2470; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.kpi-hero-badge i { color: #883494; }
.psm-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.psm-head-meta .psm-updated { margin-right: 2px; }
.psm-updated { font-size: .78rem; color: var(--psm-muted); }
.psm-icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--psm-line-2); background: #fff; color: var(--psm-primary); }
.psm-icon-btn:hover { background: var(--psm-tint-2); }
.psm-export-btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; border: 1px solid var(--psm-line-2); background: #fff; color: var(--psm-primary); font-weight: 700; font-size: .8rem; padding: 0 12px; white-space: nowrap; }
.psm-export-btn:hover { background: var(--psm-tint-2); }
.psm-export-btn:focus-visible { outline: none; box-shadow: var(--psm-focus); }
.psm-export-btn:disabled { opacity: .6; cursor: progress; }
.psm-icon-btn:focus-visible, .psm-tile:focus-visible, .psm-toggle:focus-visible, .psm-pill:focus-visible, .psm-link:focus-visible { outline: none; box-shadow: var(--psm-focus); }
.psm-icon-btn.is-spinning i { animation: psm-spin .8s linear infinite; }
@keyframes psm-spin { to { transform: rotate(360deg); } }

/* ── Tabs ── */
.psm-tabs { border-bottom: 1px solid var(--psm-line); margin-bottom: 18px; gap: 4px; }
.psm-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--psm-soft); font-weight: 600; padding: 8px 14px; background: none; }
.psm-tabs .nav-link:hover { color: var(--psm-primary); }
.psm-tabs .nav-link.active { color: var(--psm-primary); border-bottom-color: var(--psm-primary); font-weight: 700; }

/* ── Tiles (bấm = lọc status) ── */
.psm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 12px; margin-bottom: 14px; }
.psm-tile { position: relative; text-align: left; background: #fff; border: 1px solid var(--psm-line); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.psm-tile { cursor: pointer; }
button.psm-tile:hover { border-color: var(--psm-line-2); box-shadow: 0 4px 14px rgba(115,44,125,.08); transform: translateY(-1px); }
.psm-tile::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.psm-tile.is-on { border-color: var(--psm-primary); box-shadow: 0 0 0 1px var(--psm-primary) inset; }
.psm-tile.is-on::after { background: var(--psm-primary); }
.psm-tile-lbl { font-size: .72rem; font-weight: 700; color: var(--psm-soft); text-transform: uppercase; letter-spacing: .05em; word-spacing: .2em; display: inline-flex; align-items: center; gap: 6px; }
.psm-tile-val { font-size: 1.7rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.psm-tile-note { font-size: .72rem; color: var(--psm-muted); }
.psm-tile-active .psm-tile-lbl i { color: var(--psm-active); font-size: .55rem; }
.psm-tile-locked .psm-tile-lbl i { color: var(--psm-locked); }
.psm-tile-adjusted .psm-tile-lbl i { color: var(--psm-adjusted); }
.psm-tile-sum { background: linear-gradient(135deg, var(--psm-primary) 0%, var(--psm-primary-dark) 100%); border-color: transparent; color: #fff; }
.psm-tile-sum .psm-tile-lbl, .psm-tile-sum .psm-tile-note { color: rgba(255,255,255,.8); }
.psm-tile-sum .psm-tile-val small { font-size: .9rem; font-weight: 700; opacity: .8; margin-right: 4px; }

/* ── Filters ── */
.psm-filters { background: #fff; border: 1px solid var(--psm-line); border-radius: 14px; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.psm-search { position: relative; flex: 1 1 220px; max-width: 280px; }
.psm-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--psm-muted); font-size: .85rem; pointer-events: none; }
.psm-search input { width: 100%; height: 34px; border: 1px solid #ddd3e2; border-radius: 8px; padding: 0 10px 0 32px; font-size: .86rem; }
.psm-search input:focus { outline: none; border-color: var(--psm-primary); box-shadow: var(--psm-focus); }
.psm-f { flex: 0 1 165px; min-width: 130px; }
.psm-toggle { height: 34px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ddd3e2; background: #fff; color: var(--psm-primary-dark); border-radius: 8px; padding: 0 12px; font-weight: 600; font-size: .84rem; }
.psm-toggle:hover { border-color: var(--psm-line-2); background: var(--psm-tint); }
.psm-toggle[aria-pressed="true"] { background: var(--psm-primary); border-color: var(--psm-primary); color: #fff; }
.psm-filter-summary { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: .8rem; color: var(--psm-soft); }
.psm-link { border: 0; background: none; padding: 0; color: var(--psm-primary); font-weight: 700; font-size: .8rem; }
.psm-link:hover { text-decoration: underline; }

/* Select2 — tím QTM, cao bằng ô search */
.select2-container--default .select2-selection--single { height: 34px; border: 1px solid #ddd3e2; border-radius: 8px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 32px; padding-left: 10px; padding-right: 26px; font-size: .86rem; color: var(--psm-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 32px; right: 4px; }
.psm-f.is-set .select2-selection--single { border-color: var(--psm-primary); background: var(--psm-tint); }
.psm-f.is-set .select2-selection__rendered { color: var(--psm-primary-dark) !important; font-weight: 700; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--psm-primary); box-shadow: var(--psm-focus); }
.select2-dropdown { border-color: var(--psm-line-2); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(45,26,54,.12); font-size: .86rem; }
.select2-container--default .select2-search--dropdown .select2-search__field { border-color: #ddd3e2; border-radius: 6px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--psm-primary); color: #fff; }
.select2-container--default .select2-results__option--selected { background: var(--psm-tint-2); color: var(--psm-primary-dark); font-weight: 700; }

/* ── Table card ── */
.psm-card { background: #fff; border: 1px solid var(--psm-line); border-radius: 14px; margin-top: 14px; position: relative; }
.psm-card.is-loading::before { content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 40%; border-radius: 3px; background: var(--psm-primary); animation: psm-bar 1s ease-in-out infinite; z-index: 3; }
@keyframes psm-bar { 0% { left: 0; width: 10%; } 50% { left: 40%; width: 40%; } 100% { left: 100%; width: 10%; } }
.psm-card.is-loading table { opacity: .55; transition: opacity .15s; }
.psm-table { margin: 0 !important; font-size: .86rem; border-collapse: separate !important; border-spacing: 0; }
table.dataTable.psm-table > thead > tr > th { position: sticky; top: 0; z-index: 2; }
.psm-table thead th { background: var(--psm-tint); color: var(--psm-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--psm-line) !important; padding: 10px 8px !important; white-space: nowrap; }
.psm-table thead th:first-child { border-top-left-radius: 14px; }
.psm-table thead th:last-child { border-top-right-radius: 14px; }
.psm-table tbody td { padding: 8px 8px !important; border-bottom: 1px solid #f4eef6; vertical-align: middle; }
.psm-table tbody tr:hover td { background: #fcf9fd; }
.psm-table tbody tr:last-child td { border-bottom: 0; }
.psm-agent { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--psm-tint-2); color: var(--psm-primary-dark); font-weight: 700; font-size: .76rem; letter-spacing: .02em; white-space: nowrap; }
/* Mỗi agent một màu cố định — giúp quét bảng theo nước; mã lạ giữ màu tím mặc định */
.psm-agent.ag-VN { background: #fde4e4; color: #b42318; }
.psm-agent.ag-TH { background: #e0ebff; color: #1d4ed8; }
.psm-agent.ag-MY { background: #d9f4ef; color: #0f766e; }
.psm-agent.ag-ID { background: #ffe8d9; color: #c2410c; }
.psm-agent.ag-KH { background: #ede5ff; color: #6d28d9; }
.psm-agent.ag-MM { background: #fdf0cf; color: #92400e; }
.psm-agent.ag-AU { background: #d8f3fa; color: #0e7490; }
.psm-agent.ag-PH { background: #fde2ef; color: #be185d; }
.psm-mode { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.psm-mode::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b9adc0; flex: none; }
.psm-mode.md-AIR::before { background: #eb3962; }
.psm-mode.md-FCL::before { background: #fdc328; }
.psm-mode.md-LCL::before { background: #8dc153; }
.psm-type { white-space: nowrap; }
.psm-own { font-size: .79rem; white-space: nowrap; }
.psm-table-wrap { overflow-x: auto; } /* bảng rộng hơn khung ⇒ cuộn ngang, không cắt cột cuối */
.psm-hbl { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: .84rem; white-space: nowrap; }
.psm-per { display: block; font-size: .7rem; color: var(--psm-muted); margin-top: 1px; }
.psm-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.psm-rmk { color: var(--psm-primary, #883494); font-weight: 700; display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.psm-rmk-tip { cursor: help; }
.psm-frt { font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.psm-frt.frt-collect { color: #b45309; }
.psm-frt.frt-prepaid { color: #0f766e; }
.psm-rmk-tip .bi { margin-left: 5px; font-size: .8em; opacity: .7; }
.psm-tip .tooltip-inner { max-width: 360px; text-align: left; font-size: .8rem; line-height: 1.45; padding: 8px 10px; }
.psm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .76rem; border: 1px solid transparent; white-space: nowrap; line-height: 1.5; }
.psm-pill-active { color: var(--psm-active); background: var(--psm-active-bg); }
.psm-pill-active i { font-size: .45rem; }
.psm-pill-locked { color: var(--psm-locked); background: var(--psm-locked-bg); }
.psm-pill-adjusted { color: var(--psm-adjusted); background: var(--psm-adjusted-bg); }
button.psm-pill { cursor: pointer; }
button.psm-pill:hover { border-color: currentColor; }
.psm-pill-go { font-size: .65rem; opacity: .7; }
.psm-empty { padding: 36px 12px; text-align: center; color: var(--psm-muted); }
.psm-empty i { font-size: 1.8rem; display: block; margin-bottom: 6px; color: var(--psm-line-2); }
.psm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--psm-line); font-size: .8rem; color: var(--psm-soft); }
.psm-foot .dataTables_info { padding: 0 !important; }
.psm-foot .pagination { margin: 0 !important; }
.psm-foot .page-link { color: var(--psm-primary); border-color: var(--psm-line); font-size: .8rem; padding: 4px 10px; }
.psm-foot .page-item.active .page-link { background: var(--psm-primary); border-color: var(--psm-primary); color: #fff; }
.psm-foot .page-item.disabled .page-link { color: #c7bccc; }
.psm-foot .page-link:focus { box-shadow: var(--psm-focus); }

/* ── History modal (timeline) ── */
.psm-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.psm-modal .modal-header { background: var(--psm-tint); border-bottom: 1px solid var(--psm-line); align-items: flex-start; }
.psm-modal .modal-title { font-weight: 800; font-size: 1.05rem; }
.psm-modal-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; font-size: .8rem; }
.psm-tl { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.psm-tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--psm-line); }
.psm-tl-item { position: relative; margin-bottom: 14px; }
.psm-tl-item:last-child { margin-bottom: 0; }
.psm-tl-dot { position: absolute; left: -22px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--psm-primary); }
.psm-tl-item.is-system .psm-tl-dot { border-color: #7a8699; }
.psm-tl-item.is-backfill .psm-tl-dot { border-color: #b8a9c0; }
.psm-tl-card { border: 1px solid var(--psm-line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.psm-tl-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.psm-tl-amt { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
.psm-tl-amt .old { color: var(--psm-muted); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 700; }
.psm-tl-amt .bi-arrow-right { color: var(--psm-muted); font-size: .9rem; }
.psm-cause { padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.psm-cause-user { background: var(--psm-tint-2); color: var(--psm-primary-dark); }
.psm-cause-system { background: #eef1f5; color: #4a5566; }
.psm-cause-backfill { background: #f3f0f5; color: var(--psm-soft); }
.psm-tl-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: .8rem; color: var(--psm-soft); }
.psm-tl-meta i { color: var(--psm-muted); margin-right: 4px; }
.psm-tl-reason { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--psm-tint); font-size: .84rem; white-space: pre-wrap; word-break: break-word; }
.psm-tl-remark { margin-top: 6px; font-size: .78rem; color: var(--psm-soft); }
.psm-docs-no { color: var(--psm-adjusted); }

/* ── Viewers ── */
.psm-note { display: flex; gap: 8px; align-items: flex-start; background: var(--psm-tint); border: 1px solid var(--psm-line); border-radius: 12px; padding: 10px 14px; font-size: .84rem; color: var(--psm-soft); margin-bottom: 14px; }
.psm-note i { color: var(--psm-primary); margin-top: 2px; }
.psm-note[hidden] { display: none; }
.psm-note.is-warn { background: var(--psm-adjusted-bg); border-color: #f3d9a8; color: #7a4a00; }
.psm-note.is-warn i { color: var(--psm-adjusted); }
/* Pay Profit Share | Receive Profit Share */
.psm-dir { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--psm-line); border-radius: 12px; margin-bottom: 14px; max-width: 100%; flex-wrap: wrap; }
.psm-dir-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--psm-soft); font-weight: 700; font-size: .84rem; padding: 7px 14px; border-radius: 9px; }
.psm-dir-btn:hover { color: var(--psm-primary); background: var(--psm-tint); }
.psm-dir-btn[aria-pressed="true"] { background: var(--psm-primary); color: #fff; }
.psm-dir-btn:focus-visible { outline: none; box-shadow: var(--psm-focus); }
.psm-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.psm-vcard { background: #fff; border: 1px solid var(--psm-line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.psm-vcard.is-empty { border-style: dashed; border-color: var(--psm-line-2); }
.psm-vhead { display: flex; justify-content: space-between; align-items: center; }
.psm-vcount { font-size: .74rem; color: var(--psm-muted); font-weight: 600; }
.psm-vchips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; align-items: center; }
.psm-vchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--psm-tint-2); color: var(--psm-primary-dark); font-size: .78rem; font-weight: 600; max-width: 100%; }
.psm-vchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psm-vchip button { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; line-height: 1; opacity: .7; flex-shrink: 0; }
.psm-vchip button:hover { opacity: 1; background: rgba(0,0,0,.06); }
.psm-vchip.is-confirm { background: #fdecef; color: #b3261e; }
.psm-tba { font-size: .8rem; color: var(--psm-muted); font-style: italic; }
.psm-vadd { display: flex; gap: 6px; }
.psm-vadd input { flex: 1; min-width: 0; height: 32px; border: 1px solid #ddd3e2; border-radius: 8px; padding: 0 10px; font-size: .82rem; }
.psm-vadd input:focus { outline: none; border-color: var(--psm-primary); box-shadow: var(--psm-focus); }
.psm-btn { height: 32px; border: 0; border-radius: 8px; background: var(--psm-primary); color: #fff; font-weight: 700; font-size: .8rem; padding: 0 12px; white-space: nowrap; }
.psm-btn:hover { background: var(--psm-primary-dark); }
.psm-btn:disabled { opacity: .6; }
.psm-vnew { margin-top: 14px; padding: 14px; }
.psm-vnew h6 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--psm-soft); margin: 0 0 8px; }
.psm-vnew .psm-vadd { flex-wrap: wrap; }
.psm-vnew .psm-vadd input[name="agent"] { flex: 0 1 150px; }

/* ── Responsive ── */
@media (max-width: 1199px) {
  .psm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psm-tile-sum { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
  .psm-table-wrap { overflow-x: auto; }
  table.dataTable.psm-table > thead > tr > th { position: relative; }
  .psm-table tbody td { white-space: nowrap; }
}
@media (max-width: 768px) {
  .kpi-hero-card { padding: 16px; }
  .kpi-hero-card h1.kpi-hero-title { font-size: 1.5rem; }
  .kpi-hero-card .kpi-hero-logo { height: 48px; }
  .kpi-hero-card .kpi-hero-divider-v { display: none; }
}
@media (max-width: 767.98px) {
  .psm-search input, .psm-toggle { height: 44px; }
  .select2-container--default .select2-selection--single { height: 44px; }
  .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }
  .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
  .psm-vadd input, .psm-btn { height: 40px; }
}
@media (max-width: 576px) {
  .kpi-hero-card .kpi-hero-logo { display: none; } /* 400px: logo chiếm nửa thẻ, ép tiêu đề 3 dòng */
  .kpi-hero-card { padding-top: 56px; } /* chừa nút ☰ sidebar */
  .psm-search { max-width: none; flex-basis: 100%; }
  .psm-f { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .psm-tile-val { font-size: 1.4rem; }
}

/* ── Portal (profitshare.quanterm.com) ── */
.psp-main { max-width: 1680px; margin: 0 auto; padding: 24px 16px 40px; }
.psp-stale { display: flex; gap: 8px; align-items: center; background: #fff4e0; color: #8a5300; border: 1px solid #f3d9a6;
  border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-size: .88rem; font-weight: 600; }
.psp-alert { position: fixed; top: 16px; right: 16px; z-index: 2000; max-width: min(420px, calc(100vw - 32px));
  background: #fdecee; color: #a1162f; border: 1px solid #f5c2cb; border-radius: 10px; padding: 10px 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.psp-signout { margin: 0; }
.psp-signout button { border: 1px solid var(--psm-line-2); background: #fff; color: var(--psm-soft); border-radius: 10px;
  padding: 6px 12px; font-weight: 600; font-size: .85rem; }
.psp-signout button:hover { color: var(--psm-primary); border-color: var(--psm-primary); }
.psp-sp-tiles .psm-tile { cursor: default; }
.psp-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.psp-login { width: 100%; max-width: 420px; background: #fff; border: 1px solid #f0e6f5; border-top: 4px solid #883494;
  border-radius: 16px; padding: 32px 28px; text-align: center; box-shadow: 0 8px 28px rgba(115,44,125,.08); }
.psp-login img { height: 56px; margin-bottom: 16px; }
.psp-login h1 { color: #883494; font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.psp-login p { color: var(--psm-soft); font-size: .92rem; margin: 0 0 22px; }
.psp-login .psp-ms { display: inline-flex; gap: 10px; align-items: center; justify-content: center; width: 100%;
  background: #883494; color: #fff; border-radius: 10px; padding: 11px 16px; font-weight: 700; text-decoration: none; }
.psp-login .psp-ms:hover { background: #5e2466; color: #fff; }
.psp-login .psp-foot { margin: 18px 0 0; font-size: .8rem; color: var(--psm-muted); }
@media (max-width: 576px) { .psp-main { padding-top: 12px; } .kpi-hero-card h1.kpi-hero-title { font-size: 1.4rem; } }
.psp-min0 { min-width: 0; }
.kpi-hero-title .bi { margin-right: 8px; }
