@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary: #827717;
  --secondary: #9E9D24;
  --tertiary: #AFB42B;
  --muted: #CDDC39;
  --bg: #F9FBE7;
  --white: #FFFFFF;
  --off-white: #FAF7F5;
  --text: #3E2723;
  --text-light: #795548;
  --text-muted: #A1887F;
  --border: #D7CCC8;
  --border-light: #E8E0DC;
  --danger: #C62828;
  --danger-light: #FFEBEE;
  --success: #2E7D32;
  --shadow-sm: 0 1px 3px rgba(78, 52, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(78, 52, 46, 0.1);
  --shadow-lg: 0 8px 24px rgba(78, 52, 46, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
}

::selection {
  background: var(--muted);
  color: var(--white);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* === APP SHELL === */
.app-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.app-header {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.5s ease;
}

.app-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

/* === TAB BAR === */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--white);
  padding: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover:not(:disabled) {
  background: var(--bg);
  color: var(--text);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(78, 52, 46, 0.2);
}

.tab-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === FORM SECTIONS === */
.invoice-form {
  animation: fadeInUp 0.4s ease;
}

.form-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 12px;
}

.form-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  transition: all 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
}

/* === LINE ITEMS === */
.line-items-header {
  display: grid;
  grid-template-columns: 1fr 70px 100px 100px 40px;
  gap: 8px;
  padding: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}

.line-item-row {
  display: grid;
  grid-template-columns: 1fr 70px 100px 100px 40px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  animation: fadeInUp 0.3s ease;
}

.line-item-row input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: all 0.2s ease;
}

.line-item-row input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.12);
  background: var(--white);
}

.line-item-row .li-amount {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
  text-align: right;
  padding-right: 4px;
}

.li-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.li-remove:hover:not(:disabled) {
  background: var(--danger);
  color: var(--white);
}

.li-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-add-item {
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px dashed var(--muted);
  background: transparent;
  color: var(--tertiary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-add-item:hover {
  background: var(--bg);
  border-color: var(--secondary);
  color: var(--primary);
}

/* === TOTALS & NOTES === */
.totals-and-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.notes-area textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--off-white);
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.notes-area textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.12);
  background: var(--white);
}

