:root {
  --main-color: #E20A17;
  --primary-color: #003399;
  --light-gray-color: #E6EAED;
  --light-blue: hwb(0 100% 0%);
}

button {
  background-color: var(--primary-color);
  /* Blue button */
  color: #fff;
}

.tx-main {
  color: var(--main-color);
}

.bg-light-blue {
  background: var(--light-blue);
}

.bg-main {
  background: var(--main-color);
}

.tx-theme {
  color: var(--primary-color);
}

.bg-theme {
  background: var(--primary-color);
}

.require-feild {
  border-left: 3px solid var(--main-color) !important;
}

/* ===== Main Color Button (Red) ===== */
.btn-main {
  background-color: var(--main-color);
  /* Red background */
  color: #fff;
  /* White text */
  border: 2px solid var(--main-color);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover Effect - White Background, Red Text */
.btn-main:hover {
  background-color: #fff;
  color: var(--main-color);
  border-color: var(--main-color);
}

/* ===== Primary Color Button (Blue) ===== */
.btn-primary {
  background-color: var(--primary-color);
  /* Blue background */
  color: #fff;
  /* White text */
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover Effect - White Background, Blue Text */
.btn-primary:hover {
  background-color: #fff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.border-bottom {
  border-bottom: 1px solid var(--light-gray-color);
}

/* Bottom Button Group */
.sign-up .bottom-btn-group {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  width: 50%;
  border-top: 1px solid #ddd;
  background: #fff;
  padding: 10px;
  gap: 5px;
}

/* Individual Buttons */
.sign-up .bottom-btn-group button {
  flex: 1;
  /* Each button takes 50% width */
  padding: 1rem;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: 0.3s ease;
  font-weight: bold;
}

/* Left Button (Cancel) */
.sign-up .bottom-btn-group .btn-left {
  background-color: var(--main-color);
  /* Red */
  color: #fff;
  border-radius: 7px 0 0 7px;
}

/* Right Button (Submit) */
.sign-up .bottom-btn-group .btn-right {
  background-color: var(--primary-color);
  /* Blue */
  color: #fff;
  border-radius: 0 7px 7px 0;

}

/* Style for heading link */
.sign-up .heading-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  /* Thicker underline for better visibility */
  text-underline-offset: 6px;
  /* Space between text and underline */
  color: #fff;
  font-weight: 600;
}

.bd-5px {
  border: 5px solid var(--primary-color);
  border-radius: 7px;

}


/* Hover Effects */
.sign-up .bottom-btn-group .btn-left:hover {
  background-color: var(--primary-color);
}

.sign-up .bottom-btn-group .btn-right:hover {
  background-color: var(--main-color);
}

/* ===== Base Width Classes ===== */
.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

/* ===== Responsive Width Breakpoints ===== */
/* Small Devices (≥576px) */
@media (min-width: 576px) {
  .w-sm-25 {
    width: 25% !important;
  }

  .w-sm-50 {
    width: 50% !important;
  }

  .w-sm-75 {
    width: 75% !important;
  }

  .w-sm-100 {
    width: 100% !important;
  }
}

/* Medium Devices (≥768px) */
@media (min-width: 768px) {
  .w-md-25 {
    width: 25% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .w-md-75 {
    width: 75% !important;
  }

  .w-md-100 {
    width: 100% !important;
  }
}

/* Large Devices (≥992px) */
@media (min-width: 992px) {
  .w-lg-25 {
    width: 25% !important;
  }

  .w-lg-50 {
    width: 50% !important;
  }

  .w-lg-75 {
    width: 75% !important;
  }

  .w-lg-100 {
    width: 100% !important;
  }
}

/* Extra Large Devices (≥1200px) */
@media (min-width: 1200px) {
  .w-xl-25 {
    width: 25% !important;
  }

  .w-xl-50 {
    width: 50% !important;
  }

  .w-xl-75 {
    width: 75% !important;
  }

  .w-xl-100 {
    width: 100% !important;
  }
}

/* Extra Extra Large Devices (≥1400px) */
@media (min-width: 1400px) {
  .w-xxl-25 {
    width: 25% !important;
  }

  .w-xxl-50 {
    width: 50% !important;
  }

  .w-xxl-75 {
    width: 75% !important;
  }

  .w-xxl-100 {
    width: 100% !important;
  }
}

.login-wrapper img {
  width: 250px;
}

/* Make the company list scrollable inside the sign-up container */
/* Scrollable list container */
.sign-up .company-list {
  max-height: 40vh;
  /* Controls scroll area */
  overflow-y: auto;
  overflow-x: hidden;

  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  margin: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Scrollbar styling */
.sign-up .company-list::-webkit-scrollbar {
  width: 6px;
}

.sign-up .company-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.sign-up .company-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Sticky header row */
.sign-up .company-header {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  font-size: 15px;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  /* Keep above list items */
}

/* Company items */
.sign-up .company-item {
  color: #000;
  /* Black text */
  border-bottom: 1px dotted #bbb;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sign-up .company-item div {
  font-size: 14px;
}

/* Hover effect for list */
.sign-up .company-item:hover {
  background: #f1f8ff;
  transform: translateX(4px);
}

/* Remove border for last item */
.sign-up .company-item:last-child {
  border-bottom: none;
}

/* Date Styling */
.sign-up .company-item p {
  margin: 0;
  font-size: 13px;
  color: black;
  font-weight: 500;
}

/* Alternate row background colors */
.sign-up .company-item:nth-child(odd) {
  background-color: rgb(238, 236, 236);
  /* Light beige background */
}

.sign-up .company-item:nth-child(even) {
  background-color: #fff;
  /* White background */
}

/* Remove default list dots */
.sidebar-menu ul li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* Tree-style submenu alignment */
.submenu ul li {
  position: relative;
  padding-left: 30px;
  /* space for vertical line and horizontal line */
}

/* Horizontal connector (-) */
.submenu ul li .submenu-line {
  position: absolute;
  left: 20px;
  /* aligns center with vertical line */
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 1px;
  background: #cbd5e1;
  /* soft gray */
}

/* Vertical connector (|) */
.submenu ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 1px;
  height: 100%;
  background: #cbd5e1;
  /* soft gray */
}

/* Stop vertical line at last child */
.submenu ul li:last-child::before {
  height: 50%;
}

/* Submenu link styling */
.submenu ul li a {
  display: inline-block;
  color: #e5e7eb;
  font-size: 14px;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.submenu ul li a:hover {
  color: #ffffff;
}

/* Fixed card height */
.sales-card {
  height: 420px;
  /* Adjust based on your UI needs */
  display: flex;
  flex-direction: column;
}

/* Make only inner data scroll */
.sales-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0.75rem;
}

/* Scrollable area for rows */
.sales-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* Custom scrollbar styling */
.sales-scroll::-webkit-scrollbar {
  width: 3px;
}

.sales-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.sales-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Ellipsis for long text */
.sales-row .col-4 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Amount column always fully visible */
.sales-row .col-4:last-child {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.bg-lightgray {
  background: #E6EAED;

}

.card .card-body {
  padding: 0.75rem;
}

.thead-light tr th {
  background: var(--light-gray-color) !important;
}

/* Fixed card height */
.team-leader-card {
  height: 420px;
  /* Adjust height as per your UI */
  display: flex;
  flex-direction: column;
}

/* Ensure body and scroll separation */
.team-leader-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem;
  overflow: hidden;
}

/* Scrollable content area */
.team-leader-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
}

/* Custom scrollbar */
.team-leader-scroll::-webkit-scrollbar {
  width: 6px;
}

.team-leader-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.team-leader-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Ellipsis for long text */
.team-leader-row .col-3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Styling */
.workshop-card {
  overflow: hidden;
  background-color: #fff;
}

.workshop-card .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 12px 16px;
}

