  :root {
    --navy: #1c2b45;
    --teal: #2a9fa8;
    --teal-dark: #1f8189;
    --border: #e2e6ea;
    --paket: #a05a2c;
    --full: #1a56db;
    --close: #dc2626;
    --open: #16a34a;
    --muted: #6b7280;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    padding: 32px 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: var(--navy);
  }

  .wrap {
    max-width: 1200px;
    margin: 0 auto;
  }

  .letterhead {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 18px 22px 30px;
    margin-bottom: 24px;
    min-height: 150px;
    background: #0f400f;
    border-bottom: 4px solid #fec809;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }

  .letterhead-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .letterhead-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .letterhead-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .letterhead-brand-text .line1 {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #ffffff;
  }
  .letterhead-brand-text .line2 {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 1px 0;
  }
  .letterhead-brand-text .line3 {
    font-size: 9.5px;
    color: #f3f3f3;
  }
  .letterhead-brand-text .line4 {
    font-size: 9.5px;
    color: #f3f3f3;
  }

  .letterhead-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .letterhead-hashtags {
    display: flex;
    gap: 6px;
  }

  .tag-pill {
    background: #f8f812;
    color: #0f400f;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .letterhead-years {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .years-badge {
    background: #f8f812;
    color: #0f400f;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
  }

  .years-text {
    font-size: 9.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    max-width: 82px;
    text-align: right;
  }

  .letterhead-title {
    text-align: center;
    margin-top: 22px;
  }

  .letterhead-title h1 {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .page-header-sub {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
  }

  @media (max-width: 500px) {
    .letterhead-top { justify-content: center; text-align: center; }
    .letterhead-brand { flex-direction: column; text-align: center; }
    .letterhead-tags { align-items: center; }
    .years-text { text-align: center; }
  }

  .page-header-sub {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13.5px;
    letter-spacing: 0.2px;
  }

  .updated {
    text-align: center;
    font-style: italic;
    color: #333;
    margin-bottom: 24px;
    font-size: 14px;
  }

  .filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #f7f8fa;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  .filter-mode {
    display: flex;
    gap: 16px;
    width: 100%;
    justify-content: center;
    margin-bottom: 4px;
  }

  .radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .radio-label input[type="radio"] {
    accent-color: var(--teal);
    width: 15px;
    height: 15px;
    cursor: pointer;
  }

  .filter-bar label {
    font-size: 14px;
    font-weight: 600;
  }

  .filter-bar input[type="month"],
  .filter-bar select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
  }

  .filter-bar input[type="month"]:disabled,
  .filter-bar select:disabled {
    background: #eef0f2;
    color: #9aa1a9;
    cursor: not-allowed;
  }

  .filter-bar button {
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
  }

  .filter-bar button:hover { background: var(--teal-dark); }

  .filter-bar .reset {
    background: var(--navy);
  }
  .filter-bar .reset:hover { background: #0f1a2b; }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  thead th {
    background: #f7f8fa;
    border: 1px solid var(--border);
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
  }

  tbody td {
    border: 1px solid var(--border);
    padding: 12px 10px;
    text-align: center;
  }

  tbody tr:hover { background: #fafbfc; }

  td.paket { color: var(--paket); font-weight: 600; }
  td.keterangan { text-align: center; }

  .status {
    font-weight: 700;
  }
  .status.full { color: var(--full); }
  .status.close { color: var(--close); }
  .status.open { color: var(--open); }

  .empty, .loading {
    text-align: center;
    padding: 30px;
    color: var(--muted);
  }

  .table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  @media (max-width: 700px) {
    .table-scroll { overflow-x: visible; }

    table { min-width: 0; width: 100%; border: none; }
    thead { display: none; }
    tbody { display: flex; flex-direction: column; gap: 14px; }

    tr {
      display: block;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
      background: #fff;
    }

    td {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      border: none;
      border-bottom: 1px solid var(--border);
      padding: 10px 14px;
      text-align: right;
      font-size: 13.5px;
    }
    td:last-child { border-bottom: none; }

    td::before {
      content: attr(data-label);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      text-align: left;
      flex-shrink: 0;
    }

    /* No + Paket Umrah form the card header */
    td:nth-child(1), td:nth-child(2) {
      background: #f7f8fa;
    }
    td:nth-child(1) { color: var(--muted); font-size: 12px; }
    td:nth-child(2) {
      font-weight: 700;
      font-size: 15px;
      color: var(--paket);
    }

    td:nth-child(5) .status {
      display: inline-block;
      padding: 3px 12px;
      border-radius: 20px;
      font-size: 12px;
    }
    td:nth-child(5) .status.full { background: #dbeafe; }
    td:nth-child(5) .status.close { background: #fee2e2; }
    td:nth-child(5) .status.open { background: #dcfce7; }

    td:nth-child(6) {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
      gap: 4px;
    }
    td:nth-child(6)::before { text-align: left; }
    td.keterangan { text-align: left; color: #444; }

    .empty, .loading { padding: 24px; }
  }
