.relationship-view{min-width:0}.relationship-view .relationship-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:18px 0}.relationship-view .relationship-heading h1,.relationship-view .relationship-heading h2{margin:0 0 6px}.relationship-view .relationship-lead{font-size:17px;margin:8px 0}.relationship-view .relationship-actions{display:flex;flex-wrap:wrap;gap:8px}.relationship-view .relationship-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.relationship-view .relationship-card,.relationship-view .relationship-summary{padding:22px;border:1px solid var(--color-border);border-radius:var(--r-card);background:var(--color-bg-surface);min-width:0}.relationship-view .relationship-card h3{margin:0 0 6px}.relationship-view .relationship-title{font-size:18px;font-weight:700;text-align:left;max-width:100%;overflow-wrap:anywhere}.relationship-view .relationship-meta{display:block;font-size:13px;color:var(--color-text-secondary);margin:6px 0}.relationship-view dl{display:grid;grid-template-columns:minmax(90px,auto) minmax(0,1fr);gap:8px 18px;margin:16px 0}.relationship-view dt{color:var(--color-text-secondary)}.relationship-view dd{margin:0;overflow-wrap:anywhere}.relationship-view .relationship-items{list-style:none;padding:0;margin:0}.relationship-view .relationship-items>li{padding:18px 0;border-bottom:1px solid var(--color-border)}.relationship-view .relationship-items>li:last-child{border-bottom:0}.relationship-view .relationship-identity{margin-top:12px;font-size:12px;color:var(--color-text-secondary)}.relationship-view .relationship-more{margin-top:18px}.relationship-view summary{cursor:pointer;font-weight:600}.relationship-view button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.relationship-view .relationship-entry-link{font-size:14px}.relationship-view .relationship-empty{padding:28px 0}.relationship-entry fieldset{min-width:0}.relationship-entry .relationship-entry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.relationship-entry .relationship-entry-fields>p,.relationship-entry .relationship-entry-fields>button,.relationship-entry .relationship-entry-fields>details{grid-column:1/-1}@media(max-width:650px){.relationship-view .relationship-heading{flex-direction:column;gap:12px}.relationship-view .relationship-card{padding:18px}.relationship-view dl{grid-template-columns:1fr;gap:3px}.relationship-view dd{margin-bottom:10px}.relationship-entry .relationship-entry-fields{grid-template-columns:1fr}}

.relationship-view .project-register{max-width:100%;overflow:auto;margin-top:20px}.relationship-view .project-register table{width:100%;border-collapse:collapse;text-align:left}.relationship-view .project-register th{font-size:13px;color:var(--color-text-secondary);background:var(--color-bg-subtle)}.relationship-view .project-register th,.relationship-view .project-register td{padding:16px;border-bottom:1px solid var(--color-border);vertical-align:top;overflow-wrap:anywhere}.relationship-view .project-register td:first-child{width:36%}.relationship-view [data-project-filters] details .form-grid{margin-top:12px}@media(max-width:650px){.relationship-view .project-register th,.relationship-view .project-register td{padding:10px;font-size:13px}.relationship-view .project-register table{min-width:520px}}

/* Authorized workspace tables and actor-local presentation controls. */
#task-entry form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#task-entry form fieldset>legend,#task-entry form fieldset>p,#task-entry form fieldset>button{grid-column:1/-1}#task-entry input[type=checkbox]{width:auto;align-self:flex-start}#task-entry .task-change{display:flex;align-items:center;gap:8px}#task-entry textarea{min-height:80px}@media(max-width:700px){#task-entry form fieldset{grid-template-columns:1fr}}
.work-table-scroll{overflow:auto;max-width:100%}.work-table{width:100%;border-collapse:collapse;min-width:720px}.work-table caption{text-align:left;font-weight:700;padding:12px 0}.work-table th,.work-table td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--color-border)}.work-table th{background:var(--color-bg-subtle);white-space:nowrap}.work-table td{min-width:100px}.work-cell-meta{display:flex;flex-wrap:wrap;gap:6px;color:var(--color-text-secondary);font-size:.9em;margin-top:6px}.work-badge{display:inline-block;border-radius:var(--r-pill);padding:2px 8px;font-size:.85em;font-weight:600;background:var(--color-bg-subtle);color:var(--color-text)}.work-overdue{background:var(--red-soft);color:var(--red-strong)}.work-today{background:var(--amber-soft);color:var(--amber-strong)}.work-done{background:var(--green-soft);color:var(--green-strong)}.work-cancelled,.work-unscheduled,.work-unknown{background:var(--color-bg-subtle);color:var(--color-text-secondary)}.work-counts{display:flex;flex-wrap:wrap;gap:16px;font-variant-numeric:tabular-nums}.work-count-overdue{color:var(--red-strong)}.work-time-note{font-size:.85em}.work-queue{margin:20px 0}.work-table td button{white-space:normal;text-align:left}

