/* The project panel (project-panel.js): estimate, schedule and site photos, on the right side, DAVINCI's glass. */
.v8-pj-panel{position:fixed;right:24px;top:132px;bottom:96px;width:min(520px,calc(100vw - 32px));z-index:60;display:flex;flex-direction:column;gap:10px;padding:14px 16px}
.v8-pj-panel[hidden]{display:none}
.v8-pj-head{display:flex;align-items:center;gap:8px}
.v8-pj-tabs{display:flex;gap:4px;flex:1;flex-wrap:wrap}
.v8-pj-tab{border:0;border-radius:999px;padding:7px 14px;background:transparent;color:inherit;font:500 13px var(--dv-font,Inter,system-ui,sans-serif);opacity:.75;cursor:pointer}
.v8-pj-tab.on{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);opacity:1}
.v8-pj-x{border:0;background:transparent;color:inherit;width:30px;height:30px;border-radius:50%;cursor:pointer;display:grid;place-items:center}
.v8-pj-x svg{width:16px;height:16px}
.v8-pj-body{overflow:auto;display:flex;flex-direction:column;gap:10px;padding-right:2px}
.v8-pj-table{width:100%;border-collapse:collapse;font-size:12.5px}
.v8-pj-table th{text-align:left;font-weight:500;opacity:.7;padding:4px 6px;border-bottom:1px solid rgba(255,255,255,.18)}
.v8-pj-table td{padding:5px 6px;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:top}
.v8-pj-table td:nth-child(n+3),.v8-pj-table th:nth-child(n+3){text-align:right;white-space:nowrap}
.v8-pj-table td{word-break:break-word}
.v8-pj-table tr.warn td{opacity:.85}
.v8-pj-table tr.late td{color:#ffb3a6}
.v8-pj-table tr.done td{opacity:.6}
.v8-pj-total{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.08)}
.v8-pj-total b{font-size:16px;font-weight:600}
.v8-pj-page{display:block;margin:8px 0;padding:9px 12px;border-radius:12px;background:rgba(243,213,140,.16);color:#f3d58c;font-size:13px;text-decoration:none}
.v8-pj-page:hover{background:rgba(243,213,140,.28)}
.v8-pj-sub{margin-top:4px;font-size:12px}
.v8-pj-note{font-size:13px;line-height:1.4;opacity:.9}
.v8-pj-note.small{font-size:11.5px;opacity:.7}
.v8-pj-note.bad{color:#ffb3a6}
.v8-pj-note.gold{color:#f3d58c}
.v8-pj-ask{display:block;text-align:center;text-decoration:none;border-radius:999px;padding:9px 14px;color:inherit}
.v8-pj-photo{display:flex;gap:10px;padding:8px;border-radius:14px;background:rgba(255,255,255,.06)}
.v8-pj-photo.wait{box-shadow:inset 0 0 0 1px rgba(243,213,140,.6)}
.v8-pj-photo img{width:96px;height:96px;object-fit:cover;border-radius:10px;flex:none}
.v8-pj-photo-words{display:flex;flex-direction:column;gap:4px;font-size:12.5px;min-width:0}
.v8-pj-where{color:#f3d58c}
.v8-pj-diff{opacity:.85}
.v8-pj-diff:before{content:"≠ ";opacity:.7}
.v8-pj-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.v8-pj-acts .dv-btn{border-radius:999px;padding:6px 12px;font-size:12px}
.v8-pj-other{opacity:.8}
@media (max-width:700px){.v8-pj-panel{left:16px;right:16px;width:auto;top:80px;bottom:80px}}
/* Issues (checks.py, 2026-11-11) */
.v8-pj-issue{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.06);font-size:12.5px}
.v8-pj-issue.done{opacity:.6}
/* Documents (documents.py, 2026-11-11) */
.v8-pj-search{display:flex;gap:6px}
.v8-pj-search input{flex:1;min-width:0}

/* Site and Layouts tabs (the tools rebuild batch 5) */
.v8-pj-table tr.best td{font-weight:600}
.v8-pj-rules{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 10px;margin:6px 0 10px}
.v8-pj-field{display:flex;flex-direction:column;gap:3px;font-size:12px}
.v8-pj-field>span{opacity:.7}
.v8-pj-field input[type=number],.v8-pj-field input[type=text]{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:inherit;padding:5px 7px;font:inherit}
.v8-pj-wide{grid-column:1/-1}
.v8-pj-side{display:inline-flex;align-items:center;gap:3px;margin-right:8px}
.v8-pj-layouts{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin:6px 0 12px}
.v8-pj-layout{display:flex;flex-direction:column;gap:5px;padding:8px;border:1px solid rgba(255,255,255,.14);border-radius:10px}
.v8-pj-layout.on{border-color:rgba(242,214,140,.8)}
.v8-pj-plan{width:100%;height:auto;aspect-ratio:auto}
.v8-pj-plan rect{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.75);stroke-width:.06}
.v8-pj-plan text{fill:currentColor;text-anchor:middle;dominant-baseline:middle}

/* Schedule play, cash flow, carbon and handover (the tools rebuild batch 6) */
.v8-pj-table tr.crit td:first-child{color:rgba(242,214,140,.95)}
.v8-pj-play{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 10px}
.v8-pj-play input[type=range]{flex:1;min-width:140px;accent-color:#f2d68c}
.v8-pj-day{font-size:12px;opacity:.8;flex-basis:100%}
.v8-pj-bars{display:flex;flex-direction:column;gap:4px;margin:4px 0 8px}
.v8-pj-bar{display:grid;grid-template-columns:92px 1fr 110px;gap:8px;align-items:center;font-size:12px}
.v8-pj-bar b{height:10px;border-radius:5px;background:rgba(255,255,255,.08);overflow:hidden;display:block}
.v8-pj-bar b i{display:block;height:100%;background:rgba(242,214,140,.8);border-radius:5px}
.v8-pj-bar em{font-style:normal;text-align:right;opacity:.85}
.v8-pj-acts input[type=date]{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:inherit;padding:5px 7px;font:inherit}

/* History and Find (the tools rebuild batch 7) */
.v8-pj-field select,.v8-pj-input{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:6px;color:inherit;padding:5px 7px;font:inherit}
.v8-pj-acts .v8-pj-input{flex:1;min-width:110px}

/* Dashboard (the tools rebuild batch 10) */
.v8-pj-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:6px 0 12px}
.v8-pj-tile{display:flex;flex-direction:column;gap:3px;text-align:left;padding:10px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(255,255,255,.04);color:inherit;font:inherit;cursor:pointer}
.v8-pj-tile span{font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
.v8-pj-tile b{font-size:15px;font-weight:600}
.v8-pj-tile em{font-style:normal;font-size:11.5px;opacity:.75}
.v8-pj-tile.warn{border-color:rgba(240,160,90,.6)}
/* Real cost (real_cost.py): the months as bars, the reader's buttons */
.v8-pj-rc-bars{display:flex;align-items:flex-end;gap:2px;height:60px;margin:4px 0 10px;padding-bottom:2px;border-bottom:1px solid rgba(255,255,255,.18);overflow:hidden}
.v8-pj-rc-bars i{flex:1 1 4px;min-width:2px;max-width:14px;background:#f3d58c;border-radius:2px 2px 0 0;opacity:.85}
.v8-pj-rc-bars i:hover{opacity:1}
.v8-pj-rc-read{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}.v8-pj-rc-read .dv-title,.v8-pj-rc-read .v8-pj-note{flex:1 1 100%}
.v8-pj-table.v8-pj-rc2 td:nth-child(2),.v8-pj-table.v8-pj-rc2 th:nth-child(2){text-align:right;white-space:nowrap}
.v8-pj-table.v8-pj-rc td:first-child{white-space:pre-line;word-break:normal;line-height:1.35}.v8-pj-table.v8-pj-rc td:nth-child(n+2),.v8-pj-table.v8-pj-rc th:nth-child(n+2){text-align:right;white-space:nowrap}.v8-pj-table.v8-pj-rc td:first-child::first-line{font-weight:600}
