/* =====================================================
   TIBONDS — Advanced Bond Screener
   ===================================================== */

:root {
  --scr-bg: #f3f6fb;
  --scr-fg: #1b1f2a;
  --scr-muted: #6c7a91;
  --scr-accent: #1e6df1;
  --scr-accent-light: rgba(30, 109, 241, 0.08);
  --scr-accent-medium: rgba(30, 109, 241, 0.15);
  --scr-card: #ffffff;
  --scr-border: #e7ebf3;
  --scr-shadow: 0 2px 12px rgba(19, 28, 45, .05);
  --scr-row-alt: #f8faff;
  --scr-row-hover: #f0f5ff;
  --scr-radius: 10px;
  --scr-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --scr-green: #059669;
  --scr-red: #dc2626;
  --scr-amber: #d97706;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--scr-bg);
  color: var(--scr-fg);
  font: 14px/1.45 var(--scr-font);
}
body.has-site-nav {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
button, input, select, textarea { font-family: inherit; }

/* =====================================================
   SCREENER LAYOUT
   ===================================================== */
.screener {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 16px;
  max-width: 100%;
}

/* =====================================================
   TOOLBAR
   ===================================================== */
.screener-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.screener-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.screener-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* Tabs */
.screener-tabs {
  display: flex;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: var(--scr-radius);
  overflow: hidden;
}
.screener-tab {
  padding: 8px 18px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--scr-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.screener-tab:hover { color: var(--scr-fg); background: var(--scr-accent-light); }
.screener-tab.active {
  background: var(--scr-accent);
  color: #fff;
}
.screener-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--scr-radius);
  background: var(--scr-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Search */
.screener-search {
  position: relative;
  width: 260px;
}
.screener-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: var(--scr-radius);
  border: 1px solid var(--scr-border);
  background: var(--scr-card);
  color: var(--scr-fg);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.screener-search input:focus { border-color: var(--scr-accent); }
.screener-search::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: var(--scr-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

/* Action buttons */
.screener-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--scr-radius);
  border: 1px solid var(--scr-border);
  background: var(--scr-card);
  color: var(--scr-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.screener-btn:hover { background: var(--scr-accent-light); color: var(--scr-accent); border-color: rgba(30,109,241,0.3); }
.screener-btn.active { background: var(--scr-accent-light); color: var(--scr-accent); border-color: rgba(30,109,241,0.3); }
.screener-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.screener-btn .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--scr-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* =====================================================
   FILTER PANEL
   ===================================================== */
.screener-filters {
  flex-shrink: 0;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: var(--scr-radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--scr-shadow);
  animation: slideDown 0.15s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.screener-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 12px;
  margin-bottom: 16px;
}
.filter-group { 
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0; 
}
.filter-group--wide { grid-column: 1 / -1; }
.filter-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--scr-muted);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
}
.filter-range {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--scr-border);
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  height: 30px;
}
.filter-range:focus-within { 
  border-color: var(--scr-accent); 
  box-shadow: 0 0 0 2px var(--scr-accent-light);
}
.filter-range input {
  width: 50%;
  min-width: 0;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--scr-fg);
  font-size: 12px;
  outline: none;
  text-align: center;
}
.filter-range input::placeholder {
  color: #94a3b8;
}
.filter-range input[type="date"] {
  padding: 0 4px;
  font-size: 11px;
}
.filter-range input[type="date"]::-webkit-calendar-picker-indicator {
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.6;
}
.filter-sep { 
  width: 1px;
  background: var(--scr-border);
  flex-shrink: 0;
}