.table-settings{margin:12px 0;padding:10px;border:1px solid var(--color-border);border-radius:var(--r-control)}.table-settings summary{cursor:pointer;font-weight:600}.table-settings ol{max-width:520px;padding-left:24px}.table-settings li{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:6px 0}.table-settings label{display:flex;align-items:center;gap:8px}.table-settings input{width:auto}.table-settings button{padding:4px 10px}

/* Keep existing table controls in one row and preserve document labels. */
[data-personal-table] .table-settings li>label{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;margin:0}
[data-personal-table] .table-settings input[type=checkbox]{display:inline-block;flex:0 0 auto;width:auto;min-width:0;margin:0;align-self:center}
[data-document-directory] .table-wrap{max-width:100%;overflow-x:auto}
[data-document-directory] .table-wrap table{min-width:780px;table-layout:auto}
[data-document-directory] .table-wrap thead th{white-space:nowrap;word-break:normal;overflow-wrap:normal}
[data-document-directory] .table-wrap tbody th[scope=row]{min-width:14ch;white-space:nowrap;word-break:normal;overflow-wrap:normal}
[data-document-directory] .table-wrap :is(th,td):nth-child(4){min-width:3.5rem;white-space:nowrap;text-align:center}
[data-document-directory] .table-wrap td:nth-child(3){min-width:6rem;word-break:keep-all}

[data-project-directory]>.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
a.button[data-export-xlsx]{display:inline-block;border:1px solid var(--color-border-strong);border-radius:var(--r-control);padding:8px 14px;background:var(--color-bg-surface);color:var(--color-text);text-decoration:none;white-space:nowrap}
a.button[data-export-xlsx]:hover{border-color:var(--color-primary-500)}

/* 표 설정: 열 추가(선택 목록)·열별 제거, 숫자·날짜 열 머리글 정렬 버튼. 인사이트 열 지연 기한 강조. */
.table-settings .table-column-name{min-width:0;overflow-wrap:anywhere}.table-settings li>span:last-child{display:inline-flex;flex-wrap:wrap;gap:4px;flex:0 0 auto}
.table-settings .table-add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:12px 0;max-width:520px}.table-settings .table-add label{display:flex;flex-direction:column;align-items:stretch;gap:4px;flex:1 1 220px;min-width:0;margin:0}.table-settings .table-add select{width:100%;min-width:0}
.work-table th button.table-sort{all:unset;cursor:pointer;font:inherit;font-weight:inherit;color:inherit;white-space:nowrap;border-radius:var(--r-control)}.work-table th button.table-sort:focus-visible{outline:2px solid var(--color-focus-border);outline-offset:2px}
.work-table th[aria-sort=ascending],.work-table th[aria-sort=descending]{color:var(--color-text)}
.insight-overdue{color:var(--red-strong);white-space:nowrap}
/* F4b (U-10): 경영진 전사 영업의 셀별 묶음(지연 프로젝트·이번 주 기한). 한 줄 = 사업 · 할 일 · 담당 · 기한. */
.company-work-cell h3{font-size:15px;margin:14px 0 6px}
.company-work-list{list-style:none;margin:0;padding:0}
.company-work-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) minmax(0,.6fr) minmax(0,1fr);gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--color-border)}
.company-work-row>*{min-width:0;overflow-wrap:anywhere}
.company-work-row time.home-overdue{color:var(--hb-overdue);font-weight:700}
@media(max-width:800px){.company-work-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.company-work-row>a{grid-column:1/-1;font-weight:600}}
/* F4b (U-08): 판단 점검 대기 사유 표지(한 낱말). */
.judgment-reason{display:inline-block;margin:0 4px;padding:1px 8px;border-radius:999px;background:var(--color-bg-subtle);color:var(--color-text);font-size:12px;font-weight:600;white-space:nowrap}
