/* overall page*/
.table-responsive.custom-scrollbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.contact-table th,
.contact-table td {
    white-space: nowrap;
}
@media (max-width: 768px) {
    .table.card-table {
        min-width: 700px;
    }
}

/* create page*/
.home {
    width: 600px !important;
}
@media (max-width: 992px) {
  .home {
    width: 100% !important;
    padding: 20px;
  }
  .login-card {
    border-radius: 0;
    min-height: 100vh;
  }
  .col-xl-5 img {
    display: none; 
  }
  .col-xl-7 {
    width: 100%;
  }
  .login-main form .row {
    flex-direction: column;
  }
  .login-main .form-group {
    margin-bottom: 15px;
  }
  .login-main button {
    font-size: 16px;
    padding: 10px;
  }
}
@media (max-width: 576px) {
  .home {
    padding: 15px;
  }
  .logo img {
    height: 35px !important;
    width: 100px !important;
  }
  .login-main p,
  .login-main label {
    font-size: 14px;
  }
  .login-main button {
    font-size: 15px;
  }
  .leads-logo img {
    height: 125px !important;
    width: 250px !important;
  }
}

/* account page*/
#profileView {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#profileView .d-flex {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#profileView h3 {
  margin-bottom: 5px;
  font-weight: 600;
}
#profileView p {
  margin-bottom: 15px;
  color: #666;
}
#profileView ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
#profileView li {
  display: flex;
  justify-content: space-between;
  width: 380px; 
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  font-size: 15px;
}
#profileView li strong {
  color: #333;
  font-weight: 800;
}
#editForm {
  width: 90%;
  margin: 0 auto 0 40px; 
  text-align: left;
}
#editForm .row {
  justify-content: flex-start;
  text-align: left;
}
#editForm .mt-4 {
  text-align: left;
}

/* Responsive adjustments for account page */
@media (max-width: 992px) {
  #profileView li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
  }
  #profileView li strong {
    margin-bottom: 4px;
  }
  #editForm {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
  #editForm .row {
    flex-direction: column;
  }
  #editForm .col-md-6 {
    width: 100%;
  }
  .card-header h4 {
    font-size: 18px;
  }
  .card-header button {
    font-size: 14px;
    padding: 5px 10px;
  }
}
@media (max-width: 768px) {
  .card-body {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}
#profileView li.trial-period {
  display: flex;
  justify-content: space-between;
  width: 380px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  font-size: 15px;
}
#profileView li.trial-period strong {
  color: #1f2f3e;
  font-weight: 800;
}

/*sidebar page*/
.sidebar-validity {
  background: var(--bs-light);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.sidebar-validity small {
  display: block;
}
.dark-only .sidebar-validity {
  background: var(--bs-dark);
}
.table.table-striped tbody tr,
.table.table-striped tbody tr:nth-of-type(odd),
.table.table-striped tbody tr:nth-of-type(even) {
  background-color: #ffffff !important;
}
.table.table-striped tbody tr:hover {
  background-color: #ffffff !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff !important;
}
.table-striped tbody tr,
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even),
.table tbody tr,
.table tbody tr:nth-of-type(odd),
.table tbody tr:nth-of-type(even) {
  background-color: #ffffff !important;
  background-image: none !important;
}
.table tbody tr:hover,
.table-striped tbody tr:hover {
  background-color: #ffffff !important;
  background-image: none !important;
}
.card .card-body,
.table-responsive {
  background-color: #ffffff !important;
}

