/* CSS Variables */
:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  --font-heading: "EB Garamond", Garamond, Georgia, serif;
  --color-primary: #007bff;
  --color-primary-hover: #0056b3;
  --color-primary-active: #004085;
  --color-danger: #dc3545;
  --color-danger-hover: #c82333;
  --color-success: #28a745;
  --color-success-hover: #218838;
  --color-secondary: #6c757d;
  --color-secondary-hover: #545b62;
  --color-background: #f8f9fa;
  --color-surface: white;
  --color-border: #ddd;
  --color-border-light: #dee2e6;
  --color-text: #333;
  --color-text-muted: #666;
  --color-text-light: #999;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --border-radius: 4px;
  --border-radius-lg: 8px;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  margin: 20px;
  background: var(--color-background);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1980px;
  margin: 0 auto;
}

/* Typography */
h1 {
  color: #000000;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
}

/* Hide h1 when using main navigation */
.main-navigation + h1 {
  display: none;
}

/* Navigation and Header */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border-light);
  width: 100%;
  position: relative;
}

.nav-brand {
  color: #000000;
  margin-right: 20px;
  white-space: nowrap;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.main-navigation > div:last-child {
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--font-body);
}

.nav-tab {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 400;
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-tab.active {
  color: #000000;
  font-weight: 600;
  border-bottom-color: var(--color-primary);
}

.refresh-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--color-text-muted);
  font-size: 11px;
}

.refresh-info-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-simple {
  font-size: 11px;
  color: var(--color-text-muted);
}

.auth-simple a {
  color: var(--color-primary);
  text-decoration: none;
}

.auth-simple a:hover {
  text-decoration: underline;
}

.refresh-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.refresh-button:hover {
  background: var(--color-primary-hover);
}

.refresh-button:active {
  background: var(--color-primary-active);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

th {
  background: var(--color-background);
  font-weight: 600;
}

tr:hover {
  background: var(--color-background);
}

/* Main Dashboard Table - Column styling */
#filings-table th:nth-child(1),
#filings-table td:nth-child(1),
#filings-table th:nth-child(2),
#filings-table td:nth-child(2) {
  min-width: 90px;
  width: 90px;
}

#filings-table th:nth-child(3),
#filings-table td:nth-child(3) {
  min-width: 150px;
  width: 150px;
}

#filings-table th:nth-child(4) {
  text-align: left;
}

#filings-table td:nth-child(4) {
  min-width: 100px;
  width: 100px;
  text-align: center;
}

#filings-table th:nth-child(5),
#filings-table td:nth-child(5) {
  min-width: 540px;
}

#filings-table th:nth-child(6),
#filings-table th:nth-child(7),
#filings-table th:nth-child(8),
#filings-table th:nth-child(9),
#filings-table th:nth-child(10) {
  min-width: 100px;
  width: 100px;
  text-align: left;
}

#filings-table td:nth-child(6) {
  text-align: left;
}

#filings-table td:nth-child(7),
#filings-table td:nth-child(8),
#filings-table td:nth-child(9),
#filings-table td:nth-child(10) {
  min-width: 100px;
  width: 100px;
  text-align: center;
}

/* Links */
.filing-link {
  color: var(--color-primary);
  text-decoration: none;
}

.filing-link:hover {
  text-decoration: underline;
}

/* State Messages */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 12px;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 12px;
}

/* List Components */
.list-column ul {
  margin: 0;
  padding-left: 16px;
}

.list-column li {
  margin-bottom: 4px;
  font-size: 11px;
}

.ticker-line {
  line-height: 1.3;
}

.ticker-line:last-child {
  margin-bottom: 0;
}

/* Row Highlighting */
tr.positive-news {
  background-color: #d4edda;
}

tr.positive-news:hover {
  background-color: #c3e6cb;
}

tr.negative-news {
  background-color: #f8d7da;
}

tr.negative-news:hover {
  background-color: #f5c6cb;
}

/* Filter Styles */
.column-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.filter-option input[type="checkbox"] {
  transform: scale(0.8);
  margin: 0;
}

.filter-option label {
  cursor: pointer;
  user-select: none;
  margin: 0;
  line-height: 1.2;
}

#filter-row th {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border-light);
  padding: 4px 8px;
  vertical-align: top;
}

.filter-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  font-size: 11px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.filter-toggle:hover {
  background: #e9ecef;
}

.filter-toggle-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.filter-toggle-label {
  font-weight: 500;
}

