:root {
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --secondary: #6366f1;
  --bg: #ffffff;
  --glass: white;
  --border: rgba(0, 0, 0, 0.432);
  --text: #000000;
  --text-dim: #94a3b8;
  --color-base: #ffffff; /* Base / Hero bg */
  --color-section-bg: #fafafa; /* Industries / Cred bar */
  --color-text-main: #1c1917; /* All headlines & body */
  --color-text-secondary: #9ca3af; /* Descriptions / captions */
  --color-primary-accent: #16a34a; /* Forest Green Buttons/Links */
  --color-green-tint: #dcfce7; /* AFD card / eco sections */
  --color-gold: #d97706; /* IndiaStar ONLY */

  /* C. TYPOGRAPHY SYSTEM */
  --font-head: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.75; /* Default Inter line-height */
  overflow-x: hidden;
}

/* GLOBAL TYPOGRAPHY */

input,
select,
button,
textarea{
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6{
  font-family: var(--font-head);
}




/*  input unit tag */
.input-unit-box,
.unit-input {
  position: relative;
  width: 100%;
}

.input-unit-box input,
.unit-input input {
  width: 100%;
  padding-right: 40px;
}

.input-unit-box span,
.unit-input span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  pointer-events: none;
}

.product-row .product-aline:nth-child(6) .unit-input input {
  padding-right: 10px !important;
}


/*  mobile  responsive */
/* TABLET + MOBILE */
@media (max-width: 768px){

.input-unit-box input{
    padding-right:36px;
    font-size:14px;
}

.input-unit-box span{
    right:8px;
    font-size:12px;
}

}

/* Icon css by jayraj  date:-23/2/26*/
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.settings-btn {
  background: transparent;
  color: #131313;
}

.settings-btn:hover {
  background:var(--color-green-tint);
  transform: translateY(-2px);
}

.delete-btn {
  background: rgba(255, 0, 0, 0.15);
  color: #ff6b6b;
}

.delete-btn:hover {
  background: rgba(255, 0, 0, 0.3);
  transform: translateY(-2px);
}


.gear-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.gear-btn:hover {
  background: var(--color-green-tint);
}


/* in model colcor input */
#color{
  border-radius: 50%;
  width: 5.5%;

}



/* statergy details */
.strategy-wrapper {
  position: relative;
  display: inline-block;
}

.strategy-tooltip {
  position: absolute;
  top: 110%;
  left: 0;
  width: 240px;
  background:var(--color-green-tint);
  color: var(--color-text-main);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
  z-index: 1000;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* MOBILE FIRST */
@media (max-width: 768px) {

  .strategy-wrapper {
    width: 100%;
  }

  #loadingStrategy {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .strategy-tooltip {
    position: static;       /* 🔥 IMPORTANT */
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
    padding: 10px;
    border-radius: 10px;
    display: block;
    background: var(--color-green-tint);
    color:var(--color-text-main);
  }

  /* Optional: smooth animation */
  .strategy-tooltip.show {
    display: block;
  }
}

/* learn more model */


.learn-wrapper{
display:flex;
gap:30px;
}

.learn-sidebar{
width:220px;
border-right:1px solid #e5e7eb;
padding-right:15px;
}

.learn-content{
flex:1;
display:flex;
flex-direction:column;
}

.learn-top{
display:flex;
gap:30px;
align-items:flex-start;
}

.learn-image img{
width:260px;
}

.learn-description{
margin-top:15px;
}

.learn-actions{
margin-top:auto;
display:flex;
gap:10px;
}


.learn-actions button:first-child{
    height: 38px;
    background:var(--color-base);
    color:#374151;
    border:1px solid var(--color-text-main);
    padding:8px 18px;
    border-radius:6px;
    font-size:14px;
    cursor:pointer;
    transition:all 0.2s ease;
}

.learn-actions button:first-child:hover{
    background:rgba(255, 0, 0, 0.363);
}

.learn-more-btn{
    background-color: var(--color-base);
}
.learn-more-btn:hover{
  background-color: var(--color-green-tint);
  
}
.close-model{
    position: relative;
    height: 25px;
    width: 25px;
    top: -50px;
    left: 99%;
    font-size: 18px;
    cursor: pointer;
    background-color: var(--color-base);
    border: var(--color-text-main);
    color: #64748b;
    transition: 0.2s;
}
.close-model:hover{
  background-color: rgba(255, 0, 0, 0.13);
}


/* ===============================
   LEARN MORE MODAL MOBILE FIX
================================*/
@media (max-width:768px){

/* main wrapper vertical */
.learn-wrapper{
    flex-direction:column;
    gap:18px;
}

/* sidebar full width */
.learn-sidebar{
    width:100%;
    border-right:none;
    border-bottom:1px solid #e5e7eb;
    padding-bottom:10px;
}

/* container / truck tabs */
.learn-tabs{
    display:flex;
    justify-content:center;
    gap:10px;
}

/* sidebar items scroll horizontally */
.learn-sidebar .learn-side-item{
    display:inline-block;
    padding:8px 12px;
    margin-right:6px;
    white-space:nowrap;
}

.learn-sidebar{
    width: 324px !important;
    height: 42px;
    overflow-x:auto;
    white-space:nowrap;
}

/* content area */
.learn-content{
    width:100%;
}

/* image + specs stacked */
.learn-top{
    flex-direction:column;
    align-items:center;
    gap:20px;
}

/* image resize */
.learn-image img{
    width:160px;
}

/* specs text */
.learn-specs{
    width:100%;
    font-size:14px;
}

/* description spacing */
.learn-description{
    margin-top:10px;
    font-size:14px;
}

/* buttons full width */
.learn-actions{
    flex-direction:column;
    gap:10px;
}

.learn-actions button{
    width:100%;
}

}

/* USER DETAIL MODEL CSS */
/* OVERLAY BACKGROUND */
/* CANCEL BUTTON */
.pdf-cancle{
background:var(--color-base);
color:var(--color-text-main);
border:1px solid var(--color-text-main);
padding:10px 16px;
border-radius:6px;
font-size:14px;
font-weight:500;
cursor:pointer;
transition:0.2s;
}

.pdf-cancle:hover{
background:rgb(255, 200, 200);
}

/* SUBMIT BUTTON */
.pdf-submit{
background:var(--color-base);
color:var(--color-text-main);
border: 1px solid var(--color-text-main);
padding:10px 18px;
border-radius:6px;
font-size:14px;
font-weight:600;
cursor:pointer;
transition:0.2s;
}

.pdf-submit:hover{
background:var(--color-green-tint);
}
.pdf-modal-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:var(--color-text-main);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

/* MODAL BOX */
.pdf-modal{
width:420px;
background:var(--color-base);
border-radius:10px;
box-shadow:0 10px 40px rgba(0,0,0,0.25);
overflow:hidden;
animation:pdfFadeIn .3s ease;
}

/* HEADER */
.pdf-modal-header{
background:var(--color-primary-accent);
color:var(--color-base);
padding:14px 18px;
display:flex;
justify-content:space-between;
align-items:center;
}

.pdf-modal-header h3{
margin:0;
font-size:16px;
font-weight:600;
}

/* BODY */
.pdf-modal-body{
padding:20px;
display:flex;
flex-direction:column;
gap:15px;
}

/* INPUT GROUP */
.pdf-input-group{
display:flex;
flex-direction:column;
gap:5px;
}

.pdf-input-group label{
font-size:13px;
font-weight:600;
color:#334155;
}

.pdf-input-group input{
padding:10px;
border:1px solid #cbd5e1;
border-radius:6px;
font-size:13px;
outline:none;
transition:all .2s;
}

.pdf-input-group input:focus{
border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,0.2);
}



#tab-container-btn, #tab-truck-btn {
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  background: var(--color-base);
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

#tab-container-btn.active , #tab-truck-btn.active {
  background: var(--color-green-tint);
  color:var(--color-text-secondary);
}

/* color dot */
.color-dot{
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ccc;
}


/* ===============================
   ✨ MODERN PALLET UI UPGRADE
================================= */

.pallet-block {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 16px;
  padding: 18px;
  margin-top: 15px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* HEADER */
.pallet-header {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
  padding-left: 6px;
}

/* ROW */
.pallet-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f1f5f9;
  transition: all 0.2s ease;
}

.pallet-row:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}

/* CELLS */
.pallet-cell {
  display: flex;
  align-items: center;
}

/* INPUT STYLE */
.pallet-row input,
.pallet-row select {
  height: 42px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  /* padding: 8px 14px; */
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

/* INPUT HOVER */
.pallet-row input:hover,
.pallet-row select:hover {
  border-color: #3b82f6;
}

/* INPUT FOCUS */
.pallet-row input:focus,
.pallet-row select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  outline: none;
}

/* UNIT TEXT (mm/kg) */
.unit-input span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* COLOR DOT */
.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* SETTINGS BUTTON */
.settings-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-green-tint), #ffffff);
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.settings-btn:hover {
  transform: scale(1.08);
  /* box-shadow: 0 8px 20px rgba(99, 241, 135, 0.35); */
}


/* pallet */
.pallet-toggle {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;   /* forces left align */
}

.pallet-toggle input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ============================= */
/* PALLET TOGGLE */
/* ============================= */

.pallet-toggle {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* PALLET UNIT BOX */
#palletSection .input-unit-box {
    display: flex;
    align-items: center;
    gap: 3px; /* 🔥 reduced only for pallet */
}

