@use 'kit-deps' as *;
/* ---------- two panes ---------- */
// Two surfaces side by side: the list you pick from, the document you read.
// On a phone they take turns, and `is-detail-open` decides whose turn it is.
.catalog-layout {
display: grid;
grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
gap: $space-md;
align-items: start;
@media (max-width: 767px) {
grid-template-columns: 1fr;
.catalog-detail {
display: none;
}
&.is-detail-open {
.catalog-list-pane {
display: none;
}
.catalog-detail {
display: flex;
}
}
}
}
.catalog-pane {
min-width: 0;
border: 1px solid var(--gn-border-color-muted);
border-radius: $border-radius-md;
background: var(--gn-surface-panel);
}
.catalog-list-pane {
display: flex;
flex-direction: column;
min-height: 0;
}
.catalog-list-head {
display: flex;
flex-direction: column;
gap: $space-sm;
padding: $space-sm;
border-bottom: 1px solid var(--gn-border-color-muted);
// The kit's .form-group wrapper carries its own bottom margin; the column's
// gap already separates the fields.
:deep(.form-group) {
margin-bottom: 0;
}
}
.catalog-filters {
display: flex;
align-items: center;
gap: $space-sm;
}
.catalog-area {
flex: 1 1 auto;
min-width: 0;
}
.catalog-add {
flex: none;
}
.catalog-count {
margin: 0;
font-size: 0.7rem;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--gn-color-text-dark);
}
.catalog-list {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
padding: $space-xs;
max-height: 60vh;
overflow-y: auto;
}
.catalog-loading {
padding: 24px;
text-align: center;
}
.catalog-empty {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 28px 16px;
border: 1px dashed var(--gn-border-color-muted);
border-radius: $border-radius-md;
text-align: center;
i {
font-size: 1.75rem;
color: var(--gn-color-text-dark);
}
p {
margin: 0;
font-size: 0.85rem;
color: var(--gn-color-text-medium);
}
}