This commit is contained in:
oliver
2026-06-10 06:44:34 -03:00
parent 586eb87156
commit c5f2d299ee
4 changed files with 898 additions and 307 deletions
+313 -8
View File
@@ -97,6 +97,65 @@ body {
font-weight: 400;
}
/* ── Tab Bar ─────────────────────────────────────────── */
.tab-bar {
background: var(--primary-dark);
display: flex;
gap: 0;
padding: 0 20px;
flex-shrink: 0;
}
.tab-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.55);
font-size: 13px;
font-weight: 600;
padding: 10px 20px;
cursor: pointer;
position: relative;
transition: color 0.15s;
letter-spacing: 0.3px;
}
.tab-btn:hover {
color: rgba(255, 255, 255, 0.85);
}
.tab-btn.active {
color: #fff;
}
.tab-btn.active::after {
content: "";
position: absolute;
bottom: 0;
left: 8px;
right: 8px;
height: 3px;
background: #fff;
border-radius: 3px 3px 0 0;
}
.tab-panel {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
body.tab-scan #batchesPanel {
display: none;
}
body.tab-batches main {
display: none;
}
body.tab-batches #batchesPanel {
display: flex !important;
}
/* ── Controls Bar ────────────────────────────────────── */
.controls-bar {
background: var(--primary);
@@ -295,14 +354,49 @@ body {
}
}
/* ── Scan search bar ─────────────────────────────────── */
.scan-search-wrap {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: var(--white);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.scan-search-icon {
flex-shrink: 0;
color: var(--text-muted);
}
#scanSearch {
flex: 1;
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 8px 12px;
font-size: 14px;
font-family: inherit;
background: var(--bg);
outline: none;
transition: border-color 0.15s;
}
#scanSearch:focus {
border-color: var(--primary);
}
.scan-search-wrap .count-pill {
flex-shrink: 0;
}
/* ── Main / Table ────────────────────────────────────── */
main {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
padding: 16px 20px 20px;
gap: 10px;
padding: 0;
overflow: hidden;
}
@@ -338,6 +432,13 @@ main {
}
/* Table wrapper — this scrolls */
.scan-header-row {
display: flex;
align-items: center;
gap: 10px;
padding: 2px 0;
}
.table-wrapper {
flex: 1;
min-height: 0;
@@ -364,19 +465,19 @@ thead {
}
thead tr {
background: var(--primary);
background: var(--white);
}
thead th {
padding: 13px 18px;
padding: 14px 18px 6px;
text-align: left;
font-size: 11px;
font-weight: 700;
letter-spacing: 1.2px;
letter-spacing: 0.8px;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.9);
color: var(--text-muted);
white-space: nowrap;
border-bottom: 2px solid var(--primary-dark);
border-bottom: 2px solid var(--border);
}
thead th:first-child {
@@ -884,7 +985,211 @@ tbody td {
}
}
/* Scrollbar styling */
/* ── Batch List ──────────────────────────────────────── */
.batch-search-wrap {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
background: var(--white);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.batch-search-icon {
flex-shrink: 0;
color: var(--text-muted);
}
#batchSearch {
flex: 1;
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 8px 12px;
font-size: 14px;
font-family: inherit;
background: var(--bg);
outline: none;
transition: border-color 0.15s;
}
#batchSearch:focus {
border-color: var(--primary);
}
#batchStateFilter {
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 8px 10px;
font-size: 13px;
font-family: inherit;
background: var(--bg);
color: var(--text);
outline: none;
cursor: pointer;
}
#batchStateFilter:focus {
border-color: var(--primary);
}
.batch-table-wrap {
flex: 1;
min-height: 0;
overflow: auto;
padding: 0 20px 20px;
background: var(--white);
}
.batch-table {
width: 100%;
border-collapse: separate;
border-spacing: 0 4px;
}
.batch-table thead {
position: sticky;
top: 0;
z-index: 5;
}
.batch-table thead tr {
background: var(--white);
}
.batch-table thead th {
padding: 14px 18px 6px;
text-align: left;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.8px;
text-transform: uppercase;
color: var(--text-muted);
white-space: nowrap;
border-bottom: 2px solid var(--border);
}
.batch-th-sort {
cursor: pointer;
user-select: none;
}
.batch-th-sort:hover {
color: var(--text);
}
.sort-arrow {
font-size: 10px;
margin-left: 3px;
opacity: 0.7;
}
.batch-table tbody td {
padding: 12px;
background: var(--bg);
border-radius: 0;
font-size: 14px;
vertical-align: middle;
}
.batch-table tbody tr {
border-radius: var(--r-md);
overflow: hidden;
transition: opacity 0.15s;
}
.batch-table tbody tr:hover td {
background: var(--primary-light);
}
.batch-table tbody tr:first-child td:first-child {
border-radius: var(--r-md) 0 0 var(--r-md);
}
.batch-table tbody tr:first-child td:last-child {
border-radius: 0 var(--r-md) var(--r-md) 0;
}
.batch-row-done td {
opacity: 0.5;
}
.batch-row-done .batch-name-cell {
text-decoration: line-through;
}
.batch-charge-cell {
font-weight: 600;
color: var(--text);
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 200px;
}
.batch-name-cell {
color: var(--text);
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 180px;
}
.batch-carrier-cell {
font-size: 11px;
font-weight: 600;
color: var(--primary);
background: var(--primary-light);
padding: 2px 8px;
border-radius: 99px;
white-space: nowrap;
display: inline-block;
}
.batch-state-cell {
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 3px 10px;
border-radius: 99px;
white-space: nowrap;
display: inline-block;
}
.batch-state-done {
background: #d1fae5;
color: #065f46;
}
.batch-state-open {
background: #fef3c7;
color: #92400e;
}
.batch-empty {
text-align: center;
color: var(--text-muted);
padding: 40px 0 !important;
font-size: 14px;
}
@media (max-width: 620px) {
.batch-table tbody td {
padding: 8px 6px;
font-size: 12px;
}
.batch-charge-cell {
max-width: 120px;
}
.batch-name-cell {
max-width: 100px;
}
}
/* ── Scrollbar styling ───────────────────────────────── */
.table-wrapper::-webkit-scrollbar {
width: 6px;
height: 6px;