#palletSection .input-unit-box span {
    font-size: 12px;
    margin-left: 2px;
}


/* ============================= */
/* PALLET INLINE LIST */
/* ============================= */
#palletSection{ 
  display: grid;
  grid-template-columns:0.2fr 0.5fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr ;
  gap: 12px;
   align-items: center;
  padding: 14px 16px;

  margin-top: 15px;
}
.pallet-inline-row {
  display: none;
  grid-template-columns:
    0.4fr 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.6fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: 15px;
}

.pallet-inline-row input,
.pallet-inline-row select {
  height: 36px;
  border-radius: 18px;
  font-size: 13px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  margin: 0px;
}

/* add by Jayraj date:-24/2/26 */
/* product  and pallet listing */

/* ===== PRODUCT BLOCK WRAPPER ===== */

.product-block {
  margin-bottom: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

/* ===== PRODUCT TABLE ===== */

.product-table-header,
.product-row {
  display: grid;
  grid-template-columns: 0.4fr 1.4fr 1fr 1fr 0.85fr 0.65fr 0.5fr 0.5fr 0.7fr;
  gap: 12px;
  padding: 14px 16px;
  align-items: center;
}

.product-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-table-header {
  font-size: 12px;
  color: var(--text-dim);
  background:#f1f5f9;
}

.product-row input,
.product-row select {
  width: 100%;
  /* padding: 10px 12px; */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.9);
  font-size: 13px;
  color: var(--color-text-main);
}

.product-row input[readonly] {
  background: rgba(243,244,246,0.7);
  cursor: default;
}

.product-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  /* padding: 10px 12px;   */
  background: rgba(248,250,252,0.9);
  color: var(--color-text-main);
  font-size: 13px;
}

.product-input[readonly] {
  background: rgba(243,244,246,0.85);
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 30px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  color: #4f46e5;
  font-weight: 600;
}


/* ===== PALLET TABLE ===== */

.pallet-table-header,
.pallet-row {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
}

.pallet-table-header {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(43,54,70);
  border-bottom: 1px solid var(--border);
}

.pallet-row {
  font-size: 13px;
  color: #ffffff;
}

/* Center action buttons */
.action-cell {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* for aline */
.action-cell.product-aline{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

/* container */

.container{
  margin: 10px;
  padding: 10px;
}

/*  */

/* ===== Container Header ===== */

/* Wrapper */
.manifest-box.mini {
    margin-top: 25px;
}

.manifest-box.mini:empty {
    display: none;
}
/* ===================================== */
/*        CONTAINER LISTING STYLE        */
/* ===================================== */

.container-table-header {
    display: grid;
    grid-template-columns:0.4fr 0.5fr 1fr 1fr 1fr 1fr 0.6fr 0.6fr 0.6fr;  
    padding: 14px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.container-row {
    display: grid;
    grid-template-columns:  0.4fr 0.5fr 1fr 1fr 1fr 1fr 0.6fr 0.6fr 0.6fr;
    align-items: center;
    padding: 16px;
    margin-top: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    transition: all 0.25s ease;
    color: #e2e8f0;
    font-size: 14px;
}

.container-row:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

/* Center buttons */
.container-row button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Up Button */
.container-row button:nth-child(1) {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.container-row button:nth-child(1):hover {
    background: rgba(59,130,246,0.3);
    transform: translateY(-2px);
}

/* Down Button */
.container-row button:nth-child(2) {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
}

.container-row button:nth-child(2):hover {
    background: rgba(99,102,241,0.3);
    transform: translateY(-2px);
}

/* container input up down arrow */
/* Keeping native spin controls for better UX (matches desired UI). */


/* Make main grid vertical */
/* ============================= */
/* STEP 3 RESULT UPDATED FIX    */
/* ============================= */
#preview3dBox{
height:260px;
background:#0f172a;
border-radius:8px;
display:flex;
align-items:center;
justify-content:center;
}

#preview3D{
width:100%;
height:100%;
}


/* MOBILE */
@media (max-width:768px){

#preview3dBox{
height:150px;
width: 250px;
}}


.three-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);

display:none;
align-items:center;
justify-content:center;

z-index:9999;
}

.three-modal-content{
width:90%;
max-width:1200px;
height:85vh;

background:#0f172a;
border-radius:12px;
padding:10px;

position:relative;
display:flex;
flex-direction:column;
}

#threeContainer{
flex:1;
width:100%;
height:100%;
}

.three-modal-content{
background:#0f172a;
width:90%;
max-width:1100px;
height:600px;
border-radius:10px;
padding:10px;
}

.three-close{
position:absolute;
top:12px;
right:14px;

font-size:22px;
font-weight:600;
color:#ffffff;

cursor:pointer;

width:36px;
height:36px;

display:flex;
align-items:center;
justify-content:center;

border-radius:50%;
background:rgba(0,0,0,0.6);

transition:all 0.25s ease;
}

.three-close:hover{
background:#ef4444;
transform:scale(1.1);
}


.container-card{
background:#fff;
padding:20px;
border-radius:10px;
width:240px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.containerCards{
display:flex;
gap:20px;
flex-wrap:wrap;
}


.result-layout{
display:grid;
grid-template-columns:250px 1fr 260px;
gap:25px;
align-items:start;
margin-top:20px;
}

.container-info{
background:#f8fafc;
padding:15px;
border-radius:10px;
text-align:center;
}

.container-img{
width:160px;
margin-bottom:10px;
}

.container-details{
font-size:14px;
color:#334155;
}

.container-cards{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.preview-3d{
background:#f8fafc;
padding:15px;
border-radius:10px;
text-align:center;
margin-top: 10px;
}

#preview3dBox{
height:250px;
width: 250px;
background:#0f172a;
border-radius:8px;
margin-bottom:12px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:14px;
}
.result-layout{
display:grid;
grid-template-columns:250px 1fr 260px;
gap:25px;
align-items:start;
margin-top:20px;
}

.container-info{
background:#f8fafc;
padding:15px;
border-radius:10px;
text-align:center;
}

.container-img{
width:160px;
margin-bottom:10px;
}

.container-details{
font-size:14px;
color:#334155;
}

.container-cards{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.preview-3d{
background:#f8fafc;
padding:15px;
border-radius:10px;
text-align:center;
}

#preview3dBox{
height:260px;
width:100%;
max-width:100%;
background:#0f172a;
border-radius:8px;
margin-bottom:12px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:14px;
overflow:hidden;
}

.container-summary{
margin-top:10px;
text-align:left;
font-size:14px;
color:#334155;
}

.container-summary p{
margin:4px 0;
font-weight:500;
}

/* ============================= */
/* MOBILE RESPONSIVE (STEP 3)   */
/* ============================= */

@media (max-width:768px){


.container-cards-panel{
  width: 94% !important;
}

#preview3dBox{
height:180px;
width:100%;
}

.preview-3d{
width:94%;
padding:12px;
}

.container-cards{
grid-template-columns:1fr;
}

.container-card{
width:100%;
}

/* hide table header */
.sheet-products-table thead{
display:none;
}

/* each row becomes a card */
.sheet-products-table tr{
display:flex;
flex-direction:column;
background:#ffffff;
/* border:1px solid #d9e2ee; */
border-radius:10px;
padding:12px;
margin-bottom:10px;
}

/* cells stacked */
.sheet-products-table td{
display:flex;
justify-content:space-between;
padding:6px 0;
border:none;
font-size:14px;
}

/* labels */
.sheet-products-table td:nth-child(1)::before{
content:"Name";
font-weight:600;
color:#64748b;
}

.sheet-products-table td:nth-child(2)::before{
content:"Packages";
font-weight:600;
color:#64748b;
}

.sheet-products-table td:nth-child(3)::before{
content:"Volume";
font-weight:600;
color:#64748b;
}

.sheet-products-table td:nth-child(4)::before{
content:"Weight";
font-weight:600;
color:#64748b;
}


/* stack layout vertically */
.result-layout{
grid-template-columns:1fr;
gap:18px;
}

/* container info full width */
.container-info{
width:100%;
}

/* container cards center */
.container-cards{
justify-content:center;
}

/* card width responsive */
.container-card{
width:100%;
max-width:320px;
}


/* preview height */
#preview3dBox{
height:180px;
}

/* container image smaller */
.container-img{
width:120px;
margin:auto;
display:block;
}

/* container summary center */
.container-summary{
text-align:center;
}

/* modal responsive */
.three-modal-content{
width:95%;
height:80vh;
}

/* 3D container */
#threeContainer{
height:100%;
}

/* modify i/p */
.w-100{
  width: 83%;
  margin-bottom: 10px;
}
}
/* add css end by jayraj date :- 24/2/26 */

/* ===== DESKTOP DEFAULT ===== */
.product-row > div:nth-child(8) {
  display: flex;
  flex-direction: row;   /* 🔥 side by side */
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}



.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  margin-top: 150px;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 40px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
}
.brand h1 span {
  color: var(--primary);
}
.logo-icon {
  font-size: 2rem;
}
.app-header p {
  color: var(--text-dim);
  margin-top: 8px;
}

/* Progress Tracker */
.progress-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 40px;
  max-width: 720px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 999px;
  padding: 6px;
}

.progress-line {
  display: none;
}

.progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
}

.progress-step:hover {
  background: rgba(22, 163, 74, 0.18);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255,255,255,0.65);
}

.progress-step.active {
  background: var(--color-primary-accent);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.25);
}

