/*image carousel sliider */
/* ================= Route Slider Style ================= */
.route-marquee-section {
    width: 100%;
    background: #ffffff;
    padding: 30px 0;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.route-slider {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.route-track {
    display: flex;
    gap: 25px; /* Space between the flyers */
    width: max-content;
    flex-shrink: 0;
    /* Adjust '40s' to make it faster or slower */
    animation: scrollRoutes 40s linear infinite;
}

.route-track img {
    width: 420px;  /* Perfect width for your landscape route flyers */
    height: auto;  /* Maintains the original aspect ratio */
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Pause the scrolling when a user hovers to read the details */
.route-slider:hover .route-track {
    animation-play-state: paused;
}



@keyframes scrollRoutes {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .route-track img {
        width: 220px;
    }
    .route-track {
        animation-duration: 25s;
    }
}
/* Container for the boxes */
/* Container for the boxes */
.select-row {
    display: flex;
    justify-content: center; /* Centers the pair horizontally */
    align-items: center;
    gap: 8px;               /* Tight gap between the two boxes */
    width: 100%;
    max-width: 360px;        /* Limits total width on desktop */
    margin: 0 auto 20px auto;
    flex-wrap: nowrap !important; /* Forces them to stay on the same line */
}

select {
    /* 1. Reset heights to be natural */
    height: 40px; 
    line-height: 1.5; /* This ensures the text has enough vertical space */
    
    /* 2. Adjust padding (Top and Bottom should be equal) */
    padding: 0 25px 0 10px; /* 0 for top/bottom, 25px right, 10px left */
    
    /* 3. Font and Alignment */
    font-size: 14px;
     /* Centers text vertically in some browsers */
    
    /* 4. Appearance */
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #ebf8ff;
    cursor: pointer;
    
    /* Keep your custom arrow */
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    
    /* Critical for mobile */
    vertical-align: middle;
    box-sizing: border-box; 
}

/* 3. Mobile Adjustments - Keeps them side-by-side */
@media (max-width: 480px) {
    .select-row {
        gap: 5px; /* Tighter gap for small screens */
    }
    select {
        width: 135px; /* Slightly smaller to fit together on 320px screens */
        font-size: 12px;
        padding-right: 20px; /* Less space for the arrow */
    }
}

/* 4. Hover effect */
select:hover {
    background-color: #dcf2fe;
    border-color: #000;
}
/* Optional: Add a slight hover effect to make it feel interactive */
select:hover {
    background-color: #dcf2fe;
    border-color: #000;
}/* Existing Carousel Styles */
/* Center the instruction text */
.selection-title {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* Ensure the container of the dropdowns is also centered */
.selection-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    padding: 20px 0;
}

.info-box-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 800px;
}

.info-box {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.info-value {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* Stack boxes on mobile */
@media (max-width: 600px) {
    .info-box-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .info-box {
        width: 90%;
    }
}

.selected-route-image {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

.info-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.info-label {
    font-size: 14px;
    font-weight: 700;
    color: #7b7b7b;
    margin-bottom: 10px;
}

.info-value {
    font-size: 15px;
    color: #222;
}

.detail-steps-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.step-number {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: #f0f4ff;
    color: #1e3a8a;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.step-text {
    flex: 1;
}

.step-title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 15px;
    color: #111827;
}

.step-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}
.route-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.default-route-display,
.specific-route-display,
.info-box-wrapper {
    min-width: 0;
    box-sizing: border-box;
}

.default-route-display,
.specific-route-display {
    flex: 1 1 58%;
}

.info-box-wrapper {
    flex: 1 1 36%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
}

/* tablet + mobile */
@media (max-width: 991px) {
    .route-layout {
        flex-direction: column;
        width: 100%;
    }

    .default-route-display,
    .specific-route-display,
    .info-box-wrapper {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .route-marquee-section {
        width: 100%;
        padding: 16px 0;
        overflow: hidden;
    }

    .route-slider {
        width: 100%;
        overflow: hidden;
    }

    .route-track {
        gap: 12px;
        width: max-content;
    }

    .route-track img {
        width: 220px;
        max-width: 70vw;
        height: auto;
        flex-shrink: 0;
    }
}

/* small phone */
@media (max-width: 480px) {
    .route-track img {
        width: 180px;
        max-width: 75vw;
    }
}

/*image end*/







main {
  margin-top: 40px; /* adjust value as needed */
}


@media (max-width: 767px) {
  .collapse {
    transition: height 0.35s ease, opacity 0.25s ease;
    overflow: hidden;
  }

  .mobile-slot {
    margin-top: 12px;
  }
}
/*Contact part*/

.company-contact{
    /*padding: 30px 0;*/
    text-align: center;

}

/* ================= HEADER ================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5rem;
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: #242f67;
    color: #fff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    width: 70px;
    height: auto;
}

header h1 a {
    text-decoration: none;
    color: #fff;
}




/* Language Drop down*/
.flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    display: inline-block;
}


/* button */
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* dropdown */
.lang-dropdown {
    position: relative;
    margin-right: 12px;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #e7e7e7;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.lang-menu.show {
    display: block;
}

.lang-menu li {
    list-style: none;
    margin: 6px 0;
}


/* 📱 Mobile tweak*/
@media (max-width: 767px) {
  header h5 a {
    text-decoration: none;
    color: #fff;
}
  .lang-menu {
    right: 0;
    left: auto;
    min-width: 120px;
  }

    .lang-menu {
        padding: 6px;
        border-radius: 8px;
        min-width: auto; 
    }

    .lang-menu li {
        margin: 4px 0;
    }

    .flag-circle {
        width: 26px;
        height: 26px;
    }
    .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: -15px;
    }
}


/* car/plane/ship icon*/
.category-section {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  gap: 8px;               
}

/* default */
.category-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  color: #242f67;
  transition: color 0.3s ease;
}

.category-item i {
  color: #d94c5c;
  transition: color 0.3s ease;
}

/*  WHEN CARD IS HOVERED */
.service-card:hover .category-item,
.service-card:hover .category-item span,
.service-card:hover .category-item i {
  color: #ffffff;
}



.service-btn-lg {
  display: inline-block;
  padding: 20px 44px;     
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background-color: #242f67;
  border-radius: 1000px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-btn-lg:hover {
  background-color: #e64555;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.10);
}

/* Scroll To Top Btn */

#scroll-to-top {
  position: fixed;
  right: 30px;
  bottom: 40px; /* higher than chat box */
  z-index: 10000; /* above everything */
}


#scroll-to-top img {
  width: 40px;   /* make smaller */
  height: auto;
  cursor: pointer;
  opacity: 1;
}

#scroll-to-top img:hover {
  opacity: 1;
}


/* Chat Button */
#chat-btn img {
    width: 40px;
    height: 40px;
}


#chat-btn {
  position: fixed;
  bottom: 100px;
  right: 20px;             
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #ff5757;
  cursor: pointer;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}    /* click goes to button */

#chat-btn:hover {
  transform: scale(1.08);
  transition: 0.2s ease;
}


