/* 報告・相談履歴：請求書管理と同じ、中央メイン＋右側ヘルプの固定レイアウト */
body:has(#view-logs.active-view){overflow:hidden}
#view-logs.active-view{height:calc(100vh - 100px);overflow:hidden}
#view-logs.active-view .logs-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px;height:calc(100vh - 118px);min-height:0}
#view-logs.active-view .logs-main-panel{min-width:0;min-height:0;padding:18px;display:flex;flex-direction:column}
#view-logs.active-view .logs-page-head{flex:0 0 auto;margin-bottom:12px}
#view-logs.active-view .logs-page-head h2{margin:0 0 4px;color:#25342d;font-size:19px}
#view-logs.active-view .logs-filterbar{flex:0 0 auto;grid-template-columns:minmax(0,1fr) 220px;margin-bottom:12px}
#view-logs.active-view .logs-table-wrap{height:auto;flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
#view-logs.active-view .logs-table{width:100%;min-width:0;table-layout:fixed}
#view-logs.active-view .logs-table th,#view-logs.active-view .logs-table td{white-space:normal;word-break:break-word;vertical-align:top;line-height:1.55}
#view-logs.active-view .logs-table th:nth-child(1),#view-logs.active-view .logs-table td:nth-child(1){width:8%}
#view-logs.active-view .logs-table th:nth-child(2),#view-logs.active-view .logs-table td:nth-child(2){width:12%}
#view-logs.active-view .logs-table th:nth-child(3),#view-logs.active-view .logs-table td:nth-child(3){width:22%}
#view-logs.active-view .logs-table th:nth-child(4),#view-logs.active-view .logs-table td:nth-child(4){width:18%}
#view-logs.active-view .logs-table th:nth-child(5),#view-logs.active-view .logs-table td:nth-child(5){width:30%}
#view-logs.active-view .logs-table th:nth-child(6),#view-logs.active-view .logs-table td:nth-child(6){width:10%}
#view-logs.active-view .log-content-summary,#view-logs.active-view .log-answer-summary{display:block;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;-webkit-box-orient:initial;white-space:normal}
#view-logs.active-view .log-answer-cell{grid-template-columns:minmax(0,1fr) auto;gap:8px}
#view-logs.active-view .log-status{justify-self:end}
.logs-help-side{min-width:0;min-height:0;overflow:hidden}
.logs-help-panel{height:100%;overflow:auto;padding:16px}
.logs-help-panel .panel-title{margin-bottom:12px}
.logs-manual-row{cursor:pointer;border-top:1px solid var(--line);padding:12px 0}
.logs-manual-row small{display:block;line-height:1.45;margin-top:3px}
.log-contact-lines>div{margin-bottom:5px}.log-contact-lines b{display:block}.log-contact-lines small{display:block;color:var(--muted)}
.log-category-chip,.log-status-badge,.log-report-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;line-height:1.2;white-space:nowrap}
.log-category-chip.group-one{background:#e5f0ed;color:#47766b}.log-category-chip.group-two{background:#e9e5f3;color:#6e5c8d}.log-category-chip.group-three{background:#edf0e6;color:#697653}
.log-status-badge.waiting{background:#eee9fb;color:#6f5b9d;border:1px solid #ddd3f2}.log-status-badge.review{background:#fff0d8;color:#9a6a1d;border:1px solid #efd39d}.log-status-badge.done{background:#e7f3fb;color:#4b7892;border:1px solid #c8e1ef}.log-status-badge.other{background:#f1f3f1;color:#69736c;border:1px solid #d9dfda}
.log-report-badge{background:#e5f0e6;color:#527b5b;border:1px solid #c9dfcc;margin-bottom:4px}.log-report-lines{font-weight:600}.log-report-empty{color:#9aa29c}
.log-contact-row{display:grid;grid-template-columns:54px minmax(0,1fr) 150px minmax(0,1fr);gap:8px;align-items:end;border:1px solid var(--line);border-radius:7px;padding:9px;margin-bottom:8px}.log-contact-index{font-size:11px;color:var(--muted);padding-bottom:9px}.log-contact-row label{display:grid;gap:5px;color:var(--muted);font-size:11px}.log-contact-row input,.log-contact-row select{width:100%;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;color:var(--ink);font:12px inherit}.contact-other-field[hidden]{display:none}
@media(max-width:900px){#view-logs.active-view{height:auto;overflow:visible}body:has(#view-logs.active-view){overflow:auto}#view-logs.active-view .logs-page-layout{display:block;height:auto}.logs-help-side{margin-top:14px;overflow:visible}.logs-help-panel{height:auto}.log-contact-row{grid-template-columns:1fr 1fr}.log-contact-index{grid-column:1/-1;padding-bottom:0}}