.workshop-card .card-header h5 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.custom-table thead {
  background: #f1f5f9;
}

.custom-table th {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: #495057;
}

.custom-table td {
  font-size: 14px;
  vertical-align: middle;
}

.custom-table tfoot td {
  background: #e9ecef;
  font-weight: bold;
}

/* Switch Styling */
.card-footer .form-check-input {
  width: 40px;
  height: 20px;
  cursor: pointer;
}

.card-footer .form-check-label {
  font-size: 14px;
  margin-left: 4px;
}

/* Color Variations for Switches */
.hot-switch:checked {
  background-color: #007bff;
}

.warm-switch:checked {
  background-color: #fd7e14;
}

.cold-switch:checked {
  background-color: #20c997;
}

.booked-switch:checked {
  background-color: #ffc107;
}

.retailed-switch:checked {
  background-color: #6f42c1;
}

.lost-switch:checked {
  background-color: #dc3545;
}

.postponed-switch:checked {
  background-color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modern Form Styling */
.modern-form-card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 15px;
  color: #333;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
  padding-bottom: 4px;
}

.form-label {
  font-weight: 500;
  font-size: 14px;
}

.form-control,
.form-select {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid #ced4da;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
  border-radius: 6px;
  font-weight: 500;
}

.btn-secondary {
  border-radius: 6px;
  font-weight: 500;
  background: #6c757d;
  border: none;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 16px;
  }
}