/* Chat Widget */ 
.chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Header */
.chat-header {
  background: #1f2f63;
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-title img {
  width: 28px;
  height: 28px;
}

.close-btn {
  position: absolute;
  top: 8px;
  left: 140px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Status */
.chat-status {
  padding: 6px 12px;
  font-size: 12px;
  color: green;
  border-bottom: 1px solid #eee;
}

/* Body */
.chat-body {
  height: 260px;
  padding: 10px;
  overflow-y: auto;
  background: #f8f9fa;
}

/* Messages */
.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 14px;
  width: fit-content;        
}

.message.support {
  background: #e9ecef;
  align-self: flex-start;
}

.message.user {
  background: #1f2f63;
  color: white;
  margin-left: auto;
}

/* Footer */
.chat-footer {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #eee;
   flex-direction: column;
}




/* 3 buttons row */
.quick-contact {
  display: flex;
  gap: 6px;
}

.quick-contact button {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

/* Colors */
.quick-contact button:nth-child(1) { background: #06C755; }
.quick-contact button:nth-child(2) { background: #25D366; }
.quick-contact button:nth-child(3) { background: #0068FF; }

/* Input + send row */
.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

.chat-input-row .send-btn {
  margin-top: 0; 
}


.chat-footer input {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.send-btn {
  background: #1f2f63;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 9px;   
}


/* ===== CHAT CONTACT BUTTONS ===== */
.contact-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.contact-links a {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.contact-line { background: #06C755; }
.contact-whatsapp { background: #25D366; }
.contact-zalo { background: #0068FF; }

/*chat */

.quick-contact {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.quick-contact button {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.quick-contact button:nth-child(1) { background: #06C755; }
.quick-contact button:nth-child(2) { background: #25D366; }
.quick-contact button:nth-child(3) { background: #0068FF; }

.chat-contact-img {
  width: 120px;
  margin-top: 6px;
  border-radius: 10px;
  cursor: pointer;
}

.chat-footer {
  display: flex;
  flex-direction: column;   
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
}

/* 3 buttons row */
.quick-contact {
  display: flex;
  gap: 6px;
}

/* input row */
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* remove old margin */
.send-btn {
  margin-top: 0 !important;
}
/* Contact card title */
.contact-card span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;          
  color: #222;               
  letter-spacing: 0.5px;     
  text-transform: uppercase;
}


/*chat end*/

.flag-circle-list {
    display: flex;
    gap: 13px;
    align-items: center;
}

.flag-circle {
    width: 30px;          
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: inline-block;
}

/* UL alignment */
.consul-column {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

/* normal links */
.consul-column li a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

/* button list item */
.btn-li {
  margin-top: 12px;
}

/* hover */
.small-btn:hover {
  background: #ffffff;
}

.navy-box {
  background: #1f275c;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  width: fit-content;
  font-weight: 600;
}

.service-card {
  transition: all 0.3s ease;
  background-color: #fff;
}

.service-card:hover {
  background-color: #1f275c;
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(230, 69, 85, 0.35);
}

.carousel-inner{
    align-items: center;
}
/* text + icon turn white */
.service-card:hover h4,
.service-card:hover p,
.service-card:hover i {
  color: #fff !important;
}



/* ===== CONSULTANCY CONTAINER ===== */
.container_consul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;                 
  margin-top: 40px;
  padding: 30px 20px;       
}

/* List column */
.consul-column {
  list-style: none;
  
  margin: 0;
  padding-left: 70px;
}

/* List items */
.consul-column li {
  margin-bottom: 12px;       /* space between links */
}

/* Links */
.consul-column li a {
  text-decoration: none;
  color: #242f67;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 70px;
}

.consul-column li a:hover {
  color: #e64555;
  text-decoration: underline;
}

.consul-column li strong{

  text-decoration: none;
 
  color: #242f67;
  font-size: 25px;
  line-height: 1.5;
  padding-left: 70px;
}
/* Button spacing fix */
.service-children {
  margin-top: 30px;
 
}

/* consultancy*/

.ie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.ie-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pink-btn {
  background: #d94c5c;
  color: white;
  text-decoration: none;
  padding: 10px 26px;
  border-radius: 25px;
  width: fit-content;
  font-weight: 600;
  margin-top: 10px;
 margin-left: 15px;}

.pink-btn:hover {
  opacity: 0.9;
}

ul {
  text-align: left;   
  line-height: 2;
  margin-left: 0;     
  padding-left: 20px; 
}



@media (max-width: 767px) {
  .collapse {
    scroll-margin-top: 90px; 
  }
}

/* DESKTOP: hide mobile accordion slots */
@media (min-width: 768px) {
  .mobile-slot {
    display: none !important;
  }
}



/* ===== OUR SERVICES HOVER DROPDOWN ===== */
.services-dropdown {
  position: relative;
  display: inline-block;
}

.services-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
}

.services-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.services-menu {
  position: absolute;
  top: 100%;              
  left: 0;
  background: #f9fafc;
  min-width: 220px;
  padding: 12px 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  display: none;
  z-index: 3000;
}

.services-dropdown:hover .services-menu {
  display: block;
}

.services-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  color: #242f67;           
  text-decoration: none;
  transition: all 0.2s ease;
}

.services-menu a:hover {
  background-color: #242f67; 
  color: #ffffff;           
}

.services-dropdown.active .services-menu {
  display: block;
}



/* ================= SERVICES SECTION ================= */

.services-section {
  background: linear-gradient(to bottom, #eef2ff, #ffffff);
  padding: 80px 0; 
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}

.services-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 80px; 
}

/* SERVICE BLOCK CARD */
.service-block {
  background: #ffffff;
  padding: 40px; 
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
  transition: 0.4s ease;
}

.service-block:nth-child(2) {
  background: #f9fafc;
}

.service-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

/* GRID */
.service-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px; 
  align-items: flex-start;
}

/* LEFT SIDE */
.service-details h2 {
  font-size: 34px;
  color: #111827;
  margin-bottom: 20px; 
  font-weight: 700;
}

.service-details p {
  color: #6b7280;
  line-height: 1.7; 
  margin-bottom: 18px;
  font-size: 16px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0; 
}

.service-details li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px; 
  color: #374151;
  font-size: 15px;
}

.service-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-size: 18px;
  line-height: 1;
}

/* ================= RIGHT SIDE CARD ================= */

/* ===== Calculator Container ===== */
.service-calc {
    width: 100%;
    max-width: 900px;      /* increase size here */   /* center horizontally */
    padding: 20px;         /* more space inside */
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-calc:hover {
  box-shadow: inset 0 0 0 1px #dbe2f0;
}

/* CALCULATOR TITLE */
.price-calculator h5 {
  text-align: center;
  font-size: 18px; 
  margin-bottom: 20px; 
  color: #111827;
  font-weight: 600;
}

/* FORM GROUP */
.calc-group {
  margin-bottom: 14px; 
}

.calc-group label {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 5px; 
  display: block;
  color: #2f3c7e;
}

.calc-group input,
.calc-group select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  transition: 0.3s ease;
  background: #ffffff;
}

.calc-group input:focus,
.calc-group select:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* BUTTON */
.calc-btn {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #242f67, #1f275c);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.25);
}

/* RESULT */
.calc-result {
  margin-top: 16px; 
  padding: 14px;
  border-radius: 12px;
  background: #f9fafc;
  text-align: center;
  font-weight: 600;
  color: #4338ca;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .service-block {
    padding: 6px;
  }

  .service-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-calc {
    padding: 26px;
  }
}




/* ===== PREMIUM ICON STRIP (FIXED SIZE) ===== */

.icons-wrapper {
  display: flex;
  justify-content: center;
  gap: 70px; /* reduce space */
  flex-wrap: wrap;
}

.icon-circle {
  width: 65px;       /* smaller */
  height: 65px;      /* smaller */
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.icon-circle i {
  font-size: 26px;   /* smaller icon */
  color: #242f67;
}

.icon-item p {
  font-weight: 600;
  color: #242f67;
  font-size: 15px;   /* slightly smaller text */
}

/* Estimate Price start */
  .quick-estimator{
  border:1px solid #dbe2f0;
  background:#f8fbff;
  border-radius:16px;
  padding:18px;
  margin-bottom:24px;
}

.quick-title{
  font-size:20px;
  font-weight:700;
  color:#1f275c;
  margin-bottom:6px;
}

.quick-note{
  font-size:13px;
  color:#6b7280;
  margin-bottom:16px;
}

.quick-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px 18px;
}

.quick-result{
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  background:#eef4ff;
  color:#1e3a8a;
}

.staff-title{
  margin:12px 0 16px;
  font-size:18px;
  font-weight:700;
  color:#1f275c;
}

.box-item{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:14px;
  margin-bottom:12px;
  background:#f9fafb;
}

.box-item-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  font-weight:700;
  color:#2f3c7e;
}

.box-item-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px 14px;
}

.add-box-btn{
  margin-top:10px;
  border:none;
  background:#eef2ff;
  color:#2f3c7e;
  padding:12px 16px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.add-box-btn:hover{
  background:#dbe4ff;
}

.remove-box-btn{
  border:none;
  background:#ffe5e5;
  color:#c0392b;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  font-size:13px;
}

@media (max-width:768px){
  .quick-grid,
  .box-item-grid{
    grid-template-columns:1fr;
  }
}
/* Estimate Price end */

/* Transport */
.transport-tabs .nav-link {
  background: #f4f6ff;
  color: #242f67;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.transport-tabs .nav-link i {
  font-size: 18px;
}

.transport-tabs .nav-link:hover {
  background: #e4e9ff;
  transform: translateY(-2px);
}

.transport-tabs .nav-link.active {
  background: #242f67;
  color: #fff;
  box-shadow: 0 4px 12px rgba(36, 47, 103, 0.25);
}
.transport-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

.transport-tabs .nav-link {
  flex: 1 1 200px;        /* equal width */
  max-width: 220px;       /* prevents too wide */
  justify-content: center; /* center content inside */
  text-align: center;
}

#transportType1{
background:#f8f9fc;
}

/* Mobile */
@media (max-width: 576px) {
  .transport-tabs {
    gap: 10px;
  }

  .transport-tabs .nav-link {
    flex: 1 1 100%;      /* full width on mobile */
    max-width: 100%;
  }
}
.tvc-summary{
box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.cell{
box-shadow:0 2px 5px rgba(0,0,0,0.03);
}

/* ============================= */
/* PREMIUM TRANSPORT CALCULATOR */
/* ============================= */



/* ===== Calculator Title Box ===== */
.calc-title {
    background-color: #242f67;   /* Navy blue */
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===== GRID ===== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 28px;
}


.form-gridpacking {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 5px 28px;
}
/* ===== FIELD ===== */

.field{
display:flex;
flex-direction:column;
gap:6px;   /* controls label → input spacing */
}

.field label{
font-size:14px;
font-weight:600;
color:#374151;
margin-bottom:0;
}

.field.full {
  grid-column: span 2;
}


/* ===== INPUTS ===== */

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8f9fc;
  font-size: 14px;
  transition: all 0.25s ease;

  /* ADD THESE THREE LINES */
  line-height: 1.2;          /* Gives the text vertical breathing room */
  box-sizing: border-box;    /* Ensures padding doesn't push text out of the box */
  vertical-align: middle;    /* Aligns text to the center baseline */
}

.field select {
  height: 48px;
  padding: 12px 16px;
  line-height: normal;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff;
  border-color: #2f3c7e;
  box-shadow: 0 0 0 3px rgba(47, 60, 126, 0.15);
  outline: none;
}

/* ===== TEXTAREA ===== */

.field textarea {
  resize: none;
  /*min-height: 100px;*/
}

/* ===== HINT ===== */

.hint {
  font-size: 12px;
  color: #e64555;
  margin-left: 6px;
  font-weight: 500;
}

/* ===== DIMENSION SPLIT ===== */

.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ===== BUTTONS ===== */

.action-buttons {
  margin-top: 35px;
  display: flex;
  gap: 18px;
}

.confirm-btn {
  flex: 1;
  background: linear-gradient(135deg, #2f3c7e, #1f275c);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}


.confirm-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* ===== SUMMARY ===== */

.summary {
  margin-top: 40px;
  background: #f9fafc;
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #e6e9f2;
}

.summary h3 {
  margin-top: 0;
  font-size: 18px;
  color: #1f275c;
  margin-bottom: 15px;
}

.summary p {
  margin: 6px 0;
  font-size: 14px;
  color: #374151;
}

.top-flex {
  display: flex;
  gap: 10px;
}

.top-left {
  flex: 1;
}

.top-right {
  width: 260px;
  display: flex;  
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* MULTIPLE IMAGES */
.multi-img {
  width: 110px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* SINGLE IMAGE (BIG) */
.single-img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin: auto;
  display: block;
}

.hide {
  display: none !important;
}

#uploadedImageContainer img:not(.single-img) {
  width: 110px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.top-right img {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ===== MOBILE ===== */

/* ============================= */
/* IMPROVED MOBILE VERSION */
/* ============================= */

@media (max-width: 768px) {

  .service-calc {
    padding: 20px;
    border-radius: 18px;
  }

  #calcTitle {
    font-size: 18px;
    text-align: center;
  }

  /* Stack everything */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field.full {
    grid-column: span 1;
  }

  /* Bigger tap targets */
  .field input,
  .field select,
  .field textarea {
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Dimension inputs stacked */
  .split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Mode buttons vertical */
  .mode-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .mode-buttons button {
    font-size: 14px;
    padding: 14px;
    border-radius: 25px;
  }

  /* Action buttons vertical */
  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .confirm-btn{
    width: 100%;
    font-size: 14px;
    padding: 14px;
    border-radius: 14px;
  }

  /* Summary more compact */
  .summary {
    padding: 18px;
  }

  .summary h3 {
    font-size: 16px;
  }

  .summary p {
    font-size: 13px;
  }

}

/* vertical sections */
.calc-box{
margin-top:10px;
border:1px solid #e5e7eb;
border-radius:12px;
padding:4px;
grid-column:1 / -1;
background:#fff;
}

/* horizontal inputs inside */
.box-content.horizontal{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-top:10px;
}

.box-content.horizontal input{
flex:1;
min-width:150px;
}

/* form grid top section */

.field.full{
grid-column:1 / -1;
}

input, select{
width:100%;
padding:5px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}

summary{
font-weight:600;
cursor:pointer;
font-size:15px;
}

.value-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:15px;
margin-top:10px;
}

.summary-buttons{
display:flex;
gap:12px;
justify-content:center;
margin-top:15px;
}

.summary-buttons button{
flex:1;
max-width:250px;
}

/* Download button color */
.download-btn{
background: linear-gradient(135deg,#ff6a6a,#d85a63);
color:white;
border:none;
padding:14px;
border-radius:16px;
font-weight:600;
cursor:pointer;
}

.invoice-label{
max-width:720px;
margin:auto;
border:2px solid #000;
padding:20px;
background:white;
}

.label-header{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo1{
width:40px;
margin-right:10px;
}

.logo1-area{
display:flex;
align-items:center;
gap:10px;
}

.delivery-grid{
display:flex;
justify-content:space-between;
margin-top:10px;
}

.status{
text-align:right;
}

.item-row{
display:flex;
justify-content:space-between;
padding:6px 0;
border-bottom:1px solid #eee;
}

.total{
font-weight:bold;
font-size:18px;
}

.sender{
display:flex;
justify-content:space-between;
align-items:center;
}

.qr{
width:90px;
}

@page {
size: A6;
margin: 1in;
}





@media print {
    /* 1. Force white background and remove shadows */
    body, .invoice-label, .card {
        background-color: white !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
    }

    /* 2. Hide tracking and print button to save space */
    #trackingSection, .print-btn {
        display: none !important;
    }

    /* 3. Tighten the layout to prevent a 2nd blank page */
    html, body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    #invoiceSection {
        width: 100%;
        margin: 0 !important;
        padding: 5mm !important;
        page-break-after: avoid;
    }

    /* 4. Shrink QR icons so they don't push content to page 2 */
    .qr-item img {
        height: 60px !important;
    }
}





@media print {

body * {
    visibility: hidden !important;
  }

  /* PRINT LABEL ONLY */
  body.print-label #invoiceSection,
  body.print-label #invoiceSection * {
    visibility: visible !important;
  }

  body.print-label #invoiceSection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* PRINT DOCUMENTS (IV + PL) */
  body.print-docs #printArea,
  body.print-docs #printArea * {
    visibility: visible !important;
  }

  body.print-docs #printArea {
    width: 100%;
    margin: 0 auto;
  }

@media print {

  body.print-label {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
  }

  #invoiceSection {
    position: static;   /* remove absolute */
    width: auto;
    margin: auto;
  }

}

@media print {
  @page {
    size: A4;
    margin: 1in;
  }

  .shipping-label {
    width: 100mm;
    max-width: 720px;   /* same as screen */
    margin: auto;
  }
}
/* hide print button */
.print-btn{
display:none !important;
}

@media print {

  .label-top{
    display: grid !important;
    grid-template-columns: 70px 1fr 180px !important;
    align-items: center;
  }

  .label-grid{
    grid-template-columns:160px 1fr 1fr 1fr !important;
  }

}

@media print {
  body {
    min-width: 800px;
  }
}

}
@media print {

  body.print-qt #qtInvoiceThai {
    transform: scale(1);
    transform-origin: top left;
    width: 100%;
  }

}
/* TRACKING CARD */
#trackingSection{
background:#fff;
padding:25px;
border-radius:12px;
margin-top:25px;
}

/* TRACKING CONTAINER */
.tracking{
position:relative;
margin-top:30px;
}

/* STEP WRAPPER */
#steps{
display:flex;
justify-content:space-between;
align-items:flex-start;
position:relative;
}

/* BACKGROUND LINE */
.track-line{
position:absolute;
top:26px;
left:0;
right:0;
height:3px;
background:#d9d9d9;
z-index:1;
}

/* PROGRESS BAR */
.progress-bar{
position:absolute;
top:26px;
left:0;
height:3px;
background:#242f67;
width:0%;
z-index:2;
transition:width 0.5s ease;
}

/* STEP */
.step{
text-align:center;
width:100%;
position:relative;
z-index:3;
}

/* ICON CIRCLE */
.circle{
width:46px;
height:46px;
border-radius:50%;
background:#e6e6e6;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:18px;
color:#555;
transition:0.3s;
}

/* ACTIVE STEP */
.step.active .circle{
background:#242f67;
color:#fff;
box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

/* LABEL */
.label{
margin-top:8px;
font-size:14px;
font-weight:600;
color:#333;
}

/* DATE */
.date{
font-size:12px;
color:#777;
margin-top:2px;
}

/* CURRENT STATUS */
#currentStatus{
margin-top:15px;
font-size:14px;
color:#333;
}

#trackingSection h3{
display:flex;
align-items:center;
gap:10px;
font-size:20px;
margin-bottom:10px;
}

/* TRACKING SEARCH */

.tracking-search{
max-width:500px;
margin:25px auto;
display:flex;
flex-direction:column;
gap:12px;
}

/* ===== MOBILE TRACKING FIX ===== */

@media (max-width:768px){

.tracking{
overflow-x:auto;
padding-bottom:10px;
}

#steps{
display:flex;
min-width:600px;
}

.step{
flex:0 0 auto;
width:100px;
text-align:center;
}

.circle{
width:40px;
height:40px;
font-size:14px;
}

.label{
font-size:12px;
}

.date{
font-size:11px;
}

.track-line{
width:600px;
}

.progress-bar{
width:0;
}

}