.progress-step.active .step-num {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.5);
}

.progress-step label {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
}

/* Glass Panel */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Styles */
.section-title {
  margin-bottom: 30px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.5rem;
}
.section-title p {
  color: var(--text-dim);
  margin: 5px 0 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.input-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.input-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}


.stuffingcheckbox,.spacingcheckbox{
  background: white;
  width: auto;
}
input,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px;
  border-radius: 12px;
  width: 100%;
  /* margin-bottom: 16px; */
  font-size: 0.9rem;
  transition: 0.2s;
}
/* 
input:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 1);
} */

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Buttons */
.btn  {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

.btn-primary {
  background: var(--color-primary-accent);
  color: white;
  box-shadow: 0 4px 14px var(--color-green-tint);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  color:black;
  width: auto;

}
.btn-secondary:hover {
  background: rgba(255, 24, 24, 0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--color-text-main);
  border-color: var(--text-dim);
  background-color: var(--color-green-tint);
}

.three-btn{
  background-color: var(--color-base);
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px var(--color-primary-accent) solid;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}
.three-btn:hover{
  background-color: var(--color-green-tint);
}

.w-100 {
  width: 100%;
  margin-bottom: 10px;
}

/* Manifest */
.manifest-box {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
/* .item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
} */

/* product heder , comntainer header and both item  aline center*/
.product-aline,.container-aline{
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-items: center;
  flex-wrap: wrap;
}


.product-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
}

/* ThreeJS Container */
.sim-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 20px;
}
.three-viewport {
  height: 550px;
  border-radius: 20px;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
}
/* 
.result-content {
  background: rgba(59, 130, 246, 0.1);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--primary-glow);
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
} */


/*  1. model  css */
/* ===== TITLES ===== */
/* add  for  the  3 + 4 marge   */
.top-options {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}

.modal-title {
  margin: 25px 0 15px;
  color: #1f3c88;
  font-weight: 600;
}

/* ===== CARGO ===== */
.cargo-item {
  width: 130px;
  height: 130px;
  background: #f3f4f6;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.cargo-item img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.cargo-item:hover {
  background: #eef2ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.cargo-item.selected {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.cargo-item.selected img {
  filter: brightness(0) invert(1);
}

.cargo-item span {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  text-align: center;
}

/* ===== DIMENSIONS ===== */
.dimension-wrapper {
  display: flex;
  gap: 50px;
  margin-bottom: 40px;
  align-items: center;
}

.dimension-image {
  width: 280px;
  height: 280px;
  background: #eef2ff;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dimension-image img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.dimension-form {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}



/* ===== SETTINGS ===== */
.settings-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.settings-box {
  flex: 1;
  background: #f9fafc;
  padding: 30px;
  border-radius: 20px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.check-row img {
  width: 200px;
  height: 2   00px;
  object-fit: contain;
}

/* ===== PLACEMENT ===== */
.placement-options {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.placement-card {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.placement-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

@media (max-width:768px){
.top-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-wrap: nowrap;
}

.placement-card img{
  width: 100px;
  height: 74px;
}
}

/* ================= PALLET SUMMARY BAR ================= */

.pallet-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.pallet-item {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #334155;
    min-width: 100px;
}

.pallet-item label {
    font-size: 11px;
    color: #64748b;
}

.pallet-item.type {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.color-dot {
    width: 20px;
    height: 20px;
    background: #000;
    border-radius: 50%;
}

.pallet-item.settings {
    margin-left: auto;
}

.gear-btn {
    width: 36px;
    height: 36px;
    background: #e0f2fe;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.gear-btn:hover {
    background: #bae6fd;
}


/* ================= PALLET CHECKBOX ================= */

.pallet-checkbox-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Hide default checkbox */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Main label wrapper */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    user-select: none;
}

/* Custom box */
.custom-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    display: inline-block;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover effect */
.custom-checkbox:hover .checkmark {
    border-color: #2563eb;
}

/* Checked style */
.custom-checkbox input:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

/* Check icon */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: 0.2s ease;
}

/* Show check */
.custom-checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* Label text */
.custom-checkbox .label-text {
    font-size: 14px;
    color: #1e293b;
}

/* =========================
   PALLET MODAL (ONLY THIS ONE)
   ========================= */

#palletDimModal {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

#palletDimModal .lm-modal {
    max-width: 880px;
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}


/* ---------- HEADER ---------- */

#palletDimModal .lm-header {
    padding: 22px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#palletDimModal .lm-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

#palletDimModal .modal-close {
    position: static;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
}

#palletDimModal .modal-close:hover {
    color: #ef4444;
}

/* ---------- BODY ---------- */

#palletDimModal .lm-body {
    padding: 30px;
}

#palletDimModal .modal-split {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left diagram */
#palletDimModal .diagram-area {
    flex: 1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
}

/* Right form */
#palletDimModal .form-area {
    flex: 1.2;
}

#palletDimModal .pdf-input-group {
    margin-bottom: 18px;
}

#palletDimModal .pdf-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
#palletDimModal .pill-input-single,
#palletDimModal .pill-input-wrapper {
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

#palletDimModal .pill-input-wrapper {
    display: flex;
    align-items: center;
}

#palletDimModal .pill-input-wrapper input {
    padding: 12px;
    font-size: 14px;
    border: none;
    background: transparent;
    flex: 1;
}

#palletDimModal .pill-input-wrapper input:focus {
    outline: none;
}

#palletDimModal .unit-tag {
  
    padding:10px;
    font-size: 12px;
    color: #475569;
}

/* Grid layout */
#palletDimModal .dims-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ---------- FOOTER ---------- */

#palletDimModal .lm-footer {
    padding: 22px 30px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #ffffff;
}

#palletDimModal .btn-cancel {
    background: var(--color-base);
    padding: 10px 28px;
    border-radius: 10px;
}
#palletDimModal .btn-cancel:hover {
    background: rgba(255, 0, 0, 0.301);
    padding: 10px 28px;
    border-radius: 10px;
}
#palletDimModal .btn-primary {
    background: var(--color-base);
    color: var(--color-text-main);
    padding: 10px 28px;
    border-radius: 10px;
    box-shadow: none;
}

#palletDimModal .btn-primary:hover {
    background: var(--color-green-tint);
    padding: 10px 28px;
    border-radius: 10px;
}
.type-icon{
  width: 30px;
  height: 30px;
}


/* DETAIL VIEW */
.transport-detail-view{
    display:flex;
    gap:30px;
    padding:30px;
}

/* LEFT MENU */
.detail-left{
    width:220px;
}

.back-btn{
    background:none;
    border:none;
    color:#2563eb;
    font-weight:600;
    margin-bottom:15px;
    cursor:pointer;
}

/* RIGHT CONTENT */
.detail-right{
    flex:1;
}

.detail-top{
    display:flex;
    gap:40px;
    align-items:center;
}

.detail-image{
    width:260px;
}

.detail-specs div{
    margin-bottom:6px;
    font-size:14px;
}

.detail-description{
    margin-top:30px;
}

.detail-description h4{
    margin-bottom:10px;
}

.detail-footer{
    margin-top:40px;
    display:flex;
    justify-content:flex-end;
    gap:15px;
}


/* ================================
   TRANSPORT MODAL
================================ */
.learn-wrapper {
  margin-top: 10px;
  display: flex;
  gap: 30px;
}

.learn-sidebar {
  width: 240px;
  border-right: 1px solid #ddd;
  padding-right: 15px;
  font-family: var(--font-head);
}

.learn-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.learn-tabs button {
  padding: 6px;
  border: none;
  background-color: var(--color-green-tint);
  cursor: pointer;
  border-radius: 6px;
}

.active-tab {
  background: var(--color-green-tint);
  color: var(--color-text-main);
}

.learn-side-item {
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 5px;
}

.learn-side-item:hover {
  background: var(--color-green-tint)
}

.active-side {
  background: var(--color-green-tint);

}

.learn-content {
  flex: 1;
}

.learn-top {
  display: flex;
  gap: 30px;
}

.learn-image img {
  width: 260px;
}

.learn-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
/* Base Card */
#transportModal .transport-card {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover Grow */
#transportModal .transport-card:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--color-primary-accent);
}

/* Selected State */
#transportModal .transport-card.selected {
  border: 2px solid var(--color-primary-accent);
    /* border-color: var(--color-primary-accent); */
    transform: scale(1.06);
    box-shadow: 0 1px 2px var(--color-primary-accent);
}

/* Make inner text white */
#transportModal .transport-card.selected small,
#transportModal .transport-card.selected span,
#transportModal .transport-card.selected div {
    color: var(--color-text-main);
}



.availability-note {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
}
/* listing */
/* ===============================
   MODERN TRANSPORT LISTING
=================================*/


/* divider */

/* Divider between header and content */
.transport-card-modern {
    border-radius: 16px;
    overflow: hidden;
}


/* Add bottom border to top section */
.transport-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb; /* 👈 Divider */
    gap: 10px;
}

/* up down  */


