Store UI cleanup and rework

This commit is contained in:
bl3kunja-FW
2026-05-31 11:23:31 +02:00
parent fc831478de
commit 09ab1c3e29
7 changed files with 356 additions and 124 deletions
+113 -56
View File
@@ -56,6 +56,8 @@ body {
overflow-y: auto;
box-shadow: var(--shadow-sm);
flex-shrink: 0;
display: flex;
flex-direction: column;
}
.logo-section {
@@ -280,7 +282,8 @@ body {
/* Admin Section */
.admin-section {
margin-bottom: 0;
margin-top: auto;
padding-top: 24px;
}
.admin-btn {
@@ -394,6 +397,36 @@ body {
overflow: hidden;
}
.toolbar-stacked {
height: auto;
flex-direction: column;
align-items: stretch;
gap: 0;
padding: 8px 14px;
overflow: visible;
}
.toolbar-row {
display: flex;
align-items: center;
gap: 6px;
min-height: 36px;
}
.toolbar-row + .toolbar-row {
border-top: 1px solid var(--border-color);
padding-top: 6px;
margin-top: 2px;
}
.toolbar-stacked .toolbar-actions {
margin-left: auto;
}
.toolbar-stacked .tf-quick {
margin-left: 0;
}
.toolbar-title {
font-size: 12px;
font-weight: 700;
@@ -1284,8 +1317,8 @@ table tbody tr.duplicate-warning:hover {
.inventory-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 10px;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
gap: 12px;
align-content: start;
padding-bottom: 4px;
}
@@ -1293,29 +1326,28 @@ table tbody tr.duplicate-warning:hover {
.inventory-card {
background: #fff;
border: 1px solid var(--border-color);
border-radius: 10px;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: box-shadow 0.15s, border-color 0.15s;
transition: border-color 0.15s;
cursor: default;
}
.inventory-card:hover {
box-shadow: 0 4px 16px rgba(0,0,0,0.10);
border-color: #ccc;
border-color: var(--accent-blue);
}
.inventory-card.out-of-stock {
opacity: 0.5;
opacity: 0.45;
}
/* Image area — fills full width, fixed height */
/* Image area */
.inventory-card-img-wrap {
position: relative;
width: 100%;
height: 150px;
background: var(--bg-tertiary);
height: 120px;
background: #fff;
overflow: hidden;
flex-shrink: 0;
}
@@ -1337,11 +1369,12 @@ table tbody tr.duplicate-warning:hover {
}
.inventory-card-body {
padding: 10px 12px 8px;
padding: 10px 12px 6px;
display: flex;
flex-direction: column;
gap: 3px;
gap: 6px;
flex: 1;
background: var(--bg-tertiary);
border-top: 1px solid var(--border-color);
}
@@ -1353,8 +1386,15 @@ table tbody tr.duplicate-warning:hover {
line-height: 1.3;
}
.inventory-card-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
}
.inventory-card-price {
font-size: 16px;
font-size: 15px;
font-weight: 700;
color: var(--text-primary);
}
@@ -1362,27 +1402,32 @@ table tbody tr.duplicate-warning:hover {
.inventory-card-stock {
font-size: 11px;
color: var(--text-secondary);
letter-spacing: 0.2px;
background: var(--bg-tertiary);
border-radius: 4px;
padding: 1px 6px;
white-space: nowrap;
}
.inventory-card-stock.stock-empty {
color: var(--accent-red);
background: rgba(239,68,68,0.08);
font-weight: 600;
}
.inventory-card-actions {
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 5px;
padding: 6px 12px 10px;
padding: 6px 12px 12px;
background: var(--bg-tertiary);
}
.inventory-add-btn {
width: 100%;
margin: 0;
padding: 7px;
padding: 8px;
font-size: 12px;
border-radius: 6px;
border-radius: 7px;
}
.inventory-add-btn:disabled {
@@ -1390,10 +1435,15 @@ table tbody tr.duplicate-warning:hover {
cursor: not-allowed;
}
.inventory-card-actions .action-btn {
.inventory-card-admin-actions {
display: flex;
gap: 5px;
}
.inventory-card-admin-actions .action-btn {
flex: 1;
margin: 0;
padding: 6px 8px;
padding: 5px 6px;
font-size: 11px;
text-align: center;
}
@@ -1693,6 +1743,11 @@ table tbody tr.duplicate-warning:hover {
/* Print Styles */
@media print {
@page {
size: A4 portrait;
margin: 18mm 22mm;
}
body {
background: #fff !important;
color: #000 !important;
@@ -1759,10 +1814,9 @@ table tbody tr.duplicate-warning:hover {
}
body.printing-receipt #receiptPrintArea {
position: fixed;
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
background: #fff;
z-index: 9999;
padding: 0;
@@ -1771,59 +1825,62 @@ table tbody tr.duplicate-warning:hover {
/* ---- Shared print page wrapper ---- */
.rp-page {
max-width: 580px;
max-width: 155mm;
margin: 0 auto;
padding: 32px 40px;
padding: 6mm 0 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 13px;
font-size: 14px;
color: #000;
}
.rp-monthly { max-width: 720px; }
.rp-monthly {
max-width: 100%;
padding: 0;
}
.rp-logo-block { text-align: center; margin-bottom: 16px; }
.rp-logo { height: 72px; object-fit: contain; }
.rp-logo-block { text-align: center; margin-bottom: 20px; }
.rp-logo { height: 80px; object-fit: contain; }
.rp-divider { border: none; border-top: 2px solid #111; margin: 10px 0; }
.rp-divider-dashed { border: none; border-top: 2px dashed #999; margin: 10px 0; }
.rp-divider { border: none; border-top: 2px solid #111; margin: 12px 0; }
.rp-divider-dashed { border: none; border-top: 2px dashed #999; margin: 12px 0; }
.rp-title {
text-align: center;
font-size: 17px;
font-size: 20px;
font-weight: 700;
letter-spacing: 1.5px;
letter-spacing: 2px;
text-transform: uppercase;
margin: 10px 0 6px;
margin: 12px 0 8px;
}
.rp-meta {
display: flex;
justify-content: space-between;
font-size: 11px;
font-size: 12px;
color: #555;
margin-bottom: 6px;
margin-bottom: 8px;
}
.rp-table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
font-size: 12px;
margin: 12px 0;
font-size: 13px;
}
.rp-table th {
font-size: 10px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.4px;
border-bottom: 1px solid #333;
padding: 5px 4px;
border-bottom: 1.5px solid #333;
padding: 7px 5px;
background: #f5f5f5;
}
.rp-table td {
padding: 5px 4px;
border-bottom: 1px solid #eee;
padding: 7px 5px;
border-bottom: 1px solid #e8e8e8;
vertical-align: top;
}
@@ -1835,56 +1892,56 @@ table tbody tr.duplicate-warning:hover {
.rp-total {
display: flex;
justify-content: space-between;
font-size: 16px;
font-size: 18px;
font-weight: 700;
padding: 8px 0;
padding: 10px 0;
}
.rp-footer {
text-align: center;
font-size: 11px;
font-size: 12px;
letter-spacing: 0.5px;
color: #555;
padding-top: 8px;
padding-top: 12px;
}
/* Monthly-specific */
.rp-monthly-kpi {
display: flex;
gap: 24px;
margin: 12px 0;
gap: 20px;
margin: 14px 0;
}
.rp-kpi-box {
flex: 1;
border: 1px solid #ddd;
border-radius: 6px;
padding: 10px 14px;
padding: 12px 16px;
text-align: center;
}
.rp-kpi-label {
font-size: 10px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.4px;
color: #666;
margin-bottom: 4px;
margin-bottom: 5px;
}
.rp-kpi-value {
font-size: 20px;
font-size: 22px;
font-weight: 700;
}
.rp-section-title {
font-size: 10px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #555;
border-bottom: 1px solid #ccc;
padding-bottom: 4px;
margin: 14px 0 6px;
padding-bottom: 5px;
margin: 16px 0 8px;
}
}