/* INPUT BOX */

.track-input-box{
display:flex;
align-items:center;
background:#fff;
border:2px solid #e4e7f2;
border-radius:10px;
padding:12px 15px;
transition:0.3s;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.track-input-box i{
color:#777;
margin-right:10px;
font-size:16px;
}

.track-input-box input{
border:none;
outline:none;
flex:1;
font-size:15px;
background:none;
}

/* FOCUS EFFECT */

.track-input-box:focus-within{
border-color:#2c5cff;
box-shadow:0 0 0 3px rgba(44,92,255,0.15);
}

/* BUTTON */

.track-btn{
background:linear-gradient(135deg,#ff5a6b,#e64555);
color:white;
border:none;
padding:12px;
border-radius:10px;
font-weight:600;
font-size:15px;
cursor:pointer;
transition:0.25s;
}

.track-btn:hover{
transform:translateY(-2px);
box-shadow:0 6px 16px rgba(0,0,0,0.2);
}


/*summary section*/
/* ============================= */
/* SUMMARY CONTAINER */
/* ============================= */

.tvc-summary{
border:1px solid #d1d5db;
padding:30px;
background:#ffffff;
max-width:950px;
margin:auto;
border-radius:10px;
font-family:Arial, sans-serif;
}


/* ============================= */
/* HEADER */
/* ============================= */

.summary-header{
display:flex;
justify-content:space-between;
align-items:center;

padding:15px 18px;

background:#f8fafc;
border-radius:8px;

margin-bottom:15px;
}

.company{
display:flex;
align-items:center;
gap:10px;
font-weight:600;
color:#1f2937;
}

.logo-small{
width:28px;
}

.transport-box{
background:#e0f2fe;
color:#0369a1;
padding:8px 16px;
border-radius:6px;
font-weight:600;
font-size:13px;
}


/* ============================= */
/* INFO ROWS */
/* ============================= */

.summary-row{
background:#f9fafb;
padding:14px 16px;
border-radius:6px;
margin-bottom:10px;
border:1px solid #e5e7eb;
width:100%;
}


/* ============================= */
/* GRID SECTION */
/* ============================= */

.summary-grid{
display:grid;
grid-template-columns:160px 1fr 1fr 1fr;
gap:5px;
margin-top:5px;
align-items:stretch;
}


/* GRID CELLS */

.cell{
background:#ffffff;
padding:12px 14px;
border-radius:6px;
border:1px solid #e5e7eb;
font-size:14px;

display:flex;
align-items:center;
min-height:48px;
}


/* LABEL COLUMN */

.label{
/*background:#f3f4f6;*/
font-weight:600;
color:#374151;
margin:0;
}


/* ============================= */
/* REMARK + CHARGE SECTION */
/* ============================= */

.summary-bottom{
margin-top:15px;
}

.remarks{
background:#fafafa;
border:1px solid #e5e7eb;
padding:15px;
border-radius:8px;
width:100%;
box-sizing:border-box;
}


/* REMARK BOX */

.remarks{
background:#fafafa;
border:1px solid #e5e7eb;
padding:15px;
border-radius:8px;
}

.remark-note {
  font-size: 12px;
  color: #f25f70;
  margin-top: 6px;
  line-height: 1.4;
}
/* CHARGEABLE WEIGHT BOX */

.charge{
background:#eef2ff;
border:1px solid #c7d2fe;
padding:18px;
border-radius:8px;

display:flex;
flex-direction:column;
justify-content:center;
align-items:center;

text-align:center;
font-weight:600;
font-size:16px;
color:#1e3a8a;
}


/* ============================= */
/* SERVICE FEE */
/* ============================= */

.service-fee{
background:#fef9c3;
border:1px solid #fde68a;
padding:18px;
margin-top:18px;
border-radius:8px;
font-weight:600;
font-size:16px;
}

.fee-note{
font-size:12px;
color:#6b7280;
margin-top:6px;
}

.price-box {
  text-align: center;
}


/* ============================= */
/* CONFIRM BUTTON */
/* ============================= */

.confirm-btn{
margin-top:25px;
text-align:center;
}

.confirm-btn button{
background:#2f3c7e;
color:white;
border:none;
padding:14px 30px;
border-radius:8px;
font-size:16px;
font-weight:600;
cursor:pointer;
transition:0.2s;
}

.confirm-btn button:hover{
background:#1e2a63;
}

.row-grid{
display:grid;
grid-template-columns:80px 1fr;
row-gap:6px;
}

.row-label{
font-weight:600;
color:#374151;
}

.row-value{
word-break:break-word;
}

.goods-row{
display:grid;
grid-template-columns:130px 1fr;
column-gap:8px;
}

/* ETD ETA SECTION */

.etd-eta-box{
display:grid;
grid-template-columns:150px 150px 1fr;
gap:15px;
margin-top:20px;
align-items:center;
}

.etd-box,
.eta-box{
border:1px solid #e5e7eb;
padding:15px;
border-radius:8px;
background:#f9fafb;
text-align:center;
font-weight:600;
}

/* MINI TRACKING */

.tracking-mini{
position:relative;
width:100%;
}

.mini-line{
position:absolute;
top:18px;
left:0;
right:0;
height:3px;
background:#d1d5db;
}

.mini-progress{
position:absolute;
top:18px;
left:0;
height:3px;
width:20%;
background:#3b82f6;
}

.mini-steps{
display:flex;
justify-content:space-between;
position:relative;
}

.mini-step{
text-align:center;
width:100%;
}

.mini-circle{
width:38px;
height:38px;
border-radius:50%;
background:#e5e7eb;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
font-size:15px;
color:#374151;
}

.mini-step.active .mini-circle{
background:#3b82f6;
color:white;
}

.mini-step:hover .mini-circle{
transform:scale(1.15);
transition:0.2s;
}
.mini-step.active .mini-circle{
background:#3b82f6;
color:#fff;
}

.mini-step p{
font-size:11px;
margin-top:5px;
}


/* ===================================== */
/* SUMMARY + TRACKING RESPONSIVE DESIGN */
/* ===================================== */


/* Fix long text overflow */
.row-value,
.remarks{
word-break:break-word;
overflow-wrap:anywhere;
}


/* Improve step spacing */
.mini-step{
text-align:center;
width:100%;
padding:0 6px;
}

.mini-step p{
font-size:11px;
margin-top:6px;
line-height:1.2;
}


/* ===================================== */
/* TABLET VERSION */
/* ===================================== */

@media (max-width:1024px){
  .summary-header{
    flex-direction:row;     
    align-items:center;
  }

  .company{
    min-width:0;
    overflow:hidden;
  }

  .company span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .transport-box{
    margin-left:auto;  /* push to right */
    white-space:nowrap;
  }
}


/* Cells */
.cell{
font-size:13px;
padding:10px 12px;
}

/* ETD ETA layout */
.etd-eta-box{
grid-template-columns:1fr 1fr;
grid-template-rows:auto auto;
}

/* Timeline moves below */
.tracking-mini{
grid-column:1 / -1;
margin-top:10px;
}

.mini-step p{
font-size:10px;
}



/* ===================================== */
/* MOBILE VERSION */
/* ===================================== */

@media (max-width:768px){

/* Summary container */
.tvc-summary{
padding:18px;
border-radius:10px;
}

/* Labels full width */
.label{
grid-column:auto;
}

/* Cell styling */
.cell{
font-size:13px;
min-height:auto;
padding:10px;
}

/* Address grid */
.row-grid{
grid-template-columns:70px 1fr;
}

/* Goods row */
.goods-row{
    grid-template-columns:auto 1fr !important;
  }
/* ETD ETA stacked */
.etd-eta-box{
grid-template-columns:1fr;
gap:12px;
}

/* ETD ETA box */
.etd-box,
.eta-box{
width:100%;
}

/* Timeline scrollable */
.tracking-mini{
overflow-x:auto;
padding-bottom:10px;
}

/* Prevent timeline shrinking */
.mini-steps{
min-width:520px;
}

/* Smaller circles */
.mini-circle{
width:34px;
height:34px;
font-size:14px;
}

.mini-step p{
font-size:10px;
}

}


/* ===================================== */
/* SMALL PHONE VERSION */
/* ===================================== */

@media (max-width:480px){

.tvc-summary{
padding:15px;
border-radius:8px;
}

/* Rows */
.summary-row{
padding:12px;
}

/* Cells */
.cell{
font-size:12px;
padding:9px;
}

/* Labels */
.row-label{
font-size:13px;
}

.row-value{
font-size:13px;
}

/* Transport badge */
.transport-box{
font-size:12px;
padding:6px 12px;
}

/* Timeline circles */
.mini-circle{
width:30px;
height:30px;
font-size:13px;
}

/* Timeline line alignment */
.mini-line,
.mini-progress{
top:15px;
}

.mini-step p{
font-size:9px;
}

}

/* ================= SHIPPING LABEL ================= */

.shipping-label{
max-width:720px;
width:100%;
margin:30px auto;
border:2px solid #e4e4e4;
border-radius:12px;
padding:25px;
background:#ffffff;
font-family:Arial, Helvetica, sans-serif;
box-shadow:0 8px 25px rgba(0,0,0,0.08);
box-sizing:border-box;
}

/* ===== HEADER ===== */

.label-top{
display:grid;
grid-template-columns:70px 1fr 180px;
align-items:center;
gap:15px;
margin-bottom:20px;
border-bottom:2px dashed #ddd;
padding-bottom:12px;
}

.label-logo img{
width:55px;
}

.label-title{
border:2px solid #d1d5db;
padding:10px;
text-align:center;
font-weight:700;
letter-spacing:1px;
border-radius:6px;
background:#f6fff1;
font-size:16px;
}

.transport-mode{
border:2px solid #6bc048;
padding:10px;
text-align:center;
font-weight:700;
border-radius:6px;
background:#f6fff1;
color:#2e7d32;
font-size:14px;
}

/* ===== ADDRESS ===== */

.label-box{
border:1px solid #dcdcdc;
padding:12px 14px;
margin-bottom:10px;
border-radius:6px;
background:#f9f9f9;
font-size:14px;
line-height:1.5;
}

/* ===== GOODS ===== */

.label-small{
border:1px solid #dcdcdc;
padding:10px;
width:230px;
margin-bottom:12px;
border-radius:6px;
background:#fafafa;
font-size:14px;
}

/* ===== GRID SECTION ===== */

.label-grid{
display:grid;
grid-template-columns:160px 1fr 1fr 1fr;
gap:8px;
margin-top:12px;
}

.label-grid div{
border:1px solid #e3e3e3;
padding:8px;
font-size:13px;
border-radius:5px;
background:#fcfcfc;
}

.grid-title{
font-weight:bold;
background:#f0f7ec;
color:#333;
}

/* ===== REMARKS ===== */

.label-remarks{
border:1px solid #e0e0e0;
padding:12px;
margin-top:14px;
border-radius:6px;
background:#fafafa;
font-size:14px;
}

/* ===== BARCODE ===== */

.barcode-area{
text-align:center;
margin-top:5px;
padding:5px;
border:1px dashed #ccc;
border-radius:8px;
background:#fafafa;
}

.barcode-area p{
margin-bottom:8px;
font-size:14px;
}

/* ===== BOTTOM ===== */

.label-bottom{
display:flex;
justify-content:space-between;
align-items:center;
padding-top:10px;
}

.qr{
width:95px;
border:1px solid #eee;
padding:4px;
border-radius:6px;
background:#fff;
}


/* ===== MOBILE RESPONSIVE ===== */

@media (max-width:768px){

.shipping-label{
padding:15px;
}

 .label-top{
    grid-template-columns:50px 1fr auto; /* 3 columns again */
    gap:8px;
  }

  .transport-mode{
    grid-column:auto;   /* remove span */
    white-space:nowrap;
  }

  .label-title{
    font-size:14px;
    padding:8px;
  }

.label-small{
width:100%;
}

.label-grid{
grid-template-columns:1fr 1fr;
}

.label-bottom{
flex-direction:column;
gap:10px;
align-items:flex-start;
}

.qr{
width:80px;
}

}

@media print{
body{
background:white;
}

.shipping-label{
box-shadow:none;
margin:0;
border:2px solid #000;
}
}

@media print {
  .label-bottom {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }
}

/* ================= INVOICE DOCUMENT ================= */

.doc-title{
  border: none;           /* remove box */
  background: none;       /* remove green bg */
  padding: 0;

  text-align: center;     /* center */
  font-weight: 800;       /* bold */
  font-size: 32px;

  margin-bottom: 20px;
  letter-spacing: 1px;
}
/* ===== TOP GRID ===== */

.doc-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr;
gap:8px;
}

.box{
border:2px solid #6bc048;
padding:10px;
font-size:14px;
border-radius:6px;
background:#ffffff;
line-height:1.4;
}

/* exporter / importer wider */

.wide{
grid-column:span 1;
}

/* ===== PRODUCT TABLE ===== */

.table-box{

margin-bottom:18px;
border-radius:6px;
background:#ffffff;
}

.table-head{
font-weight:600;
margin-bottom:8px;
font-size:14px;
}

/* ===== REMARKS + SIGN ===== */

.bottom-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
margin-bottom:20px;
align-items:start;
}