.transport-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transport-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delete button */
.btn-delete {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Up Down buttons */
.move-up,
.move-down {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.move-up:hover,
.move-down:hover {
    background: #e2e8f0;
}


/* COUNT TRANSPORT MODEL LISTING */
.count-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container-count {
    width: 50px !important;
    min-width: 50px !important;

    text-align: center !important;
    font-weight: 700 !important;
    font-size: 14px;

    color: #111827 !important;         /* 🔥 FIX visibility */
    background: #ffffff !important;    /* override global */

    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;

    padding: 6px !important;
    outline: none;
    flex: 0 0 auto;
}

/* ✅ BUTTON IMPROVED ALIGNMENT */
.count-btn {
    border: none;
    background: #e5e7eb;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
}

/* OPTIONAL: better spacing */
.count-wrapper > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.transport-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.transport-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.transport-select {
  width: auto;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.transport-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.transport-image-box img {
    width: 140px;
}

.transport-fields-modern {
    display: flex;
    gap: 40px;
}

.transport-fields-modern .field {
  position: relative;
}

.transport-fields-modern input {
  padding-right: 35px; /* space for unit */
}

/* UNIT TEXT PERFECT ALIGN */
.transport-fields-modern span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #64748b;
  pointer-events: none;
}
.transport-fields-modern input {
  text-align: center;
  font-weight: 500;
}
.transport-fields-modern input {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
}

.transport-fields-modern input:hover {
  border-color: #3b82f6;
}

.transport-fields-modern input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  outline: none;
}

.transport-fields-modern {
  display: flex;
  align-items: center;
  gap: 30px;
}
.btn-delete {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}




#transportModal .lm-modal {
    max-width: 900px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

/* ---------- HEADER ---------- */

#transportModal .lm-header {
    background: var(--color-primary-accent);
    color: #ffffff;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#transportModal .lm-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#transportModal .modal-close {
    position: static;
    background: rgba(255,255,255,0.15);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    transition: 0.2s ease;
}

#transportModal .modal-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ---------- BODY ---------- */

#transportModal .lm-body {
    padding: 25px 30px 10px 30px;
}

/* Tabs */
#transportModal .steps-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#transportModal .steps-tabs .step {
    padding: 10px 18px;
    border-radius: 8px;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    transition: 0.2s;
}

#transportModal .steps-tabs .step.active {
    background: #3b82f6;
    color: #ffffff;
}

#transportModal .steps-tabs .step:hover {
    background: #e2e8f0;
}

/* Limited availability
#transportModal .lm-body > div:last-child {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 5px;
} */

/* ---------- GRID ---------- */

#transportModal .cargo-type-grid {
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    max-height: 400px;
    overflow-y: auto;
}

/* Transport card */
#transportModal .transport-option {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    transition: 0.2s ease;
    border: 1px solid black;
}

#transportModal .transport-option:hover {
    background: #eef2ff;
    transform: translateY(-2px);
}


#transportModal .transport-option img {
    width: 55px;
    margin-bottom: 8px;
}



/* ---------- FOOTER ---------- */

#transportModal .lm-footer {
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #ffffff;
}

#transportModal .btn-cancel {
    background: var(--color-base);
    color: var(--color-text-main);
    border-radius: 8px;
    padding: 10px 24px;
}

#transportModal .btn-cancel:hover {
    background: rgba(255, 0, 0, 0.295);
    color: var(--color-text-main);
    border-radius: 8px;
    padding: 10px 24px;
}
#transportModal .btn-primary {
    background: var(--color-base);
    color: var(--color-text-main);
    padding: 10px 24px;
    border-radius: 8px;
}

#transportModal .btn-primary:hover {
    background: var(--color-primary-accent);
}




/* ================= MODAL BASE ================= */

.advanced-modal-overlay,
.lm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.advanced-modal,
.lm-modal {
  width: 100%;
  max-width: 1000px;
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  animation: modalFade .25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.advanced-close,
.modal-close {
  position: relative;
  top: 8px;
  left: 100%;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
}
.final-result-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.container-row {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

.mini-3d button {
  padding: 8px 14px;
  background: #1e293b;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.container-data {
  background: #f3f4f6;
  padding: 15px;
  border-radius: 8px;
}


/* CHART DOUNAT */
.chart-box{
width:120px;
height:120px;
margin:auto;
}

.chart-box canvas{
width:100% !important;
height:100% !important;
}

/* Mobile */
@media (max-width:768px){

.chart-box{
width:80px;
height:80px;
}

}

@media (max-width: 850px) {
  .form-grid,
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .three-viewport {
    height: 350px;
  }
}

/* add by jayraj  start  date:- 24/2/26 */
/* pallet and product listing */

/* ================= MOBILE VERSION ================= */

@media (max-width: 768px) {
  /* footer - action btn */
  .footer-actions{
    display: flex;
    justify-content: flex-end;
  }

  /* BUTTON CSS */
  .advanced-close{
    left: 90%;
  }


  /* header */
  .app-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .brand {
    flex-direction: column;
    gap: 8px;
  }

  .logo-icon {
    font-size: 1.6rem;
  }

  .brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .app-header p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.4;
  }

  /* Step Progress */

  .progress-container {
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .step-num {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .progress-step label {
    font-size: 0.7rem;
  }

  /* Hide headers on mobile */
  
  .product-table-header,
  .pallet-table-header,
  .container-table-header {
    display: none !important;
  }

  /* Make block look like card */
  .product-block {
    padding: 14px;
  }

  /* Product Row Card */


  /* ===== MAIN GRID (COMPACT) ===== */
  .product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px 70px;

    gap: 10px;
    padding: 12px;

    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,0.06);
  }

  /* ===== GRID STRUCTURE ===== */
  .product-row > div:nth-child(2) { grid-column: 1; grid-row: 1; }
  .product-row > div:nth-child(7) { grid-column: 2; grid-row: 1; }
  .product-row > div:nth-child(8) { grid-column: 3; grid-row: 1; }

  .product-row > div:nth-child(3) { grid-column: 1; grid-row: 2; }
  .product-row > div:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }

  .product-row > div:nth-child(5) { grid-column: 1; grid-row: 3; }
  .product-row > div:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }

  .product-row > div:nth-child(1) {
    display: none;
  }
  /* action  btn aline */
  .action-cell.product-aline{
    flex-wrap: wrap;
  }
  /* ===== FIELD CARD (SMALL) ===== */
  .product-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* background: #ffffff; */
    padding: 4px;
    border-radius: 10px;

    font-size: 13px;
    min-width: 0;
  }

  /* ===== LABEL ===== */
.product-row > div::before {
  display: block;          /* NEW */
  line-height: 1;          /* NEW */
  margin-bottom: 4px;      /* NEW */

  font-size: 10px;
  color: #6b7280;
  font-weight: bold;
}


/* ROW 1 ALIGN FIX */
.product-row > div:nth-child(2),
.product-row > div:nth-child(7),
.product-row > div:nth-child(8),

  .product-row > div:nth-child(2)::before { content: "Product Name"; }
  .product-row > div:nth-child(3)::before { content: "Diameter"; }
  .product-row > div:nth-child(4)::before { content: "Height"; }
  .product-row > div:nth-child(5)::before { content: "Weight"; }
  .product-row > div:nth-child(6)::before { content: "Qty"; }
  .product-row > div:nth-child(7)::before { content: "Color"; }
  .product-row > div:nth-child(8)::before { content: "edit"; }

  /* ===== INPUT (COMPACT) ===== */
  .product-row input,
  .product-row select,
  .product-row textarea {
    width: 100%;
    /* padding: 6px 8px; */
    font-size: 13px;

    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }

  /* ===== COLOR ===== */
.product-row > div:nth-child(7) {
  align-items: flex-start;   /* FIX */
  justify-content: flex-start;
}

  .product-row input[type="color"] {
    width: 22px;
    height: 22px;
  }

  /* ACTION CELL */
.product-row > div:nth-child(8) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* BUTTON WRAPPER (🔥 MAIN FIX) */
.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 6px;
}


.color-dot{
  width: 27px;
  height: 27px;
  margin-top: 5px;
}

  .product-row > div:nth-child(8) button {
    width: 28px;
    height: 28px;

    border-radius: 8px;
    border: none;

    font-size: 12px;
  }

  .product-row > div:nth-child(8) button:first-child {
    background: #4f6df5;
    color: #fff;
  }

  .product-row > div:nth-child(8) button:last-child {
    background: #ffe4e4;
    color: #d11a2a;
  }



  /* Pallet Card */
  /* ========================= */
/* MOBILE PALLET BOX STYLE  */
/* ========================= */


/* adjust pallet listing  */
/* 1. when check box check then show only listing  */
/* 2. listing flex - cloumn ok */
/* ========================= */
/* PALLET SAME AS PRODUCT   */
/* ========================= */
.pallet-header{
  display: none;
}
.pallet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 70px;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid rgba(0,0,0,0.06);
}

/* GRID STRUCTURE */
.pallet-row > div:nth-child(1) { grid-column: 1; grid-row: 1; }
.pallet-row > div:nth-child(7) { grid-column: 2; grid-row: 1; }
.pallet-row > div:nth-child(8) { grid-column: 3; grid-row: 1; }

.pallet-row > div:nth-child(2) { grid-column: 1; grid-row: 2; }
.pallet-row > div:nth-child(3) { grid-column: 2 / 4; grid-row: 2; }

.pallet-row > div:nth-child(4) { grid-column: 1; grid-row: 3; }
.pallet-row > div:nth-child(5) { grid-column: 2 / 4; grid-row: 3; }

.pallet-row > div:nth-child(6) { grid-column: 1 / 4; grid-row: 4; }

/* FIELD STYLE SAME AS PRODUCT */
.pallet-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  font-size: 13px;
  min-width: 0;
}