/* Lead Status Badge Colors*/
.badge-secondary {
    background-color: #1e1051 !important; 
    color: #fff !important;
}
.badge-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
}
.badge-warning {
    background-color: #ffc107 !important; 
    color: #000 !important;
}
.badge-success {
    background-color: #198754 !important; 
    color: #fff !important;
}
.badge-danger {
    background-color: #dc3545 !important; 
    color: #fff !important;
}
.badge-dark {
    background-color: #6c757d !important;
    color: #fff !important;
}
.text-center{
    text-align: centers;
}
@media (max-width: 992px) {
  .edit-profile .card-body {
    padding: 1rem !important;
  }
}
@media (max-width: 768px) {
  .d-flex.align-items-center.gap-3.mb-4 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .d-flex.align-items-center.gap-3.mb-4 img {
    width: 80px;
    height: 80px;
  }
  .d-flex.align-items-center.gap-3.mb-4 div {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .text-end {
    text-align: start !important;
  }
  .row.g-3.align-items-center.mb-3,
  .row.g-3.mb-3 {
    display: block;
  }
  .row.g-3.align-items-center.mb-3 > div,
  .row.g-3.mb-3 > div {
    width: 100% !important;
    margin-bottom: 10px;
  }
}
@media (max-width: 576px) {
  h5.text-center {
    font-size: 1rem;
  }
  .fw-semibold {
    font-size: 0.9rem;
  }
  .btn-sm {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}
@media (max-width: 480px) {
  input.form-control,
  select.form-control,
  textarea.form-control {
    font-size: 0.9rem;
  }
  .img-100 {
    width: 70px;
    height: 70px;
  }
  .btn-outline-primary,
  .btn-outline-success {
    margin-bottom: 5px;
  }
  .text-end.mt-4 {
    text-align: center !important;
  }
}
 .list-unstyled li strong {
  margin-right: 33px;
}

.list-unstyled li:nth-child(5) { 
  line-height: 1.6;
}

/*search bar*/
    .search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}
.search-bar:hover {
  background: #ffffff;
  border-color: #d0d0d0;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333;
}
.search-bar input::placeholder {
  color: #2b5e5e;
}
.search-icon {
  stroke: #2c3e50;
  stroke-width: 2;
  fill: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.search-bar:hover .search-icon {
  stroke: #000;
  transform: scale(1.05);
}
.size{
    font-size: 20px;
}
.padding{
    padding: .0rem 0rem;
}
@media (max-width: 992px) {
  .page-title .row {
    text-align: center;
  }
  .search-bar input {
    font-size: 14px;
  }
  .padding {
    padding: 0 15px;
  }
  .breadcrumb {
    justify-content: center;
  }
}
/* Mobiles (≤ 768px) */
@media (max-width: 768px) {
  .page-title h3.size {
    font-size: 1.25rem;
    margin-bottom: 5px;
  }
  .search-bar input {
    padding: 8px 35px 8px 10px;
  }
  .btn {
    font-size: 14px;
    padding: 8px;
    margin-top:5px
  }
  .form-select {
    font-size: 14px;
  }
  .breadcrumb {
    justify-content: center;
    font-size: 13px;
  }
}
/* Small Mobiles (≤ 576px) */
@media (max-width: 576px) {
  .page-title .row {
    flex-direction: column;
    align-items: stretch;
  }
  .page-title h3.size {
    text-align: center;
  }
  .search-bar {
    margin: 0 auto;
  }
  .btn.w-100 {
    width: 100%;
  }
  .breadcrumb {
    justify-content: center;
  }
}
/* Add spacing below top bar on mobile view */
@media (max-width: 768px) {
  .container-fluid {
    padding-top: 25px !important; 
  }
}
.action-btn {
  background-color: #2b5f60;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.action-btn:hover {
  background-color: #2b5f60;
}
.tooltip .tooltip-inner {
  background-color: #d9fdd3 !important;
  color: #2b5f60 !important;
  font-weight: 500;
  border-radius: 8px;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #d9fdd3 !important;
}
.color a:hover {
  color: #ffffff;
}
/* Upload button tooltip */
#uploadBtn + .tooltip .tooltip-inner {
    background-color: #d9fdd3 !important; 
    color: #2b5f60 !important;
    font-weight: 500;
    border-radius: 8px;
}
#uploadBtn + .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #d9fdd3 !important;
}
.qty-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 6px;
  overflow: hidden;
  width: 100px;
}
.qty-input {
  width: 100%;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 500;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-container button {
  color: #fff;
  border: none;
  width: 30px;
  height: 100%;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}
.btn-increment {
  background-color: #8e9f91; 
  border-left: 1px solid #fff3;
}
.btn-increment:hover {
  background-color: #8e9f91;
}
.btn-decrement {
  background-color: #bdbdbd; 
  border-right: 1px solid #fff3;
}
.btn-decrement:hover {
  background-color: #bdbdbd; 
}
.paginate .page-link {
  color: #2b5f60;
}
.paginate .page-link:hover {
  background-color: #2b5f60;
  color: #fff;
}
.paginate .active .page-link {
  background-color: #2b5f60;
  border-color: #2b5f60;
  color: #fff;
}
/* quotation-icons */
.text-center .quotation {
  padding: 2px 6px; 
  width: 38px;  
  text-align: center;
  border-width: 1.5px;
}
.btn-edit,
.btn-outline-warning {
  border-color: #ff6b35;
  color: #ff6b35;
}
.btn-edit:hover,
.btn-outline-warning:hover {
  background-color: #ff6b35;
  color: #fff;
}
.btn-outline-info {
  border-color: #0dcaf0;
  color: #0dcaf0;
}
.btn-outline-info:hover {
  background-color: #0dcaf0;
  color: #fff;
}
.btn-outline-success {
  border-color: #198754;
  color: #198754;
}
.btn-outline-success:hover {
  background-color: #198754;
  color: #fff;
}
/* quotation-show */
.quotation-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .quotation-row .col-6 {
        width: 48%;
    }
    .quotation-row .col-6-right {
        width: 48%;
        text-align: right;
    }
.quotation-invoice-container {
    background: #fff;
    width: 800px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.quotation-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.quotation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.quotation-table th, .quotation-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}
.quotation-table th {
    background: #f8f8f8;
    text-align: center;
}
.quotation-text-align {
    text-align: center;
    font-size: 22px;
}
.quotation-end {
    margin-top: 30px;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
}
.quotation-color {
    color:#1f2f3e;
}
.cke_notification_message { display: none !important; }
.cke_notification_warning {
    display: none;
}
/* invoice */
.invoice-row  {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .invoice-row  .col-6 {
        width: 48%;
    }
    .invoice-row  .col-6-right {
        width: 48%;
        text-align: right;
    }
.invoice-container {
    background: #fff;
    width: 850px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.invoice-text-align {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.col-6 { width: 48%; }
.col-6-right { width: 48%; text-align: right; }
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.invoice-table th, .invoice-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}
.invoice-table th {
    background: #f8f8f8;
    text-align: center;
}
.invoice-end {
    margin-top: 30px;
    color: #000000;
    padding: 20px;
    border-radius: 5px;
}
.invoice-color { color: #ffffff; }
.invoice-terms-content p { margin: 0; }
/* receipt */
.pading{
    padding-bottom: 50px;
}
/* receipt-create-page */
.input-disabled {
    background: #e9ecef !important;
    pointer-events: none;
}
#receiptTableSection .card {
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
#receiptTableSection .table-responsive {
    max-height: 450px;
    overflow-y: auto;
}

#receiptTableSection .table-responsive::-webkit-scrollbar {
    width: 6px;
}
#receiptTableSection .table-responsive::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
}
#receiptTableSection .table-responsive::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}
#receiptTableSection table thead th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
}
#receiptTableSection table tbody td {
    text-align: center;
    vertical-align: middle;
    border-color: #eee;
    font-size: 14px;
}
#receiptTableSection table tbody tr:hover {
    background-color: #f6f7f8;
}
#receiptTableSection h5 {
    margin-bottom: 15px !important;
}


