
.required {
  color: red;
}

.header-line {
  text-align: center;
  border-bottom: 1px solid #000;
  border-top: 1px solid #000;
  padding: 5px 0;
  font-weight: bold;
}

/* ==========================
   MODAL
========================== */

.detailsContentPop {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.detailsContentPop .modal-dialog {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
}

.detailsContentPop .modal-content {
    border-radius: 6px;
    overflow: visible;
}

.detailsContentPop .modal-header {
    border-bottom: 0;
    padding: 5px 10px !important;
}

.detailsContentPop .modal-body {
    padding: 10px 20px !important;
    overflow-y: scroll;
}

/* ==========================
   TABLE
========================== */

.detailsContentPop .custom-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
    border-collapse: collapse;
}

.detailsContentPop .custom-table th,
.detailsContentPop .custom-table td {
    padding: 10px 12px;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    border: 1px solid #ddd;
}

/* Label columns */
.detailsContentPop .custom-table th {
    font-weight: 600;
    background: #f8f9fa;
}

/* Section Headers */
.detailsContentPop .section-header th {
    background: #5f8ddf;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

/* Long content fields */
#jobRd_ContainerNo,
#jobRd_Description,
#jobRd_Remarks,
#jobRd_importer,
#jobRd_exporte,
#jobRd_ShippingLine {
    word-break: break-word;
    white-space: normal;
}

/* ==========================
   PROFILE IMAGES
========================== */

.detailsContentPop .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.detailsContentPop .aadhaar-photos {
    margin-top: 15px;
    text-align: center;
}

.detailsContentPop .aadhaar-photos img {
    max-width: 300px;
    height: 160px;
    margin: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,.15);
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

    .detailsContentPop .modal-dialog {
        width: 100% !important;
        margin: 0 !important;
        padding: 0;
    }

    .detailsContentPop .modal-content {
        border-radius: 0;
    }

    .detailsContentPop .modal-body {
        padding: 5px !important;
    }

    .detailsContentPop .custom-table {
        table-layout: auto;
    }

    .detailsContentPop .custom-table th,
    .detailsContentPop .custom-table td {
        font-size: 12px;
        padding: 6px;
    }

    .detailsContentPop .section-header th {
        font-size: 14px;
        padding: 8px;
    }

    /* Force long text to wrap */
    #jobRd_ContainerNo,
    #jobRd_Description,
    #jobRd_Remarks,
    #jobRd_importer,
    #jobRd_exporte,
    #jobRd_ShippingLine {
        word-break: break-all;
        white-space: normal;
    }

    /* Images */
    .detailsContentPop .profile-photo {
        width: 90px;
        height: 90px;
    }

    .detailsContentPop .aadhaar-photos img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 5px 0;
    }
}

/* ==========================
   SMALL MOBILE
========================== */

@media (max-width: 480px) {

    .detailsContentPop .custom-table th,
    .detailsContentPop .custom-table td {
        font-size: 11px;
        padding: 5px;
    }

    .detailsContentPop .section-header th {
        font-size: 13px;
    }
}
.search-wrapper {
  display: flex;
  justify-content: flex-end;
  /* Align to the right */
  width: 100%;
}

.search-input {
  max-width: 250px;
  width: 100%;
}

.clickable-id {
  color: deepskyblue;
  font-weight: 800;
  cursor: pointer;
}

.clickAttach-id {
  color: deepskyblue;
  font-weight: 800;
  cursor: pointer;
}

.invoice-box {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  border: 2px solid #000;
}



.company-header img {
  height: 60px;
}

.section-title {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 5px;
  font-weight: bold;
  margin-top: 20px;
}

.client-details,
.item-table,
.totals {
  width: 100%;
  margin-top: 10px;
}



.comExpInvoice th,
.comExpInvoice td {
  border: 1px solid #000;
  padding: 8px;
  text-align: left;
}

.footer-comments,
.payment-details,
.footer-message {
  margin-top: 20px;
  text-align: center;
}

.signature-box {
  margin: 1% 1% 1% 0%;
}

.signature-line {
  margin-top: 60px;
  border-top: 1px solid #000;
  width: 200px;
}

.no-print {
  text-align: center;
  margin-top: 30px;
}

@media print {
  .no-print {
    display: none;
  }
}

.right_col {
  min-height: 90vh;
}

.printButton {
  height: 30px;
  padding: 0% 1% 0% 1%;
  margin: 0% 0% 0% 4%;
}

.centered-text {
  margin: 0 25%;
  text-align: center;
  flex-grow: 1;
  font-weight: 900;
}

@media (max-width: 768px) {
  .centered-text {
    margin: 0%;
    text-align: center;
    flex-grow: 1;
    font-weight: 900;
  }

  .right_col {
    min-height: 70vh;
  }
}

.toggle-icon {
  cursor: pointer;
}

.fa-chevron-down.rotate {
  transform: rotate(180deg);
}

.rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.submenu {
  display: none;
  /* Ensure submenus are collapsed by default */
}

.submenu-row {
  display: none;
}

.toggle-menu {
  cursor: pointer;
}

