/* Five compact columns fit the available phone width without horizontal scrolling. */
.room-area-schedule{width:100%;max-width:100%;min-width:0;border:1px solid var(--sb-line,#dce3e8);border-radius:10px;background:var(--sb-paper,#fff)}
.room-area-schedule table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:0;font-size:12px;line-height:1.3}
.room-area-schedule .schedule-area-col{width:17%}
.room-area-schedule .schedule-height-col{width:20%}
.room-area-schedule .schedule-plan-col{width:34px}
.room-area-schedule th,.room-area-schedule td{padding:5px 3px;vertical-align:middle;letter-spacing:0;min-width:0;overflow-wrap:anywhere}
.room-area-schedule th:first-child{text-align:left;padding-left:6px}
.room-area-schedule thead th{background:var(--sb-panel,#f3f7f9);font-weight:700;font-size:11px;line-height:1.2;text-align:center;white-space:normal}
.room-area-schedule thead tr:first-child th{padding-top:7px;padding-bottom:5px}
.room-area-schedule thead tr:nth-child(2) th{padding:4px 1px 7px;text-align:center;font-size:10.5px;white-space:nowrap}.room-area-schedule abbr{text-decoration:none;border:0}
.room-area-schedule .schedule-unit{display:block;font-weight:400;margin-top:2px}
.room-area-schedule tbody th[scope="row"]{font-size:inherit;font-weight:400;background:var(--sb-paper,#fff)}
.room-area-schedule .room-code{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.room-area-schedule .room-area-group th,.room-area-schedule .room-area-group td{background:var(--sb-panel,#e9f0f4);font-weight:700;border-top:2px solid var(--sb-line,#ccd8df);border-bottom:1px solid var(--sb-line,#ccd8df)}
.room-area-schedule .area-value{text-align:right;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
.room-area-schedule .room-height{text-align:center;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.35}
.room-area-schedule .height-endpoint{white-space:nowrap}
.room-area-schedule th:last-child,.room-area-schedule td:last-child{text-align:center;padding-left:1px;padding-right:1px}
.room-area-schedule tfoot th,.room-area-schedule tfoot td{background:var(--sb-panel,#e9f0f4);border-top:1px solid var(--sb-line,#ccd8df);font-weight:700;font-size:11px;padding-top:7px;padding-bottom:7px}
.room-area-schedule tfoot tr:first-child>*{border-top:2px solid var(--sb-line,#b8cad4)}
.room-area-schedule tfoot tr:last-child>*{border-top:2px solid var(--sb-line,#b8cad4)}
.room-plan-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0;border:0;background:transparent;color:var(--sb-accent,#12677a);font:inherit;font-size:19px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.room-area-schedule [data-schedule-floor],.room-area-schedule [data-parcel-plan]{width:100%;max-width:32px;min-width:0}
.room-area-schedule .area-details-link{font:inherit;min-width:0;max-width:100%;min-height:32px;text-align:right;overflow-wrap:anywhere;white-space:normal}
.room-plan-link:focus-visible{outline:2px solid var(--sb-accent,#12677a);outline-offset:1px;border-radius:4px}
.room-plan-link:disabled{opacity:.5;cursor:wait}
.schedule-notes{font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin-top:8px}
.schedule-note{font-size:12px;margin:6px 0}
.schedule-notes details{margin-top:8px}
.schedule-notes summary{font-size:12px;font-weight:600}
.schedule-notes p{margin:6px 0}
.schedule-notes ul{padding-left:18px;margin:6px 0}
.schedule-notes li{margin:2px 0}
.schedule-dts-plan svg{display:block;width:100%;height:auto}
.room-area-editor fieldset{border:0;padding:0;margin:12px 0 18px}
.room-area-editor legend{font-weight:700;margin-bottom:6px}
.room-area-editor label{display:grid;grid-template-columns:minmax(0,1fr) 110px;align-items:center;gap:10px;margin:8px 0;font-weight:400;font-size:13px}
.room-area-editor input{min-width:0;width:100%;font-variant-numeric:tabular-nums}
.room-area-editor label:has(input[name^="min_"]){grid-template-columns:minmax(0,1fr) 70px 70px}
.dts-room-selector{display:flex;align-items:center;gap:.6rem;margin:.65rem 0}
.dts-room-selector select{max-width:100%;min-width:0;flex:1}
@media(min-width:700px){.room-area-schedule table{font-size:13px}.room-area-schedule th,.room-area-schedule td{padding:7px 8px}.room-area-schedule thead th,.room-area-schedule .room-height,.room-area-schedule tfoot th,.room-area-schedule tfoot td{font-size:12px}.room-area-schedule .schedule-plan-col{width:42px}}

/* Shared room-plan controls keep the SVG mounted while zooming/panning. */
.plan-viewport{position:relative;overflow:hidden;border-radius:6px}
.plan-viewport svg{touch-action:none!important;user-select:none;-webkit-user-select:none}
.plan-zoom-tools{display:flex;justify-content:flex-end;gap:4px;padding:4px 6px;background:var(--sb-paper,#fff);border-top:1px solid var(--sb-line,#e1e7ea)}
.plan-zoom-slot .plan-zoom-tools{background:transparent;border-top:0}
.plan-zoom-tools .btn{flex:0 0 auto;width:auto;height:34px!important;min-height:34px!important;padding:4px 8px!important;font-size:13px!important;line-height:1.2}
.plan-zoom-tools [data-plan-zoom="in"],.plan-zoom-tools [data-plan-zoom="out"]{width:34px;font-size:19px!important}
.dts-geometry-table h3{font-size:14px;margin:12px 0 5px}
.dts-geometry-table table{table-layout:fixed;font-size:12px;line-height:1.3}
.dts-geometry-table th,.dts-geometry-table td{padding:7px 4px;text-align:right;font-variant-numeric:tabular-nums;letter-spacing:0;overflow-wrap:anywhere}
.dts-geometry-table th:first-child{width:23%;text-align:left}
.dts-geometry-table thead th{font-size:11px;background:var(--sb-panel,#eaf0f5)}
.dts-geometry-table small{display:block;font-size:10px;font-weight:400}
.dts-geometry-table tbody th{background:transparent;font-size:12px;font-weight:400}
.dts-geometry-link{border:0;background:transparent;font:inherit;color:var(--brand);text-align:left;padding:2px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.dts-geometry-table .meta{color:var(--muted);font-size:11px!important;line-height:1.4}
@media print{.plan-zoom-tools{display:none}}

.parcel-plan-drawing svg{display:block;width:100%;height:auto}
.parcel-plan-select{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:12px}
.parcel-plan-select select{min-width:0;flex:1;width:auto;font:inherit}
.parcel-plan-note{font-size:12px;line-height:1.4;margin:10px 6px}
.room-area-schedule .parcel-area-head th{text-align:center;font-size:11px;line-height:1.3}
.room-area-schedule .parcel-area-head th:first-child{text-align:left}
.room-area-schedule .parcel-area-subhead th{font-size:10.5px;padding-top:3px;padding-bottom:3px}
