/* ============================================================================
   Record view = ONE box per group, rows of «label → value», two columns
   (owner 2026-11-07: «كل المعلومات اللي تخص كل مجموعة في مربع واحد»).
   Loaded globally from AdminPanelProvider so it wins over every page's own
   inline .pv-cards / .pv-info-card rules (contract / property / unit keep
   private copies) — `body` prefix = one notch more specific.
   Icons beside each label are added by js/pv-rows.js (lucide, by label).
   Rollback: remove the two renderHook lines (css + js) in AdminPanelProvider.
   ========================================================================== */
body .pv-cards { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0;
    background:var(--pv-card,#fff); border:1px solid var(--pv-line,#e6eaf2);
    border-radius:14px; overflow:hidden; }
body .pv-info-card { display:flex; align-items:center; gap:14px; min-width:0;
    text-align:start; background:transparent; border:0; border-radius:0;
    border-bottom:1px solid var(--pv-row-line,#eef1f6); margin-bottom:-1px;
    padding:11px 16px; box-shadow:none; transition:background .15s ease; }
body .pv-info-card:nth-child(even) { border-inline-start:1px solid var(--pv-row-line,#eef1f6); }
body .pv-info-card:nth-child(4n+1), body .pv-info-card:nth-child(4n+2) { background:var(--pv-zebra,#fafbfd); }
body .pv-info-card:last-child:nth-child(odd) { grid-column:1 / -1; }
body .pv-info-card:hover { background:var(--pv-hover,#f5f3ff); border-color:var(--pv-row-line,#eef1f6); box-shadow:none; }
body .pv-info-label { flex:0 0 min(210px, 44%); display:flex; align-items:center; gap:10px;
    margin:0; font-size:13px; font-weight:600; color:var(--pv-muted,#64748b); line-height:1.4; }
body .pv-info-value { flex:1 1 auto; min-width:0; text-align:start; font-size:15px; font-weight:700;
    display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
body .pv-info-value a { border-bottom:1px dashed #a5b4fc; }

/* coloured icon square (tinted, the card's own colour) */
.pv-ic { width:28px; height:28px; border-radius:9px; display:inline-grid; place-items:center; flex:none;
    color:var(--c-color,#6366f1); background:color-mix(in srgb, var(--c-color,#6366f1) 13%, #fff); }
.dark .pv-ic { background:color-mix(in srgb, var(--c-color,#6366f1) 20%, transparent); }
.pv-ic svg { width:15px; height:15px; stroke-width:2; }

/* missing value: muted text + grey icon (the gap still looks like a gap) */
body .pv-info-card.pv-missing { background:transparent; border-style:solid; }
body .pv-info-card.pv-missing:nth-child(4n+1), body .pv-info-card.pv-missing:nth-child(4n+2) { background:var(--pv-zebra,#fafbfd); }
body .pv-info-card.pv-missing .pv-info-value { color:#a3adbf; font-weight:600; font-size:13px; }
body .pv-info-card.pv-missing .pv-ic { filter:grayscale(1); opacity:.55; }

.dark .pv-wrap, .dark body .pv-cards { --pv-row-line:#262d3d; --pv-zebra:#161b26; --pv-hover:#1f2335; }

@media (max-width:760px) {
    body .pv-cards { grid-template-columns:1fr; }
    body .pv-info-card:nth-child(even) { border-inline-start:0; }
    body .pv-info-card:nth-child(4n+1), body .pv-info-card:nth-child(4n+2) { background:transparent; }
    body .pv-info-card:nth-child(odd) { background:var(--pv-zebra,#fafbfd); }
    body .pv-info-label { flex-basis:44%; }
}

/* section title: tinted icon instead of the thin bar */
.pv-section-title.pv-has-ic::before { display:none; }
.pv-section-title .pv-ic-sec { width:30px; height:30px; }
.pv-section-title .pv-ic-sec svg { width:16px; height:16px; }

/* Cairo for every classic page (Vue views set their own sizes, not families) */
.pv-wrap, .pv-wrap input, .pv-wrap button, .pv-wrap select, .pv-wrap textarea { font-family:"Cairo","Inter",sans-serif; }
