/* tracking start */
.section-track {
  overflow-x: hidden;
  width: 100%;
}

.section-track .container {
  overflow-x: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.track-block {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin: 0 auto;
}

.track-block::-webkit-scrollbar {
  height: 8px;
}

.track-block::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.track-block::-webkit-scrollbar-thumb {
  background: #ff440a;
  border-radius: 4px;
}

.track-block::-webkit-scrollbar-thumb:hover {
  background: #e63a00;
}

.tracking-data {
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

.tracking-data .accordion-header,
.tracking-data .accordion-body {
  max-width: 100%;
}

.track-block table,
.track-block tr,
.track-block td,
.track-block th {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
  border-collapse: collapse;
}
.track-block th {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.track-block td {
    color: #545454;
    background-color: #fff;
    word-wrap: break-word;
    max-width: 200px;
}
.track-block table {
  width: 100%;
  min-width: 800px;
  transition: 0.5s ease-in-out;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: table;
}
.track-block table:last-child {
  width: 100%;
  min-width: 600px;
  margin-bottom: 15px;
}
.track-block thead tr {
  background: linear-gradient(135deg, #ff440a 0%, #e63a00 100%);
  color: #fff;
  font-weight: 600;
}
.track-block tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.3s ease;
}
.track-block h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #3c0c70;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.track-block h5 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2c2c2c;
    border-bottom: 2px solid #ff440a;
    padding-bottom: 10px;
}
/* tracking end */

.trackmodalpop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.trackmodalpop .modal-dialog {
    max-width: 900px;
    width: 90%;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.trackmodalpop .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.trackmodalpop .modal-header {
    background: linear-gradient(135deg, #3c0c70 0%, #5a1a9e 100%);
    padding: 20px 25px;
    border-bottom: 3px solid #ff440a;
    border-radius: 12px 12px 0 0;
}

.trackmodalpop .modal-header h5 {
    color: #ffffff;
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.trackmodalpop .close {
    margin: 0 !important;
    width: 35px !important;
    height: 35px;
    color: #fff;
    opacity: 1;
    padding: 0;
    font-size: 28px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trackmodalpop .close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.trackmodalpop .modal-body {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    padding: 25px;
    background-color: #f8f9fa;
}

.invalid-record {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff440a 0%, #e63a00 100%);
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 68, 10, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.invalid-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 10, 0.4);
}

.tracking-data .invalid-record h5 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.5;
}

.accordion .accordion-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, #ff440a 0%, #e63a00 100%);
    margin-top: 10px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 10, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.accordion .accordion-header .accordion-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion .accordion-header .accordion-close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.accordion .accordion-header .accordion-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: #fff;
}

.accordion .accordion-header:hover {
    background: linear-gradient(135deg, #ff5520 0%, #ff440a 100%);
    box-shadow: 0 6px 16px rgba(255, 68, 10, 0.3);
}

.accordion .accordion-header > * {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
}

.accordion .accordion-header.active {
    background: linear-gradient(135deg, #3c0c70 0%, #5a1a9e 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(60, 12, 112, 0.3);
}

.accordion .accordion-header.active:hover {
    background: linear-gradient(135deg, #4a1c8a 0%, #3c0c70 100%);
}

.accordion .accordion-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.accordion .accordion-header .fa_icon {
    color: #fff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion .accordion-header.active .fa_icon {
    transform: rotate(180deg);
}

.accordion .accordion-body {
    display: none;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-top: 0;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.accordion .accordion-body::-webkit-scrollbar {
    height: 8px;
}

.accordion .accordion-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.accordion .accordion-body::-webkit-scrollbar-thumb {
    background: #ff440a;
    border-radius: 4px;
}

.accordion .accordion-body::-webkit-scrollbar-thumb:hover {
    background: #e63a00;
}

.accordion .accordion-body.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* POD View Button Styling */
.file_button {
    background: linear-gradient(135deg, #ff440a 0%, #e63a00 100%) !important;
    color: #fff !important;
    border: none;
    padding: 8px 20px !important;
    border-radius: 5px;
    font-size: 12px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 68, 10, 0.3);
}

.file_button:hover {
    background: linear-gradient(135deg, #ff5520 0%, #ff440a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 10, 0.4);
}

/* Tablet styles */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .section-track .container {
    max-width: 95%;
    padding: 0 15px;
  }
  
  .track-block table {
    min-width: 700px;
  }
  
  .track-block table:last-child {
    min-width: 500px;
  }
  
  .track-block td {
    max-width: 150px;
    font-size: 13px;
  }
  
  .accordion .accordion-body {
    padding: 20px;
  }
}

/* Mobile styles */
@media only screen and (min-width: 320px) and (max-width: 767px) {
  .section-track .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .track-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
  }
  
  .track-block table {
    min-width: 600px;
    margin-bottom: 20px;
  }
  
  .track-block table:last-child {
    min-width: 500px;
  }
  
  .track-block table, 
  .track-block tr, 
  .track-block td, 
  .track-block th {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .track-block th {
    font-size: 10px;
    padding: 8px 6px;
  }
  
  .track-block td {
    max-width: 120px;
    font-size: 11px;
    word-break: break-word;
  }
  
  .trackmodalpop .modal-dialog {
    width: 95%;
    margin: 15px auto;
  }
  
  .trackmodalpop .modal-header {
    padding: 15px 20px;
  }
  
  .trackmodalpop .modal-header h5 {
    font-size: 18px;
  }
  
  .trackmodalpop .modal-body {
    padding: 15px;
    max-height: 500px;
    overflow-x: auto;
  }
  
  .accordion .accordion-header {
    padding: 12px 15px;
  }
  
  .accordion .accordion-header h2 {
    font-size: 14px;
    word-break: break-word;
  }
  
  .accordion .accordion-header .accordion-actions {
    gap: 10px;
  }
  
  .accordion .accordion-header .accordion-close {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  
  .accordion .accordion-body {
    padding: 15px;
    overflow-x: auto;
  }
  
  .track-block h5 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .track-block h3 {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .file_button {
    font-size: 10px !important;
    padding: 6px 12px !important;
  }
}

