/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #6055cd;
  --primary-light: #eef1ff;
  --secondary: #10B981;
  --success: #2ecc71;
  --info: #3498db;
  
  /* Surface & Background */
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-color: #e9ecef;
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #6c757d;
  
  /* Legacy Variables (for compatibility) */
  --color-primary: #6055cd;
  --color-primary-contrast: #fff;
  --color-success: #179200;
  --text-base-color: #000d50;
  
  /* Transitions & Effects */
  --transition: all 0.3s ease;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   Layout Components
   ============================================ */
/* DEPRECATED CSS: .filter-section-ipo-dashboard { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   justify-content: space-between; */
/* DEPRECATED CSS:   align-items: center; */
/* DEPRECATED CSS:   flex-wrap: wrap; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .pagination-section-ipo-dashboard { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   justify-content: center; */
/* DEPRECATED CSS:   align-items: center; */
/* DEPRECATED CSS:   gap: 1rem; */
/* DEPRECATED CSS:   padding-top: 1rem; */
/* DEPRECATED CSS:   padding-bottom: 1rem; */
/* DEPRECATED CSS: } */

.sub-data-col {
  max-width: 96px;
}

.text-decoration-none:hover {
  text-decoration: none !important;
}

/* ============================================
   Buttons & Badges
   ============================================ */
/* DEPRECATED CSS: .total-count-badge { */
/* DEPRECATED CSS:   background: var(--color-primary, #6055cd); */
/* DEPRECATED CSS:   color: var(--color-primary-contrast, #fff); */
/* DEPRECATED CSS:   font-weight: 500; */
/* DEPRECATED CSS:   padding: 0.375rem 0.75rem; */
/* DEPRECATED CSS:   border-radius: 6px; */
/* DEPRECATED CSS:   font-size: 0.875rem; */
/* DEPRECATED CSS: } */

.pagination-btn {
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  background: #ffffff;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  min-width: 60px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
  background: var(--color-primary, #6055cd);
  color: #ffffff;
  border-color: var(--color-primary, #6055cd);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 85, 205, 0.15);
}

.pagination-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(96, 85, 205, 0.2);
}

.BTN-DISABLE {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

/* ============================================
   Filter Section
   ============================================ */
.filter-section h5 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.filter-btn {
  background: #ffffff;
  border: 2px solid #ceceff;
  color: #6055cd;
  padding: 0.75rem 1.5rem;
  padding-left: 10px !important;
  padding-right: 10px !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  min-height: 33px;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 85, 205, 0.1), transparent);
  transition: left 0.5s ease;
}

.filter-btn:hover {
  background: #ceceff;
  border-color: #6055cd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 85, 205, 0.2);
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn.active {
  background: #6055cd;
  color: #ffffff;
  border-color: #6055cd;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(96, 85, 205, 0.3);
}

.filter-btn.active:hover {
  background: #6055cd;
  color: #ffffff;
  transform: translateY(-2px);
}

.filter-section .form-check-input {
  display: none;
}

.filter-section .form-check {
  margin: 0;
  padding-left: 0px !important;
}

.filter-section .form-check-label {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.form-check-input {
  display: none;
}

/* ============================================
   Compact Dashboard Filters
   ============================================ */
.dashboard-filters-wrapper {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.dashboard-filters-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(96, 85, 205, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  z-index: 0;
}

.dashboard-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-title-compact {
  font-size: 1.125rem;
  font-weight: 700;
  color: #343a40;
  margin: 0;
  flex: 1;
  min-width: fit-content;
}

.year-nav-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.year-nav-btn-compact {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #eee6ff 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(96, 85, 205, 0.15);
}

.year-nav-btn-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 85, 205, 0.25);
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
}

.year-nav-btn-disabled-compact {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8f9fa !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
}

.year-nav-btn-disabled-compact:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f8f9fa !important;
  color: var(--text-muted) !important;
}

.year-display-compact {
  min-width: 70px;
  padding: 0.5rem 0.875rem;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(96, 85, 205, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.year-display-compact span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.filter-section-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.filter-buttons-compact {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.filter-buttons-compact input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  user-select: none;
  white-space: nowrap;
}

.filter-btn-compact:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(96, 85, 205, 0.15);
}

.filter-buttons-compact input[type="radio"]:checked + .filter-btn-compact {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(96, 85, 205, 0.3);
  font-weight: 600;
}

.filter-buttons-compact input[type="radio"]:checked + .filter-btn-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 85, 205, 0.4);
}

.count-badge-compact {
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, #eee6ff 100%);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(96, 85, 205, 0.1);
}

.count-badge-compact i {
  color: var(--primary);
  font-size: 0.875rem;
}

.count-badge-compact span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   Table Styles
   ============================================ */
.table-container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: fadeIn 0.6s ease-out 0.2s both;
  max-width: 100vw;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.table-wrapper-ipo-dashboard {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100vw !important;
  scrollbar-width: thin;
  scrollbar-color: #6055cd transparent;
}

.table-wrapper-ipo-dashboard::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

.table-wrapper-ipo-dashboard::-webkit-scrollbar-thumb {
  background: #6055cd;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.table-responsive {
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  overflow-x: scroll;
  background: var(--color-primary-contrast, #fff);
  max-width: 100vw;
}

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

thead {
  width: 100%;
  background: #ceceff;
  border-bottom: 2px solid var(--border);
}

thead th {
  height: 48px;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  line-height: 1.2;
  background: #ceceff;
  vertical-align: middle;
  border-bottom: 2px solid #e9ecef;
}

.table thead {
  background: #ceceff;
  border-bottom: 2px solid #e5e7eb;
}

.table thead th {
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  color: var(--text-base-color, #000d50);
  font-weight: 600;
  text-transform: uppercase;
  background: #ceceff;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  max-height: 45px;
  background-color: #FFFFFF;
}

tbody tr:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
  transform: translateX(2px);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 0.15rem 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  max-height: 45px;
}

.table tbody td {
  border: none;
  padding: 1rem 1.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #f3f4f6;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: #FFFFFF;
}

#ipoTable thead {
  background: #ceceff;
}

#ipoTable thead th {
  background: #ceceff;
}

#ipoTable tbody tr {
  background-color: #FFFFFF;
}

#ipoTable tbody tr.ipo-row {
  background-color: #FFFFFF;
}

.ipo-row {
  transition: background-color 0.15s ease-in-out;
  background-color: #FFFFFF;
}

.ipo-row:hover {
  background-color: #f8fafc !important;
}

.table-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================
   Table Sorting
   ============================================ */
.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
}

.sortable:hover {
  background-color: #f8f9fa !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: inherit;
  gap: 6px;
  width: 100%;
}

.sortable.text-start .header-content {
  justify-content: flex-start;
}

.sortable.text-center .header-content {
  justify-content: center;
}

.sortable.text-end .header-content {
  justify-content: flex-end;
}

.sort-icon {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sortable:hover .sort-icon {
  opacity: 0.8;
}

.sortable.active .sort-icon {
  opacity: 1;
  color: #007bff;
}

/* ============================================
   Company Info
   ============================================ */
.company-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: #f9fafb;
  padding: 6px;
  border: 1px solid #e5e7eb;
}

.company-name {
  font-weight: 500;
  color: var(--text-base-color, #000d50);
  font-size: 0.875rem;
  margin-bottom: 0.125rem;
}

.company-badges {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

/* DEPRECATED CSS: .company-cell { */
/* DEPRECATED CSS:   gap: 0.75rem; */
/* DEPRECATED CSS: } */

.company-info h3 {
  font-size: 0.85rem;
}

.company-info p {
  font-size: 0.7rem;
}

/* ============================================
   Badges
   ============================================ */
.badge {
  font-size: 0.625rem;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.badge.bg-success {
  background-color: var(--color-success, #179200) !important;
}

.badge.bg-info {
  background-color: var(--color-primary, #6055cd) !important;
}

.badge.bg-secondary {
  background-color: #6b7280 !important;
}

.badge.bg-light {
  background-color: #f3f4f6 !important;
  color: var(--text-base-color, #000d50) !important;
  border: 1px solid #e5e7eb;
}

/* ============================================
   Data Cells
   ============================================ */
.date-cell {
  font-weight: 500;
  color: var(--text-base-color, #000d50);
  font-size: 0.875rem;
}

.price-cell {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

.price-positive {
  color: var(--secondary);
}

/* ============================================
   Lot Size
   ============================================ */
/* DEPRECATED CSS: .lot-size-container { */
/* DEPRECATED CSS:   display: flex; */
/* DEPRECATED CSS:   flex-direction: column; */
/* DEPRECATED CSS:   align-items: center; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .lot-size-value { */
/* DEPRECATED CSS:   font-weight: 600; */
/* DEPRECATED CSS:   color: var(--text-base-color, #000d50); */
/* DEPRECATED CSS:   font-size: 0.875rem; */
/* DEPRECATED CSS:   background: #f8fafc; */
/* DEPRECATED CSS:   padding: 0.25rem 0.5rem; */
/* DEPRECATED CSS:   border-radius: 4px; */
/* DEPRECATED CSS:   border: 1px solid #e2e8f0; */
/* DEPRECATED CSS:   min-width: 2rem; */
/* DEPRECATED CSS:   text-align: center; */
/* DEPRECATED CSS: } */

/* DEPRECATED CSS: .lot-size-label { */
/* DEPRECATED CSS:   color: #6b7280; */
/* DEPRECATED CSS:   font-size: 0.625rem; */
/* DEPRECATED CSS:   font-weight: 400; */
/* DEPRECATED CSS:   text-transform: uppercase; */
/* DEPRECATED CSS:   letter-spacing: 0.025em; */
/* DEPRECATED CSS: } */

/* ============================================
   Empty State
   ============================================ */
@keyframes emptyFloat {
  0% {
    transform: translateY(4px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(4px);
  }
}

@keyframes emptyFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-state {
  background: radial-gradient(circle at top, rgba(96, 85, 205, 0.05), transparent 55%),
              var(--color-primary-contrast, #fff);
  border-radius: 16px;
  padding: 2.75rem 2rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  max-width: 520px;
  margin-inline: auto;
  animation: emptyFadeInUp 0.5s ease-out both;
}

.empty-state img {
  opacity: 0.9;
  filter: grayscale(0.1) drop-shadow(0 10px 30px rgba(15, 23, 42, 0.12));
  transform-origin: center;
  animation: emptyFloat 6s ease-in-out infinite;
}

.empty-state h2 {
  color: var(--text-base-color, #000d50);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1.3rem;
}

.empty-state p {
  color: #6b7280;
  font-size: 0.9rem;
  max-width: 420px;
  margin-inline: auto;
}
/* ============================================
   Mobile IPO Cards
   ============================================ */
.mobile-ipo-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.mobile-ipo-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.mobile-ipo-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-color: rgba(96, 85, 205, 0.03);
  border-radius: 50%;
  transform: translate(30%, -30%);
  z-index: 0;
}

.mobile-ipo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mobile-ipo-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.mobile-ipo-card-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background-color: var(--primary-light);
  border-radius: 10px;
  padding: 0.25rem;
  flex-shrink: 0;
}

.mobile-ipo-card-info {
  flex-grow: 1;
  min-width: 0;
}

.mobile-ipo-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.mobile-ipo-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.mobile-ipo-card-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.mobile-ipo-card-issue-size {
  text-align: right;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.mobile-ipo-card-issue-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.mobile-ipo-card-issue-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.mobile-ipo-card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.mobile-ipo-card-detail-item {
  text-align: center;
}

.mobile-ipo-card-detail-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.mobile-ipo-card-detail-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #343a40;
  line-height: 1.3;
}

/* DEPRECATED CSS: .mobile-ipo-card-details-2col { */
/* DEPRECATED CSS:   grid-template-columns: repeat(2, 1fr); */
/* DEPRECATED CSS: } */

.mobile-ipo-card-details-4col {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 767.98px) {
  /* Pagination */
  .pagination-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 50px;
  }

  .filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    min-width: 50px;
  }

  /* Table */
  td {
    padding: 0rem 0.5rem;
    font-size: 0.85rem;
  }

  th {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  thead th {
    height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    background: #ceceff;
  }

  .table thead th,
  .table tbody td {
    padding: 0.75rem 1rem;
  }

  .table-wrapper-ipo-dashboard thead th {
    font-size: 0.6875rem;
    padding: 0.5rem 0.75rem;
    background: #ceceff;
  }

  .table-wrapper-ipo-dashboard tbody td {
    padding: 0.5rem 0.75rem;
  }

  /* Company Info */
/* DEPRECATED CSS:   .company-cell { */
/* DEPRECATED CSS:     gap: 0.75rem; */
/* DEPRECATED CSS:   } */

  .company-info {
    gap: 0.5rem;
  }

  .company-logo {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .company-name {
    font-size: 0.8125rem;
  }

  .company-info h3 {
    font-size: 0.85rem;
  }

  .company-info p {
    font-size: 0.7rem;
  }

  /* Filter Section */
  .filter-section {
    padding: 0.75rem 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Sorting */
  .header-content {
    gap: 4px;
  }

  .sort-icon {
    font-size: 0.7rem;
  }

  /* Sticky Pagination */
  .pagination-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin: 0 !important;
    border-top: 1px solid var(--border-color);
  }

  .mobile-ipo-card-list {
    padding-bottom: 80px;
  }
}
@media (max-width: 696px) {
  .dashboard-header-compact {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.625rem;
    text-align: center;
    font-size: 1rem;
    min-width: fit-content;
    align-items: center;
    justify-content: center;
  }

}

@media (max-width: 576px) {
  .pagination-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 45px;
  }

  .filter-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 45px;
  }

  .company-logo {
    width: 28px;
    height: 28px;
  }

  .company-name {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.5625rem;
    padding: 0.1875em 0.375em;
  }

  /* Compact Dashboard Filters */
  .dashboard-filters-wrapper {
    padding: 0.75rem;
  }

  .year-nav-compact {
    justify-content: center;
  }

  .year-nav-btn-compact {
    width: 32px;
    height: 32px;
    font-size: 0.6875rem;
  }

  .year-display-compact {
    min-width: 60px;
    padding: 0.375rem 0.75rem;
  }

  .year-display-compact span {
    font-size: 0.9375rem;
  }

  .filter-section-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-buttons-compact {
    justify-content: center;
    width: 100%;
  }

  .filter-btn-compact {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .count-badge-compact {
    justify-content: center;
    width: 100%;
  }

  /* Mobile Cards */
  .mobile-ipo-card {
    padding: 0.875rem;
  }

  .mobile-ipo-card-logo {
    width: 40px;
    height: 40px;
  }

  .mobile-ipo-card-name {
    font-size: 0.875rem;
  }

  .mobile-ipo-card-details {
    gap: 0.5rem;
  }
  .empty-state {
    padding: 2.25rem 1.5rem;
    border-radius: 12px;
  }

  .empty-state h2 {
    font-size: 1.1rem;
  }

  .empty-state p {
    font-size: 0.85rem;
  }
}

@media (max-width: 365px) {

  .filter-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
