  /* Override .main padding from sidebar.css — inner .content handles scroll/padding */
  .main { padding: 0; overflow-y: hidden; gap: 0; }

  /* ── CONTENT ── */
  .content { flex: 1; overflow-y: auto; padding: 18px 20px; }

  /* ── TOP 3 COLUMNS ── */
  .top-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 16px; }

  /* ── CARD ── */
  .card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
  .card-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .card-title { font-size: 13.5px; font-weight: 600; }
  .card-subtitle { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
  .card-body { padding: 14px 16px; }

  /* ── FORM ── */
  .form-group { margin-bottom: 12px; }
  .form-label { font-size: 11.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
  .form-select, .form-input {
    width: 100%; padding: 7px 10px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 12.5px; background: var(--bg); color: var(--text);
    outline: none; font-family: 'Inter', sans-serif; cursor: pointer;
    transition: border-color 0.15s;
  }
  .form-select:focus, .form-input:focus { border-color: var(--accent); }
  .format-toggle { display: flex; gap: 0; }
  .format-btn {
    flex: 1; padding: 7px 10px; border: 1px solid var(--border);
    background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 0.15s; text-align: center;
  }
  .format-btn:first-child { border-radius: 6px 0 0 6px; }
  .format-btn:last-child { border-radius: 0 6px 6px 0; }
  .format-btn:not(:first-child) { border-left: none; }
  .format-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); z-index: 1; }
  .form-status {
    padding: 9px 12px; border-radius: 7px; background: #F0FDF4; border: 1px solid #BBF7D0;
    font-size: 11.5px; color: #065F46; display: flex; align-items: center; gap: 6px; margin-top: 10px;
  }

  /* ── SCHEDULED LIST ── */
  .sched-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; }
  .sched-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
  }
  .sched-item:last-child { border-bottom: none; }
  .sched-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .sched-info { flex: 1; }
  .sched-name { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
  .sched-detail { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
  .sched-next { font-size: 11px; color: var(--accent); font-weight: 500; }
  .sched-actions { display: flex; gap: 4px; flex-shrink: 0; }
  .icon-btn {
    width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 5px;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer; transition: background 0.15s;
  }
  .icon-btn:hover { background: var(--border); }

  /* ── STATS CARD ── */
  .stats-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .mini-stat {
    padding: 10px 12px; background: var(--card2); border: 1px solid var(--border);
    border-radius: 8px;
  }
  .mini-stat-val { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
  .mini-stat-val.red { color: var(--red); }
  .mini-stat-label { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
  .mini-stat-sub { font-size: 10px; color: var(--accent); cursor: pointer; }
  .storage-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: var(--card2); border: 1px solid var(--border); border-radius: 7px; }
  .storage-label { font-size: 11.5px; color: var(--muted); }
  .storage-val { font-size: 13px; font-weight: 700; margin-left: auto; }
  #chartDonut { width: 100%; height: 160px; }

  /* ── TABLE ── */
  .table-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
  .table-header {
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .table-search {
    padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 12px; background: var(--bg); color: var(--text); outline: none;
    font-family: 'Inter', sans-serif; width: 220px;
  }
  .table-search:focus { border-color: var(--accent); }
  .data-table { width: 100%; border-collapse: collapse; }
  .data-table th {
    text-align: left; padding: 8px 12px; font-weight: 600; font-size: 11px;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border); background: var(--card2);
    white-space: nowrap;
  }
  .data-table th:first-child { padding-left: 16px; }
  .data-table td { padding: 9px 12px; border-bottom: 1px solid #F8FAFC; vertical-align: middle; font-size: 12.5px; }
  .data-table td:first-child { padding-left: 16px; color: var(--muted); font-size: 11.5px; }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table tr:hover td { background: #FAFBFD; }
  .type-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 500; white-space: nowrap;
  }
  .type-badge.plts { background: #FEF9C3; color: #854D0E; }
  .type-badge.pln  { background: #DBEAFE; color: #1D4ED8; }
  .type-badge.esg  { background: #D1FAE5; color: #065F46; }
  .type-badge.penghematan { background: #EDE9FE; color: #5B21B6; }
  .type-badge.maintenance { background: #FFEDD5; color: #9A3412; }
  .scope-text { font-size: 12px; color: var(--text); }
  .scope-daop { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
  .fmt-badge {
    padding: 2px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
  }
  .fmt-badge.pdf  { background: #FEE2E2; color: #DC2626; }
  .fmt-badge.xlsx { background: #D1FAE5; color: #047857; }
  .fmt-badge.csv  { background: #E0F2FE; color: #0369A1; }
  .size-text { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); }
  .status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 500;
  }
  .status-badge.available   { background: #D1FAE5; color: #047857; }
  .status-badge.processing  { background: #DBEAFE; color: #1D4ED8; }
  .status-badge.failed      { background: #FEE2E2; color: #DC2626; }
  .created-text { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
  .action-cell { display: flex; gap: 4px; flex-wrap: nowrap; }
  .act-btn {
    padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg); color: var(--text);
    cursor: pointer; transition: background 0.15s; white-space: nowrap;
  }
  .act-btn:hover { background: var(--border); }
  .act-btn.dl  { border-color: var(--accent); color: var(--accent); }
  .act-btn.dl:hover  { background: #EFF6FF; }
  .act-btn.prev { border-color: var(--muted); color: var(--muted); }
  .act-btn.retry { border-color: var(--orange); color: var(--orange); }
  .act-btn.retry:hover { background: #FFEDD5; }
  .act-btn.cancel { border-color: var(--red); color: var(--red); }
  .act-btn.cancel:hover { background: #FEE2E2; }
  .spin { display: inline-block; animation: spin 1s linear infinite; }
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* ── PAGINATION ── */
  .table-footer {
    padding: 12px 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  }
  .pagination { display: flex; gap: 4px; }
  .page-btn {
    width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg); color: var(--muted); font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
  }
  .page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .page-btn:hover:not(.active) { background: var(--border); }
  .page-info { font-size: 12px; color: var(--muted); }

  /* ── PREVIEW CARD ── */
  .preview-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
  .preview-header {
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #EFF6FF, #F8FAFF);
    border-radius: 10px 10px 0 0;
    display: flex; align-items: center; justify-content: space-between;
  }
  .preview-label { font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .preview-title { font-size: 12.5px; font-weight: 600; color: var(--text); margin-top: 2px; }
  .toc-list { padding: 12px 14px; }
  .toc-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 7px; margin-bottom: 3px;
    font-size: 12px; color: var(--text); cursor: pointer; transition: background 0.12s;
  }
  .toc-item:hover { background: var(--bg); }
  .toc-num {
    width: 20px; height: 20px; border-radius: 5px; background: var(--bg);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: var(--muted); flex-shrink: 0;
  }
  .toc-icon { font-size: 14px; flex-shrink: 0; }
  .toc-text { flex: 1; font-size: 12px; }
  .toc-sub { font-size: 10.5px; color: var(--muted); }

  /* ── BOTTOM LAYOUT ── */
  .bottom-grid { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
  ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