.remarks,
.sign{
min-height:100px;
background:#ffffff;
border-radius:6px;
}


/* ===== DOWNLOAD BUTTON AREA ===== */

.download-area{
display:flex;
justify-content:center;
gap:12px;
margin-top:18px;
flex-wrap:wrap;
}

.download-btn{
display:flex;
align-items:center;
justify-content:center;
gap:8px;
padding:12px 24px;
border:2px solid #6bc048;
background:linear-gradient(135deg,#6bc048,#57a73a);
color:#ffffff;
font-weight:600;
font-size:14px;
border-radius:8px;
cursor:pointer;
transition:all .25s ease;
min-width:180px;
}

.download-btn:hover{
background:linear-gradient(135deg,#57a73a,#4d9332);
border-color:#4d9332;
transform:translateY(-1px);
box-shadow:0 6px 15px rgba(0,0,0,0.15);
}
/* ===== MOBILE ===== */

@media (max-width:768px){

.doc-grid{
grid-template-columns:1fr;
}

.bottom-grid{
grid-template-columns:1fr;
}

}

/* ===== DOCUMENT TABLE ===== */

.doc-table{
display:grid;
grid-template-columns: repeat(7, minmax(80px,1fr));
margin-top:6px;
}

.doc-head{
display:contents;
}

.doc-row{
display:contents;
}

.doc-head div{
border:1px solid #e2e2e2;
border-top:none;
border-left:none;
padding:10px;
font-weight:700;
font-size:14px;
background:#efefef;
text-align:center;
}

.doc-row div{
border:1px solid #e2e2e2;
border-left:none;
padding:10px;
font-size:13px;
text-align:center;
background:#ffffff;
min-height:40px;
}

/*For Invoice*/
.invoice-table{
width:100%;
border-collapse:collapse;
margin-top:10px;
font-size:14px;
}

.invoice-table th,
.invoice-table td{
border:1.5px solid #6bc048;
padding:8px;
text-align:center;
}

.invoice-table th{
background:#f3f8ef;
font-weight:600;
}

.total-label{
text-align:right;
font-weight:bold;
}

/*For Packing*/
.packing-table{
width:100%;
border-collapse:collapse;
border:2px solid #6bc048;
font-size:14px;
margin-top:10px;
}

.packing-table th,
.packing-table td{
border:1.5px solid #6bc048;
padding:8px;
text-align:center;
}

.packing-table th{
background:#f3f8ef;
font-weight:600;
}

.packing-body{
height:10px;
}

.extra-info{
margin-top:10px;
grid-template-columns: repeat(4, 1fr);
gap:10px;
}

.box span{
display:block;
margin-top:5px;
font-weight:500;
}

.big{
grid-column: span 2;
min-height:70px;
}

.city-country{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
}

#senderInfo{
width:100%;
padding:8px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
resize:vertical;
}

#receiverInfo{
width:100%;
padding:8px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
resize:vertical;
}