#receiptTableSection .table-responsive {
        max-height: 300px;        
        overflow-y: auto;
        
    }

    /* Keep header fixed at top */
    #receiptTable thead th {
        position: sticky;
        top: 0;
        background: #f8f9fa;
        z-index: 10;
    }
    #receiptTable th, 
    #receiptTable td {
        white-space: nowrap;
    }
    #receiptTableSection .table-responsive::-webkit-scrollbar {
    height: 3px; 
}
.remarks-column {
    white-space: normal !important;
    word-wrap: break-word !important;
    width: 25ch;       
    min-width: 29ch;    
    max-width: 25ch;
}
.sticky-pagination {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
    padding: 10px 0;
}
.receipt-invoice-container {
    background: #fff;
    width: 1050px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.receipt-invoice-text-align {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}
.receipt-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.receipt-invoice-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.receipt-col-6 { width: 48%; }
.receipt-col-6-right { width: 48%; text-align: right; }

.receipt-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
}
.receipt-invoice-table th, .receipt-invoice-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
}
.receipt-invoice-table th {
    background: #f8f8f8;
    text-align: center;
}
.receipt-invoice-end {
    margin-top: 30px;
    padding: 20px;
}
.receipt-invoice-terms-content p { margin: 0; }
.no-wrap-date td:nth-child(9) {
    white-space: nowrap;
}
.pd{
    padding: 20px !important;
}
.btn-success {
    background-color: #2b5e5e !important;
}
/* Wrapper to merge both into one capsule */
.qty-cont {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 30px;
    overflow: hidden;
    height: 28px;
    width:80px !important;
}

