/* Staff-only property workspace. Existing portal rendering stays independent. */
body.ro .property-live-bar{display:none!important}
.property-live-bar{grid-column:1/-1;order:-2;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff)}
.property-live-bar>div{flex:1;min-width:180px}.property-live-bar strong{display:block;font-size:12px;color:var(--forest)}
.property-live-bar span{font-size:11px;color:var(--mute)}.property-live-bar #propertyLiveTime{display:block;margin-top:4px}
@media(max-width:700px){.property-live-cadence{width:100%;order:2}.property-live-bar{padding:12px;gap:8px}}
body.ro .property-workbench,body.ro .property-record-controls{display:none!important}
.property-record-controls{flex:0 1 300px;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel,#fff)}
.property-record-controls>summary{padding:12px 16px;cursor:pointer;font-size:12px;font-weight:750;color:var(--forest)}
.property-record-controls .pa-actions{padding:4px 16px 16px;max-width:none}
.property-workbench{border:1px solid var(--line);border-radius:18px;background:var(--panel,#fff);margin:0 0 24px;overflow:hidden;box-shadow:0 12px 36px -28px #123d2a66}
.property-workbench[hidden]{display:none}
.pw-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid var(--line)}
.pw-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--green)}
.pw-heading h3{font-size:clamp(20px,2vw,27px);letter-spacing:-.035em;margin:7px 0;color:var(--forest)}
.pw-heading p,.pw-flow p,.pw-empty p{font-size:12px;line-height:1.65;color:var(--mute);margin:6px 0 12px}
.pw-heading>.btn{flex-shrink:0;min-height:44px}
.pw-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.pw-attention{padding:22px 26px;min-width:0}
.pw-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pw-section-title h4,.pw-flow h4{font-size:15px;margin:0;color:var(--forest)}
.pw-section-title>span{font-size:10px;font-weight:750;border:1px solid var(--line);border-radius:20px;padding:5px 9px;white-space:nowrap}
.pw-source{font-size:11px;line-height:1.6;color:var(--mute);margin:8px 0 14px}
.pw-task{width:100%;display:grid;grid-template-columns:8px minmax(0,1fr) 16px;align-items:center;gap:12px;text-align:left;padding:13px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;font:inherit}
.pw-task b,.pw-task span span{display:block}.pw-task b{font-size:12px;line-height:1.5;margin:2px 0}.pw-task small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--green);font-weight:800}.pw-task span span{font-size:11px;line-height:1.5;color:var(--mute)}
.pw-task i,.pw-routes i{font-style:normal;color:var(--green)}
.pw-task:hover b,.pw-routes button:hover b{text-decoration:underline;text-underline-offset:3px}
.pw-task:disabled{cursor:not-allowed;opacity:.6}
.pw-task-dot{width:7px;height:7px;border-radius:100%;background:var(--sage)}.pw-task-dot.pw-now{background:var(--amber)}
.pw-flow{padding:24px 26px;background:var(--paper);border-left:1px solid var(--line)}
.pw-flow h4{font-size:19px;letter-spacing:-.02em;margin:10px 0}.pw-flow>.btn{min-height:44px;text-decoration:none}
.pw-flow-types{font-size:11px;line-height:1.9;color:var(--mute);margin-top:17px}
.pw-assistant{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.pw-assistant>b,.pw-empty>b{font-size:12px;color:var(--forest)}
.pw-unavailable{border-left:3px solid var(--amber);padding-left:12px}
.pw-routes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line)}
.pw-routes button{position:relative;min-width:0;text-align:left;min-height:85px;padding:17px 26px 17px 16px;border:0;border-right:1px solid var(--line);background:transparent;font:inherit;cursor:pointer;color:var(--ink)}
.pw-routes button:last-child{border-right:0}.pw-routes b{font-size:12px;display:block}.pw-routes span{display:block;font-size:10px;line-height:1.5;color:var(--mute);margin-top:5px}.pw-routes i{position:absolute;right:12px;top:15px}
.property-workbench :is(button,a):focus-visible,.property-record-controls summary:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
@media(max-width:1100px){.pw-grid{grid-template-columns:1fr}.pw-flow{border-left:0;border-top:1px solid var(--line)}.pw-routes{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-routes button:nth-child(2){border-right:0}.pw-routes button:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:700px){.property-record-controls{flex-basis:100%}.pw-heading{align-items:flex-start;flex-direction:column;padding:20px}.pw-heading>.btn{width:100%}.pw-attention,.pw-flow{padding:20px}.pw-routes button{padding-left:14px}.pw-heading h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.property-workbench *{scroll-behavior:auto!important}}

/* The ranked portfolio queue belongs to Properties, ahead of the record workspace. */
body.ro #propertyNextMoves{display:none!important}
.property-next-moves{grid-column:1/-1;min-width:0;order:-1;padding:24px}
.property-next-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.property-next-heading h2{font-size:26px;letter-spacing:-.035em;margin:6px 0;color:var(--forest)}
.property-next-heading p{font-size:12px;line-height:1.6;color:var(--mute);margin:0}
.property-next-count{flex-shrink:0;font-size:11px;font-weight:750;border:1px solid var(--line);border-radius:20px;padding:8px 12px}
.property-move-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.property-move-grid .play{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:1fr auto;gap:12px;margin:0;padding:18px;min-width:0;border:1px solid var(--line);border-radius:12px}
/* Your Play (2026-09-25): the property's top move is a full-width hero at
   the head of the grid; the rest of its moves flow into the columns under
   it. .property-move-rest is display:contents so those tiles sit in the same
   grid as the hero without a second wrapper to size. */
.property-move-grid>.pb-hero,.property-move-grid>.pb-tally{grid-column:1/-1}
.property-move-grid>.pb-tally{justify-self:start}
.property-move-rest{display:contents}
.property-move-grid .play .go{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;margin:4px 0 0;padding-top:14px;border-top:1px solid var(--line);gap:8px}
.property-move-grid .go .btn{min-height:44px}
.property-move-address{display:block;font-size:10px;font-weight:750;line-height:1.5;color:var(--green);margin-bottom:8px;overflow-wrap:anywhere}
.property-move-copy{overflow-wrap:anywhere}
.property-moves-empty{grid-column:1/-1;color:var(--mute);font-size:13px;padding:18px;background:var(--paper);border-radius:10px}
.pw-queue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pw-task{align-content:start;border:1px solid var(--line);border-radius:10px;padding:14px 10px;min-width:0;overflow-wrap:anywhere}
.pw-routes{gap:10px;padding:14px;border-top:1px solid var(--line)}
.pw-routes button,.pw-routes button:last-child{border:1px solid var(--line);border-radius:10px;min-height:96px}
@media(max-width:1200px){.property-move-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-queue{grid-template-columns:1fr}}
@media(max-width:700px){.property-next-moves{padding:16px}.property-next-heading{align-items:flex-start;flex-direction:column}.property-move-grid{grid-template-columns:1fr}.property-move-grid .play{padding:16px}.pw-routes{gap:8px;padding:10px}}

/* Spreadsheet directory + one selected operating record. */
body:not(.ro) #layoutEl{grid-template-columns:minmax(380px,.9fr) minmax(0,1.35fr);gap:20px}
.property-table-scroll{overflow:auto;max-height:65vh;margin-top:14px;border:1px solid var(--line);border-radius:10px;overscroll-behavior:contain}
.property-table{border-collapse:separate;border-spacing:0;width:100%;font-size:11px;text-align:left}
.property-table thead th{position:sticky;top:0;z-index:1;background:var(--paper);border-bottom:1px solid var(--line);white-space:nowrap}
.property-table th,.property-table td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.property-table th:first-child{min-width:160px;width:48%}
.property-table th button{border:0;background:transparent;color:var(--forest);font:inherit;font-weight:750;text-align:left;cursor:pointer;padding:3px 0;min-height:36px}
.property-table tbody small{display:block;font-weight:400;color:var(--mute);line-height:1.45;overflow-wrap:anywhere}
.property-table tbody th button{min-height:44px;overflow-wrap:anywhere}
.property-table td:nth-child(n+3){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.property-table tr.selected{background:var(--mint)}
.property-table tr.selected th{box-shadow:inset 3px 0 var(--forest)}
.property-table .has-arrears{color:var(--red);font-weight:800}
.property-table-note{font-size:10px;color:var(--mute);line-height:1.6;margin:10px 0}
.property-table :focus-visible{outline:2px solid var(--green);outline-offset:2px}
.property-list-back{display:none}
#main .property-next-moves{margin-bottom:18px;padding:18px;order:initial}
#main .property-move-grid{grid-template-columns:minmax(0,1fr)}
#main .property-move-grid .n{display:none}
#main .property-move-grid .play{grid-template-columns:minmax(0,1fr)}
.pw-attention{display:none}
.pw-grid{grid-template-columns:1fr}
.pw-flow{border-left:0}
.pw-routes{grid-template-columns:repeat(2,minmax(0,1fr))}
.property-workbench{display:flex;flex-direction:column}
.pw-heading{order:0;padding:18px}.pw-heading h3{font-size:21px}.pw-heading p{display:none}
.pw-routes{order:1;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.pw-grid{order:2}.pw-flow{padding:18px;border-top:1px solid var(--line)}
.pw-flow h4{font-size:16px;margin:4px 0}.pw-flow-types{display:none}
.pw-flow>.pw-eyebrow{display:none}
.property-next-heading h2{font-size:21px}.property-next-heading{margin-bottom:12px}
@media(max-width:1000px){body:not(.ro) #layoutEl{grid-template-columns:1fr}#propsLeftCol{display:block!important}.property-table-scroll{max-height:55vh}body:not(.ro) #layoutEl:not([data-property-open="true"])>#main{display:none}body:not(.ro) #layoutEl[data-property-open="true"]>#propsLeftCol{display:none!important}body:not(.ro) #layoutEl[data-property-open="true"]:has(#pform.open)>#propsLeftCol{display:block!important}.property-list-back{display:inline-flex}body.ro .property-list-back{display:none}#layoutEl:has(#pform.open) #propertyDirectoryBody{display:block!important}#layoutEl:has(#pform.open) #propertyDirectoryBody[hidden]{display:block!important}}
@media(max-width:700px){.property-table{table-layout:fixed;font-size:10px}.property-table th:first-child{min-width:0;width:44%}.property-table th:nth-child(2),.property-table td:nth-child(2){display:none}.property-table th:nth-child(n+3){width:28%}.property-table th,.property-table td{padding:8px 5px}.property-table thead th{white-space:normal}.property-table tbody small{font-size:9px}.pw-routes{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Preserve current landlord/tenant directory navigation in the split workspace. */
body:not(.ro) #propertyDirectoryBody{display:flex;flex-direction:column;align-items:stretch;gap:10px}
body:not(.ro) #propertyDirectoryPanel{padding:18px}
body:not(.ro) #propertyDirectoryPanel h2{font-size:24px}
body:not(.ro) #propertyDirectoryNavigation{width:100%}
body:not(.ro) #propertyTableWrap[hidden],body:not(.ro) #propertyTableNote[hidden],body:not(.ro) #propertyDirectoryResults[hidden]{display:none!important}
body:not(.ro) #propertyDirectoryResults{width:100%;box-sizing:border-box}
body:not(.ro) #propertyDirectoryBody>.pd-field-label{display:block!important}
body:not(.ro) #propertyDirectoryBody>.form{width:100%}
body:not(.ro) .property-record-controls{width:100%}
body:not(.ro) #propsLeftCol,body:not(.ro) #main{min-width:0}
body:not(.ro) #propertyWorkbench[hidden]{display:none}
@media(min-width:1001px){body:not(.ro) #propsLeftCol{align-self:start}}

#jAddr{scroll-margin-top:110px}#propertyDirectoryCount{white-space:nowrap!important;flex-shrink:0}

/* Keep the permanent record control compact in the selected-property pane. */
body:not(.ro) .property-client-actions>.pa-primary{grid-column:auto}

.pw-context{margin:0;padding:12px 18px;font-size:12px;color:var(--mute);border-bottom:1px solid var(--line);overflow-wrap:anywhere}

/* 2026-10-08: keep the next action distinct from record/portal actions. */
body:not(.ro) #journey .jhead{margin-bottom:16px}
body:not(.ro) #propertyCommandSummary .property-client-actions{gap:8px;margin-top:16px}
body:not(.ro) #propertyCommandSummary .property-client-actions>.btn{min-height:44px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){body:not(.ro) #propertyCommandSummary .property-client-actions{grid-template-columns:repeat(2,minmax(0,1fr))}body:not(.ro) #propertyCommandSummary .property-client-actions>.pa-primary,body:not(.ro) #propertyCommandSummary .property-client-actions>.pa-lead{grid-column:1/-1}}

body:not(.ro) #opsPrimary{margin-bottom:16px}
