.report-view{min-width:0}.report-view[hidden]{display:none}
.report-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.report-head h1{margin:0}.report-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.report-days{display:flex;align-items:center;gap:6px;font-size:var(--fs-xs);color:#5b6b7f}.report-days select{padding:7px 8px;border:1px solid #c9d2de;border-radius:8px;background:#fff;font:inherit}
.report-meta{margin:4px 0 14px;color:#6f7d90;font-size:var(--fs-xs)}.report-final{color:#17794c}.report-tentative{color:#8a5a00}
.report-scroll{overflow-x:auto;border:1px solid rgba(169,190,219,.35);border-radius:var(--r-md);background:#fff}
.report-table{width:100%;min-width:900px;border-collapse:collapse;font-size:var(--fs-sm)}
.report-table th{padding:10px 12px;background:#e9edf2;color:#2c3a4d;font-weight:700;white-space:nowrap;text-align:center;border-bottom:1px solid #c9d2de}
.report-table td{padding:9px 12px;text-align:center;border-bottom:1px solid #e4e9f0;white-space:nowrap}
/* 머리글 칸마다 세로 구분선, 본문은 담당자·병원명·상품명·목표 DB단가 열 오른쪽에 구분선 */
.report-table th{border-right:1px solid #8a99ae}.report-table th:last-child{border-right:0}
.report-table td.report-product,.report-table td.report-target{border-right:1px solid #9aa8bc}
.report-table .report-hospital{font-weight:700;background:#fafbfc;border-right:1px solid #9aa8bc}
.report-table .report-product{text-align:left}.report-mark{margin-left:4px;color:#b07a00;font-style:normal;cursor:help}
.report-strong{font-weight:700}.report-strong.over{color:#b4232f}
.report-morning.good{color:#17794c}.report-morning.bad{color:#b4232f}.report-morning.warn{color:#8a5a00}
.report-input{width:92px;padding:4px 6px;border:1px solid transparent;border-radius:6px;background:transparent;text-align:center;font:inherit;color:inherit}
.report-input:hover,.report-input:focus{border-color:#b9c6d8;background:#fff;outline:none}.report-input.bad{border-color:#d9534f}
.report-rest{margin-top:12px;font-size:var(--fs-xs);color:#5b6b7f}.report-rest summary{cursor:pointer}.report-rest ul{margin:8px 0 0;padding-left:18px}
.report-empty{padding:28px 8px}
.group-report{margin:10px 0 0;padding:10px 12px;border:1px solid rgba(169,190,219,.4);border-radius:var(--r-md)}
.group-report legend{padding:0 6px;font-size:var(--fs-xs);color:#5b6b7f}
.group-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.group-report-grid label span{display:block;margin-bottom:3px;font-size:var(--fs-2xs);color:#6f7d90}
.group-report-grid input,.group-report-grid select{width:100%}
@media(max-width:720px){.group-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.report-table th.report-key{background:#dbe7f7;color:#12315c}
.report-table td.report-key{background:#f4f8ff;font-size:14.5px;font-weight:700;color:#12233b}
.report-table tr.manager-start>td{border-top:3px solid #3f5473}   /* 담당자가 바뀌는 곳은 굵고 진한 선 */
.report-table tr.hospital-start>td{border-top:2px solid #9aa8bc}   /* 병원이 바뀌는 곳 */
.report-table td.report-morning{border-left:1px solid #9aa8bc}
.report-morning{font-weight:600}.report-morning .m-cpa{font-size:14.5px;font-weight:700}.report-morning .m-change{font-size:12.5px;font-weight:600}
.report-table td.drop-into{box-shadow:inset 0 0 0 2px #1473e6;background:#e8f1fd}
.report-add-actions{display:flex;gap:8px;margin-top:12px}
.m-change.good{color:#17794c}.m-change.bad{color:#b4232f}.m-none{font-size:13px;font-weight:600}.m-none.warn{color:#8a5a00}
.report-grip{display:inline-block;margin-right:6px;color:#9aa8bb;cursor:grab;user-select:none;font-size:14px;line-height:1}.report-grip:hover{color:#1473e6}.report-grip:active{cursor:grabbing}
.report-table tr.dragging{opacity:.45}
.report-table tr.drop-before td{box-shadow:inset 0 3px 0 #1473e6}.report-table tr.drop-after td{box-shadow:inset 0 -3px 0 #1473e6}
.report-table .report-manager{font-weight:800;background:#eef2f8;border-right:1px solid #9aa8bc;min-width:72px}.report-manager .none{color:#9aa8bb;font-weight:600}
.report-manager-select{display:block;margin:5px auto 0;max-width:120px;padding:2px 4px;border:1px solid #d5deea;border-radius:6px;background:#fff;color:#5b6b7f;font-size:11px}
.report-table th.report-ref{background:#eceef1;color:#6f7d90;font-weight:600}.report-table td.report-ref{background:#f7f8fa;color:#7b8798;font-weight:400}
.report-text{width:130px;text-align:left}.report-product .report-text{width:150px}
.report-group-btn{margin-left:8px;padding:1px 7px;border:1px solid #c9d2de;border-radius:6px;background:#fff;color:#4a5a70;font:inherit;font-size:11px;cursor:pointer}.report-group-btn:hover{border-color:#1473e6;color:#1473e6}
.report-group-card{width:min(640px,100%)}.report-group-rule{margin:0;font-size:var(--fs-sm);line-height:1.6}
.report-group-list{margin:0;padding:0;list-style:none;max-height:50vh;overflow:auto;font-size:var(--fs-sm)}.report-group-list li{padding:5px 0;border-bottom:1px solid #eef1f5}
.report-group-list i{display:inline-block;min-width:34px;margin-right:8px;padding:1px 6px;border-radius:5px;background:#e9edf2;color:#6f7d90;font-style:normal;font-size:11px;font-weight:700;text-align:center}.report-group-list i.on{background:#dff3e8;color:#17794c}
.report-product-flex{display:flex;align-items:center;gap:6px}.report-product-flex .report-group-btn{margin-left:auto}   /* 수정 모드: 분류 버튼은 칸 오른쪽 끝에 */
.report-newrow td{background:#f4f8ff;border-top:2px dashed #9fb4d3;vertical-align:top}.report-newrow .report-product{text-align:left}
input.report-new,select.report-new{box-sizing:border-box;padding:5px 7px;border:1px solid #b9c6d8;border-radius:6px;background:#fff;font:inherit;font-size:13px;color:inherit}
.report-newrow input.report-new{width:100%;min-width:90px}.report-newrow .report-product select.report-new{display:block;width:170px;margin:0 0 4px}.report-newrow .report-product input.report-new{display:block;width:170px;margin:0 0 4px}.report-newrow td:nth-child(4) input.report-new{width:90px;margin-bottom:4px}
.report-new-manager{background:#eef2f8}
.report-picked{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.report-pick-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 4px 3px 10px;border-radius:999px;background:#eef2ff;color:#27408b;font-size:12px;font-weight:700}
.report-pick-chip button{border:0;border-radius:50%;width:18px;height:18px;background:#d7defa;color:#27408b;cursor:pointer;line-height:1}
.report-pick-search{display:grid;gap:5px;font-size:var(--fs-xs);color:#5b6b7f}.report-group-card .combo{width:100%}
#groupInfoBody.busy{opacity:.5;pointer-events:none}
#reportEdit.active{background:#1473e6;border-color:#1473e6;color:#fff}
.report-hint{margin:8px 2px 0;color:#7b8798;font-size:var(--fs-2xs)}
.report-modal{position:fixed;z-index:1800;inset:0;display:grid;place-items:center;padding:20px;background:rgba(17,29,47,.42);backdrop-filter:blur(2px)}.report-modal[hidden]{display:none}
.report-modal-card{display:flex;flex-direction:column;gap:12px;width:min(1100px,100%);max-height:calc(100vh - 40px);padding:18px 20px;border-radius:14px;background:#fff;box-shadow:0 20px 50px rgba(17,29,47,.3);overflow:auto}
.report-modal-card h3{margin:0;font-size:var(--fs-md)}.report-modal-field{display:flex;align-items:center;gap:10px;font-size:var(--fs-sm)}.report-modal-field span{color:#5b6b7f}.report-modal-field select{padding:7px 10px;border:1px solid #c9d2de;border-radius:8px;background:#fff;font:inherit}
.report-preview{overflow:auto;border:1px solid #e1e7f0;border-radius:10px;background:#f7f9fc;padding:8px}.report-preview img{display:block;max-width:100%;height:auto;margin:0 auto}
.report-drag-ghost{position:fixed;z-index:3000;pointer-events:none;padding:5px 10px;border-radius:8px;background:#1473e6;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 6px 18px rgba(20,60,120,.3);transform:translate(14px,14px)}
body.report-dragging,body.report-dragging *{cursor:grabbing!important;user-select:none!important}   /* 끄는 동안 마우스 모양 */