.totals-summary {
  margin-top: 16px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.total-line.discount-line {
  color: var(--success);
}

.total-line.grand-total {
  border-top: 2px solid var(--primary);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

/* === FORM ACTIONS === */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-primary {
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(78, 52, 46, 0.2);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(78, 52, 46, 0.25);
}

.btn-secondary {
  padding: 12px 28px;
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--muted);
}

/* === PREVIEW === */
.preview-container {
  animation: fadeInUp 0.4s ease;
}

.preview-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.invoice-paper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.invoice-header-band {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 32px 32px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.invoice-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.from-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.from-detail {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.5;
}

.pre-line {
  white-space: pre-line;
}

.invoice-meta {
  text-align: right;
}

.meta-item {
  margin-bottom: 8px;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.invoice-client-section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-light);
}

.bill-to-badge {
  display: inline-block;
  background: var(--bg);
  color: var(--tertiary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.client-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.client-detail {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === INVOICE TABLE === */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.invoice-table thead {
  background: var(--bg);
}

.invoice-table th {
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tertiary);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.invoice-table th:first-child {
  padding-left: 32px;
}

.invoice-table th:last-child {
  padding-right: 32px;
  text-align: right;
}

.th-qty, .th-rate, .th-amount {
  text-align: right;
}

.invoice-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.invoice-table td:first-child {
  padding-left: 32px;
}

.invoice-table td:last-child {
  padding-right: 32px;
}

.td-qty, .td-rate, .td-amount {
  text-align: right;
}

.td-amount {
  font-weight: 600;
  color: var(--secondary);
}

.invoice-table tbody tr:last-child td {
  border-bottom: none;
}

/* === INVOICE FOOTER === */
.invoice-footer-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 24px 32px;
  border-top: 1px solid var(--border-light);
}

.invoice-notes-section {
  padding-right: 24px;
}

.notes-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.notes-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  white-space: pre-line;
}

.invoice-totals-section {
  padding-left: 24px;
  border-left: 1px solid var(--border-light);
}

.inv-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.inv-total-row.discount-row {
  color: var(--success);
}

.inv-total-row.inv-grand-total {
  border-top: 2px solid var(--primary);
  margin-top: 10px;
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.invoice-bottom-band {
  background: var(--bg);
  text-align: center;
  padding: 16px 32px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* === HISTORY === */
.history-container {
  animation: fadeInUp 0.4s ease;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}

.history-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.hc-number {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}

.hc-client {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2px;
}

.hc-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.hc-bottom {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hc-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.hc-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hc-btn.hc-view {
  color: var(--secondary);
}

.hc-btn.hc-view:hover {
  background: var(--bg);
  border-color: var(--secondary);
}

.hc-btn.hc-edit {
  color: var(--tertiary);
}

.hc-btn.hc-edit:hover {
  background: var(--bg);
  border-color: var(--tertiary);
}

.hc-btn.hc-delete {
  color: var(--danger);
  border-color: var(--danger-light);
}

.hc-btn.hc-delete:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === SKELETON === */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card {
  height: 100px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--bg) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.5s ease infinite;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .app-shell {
    padding: 16px 12px 80px;
  }

  .app-title {
    font-size: 1.6rem;
  }

  .form-columns {
    grid-template-columns: 1fr;
  }

  .form-row.three-col {
    grid-template-columns: 1fr;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .totals-and-notes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .line-items-header {
    display: none;
  }

  .line-item-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .line-item-row .li-amount {
    text-align: left;
    padding: 4px 0;
  }

  .line-item-row .li-remove {
    justify-self: end;
  }

  .invoice-header-band {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
  }

  .invoice-meta {
    text-align: left;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .invoice-client-section {
    padding: 20px;
  }

  .invoice-table th:first-child,
  .invoice-table td:first-child {
    padding-left: 16px;
  }

  .invoice-table th:last-child,
  .invoice-table td:last-child {
    padding-right: 16px;
  }

  .invoice-footer-area {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .invoice-totals-section {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
  }

  .invoice-notes-section {
    padding-right: 0;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .preview-actions {
    flex-direction: column;
    gap: 8px;
  }

  .preview-actions .btn-primary,
  .preview-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .form-section {
    padding: 16px;
  }

  .invoice-title-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .invoice-table {
    font-size: 0.8rem;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 10px 8px;
  }

  .invoice-table th:first-child,
  .invoice-table td:first-child {
    padding-left: 12px;
  }

  .invoice-table th:last-child,
  .invoice-table td:last-child {
    padding-right: 12px;
  }
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to your Invoice Generator! Start by filling in your business details and client information on the Create tab.", "view": "user", "highlight_selector": ".tab-btn.active", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Add line items with descriptions, quantities, and rates. The amounts calculate automatically.", "view": "user", "highlight_selector": ".line-items-header", "wait_for": "tap_to_continue"},
  {"step": 3, "narration": "Set your tax rate and discount percentage. The totals update in real-time as you type.", "view": "user", "highlight_selector": ".totals-area", "wait_for": "tap_to_continue"},
  {"step": 4, "narration": "Click 'Save & Preview' to see a professional invoice preview and download it as a PDF.", "view": "user", "highlight_selector": ".btn-primary", "wait_for": "user_interaction"},
  {"step": 5, "narration": "All your invoices are saved in the History tab. You can view, edit, or delete any invoice.", "view": "user", "highlight_selector": ".tab-btn:last-child", "wait_for": "tap_to_continue"}
]
-->

.auth-shell {
  max-width: 960px;
}

.auth-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.auth-card {
  max-width: 420px;
  margin: 48px auto 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
}

.auth-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.auth-card h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.auth-btn {
  width: 100%;
}

.auth-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.signout-btn {
  padding: 8px 14px;
}

@media (max-width: 768px) {
  .auth-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .user-chip {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius);
  }
}

.history-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.history-search {
  min-width: 240px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
  margin-top: 8px;
}

.status-draft {
  background: #f1f5f9;
  color: #334155;
}

.status-sent {
  background: #e0f2fe;
  color: #075985;
}

.status-paid {
  background: #dcfce7;
  color: #166534;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.history-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger {
  border: 1px solid #ef4444;
  background: #fff;
  color: #ef4444;
  border-radius: 8px;
  padding: 10px 14px;
}

.revenue-chart-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
  animation: fadeInUp 0.4s ease;
}

.revenue-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.revenue-chart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.revenue-chart-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.revenue-chart-summary {
  text-align: right;
}

.revenue-chart-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.revenue-chart-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.revenue-chart-body {
  position: relative;
  min-height: 240px;
}

.revenue-chart-canvas {
  width: 100% !important;
  height: 240px !important;
}

.empty-chart-state {
  min-height: 240px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

.empty-chart-state strong {
  color: var(--primary);
  margin-bottom: 6px;
}

.chart-error-text {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--danger);
}

@media (max-width: 768px) {
  .revenue-chart-header {
    flex-direction: column;
  }

  .revenue-chart-summary {
    text-align: left;
  }
}
