:root {
  --cr-bg: #f6f7f9;
  --cr-surface: #ffffff;
  --cr-border: #e2e5ea;
  --cr-border-light: #f0f1f3;
  --cr-text: #1a1d23;
  --cr-text-secondary: #6b7280;
  --cr-text-muted: #9ca3af;
  --cr-primary: #3b5ccc;
  --cr-primary-hover: #2e4ab3;
  --cr-primary-light: #eef1fb;
  --cr-accent: #10b981;
  --cr-danger: #ef4444;
  --cr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --cr-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --cr-radius: 10px;
  --cr-radius-sm: 6px;
  --cr-font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --cr-transition: 180ms ease;
}

.cr-page {
  font-family: var(--cr-font);
  color: var(--cr-text);
  width: auto;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-top: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.cr-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cr-text);
  margin: 0;
  padding: 0;
}

.cr-split-panel {
  display: flex;
  gap: 16px;
  height: 500px;
}

.cr-panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cr-surface);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow-sm);
}

.cr-panel-right {
  width: 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  background: var(--cr-surface);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow-sm);
}

.cr-filter-bar {
  padding: 12px 14px;
  border-bottom: 1px solid var(--cr-border-light);
  flex-shrink: 0;
}

.cr-filter-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 1.3rem;
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius-sm);
  outline: none;
  transition:
    border-color var(--cr-transition),
    box-shadow var(--cr-transition);
  background: #fff;
  color: var(--cr-text);
  font-family: var(--cr-font);
}

.cr-filter-input::placeholder {
  color: var(--cr-text-muted);
}

.cr-filter-input:focus {
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px rgba(59, 92, 204, 0.12);
  background: #fff;
}

.cr-table-scroll {
  overflow-y: auto;
  flex: 1;
}

.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  margin: 0;
}

.cr-table thead {
  background: var(--cr-bg);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cr-table th {
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cr-text-secondary);
  border-bottom: 1px solid var(--cr-border);
  white-space: nowrap;
  user-select: none;
}

.cr-table th.cr-th-check {
  width: 44px;
  text-align: center;
}

.cr-table th a {
  color: inherit;
  text-decoration: none;
}

.cr-sort-indicator {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.cr-sort-indicator svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-sort-indicator--active svg {
  color: var(--cr-primary);
}

.cr-sortable-header {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--cr-text-secondary);
  text-decoration: none;
  transition: color var(--cr-transition);
}

.cr-sortable-header:hover {
  color: var(--cr-primary);
}

.cr-sortable-header:hover .cr-sort-indicator svg {
  color: var(--cr-primary);
  opacity: 1;
}

.cr-sort-indicator--inactive {
  opacity: 0;
  transition: opacity var(--cr-transition);
}

.cr-sortable-header:hover .cr-sort-indicator--inactive {
  opacity: 0.45;
}

.cr-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--cr-border-light);
  vertical-align: middle;
}

.cr-table tbody tr {
  transition: background-color var(--cr-transition);
  cursor: pointer;
}

.cr-table tbody tr:hover {
  background-color: var(--cr-primary-light);
}

.cr-table td.cr-td-check {
  text-align: center;
}

.cr-table .cr-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--cr-primary);
  cursor: pointer;
}

.cr-cell-date {
  color: var(--cr-text-muted);
  font-size: 1.2rem;
  white-space: nowrap;
}

.cr-cell-name {
  font-weight: normal;
  margin: 0;
  cursor: pointer;
  color: var(--cr-text);
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-cell-email {
  color: var(--cr-text-muted);
  font-size: 1.2rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-cell-participants {
  max-width: 300px;
  word-wrap: break-word;
  color: var(--cr-text-secondary);
  font-size: 1.2rem;
}

.cr-empty-cell {
  text-align: center;
  padding: 32px 20px !important;
  color: var(--cr-text-secondary);
  font-size: 1.2rem;
}

.cr-empty-cell a {
  color: var(--cr-primary);
  text-decoration: none;
}

.cr-empty-cell a:hover {
  text-decoration: underline;
}

.cr-selection-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
  color: var(--cr-text-muted);
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.5;
}

.cr-selection-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.cr-selection-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cr-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--cr-border-light);
  line-height: 1.35;
}

.cr-selected-item-content {
  flex: 1;
  min-width: 0;
}

.cr-selected-name {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cr-text);
}

.cr-selected-email {
  font-size: 1.2;
  color: var(--cr-text-muted);
  margin-top: 2px;
}

.cr-remove-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--cr-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background var(--cr-transition),
    color var(--cr-transition);
  margin-left: 8px;
  margin-bottom: 5px;
}

.cr-remove-btn:hover {
  background: #fde8e8;
  color: var(--cr-danger);
}

.cr-selection-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--cr-border);
  flex-shrink: 0;
  background: var(--cr-bg);
  border-radius: 0 0 var(--cr-radius) var(--cr-radius);
}

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--cr-font);
  border-radius: var(--cr-radius-sm);
  border: none;
  cursor: pointer;
  transition:
    background-color var(--cr-transition),
    opacity var(--cr-transition),
    box-shadow var(--cr-transition);
  text-decoration: none;
  line-height: 1;
}

