@keyframes pulse-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
#filter-panel-toggle {
  width: 100%;
}

.filter-loading-indicator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 24px 32px;
  border-radius: 8px;
  z-index: 100000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}
.filter-loading-indicator.htmx-request {
  display: block;
  opacity: 1;
  animation: fadeInScale 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.filter-loading-indicator.htmx-request-complete {
  animation: fadeOutScale 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.filter-loading-indicator .filter-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes fadeOutScale {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 99999;
  cursor: wait;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease-in-out, visibility 300ms;
}
.loading-overlay.htmx-request {
  visibility: visible;
  opacity: 1;
}
.loading-overlay.htmx-request-complete {
  opacity: 0;
  transition: opacity 300ms ease-in-out, visibility 0s 300ms;
}

.htmx-error-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  z-index: 100001;
  background: #fff;
  border-left: 4px solid #d32f2f;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  opacity: 1;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.htmx-error-toast.hidden {
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
}
.htmx-error-toast .error-toast-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}
.htmx-error-toast .error-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}
.htmx-error-toast .error-message {
  flex: 1;
  min-width: 0;
}
.htmx-error-toast .error-message strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #d32f2f;
  margin-bottom: 4px;
}
.htmx-error-toast .error-message p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}
.htmx-error-toast .error-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.htmx-error-toast .error-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 150ms ease-in-out;
}
.htmx-error-toast .error-btn:hover {
  background: #f5f5f5;
}
.htmx-error-toast .error-btn.error-retry {
  color: #1976d2;
  border-color: #1976d2;
  white-space: nowrap;
}
.htmx-error-toast .error-btn.error-retry:hover {
  background: #e3f2fd;
}
.htmx-error-toast .error-btn.error-close {
  color: #666;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border: none;
}
.htmx-error-toast .error-btn.error-close:hover {
  color: #d32f2f;
  background: #ffebee;
}
@keyframes slideInFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.filter-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
.filter-panel-overlay.active {
  visibility: visible;
  opacity: 1;
}

