/* ==========================================================================
   Ikebana UI Components — shared across all pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
button,
.btn,
input[type="submit"],
.action-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

button:hover:not(:disabled),
.btn:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
.action-btn:hover:not(:disabled),
.button:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button:active:not(:disabled),
.btn:active:not(:disabled),
input[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled,
.btn:disabled,
input[type="submit"]:disabled {
  background-color: var(--color-border-strong);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.btn-secondary,
.switch-confirm-btn.secondary,
.details-close-btn {
  background-color: var(--color-secondary-subtle);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover:not(:disabled),
.switch-confirm-btn.secondary:hover:not(:disabled),
.details-close-btn:hover:not(:disabled) {
  background-color: var(--color-border);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-link);
  border-color: var(--color-border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-muted);
}

.btn-danger {
  background-color: var(--color-error);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background-color: #c94452;
}

.btn-sm {
  min-height: 36px;
  padding: 0 var(--space-2);
  font-size: var(--font-size-xs);
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Form controls
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea,
.searchInput,
.form-input,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

select,
.form-select {
  width: auto;
  min-width: var(--dropdown-trigger-min-width);
  max-width: var(--dropdown-trigger-max-width);
  min-height: var(--dropdown-trigger-height);
  height: var(--dropdown-trigger-height);
  padding: 0 calc(var(--dropdown-trigger-padding-x) + 24px) 0 var(--dropdown-trigger-padding-x);
  border-color: var(--dropdown-border);
  border-radius: var(--dropdown-radius-trigger);
  background:
    var(--dropdown-chevron) right 12px center / 14px 14px no-repeat,
    var(--dropdown-surface);
  color: var(--dropdown-text);
  box-shadow: var(--dropdown-trigger-shadow);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition:
    background-color var(--dropdown-transition),
    border-color var(--dropdown-transition),
    box-shadow var(--dropdown-transition);
}

select option {
  min-height: 36px;
  padding: 10px 12px;
  background: var(--dropdown-menu-surface);
  color: var(--dropdown-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  text-align: left;
  text-align-last: left;
  direction: ltr;
}

select option:hover,
select option:focus {
  background: var(--dropdown-hover-bg);
  color: var(--dropdown-text);
}

select option:checked {
  background: var(--dropdown-selected-bg);
  color: var(--dropdown-text);
  font-weight: var(--font-weight-semibold);
}

select option:disabled {
  color: var(--dropdown-text-muted);
  opacity: 0.55;
}

input:hover:not(:disabled):not(:focus),
select:hover:not(:disabled):not(:focus),
textarea:hover:not(:disabled):not(:focus),
.searchInput:hover:not(:disabled):not(:focus) {
  border-color: var(--color-border-strong);
}

select:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus) {
  background:
    var(--dropdown-chevron) right 12px center / 14px 14px no-repeat,
    var(--dropdown-hover-bg);
  border-color: rgba(45, 45, 45, 0.18);
}

input:focus,
select:focus,
textarea:focus,
.searchInput:focus,
.form-input:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

select:focus,
.form-select:focus {
  border-color: var(--dropdown-border);
  box-shadow: var(--dropdown-focus-ring), var(--dropdown-trigger-shadow);
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: var(--color-bg-subtle);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.form-label,
.control-label,
.input-container label,
.structured-input-field label,
.selected-context-field label,
.tpp-top-field label,
.tpp-strip-field label,
.tpp-metric-field label,
.eligibility-card label,
.panel-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  font-weight: var(--font-weight-medium);
}

.dropdown-menu,
.action-menu,
.context-menu,
.typeahead-menu,
[role="listbox"],
[role="menu"] {
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 45, 45, 0.22) transparent;
}

.dropdown-menu::-webkit-scrollbar,
.action-menu::-webkit-scrollbar,
.context-menu::-webkit-scrollbar,
.typeahead-menu::-webkit-scrollbar,
[role="listbox"]::-webkit-scrollbar,
[role="menu"]::-webkit-scrollbar {
  width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb,
.action-menu::-webkit-scrollbar-thumb,
.context-menu::-webkit-scrollbar-thumb,
.typeahead-menu::-webkit-scrollbar-thumb,
[role="listbox"]::-webkit-scrollbar-thumb,
[role="menu"]::-webkit-scrollbar-thumb {
  background: rgba(45, 45, 45, 0.18);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.action-menu,
.context-menu,
.dropdown-panel {
  padding: 8px;
  border: 1px solid var(--dropdown-menu-border);
  border-radius: var(--dropdown-radius-menu);
  background: var(--dropdown-menu-surface);
  box-shadow: var(--dropdown-menu-shadow);
  max-height: 280px;
  overflow-y: auto;
  animation: dropdownFadeSlide var(--dropdown-transition);
}

.dropdown-option,
.action-menu a,
.action-menu button,
.context-menu a,
.context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--dropdown-radius-option);
  background: transparent;
  color: var(--dropdown-text);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dropdown-transition);
}

.dropdown-option:hover,
.dropdown-option:focus-visible,
.action-menu a:hover,
.action-menu button:hover,
.context-menu a:hover,
.context-menu button:hover,
.action-menu a:focus-visible,
.action-menu button:focus-visible,
.context-menu a:focus-visible,
.context-menu button:focus-visible {
  background: var(--dropdown-hover-bg);
  outline: 2px solid rgba(244, 241, 187, 0.75);
  outline-offset: -2px;
}

.dropdown-option.is-selected,
.dropdown-chip {
  background: var(--dropdown-selected-bg);
  color: var(--dropdown-text);
  font-weight: var(--font-weight-semibold);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.dropdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

@keyframes dropdownFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Cards & panels
   -------------------------------------------------------------------------- */
