
  /* ─── GOOGLE FONTS ──────────────────────────────────────── */
  /* External font import removed to avoid mobile display artifact. */

  /* ─── VARIABLES ─────────────────────────────────────────── */
  :root {
    --hijau:        #1a5c38;
    --hijau-muda:   #2e8b57;
    --hijau-terang: #e8f5ef;
    --emas:         #c9972a;
    --emas-muda:    #f0c55a;
    --putih:        #f5f7f5;
    --card-bg:      #ffffff;
    --border:       #e2e8e4;
    --teks:         #1a1f1a;
    --teks-muted:   #6b7770;
    --available:    #1a5c38;
    --booked:       #c9972a;
    --pemberkasan:  #1a6ba8;
    --sp3k:         hsl(273, 77%, 31%);
    --akad:         #c0392b;
    --shadow-sm:    0 1px 4px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:    0 12px 40px rgba(0,0,0,0.16);
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --header-h:     64px;
    --filter-h:     56px;
    --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }

  /* ─── RESET ─────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
  body {
    font-family: var(--font);
    background: var(--putih);
    color: var(--teks);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
  }

  /* ─── HEADER ────────────────────────────────────────────── */
  .header {
    background: linear-gradient(135deg, #1a5c38 0%, #0d3d24 60%, #0a2e1b 100%);
    color: #fff;
    padding: 0 clamp(16px, 4vw, 40px);
    height: auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: sticky; top: 0; z-index: 200;
    padding-top: 12px; padding-bottom: 12px;
  }
  .header-brand { display: flex; align-items: center; gap: 12px; }
  .header-logo {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; padding: 2px;
  }
  .header-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .header-left h1 { font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 800; letter-spacing: -0.3px; }
  .header-left p  { font-size: 0.72rem; opacity: 0.65; margin-top: 1px; }
  .header-stats { display: flex; gap: 8px; flex-wrap: wrap; }
  .stat-pill {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 5px 12px;
    text-align: center;
    min-width: 68px;
    transition: background 0.2s;
  }
  .stat-pill:hover { background: rgba(255,255,255,0.18); }
  .stat-pill .num { font-size: 1.25rem; font-weight: 800; display: block; line-height: 1.1; }
  .stat-pill .lbl { font-size: 0.62rem; opacity: 0.75; letter-spacing: 0.3px; text-transform: uppercase; }
  .stat-pill.available   .num { color: #6ee9b5; }
  .stat-pill.booked      .num { color: #fdd470; }
  .stat-pill.pemberkasan .num { color: #7ec8f8; }
  .stat-pill.sp3k        .num { color: #fbb96b; }
  .stat-pill.akad        .num { color: #f08080; }

  /* ─── FILTER BAR ────────────────────────────────────────── */
  .controls {
    background: var(--card-bg);
    padding: 10px clamp(16px, 4vw, 40px);
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky; top: 0; z-index: 100;
  }
  .filter-group { display: flex; align-items: center; gap: 6px; }
  .filter-group label { font-size: 0.72rem; color: var(--teks-muted); font-weight: 600; white-space: nowrap; }
  .controls select,
  .controls input[type=text] {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 7px 10px; font-size: 0.82rem; background: var(--putih);
    color: var(--teks); outline: none; font-family: var(--font);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 36px;
  }
  .controls select:focus,
  .controls input[type=text]:focus {
    border-color: var(--hijau-muda);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
  }
  .controls input[type=text] { width: clamp(120px, 18vw, 180px); }
  .filter-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

  .legend {
    margin-left: auto; display: flex; gap: 10px; align-items: center; flex-shrink: 0; flex-wrap: wrap;
  }
  .leg { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; color: var(--teks-muted); white-space: nowrap; }
  .leg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

  /* ─── MAIN CONTENT ──────────────────────────────────────── */
  #main-content { padding: clamp(12px, 3vw, 28px) clamp(12px, 4vw, 40px); }

  /* ─── BLOK SECTION ──────────────────────────────────────── */
  .blok-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: clamp(14px, 3vw, 22px);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
  }
  .blok-title {
    font-size: 0.95rem; font-weight: 700; color: var(--hijau);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--hijau-terang);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .blok-title .blok-name { font-size: 1.05rem; }
  .blok-title span.badge {
    color: white; font-size: 0.65rem; padding: 2px 8px;
    border-radius: 20px; font-weight: 700; letter-spacing: 0.2px;
  }

  /* ─── KAVLING GRID ──────────────────────────────────────── */
  .kavling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
  }
  .kav-card {
    aspect-ratio: 1 / 1.05;
    border-radius: var(--radius-sm);
    padding: 6px 5px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    position: relative;
    border: 2px solid transparent;
    user-select: none;
    text-align: center;
    min-height: 68px;
  }
  .kav-card:active { transform: scale(0.95); }
  .kav-card.available  { background: #e8f5ef; border-color: var(--available);   color: var(--available); }
  .kav-card.booked     { background: #fdf4dc; border-color: var(--booked);      color: #7a5200; }
  .kav-card.pemberkasan{ background: #ddf0fc; border-color: var(--pemberkasan); color: #1a4f7a; }
  .kav-card.sp3k       { background: #fef0d8; border-color: var(--sp3k);        color: #7a4200; }
  .kav-card.akad       { background: #fde8e8; border-color: var(--akad);        color: var(--akad); }
.kav-card.not_sold   { background: #e5e7eb; border-color: #6b7280; color: #374151; }
  @media (hover: hover) {
    .kav-card.available:hover   { background: var(--available);   color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .kav-card.booked:hover      { background: var(--booked);      color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .kav-card.pemberkasan:hover { background: var(--pemberkasan); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .kav-card.sp3k:hover        { background: var(--sp3k);        color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .kav-card.akad:hover        { background: var(--akad);        color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .kav-card.not_sold:hover    { background: #6b7280; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
  }
  .kav-no    { font-size: 1rem; font-weight: 800; display: block; line-height: 1; }
  .kav-harga { font-size: 0.58rem; opacity: 0.7; display: block; margin-top: 3px; }
  .kav-nama  {
    font-size: 0.56rem; font-weight: 600; display: block; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: calc(100% - 4px);
  }
  .kav-bi {
    font-size: 0.5rem; font-weight: 800; display: block; margin-top: 2px;
    background: rgba(255,255,255,0.6); border-radius: 4px; padding: 1px 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .bi-clear {
    background: none; border: none; font-size: 0.5rem; color: #c0392b;
    cursor: pointer; padding: 0 2px; margin-left: 2px;
  }
  .kav-status-icon { font-size: 0.55rem; position: absolute; top: 3px; right: 4px; opacity: 0.55; }

  /* ─── MODAL ─────────────────────────────────────────────── */
  .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 16px;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.22s cubic-bezier(.34,1.3,.64,1);
  }
  @keyframes fadeUp {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }
  .modal-header {
    background: linear-gradient(135deg, var(--hijau), #0d3d24);
    color: white;
    padding: 18px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px;
    position: sticky; top: 0; z-index: 10;
  }
  .modal-header-info h2 { font-size: 1.05rem; font-weight: 800; }
  .modal-header-info p  { font-size: 0.72rem; opacity: 0.7; margin-top: 2px; }
  .modal-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .status-badge {
    font-size: 0.7rem; padding: 3px 10px; border-radius: 20px; font-weight: 700; white-space: nowrap;
  }
  .badge-available   { background: #6ee9b5; color: #0d3d24; }
  .badge-booked      { background: #fdd470; color: #5a3900; }
  .badge-pemberkasan { background: #7ec8f8; color: #0a3d6b; }
  .badge-sp3k        { background: #fbb96b; color: #5a2d00; }
  .badge-akad        { background: #f08080; color: #5a0000; }
.badge-not-sold    { background: #6b7280; color: #fff; }
  .close-btn {
    background: rgba(255,255,255,0.15); border: none; color: white;
    font-size: 1.1rem; cursor: pointer; border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; flex-shrink: 0;
  }
  .close-btn:hover { background: rgba(255,255,255,0.3); }
  .modal-body { padding: clamp(14px, 4vw, 22px); display: flex; flex-direction: column; gap: 14px; }

  /* ─── SECTION BLOCK ─────────────────────────────────────── */
  .section-block {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .section-block-title {
    font-size: 0.8rem; font-weight: 700; color: var(--hijau);
    padding: 9px 14px; background: #f0f8f4;
    border-bottom: 1.5px solid #d0ead9;
    display: flex; align-items: center; gap: 6px;
  }
  .section-block-body { padding: 14px; }
  .konsumen-section { border-color: #b8dbc9; }
  .konsumen-section .section-block-title { background: #e4f5ec; border-bottom-color: #b8dbc9; }

  /* ─── FORM GRID ─────────────────────────────────────────── */
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid .span2 { grid-column: 1 / -1; }
  .form-group label {
    display: block; font-size: 0.7rem; color: var(--teks-muted);
    font-weight: 600; margin-bottom: 4px; letter-spacing: 0.2px;
  }
  .form-group input,
  .form-group select {
    width: 100%; padding: 9px 11px;
    border: 1.5px solid #cce0d4; border-radius: var(--radius-sm);
    font-size: 0.84rem; outline: none; background: white;
    font-family: var(--font); color: var(--teks);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 40px;
  }
  .form-group input:focus,
  .form-group select:focus {
    border-color: var(--hijau-muda);
    box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
  }

  /* ─── PURCHASE TABS ─────────────────────────────────────── */
  .purchase-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--putih);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    overflow: hidden;
    margin-bottom: 14px;
  }
  .purchase-tab {
    padding: 9px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.72rem; font-weight: 600; color: var(--teks-muted);
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid var(--border);
    line-height: 1.3;
  }
  .purchase-tab:last-child { border-right: none; }
  .purchase-tab.active { background: var(--hijau); color: white; }
  .purchase-tab:not(.active):hover { background: var(--hijau-terang); color: var(--hijau); }
  .purchase-tab.locked { cursor: not-allowed; opacity: 0.65; }
  .purchase-tab.locked.active { opacity: 1; }
  .purchase-panel { display: none; }
  .purchase-panel.active { display: block; }

  /* ─── PRICE TABLE ───────────────────────────────────────── */
  .price-section-label {
    font-size: 0.72rem; font-weight: 700; color: var(--hijau);
    background: #eef7f2; border-radius: 6px;
    padding: 5px 9px; margin-bottom: 6px; letter-spacing: 0.2px;
  }
  .price-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-bottom: 10px; }
  .price-table tr { border-bottom: 1px solid rgba(57,255,20,0.14); }
  .price-table td { padding: 7px 6px; }
  .price-table td:first-child { color: rgba(255,255,255,0.78); }
  .price-table td:last-child { text-align: right; font-weight: 700; color: #fff; white-space: nowrap; }
  .price-table tr.subtotal td {
    background: rgba(57,255,20,0.10); font-weight: 700; color: #fff;
    border-top: 1px solid rgba(57,255,20,0.22); border-bottom: 1px solid rgba(57,255,20,0.22);
  }
  .price-table tr.subtotal td:first-child { color: #fff; }
  .price-table tr.total td {
    background: rgba(57,255,20,0.16); color: #fff !important;
    font-weight: 900; font-size: 0.85rem;
  }
  .price-table tr.total td:last-child { color: #fff !important; }
  .section-label { color: var(--teks-muted); font-size: 0.72rem; font-style: italic; }

  /* ─── SAVE BAR ──────────────────────────────────────────── */
  .save-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; background: #f0f8f4;
    border: 1.5px solid #b8dbc9; border-radius: var(--radius-md);
    padding: 12px 14px;
  }
  .save-preview { font-size: 0.78rem; color: var(--teks); flex: 1; line-height: 1.4; }
  .btn-save {
    padding: 10px 22px; background: var(--hijau); color: white;
    border: none; border-radius: var(--radius-sm); font-weight: 700;
    cursor: pointer; font-size: 0.84rem; font-family: var(--font);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,92,56,0.3);
  }
  .btn-save:hover { background: var(--hijau-muda); box-shadow: 0 4px 12px rgba(26,92,56,0.4); }
  .btn-save:active { transform: scale(0.97); }

  /* ─── NO RESULT ─────────────────────────────────────────── */
  .no-result {
    padding: 60px 20px; text-align: center;
    color: var(--teks-muted); font-size: 0.9rem;
  }
  .no-result-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; opacity: 0.4; }

  /* ─── TOAST ─────────────────────────────────────────────── */
  .toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--hijau); color: white; padding: 12px 20px;
    border-radius: 10px; font-weight: 600; font-size: 0.85rem;
    font-family: var(--font);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25); z-index: 2000;
    display: none; animation: fadeUp 0.22s ease;
    max-width: calc(100vw - 48px);
  }

  /* ─── HIGHLIGHT ROW ─────────────────────────────────────── */
  .price-table tr[style*="background:#fffbe6"] td:first-child { color: var(--teks); }
  /* ─── RIWAYAT PEMBAYARAN ────────────────────────────────────── */
  .riwayat-section { border-color: #c0d8ea; }
  .riwayat-section .section-block-title { background: #e4f0f8; border-bottom-color: #c0d8ea; color: #1a4f7a; }
  .riwayat-tagihan-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    background: #f5faff; border: 1px solid #c0d8ea;
    border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px;
  }
  .tagihan-info { font-size: 0.8rem; color: var(--teks); line-height: 1.6; }
  .tagihan-info .lbl { color: var(--teks-muted); font-size: 0.7rem; display: block; }
  .tagihan-info .val { font-weight: 700; color: var(--hijau); font-size: 0.92rem; }
  .tagihan-info .val.merah { color: #c0392b; }
  .riwayat-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
  }
  .riwayat-form .span2 { grid-column: 1 / -1; }
  .riwayat-form input {
    width: 100%; padding: 8px 10px;
    border: 1.5px solid #cce0d4; border-radius: var(--radius-sm);
    font-size: 0.82rem; outline: none; font-family: var(--font);
    transition: border-color 0.15s; height: 38px;
  }
  .riwayat-form input:focus { border-color: var(--hijau-muda); box-shadow: 0 0 0 3px rgba(46,139,87,0.12); }
  .btn-add-bayar {
    width: 100%; padding: 9px; background: #1a6ba8; color: white;
    border: none; border-radius: var(--radius-sm); font-weight: 700;
    cursor: pointer; font-size: 0.82rem; font-family: var(--font);
    transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .btn-add-bayar:hover { background: #1558a0; }
  .riwayat-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .riwayat-item {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f8fcff; border: 1px solid #d0e8f5;
    border-radius: var(--radius-sm); padding: 9px 12px;
  }
  .riwayat-item-info { flex: 1; }
  .ri-tanggal { color: var(--teks-muted); font-size: 0.7rem; }
  .ri-jumlah  { font-weight: 700; color: #1a6ba8; font-size: 0.88rem; }
  .ri-ket     { color: var(--teks); font-size: 0.78rem; margin-top: 1px; }
  .ri-bukti   { display: inline-flex; margin-top: 4px; color: var(--hijau); font-size: 0.76rem; font-weight: 700; text-decoration: none; }
  .ri-bukti:hover { text-decoration: underline; }
  .ri-bukti-tambah { background: var(--hijau); color: #fff; border: none; border-radius: 6px; padding: 5px 9px; font-size: 0.7rem; font-weight: 700; cursor: pointer; margin-top: 4px; }
  .ri-bukti-tambah:hover { background: var(--hijau-muda); }
  .riwayat-item-actions { display: flex; gap: 4px; }
  .riwayat-item-actions .riwayat-item-delete {
    background: none; border: none; color: #c0392b; cursor: pointer;
    font-size: 1rem; padding: 2px 5px; border-radius: 4px; flex-shrink: 0;
    transition: background 0.15s;
  }
  .riwayat-item-delete:hover { background: #fde8e8; }
  .riwayat-empty { text-align: center; color: var(--teks-muted); font-size: 0.78rem; padding: 14px 0; }

  /* ─── TOMBOL CETAK ──────────────────────────────────────────── */
  .btn-cetak {
    padding: 10px 18px; background: #6b4f9e; color: white;
    border: none; border-radius: var(--radius-sm); font-weight: 700;
    cursor: pointer; font-size: 0.84rem; font-family: var(--font);
    transition: background 0.15s; white-space: nowrap; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(107,79,158,0.3);
  }
  .btn-cetak:hover { background: #563e80; }

  /* ─── ACTION BAR ─────────────────────────────────────────────── */
  .action-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    background: #f0f8f4; border: 1.5px solid #b8dbc9;
    border-radius: var(--radius-md); padding: 12px 14px;
    align-items: center;
  }
  .action-bar .save-preview { flex: 1; font-size: 0.78rem; color: var(--teks); min-width: 120px; }

  /* ─── PRINT STYLES ──────────────────────────────────────────── */
  #print-area, #print-all-area { display: none; }
  @page { margin: 12mm 10mm; size: A4; }
  @media print {
    body.print-all > *:not(#print-all-area) { display: none !important; }
    body.print-all #print-all-area {
      display: block !important;
      background: white; z-index: 99999; padding: 18px 22px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 10px; color: #111;
    }
    .print-all-header { margin-bottom: 12px; border-bottom: 2px solid #1a5c38; padding-bottom: 10px; }
    .print-all-header h1 { margin: 0 0 6px; font-size: 18px; color: #1a5c38; }
    .print-all-summary { font-size: 9px; color: #333; line-height: 1.4; }
    .print-all-cover { min-height: 92vh; page-break-after: always; }
    .print-all-chart { margin-top: 28px; display: grid; gap: 18px; }
    .print-chart-row { display: grid; grid-template-columns: 92px 1fr 36px; align-items: center; gap: 10px; font-size: 12px; }
    .print-chart-label { font-weight: 700; color: #111; }
    .print-chart-track { height: 28px; border-radius: 999px; background: #eef4f0; overflow: hidden; border: 1px solid #dce8e1; }
    .print-chart-bar { height: 100%; border-radius: 999px; }
    .print-chart-bar.booking { background: #c9972a; }
    .print-chart-bar.pemberkasan { background: #1a6ba8; }
    .print-chart-bar.sp3k { background: #e07b00; }
    .print-chart-bar.akad { background: #b52b2b; }
    .print-chart-value { font-weight: 800; text-align: right; }
    .status-tersedia { color: #1a5c38; font-weight: 600; }
    .status-booking { color: #c9972a; font-weight: 600; }
    .status-pemberkasan { color: #1a6ba8; font-weight: 600; }
    .status-sp3k { color: #e07b00; font-weight: 600; }
    .status-akad { color: #b52b2b; font-weight: 600; }
    .print-all-section { page-break-inside: avoid; margin-bottom: 14px; }
    .print-all-section h2 { margin: 0 0 6px; font-size: 13px; color: #1a5c38; }
    .print-all-table { width: 100%; border-collapse: collapse; font-size: 9px; }
    .print-all-table th { background: #1a5c38; color: white; padding: 4px 6px; text-align: left; }
    .print-all-table td { padding: 4px 6px; border-bottom: 1px solid #dce8e1; }
    .print-all-table tr:nth-child(even) td { background: #f5faf7; }
    body.print-kartu > *:not(#print-area) { display: none !important; }
    #print-area {
      display: block !important; position: fixed; inset: 0;
      background: white; z-index: 99999; padding: 20px 24px;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 11px; color: #111;
      max-width: 210mm; margin: 0 auto;
    }
    .print-logo  { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; color: #1a5c38; }
    .print-logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
    .print-sub   { font-size: 0.75rem; color: #666; margin-bottom: 14px; border-bottom: 2px solid #1a5c38; padding-bottom: 8px; }
    .print-title { font-size: 1.05rem; font-weight: 700; color: #1a5c38; margin-bottom: 10px; }
    .print-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-bottom: 14px; }
    .print-grid dt { color: #777; font-size: 0.75rem; }
    .print-grid dd { font-weight: 600; margin: 0 0 4px; font-size: 0.82rem; word-break: break-word; }
    .print-sec-title { font-weight: 700; font-size: 0.82rem; background: #e8f5ef; padding: 4px 8px; border-left: 3px solid #1a5c38; margin: 12px 0 6px; }
    .print-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin-bottom: 10px; }
    .print-table th { background: #1a5c38; color: white; padding: 5px 8px; text-align: left; }
    .print-table td { padding: 5px 8px; border-bottom: 1px solid #e0ece6; word-break: break-word; }
    .print-table tr:nth-child(even) td { background: #f5faf7; }
    .print-row-total { background: #d4edda !important; font-weight: 700; }
    .print-row-sisa  { background: #fde8e8 !important; font-weight: 700; color: #c0392b; }
    .print-footer { margin-top: 16px; font-size: 0.7rem; color: #999; border-top: 1px solid #ddd; padding-top: 8px; display: flex; justify-content: space-between; }
  }


  /* ════════════════════════════════════════════════════════════
     RESPONSIVE — TABLET (≤ 900px)
  ════════════════════════════════════════════════════════════ */
  @media (max-width: 900px) {
    .header-stats { gap: 6px; }
    .stat-pill { min-width: 56px; padding: 5px 9px; }
    .stat-pill .num { font-size: 1.1rem; }
    .kavling-grid { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
  }

  /* ════════════════════════════════════════════════════════════
     RESPONSIVE — MOBILE (≤ 640px)
  ════════════════════════════════════════════════════════════ */
  @media (max-width: 640px) {
    /* Header */
    .header { flex-direction: column; align-items: flex-start; padding: 12px 16px; gap: 10px; }
    .header-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-pill { flex: none; min-width: 0; padding: 7px 4px; }
    .stat-pill .num { font-size: 1.05rem; }
    .stat-pill .lbl { font-size: 0.6rem; white-space: normal; line-height: 1.15; }

    /* Filter bar — scrollable single row */
    .controls {
      padding: 8px 12px;
      overflow-x: auto;
      flex-wrap: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      gap: 6px;
    }
    .controls::-webkit-scrollbar { display: none; }
    .filter-group { flex-shrink: 0; }
    .controls select { height: 34px; font-size: 0.78rem; padding: 0 8px; }
    .controls input[type=text] { width: 130px; height: 34px; }
    .legend { display: none; }
    .filter-divider { display: none; }

    /* Blok section */
    #main-content { padding: 10px 10px; }
    .blok-section { padding: 12px 10px; margin-bottom: 10px; border-radius: var(--radius-sm); }
    .blok-title { font-size: 0.88rem; margin-bottom: 10px; gap: 6px; }
    .blok-title .blok-name { font-size: 0.95rem; }
    .blok-title span.badge { font-size: 0.6rem; padding: 2px 6px; }

    /* Kavling cards — tighter grid */
    .kavling-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 5px; }
    .kav-card { min-height: 58px; border-radius: 7px; }
    .kav-no { font-size: 0.88rem; }
    .kav-harga { font-size: 0.52rem; }

    /* Modal — full-screen bottom sheet on mobile */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal {
      max-width: 100%;
      max-height: 92dvh;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      animation: slideUp 0.26s cubic-bezier(.34,1.1,.64,1);
    }
    @keyframes slideUp {
      from { transform: translateY(100%); opacity: 0.8; }
      to   { transform: translateY(0); opacity: 1; }
    }
    /* Drag handle */
    .modal::before {
      content: '';
      display: block;
      width: 40px; height: 4px;
      background: rgba(0,0,0,0.15);
      border-radius: 2px;
      margin: 10px auto 0;
    }
    .modal-header { border-radius: 0; }
    .modal-body { padding: 14px 14px; gap: 12px; }

    /* Form grid → 1 col */
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span2 { grid-column: 1; }
    .form-group input,
    .form-group select { height: 44px; font-size: 16px; } /* 16px prevents iOS zoom */

    /* Purchase tabs → 2×2 grid */
    .purchase-tabs {
      grid-template-columns: 1fr 1fr;
    }
    .purchase-tab {
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .purchase-tab:nth-child(2) { border-right: none; }
    .purchase-tab:nth-child(3) { border-bottom: none; }
    .purchase-tab:nth-child(4) { border-right: none; border-bottom: none; }

    /* Save/action bar → stack + sticky bottom saat scroll */
    .save-bar  { flex-direction: column; align-items: stretch; gap: 8px; }
    .action-bar { flex-direction: column; align-items: stretch; gap: 8px; position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), var(--card-bg) 28%); padding-top: 10px; margin-top: 4px; z-index: 5; }
    .btn-save  { width: 100%; padding: 13px; font-size: 0.9rem; text-align: center; }
    .btn-cetak { width: 100%; padding: 12px; font-size: 0.9rem; text-align: center; }
    /* Riwayat form → 1 kolom */
    .riwayat-form { grid-template-columns: 1fr; }
    .riwayat-form .span2 { grid-column: 1; }
    .riwayat-form input { height: 44px; font-size: 16px; }
    .riwayat-tagihan-bar { gap: 14px; }

    /* Price table */
    .price-table { font-size: 0.76rem; }
    .price-table td { padding: 6px 4px; }

    /* Toast */
    .toast { bottom: 16px; right: 12px; left: 12px; text-align: center; }
  }

  /* ════════════════════════════════════════════════════════════
     RESPONSIVE — VERY SMALL (≤ 360px)
  ════════════════════════════════════════════════════════════ */
  @media (max-width: 360px) {
    .kavling-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; }
    .kav-card { min-height: 52px; }
    .kav-no { font-size: 0.8rem; }
    .stat-pill .num { font-size: 0.9rem; }
  }

  /* ════════════════════════════════════════════════════════════
     PC — LARGE (≥ 1200px) refinements
  ════════════════════════════════════════════════════════════ */
  @media (min-width: 1200px) {
    .kavling-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 9px; }
    .kav-card { min-height: 76px; }
    .kav-no { font-size: 1.1rem; }
    .modal { max-width: 600px; }
  }

/* ════════════════════════════════════════════════════════════
   TAMBAHAN: LOGIN PAGE
════════════════════════════════════════════════════════════ */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 18% 16%, rgba(57,255,20,0.24), transparent 28%), radial-gradient(circle at 82% 12%, rgba(0,255,163,0.18), transparent 30%), radial-gradient(circle at 50% 90%, rgba(57,255,20,0.12), transparent 32%), linear-gradient(135deg, #020805 0%, #07160f 50%, #010302 100%);
  padding: 20px;
  overflow: hidden;
  animation: loginBgMove 14s ease-in-out infinite alternate;
}
.login-wrap { width: 100%; max-width: 420px; }
.login-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  border: 1px solid rgba(57,255,20,0.32);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.42), 0 0 46px rgba(57,255,20,0.12);
  padding: clamp(26px, 6vw, 42px) clamp(22px, 6vw, 38px);
  backdrop-filter: blur(18px);
  animation: loginCardIn 0.55s ease both, dashboardFloat 8s ease-in-out infinite;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-kicker { display: inline-flex; color: #39ff14; border: 1px solid rgba(57,255,20,0.35); border-radius: 999px; padding: 7px 12px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; background: rgba(57,255,20,0.08); box-shadow: 0 0 24px rgba(57,255,20,0.16); }
.login-logo {
  width: 94px; height: 94px; border-radius: 26px;
  background: rgba(57,255,20,0.10);
  border: 1px solid rgba(57,255,20,0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 32px rgba(57,255,20,0.18);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; padding: 8px; overflow: hidden;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.36)); }
.login-brand h1 { font-size: 1.25rem; font-weight: 900; color: #39ff14; letter-spacing: -0.03em; text-shadow: 0 0 24px rgba(57,255,20,0.24); }
.login-brand p { font-size: 0.78rem; color: rgba(255,255,255,0.66); margin-top: 5px; line-height: 1.5; }
.login-alert {
  background: rgba(255,76,76,0.12); border: 1px solid rgba(255,120,120,0.42); color: #ffc4c4;
  border-radius: 14px; padding: 10px 14px;
  font-size: 0.8rem; margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form .form-group label {
  display: block; font-size: 0.76rem; color: rgba(255,255,255,0.72);
  font-weight: 700; margin-bottom: 6px;
}
.login-form input {
  width: 100%; padding: 12px 14px;
  border: 1px solid rgba(57,255,20,0.26); border-radius: 14px;
  background: rgba(255,255,255,0.075); color: #fff;
  font-size: 0.9rem; outline: none; font-family: var(--font);
  height: 48px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-form input::placeholder { color: rgba(255,255,255,0.38); }
.login-form input:focus {
  border-color: rgba(57,255,20,0.78);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 0 0 4px rgba(57,255,20,0.12), 0 0 26px rgba(57,255,20,0.16);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.toggle-pass {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  background: rgba(57,255,20,0.10); border: 1px solid rgba(57,255,20,0.20); border-radius: 10px; cursor: pointer; font-size: 1rem;
  padding: 6px; opacity: 0.72;
}
.toggle-pass:hover { opacity: 1; box-shadow: 0 0 18px rgba(57,255,20,0.18); }
.btn-login {
  margin-top: 8px; padding: 14px; background: #39ff14; color: #061910;
  border: none; border-radius: 14px; font-weight: 900;
  font-size: 0.94rem; font-family: var(--font); cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s; box-shadow: 0 0 30px rgba(57,255,20,0.30);
}
.btn-login:hover { background: #66ff47; transform: translateY(-2px); box-shadow: 0 0 42px rgba(57,255,20,0.42); }
.login-footer { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.50); margin-top: 22px; }
@keyframes loginCardIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes loginBgMove { from { background-position: 0% 0%, 100% 0%, center; } to { background-position: 12% 8%, 84% 16%, center; } }

/* ════════════════════════════════════════════════════════════
   TAMBAHAN: TOPBAR USER INFO (di app.php)
════════════════════════════════════════════════════════════ */
.header-user {
  display: flex; align-items: center; gap: 10px;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.header-user-info { text-align: right; line-height: 1.25; }
.header-user-name { font-size: 0.78rem; font-weight: 700; color: #fff; }
.header-user-role { font-size: 0.62rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.4px; }
.header-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.header-user-actions { display: flex; gap: 6px; }
.btn-header-icon {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; font-size: 0.9rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.btn-header-icon:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(57,255,20,0.14);
  border-color: rgba(57,255,20,0.65);
  box-shadow: 0 0 0 6px rgba(57,255,20,0.10), 0 12px 26px rgba(0,0,0,0.35), 0 0 28px rgba(57,255,20,0.18);
  color: #39ff14;
}
.btn-header-icon:active { transform: translateY(0) scale(0.96); transition: transform 0.08s ease; }
.btn-header-icon[aria-label][title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipIn 0.16s ease both;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn-header-icon[aria-label][title]:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.88);
  pointer-events: none;
  z-index: 999;
}
.btn-header-icon.active {
  background: rgba(57,255,20,0.22);
  border-color: rgba(57,255,20,0.75);
  color: #39ff14;
  box-shadow: 0 0 0 6px rgba(57,255,20,0.10), 0 10px 24px rgba(0,0,0,0.35), 0 0 28px rgba(57,255,20,0.18);
}
.btn-header-icon.active:hover {
  transform: none;
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 640px) {
  .header-user { border-left: none; padding-left: 0; margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ════════════════════════════════════════════════════════════
   TAMBAHAN: HALAMAN MANAJEMEN AKUN (users.php)
════════════════════════════════════════════════════════════ */
.users-body {
  min-height: 100vh;
  background: radial-gradient(circle at 18% 16%, rgba(57,255,20,0.24), transparent 28%), radial-gradient(circle at 82% 12%, rgba(0,255,163,0.18), transparent 30%), radial-gradient(circle at 50% 90%, rgba(57,255,20,0.12), transparent 32%), linear-gradient(135deg, #020805 0%, #07160f 50%, #010302 100%);
  animation: loginBgMove 14s ease-in-out infinite alternate;
  color: #fff;
}
.users-page { max-width: 760px; margin: 0 auto; padding: clamp(16px, 4vw, 32px); }
.users-back { display: inline-flex; align-items: center; gap: 8px; color: #39ff14; font-weight: 900; font-size: 0.85rem; text-decoration: none; margin-bottom: 18px; border: 1px solid rgba(57,255,20,0.34); border-radius: 999px; padding: 9px 14px; background: rgba(57,255,20,0.08); box-shadow: 0 0 24px rgba(57,255,20,0.12); backdrop-filter: blur(12px); }
.users-card { background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(57,255,20,0.26); border-radius: 24px; box-shadow: 0 22px 64px rgba(0,0,0,0.26), 0 0 28px rgba(57,255,20,0.08); padding: 22px; margin-bottom: 22px; backdrop-filter: blur(14px); }
.users-card h2 { font-size: 1rem; color: #39ff14; margin-bottom: 14px; text-shadow: 0 0 22px rgba(57,255,20,0.18); }
.users-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.users-table th { text-align: left; color: rgba(255,255,255,0.72); font-size: 0.72rem; text-transform: uppercase; padding: 8px; border-bottom: 2px solid rgba(57,255,20,0.26); background: rgba(57,255,20,0.08); backdrop-filter: blur(8px); }
.users-table td { padding: 10px 8px; border-bottom: 1px solid rgba(57,255,20,0.14); vertical-align: middle; color: rgba(255,255,255,0.78); }
.role-pill { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; }
.role-pill.admin { background: #fde8e8; color: #a02020; }
.role-pill.staff { background: #e4f0f8; color: #1a4f7a; }
.role-pill.spv { background: #fff3d0; color: #7a5200; }
.users-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.users-form .span2 { grid-column: 1/-1; }
.users-form label { display: block; font-size: 0.76rem; color: rgba(255,255,255,0.72); font-weight: 700; margin-bottom: 6px; }
.users-form input, .users-form select {
  width: 100%; padding: 10px 12px; border: 1.5px solid rgba(57,255,20,0.26); border-radius: var(--radius-sm);
  font-size: 0.85rem; height: 42px; font-family: var(--font); outline: none; background: rgba(255,255,255,0.075); color: #fff;
}
.users-form input:focus, .users-form select:focus { border-color: rgba(57,255,20,0.78); box-shadow: 0 0 0 4px rgba(57,255,20,0.12), 0 0 26px rgba(57,255,20,0.16); }
.btn-users-submit {
  grid-column: 1/-1; padding: 12px; background: #39ff14; color: #061910; border: none;
  border-radius: var(--radius-sm); font-weight: 900; cursor: pointer; font-family: var(--font); box-shadow: 0 0 28px rgba(57,255,20,0.30);
}
.btn-users-submit:hover { background: #66ff47; transform: translateY(-2px); box-shadow: 0 0 42px rgba(57,255,20,0.42); }
.btn-danger-sm { background: #fde8e8; color: #a02020; border: 1px solid #f3b8b8; border-radius: 6px; padding: 5px 10px; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.btn-danger-sm:hover { background: #fbd4d4; }
.badge-you { font-size: 0.62rem; color: var(--teks-muted); font-style: italic; margin-left: 6px; }
@media (max-width: 640px) {
  .users-form { grid-template-columns: 1fr; }
  .users-table { font-size: 0.78rem; }
  .users-table th:nth-child(3), .users-table td:nth-child(3) { display: none; }
}
.laporan-page { max-width: 1180px; background: radial-gradient(circle at 20% 10%, rgba(57,255,20,0.18), transparent 28%), radial-gradient(circle at 80% 18%, rgba(0,255,163,0.14), transparent 30%), linear-gradient(135deg, #020805 0%, #07160f 52%, #010302 100%); color: #fff; min-height: 100vh; padding: 32px 0; }
.laporan-page-body { background: radial-gradient(circle at 20% 10%, rgba(57,255,20,0.22), transparent 28%), radial-gradient(circle at 80% 20%, rgba(0,255,163,0.18), transparent 30%), linear-gradient(135deg, #020805 0%, #07160f 48%, #010302 100%); color: #fff; animation: reportBgMove 14s ease-in-out infinite alternate; }
.laporan-filter { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.laporan-filter .btn-users-submit { grid-column: auto; height: 40px; padding: 0 16px; }
.laporan-manual-form { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
.laporan-manual-form .btn-users-submit { grid-column: auto; height: 40px; padding: 0 16px; }
.laporan-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1200px) { .laporan-summary { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .laporan-summary { grid-template-columns: 1fr; } }
.laporan-stat { background: linear-gradient(145deg, rgba(57,255,20,0.16), rgba(0,255,163,0.12)); color: #fff; border-radius: var(--radius-md); padding: 18px 16px; box-shadow: 0 0 34px rgba(57,255,20,0.14); text-align: center; overflow: hidden; border: 1px solid rgba(57,255,20,0.30); backdrop-filter: blur(14px); }
.laporan-stat .lbl { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.72); text-transform: uppercase; font-weight: 900; letter-spacing: 0.04em; }
.laporan-stat .val { display: block; font-size: clamp(1.05rem, 2.2vw, 1.45rem); font-weight: 900; margin-top: 6px; line-height: 1.2; overflow-wrap: anywhere; color: #39ff14; text-shadow: 0 0 22px rgba(57,255,20,0.20); }
.laporan-stat.stat-electric { background: linear-gradient(145deg, rgba(57,255,20,0.28), rgba(0,255,163,0.22)); border: 1.5px solid rgba(57,255,20,0.55); box-shadow: 0 0 48px rgba(57,255,20,0.30), inset 0 0 20px rgba(57,255,20,0.08); }
.laporan-stat.stat-electric .val { color: #39ff14; font-size: clamp(1.2rem, 2.6vw, 1.65rem); text-shadow: 0 0 16px rgba(57,255,20,0.60), 0 0 40px rgba(57,255,20,0.30); }
.laporan-stat.stat-electric .lbl { color: rgba(57,255,20,0.85); }
.laporan-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.laporan-actions h2 { margin-bottom: 0; }
.btn-print-laporan { grid-column: auto; width: auto; padding: 9px 14px; background: #39ff14; color: #061910; border: none; border-radius: var(--radius-sm); font-weight: 900; box-shadow: 0 0 28px rgba(57,255,20,0.30); }
.laporan-table small { color: rgba(255,255,255,0.50); }
.booking-chart { min-height: 240px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; padding: 24px 12px 8px; border: 1px solid rgba(57,255,20,0.26); background: linear-gradient(145deg, rgba(57,255,20,0.08), rgba(255,255,255,0.04)); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.28); backdrop-filter: blur(12px); position: relative; overflow: hidden; }
.booking-chart::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(57,255,20,0.16), transparent 60%); filter: blur(12px); }
.booking-chart-value { font-size: 0.72rem; font-weight: 800; color: #39ff14; }
.booking-chart-bar { width: 100%; max-width: 34px; min-height: 8px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #66ff47, #39ff14); box-shadow: 0 12px 30px rgba(57,255,20,0.16); }
.booking-chart-label { font-size: 0.68rem; color: rgba(255,255,255,0.68); font-weight: 900; }
.chart-year-filter { display: flex; align-items: center; gap: 8px; }
.chart-year-filter label { font-size: 0.76rem; color: var(--teks-muted); font-weight: 700; }
.chart-year-filter input { width: 92px; height: 38px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-family: var(--font); }
.booking-chart { min-height: 230px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; padding: 18px 4px 4px; border-top: 1px solid var(--border); }
.booking-chart-item { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; min-width: 0; }
.booking-chart-value { font-size: 0.72rem; font-weight: 800; color: var(--hijau); }
.booking-chart-bar { width: 100%; max-width: 34px; min-height: 8px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--emas-muda), var(--emas)); box-shadow: var(--shadow-sm); }
.booking-chart-label { font-size: 0.68rem; color: var(--teks-muted); font-weight: 700; }
@media (max-width: 760px) {
  .laporan-filter, .laporan-manual-form { grid-template-columns: 1fr; }
  .laporan-filter .btn-users-submit, .laporan-manual-form .btn-users-submit { grid-column: 1/-1; }
  .laporan-summary { grid-template-columns: 1fr; }
  .laporan-table th:nth-child(4), .laporan-table td:nth-child(4) { display: none; }
  .laporan-actions { align-items: flex-start; flex-direction: column; }
  .booking-chart { overflow-x: auto; grid-template-columns: repeat(12, 42px); }
}
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; color: #333 !important; }
  .users-back, .laporan-filter-card, .laporan-filter, .btn-print-laporan, .toast, .laporan-manual-form, .form-pencairan-wrapper, #form-pencairan, .laporan-summary, .chart-year-filter, .laporan-actions .btn-print-laporan, .export-btn-wrapper { display: none !important; }
  .users-page { max-width: none; padding: 0; background: #fff !important; }
  .users-card { box-shadow: none !important; border: none !important; background: #fff !important; backdrop-filter: none !important; padding: 0 !important; border-radius: 0 !important; }
  .laporan-stat { display: none !important; }
  .laporan-chart-card { border: none !important; background: #fff !important; box-shadow: none !important; }
  .laporan-chart-card .laporan-actions { display: block !important; margin-bottom: 8px !important; }
  .laporan-chart-card .laporan-actions h2 { display: block !important; color: #2d6a4f !important; font-size: 16px !important; margin: 0 0 8px !important; border-bottom: 1px solid #95d5b2; padding-bottom: 8px; }
  .chart-year-filter { display: none !important; }
  .booking-chart { min-height: 170px !important; padding: 14px 8px 6px !important; gap: 6px !important; border: 1px solid #d4e0d8 !important; background: #f9fcfa !important; box-shadow: none !important; backdrop-filter: none !important; }
  .booking-chart::before { display: none !important; }
  .booking-chart-value { color: #2d6a4f !important; }
  .booking-chart-bar { background: linear-gradient(180deg, #95d5b2, #52b788) !important; box-shadow: none !important; }
  .booking-chart-label { color: #555 !important; }
  .print-header { display: block !important; text-align: center; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #52b788; }
  .print-header h1 { font-size: 18px; color: #2d6a4f; margin: 0 0 4px; }
  .print-header p { font-size: 11px; color: #888; margin: 0; }
  .laporan-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .laporan-table th { background: #f0f7f3 !important; color: #2d6a4f !important; padding: 8px 10px !important; text-align: left !important; border-bottom: 2px solid #95d5b2 !important; font-size: 11px !important; }
  .laporan-table td { padding: 7px 10px !important; border-bottom: 1px solid #e8f0ec !important; color: #333 !important; }
  .laporan-table tr:nth-child(even) td { background: #f8fbf9 !important; }
  .laporan-table td:nth-child(6) { display: none !important; }
  .laporan-table th:nth-child(6) { display: none !important; }
  .laporan-table small { color: #888 !important; }
  .laporan-actions { display: block !important; }
  .laporan-actions h2 { color: #2d6a4f !important; font-size: 16px !important; margin-bottom: 8px !important; border-bottom: 1px solid #95d5b2; padding-bottom: 8px; }
}
.dashboard-body { min-height: 100vh; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(57,255,20,0.24), transparent 28%), radial-gradient(circle at 80% 20%, rgba(0,255,163,0.18), transparent 30%), linear-gradient(135deg, rgba(2,8,5,0.96), rgba(7,22,15,0.88)), url('bg-dashboard.jpg') center/cover fixed no-repeat; background-size: 115% 115%; animation: dashboardBgFloat 16s ease-in-out infinite alternate; }
.dashboard-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(20px, 5vw, 52px) 0; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #fff; margin-bottom: clamp(24px, 5vw, 46px); animation: fadeUp 0.45s ease both, dashboardFloat 7s ease-in-out infinite; }
.dashboard-brand { display: flex; align-items: center; gap: 18px; }
.dashboard-brand img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(57,255,20,0.16)) drop-shadow(0 10px 20px rgba(0,0,0,0.34)); }
.dashboard-brand h1 { font-size: clamp(1.35rem, 4vw, 2.3rem); font-weight: 900; letter-spacing: -0.05em; color: #39ff14; text-shadow: 0 0 30px rgba(57,255,20,0.22); }
.dashboard-brand p { font-size: clamp(0.78rem, 2vw, 0.95rem); color: rgba(255,255,255,0.68); margin-top: 4px; }
.dashboard-user { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.09); border: 1px solid rgba(57,255,20,0.30); border-radius: 999px; padding: 8px 10px 8px 16px; box-shadow: 0 0 26px rgba(57,255,20,0.10); backdrop-filter: blur(14px); }
.dashboard-user span { font-size: 0.86rem; font-weight: 700; }
.dashboard-user a { color: #061910; background: #39ff14; border-radius: 999px; padding: 7px 12px; text-decoration: none; font-weight: 900; font-size: 0.78rem; box-shadow: 0 0 20px rgba(57,255,20,0.26); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.5vw, 24px); }
.dashboard-card { position: relative; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(57,255,20,0.30); border-radius: 30px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 28px 80px rgba(0,0,0,0.34), 0 0 34px rgba(57,255,20,0.10); backdrop-filter: blur(16px); transform: translateY(10px); opacity: 0; animation: dashboardCardIn 0.55s ease forwards, dashboardFloat 8s ease-in-out infinite; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.dashboard-card:nth-child(2) { animation-delay: 0.08s, 0.7s; }
.dashboard-card:nth-child(3) { animation-delay: 0.16s, 1.4s; }
.dashboard-card::before { content: ''; position: absolute; inset: -45% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(57,255,20,0.15); filter: blur(4px); transition: transform 0.3s ease; }
.dashboard-card.konsumen::before { background: rgba(57,255,20,0.16); }
.dashboard-card.pemberkasan::before { background: rgba(0,255,163,0.14); }
.dashboard-card.laporan::before { background: rgba(173,255,47,0.14); }
.dashboard-card:hover { transform: translateY(-10px); border-color: rgba(57,255,20,0.74); box-shadow: 0 38px 100px rgba(0,0,0,0.42), 0 0 48px rgba(57,255,20,0.22); }
.dashboard-card:hover::before { transform: scale(1.25); }
.dashboard-card-icon { position: relative; width: 66px; height: 66px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: rgba(57,255,20,0.12); box-shadow: inset 0 0 0 1px rgba(57,255,20,0.34), 0 0 28px rgba(57,255,20,0.14); }
.dashboard-card-icon img { width: 54px; height: 54px; object-fit: contain; }
.dashboard-card-content { position: relative; }
.dashboard-card-content h2 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: #39ff14; margin-bottom: 8px; }
.dashboard-card-content p { color: rgba(255,255,255,0.68); font-size: 0.92rem; line-height: 1.6; }
.dashboard-card-arrow { position: relative; align-self: flex-end; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #39ff14; color: #061910; font-size: 1.35rem; font-weight: 900; box-shadow: 0 0 28px rgba(57,255,20,0.32); transition: transform 0.25s ease; }
.dashboard-card:hover .dashboard-card-arrow { transform: translateX(4px); }
.dashboard-report-panel { margin-top: clamp(18px, 4vw, 34px); color: #fff; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(57,255,20,0.30); border-radius: 30px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 28px 80px rgba(0,0,0,0.34), 0 0 34px rgba(57,255,20,0.10); backdrop-filter: blur(16px); animation: dashboardPanelIn 0.5s ease both; scroll-margin-top: 22px; }
.dashboard-report-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.dashboard-report-head > span { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: rgba(57,255,20,0.12); box-shadow: inset 0 0 0 1px rgba(57,255,20,0.34); font-size: 1.8rem; }
.dashboard-report-head h2 { margin: 0 0 4px; font-size: clamp(1.15rem, 2.6vw, 1.55rem); color: #39ff14; }
.dashboard-report-head p { margin: 0; color: rgba(255,255,255,0.68); }
.dashboard-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.dashboard-report-card { display: grid; gap: 6px; padding: 18px; color: #fff; text-decoration: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(57,255,20,0.24); border-radius: 20px; box-shadow: 0 20px 54px rgba(0,0,0,0.20); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
.dashboard-report-card:hover { transform: translateY(-5px); border-color: rgba(57,255,20,0.62); box-shadow: 0 28px 64px rgba(0,0,0,0.28), 0 0 34px rgba(57,255,20,0.16); }
.dashboard-report-card strong { color: #39ff14; font-size: 1rem; }
.dashboard-report-card span { color: rgba(255,255,255,0.66); font-size: 0.86rem; line-height: 1.55; }
.dashboard-chart-container { margin-top: clamp(18px, 4vw, 34px); color: #fff; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(57,255,20,0.30); border-radius: 30px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 28px 80px rgba(0,0,0,0.34), 0 0 34px rgba(57,255,20,0.10); backdrop-filter: blur(16px); }
.dashboard-chart-container h2 { margin: 0 0 18px; color: #39ff14; font-size: clamp(1.15rem, 2.6vw, 1.55rem); }
@keyframes dashboardCardIn { to { transform: translateY(0); opacity: 1; } }
@keyframes dashboardPanelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dashboardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes dashboardBgFloat { from { background-position: center top; } to { background-position: center bottom; } }
@media (max-width: 860px) {
  .dashboard-hero { flex-direction: column; align-items: flex-start; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: 210px; }
}
@media (max-width: 520px) {
  .dashboard-brand { align-items: flex-start; flex-direction: column; }
  .dashboard-brand img { width: 120px; height: 120px; }
  .dashboard-user { width: 100%; justify-content: space-between; }
}
.report-dashboard-body { min-height: 100vh; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(57,255,20,0.22), transparent 28%), radial-gradient(circle at 80% 20%, rgba(0,255,163,0.18), transparent 30%), linear-gradient(135deg, #020805 0%, #07160f 48%, #010302 100%); overflow-x: hidden; animation: reportBgMove 14s ease-in-out infinite alternate; }
.report-dashboard-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(18px, 4vw, 42px) 0; }
.report-dashboard-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: clamp(28px, 6vw, 74px); }
.report-dashboard-nav a, .report-dashboard-nav span { color: #39ff14; text-decoration: none; border: 1px solid rgba(57,255,20,0.42); background: rgba(57,255,20,0.08); box-shadow: 0 0 22px rgba(57,255,20,0.16); border-radius: 999px; padding: 10px 16px; font-weight: 800; backdrop-filter: blur(10px); }
.report-dashboard-hero { max-width: 780px; margin-bottom: clamp(24px, 5vw, 48px); animation: reportFloat 7s ease-in-out infinite; }
.report-dashboard-kicker { display: inline-flex; color: #39ff14; border: 1px solid rgba(57,255,20,0.35); border-radius: 999px; padding: 7px 12px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.18em; margin-bottom: 16px; box-shadow: 0 0 28px rgba(57,255,20,0.16); }
.report-dashboard-hero h1 { font-size: clamp(2.2rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.07em; margin-bottom: 18px; text-shadow: 0 0 34px rgba(57,255,20,0.18); }
.report-dashboard-hero p { color: rgba(255,255,255,0.72); font-size: clamp(0.95rem, 2vw, 1.1rem); max-width: 640px; }
.report-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
.report-dashboard-card { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; color: #fff; text-decoration: none; overflow: hidden; border: 1px solid rgba(57,255,20,0.32); border-radius: 30px; padding: clamp(22px, 3vw, 32px); background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)); box-shadow: 0 28px 80px rgba(0,0,0,0.34), 0 0 34px rgba(57,255,20,0.10); backdrop-filter: blur(16px); animation: reportCardIn 0.55s ease both, reportFloat 8s ease-in-out infinite; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.report-dashboard-card:nth-child(2) { animation-delay: 0.1s, 1s; }
.report-dashboard-card:nth-child(3) { animation-delay: 0.2s, 2s; }
.report-dashboard-card::before { content: ''; position: absolute; inset: -45% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(57,255,20,0.16); filter: blur(4px); transition: transform 0.3s ease; }
.report-dashboard-card.akun::before { background: rgba(147,112,219,0.14); }
.report-dashboard-card:hover { transform: translateY(-10px); border-color: rgba(57,255,20,0.74); box-shadow: 0 38px 100px rgba(0,0,0,0.42), 0 0 48px rgba(57,255,20,0.22); }
.report-dashboard-card:hover::before { transform: scale(1.25); }
.report-dashboard-icon { position: relative; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 22px; background: rgba(57,255,20,0.12); box-shadow: inset 0 0 0 1px rgba(57,255,20,0.34), 0 0 28px rgba(57,255,20,0.14); font-size: 2.1rem; }
.report-dashboard-card h2 { position: relative; font-size: clamp(1.3rem, 3vw, 1.9rem); color: #39ff14; margin-bottom: 10px; }
.report-dashboard-card p { position: relative; color: rgba(255,255,255,0.7); line-height: 1.65; }
.report-dashboard-card > span { position: relative; align-self: flex-start; color: #07160f; background: #39ff14; border-radius: 999px; padding: 10px 16px; font-weight: 900; box-shadow: 0 0 28px rgba(57,255,20,0.32); }
@keyframes reportCardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reportFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes reportBgMove { from { background-position: 0% 0%, 100% 0%, center; } to { background-position: 12% 8%, 84% 16%, center; } }
@media (max-width: 760px) {
  .report-dashboard-grid { grid-template-columns: 1fr; }
  .report-dashboard-card { min-height: 230px; }
  .report-dashboard-nav { align-items: flex-start; flex-direction: column; }
}
body:not(.login-body):not(.dashboard-body):not(.report-dashboard-body) { background: radial-gradient(circle at 20% 10%, rgba(57,255,20,0.18), transparent 28%), radial-gradient(circle at 80% 18%, rgba(0,255,163,0.14), transparent 30%), linear-gradient(135deg, #020805 0%, #07160f 52%, #010302 100%); color: #fff; }
.header { background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border-bottom: 1px solid rgba(57,255,20,0.28); box-shadow: 0 24px 70px rgba(0,0,0,0.32), 0 0 34px rgba(57,255,20,0.10); backdrop-filter: blur(16px); }
.header-logo, .stat-pill { border: 1px solid rgba(57,255,20,0.28); background: rgba(57,255,20,0.09); box-shadow: 0 0 24px rgba(57,255,20,0.10); }
.btn-header-icon { width: 38px; height: 38px; border-radius: 14px; color: #fff; border: 1px solid rgba(57,255,20,0.34); background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(57,255,20,0.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 0 24px rgba(57,255,20,0.14); backdrop-filter: blur(12px); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.btn-header-icon:hover { transform: translateY(-2px); border-color: rgba(57,255,20,0.74); background: rgba(57,255,20,0.16); box-shadow: 0 0 34px rgba(57,255,20,0.24); }
.btn-tool { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 14px; font-weight: 800; cursor: pointer; color: #39ff14; background: rgba(57,255,20,0.12); border: 1px solid rgba(57,255,20,0.30); transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.btn-tool:hover { transform: translateY(-2px); border-color: rgba(57,255,20,0.74); background: rgba(57,255,20,0.18); box-shadow: 0 0 28px rgba(57,255,20,0.22); }
:focus-visible { outline: 2px solid rgba(57,255,20,0.7); outline-offset: 2px; }
.btn-header-icon:focus-visible { outline-offset: 3px; }
.dashboard-card:focus-visible { transform: translateY(-10px); border-color: rgba(57,255,20,0.74); box-shadow: 0 38px 100px rgba(0,0,0,0.42), 0 0 48px rgba(57,255,20,0.22); }
.header-left h1, .blok-title, .section-block-title, .price-section-label { color: #39ff14; text-shadow: 0 0 22px rgba(57,255,20,0.18); }
.header-left p, .leg, .form-group label, .section-block-title small { color: rgba(255,255,255,0.68); }
.controls, .blok-section, .modal, .section-block { background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); border: 1px solid rgba(57,255,20,0.26); box-shadow: 0 22px 64px rgba(0,0,0,0.26), 0 0 28px rgba(57,255,20,0.08); backdrop-filter: blur(14px); }
.controls { border-bottom-color: rgba(57,255,20,0.26); }
.controls select, .controls input[type=text], .form-group input, .form-group select, .form-group textarea, .payment-input, .schedule-input { background: rgba(255,255,255,0.075); border-color: rgba(57,255,20,0.25); color: #fff; }
.controls select:focus, .controls input[type=text]:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .payment-input:focus, .schedule-input:focus { border-color: rgba(57,255,20,0.78); box-shadow: 0 0 0 4px rgba(57,255,20,0.12), 0 0 24px rgba(57,255,20,0.14); }
.controls input::placeholder, .form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.38); }
.kav-card.available, .kav-card.booked, .kav-card.pemberkasan, .kav-card.sp3k, .kav-card.akad { background: rgba(255,255,255,0.08); border-color: rgba(57,255,20,0.26); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.kav-card.available { color: #39ff14; }
.kav-card.booked { color: #fdd470; }
.kav-card.pemberkasan { color: #7ec8f8; }
.kav-card.sp3k { color: #fbb96b; }
.kav-card.akad { color: #f08080; }
.kav-card.not_sold { color: #9ca3af; filter: saturate(0.5); }
.modal-header { background: linear-gradient(135deg, rgba(57,255,20,0.18), rgba(255,255,255,0.04)); border-bottom: 1px solid rgba(57,255,20,0.24); }
.purchase-tab, .price-table, .payment-section, .schedule-table-wrap { background: rgba(255,255,255,0.06); border-color: rgba(57,255,20,0.22); color: #fff; }
.purchase-tab.active, .btn-save, .btn-login, .btn-users-submit { background: #39ff14; color: #061910; box-shadow: 0 0 28px rgba(57,255,20,0.30); }
.price-table td, .schedule-table th, .schedule-table td { border-color: rgba(57,255,20,0.14); color: #fff; }
.price-table tr.total td, .price-table tr.subtotal td { color: #fff; background: rgba(57,255,20,0.14); font-weight: 900; }
.controls select option, .form-group select option { background: #061910; color: #fff; }
.controls select option:checked, .form-group select option:checked { background: #123d22; color: #39ff14; }

/* ─── SITEPLAN MODAL ─────────────────────────────────────────── */
.siteplan-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 12px;
}
.siteplan-overlay.open { display: flex; }
.siteplan-modal {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(57,255,20,0.30); border-radius: var(--radius-lg);
  width: 100%; max-width: 1100px; max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: fadeUp 0.22s cubic-bezier(.34,1.3,.64,1);
}
.siteplan-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid rgba(57,255,20,0.20);
  background: rgba(0,0,0,0.30);
}
.siteplan-header h2 { font-size: 1.1rem; color: #39ff14; text-shadow: 0 0 22px rgba(57,255,20,0.18); margin: 0; }
.siteplan-body {
  display: flex; flex: 1; overflow: hidden; position: relative;
}
.siteplan-map {
  flex: 1; overflow: hidden; padding: 12px; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.20); cursor: grab; touch-action: none;
}
.siteplan-map.grabbing { cursor: grabbing; }
.siteplan-canvas {
  position: relative; width: min(100%, 760px); transform-origin: center center;
  transition: transform 0.04s linear;
}
.siteplan-img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  user-select: none; pointer-events: none;
}
.siteplan-markers { position: absolute; inset: 0; pointer-events: none; }
.siteplan-marker {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  border: 1px solid rgba(255,255,255,0.75); border-radius: 3px;
  padding: 0; min-width: 16px; min-height: 12px;
  color: transparent; font-size: 0.5rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.25);
  cursor: pointer; pointer-events: auto; opacity: 0.85;
  transition: all 0.12s; display: flex; align-items: center; justify-content: center;
}
.siteplan-marker:hover { transform: translate(-50%, -50%) scale(2); z-index: 10; opacity: 1; color: #000; min-width: 40px; min-height: 20px; }
.siteplan-marker.available { background: #39ff14; }
.siteplan-marker.booked { background: #fdd470; }
.siteplan-marker.pemberkasan { background: #7ec8f8; }
.siteplan-marker.sp3k { background: #fbb96b; }
.siteplan-marker.akad { background: #f08080; color: #fff; }
.siteplan-marker.not_sold { background: #6b7280; color: #fff; pointer-events: none; }
.siteplan-marker:hover { transform: translate(-50%, -50%) scale(1.25); z-index: 3; }

/* ─── SITEPLAN PIN MODE ────────────────────────────────────── */
.splan-header-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.splan-pin-mode {
  display: none; padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 800;
  background: rgba(255,80,80,0.18); color: #ff6b6b; border: 1px solid rgba(255,80,80,0.4);
  animation: pinPulse 1.5s ease-in-out infinite;
}
.splan-pin-mode.on { display: inline-flex; }
@keyframes pinPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.splan-pin-input {
  width: 64px; padding: 5px 8px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(57,255,20,0.3); color: #39ff14;
  outline: none; font-family: var(--font); text-transform: uppercase;
}
.splan-pin-input:focus { border-color: rgba(57,255,20,0.78); box-shadow: 0 0 0 3px rgba(57,255,20,0.12); }
.splan-pin-input::placeholder { color: rgba(57,255,20,0.35); }
.splan-pin-btn, .splan-export-btn {
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 800;
  border: 1px solid rgba(57,255,20,0.35); cursor: pointer; transition: all 0.15s;
  background: rgba(57,255,20,0.10); color: #39ff14;
}
.splan-pin-btn:hover { background: rgba(57,255,20,0.22); }
.splan-pin-btn.active { background: rgba(255,80,80,0.25); color: #ff6b6b; border-color: rgba(255,80,80,0.45); }
.splan-export-btn { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.2); }
.splan-export-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.siteplan-map.pinmode { cursor: crosshair; }
.siteplan-legend {
  width: 200px; flex-shrink: 0; padding: 16px;
  border-left: 1px solid rgba(57,255,20,0.20);
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(0,0,0,0.25); overflow-y: auto;
}
.siteplan-stats { display: flex; flex-direction: column; gap: 6px; }
.splan-stat {
  background: rgba(255,255,255,0.06); border-radius: var(--radius-sm);
  padding: 6px 10px; text-align: center; border: 1px solid rgba(255,255,255,0.08);
}
.splan-stat .num { font-size: 1.3rem; font-weight: 800; display: block; line-height: 1.2; }
.splan-stat .lbl { font-size: 0.62rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.3px; }
.splan-stat.available .num { color: #39ff14; }
.splan-stat.booked .num { color: #fdd470; }
.splan-stat.pemberkasan .num { color: #7ec8f8; }
.splan-stat.sp3k .num { color: #fbb96b; }
.splan-stat.akad .num { color: #f08080; }
.splan-stat.total .num { color: #fff; }

.siteplan-legends { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(57,255,20,0.15); }
.sleg { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.8); }
.sleg-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

@media (max-width: 760px) {
  .siteplan-body { flex-direction: column; }
  .siteplan-legend { width: 100%; border-left: none; border-top: 1px solid rgba(57,255,20,0.20); flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .siteplan-stats { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .splan-stat { flex: 1; min-width: 60px; padding: 4px 6px; }
  .splan-stat .num { font-size: 1rem; }
  .siteplan-legends { flex-direction: row; flex-wrap: wrap; border-top: none; padding-top: 0; }
}
