69 lines
1.9 KiB
CSS
69 lines
1.9 KiB
CSS
|
|
/**
|
||
|
|
* Customers - Page Styling
|
||
|
|
*
|
||
|
|
* Feature-specific styling only.
|
||
|
|
* Reuses:
|
||
|
|
* - swp-sticky-header, swp-header-content, swp-page-container (page.css)
|
||
|
|
* - swp-stats-row, swp-stat-card (stats.css)
|
||
|
|
* - swp-action-bar, swp-search-input (components.css, services.css)
|
||
|
|
* - swp-data-table, swp-avatar, swp-tag, swp-empty-state (components.css)
|
||
|
|
* - swp-btn (components.css)
|
||
|
|
*/
|
||
|
|
|
||
|
|
/* ===========================================
|
||
|
|
CUSTOMER TABLE (uses swp-data-table from components.css)
|
||
|
|
=========================================== */
|
||
|
|
swp-card.customers-list {
|
||
|
|
padding: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Table columns: Navn(1fr) | Tlf(120px) | Email(180px) | Besøg(70px) | Sidste(90px) | Frisør(100px) | Oprettet(90px) | Tags(140px) */
|
||
|
|
swp-card.customers-list swp-data-table {
|
||
|
|
grid-template-columns: minmax(200px, 1fr) 120px 180px 70px 90px 100px 90px 140px;
|
||
|
|
}
|
||
|
|
|
||
|
|
swp-card.customers-list swp-data-table-header,
|
||
|
|
swp-card.customers-list swp-data-table-row {
|
||
|
|
padding: 0 var(--spacing-10);
|
||
|
|
}
|
||
|
|
|
||
|
|
swp-card.customers-list swp-data-table-header swp-data-table-cell {
|
||
|
|
padding-top: var(--spacing-5);
|
||
|
|
padding-bottom: var(--spacing-5);
|
||
|
|
}
|
||
|
|
|
||
|
|
swp-card.customers-list swp-data-table-row {
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
swp-card.customers-list swp-data-table-cell {
|
||
|
|
padding: var(--spacing-5) 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Name cell with avatar */
|
||
|
|
swp-card.customers-list swp-data-table-cell:first-child {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: var(--spacing-4);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Mono font for visits column */
|
||
|
|
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(4) {
|
||
|
|
font-family: var(--font-mono);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Muted text for email and created columns */
|
||
|
|
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(3),
|
||
|
|
swp-card.customers-list swp-data-table-row swp-data-table-cell:nth-child(7) {
|
||
|
|
color: var(--color-text-secondary);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tags cell */
|
||
|
|
swp-card.customers-list swp-data-table-cell:last-child {
|
||
|
|
display: flex;
|
||
|
|
gap: var(--spacing-2);
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|