  /* Color palette — tweak as needed */
  :root {
    --tbl-bg: #ffffff;
    --tbl-text: #1f2937;      /* slate-800 */
    --tbl-border: #e5e7eb;    /* gray-200 */
    --tbl-head-bg: #0ea5e9;   /* sky-500 */
    --tbl-head-text: #ffffff;
    --tbl-row-alt: #f8fafc;   /* slate-50 */
    --tbl-row-hover: #eef6ff; /* light blue tint */
    --tbl-shadow: 0 4px 18px rgba(2, 6, 23, 0.06);
  }

  .table-wrap {
    width: 100%;
    overflow-x: auto;   /* keeps it usable on small screens */
    padding: 0.5rem 0;
  }

  .styled-table {
    width: 80%;               /* requested width */
    margin: 0 auto;           /* centered */
    border-collapse: separate;
    border-spacing: 0;
    background: var(--tbl-bg);
    color: var(--tbl-text);
    border: 1px solid var(--tbl-border);
    border-radius: 12px;
    box-shadow: var(--tbl-shadow);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
  }

  .styled-table th,
  .styled-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--tbl-border);
  }

  .styled-table thead th {
    background: var(--tbl-head-bg);
    color: var(--tbl-head-text);
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.2px;
  }

  /* If using a header row inside tbody (like your 'Journals' row) */
  .styled-table tr.section-heading th {
    background: var(--tbl-head-bg);
    color: var(--tbl-head-text);
    text-align: left;
    font-weight: 700;
    border-top: 1px solid var(--tbl-border);
  }

  .styled-table tbody tr:nth-child(even) {
    background: var(--tbl-row-alt);
  }

  .styled-table tbody tr:hover {
    background: var(--tbl-row-hover);
    transition: background 0.2s ease-in-out;
  }

  .styled-table .text-right {
    text-align: right;
    font-variant-numeric: tabular-nums; /* better alignment for numbers */
  }

  /* Small screens: let the table breathe a bit */
  @media (max-width: 640px) {
    .styled-table {
      width: 96%;
      font-size: 15px;
    }
    .styled-table th,
    .styled-table td {
      padding: 10px 12px;
    }
  }