.filter-toggle-group {
  display: flex;
  gap: 4px;
  height: 30px;
}
.filter-toggle-group label {
  flex: 1;
  display: flex;
  min-width: 0;
}
.filter-toggle-group input {
  display: none;
}
.filter-toggle-group span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--scr-border);
  border-radius: 7px;
  color: var(--scr-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-toggle-group label:hover span {
  background: var(--scr-row-alt);
}
.filter-toggle-group input:checked + span {
  background: var(--scr-accent-light);
  color: var(--scr-accent);
  border-color: rgba(30,109,241,0.3);
}
.filter-btn-mini {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--scr-border);
  background: var(--scr-row-alt);
  color: var(--scr-fg);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn-mini:hover { background: var(--scr-accent-light); color: var(--scr-accent); }
.filter-btn-mini.ghost { background: transparent; }
.filter-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--scr-border);
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--scr-border);
  background: var(--scr-row-alt);
  color: var(--scr-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { background: var(--scr-accent-light); }
.filter-btn.primary {
  background: var(--scr-accent);
  color: #fff;
  border-color: var(--scr-accent);
}
.filter-btn.primary:hover { opacity: 0.9; }

/* Rating panel (inside filters) */
.rating-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed var(--scr-border);
  border-radius: var(--scr-radius);
  background: var(--scr-row-alt);
}
.rating-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.rating-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.mode-label { font-weight: 600; color: var(--scr-muted); }
.rating-mode-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
}
.rating-actions { display: flex; gap: 6px; }
.rating-matrix {
  border: 1px solid var(--scr-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.rating-table-wrap { max-height: 200px; overflow: auto; }
.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}
.rating-table th,
.rating-table td {
  padding: 4px 6px;
  text-align: center;
  border-bottom: 1px dashed var(--scr-border);
}
.rating-table th {
  position: sticky;
  top: 0;
  background: #f7f9ff;
  z-index: 1;
  font-weight: 700;
}
.rating-table tr:last-child td { border-bottom: 0; }
.rating-table .grade-cell { text-align: left; font-weight: 700; white-space: nowrap; }
.rating-table .row-cell { width: 36px; }
.agency-head { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mini-check {
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--scr-accent); }
.mini-check.indeterminate input { accent-color: #94a3b8; }
.rating-option { display: inline-flex; align-items: center; justify-content: center; }
.rating-option input { width: 14px; height: 14px; accent-color: var(--scr-accent); }

/* =====================================================
   TABLE WRAPPER & TABLE
   ===================================================== */
.screener-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--scr-card);
  border: 1px solid var(--scr-border);
  border-radius: var(--scr-radius);
  box-shadow: var(--scr-shadow);
  position: relative;
}
.screener-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

/* Header */
.screener-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f6f8fd;
  padding: 9px 10px;
  text-align: right;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--scr-muted);
  white-space: nowrap;
  border-bottom: 2px solid var(--scr-border);
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.screener-table thead th.col-left { text-align: left; }
.screener-table thead th.sortable { cursor: pointer; }
.screener-table thead th.sortable:hover { color: var(--scr-accent); }
.screener-table thead th.sorted { color: var(--scr-accent); }

/* Sticky first column */
.screener-table .col-sticky {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #f6f8fd;
}
.screener-table tbody .col-sticky {
  z-index: 2;
  background: #fff;
}
.screener-table tbody tr:nth-child(even) .col-sticky { background: var(--scr-row-alt); }
.screener-table tbody tr:hover .col-sticky { background: var(--scr-row-hover); }

.col-sticky::after {
  content: '';
  position: absolute;
  top: 0;
  right: -6px;
  bottom: 0;
  width: 6px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,0.04), transparent);
}

/* Sort indicator */
.sort-icon {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  opacity: 0.7;
  vertical-align: middle;
}
th.sorted .sort-icon { opacity: 1; }

/* Column sub-label (format) */
.col-sublabel {
  font-weight: 500;
  font-size: 10px;
  color: var(--scr-muted);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

/* Body cells */
.screener-table tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--scr-border);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.screener-table tbody td.col-left { text-align: left; }
.screener-table tbody tr:nth-child(even) td { background: var(--scr-row-alt); }
.screener-table tbody tr:hover td { background: var(--scr-row-hover); }