.card .card-header {
  background: var(--primary-color);
  color: white;
}

.card .card-title {
  color: white;

}

/* Card Styling */
.create-com .modern-form-card {
  border-radius: 12px;
  overflow: hidden;
}

/* Section Title */
.create-com .section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 15px 0 10px;
  color: var(--primary-color);
  padding-bottom: 5px;
}

/* Dark Border Inputs */
.dark-border {
  border: 1.5px solid #333;
  box-shadow: none !important;
}

.dark-border:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2) !important;
}

/* Calendar Icon */
.create-com .input-group-text.calendar-icon {
  background-color: #f8f9fa;
  border: 1.5px solid #333;
  border-left: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}

.create-com .input-group-text.calendar-icon:hover {
  background-color: #e9ecef;
}

/* Labels */
.create-com .form-label {
  font-weight: 700;
  color: #222;
}

/* Responsive */
@media (max-width: 992px) {
  .create-com .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Parent class for purchase entry page */
.purchase-entry {
  background: #fff;
  font-family: 'Inter', sans-serif;
  padding: 20px;
}

.purchase-entry .section-title {
  background: #f7f9fc;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 2px solid #003399;
  color: #003399;
  border-radius: 6px 6px 0 0;
}

/* Labels */
.purchase-entry .form-label {
  font-weight: 600;
  color: #333;
}

/* Inputs and selects */
.purchase-entry .form-control,
.purchase-entry .form-select {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Calendar icon */
.purchase-entry .calendar-icon {
  background: #f7f9fc;
  border: 1px solid #333;
  border-left: none;
  cursor: pointer;
}

/* Table styling */
.purchase-entry table {
  border: 1px solid #ccc;
  font-size: 14px;
}

.purchase-entry table thead {
  background: #f7f9fc;
}

/* Buttons */
.purchase-entry .btn-primary {
  background: #003399;
  border: none;
}

.purchase-entry .btn-primary:hover {
  background: #1a47b8;
}

.purchase-entry .btn-secondary {
  border: 1px solid #333;
  background: #fff;
  color: white;
}

.purchase-entry .btn-secondary:hover {
  background: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .purchase-entry .section-title {
    font-size: 16px;
    text-align: center;
  }

  .purchase-entry table {
    font-size: 12px;
  }
}

.purchase-entry .btn-outline-primary {
  border: 1px solid #333;
  background: #f8f9fa;
}

.purchase-entry .btn-outline-primary:hover {
  background: #003399;
  color: #fff;
  border-color: #003399;
}

.purchase-entry .form-select-sm {
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.purchase-entry table thead th {
  vertical-align: middle;
  text-align: center;
  background-color: #f8f9fa;
  font-weight: 600;
}

.purchase-entry table td,
.purchase-entry table th {
  text-align: center;
  white-space: nowrap;
}

.purchase-entry .btn-success {
  background-color: #28a745;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.purchase-entry .btn-success:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  .purchase-entry table {
    font-size: 12px;
  }

  .purchase-entry .form-select-sm {
    font-size: 12px;
    padding: 3px 5px;
  }

  .purchase-entry table thead th select {
    min-width: 100px;
  }
}

/* Modal Custom UI */
#vehicleModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#vehicleModal .modal-header {
  border-bottom: 2px solid #003399;
}

#vehicleModal .form-control {
  border: 1px solid #003399;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#vehicleModal .form-control:focus {
  border-color: #001a66;
  box-shadow: 0 0 5px rgba(0, 51, 153, 0.5);
}