/* Left grey button */
.qty-btn {
    width: 32px;
    height: 100%;
    background-color: #bdbdbd !important;
    border: none !important;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #ffffff;
    border-right: 1px solid #ced4da !important;
}

/* Qty input - perfectly centered number */
.qty {
    width: 38px !important;          /* tightened width */
    height: 100% !important;
    border: none !important;
    text-align: center !important;   /* centers number */
    background: #fff !important;
    font-size: 15px;
    padding: 0 !important;           /* removes extra space */
    margin: 0 !important;
}

/* Remove blue outline when clicking */
.qty:focus {
    outline: none !important;
    box-shadow: none !important;
}
.len{
     background: #fff !important;
}
.btn-dark, .btn-dark.disabled, .btn-dark:disabled {
    background-color: #2b5e5e !important;
    border-color: #2b5e5e !important;
}
.h1-size{
    font-size:25px;
}
@media (max-width: 767px) {

    .image {
        background: url('../images/forgot-password.webp') no-repeat center center;
        background-size: cover;
        
    }

    .col-xl-7 {
        display: none; 
    }

}
/* Mobile responsive page title */
@media (max-width: 767px) {

  .page-title .row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-title h3 {
    font-size: 18px;
    text-align: left;
  }

  .breadcrumb {
    justify-content: flex-start;
    font-size: 13px;
    padding-left: 0;
    margin-bottom: 0;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 4px;
  }

  .box-col-3,
  .box-col-4 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-title .col-4.d-none.d-xl-block {
    display: none !important;
  }
}

/* Tablet view */
@media (max-width: 991px) {
  .page-title h3 {
    font-size: 20px;
  }
}
/* Dashboard GST & Paid card spacing fix (mobile only) */
@media (max-width: 767px) {

  /* Target ONLY this specific row */
  .row.mt-4.mb-4.mt-1 > .col-md-6 {
    margin-bottom: 0 !important;
  }

  /* Reduce card bottom spacing */
  .row.mt-4.mb-4.mt-1 .card {
    margin-bottom: 12px !important;
  }

  /* Remove last card extra gap */
  .row.mt-4.mb-4.mt-1 > .col-md-6:last-child .card {
    margin-bottom: 0 !important;
  }
}
/* Customers List – force left alignment on mobile */
@media (max-width: 767px) {

  /* Force all content to left */
  .page-title .row {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Left align all columns */
  .page-title [class*="col-"] {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Title */
  .page-title h3 {
    font-size: 18px;
    text-align: left !important;
  }

  
  /* Download icon button */
  .page-title .action-btn {
    margin-left: 0 !important;
  }

  /* Breadcrumb left aligned */
  .page-title .breadcrumb {
    justify-content: flex-start !important;
    padding-left: 0;
    font-size: 13px;
  }

  /* Remove any right auto margins */
  .page-title .ms-auto,
  .page-title .me-auto {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Customers table action buttons – mobile fix */
@media (max-width: 767px) {

  /* Target ONLY action column */
  .contact-table td:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; /* space between edit & delete */
  }

  /* Make both buttons same size */
  .contact-table td:last-child .btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
  }

  /* Icons size consistency */
  .contact-table td:last-child .btn i {
    font-size: 15px;
  }

  /* Remove inline form spacing */
  .contact-table td:last-child form {
    margin: 0;
  }

  /* Remove right margin from edit button */
  .contact-table td:last-child .me-2 {
    margin-right: 0 !important;
  }
}

.business-wrap {
    white-space: normal !important; 
    word-break: break-word;          
    max-width: 180px;                
}
.len{
    width: 160px !important;
}
select,
select.form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Force reset background shorthand */
    background-color: #fff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;

    padding-right: 44px !important;
    cursor: pointer;
}
select::-ms-expand {
    display: none;
}
/* Base select styling */
select,
select.form-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 14px !important;
    padding-right: 42px !important;
    cursor: pointer;
    border-radius: 6px !important;
    background-clip: padding-box !important;
}

select::-ms-expand {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    select,
    select.form-select {
        background-position: right 10px center !important;
        background-size: 13px 13px !important;
    }
}
/* =====================================
   MOBILE TABLE + INPUT-GROUP FIX (GLOBAL)
   ===================================== */
