.pw-calendar-documents{min-width:0;margin-top:1rem;padding-top:.9rem;border-top:1px solid #dce3e7;grid-column:1/-1}
.pw-calendar-documents h3{margin:0 0 .6rem}.pw-calendar-document-list,.pw-calendar-document-queue{list-style:none;padding:0;margin:.6rem 0;display:grid;gap:.4rem}
.pw-calendar-document-list li,.pw-calendar-document-queue li{display:flex;gap:.7rem;justify-content:space-between;align-items:center;min-width:0;padding:.55rem;background:#f5f8fa;border-radius:.5rem;flex-wrap:wrap}
.pw-calendar-document-list a,.pw-calendar-document-queue span{min-width:0;flex:1 1 12rem;overflow-wrap:anywhere}.pw-calendar-document-list strong,.pw-calendar-document-list small,.pw-calendar-document-queue strong,.pw-calendar-document-queue small{display:block}
.pw-calendar-document-list button,.pw-calendar-document-queue button,.pw-calendar-documents>button{min-height:44px;white-space:normal;max-width:100%;overflow-wrap:anywhere}
.pw-calendar-document-drop{padding:.7rem;border:1px dashed #9cafba;border-radius:.5rem;display:grid;gap:.7rem}.pw-calendar-document-status{overflow-wrap:anywhere;white-space:pre-wrap;margin:.5rem 0;color:#40565e}
.pw-calendar-document-pickers{display:flex;flex-wrap:wrap;gap:.5rem}
.pw-calendar-document-pickers>button,.pw-note-upload-actions>button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.pw-calendar-document-pickers>input[hidden],.pw-note-upload-actions>input[hidden]{display:none}

.pw-calendar-document-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:.75rem}
.pw-calendar-document-list .pw-calendar-document-card{display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;border:1px solid #dce3e7;background:#fff}
.pw-calendar-document-preview{height:150px;min-height:150px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#edf2f5;border:0;border-bottom:1px solid #dce3e7;border-radius:0;padding:0;cursor:pointer;color:inherit;font:inherit;box-shadow:none}
.pw-calendar-document-preview:hover{background:#e2ebf3}.pw-calendar-document-preview:focus-visible{outline:3px solid #4d94e5;outline-offset:-3px}
.pw-calendar-document-preview img{width:100%;height:100%;object-fit:contain}
.pw-calendar-document-preview iframe{border:0;width:100%;height:100%;background:#fff;pointer-events:none}
.pw-calendar-document-details{padding:.7rem;display:flex;flex-direction:column;gap:.35rem;min-width:0}
.pw-calendar-document-details a{flex:initial;min-width:0}.pw-calendar-document-details small{color:#586b76}
.pw-calendar-document-description{margin:.15rem 0 .5rem;white-space:pre-wrap;overflow-wrap:anywhere;color:#40565e}
.pw-calendar-document-details button{align-self:flex-start;margin-top:auto}
.pw-calendar-document-queued-details{flex:1 1 14rem;min-width:0;display:grid;gap:.35rem}.pw-calendar-document-queued-details strong,.pw-calendar-document-queued-details small{display:block;overflow-wrap:anywhere}
.pw-calendar-document-queued-details label{display:grid;gap:.3rem;font-size:.9rem}.pw-calendar-document-queued-details textarea{width:100%;min-width:0;min-height:70px;box-sizing:border-box;resize:vertical}
.pw-calendar-document-preview-heading{margin:1rem 0 .5rem;font-size:.95rem;color:#40565e}
.pw-document-viewer{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:0;background:var(--pw-surface-subtle,#f2f5f7);color:var(--ink,#18334a)}
.pw-document-viewer[open]{display:flex;flex-direction:column}
.pw-document-viewer::backdrop{background:#102a43a8}
.pw-document-viewer header,.pw-document-viewer nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--pw-surface,#fff);flex:0 0 auto;border-bottom:1px solid var(--line,#dce4ec)}
.pw-document-viewer header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.pw-document-viewer [data-document-actions]{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.pw-document-viewer [data-document-actions] button,.pw-document-viewer [data-document-actions] a{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:8px;cursor:pointer;text-decoration:none}
.pw-document-viewer nav button{min-height:44px}
.pw-document-viewer :is([data-document-status],[data-document-print-status]){margin:8px 12px;flex:0 0 auto}
.pw-document-viewer :is([data-document-status],[data-document-print-status]):empty{display:none}
.pw-document-viewer [data-document-content]{overflow:auto;flex:1 1 auto;min-height:0;text-align:center}
.pw-document-viewer [data-document-content] img{display:block;max-width:100%;height:auto;margin:auto;background:white}
.pw-document-viewer iframe{width:100%;height:100%;min-height:65dvh;border:0;background:white}
.pw-document-viewer .pw-document-print-frame{position:fixed;inset:0 auto auto -10000px;width:800px;height:1133px;min-height:0;border:0;pointer-events:none}
.pw-calendar-document-details [data-calendar-document-open]{text-align:left;white-space:normal}
.pw-calendar-document-details .pw-calendar-document-name{display:block;max-width:100%;min-height:32px;padding:3px 0;color:#0758c4!important;font:inherit;font-weight:750;line-height:1.45;text-decoration:underline;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}
.pw-calendar-document-name:hover{color:#003f91!important;text-decoration-thickness:2px}.pw-calendar-document-name:focus-visible{outline:3px solid #77adf0;outline-offset:3px}
html[data-pw-theme=dark] .pw-calendar-document-details .pw-calendar-document-name{color:#7dbaff!important}
.biz-file[data-attachment-view] strong,.biz-photo-gallery [data-attachment-view] strong,.biz-survey-photos [data-attachment-view] small{color:#0758c4;text-decoration:underline;text-underline-offset:3px}
html[data-pw-theme=dark] .biz-file[data-attachment-view] strong,html[data-pw-theme=dark] .biz-photo-gallery [data-attachment-view] strong,html[data-pw-theme=dark] .biz-survey-photos [data-attachment-view] small{color:#7dbaff}

/* Preview cards use all available appointment width without cropping plans. */
.pw-calendar-document-preview{height:260px;min-height:260px;touch-action:pan-y}
.pw-calendar-document-preview img{touch-action:pan-y}
.pw-calendar-document-list{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:14px}
