/* 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: 100px !important;
    width: 100px !important;
  }
  .login-main p,
  .login-main label {
    font-size: 14px;
  }
  .login-main button {
    font-size: 15px;
  }
}

/* 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: 80%;
  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 {
    width: 100%;
    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;
  }
  .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;
}