.card,
.section-card,
.home-data-panel,
.filter-card,
.table-card,
.notes-card,
.metric-card,
.control-group,
.tpp-workbench,
.tpp-strip,
.tpp-metrics-card,
.eligibility-card,
.chart-panel,
.page-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.section-card,
.home-data-panel,
.filter-card,
.table-card,
.notes-card,
.page-shell {
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}

.section-card:hover,
.metric-card:hover {
  box-shadow: var(--shadow-md);
}

.section-card-header,
.home-data-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.section-card-title,
.home-data-title,
.page-app-title,
.details-modal-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

.section-card-subtitle,
.home-data-subtitle,
.page-context-title {
  margin: 4px 0 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.section-chip,
.home-header-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px var(--space-1);
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary-muted);
}

/* --------------------------------------------------------------------------
   Badges & status pills
   -------------------------------------------------------------------------- */
.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: 1px solid transparent;
}

.badge-primary,
.status-pill.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-color: var(--color-primary-muted);
}

.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.badge-warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}

.badge-error {
  background: var(--color-error-subtle);
  color: var(--color-error);
  border-color: var(--color-error-border);
}

/* --------------------------------------------------------------------------
   Alerts & status messages
   -------------------------------------------------------------------------- */
.alert,
.message {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: 1px solid transparent;
}

.alert-success,
.message.success {
  background: var(--color-success-subtle);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.alert-error,
.message.error {
  background: var(--color-error-subtle);
  color: var(--color-error);
  border-color: var(--color-error-border);
}

.alert-warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}

.alert-info {
  background: var(--color-info-subtle);
  color: var(--color-info);
  border-color: var(--color-primary-muted);
}

.status-message-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

#loading,
#successMessage,
#successMessage1 {
  display: none;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

#loading {
  color: var(--color-warning);
  background: var(--color-warning-subtle);
  border: 1px solid var(--color-warning-border);
}

#loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

#successMessage,
#successMessage1 {
  color: var(--color-success);
  background: var(--color-success-subtle);
  border: 1px solid var(--color-success-border);
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  flex: 1 1 auto;
}

.fda-page #searchInputContainer {
  flex: 1 1 520px;
  max-width: 720px;
}

.fda-page .toolbar {
  margin-bottom: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.button-container {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.last-refresh {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.last-refresh span {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-container {
  max-height: 600px;
  overflow: auto;
  margin-top: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th,
td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

tbody tr:nth-child(even) td {
  background: #eaf4ff;
}

select:disabled,
.form-select:disabled {
  opacity: 0.58;
  background:
    var(--dropdown-chevron) right 12px center / 14px 14px no-repeat,
    var(--dropdown-surface);
  cursor: not-allowed;
}

tbody tr:hover td {
  background: var(--color-primary-subtle);
}

input[type="radio"] {
  accent-color: var(--palette-teal);
}

.drug-name-link {
  color: var(--color-text-link);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.drug-name-link:hover {
  text-decoration: underline;
}

td:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-primary-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-link);
  transition: all var(--transition-fast);
}

td:last-child a:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.details-grid th {
  position: static;
  width: 200px;
  background: var(--color-bg-subtle);
  color: var(--color-text);
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
}

.details-grid td {
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.pagination button {
  min-height: 40px;
  padding: 0 var(--space-2);
}

.pagination span,
#pageNumber {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal,
.switch-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(15, 29, 50, 0.5);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  overflow-y: auto;
  animation: fadeIn var(--transition-fast) ease;
}

.modal.show,
.switch-confirm-modal.show,
.modal[style*="display: block"],
.modal[style*="display:block"] {
  display: flex;
}

.modal-content,
.switch-confirm-card,
.details-modal-content {
  width: min(480px, 100%);
  max-height: calc(100vh - var(--shell-top-offset) - var(--shell-bottom-offset) - 32px);
  margin: auto;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
  animation: fadeSlideUp var(--transition-base) ease;
}

.details-modal-content {
  width: min(980px, 100%);
  text-align: left;
}

.details-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.modal-actions,
.switch-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.switch-confirm-card h2 {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-xl);
}

.switch-confirm-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.switch-confirm-btn.primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* --------------------------------------------------------------------------
   Tabs (content tabs, not nav)
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-item {
  min-height: 44px;
  padding: 0 var(--space-2);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  box-shadow: none;
  transform: none;
}

.tab-item:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-bg-subtle);
  transform: none;
  box-shadow: none;
}

.tab-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* --------------------------------------------------------------------------
   Empty & loading states
   -------------------------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-3);
  text-align: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}

.empty-state-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.empty-state-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  max-width: 400px;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-subtle) 25%,
    var(--color-border) 50%,
    var(--color-bg-subtle) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--space-1);
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */
.inline-progress {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: var(--color-surface);
}

.inline-progress-track {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  overflow: hidden;
}

.inline-progress-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--palette-teal), var(--palette-cyan));
  transition: width var(--transition-slow);
}

/* --------------------------------------------------------------------------
   Metrics (admin)
   -------------------------------------------------------------------------- */
.metrics-page {
  animation: fadeSlideUp var(--transition-slow) ease;
}

.metrics-cards,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.metric-card {
  padding: var(--space-3);
}

.metric-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.metric-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Responsive component adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .button-container {
    width: 100%;
    justify-content: stretch;
  }

  .button-container button {
    flex: 1 1 auto;
  }

  select,
  .form-select {
    width: 100%;
    max-width: none;
    min-height: 44px;
    height: 44px;
  }

  .table-container {
    max-height: 400px;
  }

  th, td {
    padding: var(--space-1);
    font-size: var(--font-size-xs);
  }

  .metrics-cards,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
