/* ProjectQuest Finance v21.46.1.8.22 - additive spreadsheet/reporting workspace */
.pq-finance-sheet-launcher{display:flex;justify-content:flex-end;gap:.5rem;margin:.75rem 0}.pq-finance-sheet-launcher button{white-space:nowrap}
.pq-finance-sheet-shell{position:fixed;inset:0;z-index:2147483000;background:rgba(2,5,10,.78);backdrop-filter:blur(5px);display:flex;align-items:stretch;justify-content:center;padding:12px}
.pq-finance-sheet-panel{width:min(1600px,100%);height:calc(100dvh - 24px);overflow:auto;background:var(--pq-surface,#0b1018);color:var(--pq-text,#eef4fb);border:1px solid var(--pq-border,rgba(255,255,255,.14));border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.45);padding:18px}
.pq-finance-sheet-top{display:flex;gap:18px;justify-content:space-between;align-items:flex-start;position:sticky;top:-18px;z-index:8;background:var(--pq-surface,#0b1018);padding:18px 0 12px}.pq-finance-sheet-top h2{margin:.15rem 0;font-size:1.55rem}.pq-finance-sheet-top p{margin:0;color:var(--pq-muted,#98a8ba)}.pq-finance-sheet-eyebrow{font-size:.72rem;letter-spacing:.12em;color:var(--pq-accent,#58d6c7)}.pq-finance-sheet-head-actions{display:flex;gap:.5rem}.pq-finance-sheet-head-actions button,.pq-finance-sheet-panel button{border:1px solid var(--pq-border,rgba(255,255,255,.16));background:var(--pq-surface-2,#121a25);color:inherit;border-radius:9px;padding:.58rem .78rem;cursor:pointer}.pq-finance-sheet-head-actions [data-pq-sheet-close]{font-size:1.3rem;padding:.35rem .75rem}
.pq-finance-phase-nav,.pq-finance-view-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:.45rem 0 .8rem}.pq-finance-phase-nav button.active,.pq-finance-view-tabs button.active,.pq-finance-sheet-panel button:hover{border-color:var(--pq-accent,#58d6c7)}.pq-finance-view-tabs button.active{background:color-mix(in srgb,var(--pq-accent,#58d6c7) 18%,var(--pq-surface-2,#121a25))}
.pq-finance-sheet-filters{display:grid;grid-template-columns:minmax(190px,2fr) repeat(6,minmax(125px,1fr)) auto;gap:.6rem;align-items:end;padding:.8rem;border:1px solid var(--pq-border,rgba(255,255,255,.12));border-radius:12px;background:var(--pq-surface-2,#111823)}.pq-finance-sheet-filters label,.pq-finance-pivot-controls label{display:flex;flex-direction:column;gap:.28rem;font-size:.75rem;color:var(--pq-muted,#9aa9b8)}.pq-finance-sheet-filters input,.pq-finance-sheet-filters select,.pq-finance-pivot-controls select,.pq-finance-sheet-grid select,.pq-finance-sheet-grid input{background:var(--pq-surface,#0b1018);color:inherit;border:1px solid var(--pq-border,rgba(255,255,255,.17));border-radius:7px;padding:.48rem;min-height:36px}.pq-finance-filter-actions{display:flex;gap:.35rem}
.pq-finance-sheet-summary{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.65rem .2rem;color:var(--pq-muted,#9aa9b8);font-size:.86rem}.pq-finance-sheet-summary strong{color:var(--pq-text,#fff)}
.pq-finance-grid-actions,.pq-finance-report-actions{display:flex;justify-content:space-between;gap:.6rem;flex-wrap:wrap;margin:.45rem 0}.pq-finance-grid-actions>div{display:flex;gap:.4rem;flex-wrap:wrap}.pq-finance-columns-menu{position:absolute;z-index:12;background:var(--pq-surface,#0b1018);border:1px solid var(--pq-border,rgba(255,255,255,.15));border-radius:10px;padding:.7rem;box-shadow:0 12px 30px rgba(0,0,0,.35)}.pq-finance-columns-menu label{display:block;padding:.25rem}
.pq-finance-grid-host,.pq-finance-pivot-table-wrap,.pq-finance-report-table-wrap{overflow:auto;border:1px solid var(--pq-border,rgba(255,255,255,.13));border-radius:11px}.pq-finance-sheet-grid,.pq-finance-pivot-table,.pq-finance-report table{width:100%;border-collapse:separate;border-spacing:0;font-size:.84rem}.pq-finance-sheet-grid th,.pq-finance-sheet-grid td,.pq-finance-pivot-table th,.pq-finance-pivot-table td,.pq-finance-report th,.pq-finance-report td{padding:.48rem .55rem;border-bottom:1px solid var(--pq-border,rgba(255,255,255,.09));vertical-align:middle}.pq-finance-sheet-grid thead th,.pq-finance-pivot-table thead th,.pq-finance-report thead th{position:sticky;top:0;z-index:3;background:var(--pq-surface-2,#111823);text-align:left;white-space:nowrap}.pq-finance-sheet-grid th:first-child,.pq-finance-sheet-grid td:first-child{position:sticky;left:0;z-index:2;background:var(--pq-surface,#0b1018)}.pq-finance-sheet-grid thead th:first-child{z-index:4;background:var(--pq-surface-2,#111823)}.pq-finance-sheet-grid tr.pending td{background:color-mix(in srgb,#e8a64b 6%,transparent)}.pq-finance-sheet-grid tr.excluded{opacity:.55}.pq-finance-sheet-grid td small{display:block;color:var(--pq-muted,#8fa0b2)}.pq-finance-sheet-grid td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.pq-finance-sheet-grid td.negative{color:#ffb5a9}.pq-finance-sheet-grid td.positive{color:#a8e8c8}.pq-finance-sheet-grid .pq-sort{border:0;background:transparent;padding:0;font-weight:700}.pq-col-resize{position:absolute;right:-3px;top:0;width:7px;height:100%;cursor:col-resize}.pq-cell-menu{border:0!important;background:transparent!important;padding:0!important;text-decoration:underline dotted}.pq-finance-sheet-grid .saving{opacity:.55}.pq-finance-sheet-grid .saved{outline:1px solid #7fe1c3}.pq-finance-sheet-grid .error{outline:1px solid #ff8576}
.pq-finance-pager{display:flex;justify-content:center;align-items:center;gap:.7rem;padding:.8rem}.pq-finance-pager button:disabled{opacity:.35;cursor:not-allowed}.pq-finance-loading,.pq-finance-empty,.pq-finance-error{padding:2rem;text-align:center;color:var(--pq-muted,#9aa9b8)}.pq-finance-error{color:#ff9d91}
.pq-finance-pivot-controls{display:flex;gap:.6rem;align-items:end;flex-wrap:wrap;margin:.8rem 0}.pq-finance-pivot-controls .pq-check,.pq-finance-report-actions .pq-check{flex-direction:row;align-items:center}.pq-finance-pivot-table td button{border:0;background:transparent;padding:0;text-decoration:underline dotted}.pq-finance-mini-chart{display:grid;gap:.35rem;margin:1rem 0}.pq-finance-mini-chart button{display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,3fr) auto;align-items:center;gap:.6rem;text-align:left}.pq-finance-mini-chart i{display:block;height:10px;border-radius:99px;background:var(--pq-accent,#58d6c7)}.pq-finance-mini-chart b{font-variant-numeric:tabular-nums}
.pq-finance-report{max-width:1180px;margin:1rem auto;padding:1rem;background:var(--pq-surface-2,#111823);border-radius:12px}.pq-finance-report>header{border-bottom:1px solid var(--pq-border,rgba(255,255,255,.12));margin-bottom:1rem}.pq-finance-report h2,.pq-finance-report h3{margin:.35rem 0}.pq-finance-report-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.6rem;margin-bottom:1rem}.pq-finance-report-summary>div{display:grid;gap:.25rem;padding:.8rem;border:1px solid var(--pq-border,rgba(255,255,255,.12));border-radius:9px}.pq-finance-report section{margin:1rem 0}.pq-finance-report em{color:var(--pq-muted,#9aa9b8)}
.pq-finance-date-menu{position:fixed;z-index:2147483640;width:210px;display:grid;gap:.25rem;padding:.45rem;background:var(--pq-surface,#0b1018);border:1px solid var(--pq-border,rgba(255,255,255,.16));border-radius:10px;box-shadow:0 16px 35px rgba(0,0,0,.45)}.pq-finance-date-menu button{text-align:left;background:transparent;color:inherit;border:0;border-radius:7px;padding:.55rem}.pq-finance-date-menu button:hover{background:var(--pq-surface-2,#111823)}
.pq-finance-toast{position:fixed;right:18px;bottom:18px;z-index:2147483647;max-width:420px;padding:.8rem 1rem;background:#101a23;color:#f6fbff;border:1px solid rgba(255,255,255,.18);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.4);opacity:0;transform:translateY(8px);transition:.18s}.pq-finance-toast.show{opacity:1;transform:none}
@media(max-width:1050px){.pq-finance-sheet-filters{grid-template-columns:repeat(3,minmax(140px,1fr))}.pq-finance-sheet-panel{padding:12px}.pq-finance-sheet-top{top:-12px}}
@media(max-width:680px){.pq-finance-sheet-shell{padding:0}.pq-finance-sheet-panel{height:100dvh;border-radius:0;border:0}.pq-finance-sheet-top{align-items:center}.pq-finance-sheet-top p{display:none}.pq-finance-sheet-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pq-finance-sheet-filters label:first-child{grid-column:1/-1}.pq-finance-filter-actions{grid-column:1/-1}.pq-finance-grid-actions{position:sticky;left:0}.pq-finance-mini-chart button{grid-template-columns:1fr}.pq-finance-mini-chart i{width:100%!important}.pq-finance-sheet-grid{font-size:.8rem}}
@media print{.pq-finance-sheet-top,.pq-finance-phase-nav,.pq-finance-view-tabs,.pq-finance-sheet-filters,.pq-finance-report-actions,.pq-finance-grid-actions{display:none!important}.pq-finance-sheet-shell{position:static;background:#fff;padding:0}.pq-finance-sheet-panel{height:auto;overflow:visible;border:0;box-shadow:none;background:#fff;color:#000}.pq-finance-report{background:#fff;color:#000}.pq-finance-report th{background:#eee!important;color:#000}}