.calc-title-small{
  font-weight:600;
  font-size:14px;
  margin-bottom:8px;
  color:#2f3c7e;
}

.inline-row{
  display:flex;
  align-items:center;

}

/* Left title */
.calc-title-small{
  min-width:130px;
  font-weight:600;
}

/* Right inputs */
.inline-row .box-content{
  flex:1;
}

/* Horizontal inputs */
.box-content.horizontal{
  display:flex;
  gap:5px;
}

/* Make inputs equal width */
.box-content.horizontal input{
  flex:1;
}

/* Mobile responsive */
@media (max-width:768px){
  .inline-row{
    flex-direction:column;
    align-items:stretch;
  }

  .calc-title-small{
    min-width:auto;
  }
}

/* ===== HEADER TOP ===== */
.calc-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

/* Title */
.calc-heading{
  font-size:20px;
  font-weight:700;
  color:#1f275c;
}

/* Small Upload Button */
.upload-btn-small{
  display:flex;
  align-items:center;
  gap:6px;
  padding:12px 35px;
  font-size:13px;
  font-weight:600;
  border-radius:8px;
  cursor:pointer;

  background:#eef2ff;
  color:#2f3c7e;
  border:1px solid #c7d2fe;

  transition:0.2s;
}

.upload-btn-small:hover{
  background:#dbe4ff;
  transform:translateY(-1px);
}

/* Icon */
.upload-btn-small i{
  font-size:13px;
}
.file-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.file-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f1f5ff;
  padding:6px 10px;
  border-radius:6px;
  font-size:13px;
}

.file-name-text{
  color:#2f3c7e;
  text-decoration:none;
}

.remove-icon{
  cursor:pointer;
  color:#888;
  font-size:12px;
}

.remove-icon:hover{
  color:#e64555;
}

.box{
  word-break: break-word;
  overflow-wrap: break-word;
}

.table-wrapper{
  width:100%;
  overflow-x:auto;
}

@media (max-width:768px){

  .box{
    font-size:13px;
    padding:8px;
  }

  .doc-title{
    font-size:16px;
  }

}
@media (max-width:768px){
  .box span{
    display:block;
    margin-top:4px;
    font-weight:600;
  }
}
.card{
  padding:16px;
}
/* ===== SIDE BY SIDE DOCUMENTS ===== */

.docs-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}

/* Make both cards same height (clean UI) */
.docs-wrapper .card{
  display:flex;
  flex-direction:column;
}

/* Prevent tables breaking layout */
.table-wrapper{
  width:100%;
  overflow-x:auto;
}

/* ===== RESPONSIVE (MOBILE) ===== */


/* ================= TABLET (≤1200px) ================= */

@media (max-width:1200px){


  /* Reduce grid complexity */
  .doc-grid{
    grid-template-columns:1fr 1fr;
  }

  .extra-info{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  /* Big box spans full width */
  .big{
    grid-column:span 2;
  }

  /* Smaller text */
  .box{
    font-size:13px;
    padding:8px;
  }

  .doc-title{
    font-size:18px;
  }

}

/* ================= TABLET PORTRAIT (≤992px) ================= */

@media (max-width:992px){

  .extra-info{
    grid-template-columns:1fr 1fr;
  }

}

/* ================= MOBILE (≤768px) ================= */

@media (max-width:768px){

  .docs-wrapper{
    grid-template-columns:1fr;
  }

  .extra-info{
    grid-template-columns:1fr;
  }

  .bottom-grid{
    grid-template-columns:1fr;
  }

  .box{
    font-size:13px;
    padding:8px;
  }

  .doc-title{
    font-size:16px;
  }

  /* Stack label values */
  .box span{
    display:block;
    margin-top:4px;
    font-weight:600;
  }

}

@media print{

.download-area{
display:none;
}

}
/* ================= PRINT FIX ================= */

@media print{

  body{
    background:white;
  }

  .docs-wrapper{
    display:block;
  }

#commercialInvoice {
  page-break-after: always;
}

#packingList {
  page-break-before: auto;
}

  .table-wrapper{
    overflow:visible;
  }

  .invoice-table,
  .packing-table{
    min-width:100%;
  }

}