@media (max-width: 767.98px) {

    /* Always allow table scrolling */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent table from shrinking */
    table.table {
        min-width: 900px;   /* covers + / - buttons */
        width: 100%;
        table-layout: auto;
    }

    /* Inputs & selects must stay readable */
    table .form-control,
    table .form-select {
        min-width: 140px;
        white-space: nowrap;
    }

    /* Input-group ( - 1 + ) */
    table .input-group {
        min-width: 160px;
        flex-wrap: nowrap;
    }

    table .input-group .btn {
        padding: 0.375rem 0.6rem;
        min-width: 36px;
    }

    /* Quantity number field */
    table input[type="number"] {
        min-width: 80px;
        text-align: center;
    }

    /* Action column */
    table th:last-child,
    table td:last-child {
        min-width: 60px;
        text-align: center;
    }
}
/* ==================================================
   MOBILE QTY BUTTON STYLE (MATCH IMAGE)
   ================================================== */
@media (max-width: 767.98px) {

    /* Qty container */
    .qty-container {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #d0d5dd;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        min-width: 150px;
    }

    /* Minus & Plus buttons */
    .qty-container .btn-decrement,
    .qty-container .btn-increment {
        width: 40px;
        height: 38px;
        border: none;
        background:#bdbdbd;
        font-size: 18px;
        font-weight: bold;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Plus button green */
    .qty-container .btn-increment {
        background: #8e9f91;
        color: #fff;
    }

    /* Quantity input */
    .qty-container .qty-input {
        width: 60px;
        height: 38px;
        border: none;
        text-align: center;
        font-weight: 600;
        font-size: 14px;
        outline: none;
    }

    /* Prevent qty column collapse */
    #productsTable th:nth-child(2),
    #productsTable td:nth-child(2) {
        min-width: 170px;
        text-align: center;
        vertical-align: middle;
    }
}
/* =====================================================
   FORCE MOBILE LAYOUT FOR QUOTATION (HARD OVERRIDE)
   ===================================================== */
@media screen and (max-width: 767px) {

    /* ===== Container ===== */
    .quotation-invoice-container {
        width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    /* ===== Header ===== */
    .quotation-invoice-header {
        display: block !important;
        text-align: center !important;
    }

    .quotation-invoice-header > div {
        width: 100% !important;
        margin-bottom: 12px;
    }

    /* ===== FORCE COLUMN STACKING ===== */
    .quotation-row {
        display: block !important;
        width: 100% !important;
    }

    .quotation-row .col-6,
    .quotation-row .col-6-right {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px;
        text-align: left;
    }

    /* ===== TABLE: FORCE SCROLL ===== */
    table.quotation-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        border-collapse: collapse;
        font-size: 12px;
    }

    table.quotation-table thead,
    table.quotation-table tbody,
    table.quotation-table tr {
        width: max-content !important;
    }

    table.quotation-table th,
    table.quotation-table td {
        padding: 6px 8px !important;
        text-align: center;
    }

    /* Description column readable */
    table.quotation-table td:nth-child(2) {
        min-width: 200px;
        text-align: left;
        white-space: normal;
    }

    /* ===== TOTALS TABLE ===== */
    .quotation-row table.quotation-table {
        font-size: 13px;
    }

    /* ===== TERMS ===== */
    .quotation-terms-content {
        font-size: 13px;
        line-height: 1.5;
    }

    /* ===== HEADINGS ===== */
    h1, h4 {
        text-align: center;
        margin-top:15px;
    }
}
/* =====================================================
   INVOICE MOBILE VIEW – HARD OVERRIDE (WORKING)
   ===================================================== */
