/* Daily workspace: retained presentation rules, loaded once. */
.work-day h3{font-size:15px;margin:0 0 8px}.work-day .work-visits,.work-day .work-plans,.work-day .work-add,.work-day .work-history{margin:12px 0;padding:12px 0;border-top:1px solid #deeff0}.work-day .sc-arrivals{padding:0;margin:0}.work-record{display:flex;align-items:center;gap:8px;border-top:1px solid #edf5f6}.work-record-main{flex:1;min-width:0;background:transparent;color:var(--ink);text-align:left;padding:10px 0;white-space:normal;overflow-wrap:anywhere}.work-record-main small{display:block;color:var(--muted);margin-top:4px}.work-record-main b{font-size:13px}.work-add-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.work-add-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:13px 3px;min-height:82px;border-radius:14px}.work-add-grid svg{width:24px;height:24px;color:#17b5b9}.work-add-grid b{font-size:12px}.work-day .sr-panel{padding:12px;margin:12px 0}.work-day .work-pending{border-color:#dfa3ad}.work-day .work-pending h2{color:#a44254}.work-day .sc-final-actions{margin:12px 0;gap:10px}.work-day .sc-note{margin:8px 0}.work-day .change-history,.work-day .work-history~details{margin:10px 0;padding:8px 0}.work-day summary{min-height:40px;line-height:1.7;cursor:pointer}.work-day .sc-table tbody td,.work-day .sc-table tbody th{padding-top:7px;padding-bottom:7px}
.work-day #sc-summary{display:block;background:none;padding:0}.work-day .work-total{display:flex;align-items:center;justify-content:space-between;background:#e9f8f8;border:1px solid #d5eeee;border-radius:18px;padding:16px 20px;margin-bottom:10px}.work-day .work-total strong{font-size:52px;line-height:1.1;color:#109ca4}.work-day .work-total strong small{font-size:18px;margin-left:5px}.work-day .work-subtotals,.work-day .work-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.work-day .work-subtotals>div{background:#f2f9fa;border-radius:12px;padding:10px 3px;text-align:center}.work-day .work-subtotals small,.work-day .work-subtotals b{display:block}.work-day .work-subtotals b{font-size:18px;margin-top:4px}.work-day .work-plan-grid{margin:12px 0;align-items:start}.work-day .work-plan-tile{min-width:0;border:1px solid #deeff0;border-radius:14px;background:#f4fbfb}.work-day .work-plan-tile summary{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 3px;text-align:center;font-size:11px;list-style:none}.work-day .work-plan-tile summary svg{width:23px;height:23px;color:#17b5b9}.work-day .work-plan-tile summary b{font-size:22px}.work-day .work-plan-tile summary b small{font-size:11px}.work-day .work-plan-tile[open]{grid-column:1/-1}.work-day .work-plan-detail{padding:0 12px}.work-day .work-plan-detail h3{display:none}.work-day .work-request-fold{border:1px solid #deeff0;border-radius:14px;padding:8px 12px;margin:12px 0}.work-day .sc-final-actions{padding-top:12px;border-top:1px solid #deeff0}.work-day .sc-final-actions button{min-height:46px}.work-day .work-subtotals small{font-size:12px}.work-day .work-total>span{font-size:16px;font-weight:700}

.work-day #sc-summary{display:grid!important;grid-template-columns:minmax(0,1.45fr) repeat(3,minmax(0,1fr))!important;align-items:center;gap:0!important;height:100px;box-sizing:border-box;background:#eaf8f9!important;border:1px solid #d4ebed;border-radius:15px;padding:12px 4px!important;margin:0 0 12px;overflow:hidden}
.work-day #sc-summary .work-total{display:flex!important;flex-direction:column;justify-content:center;gap:5px;min-width:0;border:0;border-radius:0;background:transparent;margin:0;padding:0 3px!important;height:72px}
.work-day #sc-summary .work-total>span{font-size:clamp(10px,2.8vw,12px);white-space:nowrap;line-height:1.3}
.work-day #sc-summary .work-total strong{font-size:32px!important;line-height:1.1;margin:0}.work-day #sc-summary .work-total strong small{font-size:13px;margin-left:3px}
.work-day #sc-summary .work-subtotals{display:contents!important}
.work-day #sc-summary .work-subtotals>div{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;height:60px;box-sizing:border-box;border-left:1px solid #cee5e8;background:transparent!important;border-radius:0;padding:0 2px!important}
.work-day #sc-summary .work-subtotals small{font-size:11px;white-space:nowrap;line-height:1.2}.work-day #sc-summary .work-subtotals b{font-size:19px;line-height:1.2;margin:0}
.work-day .work-plan-tile summary{gap:3px;padding:9px 2px;min-height:68px;box-sizing:border-box}.work-day .work-plan-tile summary svg{width:19px;height:19px}.work-day .work-plan-tile summary b{font-size:18px}.work-day .work-plan-grid{gap:6px}.work-day .work-add-grid button{min-height:70px;padding:9px 2px}.work-day .work-history{padding:8px 0;margin:8px 0}.work-day .work-history p{font-size:12px;margin:6px 0}.work-day .sc-final-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.work-day .sc-final-actions button{font-size:12px;padding:10px 4px;white-space:normal;min-width:0}.work-day .sc-final-actions button:first-child:nth-last-child(3){grid-column:1/-1}

#scDayDialog.work-day .sc-compact-table tbody th,#scDayDialog.work-day .sc-compact-table tbody td{padding-top:1px;padding-bottom:1px;line-height:1.2}#scDayDialog.work-day .sc-compact-table select.time-field{height:44px;min-height:44px;padding-top:3px;padding-bottom:3px}#scDayDialog.work-day .sc-wish{margin-top:1px;line-height:1.2}#scDayDialog.work-day .sc-compact-table tbody th b{line-height:1.3}

.work-day .work-members-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:4px 0 8px}.work-day .work-members-heading .sc-tools{margin:0;padding:0;display:block}.work-day .work-members-heading button{font-size:11px;padding:4px 5px;min-height:44px}.work-day .work-added-label{font-size:9px;display:inline-block;white-space:nowrap;background:#dff4f5;color:#178c96;border-radius:8px;padding:2px;margin-left:2px}.work-day .sc-wish{white-space:normal;overflow-wrap:anywhere;font-size:9px}.work-day .work-section-heading{margin:12px 0 6px}.work-day .work-plan-grid{margin:0 0 10px}.work-day .work-unified-history{border:1px solid #deeff0;border-radius:12px;padding:4px 10px;margin:8px 0}.work-day .work-unified-history>summary,.work-day .work-request-fold>summary{display:flex;justify-content:space-between;align-items:center;font-size:13px}.work-day .work-unified-history>details{border-top:1px solid #deeff0}.work-day .work-pending>summary{color:#b13f59}.work-day .work-state-warning{font-size:12px;color:#a44254;margin:6px 0}.work-day .work-state-warning:empty{display:none}.work-day .work-unified-history .work-history h3{display:none}.work-day .work-add{margin:8px 0;padding:8px 0}.work-day .sc-final-actions #pdfDownload{background:white;color:#149da5;border:1px solid #cfe9eb}.work-day #safe-changes:empty{display:none}.work-day .work-review-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0;align-items:start}.work-day .work-review-links>details{margin:0;padding:4px 7px;min-width:0}.work-day .work-review-links>details[open]{grid-column:1/-1}.work-day .work-review-links summary{font-size:11px;gap:4px;flex-wrap:wrap}.work-day .work-review-links summary b{white-space:nowrap}.work-day .work-day-stage{font-size:11px;white-space:nowrap;background:#e4f4f5;color:#36858f;border-radius:20px;padding:6px 10px;margin-left:auto}.work-day .sc-modal-head h2{font-size:18px;min-width:0}.work-day .sc-modal-head{gap:8px}.work-day .work-members-heading button{color:#178a94;background:transparent}

#modal.work-plans-popup{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:80dvh;overflow-y:auto;padding:16px;border-radius:20px}#modal.work-plans-popup .work-popup-head{display:flex;align-items:center;justify-content:space-between;gap:8px}#modal.work-plans-popup h2{font-size:17px;margin:0}#modal.work-plans-popup h2 small{font-size:12px;color:var(--muted)}#modal.work-plans-popup .work-popup-head button{min-width:44px;min-height:44px;font-size:24px;padding:0}#modal.work-plans-popup .work-popup-date{font-size:12px;color:var(--muted);margin:2px 0 12px}#modal.work-plans-popup .work-visits h3,#modal.work-plans-popup .work-plans h3{display:none}#modal.work-plans-popup .work-record-main{min-height:48px}#modal.work-plans-popup .work-record>.sc-link{min-height:44px;flex-shrink:0}#modal.work-plans-popup .work-popup-empty{text-align:center;font-size:13px;color:var(--muted);padding:20px 0}#modal.work-plans-popup .work-popup-add{width:100%;min-height:44px;margin-top:12px;font-size:13px}.work-day .work-plan-tile[open]{grid-column:auto}

#modal.work-arrival-form{box-sizing:border-box;position:fixed;top:calc(var(--work-viewport-top,0px) + 8px);bottom:auto;margin:0 auto;width:min(460px,calc(100vw - 24px));max-height:calc(var(--work-viewport-height,100dvh) - 16px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:16px;border-radius:18px;scroll-padding-bottom:70px}#modal.work-arrival-form h2{font-size:17px;margin-bottom:12px;padding:8px 10px}#modal.work-arrival-form label{display:block;font-size:12px;margin:9px 0 4px}#modal.work-arrival-form input,#modal.work-arrival-form select,#modal.work-arrival-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;font-size:16px;padding:8px;border:1px solid #cfe6e9;border-radius:10px}#modal.work-arrival-form .formgrid{display:block}#modal.work-arrival-form textarea{min-height:70px}#modal.work-arrival-form .actions{position:sticky;bottom:-16px;background:white;padding:10px 0;display:flex;gap:8px;margin:8px 0 0;z-index:1}#modal.work-arrival-form .actions button{min-height:44px;font-size:13px;padding:8px 12px}#modal.work-arrival-form .actions button:first-child{flex:1}#modal.work-arrival-form .work-required{font-size:10px;color:#a64557}#modal.work-arrival-form [aria-invalid=true]{border-color:#b34459}#work-arrival-error{font-size:12px;color:#a33e52;margin:6px 0}#work-arrival-error:empty{display:none}#modal.work-arrival-form .muted{font-size:11px;margin:8px 0}

#modal.work-plans-popup .work-plan-view{display:block;background:#fff;color:#153d4b;border-top:1px solid #deecef;padding:12px 0;overflow-wrap:anywhere}#modal.work-plans-popup .work-plan-view b{font-size:14px;color:#153d4b}#modal.work-plans-popup .work-plan-view p{font-size:12px;line-height:1.5;color:#607f89;margin:4px 0 0;white-space:pre-wrap}
#modal.work-plans-popup .work-plan-view{display:flex;align-items:center;gap:10px}#modal.work-plans-popup .work-plan-copy{flex:1;min-width:0}#modal.work-plans-popup .work-plan-cancel{flex-shrink:0;min-width:52px;min-height:44px;padding:8px;font-size:12px;background:white;color:#527a85;border:1px solid #d0e8eb}#modal.work-plans-popup .work-cancel-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}#modal.work-plans-popup .work-cancel-actions button{min-width:80px;min-height:44px;font-size:14px}#modal.work-plans-popup .work-cancel-target{color:#607f89;font-size:13px}
#scDayDialog.work-day .work-cast-visits{width:100%;min-width:0;min-height:44px;padding:4px 2px;font-size:10px;line-height:1.3;background:white;color:#357e89;border:1px solid #d5e9ec;white-space:normal;overflow-wrap:anywhere}#scDayDialog.work-day .work-add-member{display:block;width:100%;min-height:44px;margin:8px 0 12px;font-size:13px;color:#278995;background:white;border:1px dashed #acd8dd}#scDayDialog.work-day .work-extra-only{grid-template-columns:1fr}#scDayDialog.work-day .work-extra-only button{min-height:48px;flex-direction:row}
#scDayDialog.work-day .work-members-heading .sc-tools button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:transparent;border:0;box-shadow:none;border-radius:4px;color:#168d97;font-size:11px;font-weight:600;min-height:44px;padding:4px 2px;white-space:nowrap}#scDayDialog.work-day .work-members-heading .sc-tools button svg{width:19px;height:19px;flex-shrink:0}#scDayDialog.work-day .work-members-heading .sc-tools button:hover{background:transparent}#scDayDialog.work-day .work-members-heading .sc-tools button:focus-visible{outline:2px solid #268895;outline-offset:2px}
/* Uniform white roster rows distinguish the existing pale action buttons.
   Only table surfaces and divider color change; controls retain their paint. */
html body .sc-root .sc-table tbody :is(tr,th,td){background:#fff;border-color:#e5e7eb}
