/* Shared incident list cards for tenant, owner and cohost views. */
#services.incident-list-modal{box-sizing:border-box;width:min(1280px,calc(100vw - 48px));max-width:1280px;max-height:calc(100dvh - 32px);overflow-x:hidden;overflow-y:auto;padding:34px 54px;border:1px solid #dce4dd;border-radius:20px;background:#fbfcf9;color:var(--ink);box-shadow:0 24px 80px #10231f30}
#services.incident-list-modal>.close{position:absolute;top:20px;right:22px;display:grid;place-items:center;width:48px;height:48px;margin:0;border:1px solid #e1e8e1;border-radius:50%;background:#fff;color:#234a3d;font-size:26px}
#services .incident-list{display:grid;gap:18px;margin:18px 0 24px}
#services .incident-list-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,240px);align-items:stretch;gap:26px;min-width:0;padding:20px 22px;border:1px solid #dce4dd;border-radius:20px;background:#fff;box-shadow:0 2px 8px rgb(30 61 51 / 3%)}
#services .incident-list-main{display:flex;align-items:center;gap:24px;min-width:0}
#services .incident-list-photo{display:block;flex:0 0 176px;width:176px;height:194px;overflow:hidden;border-radius:17px;background:#edf2ed}
#services .incident-list-photo img{display:block;width:100%;height:100%;object-fit:cover}
#services .incident-photo-placeholder{display:grid;width:100%;height:100%;place-items:center;color:#31574b;font-size:42px}
#services .incident-list-copy{display:grid;flex:1 1 auto;gap:5px;min-width:0}
#services .incident-list-copy h4{margin:0;color:#102b25;font:600 30px/1.12 var(--serif,Georgia,serif);overflow-wrap:anywhere}
#services .incident-list-copy p{margin:0;color:#36594f;font-size:21px;line-height:1.3;overflow-wrap:anywhere}
#services .incident-list-location{display:flex;align-items:center;gap:11px;min-width:0;margin-top:15px;color:#6b7774;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
#services .incident-list-location svg{flex:0 0 25px;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#services .incident-list-actions{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;min-width:0;padding-left:26px;border-left:1px solid #e2e8e3}
#services .incident-list-actions .incident-status-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;padding:10px 16px;border:1px solid;border-radius:999px;font-size:16px;line-height:1.2;white-space:nowrap}
#services .incident-list-actions .incident-status-pill.is-open{color:#bd4236;background:#fff0ed;border-color:#f0c2bb}
#services .incident-list-actions .incident-status-pill.is-mediation{color:#94600b;background:#fff4d8;border-color:#f0d99d}
#services .incident-list-actions .incident-status-pill.is-resolved{color:#276143;background:#eaf4e9;border-color:#c4ddc6}
#services .incident-list-actions .incident-status-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:currentColor}
#services .incident-list-actions .incident-list-date{display:flex;align-items:center;gap:12px;min-width:0;color:#737b79;font-size:16px;line-height:1.4;white-space:normal}
#services .incident-list-actions .incident-list-date svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#services .incident-list-actions .incident-followup-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:54px;padding:11px 17px;border:1px solid #315e4e;border-radius:999px;background:#fff;color:#234a3d;font-family:inherit;font-size:16px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer}
#services .incident-list-actions .incident-followup-button:hover{background:#f2f7f2}
#services .incident-list-actions .incident-followup-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#services .incident-list-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:22px 0 16px}
#services .incident-list-toolbar h3{margin:0;color:#102b25;font:400 38px/1.12 var(--serif,Georgia,serif)}
#services .incident-list-filters{display:flex;align-items:center;gap:9px}
#services .incident-list-filters button{min-height:48px;padding:10px 20px;border:1px solid #dce4dd;border-radius:999px;background:#fff;color:#234a3d;font-family:inherit;font-size:16px;font-weight:500;line-height:1.2;cursor:pointer}
#services .incident-list-filters button[aria-pressed="true"]{border-color:#1f433a;background:#1f433a;color:#fff}
#services .incident-list-empty{margin:0;padding:20px;border:1px dashed #dce4dd;border-radius:15px;color:var(--muted);background:#fafbf9}
#services .incident-list-state{display:grid;justify-items:center;gap:12px;min-height:180px;align-content:center;margin:18px 0;padding:28px;border:1px solid #dce4dd;border-radius:18px;background:#fff;text-align:center}
#services .incident-list-state>p{margin:0;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
#services .incident-list-state h3{margin:0;color:#102b25;font:400 28px/1.2 var(--serif,Georgia,serif)}
#services .incident-list-spinner{width:28px;height:28px;border:3px solid #dce8df;border-top-color:#1f5949;border-radius:50%;animation:incident-list-spin .8s linear infinite}
#services .incident-list-state-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:8px}
#services .incident-list-state-actions button{min-height:44px}
@keyframes incident-list-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#services .incident-list-spinner{animation:none}}
@media(max-width:800px){
  #services.incident-list-modal{width:calc(100vw - 24px);max-width:none;max-height:calc(100dvh - 20px);padding:22px 18px;border-radius:18px}
  #services.incident-list-modal>.close{top:12px;right:12px;width:40px;height:40px;font-size:23px}
  #services .incident-list-item{grid-template-columns:minmax(0,1fr);gap:18px;padding:17px}
  #services .incident-list-main{flex-direction:column;align-items:stretch;gap:14px}
  #services .incident-list-photo{flex:0 0 auto;width:100%;height:190px;border-radius:15px}
  #services .incident-list-copy h4{font-size:25px}
  #services .incident-list-copy p{font-size:18px}
  #services .incident-list-location{margin-top:5px;font-size:15px}
  #services .incident-list-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 0 0;border:0;border-top:1px solid #e2e8e3}
  #services .incident-list-actions .incident-status-pill{align-self:flex-start;padding:8px 13px;font-size:14px}
  #services .incident-list-actions .incident-list-date{font-size:14px}
  #services .incident-list-actions .incident-followup-button{width:100%;min-height:50px}
  #services .incident-list-toolbar{align-items:flex-start;flex-direction:column;gap:14px}
  #services .incident-list-toolbar h3{font-size:32px}
  #services .incident-list-filters{width:100%}
  #services .incident-list-filters button{flex:1;min-height:44px;padding:9px 12px;font-size:14px}
  #services .incident-list-state{min-height:150px;padding:22px 16px}
  #services .incident-list-state h3{font-size:24px}
}
@media(max-width:420px){
  #services.incident-list-modal{padding:18px 13px}
  #services .incident-list-item{padding:13px;border-radius:16px}
  #services .incident-list-photo{height:180px}
  #services .incident-list-copy h4{font-size:22px}
  #services .incident-list-copy p{font-size:16px}
  #services .incident-list-actions .incident-list-date{align-items:flex-start;gap:9px;font-size:13px}
  #services .incident-list-actions .incident-list-date svg{width:21px;height:21px;flex-basis:21px}
}
