css reducion
This commit is contained in:
parent
5f156ab6a0
commit
b8cf13b7d5
20 changed files with 1603 additions and 1677 deletions
870
server/static/components.css
Normal file
870
server/static/components.css
Normal file
|
|
@ -0,0 +1,870 @@
|
|||
/* ===== Material Icons sizing ===== */
|
||||
.material-symbols-outlined {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
/* ===== Card ===== */
|
||||
.card {
|
||||
background: var(--surface-white);
|
||||
border: 1px solid var(--outline-dim);
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card > header {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background: var(--surface-low);
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.card > header h2 .material-symbols-outlined {
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
.card > div, .card > form {
|
||||
padding: var(--space-md);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card > footer {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-top: 1px solid var(--outline-dim);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card > table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.card > table th:first-child { padding-left: var(--space-md); }
|
||||
.card > table td:first-child { padding-left: var(--space-md); }
|
||||
.card > table th:last-child { padding-right: var(--space-md); }
|
||||
.card > table td:last-child { padding-right: var(--space-md); }
|
||||
|
||||
.card-sm {
|
||||
max-width: 30rem;
|
||||
}
|
||||
|
||||
/* ===== Button ===== */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
padding: 0 var(--space-md);
|
||||
height: 2.5rem;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
background: transparent;
|
||||
border: 1px solid var(--outline-dim);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.btn-outline:hover {
|
||||
background: var(--surface-highest);
|
||||
}
|
||||
|
||||
.btn-sm {
|
||||
height: 2rem;
|
||||
padding: 0 var(--space-sm);
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
color: var(--on-surface-dim);
|
||||
cursor: pointer;
|
||||
transition: color var(--transition);
|
||||
background: none;
|
||||
border: none;
|
||||
padding: var(--space-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-icon:hover {
|
||||
color: var(--primary);
|
||||
background: var(--surface-low);
|
||||
}
|
||||
|
||||
.btn-icon .material-symbols-outlined {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.remove {
|
||||
color: var(--error);
|
||||
cursor: pointer;
|
||||
transition: opacity var(--transition);
|
||||
background: none;
|
||||
border: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--space-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.remove:hover {
|
||||
opacity: 0.8;
|
||||
background: var(--error-container);
|
||||
}
|
||||
|
||||
.remove .material-symbols-outlined {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* ===== Tag chip ===== */
|
||||
.tag-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
border-radius: var(--radius-full);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
background: var(--surface-highest);
|
||||
border: 1px solid var(--outline-dim);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
transition: all var(--transition);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tag-chip.sm {
|
||||
font-size: 0.625rem;
|
||||
padding: 0.125rem 0.375rem;
|
||||
}
|
||||
|
||||
.tag-chip:hover, .tag-chip.active {
|
||||
color: var(--primary);
|
||||
border-color: var(--primary);
|
||||
background: var(--primary-container);
|
||||
}
|
||||
|
||||
.tag-chip input[type="checkbox"] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tag-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.tag-row {
|
||||
padding: var(--space-sm) var(--space-md) 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.tag-group {
|
||||
margin-top: var(--space-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
/* ===== Toggle group ===== */
|
||||
.toggle-group {
|
||||
display: flex;
|
||||
height: 2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--outline-dim);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.toggle-btn {
|
||||
flex: 1;
|
||||
border: none;
|
||||
background: var(--surface-white);
|
||||
color: var(--on-surface-dim);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
padding: 0 var(--space-sm);
|
||||
}
|
||||
|
||||
.toggle-btn:not(:last-child) {
|
||||
border-right: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
.toggle-btn.active {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
.toggle-btn:not(.active):hover {
|
||||
background: var(--surface-highest);
|
||||
}
|
||||
|
||||
/* ===== Data table ===== */
|
||||
.data-table tbody tr:nth-child(even) {
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.data-table tbody tr:nth-child(even):hover {
|
||||
background: var(--surface-low);
|
||||
}
|
||||
|
||||
.data-table .order-id {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* ===== Search ===== */
|
||||
.search {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search .material-symbols-outlined {
|
||||
position: absolute;
|
||||
left: var(--space-sm);
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 1rem;
|
||||
color: var(--on-surface-dim);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search input {
|
||||
padding-left: 1.75rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ===== Metrics grid ===== */
|
||||
.metrics-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.metrics-grid > div {
|
||||
background: var(--surface-white);
|
||||
border: 1px solid var(--outline-dim);
|
||||
border-radius: var(--radius-md);
|
||||
padding: var(--space-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.metrics-grid .label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: var(--on-surface-dim);
|
||||
letter-spacing: 0.02em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.metrics-grid .label .material-symbols-outlined {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.metrics-grid .value {
|
||||
font-size: 1.75rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.metrics-grid .change {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ===== Split pane (order form) ===== */
|
||||
.split-pane {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.order-left {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.order-aside {
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.order-aside .card {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#basket-items {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
#basket-items > li {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-sm);
|
||||
padding-bottom: var(--space-sm);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
.basket-item-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.basket-item-body .name {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.basket-item-body .detail {
|
||||
font-size: 0.75rem;
|
||||
color: var(--on-surface-dim);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.basket-item-tags {
|
||||
margin-top: var(--space-xs);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.125rem;
|
||||
}
|
||||
|
||||
#basket-items .price {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.basket-item-actions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.125rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.basket-item-actions .btn-icon .material-symbols-outlined,
|
||||
.basket-item-actions .remove .material-symbols-outlined {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.summary-totals {
|
||||
padding: var(--space-md);
|
||||
border-top: 1px solid var(--outline-dim);
|
||||
background: var(--surface);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.total-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 0.875rem;
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
.total-row + .total-row {
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.total-row.grand {
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
color: var(--on-surface);
|
||||
padding-top: var(--space-sm);
|
||||
border-top: 1px solid var(--outline-dim);
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.btn-finalize {
|
||||
width: 100%;
|
||||
height: 2.5rem;
|
||||
margin-top: var(--space-sm);
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
cursor: pointer;
|
||||
transition: opacity var(--transition);
|
||||
}
|
||||
|
||||
.btn-finalize:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
@media (min-width: 64em) {
|
||||
.split-pane {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.order-aside {
|
||||
width: 20rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== Catalogue grid ===== */
|
||||
.catalogue-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.catalogue-scroll {
|
||||
overflow-y: auto;
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
#catalogue-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
#catalogue-grid > li {
|
||||
border: 1px solid var(--outline-dim);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: var(--space-sm);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
background: var(--surface);
|
||||
transition: border-color var(--transition);
|
||||
}
|
||||
|
||||
#catalogue-grid > li:hover {
|
||||
border-color: var(--outline);
|
||||
}
|
||||
|
||||
#catalogue-grid > li > div:first-child {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
#catalogue-grid .icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
#catalogue-grid .icon.cake {
|
||||
background: var(--primary-container);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
#catalogue-grid .name {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#catalogue-grid .price {
|
||||
font-size: 0.75rem;
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
#catalogue-grid .actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: var(--space-sm);
|
||||
padding-top: var(--space-sm);
|
||||
border-top: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: none;
|
||||
border-radius: var(--radius-sm);
|
||||
cursor: pointer;
|
||||
font-size: 1rem;
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty .material-symbols-outlined {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.minus {
|
||||
background: var(--surface-low);
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.minus:hover {
|
||||
background: var(--outline-dim);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.plus {
|
||||
background: var(--surface-highest);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
#catalogue-grid .qty.plus:hover {
|
||||
background: var(--primary);
|
||||
color: var(--on-primary);
|
||||
}
|
||||
|
||||
#catalogue-grid .value {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
width: 1.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ===== Overlay / Drawer ===== */
|
||||
.overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.overlay.open {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.overlay-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.overlay-panel {
|
||||
position: relative;
|
||||
width: 22rem;
|
||||
max-width: 100vw;
|
||||
height: 100%;
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: -0.25rem 0 1.5rem rgba(0, 0, 0, 0.15);
|
||||
animation: slideIn 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from { transform: translateX(100%); }
|
||||
to { transform: translateX(0); }
|
||||
}
|
||||
|
||||
.overlay-panel > header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
.overlay-panel > header h2 {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.overlay-panel > header .close-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--on-surface-dim);
|
||||
padding: var(--space-xs);
|
||||
border-radius: var(--radius-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.overlay-panel > header .close-btn:hover {
|
||||
background: var(--surface-highest);
|
||||
color: var(--on-surface);
|
||||
}
|
||||
|
||||
.overlay-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: var(--space-lg);
|
||||
}
|
||||
|
||||
.overlay-body > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.overlay-body label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.overlay-panel > footer {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
justify-content: flex-end;
|
||||
padding: var(--space-md) var(--space-lg);
|
||||
border-top: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
/* ===== Button center (special cakes card) ===== */
|
||||
.button-center {
|
||||
padding: var(--space-md);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* ===== Catalogue card ===== */
|
||||
.card-catalogue {
|
||||
flex: 1;
|
||||
min-height: 12.5rem;
|
||||
}
|
||||
|
||||
/* ===== Form grid ===== */
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
@media (max-width: 64em) {
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 48em) {
|
||||
.form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
label + input,
|
||||
label + select,
|
||||
label + textarea,
|
||||
label + div:not(.tag-grid) {
|
||||
margin-top: var(--space-xs);
|
||||
}
|
||||
|
||||
input + label,
|
||||
select + label,
|
||||
textarea + label {
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
|
||||
.form-grid label {
|
||||
display: block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
letter-spacing: 0.02em;
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
|
||||
.form-grid > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.col-span-2 {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
/* ===== Horizontal group ===== */
|
||||
.horizontal-group {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* ===== Form actions ===== */
|
||||
.form-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: var(--space-sm);
|
||||
padding-top: var(--space-sm);
|
||||
}
|
||||
|
||||
/* ===== Preset group (date filter) ===== */
|
||||
.preset-group {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.preset-btn {
|
||||
padding: 0.375rem 0.625rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
text-decoration: none;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.preset-btn:hover, .preset-btn.active {
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ===== Filter bar ===== */
|
||||
.filter-bar {
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter-bar .filter-label {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
|
||||
/* ===== Header actions ===== */
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
/* ===== Confirmation ===== */
|
||||
.confirmation {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 1;
|
||||
gap: var(--space-sm);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.confirmation .success-icon {
|
||||
font-size: 3rem;
|
||||
color: var(--success-text);
|
||||
}
|
||||
|
||||
/* ===== Breakdown list ===== */
|
||||
.breakdown-list {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.breakdown-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0.375rem var(--space-md);
|
||||
margin: 0 calc(-1 * var(--space-md));
|
||||
border-bottom: 1px solid var(--outline-dim);
|
||||
}
|
||||
|
||||
.breakdown-amount {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.breakdown-empty {
|
||||
color: var(--on-surface-dim);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
/* ===== Icon ===== */
|
||||
.icon {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.icon.cake {
|
||||
background: var(--primary-container);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* ===== Text utilities ===== */
|
||||
.text-right { text-align: right; }
|
||||
.text-center { text-align: center; }
|
||||
.text-muted { color: var(--on-surface-dim); font-weight: 400; }
|
||||
.font-bold { font-weight: 700; }
|
||||
.font-medium { font-weight: 500; }
|
||||
.grow { flex: 1; }
|
||||
|
||||
/* ===== Empty state ===== */
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: var(--space-md) 0;
|
||||
color: var(--on-surface-dim);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue