﻿/* Styles for the payables and banking pages. Uses the tokens of dashboard.css and campus.css.
   The pages open in the AdvEntERP.Finance shells (FinModal): the lists (bills, payments) are coa-overlay
   pop-ups with the coa-side panel, the work screens are bk-page sheets. The rules below only add what the
   reference stylesheet lacks. */

/* editor: main column and totals rail (bill editor, pay bills / receive payment) */
.pv-editor{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px;align-items:start}
.pv-editor .ie-totals,.pv-editor .rp-summary{grid-row:auto;grid-column:auto;border:1px solid var(--line);border-radius:12px;overflow:visible}
.pv-editor .ie-head-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.pv-editor .ie-cust-grid{grid-template-columns:1.2fr 1fr 1fr}
.pv-lock{border-radius:9px;margin:0 0 12px!important}
.pv-lines{min-width:1620px}
.pv-lines td{padding:5px 6px}
.pv-lines select.ie-in{padding:5px 3px}
.pv-lines input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand-2)}
/* remove-line button of the bill lines grid (it sits in the grid's actions cell, not in a td.ic) */
.pv-linedel .i-del{display:inline-grid;place-items:center;width:26px;height:24px;border-radius:6px;border:1px solid transparent;background:transparent;cursor:pointer}
.pv-linedel .i-del svg{width:15px;height:15px}
.pv-linefoot{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--line);background:#F7FAF9}
.pv-sect{font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin:20px 2px 9px}

/* list pop-ups (pv-list on coa-modal): inputs in the side panel, link-styled buttons, totals notes */
.pv-list .coa-field input{font-family:inherit;font-size:.83rem;padding:8px 10px;border:1px solid var(--line);
  border-radius:9px;background:var(--card);color:var(--text);width:100%}
.pv-list .coa-field input:focus{outline:none;border-color:var(--brand-2);box-shadow:0 0 0 3px rgba(44,110,128,.12)}
.pv-list a.btn-add{text-decoration:none}
.pv-list .btn-reset:disabled{opacity:.5;cursor:default;filter:none}
.pv-list .coa-toolbar .bk-kindfilter{flex:none}
.pv-list .coa-tablescroll>.bk-empty{margin:18px;border:1px dashed var(--line);border-radius:12px}
.pv-list .ie-err.sm{border:1px solid #F0C9C2;border-radius:9px;font-size:.76rem;padding:8px 10px}
.pv-pillnote{display:block;margin-top:3px;font-size:.7rem;color:var(--faint)}
/* DataGrid in the list pop-ups: the coa-tablescroll box scrolls, so the grid's own wrapper must not
   (otherwise the sticky header and totals stick to it); its header row gets the coa-hrow look. */
.pv-list .coa-tablescroll>.dg-wrap{overflow:visible;border-radius:0}
.pv-list .coa-table.dg-table thead th{top:0;z-index:3;background:linear-gradient(180deg,#5F7C84 0%,#4C6870 100%)}
.pv-list .coa-tablescroll>.dg-pager{margin:10px 12px}
.pv-list .dg-foot td{white-space:nowrap}
/* text buttons in the grid's actions cell (ledger.css turns buttons in .coa-table td.dg-acts into 26px icon buttons) */
.pv-list .coa-table td.dg-acts .pv-acts .mt-btn{display:inline-flex;align-items:center;width:auto;height:26px;padding:3px 9px;
  border:1px solid var(--line);border-radius:8px;background:var(--card);vertical-align:middle}
.pv-list .coa-table td.dg-acts .pv-acts .mt-btn:hover{border-color:var(--brand-2);background:var(--brand-soft)}
.pv-list .coa-table td.dg-acts .pv-acts .mt-btn.go{background:var(--brand);border-color:var(--brand);color:#fff}
.pv-list .coa-table td.dg-acts .pv-acts .mt-btn.go:hover{background:var(--brand-2)}
.coa-pill.warn .pv-pillnote{color:#8A5D0E;opacity:.8}

/* lists */
.pv-check{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;font-weight:500;color:var(--text);height:38px;white-space:nowrap;cursor:pointer}
.pv-check input[type=checkbox],.pv-check input[type=radio]{width:16px;height:16px;accent-color:var(--brand-2)}
.pv-check input.c-filter{cursor:pointer}
.pv-tot td{font-weight:700;background:#F3F6F5;border-top:2px solid var(--ink)!important}
.pv-od{color:var(--neg);font-weight:600}
.pv-zero{color:var(--faint)}
.pv-link{color:var(--brand-2);font-weight:600;text-decoration:none}
.pv-link:hover{text-decoration:underline}
.pv-acts{white-space:nowrap;text-align:right}
.pv-acts .mt-btn{display:inline-flex;align-items:center;text-decoration:none;margin-left:4px}
.pv-acts .mt-btn.warn{color:var(--neg)}
.pv-count{font-size:.78rem;color:var(--muted)}
.pv-row{cursor:pointer}
.pv-row:hover td{background:#F5F9F8}
.pv-kpis5{grid-template-columns:repeat(5,1fr)}
.pv-kpis6{grid-template-columns:repeat(6,1fr)}
.bk-kpi.neg>b{color:var(--neg)}
.pv-modal{width:min(720px,100%)}
.pv-modal.wide{width:min(900px,100%)}
.pv-modal .gl-form{margin-bottom:4px}
.pv-seg{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}

/* ageing */
.pv-exp{width:24px;height:24px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--muted);cursor:pointer;font-size:.7rem;line-height:1}
.pv-exp:hover{border-color:var(--brand-2);color:var(--brand)}
.pv-child td{background:#F8FBFA;font-size:.76rem;color:var(--muted)}
.pv-row.pv-open td{background:var(--brand-soft)}
.pv-items-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pv-items-head .bk-link{font-size:.78rem}
.pv-child td:first-child{border-left:3px solid var(--brand-soft)}
.pv-control{padding:16px 18px;margin-top:22px}
.pv-control h3{font-size:.95rem;font-weight:600;margin:0 0 4px}
.pv-control .bk-act{margin:12px 0}
.pv-control-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pv-control-acts input{flex:1;min-width:220px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-family:inherit;font-size:.84rem}

/* reconciliation worksheet: deposits and payments side by side */
.pv-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
.pv-two h3{display:flex;align-items:center;gap:10px;font-size:.84rem;font-weight:700;margin:0 0 8px}
.pv-two h3 small{font-weight:400;color:var(--faint);font-size:.74rem}
.pv-two h3 .pv-check{margin-left:auto;height:auto}
.pv-two .rc-table td{max-width:220px}
.pv-two .rc-table tbody tr.rc-on td{background:var(--pos-soft)}
.rc-eq-cell input[type=date]{text-align:left;font-family:inherit;font-size:.9rem}

/* reconciliation report (pv-print sheet): section rows of the item tables */
.pv-print .rr-table td.sub{font-weight:700;background:#F3F6F5;color:#3a4452;text-transform:uppercase;font-size:.7rem;letter-spacing:.04em}

@media (max-width:1100px){
  .pv-editor,.pv-two{grid-template-columns:1fr}
  .pv-kpis5,.pv-kpis6{grid-template-columns:repeat(2,1fr)}
}
@media print{
  /* the printed reconciliation report is the document only, as the reference's rr-noprint bar */
  .pv-print .bk-bar{display:none!important}
}