/* LABEL STYLE */
.pallet-row > div::before {
  display: block;
  line-height: 1;
  margin-bottom: 4px;
  font-size: 10px;
  color: #6b7280;
  font-weight: bold;
}

/* LABEL NAMES */
.pallet-row > div:nth-child(1)::before { content: "Pallet"; }
.pallet-row > div:nth-child(2)::before { content: "Length"; }
.pallet-row > div:nth-child(3)::before { content: "Width"; }
.pallet-row > div:nth-child(4)::before { content: "Height"; }
.pallet-row > div:nth-child(5)::before { content: "Depth"; }
.pallet-row > div:nth-child(6)::before { content: "Max Width"; }
.pallet-row > div:nth-child(7)::before { content: "Color"; }
.pallet-row > div:nth-child(8)::before { content: "Edit"; }

/* INPUT SAME */
.pallet-row input,
.pallet-row select {
  width: 100%;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* COLOR FIX */
.pallet-row > div:nth-child(7) {
  align-items: flex-start;
}

.pallet-row input[type="color"] {
  width: 22px;
  height: 22px;
}

/* ACTION BUTTON SAME */
.pallet-row > div:nth-child(8) {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 6px;
}

.pallet-row > div:nth-child(8) button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
}

.pallet-row > div:nth-child(8) button:first-child {
  background: #4f6df5;
  color: #fff;
}


  /* container */
/* =============================== */
/* MOBILE CONTAINER BOX STYLE     */
/* =============================== */

.container-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px;
  margin-top: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  text-align: center;
  transition: 0.3s ease;
}

.container-row:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

/* Each field block */
.container-row .container-aline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Labels */
.container-row .container-aline::before {
  content: attr(data-label);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* Value Box */
.container-row .container-aline:not(.action-cell) {
  background: #1e293b;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: white;
  width: 100%;
  max-width: 260px;
}

/* Buttons center */
.container-row .action-cell {
  justify-content: center !important;
  gap: 18px;
  margin-top: 8px;
}

/* Hide table header */
.container-table-header {
  display: none;
}
/* ============================= */
/* STEP 3 RESULT UPDATED FIX    */
/* ============================= */


    .option-wrapper {
    display: grid;
    grid-template-columns: 1fr ;   /* 1 columns */
    gap: 25px;
    margin-top: 20px;
}

    .option-card {
        flex: 100%;
        min-width: 100%;
        padding: 16px;
    }

    .three-wrapper {
        margin-top: 25px;
        padding: 15px;
    }

    .three-viewport {
        height: 300px;
    }

    /* model css write here  */
/* ===================================== */
/* ========= MOBILE MODAL FIXES ======== */
/* ===================================== */

/* Make all modals full width and clean */
.lm-modal,
.advanced-modal {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 95vh;
  border-radius: 18px;
  padding: 20px;
}

/* Header compact */
.lm-header {
  padding: 16px 18px !important;
}

.lm-header h3 {
  font-size: 15px !important;
}

/* Close button fix */
.modal-close {
  font-size: 16px;
}

/* Body spacing */
.lm-body {
  padding: 18px 0 !important;
}

/* Footer stack buttons */
.lm-footer {
  flex-direction: column;
  gap: 12px;
}

.lm-footer .btn-primary,
.lm-footer .btn-cancel {
  width: 100%;
}

/* ===================================== */
/* ========= PRODUCT MODAL ============= */
/* ===================================== */

.dimension-wrapper {
  flex-direction: column;
  gap: 25px;
}

.dimension-image {
  width: 65%;
  height: 200px;
}

.dimension-image img {
  width: 120px;
}

.form-row {
  flex-direction: column;
  gap: 14px;
}

.form-group input {
  /* padding: 12px; */
  border-radius: 14px;
}

/* ===================================== */
/* ========= PALLET MODAL ============== */
/* ===================================== */

#palletDimModal .modal-split {
  flex-direction: column;
  gap: 20px;
}

#palletDimModal .diagram-area {
  width: 100%;
  padding: 15px;
}

#palletDimModal .form-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#palletDimModal .dims-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

#palletDimModal .pill-input-wrapper input {
  padding: 14px;
}

/* ===================================== */
/* ========= TRANSPORT MODAL =========== */
/* ===================================== */

/* ===== MOBILE TRANSPORT CARD FIX ===== */

.transport-content {
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.transport-image-box img {
  width: 120px;
}

.transport-fields-modern {
  flex-direction: column;
  width: 100%;
  gap: 18px;
  align-items: center;
}

.transport-fields-modern .field {
  /* width: 100%; */
  max-width: 280px;
  text-align: center;
}

.container-count {
  width: 45px ;
  text-align: center;
}

#transportModal .lm-body {
  padding: 18px 0;
}
.check-row img{
  width: 134px;
}

.settings-wrapper{
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}
.placement-card{
  padding: 3px;
}
/* Tabs scrollable */
#transportModal .steps-tabs {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 8px;
}

/* Transport grid */
#transportModal .cargo-type-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0;
}

/* Transport card */
#transportModal .transport-option {
  padding: 14px 8px;
  border-radius: 12px;
}

#transportModal .transport-option img {
  width: 45px;
}

/* ===================================== */
/* ========= LEARN MORE / DETAIL ======= */
/* ===================================== */
/* unit-input */
.transport-detail-view {
  flex-direction: column;
  gap: 20px;
  padding: 15px;
}

.detail-left {
  width: 100%;
}

.detail-top {
  flex-direction: column;
  gap: 20px;
}

.detail-image {
  width: 100%;
  text-align: center;
}

.detail-image img {
  width: 150px;
}

.detail-footer {
  flex-direction: column;
  gap: 12px;
}

.detail-footer button {
  width: 100%;
}
}
/* End by jayraj Date:-24/2/26 */

/* ============================= */
/* STEP 3 RESULT REFRESH        */
/* ============================= */

#step3 {
  border-top: 1px solid rgba(15, 23, 42, 0.45);
  padding-top: 18px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.result-header h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
}

.strategy-pill {
  min-width: 210px;
}

.strategy-pill select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #cdd6e2;
  background: #ffffff;
  font-weight: 600;
}

.result-content {
  margin-bottom: 16px;
}

.pdf-view-btn,
.pdf-submit {
  margin-right: 10px;
  margin-bottom: 14px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pdf-view-btn {
  background: #ffffff;
  border: 1px solid #0f172a;
  color: #0f172a;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.pdf-view-btn:hover {
  background: #e2e8f0;
}

.stuffing-result-wrap {
  background: #eef2f7;
  border: 1px solid #ccd7e5;
  border-radius: 14px;
  padding: 20px;
}

.stuffing-result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stuffing-result-title-row h3 {
  margin: 0;
  font-size: 1.09rem;
  color: #1d4ed8;
  letter-spacing: 0.4px;
}

.stuffing-result-logo {
  width: 150px;
  max-width: 36%;
  object-fit: contain;
}

.stuffing-result-sheet {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid #c6d1df;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.sheet-left {
  border-right: 1px solid #c6d1df;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-container-name {
  font-size: 1.09rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
}

.stuffing-result-wrap .container-img {
  width: 190px;
  max-width: 100%;
  display: block;
}

.container-img-fallback {
  width: 170px;
  height: 110px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
}

.sheet-dimensions {
  display: grid;
  gap: 3px;
  color: #334155;
  font-weight: 500;
}

.sheet-unit {
  margin-top: auto;
  font-size: 1.09rem;
  font-weight: 800;
  color: #0f172a;
}

.sheet-right {
  display: grid;
  grid-template-rows: auto 1fr;
}

.sheet-top-metrics {
  border-bottom: 1px solid #c6d1df;
  padding: 16px;
}

.sheet-top-metrics p {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 1.1rem;
}

.sheet-products-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
}

.sheet-products-table th,
.sheet-products-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid #d9e2ee;
}

.sheet-products-table th {
  color: #1e3a8a;
  font-size: 1rem;
}

.sheet-products-table td {
  color: #0f172a;
}

.result-empty-cell {
  color: #64748b;
  font-style: italic;
}

/* .improved-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-top: 16px;
} */
.improved-layout{
display:grid;
grid-template-columns:1fr;
gap:16px;
margin-top:16px;
width:100%;
}
.container-cards-panel{
background:#ffffff;
border:1px solid #d4dce7;
border-radius:12px;
padding:18px;
width:100%;
}

.cards-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.container-cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:16px;
width:100%;
}

.container-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.container-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.container-card-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.usage-badge {
  background: #e2e8f0;
  color: #1e293b;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.container-card-body {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.chart-box {
  width: 100px;
  height: 100px;
  position: relative;
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.metric-list {
  display: grid;
  gap: 4px;
}

.metric-list p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 0.86rem;
}

.metric-list p span {
  color: #64748b;
}

.metric-list p b {
  color: #0f172a;
  font-weight: 700;
}

.container-products {
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.product-block-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
}

.product-block-inner h5 {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 0.85rem;
}

.product-block-inner p {
  margin: 0;
  color: #475569;
  font-size: 0.82rem;
}

.preview-3d {
  border: 1px solid #d4dce7;
  background: #f8fafc;
}

#preview3dBox {
  height: 210px;
  overflow: hidden;
}

#preview3D,
#preview3dBox > div {
  width: 100%;
  height: 100%;
}

