changes of shipment

This commit is contained in:
divya abdar
2025-12-22 21:15:20 +05:30
4 changed files with 573 additions and 311 deletions

View File

@@ -734,17 +734,24 @@
text-decoration: underline;
}
/* Shipment Details Modal */
/* Shipment Details Modal - EDGE-TO-EDGE STYLING */
.modal-xl.edge-to-edge {
max-width: 95vw !important;
width: 95vw !important;
margin: 1vh auto !important;
}
.shipment-details-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 25px 30px 15px;
padding: 25px 35px 15px;
border-radius: 20px 20px 0 0;
}
.shipment-details-body {
padding: 40px 45px;
padding: 30px 35px;
width: 100%;
}
.shipment-info-row {
@@ -824,47 +831,63 @@
border-bottom-right-radius: 10px;
}
/* Shipment Totals Section */
/* Shipment Totals Section - SINGLE ROW ON DESKTOP */
.shipment-totals {
margin-top: 25px;
padding: 25px;
padding: 25px 20px;
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.05);
border-left: 4px solid #4361ee;
width: 100%;
}
.shipment-totals-row {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: space-between;
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 12px;
justify-content: center;
align-items: stretch;
width: 100%;
}
.shipment-total-item {
flex: 1;
min-width: 150px;
text-align: center;
padding: 15px;
padding: 15px 10px;
background: white;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-shrink: 1;
}
.shipment-total-label {
font-weight: 600;
color: #64748b;
font-size: 12px;
font-size: 11px;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.shipment-total-value {
font-weight: 800;
font-size: 20px;
font-size: 18px;
color: #1e293b;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
.total-amount {
@@ -873,6 +896,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #10b981;
width: 100%;
}
.total-quantity {
@@ -881,6 +905,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #0ea5e9;
width: 100%;
}
.total-weight {
@@ -889,6 +914,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #8b5cf6;
width: 100%;
}
.total-cbm {
@@ -897,6 +923,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #ef4444;
width: 100%;
}
.total-ctn {
@@ -905,6 +932,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #f59e0b;
width: 100%;
}
.total-ttl-cbm {
@@ -913,6 +941,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #8b5cf6;
width: 100%;
}
.total-ttl-kg {
@@ -921,6 +950,7 @@
padding: 10px;
border-radius: 8px;
border: 2px solid #14b8a6;
width: 100%;
}
/* Animation for loading */
@@ -1097,6 +1127,36 @@
filter: brightness(0) saturate(100%) invert(84%) sepia(8%) saturate(165%) hue-rotate(179deg) brightness(89%) contrast(86%);
}
/* RESPONSIVE DESIGN FOR TABLET/MOBILE */
@media (max-width: 1200px) {
.modal-xl.edge-to-edge {
max-width: 96vw !important;
width: 96vw !important;
margin: 2vh auto !important;
}
.shipment-totals-row {
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
}
@media (max-width: 992px) {
.modal-xl.edge-to-edge {
max-width: 95vw !important;
width: 95vw !important;
margin: 2.5vh auto !important;
}
.shipment-details-body {
padding: 20px 25px;
}
.shipment-totals-row {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.pagination-container {
flex-direction: column;
@@ -1107,6 +1167,67 @@
.pagination-controls {
justify-content: center;
}
.modal-xl.edge-to-edge {
max-width: 100vw !important;
width: 100vw !important;
margin: 0 !important;
height: 100vh !important;
max-height: 100vh !important;
}
.shipment-details-body {
padding: 15px 20px;
}
.shipment-info-row {
flex-direction: column;
gap: 15px;
padding: 15px;
}
.shipment-info-item {
padding: 10px 0;
}
.shipment-totals {
padding: 20px 15px;
}
.shipment-totals-row {
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.shipment-total-item {
padding: 12px 8px;
}
.shipment-total-label {
font-size: 10px;
}
.shipment-total-value {
font-size: 16px;
}
}
@media (max-width: 576px) {
.shipment-totals-row {
grid-template-columns: 1fr;
gap: 10px;
}
.modal-xl.edge-to-edge .modal-content {
border-radius: 0;
height: 100vh;
overflow-y: auto;
}
.shipment-details-header {
padding: 20px 25px 15px;
border-radius: 0;
}
}
</style>
@@ -1371,7 +1492,7 @@
{{-- SHIPMENT DETAILS MODAL --}}
<div class="modal fade" id="shipmentDetailsModal" tabindex="-1">
<div class="modal-dialog modal-xl modal-dialog-scrollable">
<div class="modal-dialog modal-xl edge-to-edge modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header shipment-details-header">
<h5 class="modal-title fw-bold"><i class="bi bi-box-seam me-2"></i>Consolidated Shipment Details</h5>