/* V8.2 – regression restore, multi-customer workbench fixes, responsive workflow */
.v25-unfinished-top{position:relative;gap:6px}.v25-unfinished-top>b{min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#173f68;color:#fff;display:grid;place-items:center;font-size:11px}.v25-floating-tasks,.v25-work-list{width:min(920px,94vw);max-height:88dvh;overflow:auto}.v25-task-list,.v25-preview-list{display:grid;gap:9px}.v25-task-list>article,.v25-preview-list>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #cbd5e1;border-radius:14px;padding:12px;background:#fff}.v25-task-list>article>div:first-child,.v25-preview-list>article>div:first-child{display:grid;min-width:0}.v25-task-list .row-actions{justify-content:flex-end}.v25-dashboard-note{margin:12px 0;border:1px solid #bfd2e5;background:#f5f9fd;border-radius:14px;padding:10px 13px}.v25-board .v24-card{border-width:2px;box-shadow:0 2px 7px rgba(15,23,42,.04)}

/* Bring the established V7.3/V8.0 card views back to the foreground. */
.v10-customer-card,.v10-contract-card{border:2px solid #cbd5e1!important;box-shadow:0 4px 14px rgba(15,23,42,.055)!important}.v10-customer-card .v10-customer-metrics,.v10-contract-card .v10-contract-money,.v10-contract-card .v10-contract-dates{border-top:1px solid #d8e0e8;padding-top:10px}.v10-customer-card .row-actions,.v10-contract-card .row-actions{border-top:1px solid #e2e8f0;padding-top:10px;margin-top:10px}.v25-contract-card .v25-contract-person{font-size:1.08rem;font-weight:900;color:#173f68}.v25-contract-card .v10-contract-money>div:nth-child(1){background:#eef5fb;border:1px solid #bfd2e5}.v25-contract-card .v10-contract-money>div:nth-child(3){background:#fff8e8;border:1px solid #ead39d}.v25-contract-card .v10-contract-money>div:nth-child(4){background:#fff0f0;border:1px solid #e5baba}.v25-contract-card .v10-contract-dates>div{background:#f8fafc;border:1px solid #d8e0e8}.v25-contract-card .v10-contract-money>div,.v25-contract-card .v10-contract-dates>div{border-radius:12px;padding:8px 10px}

/* Workbench close icon must be a real, easy target even inside the older generated tab. */
#v24WB [data-wbx]{display:inline-grid!important;place-items:center;width:24px;height:24px;border-radius:8px;background:#fff0f0;color:#b42318;font-style:normal;font-weight:900;pointer-events:auto!important;margin-inline-start:6px}

/* Pending contract work visible inside customer file. */
.v25-pending-section{border:2px solid #d8c3ee!important;background:#fcf9ff!important}.v25-pending-inline{display:flex;gap:8px;flex-wrap:wrap}.v25-pending-chip{border:1px solid #cdb2e5;background:#fff;border-radius:12px;padding:9px 12px;text-align:right;display:grid;gap:2px}.v25-pending-chip:hover{border-color:#8d5db7}

/* Spreadsheet-like item editor. */
.v25-items-wrap{overflow:auto;border:1px solid #cbd5e1;border-radius:16px;background:#fff}.v25-items-grid{display:grid;grid-template-columns:58px minmax(220px,2.3fr) 92px 150px 145px 130px minmax(120px,1fr) 58px;min-width:1040px;align-items:stretch}.v25-items-grid:has(.item-paytype){grid-template-columns:58px minmax(220px,2.3fr) 92px 150px 145px 130px 120px minmax(120px,1fr) 58px;min-width:1160px}.v25-item-head{position:sticky;top:0;z-index:2;background:#eaf1f8;color:#173f68;font-weight:900;padding:9px 8px;border-bottom:1px solid #b9c8d8;border-left:1px solid #d8e0e8}.v25-row-no,.v25-grid-total,.v25-grid-cell,.v25-items-grid>.remove-item{border-bottom:1px solid #e2e8f0;border-left:1px solid #edf2f7;min-height:58px}.v25-row-no,.v25-grid-total{display:grid;place-items:center;padding:7px}.v25-grid-total{align-content:center}.v25-grid-cell{display:block;padding:5px;position:relative}.v25-grid-cell>span{display:none}.v25-grid-cell input,.v25-grid-cell select{height:46px;border-radius:8px;padding:8px}.v25-grid-cell:focus-within{background:#f3f8fc;box-shadow:inset 0 0 0 2px #4777a7}.v25-items-grid>.remove-item{width:auto;height:auto;border-radius:0;background:#fff5f5}.v25-add-row{padding:10px;border-top:0;background:#f8fafc;position:sticky;right:0}.v25-later-box{margin-top:14px;border:2px dashed #a889c1;background:#fbf8fd;border-radius:16px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:16px}.v25-later-box>div{display:grid}.v25-help-back{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:10px;border:1px solid #cbd5e1;border-radius:14px;background:#f8fafc}

/* Responsive is viewport-specific, not a single mobile/desktop split. */
@media (min-width:1920px){.page-host{max-width:1960px;padding-inline:34px}.cards-list,.v10-customer-list,.v10-contract-list{grid-template-columns:repeat(3,minmax(0,1fr))}.v25-board{grid-template-columns:repeat(8,minmax(145px,1fr))}.v24-cols{grid-template-columns:1.15fr .85fr}.v19-capacity-shell .v18-month-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.v25-items-grid{font-size:14px}}
@media (min-width:1440px) and (max-width:1919px){.page-host{max-width:1700px}.v25-board{grid-template-columns:repeat(4,minmax(150px,1fr))}.v19-capacity-shell .v18-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (min-width:1024px) and (max-width:1439px){.page-host{padding:18px}.sidebar{width:244px}.app-shell{grid-template-columns:244px 1fr}.main-area{grid-column:2}.cards-list,.v10-customer-list,.v10-contract-list{grid-template-columns:repeat(2,minmax(0,1fr))}.v25-board{grid-template-columns:repeat(4,minmax(130px,1fr))}.v10-customer-metrics,.v10-contract-money{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v19-capacity-shell .v18-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.topbar{padding-inline:16px}.clock{display:none}}
@media (min-width:700px) and (max-width:1023px){.cards-list,.v10-customer-list,.v10-contract-list{grid-template-columns:1fr}.v25-board{grid-template-columns:repeat(4,minmax(0,1fr))}.v24-cols{grid-template-columns:1fr}.v19-capacity-shell .v18-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.v25-items-wrap{margin-inline:-4px}.v25-task-list>article{grid-template-columns:1fr}.v25-task-list .row-actions{justify-content:flex-start}}
@media (max-width:699px){.v25-unfinished-label{display:none}.v25-unfinished-top{padding:8px}.v25-board{grid-template-columns:repeat(2,minmax(0,1fr))}.v24-cols{grid-template-columns:1fr}.v25-task-list>article,.v25-preview-list>article{grid-template-columns:1fr}.v25-task-list .row-actions{justify-content:flex-start}.v25-later-box{flex-direction:column;align-items:stretch}.v25-later-box .btn{width:100%}.v25-help-back{align-items:stretch;flex-direction:column}.v19-capacity-shell .v18-month-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v10-customer-card .row-actions,.v10-contract-card .row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.v10-customer-card .row-actions .btn,.v10-contract-card .row-actions .btn{width:100%}.v25-items-grid{min-width:980px}}
@media (max-width:390px){.v25-board{grid-template-columns:1fr 1fr}.v19-capacity-shell .v18-month-grid{grid-template-columns:1fr!important}.v10-customer-card .row-actions,.v10-contract-card .row-actions{grid-template-columns:1fr}}

.v25-finance-choice{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.v25-finance-choice .btn{min-height:74px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.v25-trash-doc{margin-top:9px;width:100%}.v25-task-list article>b{white-space:nowrap}.v10-customer-card,.v10-contract-card{background:#fff}.v10-customer-metrics>div{border:1px solid #d6dee8;border-radius:11px;padding:8px;background:#f8fafc}.v10-customer-metrics>div:nth-child(1){background:#eef6fd;border-color:#b7d2e8}.v10-customer-metrics>div:nth-child(2){background:#fff3f3;border-color:#e3bcbc}.v10-customer-metrics>div:nth-child(3){background:#fff9e9;border-color:#e2cf9a}
@media(max-width:699px){.v25-finance-choice{grid-template-columns:1fr}.v25-floating-tasks,.v25-work-list{width:96vw}.v25-items-wrap{border-radius:10px}}
