@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap";:root{--primary:#0da2e7;--primary-hover:#0b81b7;--secondary:#23a997;--accent:#9355f6;--background:#f1f5f9;--surface:#fff;--text-main:#0f1729;--text-muted:#65758b;--border:#e1e7ef;--danger:#ef4343;--font-family:"Inter", "Noto Sans JP", "Yu Gothic UI", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;--shadow-sm:0 1px 3px #0000000d, 0 1px 2px #00000008;--shadow-md:0 4px 12px -2px #00000014, 0 2px 6px -1px #0000000a;--shadow-lg:0 12px 24px -4px #0000001f, 0 4px 12px -2px #0000000f;--shadow-glow:0 0 20px #0ea5e940;--radius-sm:.375rem;--radius-md:.625rem;--radius-lg:.875rem;--radius-xl:1.25rem;--radius-full:9999px;--transition-fast:.18s cubic-bezier(.4, 0, .2, 1);--transition-normal:.28s cubic-bezier(.4, 0, .2, 1)}body{font-family:var(--font-family);background-color:var(--background);color:var(--text-main);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5}#root{background-color:var(--surface);min-height:100vh;padding-bottom:2rem;position:relative;overflow-x:hidden}.glass{-webkit-backdrop-filter:blur(10px);background:#ffffffb3;border:1px solid #ffffff4d}.app-header{background:var(--primary);color:#fff;border-bottom-left-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-xl);box-shadow:var(--shadow-md);z-index:10;margin-bottom:1.5rem;padding:1.5rem 1rem;position:sticky;top:0}.app-header h1{letter-spacing:.5px;font-size:1.25rem;font-weight:600}.app-header p{opacity:.9;margin-top:.25rem;font-size:.875rem}.container{padding:0 1rem}.card{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);border:1px solid var(--border);transition:box-shadow var(--transition-fast), transform var(--transition-fast);margin-bottom:1rem;padding:1.5rem}.card:hover{box-shadow:var(--shadow-md)}.card-title{color:var(--primary);align-items:center;gap:.5rem;margin-bottom:1rem;font-size:1.1rem;font-weight:600;display:flex}.btn{border-radius:var(--radius-full);cursor:pointer;transition:all var(--transition-fast);border:none;justify-content:center;align-items:center;width:100%;padding:1rem 1.5rem;font-size:1rem;font-weight:600;display:inline-flex}.btn:active{transform:scale(.98)}.btn-primary{background-color:var(--primary);color:#fff;box-shadow:var(--shadow-sm)}.btn-primary:hover{background-color:var(--primary-hover);box-shadow:var(--shadow-md), var(--shadow-glow)}.input-group{margin-bottom:1.25rem}.input-label{color:var(--text-muted);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.input-field{width:100%;font-size:1rem;font-family:var(--font-family);border:1px solid var(--border);border-radius:var(--radius-md);background-color:var(--background);transition:border-color var(--transition-fast), box-shadow var(--transition-fast);padding:.875rem 1rem}.input-field:focus{border-color:var(--primary);background-color:var(--surface);outline:none;box-shadow:0 0 0 3px #0ea5e933}.slider-wrapper{align-items:center;gap:1rem;display:flex}.slider-value-input{color:var(--primary);text-align:right;border-radius:var(--radius-sm);width:5rem;font-size:1.5rem;font-weight:700;font-family:var(--font-family);transition:all var(--transition-fast);-moz-appearance:textfield;background:0 0;border:1px solid #0000;padding:.25rem}.slider-value-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.slider-value-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.slider-value-input:focus{border-color:var(--border);background:var(--surface);box-shadow:var(--shadow-sm);outline:none}input[type=range]{-webkit-appearance:none;background:0 0;width:100%}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:var(--primary);cursor:pointer;width:28px;height:28px;box-shadow:var(--shadow-md);border-radius:50%;margin-top:-10px}input[type=range]::-webkit-slider-runnable-track{cursor:pointer;background:var(--border);border-radius:var(--radius-full);width:100%;height:8px}.toggle-grid{grid-template-columns:repeat(2,1fr);gap:.75rem;display:grid}.toggle-label{border:1px solid var(--border);border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast);background:var(--surface);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:.875rem;font-weight:500;display:flex}.toggle-input{display:none}.toggle-input:checked+.toggle-label{border-color:var(--primary);color:var(--primary);background-color:#0ea5e91a}.toggle-input:checked+.toggle-label:before{content:"✓";margin-right:.5rem;font-weight:700}.upload-zone{border:2px dashed var(--border);border-radius:var(--radius-md);background-color:var(--background);transition:all var(--transition-fast);cursor:pointer;text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:2rem 1rem;display:flex;position:relative}.upload-zone:hover{border-color:var(--primary);background-color:#0ea5e90d}.file-input-hidden{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;top:0;left:0}.timeline{margin-top:1rem;padding-left:3rem;position:relative}.timeline:before{content:"";background:var(--border);width:2px;position:absolute;top:0;bottom:0;left:1rem}.timeline-item{margin-bottom:1.5rem;position:relative}.timeline-time{color:var(--text-main);background:var(--background);padding:.25rem 0;font-size:.875rem;font-weight:600;position:absolute;top:1rem;left:-3rem}.timeline-dot{background:var(--primary);border:2px solid var(--surface);width:12px;height:12px;box-shadow:var(--shadow-sm);z-index:1;border-radius:50%;position:absolute;top:1.2rem;left:-2.35rem}.timeline-card{background:var(--surface);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);border:1px solid var(--border);cursor:pointer;transition:all var(--transition-fast);padding:1rem 1.25rem}.timeline-card:hover{box-shadow:var(--shadow-md);border-color:var(--primary);transform:translate(4px)}.timeline-card h3{color:var(--primary);margin:0 0 .25rem;font-size:1.125rem}.timeline-card p{color:var(--text-muted);margin:0;font-size:.875rem}*{box-sizing:border-box;margin:0;padding:0}.app{color:#1f2937;-webkit-user-select:none;user-select:none;background:#f3f4f6;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Yu Gothic,Noto Sans JP,sans-serif;font-size:13px;overflow:hidden}button{font-family:inherit}.app{grid-template-rows:auto 1fr;display:grid}header.topbar{background:#fff;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px;display:flex}.title{color:#0f766e;font-size:15px;font-weight:700}.title .icon{margin-right:4px}.spacer{flex:1}.btn{cursor:pointer;white-space:nowrap;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:5px 11px;font-size:12px;transition:all .1s}.btn:hover{background:#f9fafb;border-color:#9ca3af}.btn.primary{color:#fff;background:#0f766e;border-color:#0f766e}.btn.primary:hover{background:#115e59}.btn.danger{color:#dc2626;background:#fff;border-color:#fca5a5}.btn.danger:hover{background:#fef2f2}.btn.icon-only{padding:5px 8px}.btn.data-status-btn{text-overflow:ellipsis;white-space:nowrap;max-width:220px;padding:4px 10px;font-size:11px;font-weight:600;overflow:hidden}.btn.data-status-btn.ok-style{color:#047857;background:#ecfdf5;border-color:#5eead4}.btn.data-status-btn.ok-style:hover{background:#d1fae5}.btn.data-status-btn.warn-style{color:#991b1b;background:#fef2f2;border-color:#fca5a5}.btn.data-status-btn.warn-style:hover{background:#fee2e2}.btn.data-status-btn.info-style{color:#0369a1;background:#f0f9ff;border-color:#7dd3fc}.btn.data-status-btn.info-style:hover{background:#e0f2fe}.settings-modal-content{min-width:320px;padding:0}.settings-modal-title{color:#111827;border-bottom:1px solid #e5e7eb;padding:18px 20px 12px;font-size:15px;font-weight:700}.settings-item{cursor:pointer;border-bottom:1px solid #f3f4f6;align-items:flex-start;gap:14px;padding:14px 20px;transition:background .15s;display:flex}.settings-item:hover{background:#f9fafb}.settings-item:last-child{border-bottom:none}.settings-item-icon{flex-shrink:0;margin-top:1px;font-size:20px}.settings-item-text h4{color:#111827;margin:0 0 2px;font-size:13px;font-weight:600}.settings-item-text p{color:#6b7280;margin:0;font-size:11px;line-height:1.4}.settings-item.danger-item:hover{background:#fff5f5}.settings-item.danger-item h4{color:#dc2626}.settings-modal-close{text-align:center;color:#6b7280;cursor:pointer;background:0 0;border:none;border-top:1px solid #e5e7eb;width:100%;padding:10px;font-family:inherit;font-size:12px;display:block}.settings-modal-close:hover{color:#374151;background:#f9fafb}.tabs{background:#f3f4f6;border-radius:6px;padding:2px;display:flex}.tab{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:4px;padding:4px 12px;font-size:12px;font-weight:500}.tab.active{color:#0f766e;background:#fff;box-shadow:0 1px 2px #0000000d}@media print{.no-print{display:none!important}.app.print-mode{background:#fff;height:auto;display:block}.print-area{width:100%!important;overflow:visible!important}.workspace{display:block;overflow:visible!important}@page{size:A3 landscape;margin:10mm}}input[type=date].btn{padding:4px 8px;font-family:inherit}main.workspace{grid-template-columns:auto 1fr;height:100%;display:grid;overflow:hidden}aside.sidebar{box-sizing:border-box;background:#fff;border-right:1px solid #e5e7eb;flex-direction:column;gap:8px;width:280px;min-width:0;padding:12px;transition:width .22s,padding .22s,opacity .15s,border-right-width .22s;display:flex;overflow:hidden auto}aside.sidebar.collapsed{opacity:0;pointer-events:none;border-right-width:0;width:0;padding:0}.sidebar-ctrl{flex-direction:column;flex-shrink:0;align-items:center;gap:2px;display:flex}.sidebar-ctrl-label{color:#6b7280;white-space:nowrap;letter-spacing:.01em;font-size:9px;line-height:1}.sidebar-toggle-btn{cursor:pointer;color:#374151;background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;padding:0;font-size:11px;transition:background .15s;display:flex}.sidebar-toggle-btn:hover{background:#e5e7eb}#sidebar-open-ctrl{display:none}#sidebar-open-ctrl .sidebar-ctrl-label{color:#0f766e;font-weight:600}#sidebar-open-ctrl .sidebar-toggle-btn{color:#047857;background:#f0fdf4;border-color:#6ee7b7}#sidebar-open-ctrl .sidebar-toggle-btn:hover{background:#dcfce7}.sidebar-header-row{justify-content:space-between;align-items:flex-start;gap:6px;display:flex}.sidebar-header-row h3{flex:1}.sidebar h3{color:#374151;letter-spacing:.04em;margin:4px 0;font-size:12px;font-weight:700}.user-search{border:1px solid #d1d5db;border-radius:6px;outline:none;width:100%;padding:6px 10px;font-family:inherit;font-size:12px}.user-search:focus{border-color:#0f766e}.user-list{flex-direction:column;gap:4px;display:flex}.user-card{cursor:grab;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:6px 8px;font-size:12px;transition:all .1s;position:relative}.user-card:active{cursor:grabbing}.user-card:hover{background:#f3f4f6;border-color:#9ca3af;transform:translate(2px)}.user-card.dragging{opacity:.4}.user-card.unavailable{cursor:not-allowed;background:#fef2f2;border-color:#fecaca}.user-card.unavailable:hover{transform:none}.user-card .row1{justify-content:space-between;align-items:center;gap:4px;display:flex}.user-name{color:#1f2937;flex:1;font-weight:600}.user-meta{color:#6b7280;margin-top:2px;font-size:10px}.status-badge{white-space:nowrap;border-radius:10px;padding:1px 6px;font-size:10px;font-weight:600;display:inline-block}.status-home{color:#065f46;background:#d1fae5}.status-hospital{color:#991b1b;background:#fee2e2}.status-short{color:#92400e;background:#fef3c7}.status-paused{color:#374151;background:#e5e7eb}.status-cancelled{color:#5b21b6;background:#ddd6fe}.legend{color:#6b7280;flex-wrap:wrap;gap:6px;padding:2px 0;font-size:10px;display:flex}.legend .swatch{vertical-align:middle;border-radius:3px;width:10px;height:10px;margin-right:2px;display:inline-block}.hint{color:#6b7280;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:8px;font-size:11px;line-height:1.7}section.schedule-area{background:#f9fafb;flex-direction:column;display:flex;overflow:hidden}.schedule-toolbar{background:#fff;border-bottom:1px solid #e5e7eb;align-items:center;gap:12px;padding:8px 12px;display:flex}.title-display{color:#1f2937;font-size:15px;font-weight:700}.subtitle-display{color:#6b7280;font-size:12px}.photo-mode-btn{white-space:nowrap}body.photo-mode .topbar,body.photo-mode aside.sidebar{display:none!important}body.photo-mode .workspace{height:100vh;grid-template-columns:1fr!important}body.photo-mode section.schedule-area{width:100vw;height:100vh}body.photo-mode .schedule-toolbar{z-index:50;padding:6px 10px;position:sticky;top:0}body.photo-mode #sidebar-open-ctrl,body.photo-mode #staff-summary{display:none!important}body.photo-mode .schedule-grid-wrap{height:calc(100vh - 46px);overflow:hidden}body.photo-mode .schedule-date-banner{min-height:26px;padding:4px 8px}body.photo-mode .schedule-date-banner .banner-range{font-size:13px}body.photo-mode .day-view{--slot-height:22px;--time-col-width:44px}body.photo-mode .day-view .grid-table{grid-template-columns:var(--time-col-width) repeat(var(--col-count), minmax(52px, 1fr))}body.photo-mode .day-view .head-cell{height:32px;padding:2px;font-size:10px}body.photo-mode .day-view .time-cell{padding-right:3px;font-size:10px}body.photo-mode .appointment{padding:2px 3px;font-size:9px}body.photo-mode .appointment .apt-dur-badge,body.photo-mode .appointment .apt-service,body.photo-mode .appointment .apt-staff{display:none}body.photo-mode .appointment .apt-time{font-size:9px}body.photo-mode .appointment .apt-name{white-space:nowrap;text-overflow:clip;font-size:14px;line-height:1.05}body.photo-mode .week-two-rows{gap:6px;height:calc(100vh - 86px);padding-bottom:0}body.photo-mode .compact-day-head{font-size:12px}body.photo-mode .compact-day-head .day-num{font-size:13px}body.photo-mode .compact-day-head .day-name,body.photo-mode .compact-day-head .day-cnt,body.photo-mode .compact-staff-head .staff-initial{font-size:10px}body.photo-mode .compact-week-grid .time-cell{padding-right:3px;font-size:10px}body.photo-mode .compact-apt{border-radius:3px;padding:1px 2px;font-size:9px}body.photo-mode .compact-apt .apt-time{font-size:8.5px;line-height:1}body.photo-mode .compact-apt .apt-name{white-space:nowrap;text-overflow:clip;font-size:10.5px;line-height:1}.kana-tabs{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;flex-wrap:wrap;gap:4px;margin:10px 0;padding:8px;display:flex}.kana-tab{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:5px 10px;font-size:12px}.kana-tab:hover{background:#f3f4f6}.kana-tab.active{color:#fff;background:#0f766e;border-color:#0f766e;font-weight:700}.kana-tab .count{opacity:.75;margin-left:2px;font-size:10px}.user-list-meta{color:#6b7280;margin:4px 0 8px;font-size:12px}.schedule-grid-wrap{background:#fff;flex:1;overflow:auto}.grid-table{background:#fff;min-width:100%;display:grid;position:relative}.day-view,.week-view{--time-col-width:56px;--slot-height:30px;--slot-count:24;--start-hour:7;--slot-min:30;--week-day-header-h:38px}.grid-table{grid-template-columns:var(--time-col-width) repeat(var(--col-count), minmax(140px, 1fr));grid-template-rows:38px repeat(var(--slot-count), var(--slot-height));background:#fff;min-width:100%;display:grid;position:relative}.day-view .grid-table{grid-template-columns:var(--time-col-width) repeat(var(--col-count), minmax(0, 1fr))}.week-day-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin:0 0 18px;overflow:hidden;box-shadow:0 1px 3px #0000000a}.week-day-section.is-today{border-color:#5eead4;box-shadow:0 0 0 2px #99f6e4,0 2px 6px #0f766e2e}.week-day-section.is-sun .week-day-header .day-num{color:#dc2626}.week-day-section.is-sat .week-day-header .day-num{color:#2563eb}.week-day-section .grid-table{border-radius:0 0 8px 8px}.week-day-section.is-sun .grid-table .slot-cell:not(.today),.week-day-section.is-sat .grid-table .slot-cell:not(.today){background-color:#fafafa}.week-day-header{z-index:12;height:var(--week-day-header-h);background:linear-gradient(#fff 0%,#f9fafb 100%);border-bottom:2px solid #0f766e;align-items:center;gap:10px;padding:0 14px;font-size:14px;display:flex;position:sticky;top:0}.week-day-header .day-num{color:#0f766e;font-size:16px;font-weight:700}.week-day-header .day-name{color:#6b7280;font-size:12px;font-weight:500}.week-day-header .today-pill{color:#fff;letter-spacing:.04em;background:#0f766e;border-radius:10px;padding:2px 8px;font-size:10px;font-weight:700}.week-day-header .day-stats{color:#6b7280;margin-left:auto;font-size:11px;font-weight:500}.week-day-header .day-stats b{color:#0f766e;font-weight:700}.week-day-section.is-today .week-day-header{background:linear-gradient(#ecfdf5 0%,#d1fae5 100%);border-bottom-color:#047857}.week-view .head-cell{top:var(--week-day-header-h);z-index:8}.week-view .head-cell.corner{z-index:9}.week-view .time-cell{z-index:7}.schedule-date-banner{z-index:30;color:#134e4a;background:linear-gradient(#f0fdfa,#ccfbf1);border-bottom:2px solid #0f766e;align-items:center;gap:10px;padding:8px 16px;font-weight:700;display:flex;position:sticky;top:0}.schedule-date-banner.is-today{background:linear-gradient(#ecfdf5,#99f6e4);border-bottom-color:#047857}.schedule-date-banner .banner-icon{font-size:18px}.schedule-date-banner .banner-label{color:#fff;letter-spacing:.06em;background:#0f766e;border-radius:4px;padding:3px 9px;font-size:11px}.schedule-date-banner .banner-range{letter-spacing:.02em;font-size:15px}.schedule-date-banner .today-pill{color:#fff;background:#047857;border-radius:12px;margin-left:auto;padding:2px 9px;font-size:11px;font-weight:700}.day-view .head-cell,.week-view .compact-day-head{top:42px}.week-view .compact-staff-head,.week-view .corner-sub{top:76px}.compact-week-grid{font-size:11px}.compact-week-grid .head-cell{border-right:1px solid #f3f4f6;padding:0 2px}.compact-day-head{z-index:6;background:#f9fafb;border-bottom:1px solid #d1d5db;justify-content:center;align-items:center;gap:4px;font-size:12px;display:flex;position:sticky;top:0;border-right:2px solid #94a3b8!important}.compact-day-head .day-num{color:#1f2937;font-size:13px;font-weight:700}.compact-day-head .day-name{color:#6b7280;font-size:10px}.compact-day-head .today-pill{padding:1px 5px;font-size:9px}.compact-day-head .day-cnt{color:#6b7280;background:#e5e7eb;border-radius:8px;margin-left:2px;padding:0 4px;font-size:9px}.compact-day-head.today{background:linear-gradient(#ecfdf5,#d1fae5)}.compact-day-head.today .day-num{color:#047857}.compact-day-head.sun .day-num{color:#dc2626}.compact-day-head.sat .day-num{color:#2563eb}.compact-staff-head{z-index:5;text-align:center;background:#fff;border-bottom:2px solid;border-right:1px solid #f3f4f6;flex-direction:column;justify-content:center;align-items:center;padding:1px;font-size:9px;line-height:1.05;display:flex;position:sticky;top:34px}.compact-staff-head .staff-initial{letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:10.5px;font-weight:700;overflow:hidden}.compact-staff-head.is-off .staff-initial{opacity:.7;text-decoration:line-through}.compact-staff-head .off-mark{color:#fff;background:#f59e0b;border-radius:4px;margin-top:1px;padding:0 4px;font-size:8px;font-weight:700}.compact-staff-head.day-end{border-right:2px solid #94a3b8}.compact-week-grid .corner{background:#f3f4f6;font-size:11px;font-weight:600}.compact-week-grid .corner-sub{z-index:7;background:#fafafa;border-bottom:1px solid #d1d5db;border-right:1px solid #e5e7eb;position:sticky;top:34px;left:0}.compact-week-grid .time-cell{color:#9ca3af;background:#fafafa;padding:0 5px 0 0;font-size:9.5px}.compact-week-grid .time-cell.hour{color:#1f2937;border-top:2px solid #d1d5db;margin-top:-1px;font-size:11px;font-weight:700}.compact-week-grid .slot-cell{font-size:0}.compact-week-grid .slot-cell.hour-line{margin-top:-1px;border-top:2px solid #d1d5db!important}.compact-week-grid .slot-cell.day-end{border-right:2px solid #94a3b8}.compact-apt{letter-spacing:-.03em;border-left-width:2px;border-radius:3px;flex-direction:column;justify-content:center;padding:1px 2px 2px 3px;font-size:9px;line-height:1.1;display:flex;left:1px;right:1px;overflow:hidden;box-shadow:0 1px 2px #0003}.compact-apt:after{display:none}.compact-apt .apt-time{opacity:.96;letter-spacing:-.02em;white-space:nowrap;font-size:9px;font-weight:600;line-height:1;overflow:hidden}.compact-apt .apt-name{white-space:nowrap;text-overflow:clip;letter-spacing:-.02em;word-break:keep-all;margin:0;font-size:11px;font-weight:600;line-height:1;display:block;overflow:hidden}.compact-apt.short-card .apt-name{font-size:10.5px}.compact-apt.short-card .apt-time{font-size:8px}.compact-apt .apt-conflict-mark{z-index:2;background:#ffffffb3;border-radius:3px;padding:0 2px;font-size:9px;line-height:1;position:absolute;top:0;right:1px}.compact-apt.day-end{margin-right:1px}.compact-apt[style*="height: 16"],.compact-apt[style*="height: 17"],.compact-apt[style*="height: 18"],.compact-apt[style*="height: 19"]{padding-top:0}.compact-apt[style*="height: 16"] .apt-time,.compact-apt[style*="height: 17"] .apt-time,.compact-apt[style*="height: 18"] .apt-time{display:none}.head-cell{z-index:3;background:#f9fafb;border-bottom:1px solid #d1d5db;border-right:1px solid #e5e7eb;justify-content:center;align-items:center;padding:4px 8px;font-size:12px;font-weight:600;display:flex;position:sticky;top:0}.head-cell.corner{z-index:4;background:#f3f4f6;left:0}.staff-head{flex-direction:row;gap:6px}.staff-head .swatch-bar{border-radius:2px;width:4px;height:20px}.day-header{flex-direction:column;gap:1px}.day-header .day-num{font-size:16px;font-weight:700;line-height:1}.day-header .day-name{color:#6b7280;font-size:10px}.day-header.today{background:#ecfdf5}.day-header.today .day-num{color:#047857}.day-header.weekend.sat .day-num{color:#2563eb}.day-header.weekend.sun .day-num{color:#dc2626}.time-cell{color:#9ca3af;z-index:2;font-variant-numeric:tabular-nums;letter-spacing:-.02em;background:#fafafa;border-bottom:1px solid #0000;border-right:1px solid #e5e7eb;justify-content:flex-end;align-items:flex-start;padding:1px 6px 0 0;font-size:10.5px;display:flex;position:sticky;left:0}.time-cell.hour{color:#1f2937;border-top:2px solid #d1d5db;margin-top:-1px;font-size:12px;font-weight:700}.time-cell.last-of-hour{border-bottom:1px solid #f0f0f2}.slot-cell{background:#fff linear-gradient(#0000 calc(50% - 1px),#f5f5f7 calc(50% - 1px) 50%,#0000 50%);border-right:1px solid #f3f4f6;position:relative}.slot-cell.hour-line{border-top:2px solid #d1d5db;margin-top:-1px}.slot-cell.minor{border-bottom:1px dashed #ebebee}.slot-cell.weekend{background-color:#fafafa}.slot-cell.today{background-color:#f0fdf4}.slot-cell.today.weekend{background-color:#ecfdf5}.slot-cell.drop-active{box-shadow:inset 0 0 0 2px #0f766e;background-color:#0f766e2e!important}.slot-cell.drop-block{box-shadow:inset 0 0 0 2px #dc2626;background-color:#dc262626!important}.slot-cell.staff-off{background-color:#fffbeb!important;background-image:repeating-linear-gradient(45deg,#f59e0b1f 0 6px,#0000 6px 12px),linear-gradient(#0000 calc(50% - 1px),#fde68a calc(50% - 1px) 50%,#0000 50%)!important}.slot-cell.staff-off-morning{background-color:#fffbeb!important;background-image:linear-gradient(to bottom, repeating-linear-gradient(45deg, #f59e0b1f 0 6px, transparent 6px 12px) 0 50%, transparent 50%)!important}.head-cell.staff-head .off-badge{color:#fff;letter-spacing:.04em;background:#f59e0b;border-radius:8px;margin-left:4px;padding:1px 6px;font-size:9px;font-weight:700}.head-cell.staff-head.is-off span:not(.off-badge):not(.swatch-bar){opacity:.7;-webkit-text-decoration:line-through #f59e0b;text-decoration:line-through #f59e0b;text-decoration-thickness:2px}.appointment{color:#fff;cursor:grab;z-index:1;background:#0f766e;border-left:4px solid #ffffff73;border-radius:5px;flex-direction:column;justify-content:center;padding:3px 6px 4px;font-size:11px;line-height:1.25;transition:transform .1s,box-shadow .1s;display:flex;position:absolute;top:1px;left:3px;right:3px;overflow:hidden;box-shadow:0 1px 3px #00000026,inset 0 -2px #0000002e}.appointment:hover{z-index:5;transform:translateY(-1px);box-shadow:0 4px 10px #00000040,inset 0 -2px #0000002e}.appointment:active{cursor:grabbing}.appointment.dragging{opacity:.35}.appointment:after{display:none}.appointment .apt-time{opacity:.92;letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis;font-size:10px;font-weight:600;overflow:hidden}.appointment .apt-name{white-space:nowrap;text-overflow:clip;word-break:keep-all;letter-spacing:-.01em;margin:0;font-size:15px;font-weight:600;line-height:1;display:block;overflow:hidden}.appointment .apt-service{display:none}.appointment .apt-staff{opacity:.85;white-space:nowrap;text-overflow:ellipsis;margin-top:1px;font-size:10px;overflow:hidden}.appointment .apt-dur-badge{color:#fff;letter-spacing:0;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#ffffff40;border:1px solid #ffffff59;border-radius:9px;padding:1px 6px;font-size:9.5px;font-weight:800;display:none;position:absolute;top:3px;right:5px}.appointment.short-card .apt-dur-badge{padding:0 4px;font-size:9px}.appointment.short-card{padding:2px 5px 3px}.appointment.short-card .apt-name{font-size:14px}.appointment.has-overlap{border-left-width:2px;padding-left:3px;padding-right:3px;box-shadow:0 1px 4px #00000038,inset 0 -2px #00000029}.compact-week-grid .appointment.has-overlap .apt-name{font-size:12px}.appointment.warning{background:repeating-linear-gradient(45deg,#dc2626,#dc2626 6px,#b91c1c 6px 12px)}.appointment.cancelled{background:#9ca3af;text-decoration:line-through}.modal-backdrop{z-index:100;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:10px;width:min(640px,92vw);max-height:88vh;padding:20px 22px;overflow-y:auto;box-shadow:0 20px 50px #0000004d}.modal h2{color:#0f766e;margin-bottom:14px;font-size:16px}.modal h3{color:#374151;margin:12px 0 6px;font-size:13px}.field{margin-bottom:10px}.field>label{color:#6b7280;margin-bottom:3px;font-size:11px;font-weight:500;display:block}.field input,.field select,.field textarea{border:1px solid #d1d5db;border-radius:6px;outline:none;width:100%;padding:6px 9px;font-family:inherit;font-size:13px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0f766e}.field textarea{resize:vertical;min-height:60px}.row{gap:8px;display:flex}.row>*{flex:1}.modal-actions{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.event-list{border:1px solid #e5e7eb;border-radius:6px;max-height:200px;margin-bottom:8px;padding:6px;overflow-y:auto}.event-row{grid-template-columns:110px 1fr 1fr 1fr auto;align-items:center;gap:5px;padding:4px 0;display:grid}.event-row:not(:last-child){border-bottom:1px dashed #e5e7eb}.event-row select,.event-row input{padding:4px 6px;font-size:11px}.pattern-row{grid-template-columns:70px 130px 95px 64px 80px 1fr auto;align-items:start;gap:4px;padding:5px 0;display:grid}.pattern-row.needs-followup{background:#fff7ed;border:1px solid #fdba74;border-radius:6px;padding:6px}.pattern-row:not(:last-child){border-bottom:1px dashed #e5e7eb}.pattern-row.needs-followup:not(:last-child){border-bottom:1px solid #fdba74}.pattern-row select,.pattern-row input{padding:4px 6px;font-size:11px}.pattern-row.needs-followup select,.pattern-row.needs-followup input{background:snow;border-color:#fca5a5}.pattern-row-followup{color:#b91c1c;grid-column:1/-1;font-size:10.5px;font-weight:800}.pattern-period-fields{color:#6b7280;flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:6px;font-size:10.5px;display:flex}.pattern-period-fields input{width:138px}.pattern-staff-block{flex-direction:column;gap:3px;display:flex}.pattern-staff-row{align-items:center;gap:3px;display:flex}.pattern-staff-label{color:#6b7280;white-space:nowrap;min-width:42px;font-size:9.5px;font-weight:600}.pair-toggle-btn{cursor:pointer;color:#6b7280;background:#f9fafb;border:1px dashed #d1d5db;border-radius:4px;padding:2px 6px;font-size:10px}.pair-toggle-btn:hover{background:#f3f4f6;border-color:#9ca3af}.time-off-row{grid-template-columns:130px 14px 130px 90px 1fr auto;align-items:center;gap:4px;padding:5px 0;display:grid}.time-off-row:not(:last-child){border-bottom:1px dashed #e5e7eb}.time-off-row select,.time-off-row input{padding:4px 6px;font-size:11px}@media (width<=720px){.pattern-row{grid-template-columns:1fr 1fr 1fr 1fr}.pattern-row [data-ptnote]{grid-column:1/-2}.pattern-row [data-ptdel]{grid-column:-2/-1}}.icon-btn{cursor:pointer;color:#ef4444;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:14px}.icon-btn:hover{background:#fef2f2}.user-table{border-collapse:collapse;width:100%;font-size:12px}.user-table th{text-align:left;background:#f9fafb;border-bottom:1px solid #e5e7eb;padding:6px;font-weight:600}.user-table td{border-bottom:1px solid #f3f4f6;padding:6px}.user-table tr:hover{background:#f9fafb}.user-table .actions{gap:4px;display:flex}.staff-order-row{cursor:grab}.staff-order-row:active{cursor:grabbing}.staff-order-row.dragging{opacity:.45;background:#ecfdf5}.staff-order-row.drop-before{box-shadow:inset 0 3px #0f766e}.staff-order-row.drop-after{box-shadow:inset 0 -3px #0f766e}.staff-drag-handle{color:#64748b;letter-spacing:-2px;cursor:grab;-webkit-user-select:none;user-select:none;padding:2px 6px;font-weight:900;display:inline-block}.notice{border-radius:6px;margin-bottom:10px;padding:10px 12px;font-size:12px}.notice.info{color:#1e40af;background:#dbeafe;border-left:3px solid #2563eb}.notice.warn{color:#92400e;background:#fef3c7;border-left:3px solid #f59e0b}.needs-followup-badge{color:#b91c1c;white-space:nowrap;background:#fef2f2;border:1px solid #fecaca;border-radius:999px;align-items:center;gap:3px;margin-top:3px;padding:2px 8px;font-size:10.5px;font-weight:800;display:inline-flex}.needs-followup-box{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-left:4px solid #f97316;border-radius:7px;margin:8px 0 12px;padding:9px 11px;font-size:12px}.needs-followup-box ul{margin:6px 0 0 18px;padding:0}.needs-followup-box li{margin:2px 0}.field.needs-followup>label{color:#b91c1c;font-weight:800}.field.needs-followup input,.field.needs-followup select,.field.needs-followup textarea{background:snow;border-color:#fca5a5}.pattern-followup{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:999px;align-items:center;padding:1px 7px;font-size:10px;font-weight:800;display:inline-flex}.notice.error{color:#991b1b;background:#fee2e2;border-left:3px solid #dc2626}.staff-chip{background:#f3f4f6;border-radius:12px;align-items:center;gap:4px;padding:3px 8px;font-size:11px;display:inline-flex}.staff-chip .dot{border-radius:50%;width:8px;height:8px}@media (width<=768px){main.workspace{grid-template-columns:1fr}aside.sidebar{display:none}.topbar{padding:6px 8px}.title{font-size:13px}}.week-two-rows{flex-direction:column;gap:10px;padding-bottom:16px;display:flex}.rehab-view{max-width:1200px;padding:16px}.rehab-header{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:10px;display:flex}.rehab-badge{color:#6b7280;background:#f3f4f6;border-radius:10px;padding:3px 8px;font-size:11px}.rehab-legend{flex-wrap:wrap;gap:14px;margin-bottom:16px;font-size:11px;display:flex}.legend-swatch{vertical-align:middle;border:1px solid;border-radius:2px;width:12px;height:12px;margin-right:4px;display:inline-block}.rehab-staff-block{background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:24px;overflow:hidden;box-shadow:0 1px 3px #0000000a}.rehab-staff-header{border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 16px;display:flex}.rehab-dot{border-radius:50%;flex-shrink:0;width:12px;height:12px;display:inline-block}.rehab-role-badge{border-radius:10px;padding:2px 8px;font-size:11px;font-weight:600}.rehab-grid-wrap{overflow-x:auto}.rehab-table{border-collapse:collapse;width:100%;min-width:500px;font-size:11px}.rehab-table th{text-align:center;z-index:1;border:1px solid #e5e7eb;padding:6px 4px;font-weight:600;position:sticky;top:0}.rehab-time-head{color:#6b7280;background:#f9fafb;width:52px;font-size:10px;position:sticky;top:0}.rehab-time-cell{text-align:right;color:#9ca3af;white-space:nowrap;background:#f9fafb;border:1px solid #e5e7eb;height:24px;padding:2px 6px;font-size:10px}.rehab-time-cell.hour{color:#374151;font-size:11px;font-weight:600}body.capturing .grid-area{overflow:visible!important}body.capturing .grid-body{flex:none!important;overflow:visible!important}.dt-wrap{-webkit-overflow-scrolling:touch;background:#fff;padding:10px 0 16px;overflow-x:auto}.dt-title{color:#0f172a;flex-wrap:wrap;align-items:baseline;gap:.75rem;margin-bottom:8px;padding-left:12px;font-weight:700;display:flex}.dt-title .dt-date{letter-spacing:.02em;font-size:1.05rem}.dt-title .dt-meta{color:#64748b;font-size:.75rem;font-weight:500}.dt-table{border-collapse:collapse;table-layout:fixed;color:#0f172a;min-width:max-content;font-size:12px}.dt-table th,.dt-table td{vertical-align:top;border:1px solid #94a3b8}.dt-table th.dt-time-head,.dt-table td.dt-time{text-align:center;font-variant-numeric:tabular-nums;color:#475569;z-index:2;background:#f1f5f9;width:52px;min-width:52px;padding:4px 2px;font-size:11px;font-weight:600;position:sticky;left:0}.dt-table th.dt-staff{text-align:center;white-space:nowrap;background:#f8fafc;width:84px;min-width:84px;padding:5px 4px;font-size:12px;font-weight:700;line-height:1.35}.dt-table th.dt-staff .dt-role{color:#64748b;margin-left:2px;font-size:10px;font-weight:600}.dt-table th.dt-staff.dt-off{color:#94a3b8;background:#f1f5f9}.dt-cell{height:30px;padding:1px 3px}.dt-visit{line-height:1.25;display:block}.dt-visit+.dt-visit{border-top:1px dotted #cbd5e1;margin-top:2px;padding-top:2px}.dt-name{letter-spacing:.01em;white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:700;overflow:hidden}.dt-visit.dt-rehab .dt-name{color:#a21caf}.dt-visit.dt-nurse .dt-name{color:#0f172a}.dt-note{color:#64748b;white-space:normal;word-break:break-all;font-size:9px;line-height:1.3;display:block}.dt-note.dt-warn{color:#b91c1c;font-weight:700}.dt-table tr.dt-break td{background:#e2e8f0;border-left:1px solid #94a3b8;border-right:1px solid #94a3b8;height:10px;padding:0}.dt-unassigned{background:#fef2f2;border:1px solid #fca5a5;border-left:5px solid #ef4444;border-radius:6px;max-width:720px;margin:10px 12px 0;padding:8px 10px;position:sticky;left:12px}.dt-unassigned-head{color:#b91c1c;margin-bottom:5px;font-size:12px;font-weight:700}.dt-unassigned-list{margin:0;padding:0;list-style:none}.dt-unassigned-list li{border-top:1px dotted #fecaca;align-items:baseline;gap:8px;padding:2px 0;font-size:12px;display:flex}.dt-unassigned-list li:first-child{border-top:none}.dt-ua-time{font-variant-numeric:tabular-nums;color:#0f172a;min-width:44px;font-weight:700}.dt-ua-name{color:#0f172a;font-weight:700}.dt-ua-note{color:#7f1d1d;font-size:11px}.dt-empty{text-align:center;color:#94a3b8;padding:2.5rem 1rem;font-size:.9rem}@media print{.dt-wrap{padding:0;overflow:visible}.dt-table{width:100%;min-width:0;font-size:10px}.dt-table th.dt-staff{width:auto;min-width:0}.dt-cell{height:26px}.dt-name{font-size:11px}.dt-table th.dt-time-head,.dt-table td.dt-time{position:static}}.m-root{min-height:100vh;padding-bottom:calc(84px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%;background:#f1f5f9}.m-header{z-index:20;color:#fff;background:#0f766e;padding:.6rem .75rem;position:sticky;top:0;box-shadow:0 2px 8px #0f172a26}.m-header.admin{background:#1d4ed8}.m-datebar{align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.m-datebar button{color:#fff;cursor:pointer;background:#ffffff2e;border:none;border-radius:10px;min-width:44px;min-height:40px;font-size:1rem}.m-datebar .m-date-label{text-align:center;flex:1;font-size:1.05rem;font-weight:700}.m-body{padding:.75rem}.m-section-title{color:#475569;align-items:center;gap:.4rem;margin:1rem 0 .4rem;font-size:.78rem;font-weight:700;display:flex}.m-card{text-align:left;width:100%;min-height:56px;font:inherit;color:inherit;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:.6rem;margin-bottom:.5rem;padding:.7rem .8rem;display:flex}.m-card:active{background:#f8fafc}.m-time{font-variant-numeric:tabular-nums;color:#0f172a;min-width:46px;font-size:.95rem;font-weight:700}.m-name{color:#0f172a;font-size:.98rem;font-weight:700;display:block}.m-sub{color:#64748b;margin-top:2px;font-size:.75rem;display:block}.m-footer{z-index:30;-webkit-backdrop-filter:blur(8px);padding:.5rem .6rem calc(.5rem + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #e2e8f0;gap:.5rem;display:flex;position:fixed;bottom:0;left:0;right:0}.m-btn{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:12px;flex:1;min-height:48px;font-size:.9rem;font-weight:700}.m-btn:active{transform:scale(.98)}.m-btn.primary{color:#fff;background:#10b981;border-color:#10b981}.m-btn.blue{color:#fff;background:#3b82f6;border-color:#3b82f6}.m-btn:disabled{color:#94a3b8;cursor:default;background:#e2e8f0;border-color:#e2e8f0}.m-sheet-backdrop{z-index:100;background:#0f172a73;align-items:flex-end;display:flex;position:fixed;inset:0}.m-sheet{width:100%;max-height:82vh;padding:1rem .9rem calc(1.25rem + env(safe-area-inset-bottom));background:#fff;border-radius:18px 18px 0 0;animation:.2s ease-out m-sheet-up;overflow-y:auto}@keyframes m-sheet-up{0%{opacity:.6;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.m-sheet h3{justify-content:space-between;align-items:center;margin:0 0 .9rem;font-size:1.05rem;display:flex}.m-row{width:100%;min-height:52px;font:inherit;color:inherit;text-align:left;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:.6rem;margin-bottom:.45rem;padding:.6rem .7rem;display:flex}.m-row.selected{background:#eff6ff;border-color:#3b82f6}.m-row:active{background:#f1f5f9}.m-input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:10px;outline:none;width:100%;padding:.75rem .8rem;font-size:1rem}.m-input:focus{border-color:#3b82f6}.m-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.m-badge{white-space:nowrap;border-radius:999px;padding:2px 6px;font-size:.68rem;font-weight:700}.m-tabbar{gap:.35rem;margin-top:.5rem;display:flex}.m-tab{color:#fff;cursor:pointer;background:#ffffff29;border:none;border-radius:9px;flex:1;min-height:38px;font-size:.82rem;font-weight:700}.m-tab.active{color:#0f172a;background:#fff}.m-capture{background:#fff;padding:12px}