@media (max-width: 1024px) {
  .stuffing-result-sheet {
    grid-template-columns: 1fr;
  }

  .sheet-left {
    border-right: none;
    border-bottom: 1px solid #c6d1df;
  }

  .improved-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-header h2 {
    font-size: 1.8rem;
  }

  .strategy-pill {
    width: 100%;
  }

  .stuffing-result-title-row h3 {
    font-size: 1.01rem;
  }

  .sheet-container-name {
    font-size: 1.01rem;
  }

  .sheet-unit {
    font-size: 1.01rem;
  }
  .sheet-top-metrics p{
    font-size: 1rem;
  }

  .container-card-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .metric-list {
    width: 100%;
  }
}

/* ===== Transport + Learn More Modal Refresh ===== */
#transportModal .lm-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  padding: 0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

#transportModal .lm-header {
  background: linear-gradient(135deg, #0f7a39, var(--color-primary-accent));
  color: var(--color-base);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#transportModal .lm-header h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#transportModal .modal-close {
  position: static;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#transportModal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

#transportModal .lm-body {
  padding: 20px 24px 0;
}

#transportModal .transport-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#transportModal .steps-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #eef3f7;
  margin: 0;
}

#transportModal .transport-tab {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: var(--font-head);
  transition: all 0.2s ease;
}

#transportModal .transport-tab.active {
  background: var(--color-primary-accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

#transportModal .availability-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#transportModal .cargo-type-grid {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(56vh, 460px);
  overflow-y: auto;
}

#transportModal .cargo-type-grid::-webkit-scrollbar {
  width: 8px;
}

#transportModal .cargo-type-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

#transportModal .transport-card {
  border: 1px solid #d8e1ea;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

#transportModal .transport-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.6);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
}

#transportModal .transport-card.selected {
  border-color: var(--color-primary-accent);
  background: linear-gradient(180deg, #f3fff7 0%, #e9fbee 100%);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

#transportModal .transport-card-media {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#transportModal .transport-card-media img {
  width: min(110px, 100%);
  height: auto;
}

#transportModal .transport-kind-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c4dfcd;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

#transportModal .transport-card-title {
  margin: 0;
  font-family: var(--font-head);
  color: #0f172a;
  font-size: 1.01rem;
  line-height: 1.2;
}

#transportModal .transport-card-size {
  margin: 0;
  color: #475569;
  font-size: 0.83rem;
  line-height: 1.4;
}

#transportModal .learn-more-btn {
  margin-top: auto;
  border: 1px solid #d4dde7;
  background: #ffffff;
  color: #1e293b;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

#transportModal .learn-more-btn:hover {
  background: var(--color-green-tint);
  border-color: #b7cfbf;
}

#transportModal .lm-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #ffffff;
}

#transportModal .lm-footer .btn-cancel,
#transportModal .lm-footer .btn-primary {
  min-width: 120px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

#transportModal .lm-footer .btn-cancel {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}

#transportModal .lm-footer .btn-cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

#transportModal .lm-footer .btn-primary {
  background: var(--color-primary-accent);
  color: #ffffff;
}

#transportModal .lm-footer .btn-primary:hover {
  background: #14803d;
}

#transportModal .lm-footer .btn-primary.is-disabled,
#transportModal .lm-footer .btn-primary:disabled {
  background: #d2d8dd;
  color: #64748b;
  cursor: not-allowed;
  border-color: #d2d8dd;
}

#learnMoreModal .lm-modal {
  width: min(1120px, calc(100vw - 32px));
  max-width: 1120px;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

#learnMoreModal .lm-header {
  background: #ffffff;
  color: var(--color-text-main);
  padding: 18px 26px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#learnMoreModal .lm-header h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

#learnMoreModal .modal-close {
  position: static;
  width: 36px;
  height: 36px;
  border: 1px solid #d9e2eb;
  border-radius: 12px;
  background: #ffffff;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#learnMoreModal .modal-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

#learnMoreModal .learn-body {
  padding: 20px 24px 24px;
}

#learnMoreModal .learn-shell {
  display: grid;
  gap: 14px;
}

#learnMoreModal .learn-tabs {
  display: inline-flex;
  gap: 8px;
  border-radius: 14px;
  background: #eef3f7;
  padding: 6px;
  width: fit-content;
  margin-bottom: 0;
}

#learnMoreModal .learn-tabs button {
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #475569;
  background: transparent;
}

#learnMoreModal .learn-tabs .active-tab {
  background: var(--color-primary-accent);
  color: #ffffff;
}

#learnMoreModal .learn-select-wrap {
  display: grid;
  gap: 6px;
}

#learnMoreModal .learn-select-wrap label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

#learnMoreModal .learn-item-select {
  width: 100%;
  height: 42px;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #1f2937;
  background: #ffffff;
  outline: none;
}

#learnMoreModal .learn-item-select:focus {
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

#learnMoreModal .learn-wrapper {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(225px, 255px) minmax(0, 1fr);
  gap: 18px;
}

#learnMoreModal .learn-sidebar {
  width: auto;
  border-right: none;
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 510px;
  overflow-y: auto;
}

#learnMoreModal .learn-side-item {
  border: 1px solid #dbe4ee;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 11px;
  margin-bottom: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

#learnMoreModal .learn-side-item span {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

#learnMoreModal .learn-side-item small {
  font-size: 0.74rem;
  color: #64748b;
}

#learnMoreModal .learn-side-item:hover {
  background: #f0fdf4;
  border-color: #bde0c8;
}

#learnMoreModal .learn-side-item.active-side {
  background: #ecfdf3;
  border-color: #9bd1af;
  box-shadow: inset 0 0 0 1px #b5e4c4;
}

#learnMoreModal .learn-content {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
}

#learnMoreModal .learn-top {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

#learnMoreModal .learn-image {
  border-radius: 14px;
  border: 1px solid #dce6ef;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#learnMoreModal .learn-image img {
  width: min(100%, 240px);
  height: auto;
}

#learnMoreModal .learn-specs {
  display: grid;
  gap: 14px;
}

#learnMoreModal .learn-spec-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.46rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

#learnMoreModal .learn-spec-head p {
  margin: 5px 0 0;
  font-size: 0.86rem;
  color: #64748b;
}

#learnMoreModal .learn-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#learnMoreModal .learn-spec-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#learnMoreModal .learn-spec-item span {
  font-size: 0.75rem;
  color: #64748b;
}

#learnMoreModal .learn-spec-item strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #0f172a;
}

#learnMoreModal .learn-description {
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

#learnMoreModal .learn-description p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #334155;
}

#learnMoreModal .learn-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#learnMoreModal .learn-actions button {
  height: 42px;
  min-width: 116px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
}

#learnMoreModal .learn-actions button:hover {
  background: #f8fafc;
}

#learnMoreModal .learn-actions .pdf-submit {
  border-color: var(--color-primary-accent);
  background: var(--color-primary-accent);
  color: #ffffff;
}

#learnMoreModal .learn-actions .pdf-submit:hover {
  background: #14803d;
}

/* ===== Step 2 Listing Refresh ===== */
#step2 .manifest-box.mini {
  border-top: 0;
  margin-top: 20px;
  padding-top: 0;
  display: grid;
  gap: 16px;
}

#step2 .transport-card-modern {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  margin-bottom: 0;
}

#step2 .transport-top {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: minmax(125px, auto) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 14px;
}

#step2 .transport-meta {
  display: grid;
  gap: 6px;
}

#step2 .transport-index {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

#step2 .transport-kind-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
}

#step2 .transport-selector-wrap {
  display: grid;
  gap: 6px;
}

#step2 .transport-selector-wrap label {
  font-size: 0.76rem;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

#step2 .transport-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 36px 8px 12px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}

#step2 .transport-select:focus {
  outline: none;
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

#step2 .transport-actions {
  gap: 8px;
}

#step2 .btn-delete,
#step2 .move-up,
#step2 .move-down {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
}

#step2 .btn-delete {
  padding: 0 12px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
}

#step2 .move-up,
#step2 .move-down {
  width: 38px;
  padding: 0;
}

#step2 .transport-content {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

#step2 .transport-image-box {
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
  min-height: 150px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#step2 .transport-image-box img {
  width: min(160px, 100%);
  height: auto;
}

#step2 .transport-size-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.35;
}

#step2 .transport-fields-modern {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 12px;
  align-items: end;
}

#step2 .transport-fields-modern .field {
  display: grid;
  gap: 6px;
}

#step2 .transport-fields-modern .field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
}

#step2 .transport-fields-modern select,
#step2 .transport-fields-modern input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #d0dae4;
  background: #ffffff;
  text-align: center;
  font-size: 0.94rem;
  color: #0f172a;
  font-weight: 600;
  /* padding: 8px 10px; */
}

#step2 .transport-fields-modern select:focus,
#step2 .transport-fields-modern input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

#step2 .transport-fields-modern .unit-input span {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.76rem;
}

#step2 .count-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#step2 .container-count {
  width: 54px !important;
  min-width: 54px !important;
  border-radius: 11px;
}

#step2 .count-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d1d9e3;
  background: #f8fafc;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
}

#step2 .count-btn:hover {
  background: #eef2f7;
}

@media (max-width: 980px) {
  #step2 .transport-top {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #step2 .transport-content {
    grid-template-columns: 1fr;
  }

  #step2 .transport-fields-modern {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  #learnMoreModal .learn-wrapper {
    grid-template-columns: 1fr;
  }

  #learnMoreModal .learn-top {
    grid-template-columns: 1fr;
  }

  #learnMoreModal .learn-spec-grid {
    grid-template-columns: 1fr;
  }

  #learnMoreModal .learn-sidebar {
    max-height: 220px;
  }
}