#vehicleModal .form-label {
  font-weight: bold;
  color: #003399;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #vehicleModal .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.modal-title {
  color: white;
}

.modal-title i {
  color: white;
}

/* Scrollable table container */
.custom-table-container {
  max-height: 400px;
  /* Show approx 10 rows */
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

/* Sticky header */
.custom-thead {
  position: sticky;
  top: 0;
  background: #f8f9fa;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* GST input field styling */
.gst-input {
  width: 80px;
  text-align: center;
}

/* Action button column */
.action-col {
  width: 60px;
}

/* Table cells */
.custom-table th,
.custom-table td {
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
}

.flex-row {
  flex-direction: row !important;
}

@media (max-width: 768px) {
  .workshop-card .card-footer {
    flex-direction: row !important;
  }
}

/* Table Container */

/* Table Header */
.custom-table thead th {
  background-color: #f8f9fa;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Filter Row Styling */
.filter-row td {
  background: #fff;
  padding: 6px;
}

.filter-row .form-control,
.filter-row .form-select {
  font-size: 0.85rem;
  padding: 4px 6px;
}

/* Remove number input arrows */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield;
}

/* Scroll Bar Styling */
.custom-table-container::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.custom-table-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

.custom-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.pd-20 {
  padding: 20px;
}

.modal-header {
  background: var(--primary-color);
  color: white;
}

.modal-header h4 {
  color: white;
}

.close.bg-danger span {
  margin-bottom: 3px;
}

.category-item .radio-tabs {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: max-content;
  background: #f0f0f0;
}

.category-item .radio-tabs input[type="radio"] {
  display: none;
}

.category-item .radio-tabs label {
  position: relative;
  padding: 10px;
  cursor: pointer;
  background-color: #ffffff;
  color: #333;
  transition: all 0.4s ease;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
}

.category-item .radio-tabs label::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: #ddd;
  transform: skewX(-20deg);
  transition: all 0.3s;
}

.category-item .radio-tabs label:first-child::before {
  display: none;
}

.category-item .radio-tabs input[type="radio"]:checked+label {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: #fff;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.category-item .radio-tabs label:hover {
  background: #f1f1f1;
  color: #ff5f6d;
  transform: translateY(-2px);
}

.category-item .radio-tabs label:not(:last-child) {
  border-right: none;
  /* removed plain border to use skew cross effect */
}


.modern-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.modern-table th {
  background: #f7f8fa;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px;
}

.modern-table td {
  padding: 14px;
  vertical-align: top;
  border-top: 1px solid #eee;
}

.full-name .info-line {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mvc-info div,
.purchase-info div {
  font-size: 13px;
  margin-bottom: 4px;
}

.btn-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-pill {
  background: #0ea5e9;
  border: none;
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-pill:hover {
  background: #0284c7;
}

.icon-btns {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.icon-btn {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.icon-btn.green {
  background: #22c55e;
}

.icon-btn.red {
  background: #ef4444;
}

.icon-btn.orange {
  background: #f59e0b;
}

.icon-btn.blue {
  background: #0ea5e9;
}

.icon-btn.pink {
  background: #d946ef;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #fff;
  display: inline-block;
}

.badge.orange {
  background: #f59e0b;
}

.badge.red {
  background: #ef4444;
}

.badge.green {
  background: #22c55e;
}

.badge.blue {
  background: #0ea5e9;
}

.action-btns {
  display: flex;
  gap: 8px;
}

@media (max-width: 992px) {
  .modern-table {
    font-size: 12px;
  }

  .btn-pill {
    padding: 5px 10px;
    font-size: 11px;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
  }
}

/* Step 1 Modal */
#stepModal1 {
  bottom: auto;
  height: auto !important;
}

/* Step 2 Modal */
#stepModal2 {
  bottom: auto;
  height: auto !important;
}

/* Step 3 Modal */
#stepModal3 {
  bottom: auto;
  height: auto !important;
}

/* Step 4 Modal */
#stepModal4 {
  bottom: auto;
  height: auto !important;
}

/* Step 5 Modal */
#stepModal5 {
  bottom: auto;
  height: auto !important;
}