.filter-panel {
  position: fixed;
  top: 0;
  right: -900px;
  bottom: 0;
  width: 900px;
  max-width: 95vw;
  background-color: #fff;
  z-index: 10000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
}
.filter-panel.active {
  right: 0;
}
.filter-panel.pinned-no-animation {
  transition: none;
}
.filter-panel.filter-panel-narrow {
  width: 450px;
  right: -450px;
}
.filter-panel.filter-panel-narrow.active {
  right: 0;
}
.filter-panel.filter-panel-narrow .filter-panel-content {
  grid-template-columns: 1fr !important;
}
.filter-panel .filter-panel-header {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.filter-panel .filter-panel-header h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: -0.02em;
}
.filter-panel .filter-panel-header .filter-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-panel .filter-panel-header .filter-panel-reset,
.filter-panel .filter-panel-header .filter-panel-pin,
.filter-panel .filter-panel-header .filter-panel-close {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 6px 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.filter-panel .filter-panel-header .filter-panel-reset:hover,
.filter-panel .filter-panel-header .filter-panel-pin:hover,
.filter-panel .filter-panel-header .filter-panel-close:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #333;
}
.filter-panel .filter-panel-header .filter-panel-reset:active,
.filter-panel .filter-panel-header .filter-panel-pin:active,
.filter-panel .filter-panel-header .filter-panel-close:active {
  background-color: #e9e9e9;
  border-color: #ccc;
}
.filter-panel .filter-panel-header .filter-panel-reset:focus,
.filter-panel .filter-panel-header .filter-panel-pin:focus,
.filter-panel .filter-panel-header .filter-panel-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
.filter-panel .filter-panel-header .filter-panel-reset {
  font-size: 1.25rem;
}
.filter-panel .filter-panel-header .filter-panel-reset:hover {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}
.filter-panel .filter-panel-header .filter-panel-reset:active {
  background-color: #ffeaa7;
  border-color: #ffd700;
}
.filter-panel .filter-panel-header .filter-panel-pin {
  font-size: 1.125rem;
}
.filter-panel .filter-panel-header .filter-panel-pin.pinned {
  background-color: #28a745;
  border-color: #218838;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}
.filter-panel .filter-panel-header .filter-panel-pin.pinned:hover {
  background-color: #218838;
  border-color: #1e7e34;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.4);
}
.filter-panel .filter-panel-header .filter-panel-close {
  font-size: 1.5rem;
  font-weight: 300;
  padding: 4px 10px;
}
.filter-panel .filter-panel-content {
  padding: 24px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  grid-auto-flow: row !important;
}
.filter-panel .filter-panel-content .filter-group {
  margin-bottom: 0 !important;
  break-inside: avoid;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.filter-panel .filter-panel-content .filter-group.whoosh-out {
  animation: groupWhooshOut 0.4s ease-out forwards;
  pointer-events: none;
}
@keyframes groupWhooshOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
  }
}
.filter-panel .filter-panel-content .filter-group.hidden {
  display: none;
}
.filter-panel .filter-panel-content .filter-group .filter-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: none;
  color: #34495e;
  margin: 0 0 12px 0 !important;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #4a90e2;
  border-radius: 4px;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.2s ease;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible:active {
  transform: translateY(1px);
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-title-text {
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-title-text .selected-filter-value {
  font-weight: 700;
  color: #0275d8;
  margin-left: 4px;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-title-text .selected-filter-value .filter-header-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background-color: #0275d8;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  vertical-align: baseline;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-toggle-icon {
  font-size: 1rem;
  color: #6c757d;
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection {
  border-left-color: #dc3545;
  border-left-width: 4px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection:hover {
  background: linear-gradient(135deg, #ffe8e8 0%, #ffd6d6 100%);
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection .filter-toggle-icon {
  color: #dc3545;
  font-weight: bold;
  animation: pulse-scale 2s infinite;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection .filter-title-text {
  font-weight: 600;
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-toggle-icon {
  transform: rotate(0deg);
}
.filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.collapsed .filter-toggle-icon {
  transform: rotate(0deg);
}
.filter-panel .filter-panel-content .filter-group .filter-options {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
  width: 100% !important;
  box-sizing: border-box !important;
}
.filter-panel .filter-panel-content .filter-group .filter-options.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  max-height: 50px;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-check-icon {
  font-size: 0.875rem;
  color: #5cb85c;
  font-weight: bold;
  padding: 8px 4px 8px 12px;
  flex-shrink: 0;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-option-link {
  flex: 1;
  padding: 8px 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-option-link:focus {
  outline: 2px solid #4a90e2;
  outline-offset: -2px;
  border-radius: 2px;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-count {
  display: inline-block;
  margin-left: auto;
  margin-right: 12px;
  padding: 2px 7px;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 20px;
  text-align: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover {
  background-color: #f0f0f0;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover .filter-option-link {
  color: #000;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover .filter-count {
  background-color: #dee2e6;
  color: #495057;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected {
  background-color: #e8f4f8;
  position: relative;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #0275d8;
  border-radius: 4px 0 0 4px;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected .filter-option-link {
  color: #0275d8;
  font-weight: 600;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected .filter-count {
  background-color: #b8dff0;
  color: #0275d8;
  font-weight: 700;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:hover {
  background-color: #d1e9f3;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:hover .filter-count {
  background-color: #a3d5eb;
  color: #025aa5;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option:not(.selected) .filter-option-link {
  padding-left: 12px;
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.whoosh-out {
  animation: whooshOut 0.3s ease-out forwards;
  pointer-events: none;
}
@keyframes whooshOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 50px;
  }
  50% {
    opacity: 0.5;
    transform: translateX(-20px) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.7);
    max-height: 0;
    padding: 0;
    margin: 0;
  }
}
.filter-panel .filter-panel-content .filter-group .filter-options .filter-option.hidden {
  display: none;
}
.filter-panel .filter-panel-content .filter-group .filter-select {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px;
  font-size: 0.9375rem;
  color: #333;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}
.filter-panel .filter-panel-content .filter-group .filter-select:hover {
  border-color: #4a90e2;
  background-color: #f8f9fa;
}
.filter-panel .filter-panel-content .filter-group .filter-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
.filter-panel .filter-panel-content .filter-group .filter-select option {
  padding: 8px;
}
.filter-panel .filter-panel-content .filter-group .filter-select option:checked {
  background-color: #e8f4f8;
  font-weight: 600;
}

.filter-panel-transitioning {
  position: fixed !important;
  z-index: 10001 !important;
}
.filter-panel-transitioning.fade-out {
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

footer.grp-module.grp-submit-row.grp-fixed-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 100 !important;
}

body.grp-change-list #grp-changelist-form {
  padding-bottom: 80px;
}

@media (max-width: 1400px) {
  .filter-panel {
    width: 750px;
    right: -750px;
  }
  .filter-panel.active {
    right: 0;
  }
}
@media (max-width: 1200px) {
  .filter-panel {
    width: 650px;
    right: -650px;
  }
  .filter-panel.active {
    right: 0;
  }
}
@media (max-width: 1024px) {
  .filter-panel {
    width: 550px;
    right: -550px;
  }
  .filter-panel.active {
    right: 0;
  }
  .filter-panel .filter-panel-content {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  .filter-panel {
    width: 450px;
    right: -450px;
  }
  .filter-panel.active {
    right: 0;
  }
  .filter-panel .filter-panel-content {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 480px) {
  .filter-panel {
    width: 100%;
    right: -100%;
    max-width: none;
  }
  .filter-panel.active {
    right: 0;
  }
  .filter-panel .filter-panel-content {
    grid-template-columns: 1fr !important;
  }
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0.8;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-color-scheme: dark) {
  .filter-panel {
    background-color: #2b2b2b;
    color: #e0e0e0;
  }
  .filter-panel .filter-panel-header {
    background-color: #1f1f1f;
    border-bottom-color: #444;
  }
  .filter-panel .filter-panel-header h2 {
    color: #e0e0e0;
  }
  .filter-panel .filter-panel-header .filter-panel-close {
    color: #999;
  }
  .filter-panel .filter-panel-header .filter-panel-close:hover {
    background-color: #3a3a3a;
    color: #fff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-title {
    color: #999;
    border-bottom-color: #444;
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-title-text .selected-filter-value {
    color: #4a9eff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible .filter-title-text .selected-filter-value .filter-header-count {
    background-color: #4a9eff;
    color: #1f1f1f;
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection {
    border-left-color: #ff4444;
    border-left-width: 4px;
    background: linear-gradient(135deg, #3a1a1a 0%, #462222 100%);
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection:hover {
    background: linear-gradient(135deg, #462222 0%, #5a2a2a 100%);
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection .filter-toggle-icon {
    color: #ff4444;
    font-weight: bold;
    animation: pulse-scale 2s infinite;
  }
  .filter-panel .filter-panel-content .filter-group .filter-title.filter-collapsible.has-selection .filter-title-text {
    font-weight: 600;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-option-link {
    color: #e0e0e0;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option .filter-count {
    background-color: #3a3a3a;
    color: #999;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover {
    background-color: #3a3a3a;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover .filter-option-link {
    color: #fff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option:hover .filter-count {
    background-color: #4a4a4a;
    color: #ccc;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected {
    background-color: #1a3a52;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:before {
    background-color: #4a9eff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected .filter-option-link {
    color: #4a9eff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected .filter-count {
    background-color: #224660;
    color: #4a9eff;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:hover {
    background-color: #224660;
  }
  .filter-panel .filter-panel-content .filter-group .filter-options .filter-option.selected:hover .filter-count {
    background-color: #2a5370;
    color: #6ab0ff;
  }
  .filter-panel-overlay {
    background-color: rgba(0, 0, 0, 0.3);
  }
}

/*# sourceMappingURL=admin-filter-panel.css.map */
