This commit is contained in:
2026-04-22 22:54:26 +02:00
parent cd1ea4a9db
commit c73b2fe9f6
26 changed files with 1377 additions and 34 deletions

View File

@@ -8,6 +8,7 @@
@use "modules/global-search";
@use "modules/order-preview-modal";
@use "modules/project-mappings";
@use "modules/customer-risk-alert";
* {
box-sizing: border-box;
@@ -278,6 +279,19 @@ details[open] > .sidebar__group-toggle .sidebar__toggle-arrow {
}
}
.sidebar__badge {
margin-left: auto;
background: #f59e0b;
color: #1f2937;
font-size: 10.5px;
font-weight: 700;
line-height: 1;
padding: 2px 6px;
border-radius: 10px;
min-width: 18px;
text-align: center;
}
.app-main {
flex: 1;
min-width: 0;

View File

@@ -0,0 +1,97 @@
// Customer return shipment alert — Phase 106
// Banner w szczegolach zamowienia + badge na liscie zamowien + row highlight
.customer-risk-banner {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 10px 12px;
border-radius: 6px;
background: #fff0f0;
border: 1px solid #fecaca;
border-left: 4px solid #d64545;
color: #6b1f1f;
font-size: 13px;
&__icon {
flex-shrink: 0;
font-size: 18px;
line-height: 1;
color: #d64545;
}
&__body {
flex: 1;
min-width: 0;
}
&__text {
margin: 0;
font-weight: 600;
color: #6b1f1f;
}
&__list {
margin-top: 6px;
summary {
cursor: pointer;
color: #9b2c2c;
font-size: 12px;
user-select: none;
}
}
&__table {
width: 100%;
margin-top: 6px;
font-size: 12px;
border-collapse: collapse;
th,
td {
padding: 4px 6px;
border-bottom: 1px solid #f5d6d6;
text-align: left;
color: #3b0f0f;
}
thead th {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.02em;
color: #7a2323;
background: #ffe3e3;
}
tbody tr:last-child th,
tbody tr:last-child td {
border-bottom: 0;
}
a {
color: #b91c1c;
font-weight: 600;
}
}
}
// Badge na liscie zamowien (przy buyer name)
.risk-return-badge {
display: inline-block;
padding: 1px 6px;
background: #d64545;
color: #fff;
font-size: 11px;
font-weight: 600;
border-radius: 3px;
margin-left: 4px;
cursor: default;
vertical-align: middle;
line-height: 1.4;
}
// Row highlight w liscie zamowien — subtelny czerwony pasek po lewej
.table-list-table tbody tr.is-risk-return > td:first-child {
border-left: 3px solid #d64545;
}

View File

@@ -9,3 +9,15 @@
border-radius: 3px;
white-space: nowrap;
}
.dsm-unmapped {
border-left: 4px solid #f59e0b;
.section-title {
color: #b45309;
}
table tbody tr {
background: rgba(245, 158, 11, 0.05);
}
}