/* Name column */
.bond-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: max-content;
  max-width: none;
}
.bond-name__title {
  font-weight: 700;
  font-size: 13px;
  color: var(--scr-fg);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.bond-name__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.bond-name__isin {
  color: var(--scr-muted);
  font-size: 11px;
}
.bond-name__isin a {
  color: var(--scr-muted);
  text-decoration: none;
}
.bond-name__isin a:hover {
  color: var(--scr-accent);
  text-decoration: underline;
}
.bond-name__tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.bond-name__tag--mat {
  background: rgba(30, 109, 241, 0.1);
  color: var(--scr-accent);
}
.bond-name__tag--event {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

/* Numeric values */
.cell-val { white-space: nowrap; }
.cell-pos { color: var(--scr-green); }
.cell-neg { color: var(--scr-red); }
.cell-na { color: var(--scr-muted); font-size: 12px; }

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.rating-badge--aaa { background: #d1fae5; color: #065f46; }
.rating-badge--aa { background: #d1fae5; color: #065f46; }
.rating-badge--a { background: #dbeafe; color: #1e40af; }
.rating-badge--bbb { background: #e0e7ff; color: #3730a3; }
.rating-badge--bb { background: #fef3c7; color: #92400e; }
.rating-badge--b { background: #fee2e2; color: #991b1b; }
.rating-badge--low { background: #fecaca; color: #7f1d1d; }
.rating-badge--none { background: transparent; color: var(--scr-muted); font-weight: 500; }

/* Call indicator */
.call-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.call-badge--call { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.call-badge--put { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.call-badge--mat { background: rgba(30, 109, 241, 0.1); color: var(--scr-accent); }
.call-badge--both { background: rgba(245, 158, 11, 0.14); color: #92400e; }
.call-badge--none { color: var(--scr-muted); font-weight: 500; }

/* =====================================================
   FOOTER
   ===================================================== */
.screener-footer {
  flex-shrink: 0;
  padding: 8px 4px;
  font-size: 12px;
  color: var(--scr-muted);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.screener-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}
.screener-empty__icon { font-size: 40px; opacity: 0.4; }
.screener-empty__text { font-size: 15px; color: var(--scr-muted); font-weight: 500; }

/* =====================================================
   SETTINGS MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--scr-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.2s ease-out;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--scr-border);
  flex-shrink: 0;
}
.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--scr-row-alt);
  border-radius: 8px;
  font-size: 20px;
  color: var(--scr-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.modal-close:hover { background: var(--scr-accent-light); color: var(--scr-accent); }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--scr-border);
  flex-shrink: 0;
}
.modal-btn {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--scr-border);
  background: var(--scr-row-alt);
  color: var(--scr-fg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.modal-btn:hover { background: var(--scr-accent-light); }
.modal-btn.primary {
  background: var(--scr-accent);
  color: #fff;
  border-color: var(--scr-accent);
}
.modal-btn.primary:hover { opacity: 0.9; }
.modal-btn.ghost { background: transparent; border-color: transparent; }
.modal-btn.ghost:hover { background: var(--scr-accent-light); }

/* Settings content */
.settings-section { margin-bottom: 16px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--scr-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.settings-hint {
  font-size: 11px;
  color: var(--scr-muted);
  margin: -6px 0 10px;
}

/* Column list in settings */
.column-list { display: flex; flex-direction: column; gap: 2px; }
.column-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--scr-border);
  transition: background 0.12s;
}
.column-item:hover { background: var(--scr-row-alt); }
.column-item--locked { opacity: 0.7; }
.column-item--draggable { cursor: grab; }
.column-item--dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.column-item--drop-before { box-shadow: inset 0 2px 0 var(--scr-accent); }
.column-item--drop-after { box-shadow: inset 0 -2px 0 var(--scr-accent); }

/* Drag handle for reordering */
.column-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 22px;
  border-radius: 6px;
  color: var(--scr-muted);
  cursor: grab;
  font-size: 12px;
  letter-spacing: 1px;
  user-select: none;
  line-height: 1;
  transition: all 0.12s;
}
.column-item--draggable:hover .column-drag {
  background: var(--scr-accent-light);
  color: var(--scr-accent);
}
.column-item--dragging .column-drag { cursor: grabbing; }
.column-drag--locked {
  opacity: 0.35;
  cursor: default;
}

.column-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.column-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--scr-accent);
  flex-shrink: 0;
}
.column-toggle span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Segmented toggle for format options */
.format-toggle {
  display: inline-flex;
  border: 1px solid var(--scr-border);
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--scr-row-alt);
}
.format-toggle__btn {
  padding: 3px 9px;
  border: none;
  background: transparent;
  color: var(--scr-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  line-height: 1.4;
}
.format-toggle__btn:not(:last-child) {
  border-right: 1px solid var(--scr-border);
}
.format-toggle__btn:hover { color: var(--scr-fg); background: rgba(0,0,0,0.03); }
.format-toggle__btn.active {
  background: var(--scr-accent);
  color: #fff;
}
.format-toggle__btn.active:hover { opacity: 0.9; }

/* =====================================================
   LOADING INDICATOR
   ===================================================== */
.screener-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10;
  overflow: hidden;
}
.screener-loading::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--scr-accent);
  border-radius: 2px;
  animation: loadingSlide 1.2s ease-in-out infinite;
}
@keyframes loadingSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
  .screener { padding: 0 10px; }
  .screener-toolbar { gap: 8px; }
  .screener-toolbar__right { width: 100%; }
  .screener-search { flex: 1; min-width: 0; width: auto; }
  .screener-tab { padding: 7px 14px; font-size: 12px; }
}

@media (max-width: 640px) {
  .screener { padding: 0 6px; }
  .screener-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .screener-toolbar__left { width: 100%; }
  .screener-toolbar__right {
    width: 100%;
    margin-left: 0;
  }
  .screener-tabs { width: 100%; }
  .screener-tab { flex: 1; text-align: center; }
  .screener-search { width: 100%; flex: 1; }
  .screener-btn { flex: 0; font-size: 12px; padding: 7px 10px; }

  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
  }

  .screener-table thead th { padding: 7px 8px; font-size: 10.5px; }
  .screener-table tbody td { padding: 6px 8px; font-size: 12px; }
  .bond-name { width: max-content; min-width: 0; max-width: none; }
  .bond-name__title { font-size: 12px; }
}

@media (max-width: 420px) {
  .screener-btn span.btn-label { display: none; }
  .screener-btn { padding: 7px 8px; }
}