@media (max-width: 680px) {
  #transportModal .lm-modal,
  #learnMoreModal .lm-modal {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  #transportModal .lm-header,
  #learnMoreModal .lm-header {
    padding: 14px 16px;
  }

  #transportModal .lm-body,
  #learnMoreModal .learn-body {
    padding: 14px;
  }

  #transportModal .cargo-type-grid {
    padding: 12px 14px;
    grid-template-columns: 1fr;
    max-height: 48vh;
  }

  #transportModal .lm-footer {
    padding: 12px 14px 14px;
    flex-direction: column;
  }

  #transportModal .lm-footer .btn-cancel,
  #transportModal .lm-footer .btn-primary {
    width: 100%;
  }

  #learnMoreModal .learn-tabs {
    width: 100%;
  }

  #learnMoreModal .learn-tabs button {
    flex: 1;
  }

  #learnMoreModal .learn-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  #learnMoreModal .learn-actions button {
    width: 100%;
  }

  #step2 .transport-fields-modern {
    grid-template-columns: 1fr;
  }

  #step2 .transport-actions {
    justify-content: flex-start;
  }
}

/* ===== Final Modal Override (Root-Variable Driven) ===== */
#transportModal .lm-modal.transport-modal-modern {
  background: var(--color-base) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(28, 25, 23, 0.12) !important;
  box-shadow: 0 30px 70px rgba(28, 25, 23, 0.22) !important;
}

#transportModal .transport-modal-modern .lm-header {
  background: linear-gradient(135deg, #0e8b40 0%, var(--color-primary-accent) 100%) !important;
}

#transportModal .transport-modal-modern .transport-tab {
  font-family: var(--font-head) !important;
}

#transportModal .transport-modal-modern .transport-card {
  background: var(--color-base) !important;
  /* border: 1px solid #d7e2ea !important; */
  border-radius: 16px !important;
}

#transportModal .transport-modal-modern .transport-card-title {
  font-family: var(--font-head) !important;
  color: var(--color-text-main) !important;
}

#transportModal .transport-modal-modern .transport-card-size {
  color: #475569 !important;
  font-family: var(--font-body) !important;
}

#transportModal .transport-modal-modern .learn-more-btn {
  border: 1px solid #d0d9e4 !important;
  border-radius: 10px !important;
  background: var(--color-base) !important;
  color: var(--color-text-main) !important;
  font-family: var(--font-head) !important;
}

#transportModal .transport-modal-modern .lm-footer .btn-primary {
  background: var(--color-primary-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-primary-accent) !important;
  font-family: var(--font-head) !important;
}

#transportModal .transport-modal-modern .lm-footer .btn-cancel {
  background: var(--color-base) !important;
  color: var(--color-text-main) !important;
  border: 1px solid #cbd5e1 !important;
  font-family: var(--font-head) !important;
}

#learnMoreModal .lm-modal.learn-modal-modern {
  background: var(--color-base) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(28, 25, 23, 0.12) !important;
  box-shadow: 0 30px 70px rgba(28, 25, 23, 0.2) !important;
}

#learnMoreModal .learn-modal-modern .lm-header {
  background: #ffffff !important;
  border-bottom: 1px solid #dce4ec !important;
}

#learnMoreModal .learn-modal-modern .lm-header h3 {
  font-family: var(--font-head) !important;
  color: var(--color-text-main) !important;
}

#learnMoreModal .learn-modal-modern .learn-sidebar {
  background: #f8fbff !important;
  border: 1px solid #dce6ef !important;
}

#learnMoreModal .learn-modal-modern .learn-side-item {
  background: #ffffff !important;
  border: 1px solid #dce6ef !important;
  font-family: var(--font-body) !important;
}

#learnMoreModal .learn-modal-modern .learn-side-item.active-side {
  background: var(--color-green-tint) !important;
  border-color: #a8d9b8 !important;
}

#learnMoreModal .learn-modal-modern .learn-content {
  border: 1px solid #dce6ef !important;
  background: #ffffff !important;
}

#learnMoreModal .learn-modal-modern .learn-spec-head h3,
#learnMoreModal .learn-modal-modern .learn-spec-item strong {
  font-family: var(--font-head) !important;
  color: var(--color-text-main) !important;
}

#learnMoreModal .learn-modal-modern .learn-spec-item {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

#learnMoreModal .learn-modal-modern .learn-description p {
  color: #334155 !important;
  font-family: var(--font-body) !important;
}

#learnMoreModal .learn-modal-modern .learn-actions .pdf-submit {
  background: var(--color-primary-accent) !important;
  color: #ffffff !important;
  border-color: var(--color-primary-accent) !important;
  font-family: var(--font-head) !important;
}

/* ===== Learn More + Step 3 Final Responsive/Modern Override ===== */
#learnMoreModal .learn-modal-modern .learn-shell {
  min-height: 0;
}

#learnMoreModal .learn-modal-modern .learn-sidebar::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

#learnMoreModal .learn-modal-modern .learn-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

#step3 .result-content hr {
  border: 0;
  height: 1px;
  background: #d7e1ec;
  margin: 22px 0 14px;
}

#step3 .layout-compare-title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: #0f172a;
}

#step3 .option-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

#step3 .option-card {
  border: 1px solid #d8e2ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 14px;
}

#step3 .option-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#step3 .option-card h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  color: #0f172a;
}

#step3 .option-type {
  margin-left: 6px;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

#step3 .option-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-head);
}

#step3 .option-badge.best {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

#step3 .option-badge.same {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

#step3 .canvas-wrapper {
  border: 1px solid #dce6ef;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 220px;
  padding: 10px;
}

#step3 .canvas-wrapper canvas {
  width: 100% !important;
  height: 200px !important;
}

#step3 .option-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#step3 .option-metrics p {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#step3 .option-metrics p span {
  font-size: 0.74rem;
  color: #64748b;
}

#step3 .option-metrics p b {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #0f172a;
}

#step3 .stuffing-result-wrap {
  background: linear-gradient(180deg, #f4f9ff 0%, #f0f6fb 100%);
  border-radius: 16px;
  border: 1px solid #d3deea;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

#step3 .sheet-title-copy h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #0f172a;
}

#step3 .sheet-title-copy p {
  margin: 3px 0 0;
  font-size: 0.84rem;
  color: #64748b;
}

#step3 .sheet-top-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

#step3 .sheet-kpi {
  border: 1px solid #dce6ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

#step3 .sheet-kpi span {
  font-size: 0.76rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#step3 .sheet-kpi b {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #0f172a;
}

#step3 .sheet-dimensions {
  grid-template-columns: 1fr;
  gap: 6px;
}

#step3 .sheet-dim-chip {
  display: block;
  background: #ffffff;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.83rem;
  color: #334155;
}

#step3 .cards-panel-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

#step3 .container-card {
  border-radius: 14px;
  border: 1px solid #dbe6f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

#step3 .container-card-head h4 {
  font-family: var(--font-head);
}

#step3 .usage-badge {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #a7f3d0;
}

#step3 .preview-3d {
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 1024px) {
  #step3 .option-wrapper {
    grid-template-columns: 1fr;
  }

  #step3 .sheet-top-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lm-overlay {
    padding: 6px;
    align-items: center;
  }

  #transportModal .lm-modal.transport-modal-modern,
  #learnMoreModal .lm-modal.learn-modal-modern {
    width: calc(100vw - 12px) !important;
    max-width: none !important;
    max-height: calc(100dvh - 12px) !important;
    height: auto !important;
    border-radius: 14px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }

  #transportModal .transport-modal-modern .lm-header,
  #learnMoreModal .learn-modal-modern .lm-header {
    padding: 12px !important;
    flex: 0 0 auto;
  }

  #transportModal .transport-modal-modern .lm-header h3,
  #learnMoreModal .learn-modal-modern .lm-header h3 {
    font-size: 1rem !important;
    line-height: 1.2;
  }

  #transportModal .transport-modal-modern .lm-body,
  #learnMoreModal .learn-modal-modern .learn-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px !important;
  }

  #transportModal .transport-modal-modern .transport-modal-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  #transportModal .transport-modal-modern .steps-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #transportModal .transport-modal-modern .transport-tab {
    width: 100%;
    text-align: center;
  }

  #transportModal .transport-modal-modern .cargo-type-grid {
    padding: 12px !important;
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #transportModal .transport-modal-modern .lm-footer {
    padding: 12px !important;
    flex-direction: column;
    gap: 8px;
  }

  #transportModal .transport-modal-modern .lm-footer .btn-cancel,
  #transportModal .transport-modal-modern .lm-footer .btn-primary {
    width: 100%;
  }

  #learnMoreModal .learn-modal-modern .learn-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #learnMoreModal .learn-modal-modern .learn-tabs button {
    width: 100%;
  }

  #learnMoreModal .learn-modal-modern .learn-wrapper {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  #learnMoreModal .learn-modal-modern .learn-sidebar {
    display: none !important;
  }

  #learnMoreModal .learn-modal-modern .learn-side-item {
    min-width: 0 !important;
    width: 100% !important;
  }

  #learnMoreModal .learn-modal-modern .learn-content {
    padding: 12px !important;
  }

  #learnMoreModal .learn-modal-modern .learn-top {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  #learnMoreModal .learn-modal-modern .learn-image {
    min-height: 160px;
    padding: 10px;
  }

  #learnMoreModal .learn-modal-modern .learn-spec-head h3 {
    font-size: 1.14rem;
  }

  #learnMoreModal .learn-modal-modern .learn-spec-grid {
    grid-template-columns: 1fr !important;
  }

  #learnMoreModal .learn-modal-modern .learn-description p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  #learnMoreModal .learn-modal-modern .learn-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  #learnMoreModal .learn-modal-modern .learn-actions button {
    width: 100%;
  }

  #step3 .stuffing-result-wrap {
    padding: 14px;
  }

  #step3 .stuffing-result-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #step3 .sheet-products-table th,
  #step3 .sheet-products-table td {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  #step3 .option-metrics {
    grid-template-columns: 1fr;
  }

  #step3 .canvas-wrapper {
    min-height: 180px;
  }

  #step3 .canvas-wrapper canvas {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  #transportModal .transport-modal-modern .lm-header h3,
  #learnMoreModal .learn-modal-modern .lm-header h3 {
    font-size: 0.95rem !important;
  }

  #transportModal .transport-modal-modern .transport-tab {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  #learnMoreModal .learn-modal-modern .learn-image {
    min-height: 140px;
  }

  #learnMoreModal .learn-modal-modern .learn-spec-head h3 {
    font-size: 1.02rem;
  }
}