.cr-btn-ghost {
  background: transparent;
  color: var(--cr-text-secondary);
  border: 1px solid var(--cr-border);
}

.cr-btn-ghost:hover {
  background: var(--cr-bg);
  color: var(--cr-text);
}

.cr-btn-primary {
  background: var(--cr-primary);
  color: #fff;
}

.cr-btn-primary:hover:not(:disabled) {
  background: var(--cr-primary-hover);
  box-shadow: var(--cr-shadow-sm);
}

.cr-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cr-btn-download {
  background: var(--cr-primary-light);
  color: var(--cr-primary);
  font-size: 1.4rem;
  padding: 6px 14px;
}

.cr-btn-download:hover {
  background: var(--cr-primary);
  color: #fff;
}

.cr-btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--cr-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.cr-btn-link:hover {
  text-decoration: underline;
}

.cr-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cr-archived-link {
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cr-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--cr-transition);
}

.cr-archived-link:hover {
  color: var(--cr-primary-hover);
  text-decoration: underline;
}

.cr-search-status {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--cr-text-secondary);
}

.cr-search-status strong {
  color: var(--cr-text);
}

.cr-report-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 6px;
  margin-top: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.cr-report-name-inner {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.cr-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.cr-dropdown-trigger {
  background: none;
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cr-text-secondary);
  font-size: 1.2rem;
  transition:
    background var(--cr-transition),
    border-color var(--cr-transition);
}

.cr-dropdown-trigger:hover {
  background: var(--cr-bg);
  border-color: var(--cr-text-muted);
}

.cr-dropdown-trigger::after {
  content: '⋯';
  font-size: 14px;
}

.cr-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--cr-surface);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius-sm);
  box-shadow: var(--cr-shadow-md);
  min-width: 180px;
  z-index: 50;
  overflow: hidden;
}

.cr-dropdown-wrap.cr-open .cr-dropdown-menu {
  display: block;
}

.cr-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 1.2rem;
  color: var(--cr-text);
  text-decoration: none;
  transition: background var(--cr-transition);
}

.cr-dropdown-menu a:hover {
  background: var(--cr-primary-light);
  color: var(--cr-primary);
}

.cr-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px dashed var(--cr-border);
  border-radius: var(--cr-radius);
  color: var(--cr-text-muted);
  font-size: 1.2rem;
  text-align: center;
  background: var(--cr-bg);
  min-height: 50px;
  margin-bottom: 24px;
}

.cr-empty-box a {
  color: var(--cr-primary);
  text-decoration: none;
}

.cr-empty-box a:hover {
  text-decoration: underline;
}

.cr-pagination {
  text-align: center;
  margin: 20px;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cr-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cr-filter-select {
  padding: 8px 24px 8px 12px;
  font-size: 1.2rem;
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius-sm);
  outline: none;
  transition:
    border-color var(--cr-transition),
    box-shadow var(--cr-transition);
  background-color: var(--cr-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 4px) 50%;
  background-size: 16px;
  color: var(--cr-text);
  font-family: var(--cr-font);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.cr-filter-select:focus {
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px rgba(59, 92, 204, 0.12);
}

.cr-table-container {
  background: var(--cr-surface);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow-sm);
  overflow-x: auto;
}

.cr-table tbody tr:last-child .cr-dropdown-menu,
.cr-table tbody tr:nth-last-child(2) .cr-dropdown-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}

.cr-cell-link {
  font-size: 1.2rem;
  color: var(--cr-text-secondary);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-row-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  background-color: var(--cr-bg) !important;
}

@keyframes cr-pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.5;
  }
}

.cr-row-spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cr-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--cr-border);
  border-top-color: var(--cr-primary);
  border-radius: 50%;
  animation: cr-spin 0.8s linear infinite;
}

@keyframes cr-spin {
  to {
    transform: rotate(360deg);
  }
}

.cr-btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.cr-btn-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: cr-spin 0.8s linear infinite;
  left: calc(50% - 9px);
  top: calc(50% - 9px);
}

.cr-btn-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 19px;
  font-size: 1.2rem;
  font-weight: 600;
  background: none;
  border: 1px solid rgb(205, 205, 205);
  border-radius: var(--cr-radius-sm);
  color: var(--cr-text-secondary);
  font-family: var(--cr-font);
  cursor: pointer;
  transition: all var(--cr-transition);
  margin: 0;
  line-height: 1;
}

.cr-btn-header-action svg {
  width: 16px;
  height: 16px;
  transition: stroke var(--cr-transition);
}

.cr-btn-header-action:hover {
  background: var(--cr-primary-light);
  border-color: var(--cr-primary);
  color: var(--cr-primary);
}

.cr-btn-header-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.cr-btn-header-action.cr-btn-loading span,
.cr-btn-header-action.cr-btn-loading svg {
  opacity: 0;
}

.cr-btn-header-action.cr-btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cr-border);
  border-top-color: var(--cr-primary);
  border-radius: 50%;
  animation: cr-spin 0.8s linear infinite;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
}