/* ===== PRINT FIX FINAL ===== */
@media print {

  #printArea {
    width: 100%;
    margin: 0 auto;
    background: white;
  }

  /* Page break */
  #commercialInvoice {
    page-break-after: always;
  }

  #packingList {
    page-break-before: always;
  }

  /* Keep design */
  .card {
    box-shadow: none !important;
    border: 1px solid #6bc048;
  }

  .doc-title {
    border: none !important;
    background: none !important;
  }

}

@media print {

  body * {
    visibility: hidden !important;
  }

  body.print-label #invoiceSection,
  body.print-label #invoiceSection * {
    visibility: visible !important;
  }

  #invoiceSection button {
    display: none !important;
  }

}

@media print {

  @page {
    size: A4;
    margin: 1in;
  }
}

/* ===== PRINT TEXT FIX ===== */
.info-line{
  display:flex;
  align-items:flex-start;
  gap:5px;
}

.info-line span{
  white-space: normal;
  word-break: break-word;
}

.info-line span:last-child {
  flex: 1;
  display: block;
  text-align:left;
}
.label{
  min-width: auto;  /* slightly bigger */
}


@media print {
    /* 1. Force white background and remove shadows */
    body, .invoice-label, .card {
        background-color: white !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact;
    }

    /* 2. Hide tracking and print button to save space */
    #trackingSection, .print-btn {
        display: none !important;
    }

    /* 3. Tighten the layout to prevent a 2nd blank page */
    html, body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }

    #invoiceSection {
        width: 100%;
        margin: 0 !important;
        padding: 5mm !important;
        page-break-after: avoid;
    }

    /* 4. Shrink QR icons so they don't push content to page 2 */
    .qr-item img {
        height: 60px !important;
    }
}





/* ================= PRINT SUMMARY ================= */
@media print {

  /* Hide everything */
  body * {
    visibility: hidden !important;
  }

  /* Show ONLY summary */
  body.print-summary #summaryBox,
  body.print-summary #summaryBox * {
    visibility: visible !important;
  }

  /* Position it nicely */
  body.print-summary #summaryBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: #f5f7fb;
  }

  /* Keep EXACT design */
  .tvc-summary{
    max-width: 950px;
    margin: auto;
    box-shadow: none !important;
  }

  /* FIX GRID TO 4 COLUMNS */
body.print-summary .summary-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

/* ensure cells fit properly */
body.print-summary .cell {
  width: 100% !important;
}
  /* Hide buttons */
  .summary-buttons{
    display: none !important;
  }

  /* Prevent breaking */
  .summary-row,
  .service-fee,
  .tvc-summary{
    page-break-inside: avoid;
  }

  /* A4 */
  @page{
    size: A4;
    margin: 1in;
  }

}


/* FORCE DESKTOP GRID IN PRINT */
@media print {

  body.print-summary .summary-grid {
    display: grid !important;
    grid-template-columns: 160px 1fr 1fr 1fr !important;
    gap: 8px !important;
  }

  /* OVERRIDE ALL RESPONSIVE BREAKPOINTS */
  @media (max-width:1024px){
    body.print-summary .summary-grid{
      grid-template-columns: 160px 1fr 1fr 1fr !important;
    }
  }

  @media (max-width:768px){
    body.print-summary .summary-grid{
      grid-template-columns: 160px 1fr 1fr 1fr !important;
    }
  }

  /* FORCE SUMMARY LAYOUT */
  body.print-summary {
    min-width: 1200px !important;
  }

  /* ===== ETD / ETA FIX ===== */
  body.print-summary .etd-eta-box {
    display: flex !important;   /* more stable than grid in print */
    gap: 20px !important;
    width: 100% !important;
  }

  body.print-summary .etd-box,
  body.print-summary .eta-box {
    flex: 1 !important;         /* equal width */
    height: 90px !important;    /* fix small size */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: nowrap !important;
    text-align: center !important;
    font-size: 12px !important;
  }

  /* ===== TRACKING LINE FIX ===== */
  body.print-summary .tracking-mini {
    position: relative !important;
    width: 100% !important;
  }

  body.print-summary .mini-steps {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* make sure container works */
  /* ===== TRACKING CONTAINER ===== */
  body.print-summary .tracking-mini {
    position: relative !important;
    width: 100% !important;
    padding-top: 10px;
  }

  /* ===== FORCE LINE (PRINT SAFE) ===== */
  body.print-summary .tracking-mini::before {
    content: "";
    position: absolute;
    top: 32px;              /* align with icons */
    left: 5%;
    width: 90%;
    
    border-top: 3px solid #3b82f6; /* PRINT SAFE LINE */
    
    z-index: 1;
  }

  /* ===== STEPS ABOVE LINE ===== */
  body.print-summary .mini-step {
    position: relative;
    z-index: 2;
  }

}
@media screen and (max-width:768px){

  /* ===== FORCE FIX SUMMARY ONLY ===== */

  .tvc-summary .summary-grid{
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  /* OVERRIDE YOUR GLOBAL LABEL */
  .tvc-summary .label{
    min-width: auto !important;
    grid-column: 1 / -1;
  }

  /* FIX CELL OVERFLOW */
  .tvc-summary .cell{
    font-size: 12px;
    padding: 8px;
    word-break: break-word;
  }

  /* FIX TOP FLEX */
  .tvc-summary .top-flex{
    flex-direction: column;
  }

  .tvc-summary .top-right{
    width: 100%;
    margin-top: 10px;
  }

}
@media print {

  /* A4 setup */
  @page {
    size: A4;
    margin: 1in;
  }

  /* SHOW ONLY IV + PL */
  body * {
    visibility: hidden !important;
  }

  body.print-docs #printArea,
  body.print-docs #printArea * {
    visibility: visible !important;
  }

  body.print-docs #printArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* KEEP SAME DESIGN AS SCREEN */
  body.print-docs {
    min-width: 1200px;   /* force desktop layout */
    background: white;
  }

  /* KEEP YOUR GREEN BOX DESIGN */
  .box {
    border: 2px solid #6bc048 !important;
    background: #fff !important;
  }

  /* KEEP GRID SAME */
  .doc-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .extra-info {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* TABLE SAME */
  .invoice-table th,
  .invoice-table td,
  .packing-table th,
  .packing-table td {
    border: 1.5px solid #6bc048 !important;
  }

  /* TITLE SAME */
  .doc-title {
    font-size: 32px !important;
    font-weight: 800;
    text-align: center;
  }

  /* PAGE BREAK */
  #commercialInvoice {
    page-break-after: always;
  }

  #packingList {
    page-break-before: always;
  }

  /* HIDE BUTTONS */
  .download-area {
    display: none !important;
  }

}


/* Item btn*/
.btn-row{
  display:flex;
  gap:15px;
  margin-top:15px;
}

.btn-row button{
  flex:1;
  padding:12px;
  border-radius:8px;
  border:none;
  font-weight:600;
  cursor:pointer;
}

.btn-secondary{
  background:#2f3c7e;
  color:white;
}

.btn-primary{
  background:#2f3c7e;
  color:white;
}

.item-row{
  grid-template-columns: 2fr 1fr 1fr 50px;
  gap:10px;
  margin-bottom:10px;
}

.item-row input{
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
}
.item-row{
  display:grid;
  grid-template-columns: repeat(5, 2fr);
  gap:8px;
  margin-bottom:10px;
}

.item-row input,
.item-row select{
  padding:8px;
  border-radius:6px;
  border:1px solid #ccc;
}

.remove-btn{
  background:#d94c5c;
  color:white;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:bold;
}

#ivplExtraForm h3{
  text-align:center;
  margin-bottom:20px;
}


/* Other Document */
.docs-card{
  background:#f9fafc;
  border-radius:12px;
  padding:16px;
  margin-top:12px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.docs-title{
  margin-bottom:12px;
  font-weight:700;
  color:#2f3c7e;
}

/* grid layout */
.docs-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}

/* each item */
.doc-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  background:#2f3c7e;
  text-decoration:none;
  color:#fff;
  font-weight:500;
  border:1px solid #e5e7eb;
  transition:0.25s;
}

/* hover effect */
.doc-item:hover{
  background:#2f3c7e;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(0,0,0,0.15);
}


.qt-paper{
border:1px solid #000;
padding:15px;
font-size:13px;
font-family:Arial;
}

/* HEADER */
.qt-header{
display:grid;
grid-template-columns:80px 1fr 220px;
align-items:center;
margin-bottom:5px;
}

.qt-logo img{
width:60px;
}

.qt-company{
font-size:12spx;
line-height:1.4;
}

.qt-title{
  background:#1f9d6b;
  color:#fff;
  padding:8px 10px;   /* smaller */
  text-align:center;
  font-weight:bold;
  border-radius:4px;
  line-height:1.2;
}

.qt-no{
  background:#fff;
  color:#000;
  margin-top:5px;
  padding:4px;
  font-size:12px;
}
/* ===== TITLE SIDE BY SIDE ===== */

/* WHITE QT BOX */
.qt-no-box{
  background:#fff;
  border:1.5px solid #1f9d6b;
  border-left:none;
  display:flex;
  align-items:center;
  padding:5px 10px;
  font-size:12px;
  min-width:150px;
}

/* INPUT */
.qt-no-box input{
  border:none;
  outline:none;
  width:100%;
  margin-left:5px;
}
/* BOX */
/* ===== EXACT IMAGE STYLE ===== */
.qt-info-table{
  display:grid;
  grid-template-columns: 1fr 1fr;
  border:1.5px solid #000;
}