@media screen and (max-width: 767px) {

    /* ===== MAIN CONTAINER ===== */
    .invoice-container {
        width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    /* ===== HEADER STACK ===== */
    .invoice-header {
        display: block !important;
        text-align: center !important;
    }

    .invoice-header > div {
        width: 100% !important;
        margin-bottom: 12px;
    }

    .invoice-header img {
        max-width: 180px !important;
        height: auto !important;
    }

    /* ===== FORCE COLUMN STACKING ===== */
    .invoice-row {
        display: block !important;
        width: 100% !important;
    }

    .invoice-row .col-6,
    .invoice-row .col-6-right {
        display: block !important;
        width: 100% !important;
        float: none !important;
        margin-bottom: 16px;
        text-align: left;
    }

    /* ===== MAIN INVOICE TABLE ===== */
    table.invoice-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        border-collapse: collapse;
        font-size: 12px;
    }

    table.invoice-table thead,
    table.invoice-table tbody,
    table.invoice-table tr {
        width: max-content !important;
    }

    table.invoice-table th,
    table.invoice-table td {
        padding: 6px 8px !important;
        text-align: center;
    }

    /* Description readable */
    table.invoice-table td:nth-child(2) {
        min-width: 200px;
        white-space: normal;
        text-align: left;
    }

    /* ===== TOTALS TABLE ===== */
    .invoice-row table.invoice-table {
        font-size: 13px;
    }

    /* ===== HEADINGS ===== */
    h1, h4 {
        text-align: start;
         margin-top:15px;
    }
}
/* =====================================================
   RECEIPT TABLE – REAL MOBILE FIX (NO CLIPPING)
   ===================================================== */
/* =====================================================
   REMOVE EXTRA BOTTOM SPACE – MOBILE (FINAL FIX)
   ===================================================== */
@media (max-width: 767px) {

    /* Stop layout stretching */
    html, body {
        height: auto !important;
        min-height: auto !important;
        overflow-x: hidden;
    }

    /* Neutralize dashboard wrappers */
    .page-wrapper,
    .page-body,
    .page-content,
    .content-wrapper,
    .container,
    .container-fluid,
    .card {
        min-height: auto !important;
        height: auto !important;
    }

    /* Receipt container */
    .receipt-invoice-container {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: visible;
    }

    /* Table scroll */
    .receipt-invoice-table {
        width: max-content !important;
        min-width: 900px !important;
        white-space: nowrap;
        border-collapse: collapse;
    }
}
/* ✅ FIX: Prevent mobile card-style table duplication */
@media (max-width: 767px) {
    #productsTable,
    #productsTable thead,
    #productsTable tbody,
    #productsTable tr,
    #productsTable td,
    #productsTable th {
        display: table !important;
        width: 100% !important;
    }

    #productsTable tr {
        display: table-row !important;
    }

    #productsTable td,
    #productsTable th {
        display: table-cell !important;
    }

    /* Disable card labels if theme adds them */
    #productsTable td::before {
        content: none !important;
        display: none !important;
    }
}
/* Thank You image responsive fix */
.error-wrapper img {
    width: 100%;
    height: auto;
    max-width: 700px; /* desktop stays same */
}

/* Mobile optimization */
@media (max-width: 768px) {
    .error-wrapper img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .error-wrapper h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .error-wrapper .sub-content {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }
}
/* Common dropdown empty state styling */
select option.no-data-option {
    color: #0d6efd !important; /* Bootstrap primary blue */
    font-weight: 500;
}



/* Prevent greyed-out look in some browsers */
select option.no-data-option:disabled {
    opacity: 1;
}

/* Make the row behave like equal-height columns */
.row.align-items-start {
    align-items: stretch !important;
}

/* Vertically center the search bar relative to filter card */
.col-xl-2.col-lg-4.col-md-12 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Mobile fix: keep search bar on top, normal alignment */
@media (max-width: 991px) {
    .col-xl-2.col-lg-4.col-md-12 {
        justify-content: flex-start;
        margin-bottom: 12px;
    }
}
.filterbtn{
        padding-right: 22px!important;
    padding-left: 22px!important;
}
@media (max-width: 768px) {

  /* ===== ONLY LEADS FILTER CARD ===== */
  .card.pd {
    padding: 16px;
  }
.space{
    padding: 0px !important;
}
  
  /* FILTER + DOWNLOAD BUTTON ROW */
  .card.pd .col-md-1:last-child,
  .card.pd .col-md-1:nth-last-child(2) {
    flex: 0 0 50%;
    max-width: 50%;
    margin-top: -7px !important;
  }

  /* Buttons */
  .card.pd #filterBtn,
  .card.pd #excelDownloadBtn {
    width: 100%;
    height: 44px;
  }

  /* Gap between buttons */
  .card.pd #excelDownloadBtn {
    margin-left: 8px !important;
  }

  /* Labels */
  .card.pd label {
    margin-bottom: 6px;
    font-weight: 500;
  }
}

.bg-light-box {
    color: #000000 !important;
}
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection--single {
    height: 38px;
    padding: 5px 10px;
}
.select2-selection__arrow {
    height: 38px;
}

