body { background-color: #f5f7fb; } .card { border-radius: 0.5rem; } .table td input.form-control-sm, .table td select.form-select-sm { min-width: 8rem; } .circuit-tree-table .section-row td { background: #e9eef8; border-top: 2px solid #c6d3ea; font-weight: 600; } .circuit-tree-table .summary-row td { background: #f5f8fd; font-weight: 600; } .circuit-tree-table .device-row td { background: #ffffff; } .circuit-tree-table .reserve-row td { background: #f8fbff; } .circuit-tree-table .placeholder-row td { background: #f7f7f7; color: #6c757d; font-style: italic; } .circuit-tree-table .indented-cell { padding-left: 1.5rem; } .tree-editor-shell { display: flex; flex-direction: column; gap: 0.75rem; } .editor-toolbar { display: flex; gap: 0.5rem; position: relative; } .editor-toolbar button { border: 1px solid #c4cddc; background: #fff; padding: 0.28rem 0.6rem; border-radius: 4px; font-size: 0.82rem; } .editor-toolbar button:disabled { opacity: 0.45; } .column-settings-menu { position: absolute; z-index: 9; margin-top: 2rem; border: 1px solid #cfd7e5; background: #fff; border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); padding: 0.45rem; width: 300px; } .column-settings-actions { display: flex; justify-content: flex-end; margin-bottom: 0.35rem; } .column-settings-list { display: flex; flex-direction: column; gap: 0.25rem; max-height: 340px; overflow: auto; } .column-settings-item { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; border: 1px solid transparent; border-radius: 4px; padding: 0.2rem 0.25rem; } .column-settings-item.dragging { opacity: 0.55; } .column-settings-item.drop-target { border-color: #2b6cb0; background: #ebf4ff; } .column-settings-item.locked { background: #f7fafc; } .column-settings-item label { display: flex; gap: 0.3rem; align-items: center; font-size: 0.8rem; } .column-settings-order { display: flex; gap: 0.2rem; } .column-settings-order button { border: 1px solid #c4cddc; background: #fff; border-radius: 3px; font-size: 0.72rem; padding: 0.08rem 0.28rem; } .tree-grid-wrap { overflow: auto; border: 1px solid #d9dee8; background: #fff; } .tree-editor-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0.75rem; min-height: 560px; } .project-device-sidebar { border: 1px solid #d9dee8; background: #fff; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.55rem; } .project-device-sidebar h3 { margin: 0; font-size: 1rem; } .project-device-sidebar input, .project-device-sidebar select { width: 100%; border: 1px solid #cfd7e5; border-radius: 4px; padding: 0.25rem 0.35rem; } .project-device-list { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 0.4rem; } .project-device-item { border: 1px solid #d5ddec; background: #f8faff; text-align: left; padding: 0.4rem; border-radius: 4px; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.8rem; } .project-device-item.selected { border-color: #4c7dd9; background: #edf3ff; } .project-device-item.dragging { opacity: 0.55; border-style: dashed; } .sidebar-actions { display: flex; flex-direction: column; gap: 0.5rem; } .sidebar-actions label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.82rem; } .sidebar-actions button { border: 1px solid #c4cddc; background: #fff; border-radius: 4px; padding: 0.3rem 0.45rem; font-size: 0.82rem; } .tree-grid { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 0.9rem; } .tree-grid th, .tree-grid td { border: 1px solid #e4e9f2; padding: 0.35rem 0.5rem; white-space: nowrap; vertical-align: middle; } .tree-grid th { background: #f4f7fb; position: sticky; top: 0; z-index: 2; vertical-align: top; } .tree-grid .header-cell { display: flex; align-items: center; gap: 0.3rem; } .tree-grid .header-sort-btn, .tree-grid .header-filter-btn { border: 1px solid #c4cddc; background: #fff; border-radius: 3px; font-size: 0.75rem; padding: 0.15rem 0.35rem; } .tree-grid .header-sort-btn { text-align: left; } .tree-grid .header-filter-btn.active { border-color: #2563eb; color: #2563eb; } .tree-grid .header-filter-menu { position: absolute; z-index: 7; margin-top: 0.2rem; border: 1px solid #cfd7e5; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); width: 220px; max-height: 260px; overflow: auto; padding: 0.35rem; } .tree-grid .header-filter-clear { border: 1px solid #c4cddc; background: #fff; border-radius: 3px; font-size: 0.72rem; padding: 0.12rem 0.3rem; margin-bottom: 0.25rem; } .tree-grid .header-filter-values { display: flex; flex-direction: column; gap: 0.15rem; } .tree-grid .header-filter-item { display: flex; align-items: center; gap: 0.25rem; font-weight: 400; font-size: 0.75rem; } .tree-grid .num { text-align: right; } .tree-grid .section-row td { background: #e8eef8; font-weight: 600; } .tree-grid .section-drop-cell { padding: 0.45rem 0.6rem; } .tree-grid .section-content { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; } .tree-grid .section-actions { display: flex; gap: 0.35rem; } .tree-grid .section-actions button { border: 1px solid #c4cddc; background: #fff; padding: 0.2rem 0.45rem; border-radius: 3px; font-size: 0.78rem; } .tree-grid .summary-row td { background: #f3f7fd; } .tree-grid .device-row td:first-child { color: #6b7280; } .tree-grid .empty-circuit-row td { background: #f8fbff; } .tree-grid tr.row-selected td { background: #eaf1ff; } .tree-grid .placeholder-row td { background: #f7f7f7; color: #6b7280; font-style: italic; } .tree-grid .cell-editable { cursor: text; } .tree-grid .device-drag-handle { cursor: grab; } .tree-grid .device-drag-handle.device-dragging { opacity: 0.55; } .tree-grid .circuit-drag-handle { cursor: grab; } .tree-grid .circuit-dragging-block td { opacity: 0.55; } .tree-grid .cell-selected { outline: 2px solid #4c7dd9; outline-offset: -2px; } .tree-grid input { width: 100%; min-width: 5rem; border: 1px solid #9fb6e0; border-radius: 2px; padding: 0.2rem 0.3rem; } .tree-grid .action-cell { display: flex; gap: 0.3rem; } .tree-grid .action-cell button { border: 1px solid #c4cddc; background: #fff; padding: 0.2rem 0.45rem; border-radius: 3px; font-size: 0.78rem; } .tree-grid .drop-target-active { box-shadow: inset 0 0 0 2px #4c7dd9; background: #eef4ff !important; } .tree-grid .drop-target-invalid { box-shadow: inset 0 0 0 2px #d97706; background: #fff7ed !important; } .tree-grid tr.circuit-insert-before td, .tree-grid tr.circuit-insert-after td { position: relative; } .tree-grid tr.circuit-insert-before td::before { content: ""; position: absolute; left: -1px; right: -1px; top: -2px; border-top: 4px solid #2563eb; pointer-events: none; } .tree-grid tr.circuit-insert-before td:first-child::after { content: ""; position: absolute; left: -7px; top: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #2563eb; pointer-events: none; } .tree-grid tr.circuit-insert-after td::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -2px; border-bottom: 4px solid #2563eb; pointer-events: none; } .tree-grid tr.circuit-insert-after td:first-child::before { content: ""; position: absolute; left: -7px; bottom: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #2563eb; pointer-events: none; } .drop-hint { font-size: 0.75rem; color: #1f4ea3; font-weight: 600; } .notice { padding: 0.5rem 0.75rem; border-radius: 4px; border: 1px solid transparent; } .notice.info { background: #ebf3ff; border-color: #bad1f7; } .notice.error { background: #fdecec; border-color: #f5b5b5; } .notice.muted { background: #f6f6f6; border-color: #e4e4e4; } .todo-hint { color: #6b7280; font-size: 0.8rem; margin: 0; } @media (max-width: 1200px) { .tree-editor-layout { grid-template-columns: 1fr; } }