* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #f3f4f6;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-light: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar-brand i {
  font-size: 2rem;
}

.navbar-menu {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

/* Panels */
.panel {
  display: block;
}

.panel.hidden {
  display: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #f9fafb;
}

.btn.full {
  width: 100%;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stock-overview {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Item Card */
.item-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.item-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.item-image {
  width: 100%;
  height: 200px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}

.item-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.item-sku {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.item-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--secondary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.item-detail {
  text-align: center;
}

.item-detail-label {
  color: var(--text-light);
  font-size: 0.8rem;
}

.item-detail-value {
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.25rem;
}

.item-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.item-actions button {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.item-actions button:hover {
  background: var(--border);
}

.item-actions button.delete {
  background: #fee2e2;
  color: var(--danger);
}

.item-actions button.delete:hover {
  background: #fecaca;
}

.item-actions button.edit {
  background: #dbeafe;
  color: var(--primary);
}

.item-actions button.edit:hover {
  background: #bfdbfe;
}

.item-actions button.add-cart {
  background: #dcfce7;
  color: var(--success);
}

.item-actions button.add-cart:hover {
  background: #bbf7d0;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Checkbox */
.checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: 500;
}

/* Image Upload */
.image-upload {
  position: relative;
}

.file-input {
  display: none;
}

.preview-area {
  padding: 2rem;
  border: 2px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--secondary);
}

.preview-area:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.preview-area i {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.preview-area p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.preview-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-top: 0.75rem;
  border-radius: 8px;
}

.preview-image.hidden {
  display: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions button {
  flex: 1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-content.modal-lg {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.2s;
}

.close-btn:hover {
  color: var(--text);
}

.item-form {
  padding: 1.5rem;
}

/* Cart */
.cart-wrapper {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.cart-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  background: var(--secondary);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cart-item-sku {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
}

.cart-item-serials {
  margin-top: 0.75rem;
}

.cart-item-serials textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s;
}

.cart-item-serials textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cart-item-serials small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.cart-item-serials input {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.5rem;
}

.cart-item-remove {
  margin-top: 0.5rem;
}

.cart-item-remove button {
  background: #fee2e2;
  color: var(--danger);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove button:hover {
  background: #fecaca;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-summary {
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 8px;
  position: sticky;
  top: 1.5rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.sales-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.sales-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Sales cards grid layout for dashboard and reports */
.sales-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sales-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  user-select: text;
}

.sales-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.sales-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sales-card-date {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.btn-card-view {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-card-view:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.sales-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sales-card-info {
  padding: 0.75rem;
  background: var(--secondary);
  border-radius: 6px;
}

.sales-card-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.sales-card-value {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}

.stock-card {
  background: var(--secondary);
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid var(--primary);
}

.stock-card-left {
  flex: 1;
}

.stock-card-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stock-card-sku {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.stock-card-qty {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stock-card-right {
  text-align: right;
}

.stock-qty-badge {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Reports */
.reports-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.report-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.report-filters input {
  flex: 1;
  min-width: 150px;
}

.report-filters button {
  white-space: nowrap;
}

.report-content {
  margin-top: 2rem;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sales-table thead {
  background: var(--secondary);
}

.sales-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.sales-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.sales-table tbody tr:hover {
  background: var(--secondary);
}

.table-info {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Position */
.position-relative {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: none;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: slideIn 0.3s ease-out;
}

.toast.show {
  display: flex;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Search container */
.search-container {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input-wrapper input {
  padding-left: 2.5rem;
  width: 100%;
}

/* No Serials Badge */
.item-badge.no-serials {
  background-color: var(--border);
  color: var(--text-light);
}

/* out-of-stock */
.item-detail-value.out-of-stock {
  color: var(--danger);
  font-weight: 600;
}

.item-actions .add-cart.disabled,
.item-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Nav link */
.nav-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

nav.navbar a.nav-link {
  color: inherit;
  background: var(--secondary);
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}

nav.navbar a.nav-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Details modal styles */
.details-modal {
  z-index: 2000;
}

.modal-details {
  max-width: 900px;
}

.modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.details-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  user-select: text;
}

.details-modal-table thead {
  background: var(--secondary);
  position: sticky;
  top: 0;
}

.details-modal-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.details-modal-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}

.details-modal-table tbody tr:hover {
  background: var(--secondary);
}

.serials-cell {
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* New expanded sales card layout */
.sales-expanded-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 1280px;
}

.sales-card-wrapper {
  width: 100%;
}

.sales-expanded-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sales-expanded-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Header showing customer name on left and date on right */
.sales-expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #f9fafb;
}

.sales-header-left {
  flex: 1;
}

.sales-customer-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.sales-header-right {
  text-align: right;
}

.sales-date {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Sales details table inside card */
.sales-expanded-details {
  padding: 0;
  overflow-x: auto;
}

.sales-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  user-select: text;
}

.sales-detail-table thead {
  background: #e0e7ff;
  position: sticky;
  top: 0;
}

.sales-detail-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sales-detail-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  word-break: break-word;
}

.sales-detail-table tbody tr:hover {
  background: var(--secondary);
}

.serials-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 200px;
}

@media (max-width: 768px) {
  .sales-expanded-grid {
    grid-template-columns: 1fr;
  }
  
  .sales-expanded-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .sales-header-right {
    text-align: left;
  }
  
  .sales-detail-table {
    font-size: 0.85rem;
  }
  
  .sales-detail-table th,
  .sales-detail-table td {
    padding: 0.5rem;
  }
}
