 .star {
    color: #a83232;
    font-size: 18px;
}

.goldstar {
    color: gold;
    font-size: 18px;
}

.imp {
    color: #ff3300;
    font-size: 18px;
    font-weight:bold;
}

.custom-badge {
    font-size: 1rem; /* Increase font size */
    padding: 0.8rem 1rem; /* Adjust padding */
    border-radius: 17px; /* Optional: Adjust the badge's rounded corners */
}

/* Custom styles for the fixed header and scrollable content */
.content {
    height: 300px; /* Fixed height for the content */
    overflow-y: auto; /* Enable vertical scroll */
}
.sticky-header {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1000; /* Ensures the header is above the content */
}

.yellow-gradient-card {
    background: linear-gradient(135deg, #fff8b3, #ffe066);
    transition: transform 0.2s;
}

.yellow-gradient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    cursor: pointer; /* This changes the cursor to a hand symbol */
}

table.dataTable {
    border-collapse: collapse;
    width: 100%;
}

table.dataTable th, table.dataTable td {
    padding: 10px;
    text-align: left;
}

.card-header {
    background: linear-gradient(135deg, #ffa751, #ffe259);
    color: #333;
}

.card:hover {
    transform: translateY(-3px);
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

 .hover-reveal {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    transition: all 0.3s ease;
}

.hover-reveal:hover {
    white-space: normal;
    background-color: #f8f9fa;
    padding: 0.2rem;
    border-radius: 4px;
}

.selected-card {
    border: 3px solid #28a745 !important; /* Green border */
    position: relative;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3); /* Optional glow */
}

.selected-card::after {
    content: '✔'; /* Tick mark */
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.fixed-img {
    width: 50px;          /* Set desired width */
    height: 50px;         /* Set same height for uniform size */
    object-fit: cover;    /* Crop and fill the box while keeping aspect ratio */
    object-position: center;
    border-radius: 5px;   /* Optional: rounded corners */
}

.fixed-image {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.small-logo {
    width: 100px; /* Adjust the size as needed */
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .small-logo {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .small-logo {
        width: 60px;
    }
}

input[type="date"] {
    max-width: 150px;
}

/*.small-logo {
    max-width: 40px;
    height: auto;
}*/

.card-title {
    font-size: 1.2rem;
}

@media (max-width: 576px) {
    .card .row {
        font-size: 0.95rem;
    }
}

.pagination {
    margin-top: 1rem;
}

.order-card {
    display: none; /* JS will control visibility */
}

.cursor-pointer {
    cursor: pointer;
}

@media (max-width: 768px) {
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.child {
        padding: 0.5rem 1rem;
        background-color: #f8f9fa;
    }
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.child div.card-body {
        padding: 0.5rem;
    }
}

select.form-control.select-border {
    opacity: 1 !important;
    background-color: #fff !important;
    pointer-events: auto !important;
    color: #000 !important;
    cursor: pointer;
}

/* Optional: smaller font on mobile */
@media (max-width: 576px) {

    .select-border {
        font-size: 14px;
        padding-right: 2rem;
    }

    .date-input-wrapper input[type="date"] {
        font-size: 14px;
        min-width: 140px;
    }

    .date-input-wrapper::after {
        font-size: 12px;
        right: 8px;
    }
}

.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.custom-select-arrow {
    position: relative;
}

.custom-select-arrow select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
}

.custom-select-arrow::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #495057;
    font-size: 0.8rem;
}


/* Force width for calendar input in table cells */
.dataTables_wrapper input[type="date"] {
    min-width: 130px;
    max-width: 100%;
    padding-right: 30px; /* space for icon */
}

/* DATE */
.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 180px; /* enough space for dd-mm-yyyy */
}

.date-input-wrapper input[type="date"] {
    width: 100%;
    padding-right: 2rem;
    font-family: Arial, sans-serif;
    font-size: 14px;
    min-width: 160px;
    box-sizing: border-box;
    height: 38px;
}

/* Font Awesome calendar icon after the input */
.date-input-wrapper::after {
    content: "\f073"; /* calendar icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #aaa;
    font-size: 14px;
}

.fixed-img-height {
    height: 100px; /* or any height */
    object-fit: contain;
}

/* Add this in your CSS */
table.dataTable td.dt-control::before {
    display: inline-block;
    font-family: 'Bootstrap Icons';
    content: '\f4fe'; /* bi-chevron-down */
    font-size: 1rem;
    color: #007bff;
    cursor: pointer;
}

table.dataTable tr.parent td.dt-control::before {
    content: '\f2ea'; /* bi-chevron-up */
}

.btn-close-custom {
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-close-custom:hover {
    background-color: darkred;
}

/* Ensure confirm modal overlays product modal */
#confirmRemoveImageModal {
  z-index: 2000; /* Higher than product modal (Bootstrap default is 1055) */
  background-color: rgba(0, 0, 0, 0.6);
}

/* Optional: remove background shadow bleed-through */
#confirmRemoveImageModal .modal-dialog {
  pointer-events: auto;
}

.product-details-section {
  max-width: 500px;
  margin: 0 auto;
}

.detail-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 6px;
  font-size: 15px;
}

.detail-label {
  flex: 0 0 120px; /* fixed width for all labels */
  font-weight: 600;
  color: #333;
}

.detail-value {
  flex: 1;
  color: #555;
  word-wrap: break-word;
}
.category-img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 12px;
        cursor: pointer;
        border: 1px solid #ddd;
    }

  .product-img {
    height: 150px;
    object-fit: cover;
  }

  .text-orange {
    color: #ff6600;
  }

  .text-warning i {
    color: #ffc107;
  }

 /* Custom orange arrows for Bootstrap carousel */
  #productCarousel .carousel-control-prev-icon,
  #productCarousel .carousel-control-next-icon {
    background-color: transparent;
    background-image: none;
    width: 2rem;
    height: 2rem;
  }

  #productCarousel .carousel-control-prev-icon::after,
  #productCarousel .carousel-control-next-icon::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    color: orange;
  }

  #productCarousel .carousel-control-prev-icon::after {
    content: "\f104"; /* Left arrow */
  }

  #productCarousel .carousel-control-next-icon::after {
    content: "\f105"; /* Right arrow */
  }

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1055; /* Just above Bootstrap modal backdrop */
}

.category-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px; /* Rounded corners */
    border: 1px solid #ccc;
    transition: transform 0.2s ease-in-out;
  }

.category-img:hover {
transform: scale(1.05);
}

.modal-backdrop.show {
opacity: 0.8; /* Optional: darken background more */
}

.modal {
    padding: 0 !important;
}