/* LEFT SIDE */
.qt-info-left{
  padding:8px;
  border-right:1.5px solid #000;
}

/* REMOVE INNER LINES */
.qt-info-left .info-line{
  display:flex;
  gap:5px;
  margin-bottom:6px;
}

/* RIGHT SIDE */
.qt-info-right{
  display:flex;
  flex-direction:column;
}

/* ROW SPLIT */
.info-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1.5px solid #000;
}

/* LINE */
.info-line{
  display:flex;
  align-items:flex-start;
  padding:6px;
  gap:5px;
  width:100%;
}

.info-line span:last-child,
.info-line input,
.info-line textarea{
  flex:1;
  width:100%;
}

/* SPLIT BORDER */
.info-row .info-line:first-child{
  border-right:1.5px solid #000;
}

/* LABEL */
.label{
  font-weight:bold;
  font-size:12px;
  white-space:nowrap;
}

/* INPUT */
.info-line input,
.info-line textarea{
  border:none;
  outline:none;
  width:100%;
  font-size:12px;
}

/* ADDRESS */
.address textarea{
  /*height:50px;*/
  resize:none;
}
/* ===== FIX LONG TEXT WRAP ===== */
.qt-info-table .info-line span,
.qt-info-table .info-line div,
.qt-info-table .info-line p {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* TOP ALIGN */
.qt-info-left,
.qt-info-right,
.info-row {
  align-items: stretch;
}

.info-line{
  align-items: flex-start;
}

/* BALANCE HEIGHT */
.qt-info-table{
  align-items: stretch;
}

.qt-info-left,
.qt-info-right{
  height: 100%;
}

/* FIX LABEL WIDTH */
.label{
  min-width: 10px;
  display:inline-block;
}


/* TABLE */
.qt-table{
width:100%;
border-collapse:collapse;
table-layout:fixed; /* IMPORTANT */
}

/* HEADER */
.qt-table th{
background:#1f9d6b;
color:#fff;
padding:6px;
border:1.5px solid #000;
font-size:12px;
}

/* BODY */
.qt-table td{
border:1.5px solid #000;
padding:6px;
font-size:12px;
vertical-align:top;
}

/* COLUMN WIDTH (VERY IMPORTANT) */
.qt-table th:nth-child(1),
.qt-table td:nth-child(1){
width:40px;
text-align:center;
}

.qt-table th:nth-child(2),
.qt-table td:nth-child(2){
width:auto;
}

.qt-table th:nth-child(3),
.qt-table td:nth-child(3){
width:80px;
text-align:center;
}

.qt-table th:nth-child(4),
.qt-table td:nth-child(4){
width:120px;
text-align:right;
}

.qt-table th:nth-child(5),
.qt-table td:nth-child(5){
width:120px;
text-align:right;
}
.qt-table input{
width:100%;
border:none;
outline:none;
text-align:right;
}

.qt-table .desc{
text-align:left;
}

/* SUMMARY */
.qt-summary{
display:flex;
justify-content:space-between;
margin-top:10px;
}

.qt-right{
border:1px solid #000;
padding:10px;
width:250px;
}

.qt-right div{
display:flex;
justify-content:space-between;
margin-bottom:5px;
}

.qt-right .grand{
background:#1f9d6b;
color:#fff;
padding:5px;
}

.qt-right .final{
font-weight:bold;
}

/* SIGN */
.qt-sign{
display:grid;
grid-template-columns:1fr 1fr 1fr;
margin-top:40px;
text-align:center;
}
.qt-paper input, .qt-paper textarea{
width:100%;
border:none;
border-bottom:1px solid #000;
outline:none;
font-size:13px;
}

.qt-paper textarea{
resize:none;
/*height:60px;*/
}

button{
/*margin-top:10px;*/
padding:6px 12px;
cursor:pointer;
}
/* ===== EXACT GRID FOOTER ===== */
.qt-footer-grid{
display:grid;
grid-template-columns: 1fr 260px;
/*gap:10px;
margin-top:15px;*/
align-items:stretch;
}

/* LEFT */
.qt-footer-left{
display:grid;
grid-template-rows:auto auto auto;
border:1px solid #000;
}
.qt-terms{
  padding:8px;
  font-size:12px;
  line-height:1.3;
}
.qt-terms textarea{
  width:100%;
  /*height:60px;         FIXED HEIGHT 
  min-height:60px;*/
  max-height:60px;
  resize:none;
}
.qt-terms{
  border-top:none !important;
  border-bottom:none !important;
}
/* AMOUNT */
.qt-amount-row{
border-bottom:1px solid #000;
padding:8px;
}

/* SIGN GRID */
.qt-sign-grid{
display:grid;
grid-template-columns:1fr 1fr 1fr;
border-top:1px solid #000;
height:100%;
}

/* SIGN CELL */
.qt-sign-cell{
border-right:1px solid #000;
padding-top:80px;
text-align:center;
font-size:12px;
}

.qt-sign-cell:last-child{
border-right:none;
}

.qt-sign-cell.center{
display:flex;
align-items:center;
justify-content:center;
}

/* RIGHT TOTAL BOX */
.qt-total-box{
border:1px solid #000;
display:flex;
flex-direction:column;
}

/* ROW */
.qt-total-box .row{
display:flex;
justify-content:space-between;
padding:6px 10px;
}

/* GREEN TOTAL */
.qt-total-box .total{
background:#1f9d6b;
color:#fff;
font-weight:bold;
}

/* NET */
.qt-total-box .net{
font-weight:bold;
}
.qt-footer-grid{
min-height:220px;
}

.qt-footer-right{
border:1px solid #000;
width:260px;
display:flex;
flex-direction:column;
}

/* normal row */
.qt-row{
display:flex;
justify-content:space-between;
padding:8px 10px;
border-bottom:1px solid #000;
}

/* green total */
.qt-total-row{
display:flex;
justify-content:space-between;
padding:8px 10px;
background:#1f9d6b;
color:#fff;
font-weight:bold;
border-bottom:1px solid #000;
}

/* net pay */
.qt-net-row{
display:flex;
justify-content:space-between;
padding:8px 10px;
font-weight:bold;
}
@media print {

  /* HIDE EVERYTHING */
  body * {
    visibility: hidden !important;
  }

  /* SHOW ONLY QT */
  body.print-qt #qtInvoiceThai,
  body.print-qt #qtInvoiceThai * {
    visibility: visible !important;
  }

  body.print-qt #qtInvoiceThai {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
  }

  /* KEEP DESIGN SAME */
  body.print-qt {
    min-width: 800px;
  }

  /* HIDE BUTTON */
  .confirm-btn {
    display: none !important;
  }

  /* A4 SIZE */
  @page {
    size: A4 portrait;
    margin: 1in;
  }

}

/*for QT IV*/
@media print {

  body * {
    visibility: hidden !important;
  }

  /* QUOTATION */
  body.print-qt #qtInvoiceThai,
  body.print-qt #qtInvoiceThai * {
    visibility: visible !important;
  }

  body.print-qt #qtInvoiceThai {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
  }

  /* INVOICE */
  body.print-inv #invoiceForm,
  body.print-inv #invoiceForm * {
    visibility: visible !important;
  }

  body.print-inv #invoiceForm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
  }

  /* hide buttons */
  .confirm-btn {
    display: none !important;
  }

  @page {
    size: A4 portrait;
    margin: 1in;
  }
}

/* ================= PRINT RECEIPT ================= */
@media print {

  /* hide everything */
  body * {
    visibility: hidden !important;
  }

  /* show ONLY receipt */
  body.print-receipt #receiptThai,
  body.print-receipt #receiptThai * {
    visibility: visible !important;
  }

  body.print-receipt #receiptThai {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
  }

  /* hide buttons */
  #receiptThai button {
    display: none !important;
  }

  /* A4 */
  @page {
    size: A4;
    margin: 1in;
  }
}
/* ================= MOBILE SCROLL FOR DOCUMENT ================= */
@media (max-width:768px){

  .doc-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:10px;
  }

  .qt-paper{
    min-width:720px; /* keeps layout clean */
  }

}

.scroll-hint{
  display:none; /* hide by default (desktop) */
}

@media (max-width:768px){
  .scroll-hint{
    display:block;  /* show only on mobile */
    text-align:left;
    font-size:20px;
    color:#d94c5c;
    margin-bottom:5px;
  }
}
@media print {
  .scroll-hint{
    display: none !important;
  }
}

/* ===== PAYMENT SECTION ===== */
.payment-row{
  display:flex;
  gap:25px;
  margin:6px 0;
  font-size:12px;
  flex-wrap:wrap;
}