/* Step 6 Modal */
#stepModal6 {
  bottom: auto;
  height: auto !important;
}

/* Table General */
.modern-table th,
.modern-table td {
  padding: 12px;
  vertical-align: middle;
}

/* Action Column */
.action-col {
  width: 100px;
  text-align: center;
}

/* Button Styling */
.btn-column .btn {
  width: 120px;
  font-size: 13px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

/* Fix for equal row height */
.modern-table td,
.modern-table th {
  white-space: nowrap;
}

/* Status Badges */
.badge {
  font-size: 12px;
  padding: 5px 8px;
}

.btn-flex {
  flex-direction: column;
  display: flex;
  gap: 5px;
}

/* Style for label */
.status-label {
  min-width: 80px;
  /* Keeps all labels aligned */
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: inline-block;
}

/* Status row spacing */
.status-row {
  display: flex;
  align-items: center;
  gap: 0px;
  /* Space between label and badge */
}

/* Badge styling for consistency */
.status-row .badge {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 12px;
}

/* Basic Timeline Styling */
.timeline {
  position: relative;
  padding: 15px 0 0 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  /* Adjust to align with dots */
  width: 2.5px;
  background-color: #dee2e6;
  /* Light gray line */
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 40px;
  /* Space for the dot and line */
}

.timeline-dot {
  position: absolute;
  top: 5px;
  /* Adjust vertical position */
  left: 8px;
  /* Align with the vertical line */
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  /* Bootstrap primary blue */
  border-radius: 50%;
  border: 2px solid #fff;
  /* White border to make it stand out */
  z-index: 1;
}

.timeline-content {
  background-color: #f8f9fa;
  /* Light background for the cards */
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  /* Bootstrap default border-radius */
  padding: 15px;
  position: relative;
}

/* Optional: Adjust for smaller screens if needed */
@media (max-width: 767.98px) {
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-dot {
    left: 3px;
  }
}

.modal-body .nav-tabs .nav-link.active {
  border: none;
  border-bottom: 3px solid var(--primary-color);
  border-radius: 0;
}

/* Dropdown styling */
.custom-dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ccc;
  font-size: 14px;
  padding: 0;
}

/* Header for two columns */
.custom-dropdown-menu .dropdown-header {
  background: #f1f1f1;
  padding: 6px 12px;
  border-bottom: 1px solid #ccc;
}

/* Items in two-column format */
.custom-dropdown-menu .dropdown-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #eee;
}

.custom-dropdown-menu .dropdown-item:hover {
  background: #f8f9fa;
}

.custom-dropdown-menu .dropdown-item span:first-child {
  text-align: left;
}

.custom-dropdown-menu .dropdown-item span:last-child {
  text-align: right;
  font-weight: 500;
  color: #555;
}

