﻿      width: 28px;
      height: 28px;
      border-radius: var(--r-sm);
      background: var(--surface2);
      border: 1px solid var(--border);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 300;
      line-height: 1;
      color: var(--text-muted);
      transition: background .15s, color .15s, transform .2s var(--ease)
    }

    .modal-close:hover {
      background: #fee2e2;
      color: var(--red);
      border-color: #fecaca;
      transform: rotate(90deg)
    }

    .modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 20px 22px
    }

    .modal-footer {
      padding: 14px 22px;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-shrink: 0
    }

    .form-row {
      display: grid;
      gap: 14px;
      grid-template-columns: 1fr 1fr;
      margin-bottom: 14px
    }

    .form-row.cols-1 {
      grid-template-columns: 1fr
    }

    .form-row.cols-3 {
      grid-template-columns: 1fr 1fr 1fr
    }

    .form-group {
      margin-bottom: 14px
    }

    .form-group:last-child {
      margin-bottom: 0
    }

    .form-hint {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px
    }

    .form-section {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-dim);
      letter-spacing: .5px;
      text-transform: uppercase;
      padding: 10px 0 6px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 14px
    }

    /* â”€â”€ SP TIMELINE â”€â”€ */
    .timeline {
      position: relative;
      padding-left: 24px
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 7px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: var(--border)
    }

    .timeline-item {
      position: relative;
      margin-bottom: 16px
    }

    .timeline-item:last-child {
      margin-bottom: 0
    }

    .timeline-dot {
      position: absolute;
      left: -24px;
      top: 3px;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      border: 2px solid var(--surface);
      box-shadow: 0 0 0 2px var(--border)
    }

    .timeline-dot-survey {
      background: #3b82f6
    }

    .timeline-dot-sp1 {
      background: #d97706
    }

    .timeline-dot-sp2 {
      background: #ea580c
    }

    .timeline-dot-sp3 {
      background: #dc2626
    }

    .timeline-dot-ditertibkan {
      background: #16a34a
    }

    .timeline-dot-dieskalasi {
      background: #1d4ed8
    }

    .timeline-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text)
    }

    .timeline-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px
    }

    .timeline-note {
      font-size: 12px;
      color: var(--text-dim);
      margin-top: 4px;
      background: var(--surface2);
      border-radius: var(--r-sm);
      padding: 6px 10px;
      border-left: 3px solid var(--border2)
    }

    /* â”€â”€ DETAIL PANEL â”€â”€ */
    .detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 16px
    }

    .detail-row {
      display: flex;
      flex-direction: column;
      gap: 2px
    }

    .detail-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .5px
    }

    .detail-value {
      font-size: 13px;
      color: var(--text)
    }

    .detail-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 14px 0;
      border-top: 1px solid var(--border);
      margin-top: 4px
    }

    /* â”€â”€ TOAST â”€â”€ */
    #toast-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none
    }

    .toast {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r);
      padding: 12px 16px;
      box-shadow: var(--shadow-lg);
      font-size: 13px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 260px;
      max-width: 360px;
      pointer-events: all;
      animation: slideIn .2s var(--ease)
    }

    .toast-success {
      border-left: 3px solid var(--green)
    }

    .toast-error {
      border-left: 3px solid var(--red)
    }

    .toast-info {
      border-left: 3px solid var(--navy)
    }

    .toast-warning {
      border-left: 3px solid var(--amber)
    }

    @keyframes slideIn {
      from {
        transform: translateX(20px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* â”€â”€ LOADING â”€â”€ */
    #loading-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(240, 243, 248, .8);
      z-index: 1500;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 12px
    }

    #loading-overlay.show {
      display: flex
    }

    .spinner {
      width: 36px;
      height: 36px;
      border: 3px solid var(--border);
      border-top-color: var(--navy);
      border-radius: 50%;
      animation: spin .7s linear infinite
    }

    @keyframes spin {
      to {
        transform: rotate(360deg)
      }
    }

    .loading-text {
      font-size: 13px;
      color: var(--text-muted);
      font-family: var(--mono)
    }

    /* â”€â”€ OFFLINE BANNER â”€â”€ */
    #offline-banner {
      display: none;
      background: #fef3c7;
      border-bottom: 1px solid #fde68a;
      padding: 8px 20px;
      font-size: 12px;
      color: #92400e;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      flex-shrink: 0
    }

