.temp-panel { padding: 0; overflow: auto; background: var(--bg, #f4f6f8); }
.temp-page { width: 100%; min-height: 100%; box-sizing: border-box; }
.temp-heading, .temp-section-title, .temp-execution-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.temp-heading { margin-bottom: 16px; }
.temp-heading-actions { display: flex; align-items: center; gap: 12px; }
.temp-section-title h3 { margin: 0; }
.temp-section-title h3 { font-size: 15px; }
.temp-save-state { color: var(--ui-text-muted); font-size: 13px; }
.temp-save-state.is-pending { color: #8a6200; }
.temp-save-state.is-error, .temp-error { color: #b42318; }
.temp-error { margin: 12px 0; padding: 10px 12px; border: 1px solid #fda29b; border-radius: var(--ui-radius-md); background: #fff1f0; }
.temp-tabs { margin-bottom: 0; }
.temp-tab-pane[hidden] { display: none !important; }
.temp-objects-layout { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr) minmax(250px, .55fr); gap: 14px; align-items: start; }
.temp-object-card, .temp-plans-card { min-width: 0; padding: 14px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); background: var(--ui-surface); }
.temp-section-title { margin-bottom: 10px; }
.temp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--ui-surface); font-size: 13px; }
.temp-table th, .temp-table td { border-right: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); padding: 6px; vertical-align: middle; }
.temp-table th:first-child, .temp-table td:first-child { border-left: 1px solid var(--ui-border); }
.temp-table thead:first-child tr:first-child th { border-top: 1px solid var(--ui-border); }
.temp-table th { text-align: left; }
.temp-table input, .temp-table textarea, .temp-table select, .temp-plan-row input, .temp-plan-row textarea { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 5px; background-color: transparent; color: inherit; font: inherit; padding: 5px 6px; }
.temp-table textarea, .temp-plan-row textarea { resize: vertical; }
.temp-table textarea { min-height: 34px; }
.temp-table input:focus, .temp-table textarea:focus, .temp-table select:focus, .temp-plan-row input:focus, .temp-plan-row textarea:focus { outline: 2px solid var(--ui-focus); border-color: transparent; background-color: var(--ui-surface); }
.temp-table input:disabled, .temp-table textarea:disabled, .temp-table select:disabled, .temp-plan-row input:disabled, .temp-plan-row textarea:disabled { opacity: 1; -webkit-text-fill-color: currentColor; }
.temp-number { min-width: 80px; text-align: right; }
.temp-object-table tfoot th, .temp-object-table tfoot td { background: #e8f0fb; }
.temp-object-table tr.is-setoff td { background: var(--ui-surface-subtle); color: var(--ui-text-muted); }
.temp-setoff-toggle { min-width: 104px; min-height: 30px; border: 0; background: transparent; color: #475467; cursor: pointer; }
.temp-checkbox { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--ui-text-muted); border-radius: 4px; background: var(--ui-surface); vertical-align: middle; }
.temp-delete { min-width: 24px; min-height: 24px; border: 0; background: transparent; color: #b42318; cursor: pointer; }
.temp-delete:disabled, .btn-mini:disabled, .temp-setoff-toggle:disabled { cursor: default; opacity: .45; }
.temp-actions-col { width: 32px; }
.temp-plan-row { position: relative; display: grid; grid-template-columns: 1fr 24px; gap: 5px; margin-top: 8px; padding: 8px; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-md); }
.temp-plan-row input, .temp-plan-row textarea { grid-column: 1; border-color: var(--ui-border-strong); }
.temp-plan-row textarea { min-height: 68px; }
.temp-plan-row .temp-delete { grid-column: 2; grid-row: 1; }
.temp-balance { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 3px 14px; margin: 16px 0 0; width: fit-content; min-width: 280px; padding: 13px 16px; border-radius: 9px; border: 1px solid var(--ui-border-strong); }
.temp-balance span { font-weight: 650; }
.temp-balance strong { font-size: 20px; text-align: right; }
.temp-balance.is-positive { background: #ecfdf3; border-color: #75e0a7; color: #067647; }
.temp-balance.is-negative { background: #fef3f2; border-color: #fda29b; color: #b42318; }
.temp-balance.is-zero { background: var(--ui-surface-subtle); }
.temp-divider { height: 1px; margin: 24px 0; background: var(--ui-border-strong); }
.temp-projects-wrap { max-height: none; }
.temp-project-name { min-width: 260px; }
.temp-project-heading { display: flex; align-items: flex-start; gap: 4px; }
.temp-project-name textarea { min-height: 70px; min-width: 0; flex: 1 1 auto; font-size: 18px; line-height: 1.4; font-weight: 600; }
.temp-project-actions { white-space: nowrap; }
.temp-add-task { min-width: 24px; min-height: 24px; padding: 0 5px; border: 0; background: transparent; color: #067647; font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: middle; }
.temp-add-task:hover { color: #05603a; }
.temp-delete-project { flex: 0 0 24px; width: 24px; height: 28px; margin: 2px 0 0; padding: 0; font-size: 20px; line-height: 1; visibility: hidden; opacity: 0; transition: opacity .12s ease; }
.temp-project-name:hover .temp-delete-project, .temp-project-name:focus-within .temp-delete-project { visibility: visible; opacity: 1; }
.temp-projects-wrap tbody tr:hover > td { box-shadow: none; }
.temp-projects-wrap td.temp-project-name:hover { box-shadow: inset 0 0 0 999px rgba(31, 95, 174, 0.035); }
.temp-execution-toolbar { justify-content: flex-start; margin-bottom: 10px; color: var(--ui-text-muted); font-size: 13px; }
.temp-execution-wrap { height: calc(100vh - 250px); height: calc(100dvh - 250px); min-height: 220px; max-height: none; border: 1px solid var(--ui-border-strong); cursor: grab; }
.temp-execution-wrap.is-dragging { cursor: grabbing; user-select: none; }
.temp-execution-wrap.is-dragging textarea { user-select: none; }
.temp-execution-table { table-layout: fixed; width: max-content; }
.temp-execution-table thead { position: sticky; top: 0; z-index: 4; }
.temp-execution-table th { position: relative; min-width: 0; text-align: center; vertical-align: middle; }
.temp-agreement-head { background: #dce8f8 !important; }
.temp-cell { position: relative; min-width: 0; transition: background .15s ease; }
.temp-cell.is-yellow { background: #fff3bf; }
.temp-cell.is-green { background: #d3f9d8; }
.temp-cell.is-red { background: #ffd6d6; }
.temp-cell[data-status-cell="true"] { cursor: pointer; }
.temp-cell[data-status-cell="true"]:focus-visible { outline-offset: -3px; }
.temp-cell textarea { min-height: 48px; padding: 18px 30px 5px 6px; }
.temp-cell input[type="date"] { padding: 3px 2px; font-size: 12px; }
.temp-cell input.temp-execution-date.is-empty { opacity: 0; }
.temp-cell:hover input.temp-execution-date.is-empty:not(:disabled),
.temp-cell:focus-within input.temp-execution-date.is-empty:not(:disabled) { opacity: 1; }
.temp-owner-select { width: 68px !important; padding: 3px 1px !important; font-size: 12px !important; cursor: pointer; }
.temp-resize-handle { position: absolute; z-index: 5; top: 0; right: -12px; width: 24px; height: 100%; cursor: col-resize; touch-action: none; }
.temp-resize-handle::after { position: absolute; top: 0; right: 11px; width: 2px; height: 100%; background: transparent; content: ""; }
.temp-resize-handle:hover::after, .temp-resize-handle:active::after, .temp-resize-handle:focus-visible::after { background: var(--ui-focus); }
.temp-resize-handle:focus-visible { outline-offset: -2px; }
.temp-comment { position: absolute; top: 3px; right: 3px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: var(--ui-surface); color: var(--ui-text-muted); opacity: 0; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.temp-comment .ui-icon { width: 14px; height: 14px; }
.temp-cell:hover .temp-comment, .temp-comment:focus, .temp-comment.has-comment { opacity: 1; }
.temp-comment.has-comment { color: var(--ui-primary); }
.temp-cell-comment { position: absolute; top: 3px; left: 6px; right: 30px; font-size: 12px; line-height: 1.25; color: var(--ui-text-secondary); white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; pointer-events: none; }
@media (max-width: 1350px) {
  .temp-objects-layout { grid-template-columns: 1fr 1fr; }
  .temp-plans-card { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .temp-objects-layout { grid-template-columns: 1fr; }
  .temp-plans-card { grid-column: auto; }
  .temp-heading { align-items: flex-start; flex-direction: column; }
}