/* Main button styling */
.dark-border {
  border: 1px solid #495057;
  background-color: #fff;
}

.task-history .timeline::before {
  width: 0;
}

.form-control.flatpickr-time {
  padding: 18px;
}

.border-right {
  border-right: 1px solid gray;
}

.fs-14 {
  font-size: 14px;
}

.pd-plus {
  padding: 0 12px !important;
}

.nav-tabs .nav-link.active {
  border: none;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 0;
}

.capsule-group input[type="radio"] {
  display: none;
}

/* Capsule group container */
.capsule-group {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 50px;
  overflow: hidden;
}

/* Capsule labels */
.capsule-group label {
  padding: 5px 25px;
  cursor: pointer;
  font-weight: 500;
  background-color: #f9f9f9;
  color: #333;
  border-right: 1px solid #ccc;
  transition: all 0.3s ease;
}

/* Remove right border for last capsule */
.capsule-group label:last-child {
  border-right: none;
}

/* Hover effect */
.capsule-group label:hover {
  background-color: var(--main-color);
  color: #fff;
}

/* Active (checked) state */
.capsule-group input[type="radio"]:checked+label {
  background-color: var(--main-color);
  color: #fff;
}

.balance-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 500px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.balance-header {
  background: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: 8px 8px 0 0;
}

.balance-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 15px;
}

.balance-footer {
  border-top: 1px solid #ddd;
  padding: 10px 15px;
  background: #f8f9fa;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.balance-title {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 0;
}

.sub-title {
  color: var(--main-color);
  font-weight: 600;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 4px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.item-name {
  color: #000;
}

.item-amount {
  font-weight: 600;
  color: #000;
}

.balance-footer span {
  font-weight: 700;
  color: #000;
}

/* Scrollbar styling (optional) */
.balance-body::-webkit-scrollbar {
  width: 6px;
}

.balance-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.balance-body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* === Global Loader Styles === */
#global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loader wrapper */
.loader-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
}

/* Rotating circular border */
.loader-circle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid #e0e0e0;
  border-top-color: #E20A17;
  /* red accent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Centered logo/image */
.loader-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Rotation animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.form-control {
  border-left: 3px solid var(--main-color) !important;
}

.btn-flex .btn {
  width: 120px;
}

.sidebar-contact {
  display: none;
}

.jobcard-page .section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.jobcard-page .client-vehicle-box {
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  background: #f9fbff;
}

.jobcard-page .info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e2e2e2;
}

.jobcard-page .info-row label {
  font-weight: 600;
  color: var(--primary-color);
}

.jobcard-page .info-row span {
  font-weight: 500;
}

.jobcard-page .img-upload-box {
  width: 100%;
  height: 130px;
  border: 2px dashed var(--primary-color);
  border-radius: 10px;
  background: #f3f7ff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  color: var(--main-color);
  transition: 0.3s;
}

.jobcard-page .img-upload-box:hover {
  background: #e7efff;
  border-color: var(--main-color);
  color: var(--main-color);
}

.jobcard-page .img-upload-box i {
  font-size: 26px;
  color: inherit;
}

.jobcard-page label {
  font-weight: 600;
}

.img-upload-box {
  border: 1px solid #aaa;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
}

.client-vehicle-box {
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  background: #f9fbff;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e2e2e2;
}

/* RIGHT BORDER ONLY */
.lead-col {
  position: relative;
}

.lead-col::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #dee2e6; /* Bootstrap border color */
}

/* Bullet container */
.lead-item {
  min-height: 60px;
}

/* Bullet styles */
.lead-bullet {
  position: relative;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-bullet .dot {
  width: 16px;
  height: 16px;
  background-color: #ff7a00;
  border-radius: 50%;
  z-index: 2;
}

.lead-bullet .line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 55px;
  border-left: 2px dashed #ff7a00;
  transform: translate(-50%, -50%);
}
