.project-weekly{color:var(--foreground);background:var(--card);padding:16px}.project-weekly-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.project-weekly-toolbar h2{font-size:18px;font-weight:650}.project-weekly-toolbar p,.project-weekly-help{font-size:13px;line-height:1.7}.project-weekly-navigation{flex-wrap:wrap;gap:6px;display:flex}.project-weekly-help{color:var(--muted-foreground);margin:12px 0}.project-weekly-scroll{border:1px solid var(--border);border-radius:8px;max-height:72vh;overflow:auto}.project-weekly table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1512px}.project-weekly th,.project-weekly td{border-bottom:1px solid var(--border);border-right:1px solid var(--border);vertical-align:top;text-align:left;width:150px;padding:10px;font-size:13px;font-weight:400}.project-weekly tr>:first-child{z-index:2;background:var(--card);width:312px;box-shadow:1px 0 0 var(--border);position:sticky;left:0}.project-weekly thead th{z-index:3;background:var(--muted);font-weight:600;position:sticky;top:0}.project-weekly thead th:first-child{z-index:4}.project-weekly th[aria-current=date],.project-weekly td[data-current-week=true]{background:color-mix(in srgb, var(--primary) 5%, var(--card))}.project-weekly-name{text-underline-offset:3px;overflow-wrap:anywhere;text-align:left;min-height:44px;font-size:15px;font-weight:650;text-decoration:underline}.project-weekly th p{overflow-wrap:anywhere;margin:6px 0}.project-weekly-next button{text-align:left;min-height:44px;font-weight:600}.project-weekly details{margin-top:10px}.project-weekly summary{cursor:pointer;min-height:36px}.project-weekly li{border-bottom:1px solid var(--border);padding:8px 0}.project-weekly li button{text-align:left;overflow-wrap:anywhere;min-height:44px;display:block}.project-weekly li button+button{color:var(--primary);text-decoration:underline}.project-weekly-period{min-height:24px;margin-bottom:6px;font-size:11px}.project-weekly-period span{background:color-mix(in srgb, var(--primary) 16%, var(--card));border-radius:3px;padding:3px 5px;display:block}.project-weekly-marker{border:1px solid var(--border);text-align:left;overflow-wrap:anywhere;background:var(--background);border-radius:6px;width:100%;min-height:44px;margin-bottom:6px;padding:8px;display:block}.project-weekly-marker span{margin-bottom:4px;font-size:11px;display:block}.project-weekly-marker[data-state=期限超過],.milestone-overdue{color:#a23c24}.project-weekly-marker[data-state=完了]{color:var(--muted-foreground);background:var(--muted)}.project-weekly-marker[data-state=完了] strong{text-decoration:line-through}.project-weekly button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.project-milestone-editor{border:1px solid var(--border);border-radius:8px;margin:12px 0;padding:16px}.project-milestone-editor h3{margin-bottom:12px;font-weight:650}.project-milestone-editor fieldset{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;display:grid}.project-milestone-editor label{min-width:0;font-size:14px;display:block}.project-milestone-editor input,.project-milestone-editor select{width:100%;min-width:0;min-height:44px}.project-milestone-editor select{background:var(--card);border:1px solid var(--border);border-radius:6px}.project-milestone-editor .project-milestone-check{align-items:center;gap:8px;display:flex}.project-milestone-check input{width:18px}.project-milestone-editor fieldset>div{flex-wrap:wrap;grid-column:1/-1;gap:8px;display:flex}.project-weekly-error{color:#a23c24;padding:10px 0}@media (max-width:640px){.project-weekly{padding:10px}.project-weekly table{min-width:1344px}.project-weekly tr>:first-child{width:144px}.project-weekly th>button:not(.project-weekly-name){white-space:normal;width:100%;height:auto;min-height:44px}.project-milestone-editor fieldset{grid-template-columns:minmax(0,1fr)}.project-weekly-navigation button{min-height:44px}}.project-weekly tr>:first-child{width:260px}.project-weekly table{min-width:1460px}.project-weekly tbody th{padding-right:54px;position:sticky}.project-weekly-name{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:0;font-size:14px;line-height:1.5;display:-webkit-box;overflow:hidden}.project-weekly th p{color:var(--muted-foreground);margin:3px 0;font-size:12px}.project-weekly-row-actions{display:grid;position:absolute;top:8px;right:5px}.project-weekly-row-actions button{width:40px;height:40px;color:var(--primary);border-radius:6px;font-size:20px}.project-weekly-row-actions button:hover{background:var(--muted)}.project-weekly-period{min-height:6px;margin:8px -10px}.project-weekly-period span[aria-label=案件の期間]{border-radius:0;height:4px;padding:0;font-size:0}.project-weekly-marker{border:0;border-left:2px solid var(--primary);background:0 0;border-radius:0;margin-bottom:6px;padding:4px 6px}.project-weekly-marker strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.5;display:-webkit-box;overflow:hidden}.project-weekly-marker span{font-size:10px}.project-weekly-marker[data-state=期限超過]{border-left-color:#a23c24}.project-weekly-marker[data-state=完了]{border-left-color:var(--border);background:0 0}.project-milestone-list{border:1px solid var(--border);border-radius:8px;max-height:320px;margin:12px 0;padding:12px;overflow:auto}.project-milestone-list-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.project-milestone-list-heading h3{font-size:14px;font-weight:600}@media (max-width:640px){.project-weekly tr>:first-child{width:144px}.project-weekly table{min-width:1344px}.project-weekly tbody th{padding-bottom:42px;padding-right:10px}.project-weekly-row-actions{display:flex;top:auto;bottom:0;right:5px}.project-weekly-row-actions button{width:44px;height:40px}}.project-weekly td.project-weekly-cell{min-width:150px;position:relative}.project-weekly-cell-add{width:100%;height:100%;min-height:44px;color:var(--muted-foreground);cursor:pointer;background:0 0;border:0;position:absolute;inset:0}.project-weekly-cell-add:hover:not(:disabled){background:color-mix(in srgb,var(--primary) 7%,transparent)}.project-weekly-cell-add:focus-visible{outline:2px solid var(--primary);outline-offset:-3px;background:var(--accent)}.project-weekly-cell-add:disabled{cursor:default}.project-weekly-cell .project-weekly-period{pointer-events:none;position:relative}.project-weekly-cell .project-weekly-marker{z-index:1;min-height:44px;position:relative}.project-milestone-week{color:var(--muted-foreground);flex-basis:100%;font-size:12px}
