*{box-sizing:border-box}body{margin:0;font-family:Pretendard,Apple SD Gothic Neo,Malgun Gothic,sans-serif;background:#f4f6f8;color:#1f2937}.login-wrap{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#0f172a}.login-copyright{color:#ffffff59;font-size:12px;margin:0}.login-box{background:#fff;padding:40px;border-radius:12px;width:340px;display:flex;flex-direction:column;gap:12px}.login-box h1{font-size:18px;margin-bottom:8px}.login-box input{padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px}.login-box button{background:#2563eb;color:#fff;border:none;padding:10px;border-radius:8px;cursor:pointer;font-weight:600}.error{color:#dc2626;font-size:13px}.success-text{color:#047857;font-size:13px}.danger-text{color:#b91c1c}.app-shell-v{display:flex;flex-direction:column;height:100vh}.topbar{position:sticky;top:0;z-index:30;height:56px;flex-shrink:0;background:#111827;color:#fff;display:flex;align-items:center;padding:0 20px;gap:24px}.topbar-title{font-weight:700;font-size:16px;white-space:nowrap}.topbar-nav{display:flex;gap:4px;flex:1}.topbar-tab{color:#cbd5e1;text-decoration:none;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:500}.topbar-tab.active,.topbar-tab:hover{background:#1f2937;color:#fff}.topbar-user{display:flex;align-items:center;gap:10px;font-size:13px;color:#9ca3af;white-space:nowrap}.topbar-user button{background:#374151;color:#fff;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:12px}.app-body{flex:1;overflow:hidden;display:flex;flex-direction:column}.page-column{display:flex;flex-direction:column;height:100%;overflow:hidden}.page-scroll{flex:1;overflow-y:auto;padding:20px}.subbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #e5e7eb;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.subbar-tabs{display:flex;gap:6px}.subbar-tab{padding:8px 16px;border:none;background:transparent;border-radius:8px;cursor:pointer;font-size:14px;color:#4b5563}.subbar-tab.active{background:var(--accent-tint, #eff6ff);color:var(--accent, #2563eb);font-weight:600}.subbar-right{display:flex;gap:8px;align-items:center}.theme-eswt{--accent: #16a34a;--accent-tint: #ecfdf5}.patients-body{flex:1;display:flex;overflow:hidden}.patient-sidebar{width:300px;flex-shrink:0;border-right:1px solid #e5e7eb;background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding:14px;gap:10px}.patient-sidebar-header{display:flex;flex-direction:column;gap:8px}.btn-block{width:100%;padding:9px;border:none;border-radius:8px;background:var(--accent, #2563eb);color:#fff;cursor:pointer;font-weight:600}.btn-secondary{background:#e5e7eb;color:#1f2937;border:none;border-radius:8px;padding:8px 14px;cursor:pointer}.btn-danger{background:#dc2626;color:#fff;border:none;border-radius:8px;padding:8px 14px;cursor:pointer;font-weight:600}.patient-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.patient-list-item{padding:10px 12px;border-radius:8px;cursor:pointer}.patient-list-item:hover{background:#f3f4f6}.patient-list-item.active{background:var(--accent-tint, #eff6ff);border:1px solid var(--accent, #93c5fd)}.patient-list-name{font-weight:600;font-size:14px}.patient-list-meta{font-size:12px;color:#6b7280}.patient-list-empty{color:#9ca3af;font-size:13px;padding:12px}.sidebar-title-row{display:flex;align-items:center;gap:6px;margin:4px 0 2px}.sidebar-title{margin:0;font-size:13px;font-weight:700;color:#374151}.icon-btn{width:24px;height:24px;border:none;background:#e5e7eb;color:#374151;border-radius:6px;cursor:pointer;font-size:13px;line-height:1;flex-shrink:0;display:flex;align-items:center;justify-content:center}.icon-btn:hover{background:#d1d5db}.register-form{display:flex;flex-direction:column;gap:8px}.register-form input,.register-form textarea,.register-form select{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;width:100%}.register-form-actions{display:flex;gap:8px;grid-column:1 / -1}.patient-detail{flex:1;overflow-y:auto;padding:20px}.empty-state{color:#9ca3af;font-size:14px;padding:40px;text-align:center}.patient-info-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:6px}.patient-info-header h2{font-size:18px;margin:0}.patient-info-actions{display:flex;align-items:center;gap:10px}.patient-info p{margin:4px 0;font-size:13px}.chart-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}.patient-top-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:12px;align-items:start;margin-bottom:12px}.patient-top-left{display:flex;flex-direction:column;gap:12px}.patient-top-grid .patient-info,.patient-top-grid .card{margin-bottom:0}.patient-top-calendar{max-width:540px;justify-self:end}.chip-group{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:8px 14px;border:1.5px solid var(--accent, #2563eb);background:var(--accent-tint, #eff6ff);border-radius:12px;cursor:pointer;font-size:13px;color:var(--accent, #2563eb);font-weight:600}.chip-active{background:var(--accent, #2563eb);color:#fff;border-color:var(--accent, #2563eb)}.chip-active:hover{background:var(--accent, #2563eb);filter:brightness(.95)}.bodypart-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}.bodypart-btn{border:1.5px solid var(--accent, #2563eb);background:var(--accent-tint, #eff6ff);border-radius:12px;padding:10px 6px;cursor:pointer;text-align:center;display:flex;flex-direction:column;gap:2px}.bodypart-btn-kr{font-size:14px;font-weight:700;color:var(--accent, #2563eb)}.bodypart-btn-en{font-size:11px;color:var(--accent, #2563eb);opacity:.75}.bodypart-btn-active{background:var(--accent, #2563eb);border-color:var(--accent, #2563eb)}.bodypart-btn-active:hover{background:var(--accent, #2563eb);filter:brightness(.95)}.bodypart-btn-active .bodypart-btn-kr{color:#fff}.bodypart-btn-active .bodypart-btn-en{color:#ffffffd9;opacity:1}.objective-block{grid-column:1 / -1;display:flex;flex-direction:column;gap:10px;background:#f9fafb;border-radius:8px;padding:12px}.objective-row{display:flex;flex-direction:column;gap:6px}.objective-label{font-size:12px;font-weight:700;color:#374151}.objective-group{background:#f9fafb;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:10px}.objective-group-title{font-size:13px;font-weight:700;color:#111827}.objective-preview{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;padding:10px 12px;font-size:13px;white-space:pre-line;color:#047857}.field-label{display:block;font-size:11px;color:#6b7280;margin-bottom:3px}.section-divider{border:none;border-top:1px solid #e5e7eb;margin:14px 0}.vas-input{display:flex;align-items:center;gap:10px}.vas-input input[type=range]{flex:1}.vas-number{width:60px!important;flex-shrink:0}.emr-preview-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.emr-preview{background:#111827;color:#d1fae5;padding:12px 14px;border-radius:8px;font-size:12px;white-space:pre-wrap;font-family:SFMono-Regular,Consolas,monospace;overflow-x:auto;margin:10px 0}.chart-form-width{max-width:1000px;margin:0 auto}.chart-form-width input:not([type=range]),.chart-form-width select,.chart-form-width textarea{border:1.5px solid var(--accent, #2563eb);background:var(--accent-tint, #eff6ff)}.form-subtitle{display:block;font-size:15px;color:#111827;margin-bottom:2px}.autosize-textarea{overflow:hidden;resize:none}.spray-stretch-textarea{overflow-y:auto;resize:vertical;max-height:600px}.section-toggle-row{display:flex;align-items:center;justify-content:space-between}.toggle-switch-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--accent, #2563eb);cursor:pointer}.toggle-switch-label input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent, #2563eb);cursor:pointer}.overview-stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:0}.overview-stats .stat-item{flex:1 1 calc(50% - 5px);min-width:130px}.stat-item-manual{background:#eff6ff!important}.stat-item-eswt{background:#ecfdf5!important}.overview-write-btn{flex:0 0 auto;align-self:center;padding:0 20px;height:100%;min-height:52px}.btn-sm{padding:4px 10px!important;font-size:12px!important}.simple-chart-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:400px;overflow-y:auto}.simple-chart-list-item{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid #f1f5f9;font-size:13px}.simple-chart-date{color:#6b7280;flex-shrink:0;width:90px}.simple-chart-summary{flex:1;color:#1f2937}.month-calendar-header{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:10px}.month-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.month-calendar-weekdays{margin-bottom:4px}.month-calendar-weekday{text-align:center;font-size:12px;color:#9ca3af;font-weight:600;padding:4px 0}.month-calendar-cell{min-height:52px;border:1px solid #f1f5f9;border-radius:6px;padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box}.month-calendar-cell.empty{border:none}.month-calendar-day{font-size:12px;color:#374151}.month-calendar-legend{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;font-size:11px;color:#6b7280;align-items:center}.legend-swatch{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:4px;vertical-align:middle;box-sizing:border-box}.legend-swatch-manual-chart{background:#dbeafe;border:2px solid #2563eb}.legend-swatch-eswt-chart{background:#dcfce7;border:2px solid #16a34a}.legend-swatch-manual-appt{background:transparent;box-shadow:inset 0 0 0 2px #2563eb}.legend-swatch-eswt-appt{background:transparent;box-shadow:inset 0 0 0 2px #16a34a}.month-calendar-compact .month-calendar-cell{min-height:51px;padding:3px}.month-calendar-compact .month-calendar-day{font-size:15px}.month-calendar-compact .month-calendar-weekday{font-size:15px;padding:3px 0}.month-calendar-compact .month-calendar-header{margin-bottom:9px;font-size:18px}.month-calendar-compact .month-calendar-legend{font-size:13px;gap:10px;margin-top:10px}.schedule-nav-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}.schedule-nav-spacer{min-width:1px}.staff-schedule-info{font-size:12px;color:#4b5563;line-height:1.6;display:flex;flex-direction:column;align-items:flex-end;justify-self:end}.staff-schedule-info b{color:#111827}.schedule-date-row{display:flex;align-items:center;gap:8px}.schedule-date-row input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px}.schedule-date-weekday{font-size:13px;color:#4b5563;font-weight:600}.schedule-date-row button{padding:8px 14px;border:none;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer;font-weight:600}.week-quickaccess{display:flex;align-items:center;gap:6px}.week-nav-btn{width:32px;height:32px;border:none;background:#e5e7eb;color:#4b5563;border-radius:8px;cursor:pointer;font-size:14px;flex-shrink:0}.week-nav-btn:hover{background:#d1d5db}.week-days{display:flex;gap:6px}.week-day-btn{min-width:64px;border:2px solid transparent;background:#eff6ff;border-radius:8px;padding:6px 8px;cursor:pointer;text-align:center}.week-day-btn:hover{background:#dbeafe}.week-day-btn.active{background:#2563eb;color:#fff}.week-day-btn.is-today{border-color:#f97316}.week-day-btn.is-saturday:not(.active) .week-day-date,.week-day-btn.is-saturday:not(.active) .week-day-name{color:#1e3a8a;font-weight:700}.week-day-date{font-size:13px;font-weight:600}.week-day-name{font-size:11px;color:inherit;opacity:.8}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.page-header h1,.page-header h3{margin:0}.muted{color:#6b7280;font-size:13px;font-weight:400}.balance-badge{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;padding:8px 14px;border-radius:8px;font-weight:600;font-size:14px;white-space:nowrap}.card{background:#fff;border-radius:10px;padding:16px;margin-bottom:12px;box-shadow:0 1px 2px #0000000f}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;align-items:start}.form-grid input,.form-grid select,.form-grid textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;width:100%}.form-grid textarea{grid-column:span 2;min-height:50px}.form-grid button:not(.chip):not(.bodypart-btn){background:var(--accent, #2563eb);color:#fff;border:none;border-radius:6px;padding:10px;cursor:pointer;font-weight:600}.search-bar{display:flex;gap:8px}.search-bar input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;flex:1}.search-bar button{border:none;border-radius:6px;padding:8px 14px;background:#e5e7eb;cursor:pointer}.range-picker{display:flex;align-items:center;gap:6px}.range-picker input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}.table th,.table td{padding:10px 12px;text-align:left;border-bottom:1px solid #f1f5f9;font-size:13px}.table th{background:#f9fafb;color:#6b7280;font-weight:600}.clickable-row{cursor:pointer}.clickable-row:hover{background:#f9fafb}.negative{color:#dc2626}.tabs{display:flex;gap:6px;margin-bottom:16px}.tab{padding:8px 14px;border:none;background:#e5e7eb;border-radius:8px;cursor:pointer;font-size:13px}.tab.active{background:var(--accent, #2563eb);color:#fff}.action-cell{display:flex;gap:4px}.action-cell button{border:1px solid #d1d5db;background:#fff;border-radius:6px;padding:4px 8px;cursor:pointer;font-size:12px}.bar-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.bar-label{width:220px;flex-shrink:0;font-size:13px;color:#374151}.bar-track{flex:1;background:#f1f5f9;border-radius:6px;height:14px;overflow:hidden}.bar-fill{height:100%;background:#2563eb;border-radius:6px}.bar-value{width:110px;flex-shrink:0;text-align:right;font-size:13px;color:#374151}.period-picker{display:flex;align-items:center;gap:8px}.period-picker input,.period-picker select{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px}.period-range-label{font-size:13px;color:#374151;font-weight:600}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:10px}.stat-item{background:#f9fafb;border-radius:8px;padding:10px 12px}.stat-label{font-size:12px;color:#6b7280;margin-bottom:4px}.stat-value{font-size:16px;font-weight:700;color:#111827}.stat-subgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:16px}.schedule-grid-scroll{flex:1;overflow:auto}.schedule-grid{min-width:720px}.schedule-grid-header{display:flex;position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e5e7eb}.schedule-grid-corner{width:62px;flex-shrink:0;border-right:1px solid #f1f5f9}.schedule-grid-room-header{flex:1;padding:10px 8px;text-align:center;font-weight:600;font-size:13px;border-right:1px solid #f1f5f9}.schedule-grid-body{display:flex;position:relative}.time-axis{width:62px;flex-shrink:0;position:relative;border-right:1px solid #f1f5f9}.time-axis-mark{position:absolute;left:0;right:0;transform:translateY(-7px);font-size:13px;font-weight:700;color:#374151;text-align:right;padding-right:6px}.room-column{flex:1;position:relative;border-right:1px solid #e5e7eb}.room-column-manual{background:#eef4ff}.room-column-eswt{background:#eefcf3}.room-slot{border-bottom:1px solid rgba(15,23,42,.04);cursor:pointer}.room-slot-hour{border-bottom:1px solid rgba(15,23,42,.14)}.room-column-manual .room-slot:hover{background:#dbeafe}.room-column-eswt .room-slot:hover{background:#d1fae5}.now-line{position:absolute;left:62px;right:0;height:0;border-top:2px solid #ef4444;z-index:5;pointer-events:none}.now-line:before{content:"";position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:#ef4444}.appt-block{position:absolute;border-radius:6px;padding:2px 6px;overflow:hidden;cursor:pointer;z-index:2;box-shadow:0 1px 2px #00000026;display:flex;flex-direction:column;justify-content:center;gap:1px}.appt-block-line1{font-size:11px;font-weight:700;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.appt-block-line2{font-size:10px;font-weight:500;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.appt-session-badge{display:inline-block;background:#111827bf;color:#fff;border-radius:4px;padding:0 4px;font-size:10px;font-weight:700;margin-right:4px}.presc-badge{display:inline-block;border-radius:4px;padding:0 4px;font-size:10px;font-weight:700;margin-right:4px;color:#fff}.presc-badge-et{background:#16a34a}.presc-badge-bm{background:#d97706}.presc-badge-use{background:#6b7280}.presc-badge-none{background:#9ca3af}.presc-status-banner{border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600;margin-bottom:10px}.presc-status-et{background:#ecfdf5;color:#047857}.presc-status-bm{background:#fffbeb;color:#b45309}.presc-status-use{background:#f3f4f6;color:#4b5563}.presc-status-none{background:#f9fafb;color:#9ca3af}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100}.modal-box{background:#fff;border-radius:12px;width:480px;max-height:88vh;overflow-y:auto;padding:20px}.modal-box-sm{width:380px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.modal-header h3{margin:0}.modal-close{border:none;background:none;font-size:20px;cursor:pointer;color:#6b7280}.modal-form{display:flex;flex-direction:column;gap:8px}.modal-form label{font-size:12px;color:#6b7280;margin-top:4px}.modal-form input,.modal-form select,.modal-form textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;width:100%;font-family:inherit}.modal-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.modal-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;flex-wrap:wrap}.patient-picker-row{display:flex;gap:8px;align-items:flex-start}.patient-picker-row .searchable-select{flex:1}.searchable-select{position:relative}.searchable-select input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;width:100%}.searchable-select-list{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #0000001a;max-height:220px;overflow-y:auto;z-index:200}.searchable-select-item{padding:8px 12px;cursor:pointer;font-size:13px}.searchable-select-item:hover,.searchable-select-item.highlighted{background:#eff6ff}.searchable-select-sub{font-size:11px;color:#9ca3af}.searchable-select-empty{padding:10px 12px;font-size:12px;color:#9ca3af}
