.pcs,
.cur,
.per {
  white-space: nowrap;
}

.pcs:after {
  content: " pcs";
}

.cur:before {
  content: "$";
}

.per:after {
  content: "%";
}
/* Filter section styling */
.filter-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.filter-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.filter-header h6 {
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.filter-header small {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
}

.filter-group {
  height: 100%;
}

.filter-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 8px;
  font-size: 0.875rem;
  display: block;
}

/* Date Range Styling */
.daterange-picker {
  background: white;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.daterange-picker:hover {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.daterange-picker:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: 0;
}

.daterange-picker i {
  color: #6c757d;
}

.daterange-picker span {
  flex: 1;
  text-align: center;
  color: #495057;
  font-weight: 500;
}

/* Override daterangepicker styles to match design */
.daterangepicker {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid #dee2e6;
  font-family: inherit;
}

.daterangepicker .ranges li.active {
  background-color: #007bff;
  color: white;
}

.daterangepicker .ranges li:hover {
  background-color: #007bff;
  color: white;
}

.daterangepicker td.active, 
.daterangepicker td.active:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.daterangepicker td.in-range {
  background-color: #e7f3ff;
  border-color: transparent;
  color: #495057;
}

/* Form Controls */

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 8px;
}

/* Quick Date Options */
.quick-dates {
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e3e6f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quickdate.active {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: white !important;
}

/* Hover Effects */
.quickdate:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.filter-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .daterange-picker {
    min-width: 200px;
  }
  
  .filter-actions {
    margin-top: 10px;
  }
  
  .quick-dates {
    justify-content: center;
  }
}
table.change-log-mdl th {
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
}
table.change-log-mdl th, 
table.change-log-mdl td {
  padding: .4em;
}

table.fold-table {
  background: white;
  color: #555;
}
table.fold-table > tbody > tr.view {
  transition: all .3s ease;
}
table.fold-table > tbody > tr.view td, table.fold-table > tbody > tr.view th {
  cursor: pointer;
}
table.fold-table > tbody > tr.view td:first-child,
table.fold-table > tbody > tr.view th:first-child {
  position: relative;
  padding-left: 20px;
}
table.fold-table > tbody > tr.view td:first-child:before,
table.fold-table > tbody > tr.view th:first-child:before {
  position: absolute;
}

/* Record count and no data styling */
.record-count-info {
  font-size: 0.875rem;
  color: #6c757d;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 10px;
}

.no-data-container {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.no-data-container h5 {
  color: #6c757d;
  margin-bottom: 10px;
}

.no-data-container p {
  color: #868e96;
  margin-bottom: 20px;
}

/* Hover effects for filter buttons */
.filter-section .btn:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Loading state for filter section */
table.fold-table > tbody > tr.view.open {
  background: #f4f5f8;
  color: #001737;
}
table.fold-table > tbody > tr.view.open td:first-child:before, table.fold-table > tbody > tr.view.open th:first-child:before {
  transform: rotate(-180deg);
  color: #000;
}
table.fold-table > tbody > tr.fold {
  display: none;
}
table.fold-table > tbody > tr.fold.open {
  display: table-row;
}
table.fold-table > tbody > tr.fold.open > td {
  padding: 0;
}

.fold-content {
  padding: .5em;
}
.fold-content h3 {
  margin-top: 0;
}
.fold-content > table {
  background: white;
  color: #555;
  /* box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2); */
}
.fold-content > table > tbody > tr {
  cursor: pointer;
}

.visible-small {
  display: none;
}

.visible-big {
  display: block;
}

@media (max-width: 700px) {

  table.small-friendly > thead {
    display: none;
  }
  table.small-friendly > tbody > tr > td,
  table.small-friendly > tbody > tr > th {
    position: relative;
    padding: 0;
    padding-left: 50%;
    display: block;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  table.small-friendly > tbody > tr > td:before,
  table.small-friendly > tbody > tr > th:before {
    position: absolute;
    top: 0;
    left: .5em;
    max-width: 50%;
    content: attr(data-th) ": ";
    display: block;
    font-weight: bold;
  }
  table.small-friendly > tbody > tr > td:first-child,
  table.small-friendly > tbody > tr > th:first-child {
    margin-top: 1em;
  }
  table.small-friendly > tbody > tr > td:last-child,
  table.small-friendly > tbody > tr > th:last-child {
    margin-bottom: 1em;
    border: 0;
  }

  .visible-small {
    display: block;
  }

  .visible-big {
    display: none;
  }
}

.filter-white{
  filter: brightness(0) invert(1);
}
.bold-txt {
  font-weight: bold;
}

.tbl-details-fullscreen {
  display: block;
  z-index: 1040;
  position: fixed !important;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  bottom: 25px;
  background-color: #fff;
  padding: 10px;
  overflow-y: auto;
}

.ds-icon-grid {
  --auto-grid-min-size: 16rem;
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
}