/* Database app toolbar (#1980). `#db-toolbar` had no rules of its own, so it rendered as an unstyled row of buttons next to the Goals/suite toolbars. This gives it the same design language: one heading area on the left with the current table and its size, grouped actions on the right, responsive wrapping in narrow windows. */ .db-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; flex-shrink: 0; min-height: 48px; padding: 8px 14px; background: var(--win-titlebar-bg, var(--surface-raised, var(--surface))); border-bottom: 1px solid var(--win-titlebar-sep, var(--border)); } .db-toolbar-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; } .db-table-name { color: var(--text); font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .db-row-count { color: var(--text-secondary); font-size: var(--text-2xs); white-space: nowrap; } .db-toolbar-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } /* Divider between the query/data actions and the add-row primary action. */ .db-toolbar-right > .db-select, .db-toolbar-right > .db-btn[data-tool="add"] { margin-left: 4px; } .db-toolbar .db-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: var(--text-2xs); font-weight: 500; line-height: 1; cursor: pointer; transition: background 120ms, color 120ms, border-color 120ms; } .db-toolbar .db-btn:hover { background: var(--win-caption-hover, color-mix(in srgb, var(--palette-94a3b8) 12%, transparent)); color: var(--text); } .db-toolbar .db-btn:focus-visible { outline: 2px solid var(--primary, var(--accent, var(--primary))); outline-offset: 1px; } .db-toolbar .db-btn[aria-label="Export CSV"], .db-toolbar .db-btn[data-tool="export"] { /* Export/import are secondary, data-moving actions. */ color: var(--text-secondary); } .db-toolbar .db-btn-primary { background: var(--primary, var(--accent, var(--primary))); border-color: transparent; color: var(--palette-ffffff); font-weight: 600; } .db-toolbar .db-btn-primary:hover { filter: brightness(1.06); color: var(--palette-ffffff); } .db-toolbar .db-select { height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: var(--text-2xs); } /* Narrow windows: the action row becomes a scrollable strip under the name so no action is clipped out of reach. */ @media (max-width: 720px) { .db-toolbar { align-items: flex-start; } .db-toolbar-right { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }