.date-navigator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.date-nav-btn {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.date-nav-btn:hover {
  background: var(--color-bg-hover);
}

.current-date {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  min-width: 110px;
  text-align: center;
}
/* Common table styles for the trader application */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

.trader-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.trader-table thead {
  background-color: var(--color-bg-secondary);
}

.trader-table thead th {
  padding: var(--space-md);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.trader-table tbody tr:hover {
  background-color: var(--color-bg-hover);
}

.trader-table tbody tr:not(:last-child) {
  border-bottom: 1px solid var(--color-border-light);
}

.trader-table tbody td {
  padding: var(--space-md);
  vertical-align: middle;
}

.trader-table tfoot tr {
  border-top: 2px solid var(--color-border);
}

.trader-table tfoot td {
  padding: var(--space-md);
  font-weight: var(--font-weight-semibold);
}

/* Group header styles */
.trader-table .group-header {
  background-color: var(--color-bg-tertiary);
  font-weight: var(--font-weight-semibold);
}

.trader-table .group-header td {
  padding: var(--space-sm) var(--space-md);
}

/* Empty state styles */
.trader-table .empty-row td {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-secondary);
}

/* Sell history header layout */
.sell-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.sell-history-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.date-filter-form {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.date-filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.date-filter-input {
  padding: var(--space-sm);
  min-width: 180px;
}

.date-filter-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Mobile Email-List Style */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .card-subtitle {
    display: none !important;
  }

  .date-navigator {
    width: 100%;
    justify-content: center;
    gap: var(--space-md);
  }
  .current-date {
    font-size: var(--font-size-base);
    min-width: 90px;
  }

  .sell-history-header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .sell-history-title {
    width: 100%;
  }

  .date-filter-form {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }
  
  .date-filter-group {
    flex: 1 1 auto;
  }
  
  .date-filter-input {
    width: 100%;
  }
  
  .date-filter-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  
  .table-wrapper {
    margin: 0 -var(--space-md);
    overflow: visible;
  }
  
  .trader-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    table-layout: fixed;
  }
  
  .trader-table thead {
    display: none;
  }
  
  .trader-table tbody {
    width: 100%;
    display: block;
  }
  
  .trader-table tbody tr {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    margin: 0;
    background: var(--color-bg-primary);
    border: none;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 0;
    min-height: 64px;
    width: 100%;
    transition: background-color 0.15s ease;
  }
  
  .trader-table tbody tr:hover {
    background: var(--color-bg-hover);
  }
  
  .trader-table tbody tr:first-child {
    border-top: 1px solid var(--color-border-light);
  }
  
  .trader-table tbody td {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
  }
  
  /* Time - Small text on top left */
  .trader-table tbody td[data-label="Time"] {
    order: 1;
    flex: 0 0 auto;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1em;
    padding-right: 10px;
    min-width: 62px;
  }
  
  /* Symbol - Bold, larger text (for index view) */
  .trader-table tbody td[data-label="Symbol"] {
    order: 2;
    flex: 1;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-right: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .trader-table tbody td[data-label="Symbol"] a {
    color: inherit;
    text-decoration: none;
  }
  
  /* Return % - Medium text, right side */
  .trader-table tbody td[data-label="Return %"] {
    order: 3;
    flex: 0 0 auto;
    text-align: right;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-right: var(--space-sm);
    min-width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }
  
  /* P&L - Bold, larger text, rightmost */
  .trader-table tbody td[data-label="P&L"] {
    order: 4;
    flex: 0 0 auto;
    text-align: right;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
  }
  
  /* For show view (without Symbol), make Time take more space */
  .trader-table.show-view td[data-label="Time"] {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Remove all data-label pseudo content */
  .trader-table tbody td[data-label]:before {
    display: none;
  }
  
  /* Footer/tfoot styling for mobile */
  .trader-table tfoot tr {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border-top: 2px solid var(--color-border);
    width: 100%;
  }
  
  .trader-table tfoot td {
    display: block;
    padding: 0;
    border: none;
    font-weight: var(--font-weight-semibold);
  }
  
  .trader-table tfoot td:first-child {
    flex: 1;
    text-align: right;
    margin-right: var(--space-md);
  }
  
  .trader-table tfoot td:last-child {
    flex: 0 0 auto;
    text-align: right;
    font-size: var(--font-size-base);
    min-width: 80px;
  }
}