#executor-work-status{grid-column:1/-1;width:100%;min-width:0}
.object-status-discipline{width:100%;box-sizing:border-box;border:1px solid #b7d1e7;border-radius:9px;margin:14px 0;overflow:hidden;background:#fff}
.object-status-header{background:#d8e9f8;color:#123d66;display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 18px;cursor:pointer;font-weight:700;font-size:1.08rem}
.object-status-header strong{flex:1;min-width:160px}.object-status-header span{font-size:.9rem;font-weight:500}
.object-status-reset{margin-left:auto}
.object-status-table-wrap{width:100%;overflow-x:auto}.object-status-table{width:100%;border-collapse:collapse;table-layout:auto}
.object-status-table th,.object-status-table td{padding:12px 13px;text-align:left;vertical-align:middle;border-bottom:1px solid #cde2f4}
.object-status-table thead{background:#edf5fd}.object-status-table th{font-weight:700;color:#173d65}
.object-status-group th{background:#e5f1fc;color:#123d66;font-weight:700}
.object-status-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.object-status-chip{display:inline-flex;align-items:center;gap:5px;border-radius:7px;padding:5px 9px;white-space:nowrap;font-weight:600}
.object-status-blocked{background:#fbe5e7;color:#a62f3d}.object-status-ready{background:#edf0f4;color:#34465b}.object-status-active{background:#e4f1ff;color:#155da0}.object-status-done{background:#e1f4e9;color:#15754a}
@media(max-width:700px){.object-status-header{padding:12px}.object-status-table{min-width:720px}.object-status-table td,.object-status-table th{padding:10px}}
/* Object-scoped contacts: equal responsive tiles, no overlapping content. */
#object-contacts{grid-column:1/-1;min-width:0;overflow:hidden}
#object-contacts .object-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:14px;align-items:stretch}
#object-contacts .scope-contact-item{min-width:0;width:100%;max-width:100%;box-sizing:border-box;margin:0;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;overflow-wrap:anywhere}
#object-contacts .contact-business-details{min-width:0;flex:1;overflow-wrap:anywhere}
#object-contacts .contact-business-photo{flex:none}
/* The object work card is itself a grid item: span all 12 columns. */
#object-work{grid-column:1/-1!important;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#object-work #executor-work-status{width:100%;max-width:100%;min-width:0}
#object-work .object-status-discipline{width:100%}
/* Permanent discipline section with small inline action symbols. */
.object-status-header{cursor:default;background:#d8e9f8;border-bottom:1px solid #b7d1e7}
.object-status-buttons{display:flex;gap:5px;flex-wrap:nowrap}
.object-status-buttons .object-status-icon{min-width:31px;width:31px;height:31px;padding:0;display:inline-flex;justify-content:center;align-items:center;font-size:18px;border:1px solid #b7d1e7;border-radius:6px}
.object-status-table td{border-bottom:1px solid #cde2f4}
.object-status-table td:last-child{width:114px}
.object-status-reset{padding:5px 10px;min-width:32px}
/* Compact unified PMS row styling for object statuses. */
#object-work .object-status-discipline{border:1px solid #d5e1ea;border-radius:9px;box-shadow:0 1px 3px rgba(16,43,72,.04);margin:14px 0}
#object-work .object-status-header{padding:12px 16px;background:#e9f3fb;color:#153d62;border-bottom:1px solid #c5dbea}
#object-work .object-status-table{font-size:.9rem}
#object-work .object-status-table td,#object-work .object-status-table th{padding:9px 12px;border-bottom:1px solid #d4e8f7}
#object-work .object-status-table tr:last-child td{border-bottom:0}
.object-status-flow{display:inline-flex;gap:5px;margin-left:10px;vertical-align:middle;align-items:center}
.object-status-flow-dot{display:inline-flex;width:21px;height:21px;border-radius:50%;align-items:center;justify-content:center;font-size:12px;opacity:.35;background:#e6edf4;color:#385474}
.object-status-flow-blocked.is-current{opacity:1;background:#fbe3e6;color:#b52d42}.object-status-flow-ready.is-current{opacity:1;background:#dae4ee;color:#315277}.object-status-flow-active.is-current{opacity:1;background:#d9ebff;color:#0868b9}.object-status-flow-done.is-current{opacity:1;background:#d9f2e5;color:#16804d}
.object-attention-icon{display:inline-flex;justify-content:center;align-items:center;width:25px;height:25px;border:1px solid #e9d1a4;border-radius:6px;margin-right:5px;color:#aa6915;background:#fff5dd;font-weight:700;cursor:help}
.object-status-chip{padding:4px 7px;font-size:.85rem}
@media(max-width:800px){.object-status-flow{margin-left:5px}.object-status-flow-dot{width:18px;height:18px}}
/* Select status directly via the four status symbols (administrator only). */
.object-status-flow-action{cursor:pointer;border:1px solid transparent;padding:0;font:inherit;transition:transform .12s ease,opacity .12s ease}
.object-status-flow-action:hover,.object-status-flow-action:focus-visible{opacity:1;transform:scale(1.14);outline:2px solid #247db6;outline-offset:2px}
.object-status-flow-action.is-current{border-color:currentColor;box-shadow:0 0 0 1px currentColor}
.object-status-flow-action:disabled{cursor:wait;opacity:.5}
/* Unified 1.6px outlined work-status symbols, aligned to the PMS 24px icon grid. */
.object-status-flow-dot{width:28px;height:28px;border-radius:7px;font-size:0}
.object-status-flow-dot svg,.object-status-icon svg,.object-attention-icon svg{width:22px;height:22px;display:block;stroke-width:1.6px}
.object-status-flow-dot.is-current{opacity:1}
.object-status-flow-ready.is-current{background:#e0f6e9;color:#1b914a}
.object-status-flow-ready.is-current .status-green-light{fill:#22af59;stroke:#118341}
.object-status-flow-active.is-current{background:#dfefff;color:#1479bc}
.object-status-flow-active.is-current .status-sand{fill:currentColor;animation:pmsSandFall 1.8s ease-in-out infinite;transform-origin:12px 12px}
.object-status-flow-done.is-current{background:#e1f5e9;color:#18834b;animation:pmsCompleteGlow 3s ease-in-out infinite}
.object-attention-active,.object-status-icon:has(svg){color:#dd8a1f}
.object-attention-active{animation:pmsBeaconGlow 2s linear infinite}
.object-attention-active .status-rays{transform-origin:12px 8px;animation:pmsBeaconRotate 2s linear infinite}
@keyframes pmsSandFall{0%,100%{opacity:.25;transform:scaleY(.7)}50%{opacity:1;transform:scaleY(1)}}
@keyframes pmsCompleteGlow{0%,100%{box-shadow:0 0 0 0 rgba(44,184,95,0)}50%{box-shadow:0 0 9px 2px rgba(44,184,95,.25)}}
@keyframes pmsBeaconGlow{0%,100%{opacity:.65}50%{opacity:1;box-shadow:0 0 8px rgba(255,160,35,.5)}}
@keyframes pmsBeaconRotate{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.object-status-flow-active.is-current .status-sand,.object-status-flow-done.is-current,.object-attention-active,.object-attention-active .status-rays{animation:none}}
.object-status-header .object-discipline-progress{height:11px;min-width:120px;max-width:260px;flex:1;overflow:hidden;background:#d5e4ec;border-radius:999px;border:1px solid #bed4e3}
.object-discipline-progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#b8e2a8 0%,#55bd68 55%,#169849 100%);transition:width .25s ease}
.object-discipline-progress-label{font-size:.85rem;font-weight:700;color:#158449}
.object-activity-click-row{cursor:pointer}.object-activity-click-row:hover td{background:#f1f8fe}.object-activity-open{font-weight:600;color:#163d60}
.object-activity-open:focus-visible{outline:2px solid #1684cf;outline-offset:3px}
.object-activity-overlay{position:fixed;inset:0;z-index:99999;background:rgba(16,38,60,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.object-activity-dialog{background:#fff;border-radius:12px;width:min(720px,100%);max-height:88vh;overflow:auto;padding:22px;box-shadow:0 12px 40px rgba(0,0,0,.22)}
.object-activity-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d4e8f7;padding-bottom:10px}
.object-activity-dialog-head h2{margin:0;font-size:1.25rem;color:#173d65}
.object-activity-issues{background:#fff0d7;padding:10px;border-radius:8px;color:#9b5d08}
.object-activity-message{border-bottom:1px solid #d4e8f7;padding:12px 0}.object-activity-message p{white-space:pre-wrap;margin:5px 0}
.object-activity-form{display:grid;gap:10px;margin-top:12px}.object-activity-form textarea,.object-activity-form select{width:100%;box-sizing:border-box}
/* Two-column, phone-first work overview; state shown by a restrained row tint. */
#object-work .object-status-table{width:100%;min-width:0;table-layout:fixed}
#object-work .object-status-table th:first-child,#object-work .object-status-table td:first-child{width:60%;overflow-wrap:anywhere}
#object-work .object-status-table th:last-child,#object-work .object-status-table td:last-child{width:40%;min-width:0}
#object-work .object-status-table td:last-child{width:40%}
#object-work .object-status-table .object-row-blocked{background:#fff7f7}
#object-work .object-status-table .object-row-ready{background:#f0fbf4}
#object-work .object-status-table .object-row-active{background:#f0f7ff}
#object-work .object-status-table .object-row-done{background:#f1fcf4}
#object-work .object-status-table .object-row-unassigned{background:#fafcfe}
#object-work .object-status-table .object-row-attention{box-shadow:inset 3px 0 #eba53d}
#object-work .object-status-table .object-activity-click-row:hover td{background:rgba(205,232,249,.28)}
#object-work .object-status-flow{margin:0;gap:5px;display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap}
.object-row-alert{display:inline-flex;align-items:center;justify-content:center;color:#c8811b;width:26px;height:28px;flex:none}
.object-row-alert svg{width:22px;height:22px;stroke-width:1.6}
@media(max-width:700px){
 #object-work{padding:10px;min-width:0}
 #object-work .object-status-discipline{max-width:100%;min-width:0}
 #object-work .object-status-table-wrap{overflow-x:visible;min-width:0}
 #object-work .object-status-table{min-width:0!important;width:100%;table-layout:fixed;font-size:12px}
 #object-work .object-status-table th,#object-work .object-status-table td{padding:8px 5px}
 #object-work .object-status-table th:first-child,#object-work .object-status-table td:first-child{width:48%}
 #object-work .object-status-table th:last-child,#object-work .object-status-table td:last-child{width:52%}
 #object-work .object-status-flow{gap:2px}
 #object-work .object-status-flow-dot{width:23px;height:28px;flex:0 1 23px;min-width:0}
 #object-work .object-status-flow-dot svg{width:19px;height:19px}
 #object-work .object-row-alert{width:20px;height:26px}
 #object-work .object-row-alert svg{width:17px;height:17px}
 #object-work .object-status-header{gap:7px;padding:10px}
 #object-work .object-status-header strong{min-width:0;flex:1 1 100%}
 #object-work .object-status-header .object-discipline-progress{min-width:70px;flex:1}
}
/* Always show the attention beacon; subdued until switched on. */
#object-work .object-row-alert{background:transparent;border:1px solid transparent;padding:0;border-radius:6px;opacity:.32;color:#788a9b;cursor:default}
#object-work button.object-row-alert{cursor:pointer}
#object-work button.object-row-alert:hover,#object-work button.object-row-alert:focus-visible{opacity:1;outline:2px solid #e6a044;outline-offset:2px}
#object-work .object-row-alert.object-attention-active{opacity:1;color:#e28a15;background:#fff2d8;border-color:#e9c78c}
/* Responsive object status grid: preserve all five icons and ellipsize activity text. */
#object-work,#object-work .object-status-discipline,#object-work .object-status-table-wrap{min-width:0;max-width:100%;box-sizing:border-box}
#object-work .object-status-table{width:100%;min-width:0!important;table-layout:fixed}
#object-work .object-status-table th:first-child,#object-work .object-status-table td:first-child{width:auto;min-width:0}
#object-work .object-status-table th:last-child,#object-work .object-status-table td:last-child{width:170px;min-width:170px;max-width:170px}
#object-work .object-status-table td.object-activity-open{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:0}
#object-work .object-status-flow{gap:3px;flex-wrap:nowrap;justify-content:flex-end;min-width:0}
#object-work .object-status-flow-dot{width:28px;min-width:28px;flex:0 0 28px}
#object-work .object-row-alert{width:28px;min-width:28px;flex:0 0 28px}
@media(max-width:600px){
 #object-work{padding:8px!important}
 #object-work .object-status-table th,#object-work .object-status-table td{padding:8px 4px!important}
 #object-work .object-status-table th:last-child,#object-work .object-status-table td:last-child{width:134px!important;min-width:134px!important;max-width:134px!important}
 #object-work .object-status-flow{gap:1px}
 #object-work .object-status-flow-dot{width:25px;min-width:25px;flex-basis:25px;height:28px}
 #object-work .object-row-alert{width:25px;min-width:25px;flex-basis:25px}
 #object-work .object-status-flow-dot svg,#object-work .object-row-alert svg{width:19px;height:19px}
 #object-work .object-status-header span{font-size:.78rem}
}
/* Mobile fix: table must occupy entire card, not its minimum content width. */
#object-work .object-status-table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
#object-work table.object-status-table{display:table!important;width:100%!important;max-width:100%!important;min-width:100%!important;table-layout:fixed!important;margin:0!important}
#object-work .object-status-table thead{display:table-header-group!important}
#object-work .object-status-table tbody{display:table-row-group!important}
#object-work .object-status-table tr{display:table-row!important;width:100%!important}
#object-work .object-status-table th,#object-work .object-status-table td{display:table-cell!important;box-sizing:border-box!important}
#object-work .object-status-table tr>:first-child{width:calc(100% - 170px)!important;max-width:calc(100% - 170px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#object-work .object-status-table tr>:last-child{width:170px!important;min-width:170px!important;max-width:170px!important}
@media(max-width:600px){
 #object-work .object-status-table tr>:first-child{width:calc(100% - 134px)!important;max-width:calc(100% - 134px)!important}
 #object-work .object-status-table tr>:last-child{width:134px!important;min-width:134px!important;max-width:134px!important}
}
/* Fix vanished titles: old max-width:0 collapsed the first table column. */
#object-work .object-status-table td.object-activity-open{max-width:none!important;width:auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#object-work .object-status-table tr>:first-child{max-width:none!important;width:auto!important;min-width:0!important}
#object-work .object-status-table{table-layout:fixed!important;width:100%!important}
#object-work .object-status-table tr>:last-child{width:170px!important}
@media(max-width:600px){#object-work .object-status-table tr>:last-child{width:134px!important}}
/* Central object progress: compact responsive discipline cards, based on available content width. */
#object-work{container-type:inline-size;container-name:object-progress}
#object-work #executor-work-status{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
#object-work #executor-work-status>h2,#object-work #executor-work-status>p{grid-column:1/-1;margin-bottom:0}
#object-work #executor-work-status>.object-status-discipline{width:100%;min-width:0;max-width:100%;margin:0;align-self:start}
#object-work .object-status-header{align-items:center;gap:8px;padding:12px}
#object-work .object-status-header strong{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}
#object-work .object-status-header .object-discipline-progress{max-width:none;min-width:55px}
#object-work .object-status-table tr>:last-child{width:140px!important;min-width:140px!important;max-width:140px!important}
#object-work .object-status-flow{gap:1px}
#object-work .object-status-flow-dot,#object-work .object-row-alert{width:26px;min-width:26px;flex:0 0 26px}
#object-work .object-status-table td.object-activity-open{max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container object-progress (min-width:680px){#executor-work-status{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container object-progress (min-width:1050px){#executor-work-status{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@container object-progress (max-width:420px){
 #executor-work-status{grid-template-columns:minmax(0,1fr)!important}
 .object-status-table tr>:last-child{width:134px!important;min-width:134px!important;max-width:134px!important}
 .object-status-flow-dot,.object-row-alert{width:25px!important;min-width:25px!important;flex-basis:25px!important}
}
/* Equal-height cards per responsive grid row, without fixed heights. */
#object-work #executor-work-status{align-items:stretch!important;grid-auto-rows:auto}
#object-work #executor-work-status>.object-status-discipline{align-self:stretch!important;height:100%;display:flex;flex-direction:column;box-sizing:border-box}
#object-work #executor-work-status>.object-status-discipline>.object-status-table-wrap{flex:1 1 auto;min-height:0}
/* Object discipline dark navy title bar with top-right reset. */
#object-work .object-status-header{position:relative;background:#153b60!important;color:#fff!important;border-bottom:1px solid #102c47;min-height:55px;padding:12px 52px 12px 14px!important;box-sizing:border-box}
#object-work .object-status-header strong,#object-work .object-status-header span{color:#fff!important}
#object-work .object-status-header .object-discipline-progress-label{color:#e3f7eb!important}
#object-work .object-status-header .object-status-reset{position:absolute;right:10px;top:10px;margin:0!important;width:30px;min-width:30px;height:30px;padding:0!important;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.48)!important;color:#fff!important;border-radius:6px}
#object-work .object-status-header .object-status-reset:hover{background:rgba(255,255,255,.28)!important}
#object-work .object-status-header .object-discipline-progress{background:rgba(255,255,255,.23);border-color:rgba(255,255,255,.25)}

/* Object discipline headers: responsive full-width progress under title, shared externally. */
.object-status-header.object-status-collapsible{cursor:pointer;position:relative;padding-right:42px!important}
.object-status-header.object-status-collapsible:after{content:'⌄';position:absolute;right:15px;top:12px;font-size:21px}
.object-status-collapsed>.object-status-header:after{transform:rotate(-90deg)}
.object-status-collapsed>.object-status-table-wrap{display:none}
.object-status-header .object-header-progress-line{display:flex;align-items:center;gap:10px;flex:1 0 100%;width:100%;min-width:0}
.object-status-header .object-header-progress-line .object-discipline-progress{flex:1;max-width:none;min-width:0;height:12px}
.object-status-header .object-header-progress-line .object-discipline-progress-label{flex:none;min-width:36px;text-align:right}
.external-supervisor-work{min-width:0}
.external-supervisor-work .object-status-discipline{width:100%;min-width:0}
.external-supervisor-work .object-status-header{background:#153c60;color:#fff;display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px}
.external-supervisor-work .object-status-header strong{flex:1 1 100%;min-width:0}
.external-supervisor-work .object-status-header .object-discipline-progress-label{color:#fff}
.external-supervisor-work .object-status-table{width:100%;min-width:0;table-layout:fixed}
.external-supervisor-work .object-status-table th:first-child,.external-supervisor-work .object-status-table td:first-child{width:60%;overflow-wrap:anywhere}
.external-supervisor-work .object-status-table th:last-child,.external-supervisor-work .object-status-table td:last-child{width:40%}
.external-supervisor-work .object-row-blocked{background:#fff7f7}
.external-supervisor-work .object-row-ready{background:#f0fbf4}
.external-supervisor-work .object-row-active{background:#f0f7ff}
.external-supervisor-work .object-row-done{background:#f1fcf4}
.external-supervisor-work .object-row-unassigned{background:#fafcfe}
.external-supervisor-work .object-row-attention{box-shadow:inset 3px 0 #eba53d}
.external-supervisor-work .object-status-flow{display:flex;justify-content:flex-end;gap:4px;margin:0}
.external-supervisor-work .object-row-alert.object-attention-active{opacity:1;color:#e28a15;background:#fff2d8}
@media(max-width:700px){.external-supervisor-work .object-status-table{min-width:0!important;font-size:12px}.external-supervisor-work .object-status-table td,.external-supervisor-work .object-status-table th{padding:8px 5px}.external-supervisor-work .object-status-table th:first-child,.external-supervisor-work .object-status-table td:first-child{width:47%}.external-supervisor-work .object-status-table th:last-child,.external-supervisor-work .object-status-table td:last-child{width:53%}.external-supervisor-work .object-status-flow-dot{width:23px;height:28px}.external-supervisor-work .object-status-flow-dot svg{width:19px;height:19px}.external-supervisor-work .object-row-alert{width:19px}.object-status-header .object-header-progress-line{gap:6px}}
/* Shared, responsive, dense compact tiles; short tiles stack beside taller tiles. */
#object-work #executor-work-status.pms-object-masonry,
.external-supervisor-work.pms-object-masonry{display:grid!important;grid-template-columns:minmax(0,1fr);grid-auto-flow:row dense;grid-auto-rows:8px;column-gap:14px;row-gap:12px;align-items:start!important;min-width:0}
#object-work #executor-work-status.pms-object-masonry>.object-status-discipline,
.external-supervisor-work.pms-object-masonry>.object-status-discipline{height:auto!important;align-self:start!important;margin:0!important;min-width:0;max-width:100%;width:100%;box-sizing:border-box;overflow:hidden}
#object-work #executor-work-status.pms-object-masonry>h2,
.external-supervisor-work.pms-object-masonry>h2,
#object-work #executor-work-status.pms-object-masonry>p,
.external-supervisor-work.pms-object-masonry>p{grid-column:1/-1;grid-row:auto;margin:0}
@container object-progress (min-width:680px){#object-work #executor-work-status.pms-object-masonry{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container object-progress (min-width:1050px){#object-work #executor-work-status.pms-object-masonry{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
.external-supervisor-work{container-type:inline-size;container-name:external-obj-progress}
@container external-obj-progress (min-width:680px){.external-supervisor-work.pms-object-masonry{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@container external-obj-progress (min-width:1050px){.external-supervisor-work.pms-object-masonry{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* External container width query uses its surrounding page, not the tile itself. */
@media(min-width:760px){.external-supervisor-work.pms-object-masonry{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1200px){.external-supervisor-work.pms-object-masonry{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Shared location cards: one responsive row per discipline and fixed progress-track width. */
.location-work-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px;align-items:start}
.location-work-status-card{margin:0!important;min-width:0;cursor:pointer}
.location-work-status-card:focus-visible{outline:2px solid #278ad0;outline-offset:2px}
.location-work-status-card .object-status-header{background:#153c60;color:#fff;padding:12px 14px}
.location-work-status-card .object-status-header strong{min-width:0}
.location-work-status-body{padding:12px 14px}
.location-work-status-line{display:flex;align-items:center;gap:10px;min-width:0}
.location-work-status-line .object-discipline-progress{flex:1;min-width:0;max-width:none;height:12px}
.location-work-status-line .object-discipline-progress-label{min-width:38px;text-align:right}
.location-work-status-dialog .object-status-table{width:100%}
.location-work-status-dialog .object-row-blocked{background:#fff7f7}
.location-work-status-dialog .object-row-ready{background:#f0fbf4}
.location-work-status-dialog .object-row-active{background:#f0f7ff}
.location-work-status-dialog .object-row-done{background:#f1fcf4}
.location-work-status-dialog .object-row-attention{box-shadow:inset 3px 0 #eba53d}
#object-work .object-status-table-wrap{max-height:calc(5 * 52px + 42px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:700px){#object-work .object-status-table-wrap{max-height:calc(5 * 46px + 38px)}.location-work-status-grid{grid-template-columns:1fr}}

/* Location overview: one card, category names and uniform bar width per row. */
.location-work-status-grid{display:block;min-width:0}
.location-overview-card{width:100%;margin:0;min-width:0}
.location-overview-card>.object-status-header{background:#153c60;color:white}
.location-category-rows{min-width:0}
.location-category-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,32%);align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #d4e8f7;cursor:pointer;min-width:0}
.location-category-row:nth-child(even){background:#f4f9fd}
.location-category-row:hover,.location-category-row:focus-visible{background:#e8f4fd;outline-offset:-2px}
.location-category-row:last-child{border-bottom:0}
.location-category-title{min-width:0;color:#173d65;overflow-wrap:anywhere}
.location-category-row .location-work-status-body{padding:0;min-width:0;width:100%}
.location-category-row .location-work-status-line{width:100%;min-width:0}
.location-category-row .object-discipline-progress{width:100%;min-width:0;max-width:none}
.location-category-row .object-discipline-progress-label{flex:0 0 38px}
@media(max-width:580px){.location-category-row{grid-template-columns:minmax(0,1fr) minmax(100px,45%);gap:6px;padding:9px}.location-category-row .object-discipline-progress-label{flex-basis:31px;font-size:11px}}
/* Five activities as a minimum body height, expanding naturally above five. */
#object-work .object-status-table-wrap,.external-supervisor-work .object-status-table-wrap{max-height:none!important;overflow-y:visible!important;min-height:260px}
#object-work .object-status-collapsed>.object-status-table-wrap,.external-supervisor-work .object-status-collapsed>.object-status-table-wrap{display:none!important}
@media(max-width:700px){#object-work .object-status-table-wrap,.external-supervisor-work .object-status-table-wrap{min-height:230px}}

/* Location discipline tiles follow object-card visual design, each bar covers all category tasks on this location. */
.location-work-status-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))!important;gap:14px;align-items:stretch;min-width:0}
.location-work-status-grid>.location-work-status-card{margin:0!important;min-width:0;display:flex;flex-direction:column;cursor:pointer}
.location-work-status-grid>.location-work-status-card>.object-status-header{background:#153c60;color:#fff;display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:13px 15px}
.location-work-status-grid>.location-work-status-card>.object-status-header strong{min-width:0;width:100%;font-weight:700}
.location-work-status-grid .object-header-progress-line{width:100%;display:flex;gap:9px;align-items:center;min-width:0}
.location-work-status-grid .object-header-progress-line .object-discipline-progress{flex:1 1 auto;max-width:none;min-width:0}
.location-work-status-grid .object-header-progress-line .object-discipline-progress-label{color:white;min-width:38px;text-align:right}
.location-work-status-grid .location-work-status-body{padding:12px 15px;flex:1}
.location-work-status-grid>.location-work-status-card:hover{border-color:#3797cb;box-shadow:0 0 0 2px #d9edfa}
@media(max-width:680px){.location-work-status-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Shared location -> object/woning discipline table. */
.location-object-categories{width:100%;min-width:0;margin-top:10px;border-top:1px solid #d4e8f7}
.location-object-category-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;padding:8px 5px;border-bottom:1px solid #d4e8f7;cursor:pointer;font-size:12px}
.location-object-category-row>span:first-child{min-width:0;overflow-wrap:anywhere;font-weight:600;color:#153d62}
.location-object-category-row.object-row-blocked{background:#fff7f7}.location-object-category-row.object-row-ready{background:#f0fbf4}.location-object-category-row.object-row-active{background:#f0f7ff}.location-object-category-row.object-row-done{background:#f1fcf4}.location-object-category-row.object-row-attention{box-shadow:inset 3px 0 #eba53d;background:#fff3df}
.location-object-category-row:hover,.location-object-category-row:focus-visible{outline:2px solid #80b6d7;outline-offset:-2px}
.location-object-category-icons{display:flex;align-items:center;gap:4px}
.location-object-category-row .object-status-flow{gap:2px;margin:0;display:flex}
.location-object-category-row .object-status-flow-dot{width:23px;height:25px;flex:none}
.location-object-category-row .object-status-flow-dot svg{width:18px;height:18px}
.location-object-category-row .object-row-alert{width:20px;height:24px;opacity:.35}
.location-object-category-row .object-row-alert.object-attention-active{opacity:1}
.location-object-dialog-row{padding:9px;border-bottom:1px solid #d4e8f7}
@media(max-width:450px){.location-object-category-row{grid-template-columns:minmax(0,1fr) auto;font-size:11px;padding:7px 2px}.location-object-category-row .object-status-flow-dot{width:20px}.location-object-category-row .object-status-flow-dot svg{width:16px;height:16px}}

/* Location object cards: reserve full card width for category rows, never collapse text into vertical letters. */
#location-objects .object-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));align-items:stretch}
#location-objects .object-card[data-location-status-object]{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;gap:10px}
#location-objects .object-card[data-location-status-object]>.location-object-categories{flex:0 0 auto;width:100%;min-width:0;margin-top:0}
#location-objects .location-object-category-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(128px,auto);min-width:0;gap:10px}
#location-objects .location-object-category-row>span:first-child{overflow-wrap:normal;word-break:normal;hyphens:auto;min-width:0}
#location-objects .location-object-category-icons{justify-content:flex-end;min-width:0}
@media(max-width:520px){
 #location-objects .object-card-grid{grid-template-columns:minmax(0,1fr)}
 #location-objects .location-object-category-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}
}

/* Single shared status header for internal and supervisor location object cards. */
#location-objects .object-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.external-detail-object-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.location-object-work-card{position:relative;min-width:0;display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden}
.location-object-work-card .location-object-work-header{background:#153c60;color:white;padding:12px 13px;width:100%;box-sizing:border-box;min-width:0;flex:none}
.location-object-work-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.location-object-work-title{font-size:14px;font-weight:750;color:#fff;min-width:0;overflow-wrap:break-word}
.location-object-work-indicator{flex:none;border-radius:999px;border:1px solid #7791a8;background:#284964;color:#dbe8f3;padding:4px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.location-object-work-indicator.is-active{background:#17834a;border-color:#2ac46c;color:white}
.location-object-work-progress{width:100%;min-width:0;display:flex;align-items:center;gap:9px;margin-top:10px}
.location-object-work-progress .object-discipline-progress{min-width:0;flex:1;max-width:none;height:11px;background:#d7e5f0}
.location-object-work-progress>span{color:white;font-weight:700;font-size:12px;min-width:35px;text-align:right}
.location-object-work-card>.location-object-work-old-heading{padding:10px 12px 0!important;width:100%;box-sizing:border-box;min-width:0}
.location-object-work-card>.location-object-work-old-heading h3,.location-object-work-card>.location-object-work-old-heading .external-two-line-title,.location-object-work-card>.location-object-work-old-heading .badge{display:none!important}
.location-object-work-card>.location-object-categories{padding:0 10px 9px;box-sizing:border-box;width:100%}
.location-object-work-card>.object-arrow{align-self:flex-end;margin-right:12px}
@media(max-width:1100px){#location-objects .object-card-grid,.external-detail-object-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){#location-objects .object-card-grid,.external-detail-object-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Category row directly beneath object header, no spare legacy object label or arrow. */
#location-objects .location-object-work-card>.location-object-work-old-heading{display:none!important}
#location-objects .location-object-work-card>.object-arrow{display:none!important}
#location-objects .location-object-work-card>.location-object-categories,
.external-detail-object-grid .location-object-work-card>.location-object-categories{margin-top:0!important;padding-top:0!important;border-top:0}
.external-detail-object-grid .location-object-work-card>.location-object-work-old-heading{display:none!important}
.location-object-work-card .location-object-category-row:first-child{border-top:0}

.location-category-status-action{border:1px solid transparent;padding:0;cursor:pointer;font:inherit}
.location-category-status-action:hover,.location-category-status-action:focus-visible{opacity:1;outline:2px solid #278ad0;outline-offset:1px}
.location-category-status-action:disabled{opacity:.35;cursor:wait}

.location-object-category-row.has-admin-override{box-shadow:inset 3px 0 #2674ad}
.location-object-category-row.has-admin-override .object-status-flow-dot.is-current{outline:1px solid #2674ad;outline-offset:1px}

/* Supervisor object header QR and object chat. */
body.pms-external-preview .external-object-header-qr{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;background:#245a7c;border:1px solid #a8c7de;border-radius:5px;color:white;cursor:pointer}
body.pms-external-preview .external-object-header-qr svg{display:block;width:21px;height:21px;fill:currentColor}
.supervisor-chat-history{display:grid;gap:9px;max-height:440px;overflow:auto}
.supervisor-chat-item{padding:10px 13px;background:#f2f7fb;border-radius:8px;border:1px solid #dce8f1}
.supervisor-chat-item small{display:block;color:#6d7986;margin-top:3px}.supervisor-chat-item p{white-space:pre-wrap;margin:7px 0 0}
.supervisor-chat-form{display:grid;gap:10px;margin-top:14px}.supervisor-chat-form textarea,.supervisor-chat-form select{width:100%;box-sizing:border-box}

.supervisor-chat-files{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.supervisor-chat-files h3{width:100%;margin:0}.supervisor-chat-file{padding:7px 10px;border:1px solid #b6d0e1;border-radius:5px}
/* Supervisor-only compact object-level aggregate, aligned category status rows. */
.supervisor-group-summary-rows{display:grid;gap:0}
.supervisor-group-summary-row{display:grid;grid-template-columns:minmax(120px,1.2fr) minmax(70px,1fr) 42px auto;gap:10px;align-items:center;padding:11px 5px;border-bottom:1px solid #dce8f1;min-width:0}
.supervisor-group-summary-row:last-child{border-bottom:0}
.supervisor-group-summary-row strong{overflow-wrap:break-word;color:#153c60}
.supervisor-group-summary-row .object-discipline-progress{width:100%;min-width:0;max-width:none}
.supervisor-group-summary-percent{font-weight:700;text-align:right;font-size:12px}
.supervisor-group-summary-icons{display:flex;gap:3px;align-items:center}
.supervisor-group-summary-icons .object-status-flow-dot{width:23px;height:25px}
.supervisor-group-summary-icons svg{width:19px;height:19px}
@media(max-width:690px){.supervisor-group-summary-row{grid-template-columns:minmax(0,1fr) minmax(75px,1fr) 35px;gap:6px}.supervisor-group-summary-icons{grid-column:1/-1;justify-content:flex-end}}

/* Object: compact samenvattende discipline-flow in de ingeklapte titelbalk. */
#object-work .object-discipline-flow-summary{display:inline-flex;align-items:center;gap:4px;flex:none;margin-left:auto;color:#fff}
#object-work .object-discipline-flow-summary svg{width:21px;height:21px}
#object-work .object-status-header.object-status-collapsible{padding-right:52px!important}
.object-progress-subgroup{margin:8px 0;border:1px solid #d5e1eb;border-radius:7px;overflow:hidden}
.object-progress-subgroup-title{width:100%;display:flex;align-items:center;text-align:left;gap:12px;border:0;background:#e6f1fb;color:#173d62;padding:10px 12px;font-weight:700;cursor:pointer}
.object-progress-subgroup-title:before{content:'▾'}
.object-progress-subgroup-closed .object-progress-subgroup-title:before{content:'▸'}
.object-progress-subgroup-closed .object-status-table{display:none}
.object-progress-subgroup-score{margin-left:auto;font-weight:600}
.pms-four-status{display:inline-flex;gap:5px;white-space:nowrap}
.pms-four-stage{border:1px solid #c8d1d8;background:#e5e9ed;color:#65727f;min-width:33px;height:32px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer}
.pms-four-stage.is-on{background:#dcf5e5;border-color:#64b988;color:#158047}
.pms-four-stage.is-rejected{background:#fae4e4;border-color:#e08080;color:#c22}
.pms-four-stage.is-working{animation:pms-status-pulse 2.4s ease-in-out infinite}
@keyframes pms-status-pulse{50%{background:#a6e9c3}}
#location-progress-groups{margin:12px 0}
.pms-location-progress-group{border:1px solid #cbddec;border-radius:7px;margin:7px 0;overflow:hidden}
.pms-location-progress-group>summary{padding:10px 13px;background:#e5f0fa;color:#183e60;font-weight:700;cursor:pointer}

/* Full-width progress hierarchy, without masonry columns; hard collapse wins over old table CSS. */
#object-work #executor-work-status.pms-object-masonry{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;display:grid!important}
#object-work #executor-work-status.pms-object-masonry>.object-status-discipline{grid-column:1/-1;grid-row:auto!important;height:auto!important;width:100%!important}
#object-work .object-status-table-wrap{max-height:none!important;overflow:visible!important}
#object-work .object-progress-subgroup .object-status-table[hidden]{display:none!important}
#object-work .object-status-table{min-width:0!important;width:100%;table-layout:auto}
#object-work .object-status-table td:first-child{width:auto;overflow-wrap:anywhere}
#object-work .object-progress-status-cell{width:175px!important;min-width:175px;white-space:nowrap}
#object-work .pms-four-stage{cursor:default}
#object-work button.pms-four-stage{cursor:pointer}

/* Two cards across when there is sufficient room; one on narrow screens. */
#object-work #executor-work-status.pms-object-masonry{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:14px!important}
#object-work #executor-work-status.pms-object-masonry>.object-status-discipline{grid-column:auto!important;grid-row:auto!important;min-width:0!important}
@media(max-width:1020px){#object-work #executor-work-status.pms-object-masonry{grid-template-columns:minmax(0,1fr)!important}}
#object-work .object-progress-direct{margin:0;border:0;border-radius:0;overflow:visible}
#object-work .object-progress-status-cell{width:158px!important;min-width:158px!important;padding:6px!important}
#object-work .pms-four-status{display:flex;gap:3px;justify-content:flex-end;width:100%}
#object-work .pms-four-stage{box-sizing:border-box;min-width:0;width:35px;height:31px;flex:0 0 35px;padding:0;font-size:17px}
#object-work .object-status-table{table-layout:fixed!important}
#object-work .object-status-table td:first-child{width:auto;overflow-wrap:anywhere;font-size:13px}
#object-work .object-status-table td:last-child{width:158px!important}

/* Discipline header: light blue with live rollup indicator. */
#object-work .object-status-discipline>.object-status-header{background:#dcecf9!important;color:#163f64!important;border-bottom-color:#b6d2e7!important;padding-right:95px!important}
#object-work .object-status-discipline>.object-status-header strong,#object-work .object-status-discipline>.object-status-header .object-progress-summary{color:#163f64!important}
#object-work .object-status-header .object-progress-badge{position:absolute;right:43px;top:10px;display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;box-sizing:border-box;border-radius:6px;border:1px solid #aec4d4;background:#ecf0f4;color:#667783!important;font-size:21px;font-weight:800}
#object-work .object-status-header .object-progress-badge.is-ready{background:#e6f6ea;color:#13834a!important;border-color:#74b995}
#object-work .object-status-header .object-progress-badge.is-running{background:#d5f6e4;color:#08763a!important;border-color:#59b77e;animation:pms-status-pulse 2.4s ease-in-out infinite}
#object-work .object-status-header .object-progress-badge.is-done{background:#a8e8c0;color:#086538!important;border-color:#4fa76e}
#object-work .object-status-header .object-progress-badge.is-rejected{background:#fce0e0;color:#bc1825!important;border-color:#db7178}

/* Compact responsive header: title, gradient progress, status all 34px high. */
#object-work .object-status-discipline>.object-status-header{display:grid!important;grid-template-columns:minmax(105px,auto) minmax(95px,1fr) 34px;align-items:center!important;column-gap:9px!important;row-gap:0!important;padding:6px 30px 6px 10px!important;min-height:46px!important;box-sizing:border-box}
#object-work .object-status-discipline>.object-status-header strong{min-width:0!important;flex:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:34px;display:flex;align-items:center;font-size:15px}
#object-work .object-status-header .object-progress-bar{position:relative;box-sizing:border-box;height:34px;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#e8e5df;border:1px solid #c3d1d9;isolation:isolate}
#object-work .object-progress-bar-fill{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#efac47 0%,#f4ca63 30%,#9dca77 70%,#36aa70 100%);transition:width .3s ease;z-index:-1}
#object-work .object-status-header .object-progress-summary{position:relative;display:block;flex:none!important;text-align:center;color:#153b60!important;font-size:12px!important;font-weight:750!important;white-space:nowrap;padding:0 4px;min-width:0!important}
#object-work .object-status-header .object-progress-badge{position:static!important;width:34px!important;height:34px!important;min-width:34px;grid-column:3;grid-row:1;margin:0!important}
#object-work .object-status-header.object-status-collapsible:after{right:9px!important;top:50%!important;transform:translateY(-50%);font-size:17px!important}
#object-work .object-status-collapsed>.object-status-header:after{transform:translateY(-50%) rotate(-90deg)!important}
@media(max-width:540px){#object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(76px,auto) minmax(78px,1fr) 30px;gap:5px!important;padding-left:7px!important;padding-right:23px!important}#object-work .object-status-discipline>.object-status-header strong{font-size:12px}#object-work .object-status-header .object-progress-summary{font-size:10px!important}#object-work .object-status-header .object-progress-badge{width:30px!important;height:34px!important;min-width:30px}}

/* Uniform fixed-width status bars against the status tile; white background with green ticks. */
#object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(0,1fr) minmax(0,180px) 34px!important;column-gap:4px!important}
#object-work .object-status-header .object-progress-bar{width:100%!important;max-width:180px!important;justify-self:end!important;margin-right:0!important;background:#fff!important;isolation:auto!important;border-color:#b9d2df!important}
#object-work .object-progress-bar-fill{position:absolute!important;inset:3px!important;width:auto!important;height:auto!important;background:none!important;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;z-index:0!important}
#object-work .object-progress-tick{display:block;height:100%;border-radius:2px;background:linear-gradient(90deg,#20985c var(--tick-fill),#f0f4f4 var(--tick-fill))}
#object-work .object-status-header .object-progress-summary{z-index:1!important;background:rgba(255,255,255,.83);border-radius:3px;line-height:20px;padding:0 5px!important}
@media(max-width:540px){#object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(0,1fr) minmax(0,140px) 30px!important;column-gap:3px!important}#object-work .object-progress-bar-fill{gap:1px!important}}

/* Fraction outside the bar; percent centered directly on unobstructed green segments. */
#object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(0,1fr) auto minmax(0,180px) 34px!important;column-gap:4px!important}
#object-work .object-status-header .object-progress-count{color:#163f64!important;font-size:12px!important;font-weight:700!important;white-space:nowrap;align-self:center}
#object-work .object-status-header .object-progress-bar{grid-column:3;grid-row:1}
#object-work .object-status-header .object-progress-badge{grid-column:4;grid-row:1}
#object-work .object-status-header .object-progress-summary{background:transparent!important;border-radius:0!important;padding:0!important;text-shadow:0 1px 2px #fff,0 -1px 2px #fff;color:#123c5b!important}
@media(max-width:540px){#object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(0,1fr) auto minmax(0,140px) 30px!important;column-gap:3px!important}#object-work .object-status-header .object-progress-count{font-size:10px!important}}

/* Object progress is the first full-width section immediately below the hero. */
.object-progress-first{width:100%;max-width:100%;margin:10px 0 0;min-width:0}
.object-progress-first>#object-work{width:100%!important;max-width:100%!important;margin:0!important}

/* Object: bottom-right overlay controls on hero photo. */
.entity-hero:has(.object-hero-bottom-actions){position:relative}
.object-hero-bottom-actions{position:absolute;z-index:6;right:16px;bottom:14px;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.object-hero-bottom-actions .btn{background:#e7f2fb;color:#153d62;border:1px solid #b4cedf;box-shadow:0 1px 6px #0c254755}
.object-attention-points{display:grid;gap:7px;margin-top:12px}
.object-attention-point{width:100%;border:1px solid #d1e1ea;border-radius:7px;background:#f5f9fc;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;cursor:pointer}
.object-attention-point strong{display:inline-flex;align-items:center;gap:7px}
@media(max-width:600px){.object-hero-bottom-actions{right:8px;bottom:8px;gap:5px}.object-hero-bottom-actions .btn{padding:6px 8px;font-size:12px}}
/* Object: orange title background for attention and follow-up only. */
#content:has(.object-progress-first) .scope-attention > .section-head{background:#ed9a36!important;color:#213345!important;border-radius:7px;padding:10px 13px;margin:-6px -6px 10px}
#content:has(.object-progress-first) .scope-attention > .section-head h2,#content:has(.object-progress-first) .scope-attention > .section-head .muted{color:#213345!important}
/* Restore neutral section header; highlight the individual attention-point title. */
#content:has(.object-progress-first) .scope-attention > .section-head{background:transparent!important;color:inherit!important;border-radius:0!important;padding:0!important;margin:0!important}
#content:has(.object-progress-first) .scope-attention > .section-head h2{color:inherit!important}
#content:has(.object-progress-first) .scope-attention > .section-head .muted{color:var(--muted,#64748b)!important}
#content:has(.object-progress-first) .object-attention-point{background:#fff!important;padding:0!important;overflow:hidden;align-items:stretch!important}
#content:has(.object-progress-first) .object-attention-point strong{background:#ffe6c5!important;color:#77410c!important;padding:11px 13px;flex:1;min-width:0}
#content:has(.object-progress-first) .object-attention-point>span{padding:11px 13px;align-self:center}

/* Object-specific attention points and notes in matching responsive columns. */
.object-attention-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;min-width:0;margin:12px 0}
.object-attention-notes-grid>.card{min-width:0;box-sizing:border-box;margin:0!important;height:100%}
.object-notes h2{margin:0 0 12px}
.object-note-row{border:1px solid #d8e4ed;border-radius:7px;padding:10px 12px;margin:8px 0;background:#f8fbfd;overflow-wrap:anywhere}
.object-note-row .muted{font-size:12px;margin-top:4px}
.object-note-body{margin-top:7px;white-space:pre-wrap;font-size:13px}
@media(max-width:750px){.object-attention-notes-grid{grid-template-columns:minmax(0,1fr)}}

/* Location-wide overview of all objects and bulk activity status. */
.location-rollup-main{margin:12px 0!important;min-width:0}
.location-rollup-main h2{margin:0 0 13px}
.pms-location-rollup-grid,.location-followups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;min-width:0}
.location-followups-grid{margin:12px 0}
.location-followups-grid>.card{min-width:0;margin:0!important}
.pms-location-rollup-card{border:1px solid #c4daec;border-radius:8px;overflow:hidden;min-width:0}
.pms-location-rollup-card>summary{display:flex;align-items:center;gap:10px;background:#dcecf9;color:#173f62;padding:8px 12px;cursor:pointer;min-height:48px;box-sizing:border-box}
.pms-location-rollup-card>summary>strong{flex:1;min-width:0;overflow-wrap:anywhere}
.pms-rollup-indicator{display:flex;align-items:center;gap:5px;min-width:0;flex:none}
.pms-rollup-fraction{font-size:12px;white-space:nowrap}
.pms-rollup-bar{width:130px;height:30px;border:1px solid #c1d4df;border-radius:5px;background:white;box-sizing:border-box;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;padding:3px;position:relative}
.pms-rollup-tick{background:linear-gradient(90deg,#20985c var(--fill),#eff3f4 var(--fill));border-radius:2px}
.pms-rollup-percent{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#173f62;text-shadow:0 1px 2px white}
.pms-rollup-badge{height:30px;min-width:30px;box-sizing:border-box;display:grid;place-items:center;border:1px solid #74b995;border-radius:5px;background:#e1f5e8;color:#08783f;font-weight:800}
.pms-rollup-badge.rejected{background:#fbe1e1;border-color:#cf7777;color:#b52525}
.pms-rollup-badge.running{animation:pms-status-pulse 2.4s ease-in-out infinite}
.pms-location-rollup-activities{padding:5px 8px}
.pms-location-rollup-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:8px 4px;border-bottom:1px solid #dce9f3;font-size:13px}
.pms-location-rollup-row:last-child{border-bottom:0}
.pms-location-bulk-controls{display:flex;gap:3px;white-space:nowrap}
.pms-location-bulk-controls button{width:28px;height:29px;padding:0;border:1px solid #bfd0db;background:#f0f6fa;border-radius:5px;cursor:pointer}
.pms-location-bulk-controls button:disabled{opacity:.5;cursor:default}
.pms-location-followup{border:1px solid #dae5ec;border-radius:6px;padding:9px 11px;margin-top:8px;overflow-wrap:anywhere}
.pms-location-followup p{margin:4px 0 0;white-space:pre-wrap;font-size:13px}
@media(max-width:1100px){.pms-location-rollup-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.location-followups-grid{grid-template-columns:minmax(0,1fr)}.pms-location-rollup-row{grid-template-columns:minmax(0,1fr) auto}.pms-location-bulk-controls{grid-column:1/-1;justify-content:flex-end}}

.pms-location-bulk-controls button.is-bulk-active{background:#cae8d6!important;border-color:#329969!important;box-shadow:inset 0 0 0 1px #329969}

/* Location overview: compact object navigation with follow-up indicators. */
.pms-location-object-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 16px;align-items:center}
.pms-location-object-shortcut{border:1px solid #b9ccd9;border-radius:7px;padding:8px 12px;min-height:36px;font-weight:700;color:#183e62;cursor:pointer;background:#e7f4ec;line-height:1.1}
.pms-location-object-shortcut.has-notes{background:#e4effb;border-color:#8aafd1}
.pms-location-object-shortcut.has-attention{background:#ffe4c8;border-color:#d9a16b;color:#784612}
.pms-location-object-shortcut:hover{filter:brightness(.96)}
.pms-location-object-shortcut:focus-visible{outline:2px solid #2269a1;outline-offset:2px}
/* Compact location object shortcuts: never stretch buttons across their row. */
#location-object-rollup .pms-location-object-shortcuts{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:flex-start!important;gap:7px!important;width:100%;}
#location-object-rollup .pms-location-object-shortcuts .pms-location-object-shortcut{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:max-content!important;max-width:100%!important;min-width:0!important;min-height:34px;padding:7px 12px!important;margin:0!important;white-space:nowrap;box-sizing:border-box;}

/* Shared review states as clear green/red circles. */
#object-work .pms-four-stage:last-child{color:#8d99a5!important}
#object-work .pms-four-stage:last-child.is-on{color:#118447!important}
#object-work .pms-four-stage:last-child.is-rejected{color:#c42525!important}
#object-work .pms-four-stage svg{width:21px;height:21px}
#object-work .object-progress-badge svg{width:22px;height:22px}
/* Mobile object view: no percent flowbar; four equal full-width actions below activity. */
@media (max-width:700px){
 #object-work .object-status-header .object-progress-bar,
 #object-work .object-status-header .object-progress-count{display:none!important}
 #object-work .object-status-discipline>.object-status-header{grid-template-columns:minmax(0,1fr) 34px!important;column-gap:7px!important}
 #object-work .object-status-header .object-progress-badge{grid-column:2!important;grid-row:1!important}
 #object-work .object-status-table{display:block!important;width:100%!important;min-width:0!important}
 #object-work .object-status-table tbody{display:block!important;width:100%!important}
 #object-work .object-status-table tr{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important}
 #object-work .object-status-table tr td:first-child{display:block!important;width:100%!important;box-sizing:border-box;padding:11px 10px 5px!important;white-space:normal!important}
 #object-work .object-status-table tr td.object-progress-status-cell{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box;padding:5px 10px 11px!important;border-bottom:1px solid #d4e8f7}
 #object-work .pms-four-status{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;width:100%!important}
 #object-work .pms-four-stage{width:100%!important;max-width:none!important;min-width:0!important;height:42px!important;flex:auto!important;font-size:20px!important}
 #object-work .pms-four-stage svg{width:25px!important;height:25px!important}
}
/* Mobile override: remove desktop fixed 158px status column and full-row borders. */
@media(max-width:700px){
 #object-work .object-status-table,
 #object-work .object-status-table tbody,
 #object-work .object-status-table tr{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
 #object-work .object-status-table tr{display:grid!important;grid-template-columns:minmax(0,1fr)!important;border-bottom:1px solid #d4e8f7!important}
 #object-work .object-status-table tr>td:first-child,
 #object-work .object-status-table tr>td:last-child,
 #object-work .object-status-table tr>td.object-progress-status-cell{grid-column:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;border-bottom:0!important}
 #object-work .object-status-table tr>td.object-progress-status-cell{padding:5px 10px 11px!important}
 #object-work .object-status-table tr .pms-four-status{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;max-width:none!important;gap:8px!important}
 #object-work .object-status-table tr .pms-four-stage{display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;height:44px!important;justify-content:center!important;align-items:center!important}
}

#object-work .pms-four-stage.is-unavailable{background:#fde7e7!important;border-color:#d36b6b!important;color:#b82323!important}
#object-work .object-status-header .object-progress-badge.is-unavailable{background:#fde7e7;color:#b82323!important;border-color:#d36b6b}
/* Location activity rows already have four action icons: hide redundant rollup badge. */
#location-object-rollup .pms-location-rollup-row .pms-rollup-badge{display:none!important}

/* Default / not yet started: hourglass and review indicator are neutral grey. */
#object-work .pms-four-status .pms-four-stage:first-child.is-on:not(.is-unavailable){background:#e5e9ed!important;border-color:#c8d1d8!important;color:#65727f!important}
#object-work .object-status-header .object-progress-badge.is-ready{background:#e5e9ed!important;border-color:#c8d1d8!important;color:#65727f!important}
#object-work .pms-four-stage:last-child:not(.is-on):not(.is-rejected){background:#e5e9ed!important;border-color:#c8d1d8!important;color:#65727f!important}