.btmSaveACS {
  display: none;
}

.btmUpdateACS {
  display: none;
}

.btmViewACS {
  display: none;
}


#addMaterialB {
  background-color: white;
  width: 100%;
  height: 32px;
}

.removeMaterialBtn {
  background-color: white;
  width: 100%;
  height: 32px;
}

#filterBtm {
  height: 35px;
  width: 90px;
  text-align: left;
  padding: 1%;
}

@media (max-width: 576px) {
  .modal-dialog.modal-lg {
    width: 99% !important;
    margin: 1% auto;
    /* Optional: centers the modal */
  }

  #status label {
    text-align: center;
    width: 49%;
  }

  #addMaterialB {
    width: 25px;
    height: 30px;
    padding: 0% 0% 0% 0%;
    /* above modal background */
  }

  .removeMaterialBtn {
    width: 25px;
    height: 30px;
    padding: 0% 0% 0% 0%;
  }
}

.ui-autocomplete {
  z-index: 1051 !important;
  /* Bootstrap modal default is 1050 */
}


.orderRemove {
  border-bottom: none !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
}



/* ----------- TABLET + DESKTOP ----------- */
@media (min-width: 768px) {
  #sidebar-menu {
    height: 100vh;
    /* full screen height */
    overflow-y: auto;
    /* vertical scrollbar */
    overflow-x: hidden;
    scroll-behavior: auto;
  }

  /* Scrollbar styles */
  #sidebar-menu::-webkit-scrollbar {
    width: 10px;
  }

  #sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  #sidebar-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
  }
}



/* ---- Mobile & Tablet (default) ---- */
.mainPage {
  height: auto;
  /* adjust naturally */
  overflow-y: visible;
  overflow-x: hidden;
}

/* ---- Desktop only (min 1024px) ---- */
@media (min-width: 1024px) {
  .mainPage {
    height: 100vh;
    /* take full desktop screen height */
    overflow-y: auto;
    /* scrollable */
    overflow-x: hidden;
    scroll-behavior: auto;
  }
}

.invoice-box {
  background: #fff;
  padding: 20px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #000;
}

/* HEADER */
.company-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.company-logo img {
  max-height: 70px;
}

.company-info {
  text-align: center;
}

.company-info p {
  margin: 3px 0;
}

/* TITLE */
.section-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0;
}

/* CLIENT DETAILS */
.client-details {
  width: 100%;
  margin-bottom: 15px;
}

.client-details td {
  padding: 6px 4px;
}

/* ITEMS TABLE */
.comExpInvoice {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.comExpInvoice th,
.comExpInvoice td {
  border: 1px solid #000;
  padding: 8px;
  text-align: center;
}

.comExpInvoice th {
  background: #f2f2f2;
}

/* TOTALS */
.totals-table {
  width: 40%;
  margin-left: auto;
  margin-top: 15px;
  border-collapse: collapse;
}

.totals-table td {
  border: 1px solid #000;
  padding: 6px 10px;
  text-align: right;
}

.totals-table td:first-child {
  text-align: left;
}

.grand-total td {
  font-weight: bold;
  font-size: 14px;
}

/* FOOTER */
.footer-message {
  text-align: center;
  margin-top: 25px;
  font-weight: bold;
}

/* PRINT SETTINGS */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  body {
    margin: 0;
  }

  .modal-body {
     max-height: 80vh;
    overflow-y: auto;
  }

  .invoice-box {
    padding: 0;
  }

  .footer-message {
    position: fixed;
    bottom: 10mm;
    width: 100%;
  }
}

.pdf-mode {
  page-break-inside: avoid;
}
/* RESPONSIVE */

@media only screen and (max-width: 768px) {
    .search-input {
        margin-top: 5%;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
  .company-header {
    font-size: smaller;
  }

  .client-details {
    font-size: smaller;
  }

  .comExpInvoiceSell {
    font-size: 5px !important;
    font-weight: 900 !important;
  }
   .comExpInvoice {
    font-size: 10px;
    font-weight: 900;
  }

  .totals-table {
    width: 100%;
  }
  .client-details td {
    padding: 0px 4px;
  }
  .section-title {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin: 0px 0;
}
    
.company-info {
    text-align: center;
    font-size: 9px;
}
.signature-box {
    margin: 1% 1% 1% 0%;
    font-size: 12px;
}
.footer-message {
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
    font-size: 11px;
}
}

.custom-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  width: 20%;
}

.custom-table td {
  width: 30%;
}

.section-header th {
  background-color: cornflowerblue;
  color: #fff;
  text-align: left;
}


.table-container {
  max-height: 260px;   /* adjust height as needed */
  overflow-y: auto;
  overflow-x: auto;
}

#jobsTable {
  width: 100%;
  border-collapse: collapse;
}

#jobsTable thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* optional: keep header styling */
.thTable th {
  background-color: #0E2E50;
  color: white;
}

.multiselect-container {
    max-height: 350px;
    overflow-y: auto;
}

.multiselect-container > li > a > label {
    padding: 8px 15px;
    font-size: 14px;
}

.multiselect-search {
    width: 100% !important;
}