/* ── Reset & base ─────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #1a1a2e; --surface: #16213e; --border: #0f3460; --accent: #e94560; --accent2: #533483; --text: #eaeaea; --muted: #8892a4; --radius: 6px; --font: 'Segoe UI', system-ui, sans-serif; } body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; } /* ── Header ───────────────────────────────────────────────── */ header { background: var(--surface); border-bottom: 2px solid var(--border); padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; } header h1 { font-size: 1.4rem; white-space: nowrap; } #header-actions { display: flex; gap: .6rem; align-items: center; flex: 1; justify-content: flex-end; } #filter-search { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .3rem .6rem; font-size: .85rem; width: 180px; } #btn-unlock { background: transparent; border: 1px solid var(--border); color: var(--muted); } #btn-add-tune { background: var(--accent); } #btn-clear-filters { background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: .8rem; } #status { font-size: .8rem; color: var(--muted); } /* ── Column header filters ────────────────────────────────── */ th[data-filter] { cursor: pointer; user-select: none; white-space: nowrap; } th[data-filter]::after { content: ' ▾'; font-size: .7em; opacity: .5; } th[data-filter].filter-active::after { content: ' ▾'; opacity: 1; } th[data-filter].filter-active { color: var(--text); } th[data-filter].filter-active::before { content: '● '; color: var(--accent); font-size: .6em; vertical-align: middle; } /* ── Filter popover ───────────────────────────────────────── */ #filter-popover { position: fixed; z-index: 100; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .75rem; min-width: 160px; box-shadow: 0 4px 16px rgba(0,0,0,.4); } #filter-popover-inner select, #filter-popover-inner input[type="text"] { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .3rem .5rem; font-size: .85rem; width: 100%; } .popover-checkbox-row { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .875rem; cursor: pointer; } .popover-checkbox-row input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--accent); flex-shrink: 0; } .popover-clear { margin-top: .5rem; font-size: .75rem; background: transparent; border: none; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; } .popover-clear:hover { color: var(--text); } /* ── Buttons ──────────────────────────────────────────────── */ button { cursor: pointer; border: none; border-radius: var(--radius); padding: .35rem .75rem; font-size: .85rem; background: var(--accent2); color: var(--text); transition: opacity .15s; } button:hover { opacity: .85; } /* ── Table ────────────────────────────────────────────────── */ main { flex: 1; overflow-x: auto; padding: 1rem 1.25rem; } #tune-table { width: 100%; border-collapse: collapse; font-size: .875rem; } #tune-table th, #tune-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; } #tune-table thead th { background: var(--surface); color: var(--muted); font-weight: 600; user-select: none; } #tune-table thead th[data-col] { cursor: pointer; } #tune-table thead th[data-col]:hover { color: var(--text); } .sort-indicator::after { content: ''; margin-left: .3em; } th.sort-asc .sort-indicator::after { content: '▲'; } th.sort-desc .sort-indicator::after { content: '▼'; } #tune-table tbody tr:nth-child(even) { background: rgba(255,255,255,.025); } #tune-table tbody tr:hover { background: rgba(255,255,255,.055); } .pill { display: inline-block; padding: .15rem .45rem; border-radius: 99px; font-size: .75rem; font-weight: 600; } .pill-yes { background: #1e4d2b; color: #6fcf97; } .pill-no { background: #4d1e1e; color: #eb5757; } .pill-warn { background: #4d3a1e; color: #f2c94c; } .action-btn { background: transparent; border: 1px solid var(--border); padding: .2rem .5rem; font-size: .75rem; margin-right: .25rem; } #empty-msg { color: var(--muted); text-align: center; padding: 2rem; } /* ── Modal ────────────────────────────────────────────────── */ dialog { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 560px; width: 95vw; max-height: 90vh; overflow-y: auto; } dialog::backdrop { background: rgba(0,0,0,.65); } dialog h2 { margin-bottom: 1rem; } dialog h3 { font-size: .95rem; margin: .75rem 0 .4rem; color: var(--muted); } fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; margin-bottom: .75rem; } fieldset legend { padding: 0 .35rem; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; } fieldset label { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: .4rem; margin-bottom: .4rem; font-size: .85rem; } fieldset input[type="text"], fieldset input[type="date"], fieldset select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .3rem .5rem; font-size: .85rem; width: 100%; } .autocomplete-row { display: flex; gap: .4rem; align-items: center; } .autocomplete-row input { flex: 1; } .quick-add-btn { flex-shrink: 0; padding: .3rem .6rem; font-size: .85rem; background: var(--accent2); } /* collapse instrument fieldset when checkbox unchecked */ fieldset .fs-body { display: none; } fieldset.active .fs-body { display: contents; } .note-row, .ref-row { display: flex; gap: .4rem; margin-bottom: .4rem; align-items: flex-start; } .note-row input, .ref-row input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .3rem .5rem; font-size: .85rem; } .remove-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: .2rem .45rem; font-size: .75rem; } .btn-danger { background: var(--accent); } .note-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--border); } .note-row:last-child { border-bottom: none; } .note-text { flex: 1; font-size: .875rem; } .note-edit-controls { display: flex; gap: .25rem; } .btn-edit-row { background: transparent; border: none; font-size: 1rem; padding: .2rem .3rem; } #btn-delete-tune { background: #4d1e1e; color: #eb5757; border: 1px solid #eb5757; margin-right: auto; } .modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; } #btn-save-tune { background: var(--accent); } #btn-cancel { background: transparent; border: 1px solid var(--border); } /* ── Detail modal ─────────────────────────────────────────── */ #detail-content h2 { margin-bottom: .75rem; } #detail-content table { width: 100%; border-collapse: collapse; font-size: .85rem; } #detail-content td { padding: .3rem .5rem; border-bottom: 1px solid var(--border); } #detail-content td:first-child { color: var(--muted); width: 120px; } #detail-content h3 { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--muted); } #btn-detail-close { margin-top: 1rem; background: transparent; border: 1px solid var(--border); } /* ── Responsive ───────────────────────────────────────────── */ @media (max-width: 600px) { #tune-table th:nth-child(n+5), #tune-table td:nth-child(n+5) { display: none; } }