.payment-row label{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

/* DETAIL */
.payment-detail{
  display:flex;
  gap:10px;
  margin-top:5px;
  align-items:flex-start;
}

.payment-detail .label{
  min-width:110px;
  font-weight:bold;
}

.payment-detail textarea{
  width:100%;
  border:1px solid #000;     
  border-radius:4px;        
  padding:6px;             
  resize:none;
  font-size:12px;
  line-height:1.4;
}
.payment-row span {
    font-size:14px;
    font-weight:bold;
  }
/* ===== ORIGINAL LABEL ===== */
.qt-no-box{
  display:flex;
  flex-direction:column;
  border:1.5px solid #1f9d6b;
  border-left:none;
  min-width:160px;
}

/* TOP SMALL LABEL */
.qt-copy-label{
  font-size:13px;
  text-align:center;
}

/* QT VALUE AREA */
.qt-no-value{
  display:flex;
  align-items:center;
  padding:6px 10px;
}

/* INPUT */
.qt-no-value input{
  border:none;
  outline:none;
  width:100%;
  margin-left:5px;
}

/* ================= Travel CSS ================= */
.tabs-wrapper { display:flex; justify-content:center; margin:40px 0 20px; }
.service-tabs { display:inline-flex; gap:8px; padding:6px; border-radius:999px; }
.tab { border:none; background:transparent; padding:10px 20px; border-radius:999px; font-weight:500; cursor:pointer; color:#374151; }
.tab.active { background:#2563eb; color:#fff; }
.field label { font-size:13px; color:#2f3c7e; margin-bottom:6px; display: block; }
.field select { width:100%; padding:12px; border-radius:12px; border:1px solid #ddd; }

.cr-wrapper {
  display: flex;
  flex-direction: column; /* This stacks them vertically */
  gap: 18px;
  padding: 0;
  width: 100%;
  max-width: 600px; /* Limits width on desktop so it doesn't stretch too far */
  margin: 0 auto;
}

.cr-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cr-main-col {
  width: 100%;
}
.cr-side-col {
  width: 100%;
  margin-top: 20px; /* Adds space between form and summary */
}
.cr-title { margin-top: 0; margin-bottom: 20px; font-weight: 700; }

.cr-label { font-size: 13px; color: #666; font-weight: 500; display: block; }

.cr-input, .cr-select, .cr-textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

/* Side-by-side Car Selection */
.cr-inline-row {
  display: flex;
  gap: 8px;
  /* Changed from flex-start to center to align the dropdown and button perfectly */
  align-items: center; 
}

.cr-inline-row .cr-select {
  margin-bottom: 0; /* Ensures no extra space below the dropdown */
}

.cr-btn-view { 
  /* Removed margin-top to prevent it from pushing down */
  height: 43px; 
  white-space: nowrap; 
  padding: 0 15px; 
  background: #aac9ff; 
  color: #1f2f63;
  
  /* Added these to perfectly center the text inside the button */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Matches your input fields border-radius */
  border-radius: 8px; 
}
.cr-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.cr-btn {
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.cr-btn-primary { background: #242f67; color: white; width: 100%; }
.cr-btn-secondary { background: #eaeef5; color: #333; width: 100%; }
.cr-btn-book { background: #242f67; color: rgb(12, 34, 236); display: none; width: 100%; }

.cr-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.cr-summary-display {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  margin-top: 10px;
  line-height: 1.8;
  border: 1px solid #edf2f7;
}

.cr-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.cr-btn-book {
  background: #28a745; /* Green */
  color: white;
  display: none; /* Only show after summary */
}
/* --- End Car Rental Section --- */


.cr-input-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-end; /* This aligns the bottom of the button with the bottom of the select */
}
  .cr-cart-container { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 15px; margin-top: 10px; border: 1px solid #444; }
  .cart-item { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; border-bottom: 1px dashed #555; padding-bottom: 4px; }
  .cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.1rem; color: #ffd700; margin-top: 10px; }
  .cr-remark { font-size: 0.8rem; color: #aaa; margin-top: 15px; font-style: italic; }



.cr-btn-view {
    background: #1f2f63; /* Dark Navy from your screenshot */
    color: white;
    border: none;
    height: 45px; /* Match .cr-select exactly */
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}



.cr-select, .cr-input {
    width: 100%;
    height: 45px; /* Standardized height */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 0 !important; /* Remove bottom margins to prevent misalignment */
    box-sizing: border-box;
}


/* SHIPPING LABEL CORE CSS */
.invoice-label {
    background: #fff;
    color: #1f2f63;
    padding: 20px;
    border: 2px solid #1f2f63;
    font-family: 'Arial', sans-serif;
    max-width: 450px; /* Adjusted for better print scale */
    margin: 0 auto;
    width: 100%;
    max-width: 100%; 
    box-sizing: border-box;
}

.label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1f2f63;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.logo-img { width: 45px; height: 45px; }
.logo-text { font-weight: 900; font-size: 16px; margin-left: 10px; }
.contact-info { font-size: 10px; text-align: right; font-weight: bold; line-height: 1.4; }

/* Updated Table Style to match Screenshot */
.label-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.label-table th {
    color: #1f2f63; /* Deep Blue from image */
    font-size: 11px;
    padding: 10px 5px;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid #1f2f63; /* Solid line under header */
    letter-spacing: 0.5px;
}

.label-table td {
    padding: 15px 5px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px dotted #ccc; /* Dotted line between rows */
}
.total-box {
    background: #1f2f63;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.total-label { font-size: 12px; font-weight: bold; }
.total-price { font-size: 20px; font-weight: 900; }

.qr-section {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px dashed #1f2f63;
}

.qr-item { text-align: center; }
.qr-item img { width: 50px; height: 50px; border: 1px solid #1f2f63; margin-bottom: 3px; }
.qr-item span { display: block; font-size: 8px; font-weight: bold; }

.print-invoice-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background-color: #1f2f63;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.cr-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #333; }
.cr-input-group-row { display: flex; gap: 15px; margin-bottom: 15px; }



/* ================= TRAVEL MOBILE REDESIGN ================= */
@media (max-width: 768px) {

  #travel_service_detail .service-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  #travel_service_detail .company-section {
    width: 100%;
    margin-top: 10px;
  }

  .cr-wrapper {
    gap: 18px;
    padding: 0 !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch !important;
  }

  #packageTab,
  #carTab {
    flex-direction: column !important;
  }

.cr-main-col,
  .cr-side-col {
    width: 110% !important; /* Makes it wider than the screen/container */
    min-width: 0 !important;
    flex: none !important;
    
    /* Centering Logic */
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    
    /* Optional: prevent horizontal scroll on the whole page */
    box-sizing: border-box;
  }

  .cr-glass-card {
    width: 100%;
    padding: 22px 18px !important;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.95);
    margin-bottom: 15px;
  }

  .tabs-wrapper {
    margin: 16px 0 20px;
    justify-content: center;
  }

  .service-tabs {
    width: 100%;
    max-width: 320px;
    padding: 6px;
    gap: 6px;
    display: flex;
    background: #cfd9fb;
    border-radius: 999px;
  }

  .tab {
    flex: 1;
    padding: 16px 10px !important;
    font-size: 15px !important;
    font-weight: 700;
    border-radius: 999px;
    text-align: center;
  }

  .tab.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 16px rgba(37,99,235,0.28);
  }

  .cr-input-group-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    align-items: flex-end;
  }

  .cr-input-group-row > div {
    flex: 1 !important;
    min-width: 0;
  }

  .cr-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
  }

  .cr-input,
  .cr-select {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    box-sizing: border-box;
  }

  .cr-btn-view {
    width: 100%;
    height: 48px;
    margin: 0 !important;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    background: #242f67;
    color: #fff;
    border: none;
  }

  .cr-btn-primary {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    background: #242f67;
    color: #fff;
    margin-top: 10px;
  }

  .cr-side-col {
    margin-top: 4px;
  }

  .invoice-label {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 16px !important;
    border-radius: 18px;
    box-sizing: border-box;
    margin-bottom: 15px;
  }

  .label-header {
    gap: 8px;
  }

  .logo-text {
    font-size: 14px;
  }

  .contact-info {
    font-size: 9px;
    text-align: right;
  }

  .total-price {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .cr-glass-card {
    padding: 18px 14px !important;
    border-radius: 22px;
  }

  .service-tabs {
    max-width: 300px;
  }

  .tab {
    font-size: 14px !important;
    padding: 14px 8px !important;
  }

  .cr-label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .cr-input,
  .cr-select,
  .cr-btn-view {
    height: 44px;
    font-size: 14px;
  }

  .cr-btn-primary {
    height: 46px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  #packageTab hr,
  #carTab hr {
    display: none;
    max-width: 350px;
    margin: 0 auto;
    flex-direction: column !important;
  }

}



/* ================= Travel End================= */

/* ===== TRANSPORT NOTE SIGNS ===== */
.sign-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.sign-card {
  border: 1px solid #e5e7eb;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

.sign-card:hover {
  background: #eef2ff;
  border-color: #2f3c7e;
}

.sign-card input {
  float: left;
  transform: scale(1.2);
}

.sign-card i {
  display: block;
  font-size: 28px;
  color: #2f3c7e;
  margin: 12px 0 8px;
}

.sign-card span {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #1f275c;
}

.sign-card small {
  display: block;
  font-size: 11px;
  color: #6b7280;
}

.selected-signs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-sign {
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.selected-sign i {
  margin-right: 6px;
  color: #000;
}

@media (max-width: 768px) {
  .sign-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sign-options {
    grid-template-columns: 1fr;
  }
}

/* PRINT */
@media print {
  .sign-options input {
    display: none;
  }

  .selected-sign {
    border: 1px solid #000;
    color: #000;
    background: #fff;
  }

  .selected-sign i {
    color: #000 !important;
  }
}
.display-signs,
.selected-signs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.display-sign-card {
  width: 120px;
  min-height: 80px;
  border: 1px solid #222;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.display-sign-card i {
  display: block;
  font-size: 26px;
  color: #000;
  margin-bottom: 6px;
}

.display-sign-card span {
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

@media print {
  .display-sign-card,
  .display-sign-card i,
  .display-sign-card span {
    visibility: visible !important;
    color: #000 !important;
  }
}