/* --- Filter Select Arrow Fix --- */
select.filter-select,
.form-select.filter-select {
  padding-right: 3em !important;
  min-width: 140px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 1em center/1.2em 1.2em;
  background-color: #fff;
  background-clip: padding-box;
  color: #212529;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.2s;
}
select.filter-select:focus,
.form-select.filter-select:focus {
  border-color: #1976d2;
  outline: none;
}
body.bg-dark select.filter-select,
body.bg-dark .form-select.filter-select {
  background-color: #222;
  color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  border-color: #444;
}
@media (min-width: 768px) {
  select.filter-select,
  .form-select.filter-select {
    min-width: 160px;
  }
}

/* --- Filter Bar Styling --- */
.filter-bar {
  background: #f8fafc; /* Bootstrap lightest */
  border: 1px solid #e3e6ea;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.03);
}
body.bg-dark .filter-bar {
  background: #23272b;
  border-color: #343a40;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.filter-bar label {
  margin-bottom: 0;
  font-weight: 500;
  color: #1976d2;
  font-size: 0.98rem;
}
body.bg-dark .filter-bar label {
  color: #90caf9;
}
.filter-bar .filter-select {
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}
.filter-bar .btn {
  margin-left: auto;
} 

/* Make the report frame (card+table) resizable vertically */
.resizable-report-frame {
  resize: vertical;
  overflow: auto;
  min-height: 400px;
  max-height: 90vh;
  width: 100%;
  border: 1px solid #e3e6ea;
  border-radius: 0.75rem;
  background: transparent;
  box-shadow: 0 2px 8px rgba(33,37,41,0.03);
  margin-bottom: 1.5rem;
  padding: 0;
}
body.bg-dark .resizable-report-frame {
  background: transparent;
  border-color: #343a40;
}

/* Remove fixed height from .table-container so it grows with the frame */
.table-container {
  max-height: none !important;
  min-height: 0 !important;
  resize: none !important;
} 