/* AQORIX partner portal — builds on /assets/css/style.css and /lab/lab.css */
.prt-page { padding-block: 40px 80px; }
.prt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.prt-head .h2 { margin: 4px 0; }
.prt-head .lab-sub { margin: 0; }
.prt-actions { display: flex; gap: 8px; }
.prt-panel { padding: 24px; border-radius: var(--r-lg); background: #fff; margin-bottom: 20px; }
.prt-panel .h4 { margin: 0 0 14px; }
.prt-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prt-panel-head .h4 { margin: 0; }
.prt-stack > .prt-panel:last-child { margin-bottom: 20px; }
.prt-grid2 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .prt-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prt-grid-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.prt-grid2 > .prt-panel, .prt-grid2 > .prt-stack > .prt-panel { margin-bottom: 0; }
.prt-grid2 > .prt-stack { display: grid; gap: 20px; align-content: start; }
.prt-grid2 + .prt-panel, .prt-grid2 + .card { margin-top: 20px; }
.prt-mt { margin-top: 24px !important; }
.prt-muted { color: var(--muted); }
.prt-empty { color: var(--muted); padding: 12px 0; margin: 0; }
.prt-link { color: var(--cyan-deep); font-weight: 600; }
.prt-alert-info { background: #EEF4FF; border-color: #C7D7FE; color: #1D3A8A; }
.prt-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* KPIs */
.prt-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 20px; }
.prt-kpis-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prt-kpi { padding: 18px 20px; border-radius: var(--r); background: #fff; display: grid; gap: 4px; }
.prt-kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.prt-kpi-value { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.prt-kpi-sub { font-size: 12.5px; color: var(--muted); }

/* referral box */
.prt-ref { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, #0B1B3F, #1B2D63); color: #fff; margin-bottom: 20px; display: grid; gap: 16px; }
@media (min-width: 960px) { .prt-ref { grid-template-columns: 280px 1fr; align-items: center; } }
.prt-ref .h4 { color: #fff; margin: 0 0 6px; }
.prt-ref .lab-hint { color: rgba(255, 255, 255, .75); margin: 0; }
.prt-ref.is-locked { opacity: .75; }
.prt-ref-rows { display: grid; gap: 10px; }
.prt-ref-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.prt-ref-row > span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.prt-ref-row code { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; overflow-x: auto; white-space: nowrap; color: #fff; }
.prt-ref .btn-secondary { background: #fff; color: #0B1B3F; border-color: #fff; }
@media (max-width: 600px) { .prt-ref-row { grid-template-columns: 1fr auto; } .prt-ref-row > span { grid-column: 1 / -1; } }

/* charts */
.prt-chart { width: 100%; height: 220px; display: block; direction: ltr; }
.prt-axis { stroke: var(--line); stroke-width: 1; }
.prt-bar { fill: #6C4BFF; }
.prt-chart-dense .prt-bar { fill: #00A3D9; }
.prt-tick { font-size: 11px; fill: var(--muted); text-anchor: middle; font-family: var(--font-latin); }
.prt-val { font-size: 10.5px; fill: var(--ink); text-anchor: middle; font-weight: 600; font-family: var(--font-latin); }
.prt-chart-dense .prt-tick:nth-of-type(odd) { display: none; }
.prt-hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prt-hbars li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.prt-hb-track { height: 12px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.prt-hb-fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #6C4BFF, #00C2FF); border-radius: 999px; }
[dir="rtl"] .prt-hb-fill { background: linear-gradient(270deg, #6C4BFF, #00C2FF); }
.prt-hb-val { text-align: end; font-weight: 700; }

/* tables */
.prt-table-wrap { overflow-x: auto; }
.prt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prt-table th { text-align: start; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prt-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prt-table tfoot th { color: var(--ink); font-size: 14px; border-bottom: 0; }
.prt-table a { color: var(--ink); }
.prt-table a:hover { color: var(--cyan-deep); }

/* badges */
.prt-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #F2F4F7; color: #344054; white-space: nowrap; }
.prt-badge-approved, .prt-badge-won, .prt-badge-active, .prt-badge-available, .prt-badge-paid { background: #ECFDF3; color: #05603A; }
.prt-badge-pending, .prt-badge-submitted, .prt-badge-requested, .prt-badge-paused { background: #FFFAEB; color: #93370D; }
.prt-badge-qualified, .prt-badge-demo, .prt-badge-pilot { background: #EEF4FF; color: #3538CD; }
.prt-badge-rejected, .prt-badge-lost, .prt-badge-suspended, .prt-badge-cancelled, .prt-badge-void, .prt-badge-duplicate { background: #FEF3F2; color: #B42318; }

/* lists */
.prt-list { display: grid; gap: 8px; }
.prt-item { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.prt-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.prt-item summary::-webkit-details-marker { display: none; }
.prt-item-main { display: grid; gap: 2px; }
.prt-item-main small { color: var(--muted); }
.prt-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; margin: 0 0 12px; }
.prt-dl dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.prt-dl dd { margin: 2px 0 0; }
.prt-dl-full { grid-column: 1 / -1; }
.prt-timeline { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.prt-plain { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; }

/* forms */
.prt-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.prt-fieldset[disabled] { opacity: .55; }
.prt-tracks-pick { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.prt-tracks-pick legend { font-weight: 600; margin-bottom: 8px; }
.prt-pick { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.prt-pick:has(input:checked) { border-color: #6C4BFF; box-shadow: 0 0 0 2px rgba(108, 75, 255, .15); }
.prt-pick input { margin-top: 4px; width: 18px; height: 18px; min-height: 0; flex: none; }
.prt-pick span { display: grid; gap: 2px; }
.prt-pick small { color: var(--muted); }
.prt-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border-radius: var(--r); background: #fff; margin-bottom: 20px; align-items: center; }
.prt-filters input, .prt-filters select, .prt-filter select { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.prt-filters input[type="search"] { flex: 1 1 220px; }
.prt-payout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.prt-payout .lab-hint { margin: 0; }
.prt-payreq { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .prt-payreq { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; } }
.prt-big { font-size: 20px; font-weight: 700; }
.prt-inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.prt-inline-form input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; flex: 1 1 140px; font: inherit; }
.prt-todo { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 20px; }
.prt-todo a { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: #FFFAEB; color: #93370D; text-decoration: none; border: 1px solid #FEDF89; }
.prt-todo b { font-size: 24px; }
.prt-nav a[aria-current="page"] { color: var(--cyan-deep); }
.prt-admin .lab-header { background: rgba(244, 246, 251, .96); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lab-narrow .field-grid, .prt-panel .field-grid { grid-template-columns: minmax(0, 1fr); }
.prt-panel .lab-cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field-grid { align-items: start; }
.prt-qr { display: flex; justify-content: center; margin: 12px 0; }
.prt-qr img, .prt-qr canvas { border: 8px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.prt-secret { font-size: 14px; letter-spacing: .04em; word-break: break-all; }
.prt-mfa-steps { margin: 0 0 16px; padding-inline-start: 20px; display: grid; gap: 8px; }
.prt-codes { columns: 2; margin: 0 0 16px; padding-inline-start: 22px; font-size: 15px; }
.prt-codes li { margin-bottom: 6px; }
