*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #141414; --surface: #1e1e1e; --surface-raised: #252525; --border: #2d2d2d; --border-focus: #4a7fc1; --text: #e0e0e0; --text-dim: #888; --text-faint: #555; --accent: #5b9cf6; --accent-hover: #7ab3ff; --danger: #e05555; --danger-hover: #f07070; --success: #4caf50; --warning: #ff9800; --purple: #ab7de8; --badge-physical-bg: #1a3320; --badge-physical-text: #6fcf97; --badge-bom-bg: #332a10; --badge-bom-text: #f2c94c; --badge-digital-bg: #251a33; --badge-digital-text: #bb6bd9; --font: 'Segoe UI', system-ui, sans-serif; --font-mono: 'Fira Code', 'Cascadia Code', monospace; } body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 0.95rem; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; } /* ===== HEADER ===== */ header { display: flex; align-items: center; gap: 2rem; padding: 0.75rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .app-title { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; } nav { display: flex; gap: 0.25rem; } .nav-btn { background: none; border: none; color: var(--text-dim); padding: 0.4rem 1rem; cursor: pointer; border-radius: 4px; font-size: 0.9rem; font-family: inherit; transition: color 0.1s, background 0.1s; } .nav-btn:hover { color: var(--text); background: var(--surface-raised); } .nav-btn.active { color: var(--accent); background: rgba(91, 156, 246, 0.12); } /* ===== MAINTENANCE MENU ===== */ .maint-menu { margin-left: auto; position: relative; } .maint-toggle { background: none; border: none; color: var(--text-dim); font-size: 1.2rem; cursor: pointer; padding: 0.3rem 0.5rem; border-radius: 4px; line-height: 1; transition: color 0.1s, background 0.1s; } .maint-toggle:hover { color: var(--text); background: var(--surface-raised); } .maint-dropdown { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); min-width: 240px; z-index: 200; padding: 0.3rem; } .maint-item { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: inherit; font-size: 0.9rem; padding: 0.5rem 0.75rem; cursor: pointer; border-radius: 4px; transition: background 0.1s; } .maint-item:hover { background: var(--surface-raised); } /* ===== LIGHTBOX ===== */ #lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out; } #lightbox[hidden] { display: none; } #lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 3px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); } /* ===== MAIN ===== */ #main { flex: 1; padding: 1.5rem; min-width: 0; } /* ===== SPLIT LAYOUT ===== */ .split-layout { display: flex; gap: 1.25rem; align-items: flex-start; } .list-pane { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0.5rem; position: sticky; top: calc(3rem + 1.5rem); /* header + main padding */ max-height: calc(100vh - 3rem - 3rem); overflow-y: auto; } .quick-add-input { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); color: var(--text); padding: 0.45rem 0.65rem; border-radius: 4px; font-size: 0.9rem; font-family: inherit; width: 100%; transition: border-color 0.1s; } .quick-add-input:focus { outline: none; border-color: var(--accent); } .quick-add-input::placeholder { color: var(--text-faint); } .component-list { display: flex; flex-direction: column; gap: 0.25rem; } .detail-pane { flex: 1; min-width: 0; min-height: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; } /* ===== DETAIL PANEL ===== */ .detail-placeholder { display: flex; align-items: center; justify-content: center; height: 300px; color: var(--text-faint); font-size: 0.9rem; } .detail-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; } .detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; } .detail-header h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.2rem; } .detail-header p { color: var(--text-dim); font-size: 0.9rem; } .detail-header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; } .detail-block { display: flex; flex-direction: column; gap: 0.6rem; } .detail-block-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; display: flex; align-items: center; justify-content: space-between; } .detail-field-row { display: grid; grid-template-columns: 10rem 1fr; gap: 0.5rem; font-size: 0.9rem; padding: 0.2rem 0; } .detail-field-name { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem; } .detail-field-value { font-family: var(--font-mono); font-size: 0.85rem; } .detail-empty-note { color: var(--text-faint); font-size: 0.85rem; } /* ===== IMAGE GRID ===== */ .detail-images-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; } .image-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; } .image-thumb { position: relative; width: 80px; height: 80px; flex-shrink: 0; } .thumb-img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); display: block; cursor: pointer; transition: border-color 0.1s; } .thumb-img:hover { border-color: var(--accent); } .thumb-delete { position: absolute; top: -6px; right: -6px; width: 1.4rem; height: 1.4rem; font-size: 0.7rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); opacity: 0; transition: opacity 0.1s; } .image-thumb:hover .thumb-delete { opacity: 1; } .btn-add-image { display: inline-flex; align-items: center; padding: 0 0.75rem; height: 80px; background: var(--surface-raised); border: 1px dashed var(--border); border-radius: 4px; color: var(--text-dim); font-size: 0.85rem; cursor: pointer; transition: color 0.1s, border-color 0.1s; white-space: nowrap; } .btn-add-image:hover { color: var(--text); border-color: var(--accent); } .btn-add-image-sm { height: 40px; font-size: 0.8rem; } /* ===== DETAIL INVENTORY ENTRIES ===== */ .detail-inventory-list { display: flex; flex-direction: column; gap: 0.5rem; } .detail-inv-entry { border: 1px solid var(--border); border-radius: 4px; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; } .detail-inv-header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; } .detail-inv-ref { font-weight: 500; flex: 1; min-width: 0; } .detail-inv-qty { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-dim); } .detail-inv-notes { font-size: 0.85rem; color: var(--text-dim); } .detail-inv-images { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem; } .cell-thumb-link { display: block; border: 2px solid var(--accent, #5b9cf6); border-radius: 3px; overflow: hidden; flex-shrink: 0; } .cell-thumb-link .thumb-img { display: block; width: 128px; height: 128px; object-fit: cover; } /* ===== SECTION TOOLBAR ===== */ .section-toolbar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; } .section-note { flex: 1; color: var(--text-dim); font-size: 0.85rem; } /* ===== SEARCH & FILTER ===== */ .search-input { flex: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.75rem; border-radius: 4px; font-size: 0.9rem; font-family: inherit; transition: border-color 0.1s; } .search-input:focus { outline: none; border-color: var(--border-focus); } .filter-select { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.75rem; border-radius: 4px; font-size: 0.9rem; font-family: inherit; cursor: pointer; } .filter-select.wide { flex: 1; } .filter-select:focus { outline: none; border-color: var(--border-focus); } /* ===== DATA TABLES ===== */ .data-table { width: 100%; border-collapse: collapse; margin-top: 0.25rem; } .data-table th { padding: 0.4rem 0.75rem; text-align: left; font-size: 0.75rem; font-weight: normal; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); border-bottom: 1px solid var(--border); white-space: nowrap; } .data-table td { padding: 0.5rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--border); } .data-table .data-row:hover td { background: var(--surface-raised); } .data-table .col-type { width: 7rem; } .data-table .col-qty { width: 5rem; } .data-table .col-unit { width: 6rem; } .data-table .col-actions { width: 5rem; } /* ===== ITEM LIST ===== */ .item-list { display: flex; flex-direction: column; gap: 0.25rem; } .empty-state { color: var(--text-faint); text-align: center; padding: 3rem 1rem; font-size: 0.9rem; } /* ===== COMPONENT ROWS (list pane) ===== */ .component-row { padding: 0.5rem 0.65rem; border-radius: 4px; cursor: pointer; transition: background 0.1s; border: 1px solid transparent; } .component-row:hover { background: var(--surface-raised); } .component-row.selected { background: rgba(91, 156, 246, 0.12); border-color: var(--accent); } .component-name { font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .component-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.2rem; } /* ===== FIELD TAGS ===== */ .field-tag { display: inline-flex; align-items: center; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 3px; font-size: 0.78rem; overflow: hidden; } .tag-name { padding: 0.1rem 0.4rem; color: var(--text-dim); border-right: 1px solid var(--border); font-family: var(--font-mono); } .tag-value { padding: 0.1rem 0.4rem; color: var(--text); font-family: var(--font-mono); } .type-pill { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em; } .type-pill.type-physical { background: var(--badge-physical-bg); color: var(--badge-physical-text); } .type-pill.type-bom { background: var(--badge-bom-bg); color: var(--badge-bom-text); } .type-pill.type-digital { background: var(--badge-digital-bg); color: var(--badge-digital-text); } .inv-quantity { font-family: var(--font-mono); font-size: 0.9rem; } .inv-notes { color: var(--text-dim); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fdef-name { font-family: var(--font-mono); font-size: 0.9rem; } .fdef-unit { color: var(--text-dim); font-size: 0.85rem; } .fdef-description { color: var(--text-dim); font-size: 0.85rem; } /* ===== ACTION BUTTONS ===== */ .row-actions { display: flex; align-items: center; gap: 0.25rem; } .btn-icon { background: none; border: 1px solid transparent; color: var(--text-dim); width: 2rem; height: 2rem; border-radius: 4px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: color 0.1s, border-color 0.1s, background 0.1s; font-family: inherit; } .btn-icon:hover { color: var(--text); border-color: var(--border); background: var(--surface-raised); } .btn-icon.btn-danger:hover { color: var(--danger); border-color: var(--danger); } /* ===== BUTTONS ===== */ .btn { border: none; border-radius: 4px; padding: 0.45rem 1rem; cursor: pointer; font-size: 0.9rem; font-family: inherit; font-weight: 500; transition: background 0.1s, color 0.1s; white-space: nowrap; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-hover); } .btn-secondary { background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover { background: #333; } .btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: var(--danger-hover); } .btn:disabled { opacity: 0.35; cursor: not-allowed; } /* ===== DIALOGS ===== */ .app-dialog { background: var(--surface); color: var(--text); border: 1px solid #3a3a3a; border-radius: 8px; padding: 1.5rem; width: min(500px, 95vw); font-family: inherit; /* global * reset zeroes margin, which pins dialogs to top-left */ margin: auto; } .app-dialog-sm { width: min(360px, 95vw); } .app-dialog::backdrop { background: rgba(0, 0, 0, 0.65); } .dialog-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text); } .form-row { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; } .form-row[hidden] { display: none; } .form-row label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); } .label-hint { text-transform: none; letter-spacing: normal; font-style: italic; color: var(--text-faint); } .form-row input[type="text"], .form-row input[type="search"] { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.45rem 0.75rem; border-radius: 4px; font-size: 0.9rem; font-family: inherit; transition: border-color 0.1s; } .form-row input:focus { outline: none; border-color: var(--border-focus); } .form-section-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); margin-bottom: 0.5rem; margin-top: 0.25rem; border-top: 1px solid var(--border); padding-top: 0.75rem; } /* Field input rows inside component dialog */ .c-field-input-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; } .c-field-input-label { font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-mono); display: flex; align-items: baseline; gap: 0.3rem; } .c-field-unit-hint { font-size: 0.75rem; color: var(--text-faint); } .c-field-value { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.35rem 0.6rem; border-radius: 4px; font-size: 0.85rem; font-family: var(--font-mono); transition: border-color 0.1s; } .c-field-value:focus { outline: none; border-color: var(--border-focus); } .add-field-row { margin-top: 0.25rem; } .dialog-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); } .confirm-message { color: var(--text-dim); margin-bottom: 0.5rem; font-size: 0.95rem; line-height: 1.5; } /* ===== TEMPLATES SECTION ===== */ .template-list { display: flex; flex-direction: column; gap: 0.75rem; } .template-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; } .template-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; } .template-card-name { font-weight: 600; } .template-card-formatter { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); white-space: pre-wrap; margin: 0; } .code-input { font-family: var(--font-mono); font-size: 0.85rem; width: 100%; resize: vertical; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 0.5rem; } .tmpl-preview-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; min-height: 1.5rem; } .tmpl-preview-value { font-family: var(--font-mono); color: var(--accent, #5b9cf6); } .section-empty-note { color: var(--text-dim); font-size: 0.9rem; margin: 1rem 0; } /* ===== TAB BAR ===== */ .tab-bar { display: flex; gap: 0.25rem; flex: 1; } .tab-btn { background: none; border: 1px solid transparent; border-bottom: 2px solid transparent; color: var(--text-dim); padding: 0.35rem 0.9rem; cursor: pointer; font-size: 0.9rem; font-family: inherit; border-radius: 4px 4px 0 0; transition: color 0.1s, border-color 0.1s; } .tab-btn:hover { color: var(--text); } .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: rgba(91, 156, 246, 0.07); } /* ===== SOURCE IMAGE GALLERY ===== */ .source-gallery { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.5rem; } .source-card { position: relative; width: 140px; display: flex; flex-direction: column; gap: 0.3rem; } .source-card-link { display: block; } .source-card-img { width: 140px; height: 100px; object-fit: cover; border-radius: 5px; border: 2px solid var(--border); display: block; cursor: pointer; transition: border-color 0.1s; } .source-card-img:hover { border-color: var(--accent); } .source-card.selectable .source-card-img { cursor: pointer; } .source-card.selectable:hover .source-card-img { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 156, 246, 0.3); } .source-card-meta { font-size: 0.75rem; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .source-card-delete { position: absolute; top: -6px; right: -6px; width: 1.4rem; height: 1.4rem; font-size: 0.7rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); opacity: 0; transition: opacity 0.1s; } .source-card:hover .source-card-delete { opacity: 1; } /* ===== PICKER DIALOG ===== */ .app-dialog-wide { width: min(820px, 95vw); } .picker-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; } .picker-hint { font-size: 0.85rem; color: var(--text-faint); } .picker-gallery { max-height: 60vh; overflow-y: auto; padding: 0.25rem; border: 1px solid var(--border); border-radius: 4px; min-height: 120px; } /* ===== GRIDS SECTION ===== */ .draft-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px dashed var(--border); border-radius: 6px; padding: 0.75rem 1rem; cursor: pointer; transition: border-color 0.1s; } .draft-card:hover { border-color: var(--accent); } .draft-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warning); border: 1px solid var(--warning); border-radius: 3px; padding: 0.1rem 0.4rem; flex-shrink: 0; } .draft-card-info { flex: 1; min-width: 0; } .draft-card-name { font-weight: 500; } .draft-card-meta { font-size: 0.82rem; color: var(--text-dim); } .grid-card-list { display: flex; flex-direction: column; gap: 0.5rem; } .grid-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem 1rem; cursor: pointer; transition: border-color 0.1s; } .grid-card:hover { border-color: #3d3d3d; } .grid-card-preview { display: flex; gap: 2px; flex-shrink: 0; } .grid-card-preview-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 2px; } .grid-card-info { flex: 1; min-width: 0; } .grid-card-name { font-weight: 500; } .grid-card-meta { font-size: 0.82rem; color: var(--text-dim); } /* ===== FORM ROW PAIR ===== */ .input-with-action { display: flex; gap: 0.4rem; align-items: center; } .input-with-action .filter-select { flex: 1; min-width: 0; } .form-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; } .ng-summary { font-size: 0.85rem; color: var(--text-dim); min-height: 1.4em; margin-bottom: 0.25rem; } /* ===== PANEL MANAGER ===== */ .panel-manager { display: flex; flex-direction: column; gap: 1.25rem; } .panel-manager-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; } .panel-manager-header h2 { font-size: 1.2rem; font-weight: 600; } .pm-meta { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.2rem; } .pm-actions { display: flex; gap: 0.5rem; flex-shrink: 0; } .panel-slot-grid { display: grid; gap: 0.4rem; } .panel-slot { background: var(--surface); border: 1px dashed var(--border); border-radius: 4px; padding: 0.3rem; cursor: pointer; transition: border-color 0.15s; display: flex; flex-direction: column; gap: 0.2rem; user-select: none; } .panel-slot:hover { border-color: var(--accent); } .panel-slot.configured { border-style: solid; border-color: #3d3d3d; } .panel-slot.configured:hover { border-color: var(--accent); } .panel-slot-preview { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--bg); display: flex; align-items: center; justify-content: center; } .panel-slot-thumb { width: 100%; height: 100%; object-fit: cover; display: block; } .panel-slot-thumb[hidden] { display: none; } .panel-slot-empty-icon { position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--border) calc(50% - 0.5px), var(--border) calc(50% + 0.5px), transparent calc(50% + 0.5px)), linear-gradient(to bottom left, transparent calc(50% - 0.5px), var(--border) calc(50% - 0.5px), var(--border) calc(50% + 0.5px), transparent calc(50% + 0.5px)); } .panel-slot-empty-icon[hidden] { display: none; } .panel-slot-label { font-size: 0.72rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .panel-slot-range { font-size: 0.65rem; color: var(--text-faint); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ===== GRID SETUP INFO ===== */ .gs-panel-info { font-size: 0.85rem; color: var(--text-dim); padding: 0.5rem 0.75rem; background: var(--bg); border-radius: 4px; border-left: 3px solid var(--accent); line-height: 1.5; } /* ===== GRID SETUP ===== */ .grid-setup { display: flex; gap: 1.5rem; align-items: flex-start; } .grid-setup-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; } .grid-canvas { display: block; max-width: 100%; border: 1px solid var(--border); border-radius: 4px; cursor: crosshair; touch-action: none; } .grid-setup-hint { font-size: 0.82rem; color: var(--text-dim); } .grid-setup-right { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0.75rem; } .setup-title { font-size: 1.05rem; font-weight: 600; } .setup-cell-size { font-size: 0.82rem; color: var(--text-dim); min-height: 1.5em; } .setup-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; } .setup-progress { color: var(--text-dim); font-size: 0.9rem; } /* ===== GRID VIEWER ===== */ .grid-viewer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; } .viewer-name { font-size: 1.2rem; font-weight: 600; } .viewer-meta { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.15rem; } .grid-viewer-actions { display: flex; gap: 0.5rem; flex-shrink: 0; } .grid-cells { display: grid; gap: 4px; } .grid-cell { display: flex; flex-direction: column; gap: 2px; } .grid-cell-img-wrap { position: relative; width: 100%; aspect-ratio: 1; } .grid-cell-img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); display: block; cursor: pointer; transition: border-color 0.1s; } .grid-cell-img:hover { border-color: var(--accent); } .grid-cell.empty .grid-cell-img { display: none; } .grid-cell.empty .grid-cell-img-wrap { background: var(--surface-raised); border-radius: 3px; border: 1px solid var(--border); } .grid-cell.empty .grid-cell-img-wrap::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to bottom left, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) calc(50% + 1px), transparent calc(50% + 1px)); } .grid-cell-label { display: flex; justify-content: center; align-items: center; gap: 0.3em; font-size: 0.65rem; color: var(--text-dim); text-align: center; font-family: var(--font-mono); } .grid-cell-count { color: #4caf50; font-weight: 700; } /* ===== GRID TYPE PILL ===== */ .type-pill.type-grid { background: #2e7d4f; color: #fff; } /* ===== GRID CELL PICKER (inventory dialog) ===== */ .i-grid-cell-picker { display: flex; flex-direction: column; gap: 0.4rem; } .i-grid-visual { display: grid; gap: 3px; max-height: 420px; overflow: auto; } .igv-cell { position: relative; aspect-ratio: 1; background: var(--surface-raised); border: 2px solid transparent; border-radius: 2px; cursor: pointer; overflow: hidden; } .igv-cell:hover { border-color: var(--accent); } .igv-cell.igv-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .igv-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; } /* ===== CELL INVENTORY OVERLAY ===== */ .grid-cell { cursor: pointer; } .cell-inventory-overlay { position: fixed; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.75rem; min-width: 220px; max-width: 320px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 100; } .cell-inventory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .cell-inventory-title { font-weight: 600; font-size: 0.9rem; } .cell-inventory-list { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; min-height: 1rem; } .cell-inv-item { font-size: 0.85rem; display: flex; justify-content: space-between; gap: 0.5rem; } .cell-inv-qty { color: var(--text-dim); white-space: nowrap; } .cell-inv-item-link { cursor: pointer; border-radius: 3px; padding: 0.1rem 0.25rem; margin: 0 -0.25rem; } .cell-inv-item-link:hover { background: var(--hover, rgba(255,255,255,0.06)); } .cell-inv-empty { font-size: 0.85rem; color: var(--text-faint); font-style: italic; } .cell-inventory-actions { display: flex; justify-content: flex-end; } .btn-sm { padding: 0.25rem 0.6rem; font-size: 0.82rem; } /* ===== FILE PICKER DIALOG ===== */ .fp-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 40vh; overflow-y: auto; margin-bottom: 1rem; } .fp-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 4px; background: var(--surface-raised); } .fp-name { flex: 1; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fp-rename-input { flex: 1; font-size: 0.9rem; background: var(--bg); color: var(--text); border: 1px solid var(--border-focus); border-radius: 4px; padding: 0.2rem 0.4rem; } .fp-upload-section { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.25rem; } .fp-upload-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; } .fp-upload-row input[type=text] { flex: 1; min-width: 140px; } /* ===== DETAIL FILE LINKS ===== */ .detail-files-list { display: flex; flex-direction: column; gap: 0.3rem; } .detail-file-row { display: flex; align-items: center; gap: 0.75rem; } .pdf-thumb { width: auto; height: 128px; border: 1px solid var(--border); border-radius: 3px; flex-shrink: 0; } .fp-thumb { width: auto; height: 48px; border: 1px solid var(--border); border-radius: 3px; flex-shrink: 0; } .detail-file-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; padding: 0.2rem 0; } .detail-file-link:hover { text-decoration: underline; }