Files
thetool/public/js/pages/WarehouseOrder/WarehouseOrder.css
2026-01-17 12:48:08 +00:00

591 lines
10 KiB
CSS

.warehouse-order-modal-positions-entry-container {
display: grid;
grid-template-columns: 2fr 1fr 1fr 0.5fr 1fr 1fr 0.5fr;
grid-gap: 10px;
}
.warehouse-order-modal-positions-entry-actions {
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 13px;
}
@media (min-width: 992px) {
.modal-lg, .modal-xl {
/*max width either 90% or 1120px*/
max-width: min(90vw, 1400px) !important;
}
}
@media (max-width: 992px) {
.warehouse-order-modal-positions-entry-container {
display: grid;
grid-template-columns: 1fr 1fr !important;
grid-gap: 10px;
}
}
.grid-container {
display: grid;
grid-template-columns: 2fr 0.5fr 0.5fr 1fr 2fr 0.5fr;
grid-gap: 10px;
}
.grid-container.header {
margin-top: 24px;
}
.upload-success-alert {
background-color: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.alert-header {
display: flex;
align-items: center;
margin-bottom: 10px;
font-size: 18px;
color: #155724;
}
.alert-header i {
margin-right: 10px;
font-size: 24px;
}
.file-list {
list-style-type: none;
padding: 0;
margin: 0;
}
.file-item {
display: flex;
align-items: center;
background-color: #ffffff;
border-radius: 4px;
padding: 10px;
margin-bottom: 8px;
transition: background-color 0.3s ease;
}
.file-item:hover {
background-color: #f8f9fa;
}
.file-item i {
color: #000000;
}
.file-name {
margin-left: 10px;
flex-grow: 1;
font-size: 14px;
}
.remove-btn {
background-color: #dc3545;
color: #ffffff;
border: none;
border-radius: 4px;
padding: 5px 10px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.remove-btn:hover {
background-color: #c82333;
}
/* Expanded Row Styling */
.order-summary {
padding: 1rem;
}
.position-item {
margin-bottom: 1rem;
border: 1px solid #ddd;
border-radius: 4px;
}
.position-header {
background-color: #f0f0f0;
padding: 0.5rem;
font-weight: bold;
}
.position-details {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
padding: 0.5rem;
}
.field-item {
margin-bottom: 0.5rem;
}
.ios-switch-wrapper {
position: relative;
display: inline-block;
width: 50px;
height: 28px;
}
.ios-switch-wrapper.disabled {
opacity: 0.6;
}
.ios-switch-wrapper input {
opacity: 0;
width: 0;
height: 0;
}
.ios-switch-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.ios-switch-slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .ios-switch-slider {
background-color: #4cd964;
}
input:checked + .ios-switch-slider:before {
transform: translateX(22px);
}
input:disabled + .ios-switch-slider {
cursor: not-allowed;
}
/* ===== ORDER DETAIL REDESIGN ===== */
.order-detail-container {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 10px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.order-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.order-number {
font-size: 1.25rem;
font-weight: 700;
color: #1a1a2e;
}
.order-meta {
font-size: 0.875rem;
color: #6c757d;
}
.order-meta span {
margin-right: 12px;
}
.order-actions {
display: flex;
align-items: center;
gap: 12px;
}
.status-badge {
padding: 6px 14px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-new { background: #e3f2fd; color: #1565c0; }
.status-accepted { background: #e8f5e9; color: #2e7d32; }
.status-ordered { background: #fff3e0; color: #ef6c00; }
.status-sent { background: #fce4ec; color: #c2185b; }
.status-partiallyDelivered { background: #fff8e1; color: #f9a825; }
.status-fullyDelivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
/* Status Form */
.status-form-container {
background: #fff;
border: 2px solid #e3f2fd;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.status-form-header {
display: flex;
gap: 16px;
margin-bottom: 16px;
flex-wrap: wrap;
}
.status-form-header > div {
flex: 1;
min-width: 200px;
}
.delivery-table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
}
.delivery-table th {
text-align: left;
padding: 10px 12px;
background: #f8f9fa;
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
color: #6c757d;
border-bottom: 2px solid #dee2e6;
}
.delivery-table td {
padding: 12px;
border-bottom: 1px solid #e9ecef;
}
.delivery-table input[type="number"] {
width: 80px;
padding: 6px 10px;
border: 1px solid #ced4da;
border-radius: 6px;
text-align: center;
}
.delivery-table input[type="text"] {
width: 100%;
padding: 6px 10px;
border: 1px solid #ced4da;
border-radius: 6px;
}
.status-form-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid #e9ecef;
}
.file-upload-row {
display: flex;
gap: 16px;
flex-wrap: wrap;
margin-top: 16px;
}
.file-upload-item {
flex: 1;
min-width: 200px;
}
/* Section Titles */
.section-title {
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: #6c757d;
margin: 24px 0 12px 0;
display: flex;
align-items: center;
gap: 8px;
}
.section-title i {
color: #1976d2;
}
/* Positions Table */
.positions-container {
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
border: 1px solid #e0e0e0;
margin-bottom: 24px;
background: #fff;
}
.positions-table {
display: table !important;
width: 100%;
border-collapse: collapse;
background: #fff;
}
.positions-table thead {
display: table-header-group !important;
}
.positions-table tbody {
display: table-row-group !important;
}
.positions-table tfoot {
display: table-footer-group !important;
}
.positions-table tr {
display: table-row !important;
}
.positions-table th,
.positions-table td {
display: table-cell !important;
vertical-align: middle;
position: static !important;
}
.positions-table th {
text-align: left;
padding: 14px 20px;
background: #f8f9fa;
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.3px;
color: #495057;
border-bottom: 2px solid #dee2e6;
position: static !important;
}
/* Right-align numeric columns (Menge, Einzelpreis, Summe) */
.positions-table th:nth-child(2),
.positions-table th:nth-child(3),
.positions-table th:nth-child(4),
.positions-table td:nth-child(2),
.positions-table td:nth-child(3),
.positions-table td:nth-child(4) {
text-align: right;
}
.positions-table td {
padding: 12px 20px;
border-bottom: 1px solid #e9ecef;
font-size: 0.95rem;
color: #333;
}
.positions-table tbody td:first-child {
font-weight: 500;
color: #1a1a2e;
}
.positions-table tbody tr:nth-child(even) {
background: #fafbfc;
}
.positions-table tbody tr:hover {
background: #f0f4f8;
}
/* Total row in tfoot */
.positions-table tfoot .total-row {
background: #f0f0f0;
}
.positions-table tfoot .total-row td {
color: #333;
font-weight: 600;
font-size: 1rem;
padding: 14px 20px;
border-bottom: none;
border-top: 2px solid #dee2e6;
}
.positions-table tfoot .total-row td:first-child {
font-weight: 700;
}
/* Movements Table */
.movements-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.movements-table th {
text-align: left;
padding: 8px 12px;
background: #f8f9fa;
font-weight: 600;
font-size: 0.75rem;
text-transform: uppercase;
color: #6c757d;
}
.movements-table td {
padding: 10px 12px;
border-bottom: 1px solid #e9ecef;
}
.movements-table a {
color: #1976d2;
text-decoration: none;
font-weight: 500;
}
.movements-table a:hover {
text-decoration: underline;
}
.movement-qty {
color: #2e7d32;
font-weight: 600;
}
/* Timeline */
.timeline-container {
background: #fff;
border: 1px solid #e0e0e0;
border-radius: 10px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.timeline {
position: relative;
padding-left: 24px;
margin-left: 8px;
}
.timeline::before {
content: '';
position: absolute;
left: 3px;
top: 6px;
bottom: 6px;
width: 2px;
background: #dee2e6;
border-radius: 1px;
}
.timeline-item {
position: relative;
padding-bottom: 20px;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.timeline-marker {
position: absolute;
left: -21px;
top: 4px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #fff;
border: 2px solid #1976d2;
z-index: 1;
}
.timeline-item.is-first .timeline-marker {
background: #1976d2;
width: 12px;
height: 12px;
left: -22px;
top: 3px;
}
.timeline-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.timeline-date {
font-size: 0.8rem;
color: #6c757d;
font-weight: 500;
}
.timeline-author {
font-size: 0.8rem;
color: #1976d2;
font-weight: 600;
}
.timeline-body {
font-size: 0.9rem;
color: #333;
line-height: 1.5;
white-space: pre-line;
}
.timeline-files {
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.timeline-files a {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
background: #e3f2fd;
color: #1565c0;
border-radius: 4px;
font-size: 0.8rem;
text-decoration: none;
}
.timeline-files a:hover {
background: #bbdefb;
}
.loading-spinner {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
}