/* ===== Download Report Modal ===== */
#userDetailsModal.pdf-modal-overlay {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 18px;
}

#userDetailsModal .pdf-modal {
  width: min(520px, calc(100vw - 22px));
  border-radius: 16px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

#userDetailsModal .pdf-modal-header {
  background: linear-gradient(135deg, #118741 0%, var(--color-primary-accent) 100%);
  color: #ffffff;
  padding: 16px 18px;
  align-items: flex-start;
}

#userDetailsModal .pdf-modal-header h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
}

#userDetailsModal .pdf-modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.45;
  font-family: var(--font-body);
}

#userDetailsModal .pdf-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

#userDetailsModal .pdf-close-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

#userDetailsModal .pdf-modal-body {
  padding: 20px 20px 18px;
  gap: 12px;
  background: #ffffff;
}

#userDetailsModal .pdf-input-group {
  gap: 6px;
}

#userDetailsModal .pdf-input-group label {
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 600;
  color: #1f2937;
}

#userDetailsModal .pdf-input-group input {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fdfefe;
  padding: 0 12px;
  font-size: 0.94rem;
  font-family: var(--font-body);
}

#userDetailsModal .pdf-input-group input:focus {
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

#userDetailsModal .pdf-field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

#userDetailsModal .pdf-form-error {
  margin: 0 0 2px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.86rem;
  font-weight: 500;
}

#userDetailsModal .pdf-modal-footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#userDetailsModal .pdf-modal-footer .pdf-cancle,
#userDetailsModal .pdf-modal-footer .pdf-submit {
  margin: 0 !important;
  min-width: 114px;
  height: 42px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
}

#userDetailsModal .pdf-modal-footer .pdf-cancle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

#userDetailsModal .pdf-modal-footer .pdf-cancle:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

#userDetailsModal .pdf-modal-footer .pdf-submit {
  background: var(--color-primary-accent);
  color: #ffffff;
  border: 1px solid var(--color-primary-accent);
}

#userDetailsModal .pdf-modal-footer .pdf-submit:hover {
  background: #14803d;
  border-color: #14803d;
}

@media (max-width: 640px) {
  #userDetailsModal.pdf-modal-overlay {
    padding: 8px;
  }

  #userDetailsModal .pdf-modal {
    width: calc(100vw - 16px);
    border-radius: 14px;
  }

  #userDetailsModal .pdf-modal-header {
    padding: 13px 14px;
  }

  #userDetailsModal .pdf-modal-header h3 {
    font-size: 1.02rem;
  }

  #userDetailsModal .pdf-modal-subtitle {
    font-size: 0.78rem;
  }

  #userDetailsModal .pdf-modal-body {
    padding: 14px;
    gap: 10px;
  }

  #userDetailsModal .pdf-modal-footer {
    flex-direction: column;
  }

  #userDetailsModal .pdf-modal-footer .pdf-cancle,
  #userDetailsModal .pdf-modal-footer .pdf-submit {
    width: 100%;
  }
}

/* ===== Add Product Modal Refresh ===== */
#productModal.advanced-modal-overlay {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px;
}

#productModal .advanced-modal {
  position: relative;
  width: min(1080px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  padding: 22px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

#productModal .advanced-close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d7e2ec;
  background: #ffffff;
  color: #64748b;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#productModal .advanced-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

#productModal .modal-title {
  margin: 0;
  color: #0f172a;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

#productModal .modal-title span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

#productModal .cargo-types {
  display: flex;
  gap: 12px;
}

#productModal .cargo-item {
  width: 120px;
  min-height: 102px;
  border-radius: 14px;
  border: 1px solid #d9e4ee;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  gap: 4px;
}

#productModal .cargo-item img {
  width: 46px;
  height: 46px;
}

#productModal .cargo-item p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

#productModal .dimension-wrapper {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #dce6ef;
  background: #ffffff;
}

#productModal .dimension-image {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  border: 1px solid #dce6ef;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#productModal .dimension-image img {
  width: min(120px, 100%);
  height: auto;
}

#productModal .dimension-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

#productModal .dimension-form .form-row:last-child {
  margin-bottom: 0;
}

#productModal .form-group label {
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 0.84rem;
  color: #334155;
}

#productModal .form-group input,
#productModal .form-group select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
}

#productModal .form-group input:focus,
#productModal .form-group select:focus {
  border-color: var(--color-primary-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

#productModal .input-unit-box {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

#productModal .input-unit-box input {
  border: 0 !important;
  box-shadow: none !important;
  flex: 1;
  height: 40px;
}

#productModal .input-unit-box span {
  min-width: 44px;
  height: 100%;
  display: grid;
  place-items: center;
  border-left: 1px solid #dbe3ec;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f8fafc;
}

#productModal .form-group.full-width {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#productModal .form-group.full-width label {
  margin: 0;
}

#productModal #color {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

#productModal #color::-webkit-color-swatch-wrapper {
  padding: 0;
}

#productModal #color::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

#productModal .settings-wrapper {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  grid-template-columns: repeat(1,minmax(0,1fr));
  gap: 14px;
  margin-top: 0;
}

#productModal .settings-box {
  border: 1px solid #dce6ef;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

#productModal .settings-box h4 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

#productModal .settings-box h4 span {
  color: var(--color-primary-accent);
}

#productModal .check-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  /* padding: 8px 10px; */
  padding: 12px 35px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: auto 62px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

#productModal .check-row img {
  width: 62px;
  height: 52px;
  object-fit: contain;
}

#productModal .check-row span {
  font-size: 0.84rem;
  color: #334155;
  font-weight: 500;
}

#productModal .sub-title {
  margin: 2px 0 8px;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#productModal .placement-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

#productModal .placement-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce6ef;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  text-align: center;
}

#productModal .placement-card input {
  /* margin-bottom: 6px; */
  margin: 0px;
}

#productModal .placement-card img {
  display:block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  /* margin-bottom: 6px; */
  margin: 0px auto;
}

#productModal .placement-card span {
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
}

#productModal .modal-footer {
  position: sticky;
  bottom: -22px;
  margin: 0 -22px -22px;
  padding: 12px 22px;
  border-top: 1px solid #dce6ef;
  background: #ffffff;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#productModal .modal-footer .btn {
  min-width: 108px;
  height: 42px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
}

#productModal .modal-footer .btn-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

#productModal .modal-footer .btn-secondary:hover {
  background: #f8fafc;
}

#productModal .modal-footer .btn-primary {
  border: 1px solid var(--color-primary-accent);
  background: var(--color-primary-accent);
  color: #ffffff;
}

#productModal .modal-footer .btn-primary:hover {
  background: #14803d;
  border-color: #14803d;
}

@media (max-width: 980px) {
  #productModal .dimension-wrapper {
    grid-template-columns: 1fr;
  }

  #productModal .dimension-image {
    height: 150px;
  }

  #productModal .settings-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  #productModal.advanced-modal-overlay {
    padding: 8px;
  }

  #productModal .advanced-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
    padding: 14px;
    gap: 10px;
  }

  #productModal .advanced-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  #productModal .modal-title {
    font-size: 0.86rem;
    padding-right: 36px;
  }

  #productModal .cargo-types {
    width: 100%;
  }

  #productModal .cargo-item {
    width: 100%;
    min-height: 84px;
    grid-template-columns: 46px 1fr;
    display: grid;
    justify-items: start;
    align-items: center;
    padding: 10px 12px;
  }

  #productModal .cargo-item p {
    font-size: 0.84rem;
  }

  #productModal .dimension-form .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #productModal .form-group.full-width {
    flex-direction: column;
    align-items: flex-start;
  }

  #productModal .check-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "tick text"
      "img img";
    row-gap: 8px;
  }

  #productModal .check-row input {
    grid-area: tick;
  }

  #productModal .check-row span {
    grid-area: text;
  }

  #productModal .check-row img {
    grid-area: img;
    width: 100%;
    height: 66px;
  }

  #productModal .placement-options {
    grid-template-columns: 1fr;
  }

  #productModal .modal-footer {
    margin: 0 -14px -14px;
    padding: 10px 14px;
    flex-direction: column;
  }

  #productModal .modal-footer .btn {
    width: 100%;
  }
}