.filter-row-collapsed .column-filters {
  display: none;
}

.filter-row-collapsed .filter-toggle-icon {
  transform: rotate(-90deg);
}

.no-results {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Clickable Elements */
.rationale-clickable {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.rationale-clickable:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.rationale-clickable:active {
  transform: scale(0.98);
}

/* Tooltips */
.rationale-tooltip {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 12px;
  max-width: 350px;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text);
  display: none;
  animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rationale-tooltip-title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 13px;
}

.rationale-tooltip-content {
  color: #555;
}

.rationale-tooltip-content ul {
  margin: 0;
  padding-left: 16px;
}

.rationale-tooltip-content li {
  margin-bottom: 4px;
}

/* Settings Styles */
.settings-container {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 15px;
}

.settings-header {
  background: var(--color-background);
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 600;
  font-size: 14px;
}

.settings-content {
  padding: 20px;
}

.settings-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.form-section {
  flex: 1;
  min-width: 0;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 12px;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
}

.checkbox-item label {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Buttons */
.save-button {
  background: var(--color-success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.save-button:hover {
  background: var(--color-success-hover);
}

.save-button:disabled {
  background: var(--color-secondary);
  cursor: not-allowed;
}

.cancel-button {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

.cancel-button:hover {
  background: var(--color-secondary-hover);
}

.action-button {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  color: var(--color-text-muted);
  margin-right: 5px;
}

.action-button:hover {
  background: var(--color-background);
}

.action-button.edit {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.action-button.edit:hover {
  background: var(--color-primary);
  color: white;
}

.action-button.delete {
  color: var(--color-danger);
  border-color: var(--color-danger);
  margin-right: 0;
}

.action-button.delete:hover {
  background: var(--color-danger);
  color: white;
}

.new-config-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.new-config-button:hover {
  background: var(--color-primary-hover);
}

/* Multi-select */
.multi-select {
  position: relative;
}

.multi-select-button {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.multi-select-button:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.multi-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.multi-select-dropdown.show {
  display: block;
}

.multi-select-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #f1f1f1;
}

.multi-select-option:hover {
  background: var(--color-background);
}

.multi-select-option:last-child {
  border-bottom: none;
}

/* Tags */
.selected-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-remove {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.tag-remove:hover {
  color: #495057;
}

/* Configuration List */
.config-list {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.config-list-header {
  background: var(--color-background);
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border-light);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-table {
  width: 100%;
  border-collapse: collapse;
}

.config-table th,
.config-table td {
  padding: 10px 20px;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  font-size: 12px;
}

.config-table th {
  background: var(--color-background);
  font-weight: 600;
  color: var(--color-text);
}

.config-table tr:hover {
  background: var(--color-background);
}

.config-table tr:last-child td {
  border-bottom: none;
}

.config-table td {
  vertical-align: top;
}

/* Config Table Column Widths */
.config-table th:nth-child(1) {
  /* Active checkbox */
  width: 60px;
  text-align: center;
}

.config-table th:nth-child(2) {
  /* Name */
  width: 150px;
  min-width: 120px;
}

.config-table th:nth-child(3) {
  /* Recipient */
  width: 200px;
  min-width: 180px;
}

.config-table th:nth-child(4) {
  /* All Filters Combined */
  width: auto; /* Takes remaining space */
  min-width: 400px;
}

.config-table th:nth-child(5) {
  /* Actions */
  width: 120px;
  text-align: center;
}

.config-table td:nth-child(1) {
  text-align: center;
}

.config-table td:nth-child(5) {
  text-align: center;
}

/* New Configuration Button Row */
.new-config-row {
  background: #f0f8ff;
  border: 1px dashed var(--color-primary);
}

.new-config-row td {
  padding: 15px 10px;
  text-align: center;
}

.new-config-row .new-config-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.new-config-row .new-config-button:hover {
  background: var(--color-primary-hover);
}

/* Tags Table Column Widths */
.config-table.tags-table th:nth-child(1) {
  /* Tag */
  width: 200px;
  min-width: 150px;
}

.config-table.tags-table th:nth-child(2) {
  /* Description */
  width: auto; /* Takes remaining space */
  min-width: 250px;
}

.config-table.tags-table th:nth-child(3) {
  /* Status */
  width: 100px;
  text-align: center;
}

.config-table.tags-table th:nth-child(4) {
  /* Actions */
  width: 120px;
  text-align: center;
}

.config-table.tags-table td:nth-child(3),
.config-table.tags-table td:nth-child(4) {
  text-align: center;
}

/* Inline Form Row Styles */
.config-form-row {
  background: #f8f9fa;
  border: 2px solid var(--color-primary);
}

.config-form-row td {
  padding: 15px 10px;
  vertical-align: top;
}

.inline-form-field {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 11px;
  margin-bottom: 5px;
}

.inline-form-field:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
}

.inline-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}

.inline-checkbox-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
}

.inline-checkbox-item input[type="checkbox"] {
  transform: scale(0.8);
  margin: 0;
}

.inline-checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-size: 10px;
}

.inline-form-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.inline-save-btn {
  background: var(--color-success);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 11px;
  cursor: pointer;
}

.inline-save-btn:hover {
  background: var(--color-success-hover);
}

.inline-cancel-btn {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 11px;
  cursor: pointer;
}

.inline-cancel-btn:hover {
  background: var(--color-secondary-hover);
}

.filter-summary {
  font-size: 10px;
  line-height: 1.2;
  color: var(--color-text-muted);
}

.filter-section {
  margin-bottom: 8px;
}

.filter-section label {
  font-weight: 600;
  font-size: 10px;
  margin-bottom: 2px;
  display: block;
  color: var(--color-text);
}

.config-actions {
  display: flex;
  gap: 5px;
}

/* Status badges */
.status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-inactive {
  background: #f8d7da;
  color: #721c24;
}

/* Preview */
.preview-section {
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: 15px;
  flex: 0 0 320px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.preview-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 13px;
}

.preview-content {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.preview-content div {
  margin-bottom: 4px;
}

.preview-content strong {
  color: var(--color-text);
}

/* Form mode toggles */
.form-mode-toggle {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mode-button {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  color: var(--color-text-muted);
}

.mode-button.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Help text */
.help-text {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Error page styles */
.error-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.error-icon {
  font-size: 48px;
  color: var(--color-danger);
  margin-bottom: 20px;
}

.error-container h1 {
  color: var(--color-danger);
  margin-bottom: 20px;
}

.error-message {
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.5;
}

.back-link {
  color: var(--color-primary);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Alert styles */
.alert {
  padding: 10px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Companies page - side-by-side tables */
.tables-container {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.table-column {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.companies-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.companies-table th,
.companies-table td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.companies-table th {
  background: var(--color-background);
  font-weight: 600;
}

.companies-table tr:hover {
  background: var(--color-background);
}

/* Company Detail Filings Table */
.filings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.filings-table th,
.filings-table td {
  padding: 8px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #eee;
  font-size: 12px;
}

.filings-table th {
  background: var(--color-background);
  font-weight: 600;
}

.filings-table tr:hover {
  background: var(--color-background);
}

.filing-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filing-row:hover {
  background-color: var(--color-background);
}

.filing-row td {
  border-bottom: 1px solid #eee;
}

.filing-attachments {
  background: #f8f9fa;
  border: none !important;
}

.filing-attachments td {
  padding: 0;
  border: none;
}

.attachments-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8f9fa;
}

.attachments-table td {
  padding: 6px 8px;
  border-top: 1px solid #eee;
  font-size: 11px;
  color: #666;
}

.attachments-table tr:first-child td {
  border-top: none;
}

.expand-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 14px;
  margin-left: 8px;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.filing-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.filing-controls-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filing-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-button {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 11px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.control-button:hover {
  background: var(--color-background);
  color: var(--color-text);
}

.summary-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.summary-toggle input[type="checkbox"] {
  margin: 0;
}

/* Controls container - filters and pagination */
.controls-container {
  margin: 20px 0;
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Filter controls */
.filter-controls {
  padding: 15px 20px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.filter-input {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 12px;
  min-width: 250px;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.checkbox-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkbox-filters .checkbox-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.checkbox-filters .checkbox-item input[type="checkbox"] {
  transform: scale(0.9);
  margin: 0;
}

.checkbox-filters .checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  color: var(--color-text-muted);
}

.clear-filters-button {
  background: var(--color-secondary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-filters-button:hover {
  background: var(--color-secondary-hover);
}

/* Pagination section */
.pagination-section {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination-info {
  font-size: 12px;
  color: var(--color-text-muted);
}

.total-info {
  color: var(--color-text-light);
  font-style: italic;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pagination-current {
  font-size: 12px;
  color: var(--color-text);
  font-weight: 500;
}

.pagination-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.pagination-button:disabled {
  background: var(--color-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}
