:root {
    /* Civic Editorial Light Theme (Aligned with Portal Warga & App-Screen Tokens) */
    --brand-blue: #1e40af;       /* Deep Civic Cobalt */
    --brand-sky: #2563eb;        /* Vivid Royal Blue */
    --brand-darkblue: #1e3a8a;   /* Executive Navy */
    --brand-lime: #10b981;       /* Emerald Green */
    --brand-lime-dark: #059669;
    --brand-surface: #f4f6fa;

    /* Status Badges */
    --badge-peach: #ffedd5;
    --badge-peach-text: #9a3412;
    --badge-cyan: #e0f2fe;
    --badge-cyan-text: #0369a1;
    --badge-mint: #dcfce7;
    --badge-mint-text: #15803d;
    --badge-purple: #f3e8ff;
    --badge-purple-text: #6b21a8;

    --primary: #1d4ed8;          /* High contrast Royal Blue */
    --primary-dark: #1e40af;
    --primary-darker: #172554;
    --primary-light: #eef2ff;    /* Portal Warga surface tint */
    --primary-glow: rgba(29, 78, 216, 0.12);
    
    --secondary: #0284c7;        /* Cerulean / Sky Blue */
    --accent: #10b981;           /* Emerald Accent */
    --accent-dark: #059669;
    --accent-hover: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.18);

    --danger: #dc2626;
    --success: #059669;
    
    --bg-main: #eef1f7;          /* Framed-sheet ground: 1 blue-grey tone step */
    --bg-card: #ffffff;          /* Crisp Flat White Surfaces */
    --bg-card-hover: #ffffff;
    
    --text-main: #0f172a;        /* Deep Ink Black */
    --text-muted: #475569;       /* Readable Slate Grey (4.5:1+) */
    --text-light: #64748b;       /* Tertiary Slate */
    --border-color: #cbd5e1;     /* Control Border (Portal Warga field-border) */
    --border-subtle: #e5e7eb;    /* Surface / Row Rule */
    --border-focus: #1d4ed8;
    
    /* Clean Architectural Corner Radius (Tight & Disciplined) */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;

    /* Tailwind Gradient Position Fallback */
    --tw-gradient-from-position: 0%;
    --tw-gradient-to-position: 100%;
    
    /* Flat Surface Tokens (Borders on cards, shadows reserved for floating layers) */
    --shadow-subtle: none;
    --shadow-card: none;
    --shadow-paper: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-pill: none;
    --shadow-float: 0 12px 28px -6px rgba(15, 23, 42, 0.10), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: none;
    --shadow-yellow: none;
    
    /* Civic App-Screen Tokens */
    --civic-primary: #1d4ed8;
    --civic-primary-hover: #1e40af;
    --civic-primary-darker: #172554;
    --civic-primary-surface: #eef2ff;
    --civic-border: #e5e7eb;
    --civic-border-focus: #1d4ed8;
    --shadow-bento: none;
    --shadow-card-elevated: 0 2px 8px rgba(15, 23, 42, 0.04);
    --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.14);

    --transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
  }

  html {
    font-size: 14px;
  }

  body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    padding: 14px clamp(14px, 2.5vw, 28px) 48px;
    position: relative;
  }

  /* Flat calm canvas matching Portal Warga (zero gradient noise) */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-main);
  }

  /* Custom Clean Scrollbar (Floating Without Grey Stripe Track) */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  ::-webkit-scrollbar-track {
    background: transparent !important;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-pill);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  /* ========================================================================== */
  /* LENIS SMOOTH SCROLL & GPU ACCELERATION (UI/UX PRO MAX)                     */
  /* ========================================================================== */
  html.lenis, html.lenis body {
    height: auto;
  }
  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
  .lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
  }
  .lenis.lenis-stopped {
    overflow: hidden;
  }
  .lenis.lenis-smooth iframe {
    pointer-events: none;
  }

  /* Layout Framework (Fluid Centered Container min(96vw, 1440px)) */
  .app-container {
    width: min(96vw, 1440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
  }

  /* Top Navigation Tab Pills (Tepat seperti Screenshot Stitch) */
  .top-nav-tab {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .top-nav-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
  }
  .top-nav-tab.active {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  }

  /* Sidebar Styling - Modern Dark Navy & Royal Cerulean Accents */
  /* ========================================================================= */
  /* EDITORIAL TOP NAVIGATION BAR (Portal Warga Simplicity + Underline Tabs)    */
  /* ========================================================================= */
  #main-header-stitch {
    position: relative !important;
    z-index: 100 !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  #main-top-navbar {
    display: flex !important;
    align-items: center !important;
    gap: clamp(14px, 1.8vw, 24px) !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: relative !important;
    z-index: 110 !important;
  }

  #main-top-navbar .top-nav-tab,
  #main-top-navbar > .nav-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 10px 2px !important;
    margin-bottom: -1px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.16s ease, border-color 0.16s ease !important;
    transform: none !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    user-select: none !important;
    flex-shrink: 0 !important;
  }

  #main-top-navbar .top-nav-tab:hover,
  #main-top-navbar > .nav-item:hover {
    background: transparent !important;
    color: #0f172a !important;
    border-bottom-color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #main-top-navbar .top-nav-tab.active,
  #main-top-navbar > .nav-item.active {
    background: transparent !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #1d4ed8 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  #main-top-navbar .top-nav-tab.active svg,
  #main-top-navbar > .nav-item.active svg {
    color: #1d4ed8 !important;
  }
  #main-top-navbar .top-nav-tab.active::before,
  #main-top-navbar > .nav-item.active::before {
    display: none !important;
  }

  /* ========================================================================= */
  /* CATEGORIZED DROPDOWN NAVIGATION (Clean White Surface Overlay)             */
  /* ========================================================================= */
  .nav-dropdown-group {
    position: relative !important;
    display: inline-block !important;
  }

  /* Dropdown Trigger Button */
  .nav-dropdown-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  /* Dropdown Trigger Active State (Underline tab matching active nav) */
  .nav-dropdown-btn.active {
    background: transparent !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #1d4ed8 !important;
    box-shadow: none !important;
  }
  .nav-dropdown-btn.active svg {
    color: #1d4ed8 !important;
  }
  .nav-dropdown-btn.active .dropdown-chevron {
    color: #1d4ed8 !important;
  }

  /* Rotating Chevron Arrow */
  .dropdown-chevron {
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .nav-dropdown-group:hover .dropdown-chevron,
  .nav-dropdown-group.open .dropdown-chevron {
    transform: rotate(180deg) !important;
  }

  /* Floating Dropdown Menu (Clean Solid Surface) */
  .nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 310px !important;
    max-width: 360px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow-float) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transform-origin: top left !important;
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99999 !important;
    pointer-events: none;
    display: block !important;
  }

  /* Invisible hover bridge: mencegah kursor kehilangan hover saat berpindah ke menu */
  .nav-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -16px !important;
    left: 0 !important;
    right: 0 !important;
    height: 16px !important;
  }

  /* Dropdown Open Trigger (Hover di Desktop & Click di Mobile/Tablet) */
  .nav-dropdown-group:hover > .nav-dropdown-menu,
  .nav-dropdown-group.open > .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
  }

  /* Override paksa saat submenu diklik: langsung tutup dan putus :hover seketika (UI/UX Pro Max) */
  .nav-dropdown-group.force-closed > .nav-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) scale(0.97) !important;
    pointer-events: none !important;
    transition: none !important;
  }
  .nav-dropdown-group.force-closed .dropdown-chevron {
    transform: rotate(0deg) !important;
  }

  /* Animasi Loading & Micro-Interactions Pencarian NIK (UI/UX Pro Max GSAP) */
  .search-input-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: var(--primary);
    pointer-events: none;
    z-index: 2;
  }
  /* Tombol Hapus / Bersihkan Kolom Pencarian NIK (UI/UX Pro Max) */
  .btn-clear-search-nik {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    z-index: 5;
    outline: none;
  }
  .btn-clear-search-nik:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
    transform: translateY(-50%) scale(1.08);
  }
  .btn-clear-search-nik:active {
    transform: translateY(-50%) scale(0.95);
  }
  .search-input-with-clear {
    padding-right: 68px !important;
  }
  .search-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    flex-shrink: 0;
  }
  .autocomplete-item {
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
    user-select: none;
  }
  .autocomplete-item:hover {
    background: #f0fdf4 !important;
  }
  .autocomplete-item:active {
    transform: scale(0.99);
  }

  /* Dropdown Item inside Menu Card */
  #main-top-navbar .nav-dropdown-menu .nav-dropdown-item,
  #main-top-navbar .nav-dropdown-menu .nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: inherit !important;
    white-space: normal !important;
    text-align: left !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    user-select: none !important;
  }

  #main-top-navbar .nav-dropdown-menu .nav-dropdown-item:hover,
  #main-top-navbar .nav-dropdown-menu .nav-item:hover {
    background: #f4f6fa !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  #main-top-navbar .nav-dropdown-menu .nav-dropdown-item.active,
  #main-top-navbar .nav-dropdown-menu .nav-item.active {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #0f172a !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #main-top-navbar .nav-dropdown-menu .nav-dropdown-item.active .text-xs,
  #main-top-navbar .nav-dropdown-menu .nav-item.active .text-xs {
    color: #2575FC !important;
    font-weight: 800 !important;
  }

  #main-top-navbar .nav-dropdown-menu .item-arrow {
    transition: transform 0.2s ease, opacity 0.2s ease !important;
  }
  #main-top-navbar .nav-dropdown-menu .nav-dropdown-item:hover .item-arrow {
    transform: translateX(3px) !important;
  }

  .nav-item svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
    flex-shrink: 0;
  }

  /* Content Scrollable - Calm Civic Canvas */
  .content-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px clamp(12px, 2vw, 24px) 36px;
    background: transparent;
  }

  .view-pane {
    display: none;
    will-change: transform, opacity;
  }

  .view-pane.active {
    display: block;
  }

  /* Clean Framed Surface Card */
  .app-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--civic-border);
    box-shadow: none;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    position: relative;
  }

  .app-card:hover {
    border-color: #cbd5e1;
    box-shadow: none;
  }

  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
  }

  .card-title svg {
    color: var(--primary);
  }

  /* Form Elements */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
  }

  .col-12 { grid-column: span 12; }
  .col-8 { grid-column: span 8; }
  .col-6 { grid-column: span 6; }
  .col-4 { grid-column: span 4; }
  .col-3 { grid-column: span 3; }

  @media (max-width: 992px) {
    .col-3 { grid-column: span 6; }
    .col-4 { grid-column: span 6; }
  }

  @media (max-width: 640px) {
    .col-3, .col-4, .col-6, .col-8 { grid-column: span 12; }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
  }

  .form-label .required {
    color: var(--danger);
    margin-left: 2px;
  }

  .form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
  }

  .form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
  }

  .form-control:disabled, .form-control[readonly] {
    background-color: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
  }

  textarea.form-control {
    min-height: 72px;
    resize: vertical;
  }

  /* ========================================================================= */
  /* MODERN HTML5 FORM CONTROLS & UI/UX PRO MAX DESIGN SYSTEM                 */
  /* ========================================================================= */

  /* 1. Native Select Modern Fallback Styling */
  select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
  }
  select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E");
  }

  /* 2. Modern Checkbox Control (Apple iOS & Civic Executive Squircle) */
  input[type="checkbox"]:not(.toggle-switch-checkbox) {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background-color: #ffffff;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    position: relative;
    flex-shrink: 0;
  }
  input[type="checkbox"]:not(.toggle-switch-checkbox):hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2.5px rgba(29, 78, 216, 0.08);
  }
  input[type="checkbox"]:not(.toggle-switch-checkbox):checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
  }
  input[type="checkbox"]:not(.toggle-switch-checkbox):checked::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(0.5px, -0.5px);
    display: block;
  }
  input[type="checkbox"]:not(.toggle-switch-checkbox):focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
  }

  /* 3. Modern Number Input (Clean Spinners) */
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }

  /* 4. Modern File Upload Selector Button */
  input[type="file"]::file-selector-button {
    border: none;
    background: var(--civic-primary-surface, #eff6ff);
    color: var(--primary);
    font-weight: 700;
    font-size: 11.5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 12px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
  }
  input[type="file"]::file-selector-button:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  }

  /* 5. Modern Date Input Indicator */
  input[type="date"] {
    cursor: pointer;
  }
  input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.15);
  }

  /* 6. Form Validation Micro-Feedback & Error Shake */
  .form-control.is-invalid,
  .sru-custom-select-trigger.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
    animation: sruShake 0.35s ease;
  }
  @keyframes sruShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
  }

  /* ========================================================================= */
  /* UNIVERSAL SRU-SELECT COMPONENT (UI/UX PRO MAX & GSAP MOTION)              */
  /* ========================================================================= */

  .sru-select-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
  }
  .sru-select-wrapper.open {
    z-index: 1000;
  }

  .sru-custom-select-trigger {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    text-align: left;
    min-height: 38px;
    box-sizing: border-box;
  }
  .sru-custom-select-trigger:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
  }
  .sru-custom-select-trigger:focus,
  .sru-select-wrapper.open .sru-custom-select-trigger {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    background-color: #ffffff;
  }
  .sru-custom-select-trigger.disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
  }

  .sru-custom-select-trigger .trigger-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
  }
  .sru-custom-select-trigger .trigger-text.placeholder {
    color: var(--text-muted);
    font-weight: 500;
  }
  .sru-custom-select-trigger .trigger-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: var(--text-muted);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
  }
  .sru-select-wrapper.open .trigger-chevron {
    color: var(--primary);
    transform: rotate(180deg);
  }

  .sru-custom-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 999999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.08);
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    display: none;
    outline: none;
  }
  .sru-custom-select-menu::-webkit-scrollbar {
    width: 5px;
  }
  .sru-custom-select-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
  }

  .sru-select-search-box {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 4px 4px 6px 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
    z-index: 2;
  }
  .sru-select-search-input {
    width: 100%;
    padding: 6px 10px;
    font-size: 11.5px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    background: #f8fafc;
    font-family: inherit;
    transition: var(--transition);
  }
  .sru-select-search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 2px var(--primary-glow);
  }

  .sru-custom-select-option {
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
  }
  .sru-custom-select-option:hover,
  .sru-custom-select-option.is-highlighted {
    background-color: #eff6ff;
    color: var(--primary);
    font-weight: 600;
  }
  .sru-custom-select-option.is-selected {
    background-color: #eff6ff;
    color: var(--primary);
    font-weight: 700;
  }
  .sru-custom-select-option .option-check {
    display: none;
    margin-left: 8px;
    color: var(--primary);
  }
  .sru-custom-select-option.is-selected .option-check {
    display: inline-block;
  }
  .sru-custom-select-option.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }
  .sru-custom-select-option-empty {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
  }

  /* OCR Dropzone Component */
  .ocr-dropzone {
    border: 2px dashed #93c5fd;
    background: #f0f7ff;
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .ocr-dropzone:hover, .ocr-dropzone.dragover {
    border-color: var(--primary);
    background: #e0f2fe;
    transform: scale(1.002);
  }

  .ocr-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  }

  .ocr-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-darker);
  }

  .ocr-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
  }

  .ocr-preview-container {
    display: none;
    margin-top: 12px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 180px;
  }

  .ocr-preview-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .ocr-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-lg);
    z-index: 10;
  }

  .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.75s linear infinite;
  }

  .spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
  }

  .btn-primary .spinner-small,
  .btn-danger .spinner-small,
  button.btn .spinner-small[style*="#ffffff"] {
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Table Design (Sticky Header & Fluid Density) */
  .table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    max-height: 72vh;
    position: relative;
  }

  .custom-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
  }

  .custom-table thead {
    position: sticky;
    top: 0;
    z-index: 15;
  }

  .custom-table th {
    position: sticky;
    top: 0;
    z-index: 15;
    background-color: #f8fafc;
    padding: 12px 14px;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    box-shadow: none;
  }

  /* Modern Tabular Figures & Numerics for High Readability */
  .font-tabular, .badge-agenda-no, .next-pill-number, .arsip-bento-value, .stat-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "zero" 1;
  }

  .custom-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
  }

  .custom-table tbody tr {
    transition: var(--transition);
  }

  .custom-table tbody tr:hover {
    background-color: #f8fafc;
  }

  /* Badges & Status */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3.5px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
  }

  .badge-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0;
  }

  .badge-primary {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe;
  }

  .badge-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fde68a;
  }

  .badge-secondary {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
  }

  .badge-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca;
  }

  /* Flat Editorial Action Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8.5px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
  }

  .btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: none;
  }

  .btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    box-shadow: none;
  }

  .btn-accent, .btn-warning {
    background: #fbbf24 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    font-weight: 700;
  }

  .btn-accent:hover, .btn-warning:hover {
    background: #f59e0b !important;
    color: #0f172a !important;
  }

  .btn-secondary {
    background-color: #ffffff;
    color: #1e293b !important;
    border: 1px solid var(--border-color);
    box-shadow: none;
  }

  .btn-secondary:hover {
    background-color: #f8fafc;
    color: #0f172a !important;
    border-color: #94a3b8;
  }

  .btn-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
  }

  .btn-danger:hover {
    background-color: #fecaca;
  }

  .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
  }

  .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Live Preview Paper */
  .paper-sheet {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-float);
    border-radius: 6px;
    padding: 38px 42px;
    color: #000000;
    font-family: Arial, sans-serif;
    line-height: 1.35;
    max-width: 760px;
    margin: 0 auto;
    font-size: 11pt;
  }

  .paper-kop {
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  .paper-kop h3 {
    font-size: 13pt;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
  }

  .paper-kop h2 {
    font-size: 15pt;
    font-weight: bold;
    margin: 3px 0;
    line-height: 1.2;
  }

  .paper-kop p {
    font-size: 9pt;
    font-style: italic;
    margin: 2px 0;
  }

  /* Modals */
  .modal-backdrop {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    margin: 0 !important;
  }

  .modal-backdrop.active {
    display: flex !important;
  }

  .modal-box {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    border: 1px solid #cbd5e1;
  }

  .modal-box form {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    margin: 0;
  }

  .modal-box.modal-lg {
    max-width: 880px;
  }

  @keyframes modalSlide {
    from { opacity: 0; transform: scale(0.93) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .modal-body {
    padding: 22px;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  /* Hilangkan total garis tepi scrollbar pada seluruh modal & popup agar bersih 100% */
  .modal-box,
  .modal-body,
  .modal-box * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .modal-box::-webkit-scrollbar,
  .modal-body::-webkit-scrollbar,
  .modal-box *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }

  .modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8fafc;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
  }

  /* ========================================================================= */
  /* FRAMED-SHEET EDITORIAL TOAST NOTIFICATION                                 */
  /* ========================================================================= */
  .toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10000000 !important;
    pointer-events: none;
    max-width: calc(100vw - 40px);
  }

  .toast {
    pointer-events: auto;
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: 3px solid #1d4ed8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .toast.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .toast.is-leaving {
    opacity: 0;
    transform: translateY(6px);
  }

  .toast.toast-success { border-left-color: #15803d; }
  .toast.toast-success .toast-icon { color: #15803d; }

  .toast.toast-error { border-left-color: #b91c1c; }
  .toast.toast-error .toast-icon { color: #b91c1c; }

  .toast.toast-warning { border-left-color: #b45309; }
  .toast.toast-warning .toast-icon { color: #b45309; }

  .toast.toast-info { border-left-color: #1d4ed8; }
  .toast.toast-info .toast-icon { color: #1d4ed8; }

  .toast-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .toast-message {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
  }

  .toast-close-btn {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    width: 26px;
    height: 26px;
    margin: -3px -4px -3px 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.14s ease, color 0.14s ease;
  }

  .toast-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
  }

  @media (max-width: 639px) {
    .toast-container {
      bottom: 84px;
      left: 12px;
      right: 12px;
      top: auto;
      max-width: none;
      width: auto;
      align-items: stretch;
    }
    .toast {
      min-width: 0;
      max-width: 100%;
      width: 100%;
    }
  }

  /* ========================================================================= */
  /* SMART-FILL GLOW PULSE & GLOBAL TACTILE PHYSICS TOKENS                     */
  /* ========================================================================= */
  @keyframes smartPulseGlow {
    0% {
      background-color: rgba(37, 99, 235, 0.18);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
      transform: scale(1.015);
    }
    50% {
      background-color: rgba(16, 185, 129, 0.12);
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
    }
    100% {
      background-color: #ffffff;
      box-shadow: none;
      transform: scale(1);
    }
  }
  .smart-pulse-active {
    animation: smartPulseGlow 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Hardware GPU acceleration for tactile interactive buttons & cards */
  button, .btn, .btn-bounce, .smartstack-tab-btn, .civic-royal-btn-sync, 
  .next-sequence-pill, .stat-card-item, .quick-chip-btn, .tren-btn-quick-create {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Autocomplete Suggestions (UI/UX Pro Max) */
  .autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.16), 0 6px 12px -2px rgba(15, 23, 42, 0.08);
    max-height: 260px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 60;
    margin-top: 4px;
    display: none;
  }

  .autocomplete-dropdown::-webkit-scrollbar,
  .nikah-suggest-dropdown::-webkit-scrollbar {
    width: 6px;
  }
  .autocomplete-dropdown::-webkit-scrollbar-track,
  .nikah-suggest-dropdown::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 99px;
  }
  .autocomplete-dropdown::-webkit-scrollbar-thumb,
  .nikah-suggest-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
  }
  .autocomplete-dropdown::-webkit-scrollbar-thumb:hover,
  .nikah-suggest-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }

  .autocomplete-item {
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
  }

  .autocomplete-item:hover {
    background-color: #eff6ff;
    color: var(--primary-dark);
  }

  .autocomplete-item strong {
    color: var(--text-main);
    display: block;
    font-size: 12.5px;
  }

  .autocomplete-item span {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* Template Bento Grid for Master Template View */
  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }

  .template-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    box-shadow: none;
  }

  .template-card:hover {
    border-color: var(--primary);
    background-color: #f8fafc;
    box-shadow: none;
  }

  /* Responsive Adjustments */
  @media (max-width: 1024px) {
    .col-8, .col-6, .col-4, .col-3 {
      grid-column: span 12;
    }
    .content-container {
      padding: 16px 16px 32px;
    }
  }

  /* =========================================================================
     ANIMASI SCANNER AI OCR (Framed-Sheet Editorial: Clean Solid Scan Line)
     ========================================================================= */
  .ocr-preview-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
    border: 1px solid #cbd5e1;
  }

  .ocr-scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1d4ed8;
    box-shadow: none;
    animation: laserSweep 1.8s ease-in-out infinite alternate;
    z-index: 10;
  }

  .ocr-grid-overlay {
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 5;
  }

  @keyframes laserSweep {
    0% { top: 2%; opacity: 0.75; }
    50% { opacity: 1; }
    100% { top: 96%; opacity: 0.75; }
  }

  /* ==========================================================================
     MASTERCLASS INTERACTIVE ANIMATION & MICRO-PHYSICS SYSTEM
     ========================================================================== */

  /* 1. Bento Stat Cards: Physics Hover */
  .stat-card-item {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    position: relative;
    border-radius: 24px;
    will-change: transform, box-shadow;
  }
  .stat-card-item:hover {
    transform: translateY(-6px) scale(1.025);
  }

  /* Ambient Glow Shadows per Kategori Kartu Bento */
  .stat-card-item:nth-child(1):hover { box-shadow: 0 18px 38px -6px rgba(3, 105, 161, 0.22) !important; border-color: #7dd3fc !important; }
  .stat-card-item:nth-child(2):hover { box-shadow: 0 18px 38px -6px rgba(37, 117, 252, 0.25) !important; border-color: #93c5fd !important; }
  .stat-card-item:nth-child(3):hover { box-shadow: 0 18px 38px -6px rgba(192, 86, 33, 0.22) !important; border-color: #fed7aa !important; }
  .stat-card-item:nth-child(4):hover { box-shadow: 0 18px 38px -6px rgba(217, 119, 6, 0.22) !important; border-color: #fde68a !important; }
  .stat-card-item:nth-child(5):hover { box-shadow: 0 18px 38px -6px rgba(124, 58, 237, 0.22) !important; border-color: #ddd6fe !important; }
  .stat-card-item:nth-child(6):hover { box-shadow: 0 18px 38px -6px rgba(13, 148, 136, 0.22) !important; border-color: #99f6e4 !important; }
  .stat-card-item:nth-child(7):hover { box-shadow: 0 18px 38px -6px rgba(16, 185, 129, 0.22) !important; border-color: #a7f3d0 !important; }

  /* 2. Launchpad Quick Action Cards: Spring Bounce & Kinetic Arrows */
  .launchpad-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    position: relative;
    will-change: transform, box-shadow;
  }
  .launchpad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -4px rgba(0, 30, 120, 0.14) !important;
  }
  .launchpad-card:hover .action-arrow {
    transform: translateX(6px);
  }
  .launchpad-card:hover .group-hover\:scale-105 {
    transform: scale(1.15) rotate(5deg) !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  }

  /* 2. Staggered Page Entrance Animation */
  @keyframes fadeSlideUp {
    0% {
      opacity: 0;
      transform: translateY(18px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .animate-entrance {
    animation: fadeSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .anim-delay-1 { animation-delay: 0.05s; }
  .anim-delay-2 { animation-delay: 0.12s; }
  .anim-delay-3 { animation-delay: 0.20s; }
  .anim-delay-4 { animation-delay: 0.28s; }
  .anim-delay-5 { animation-delay: 0.36s; }

  /* ==========================================================================
     SHIMMER SKELETON LOADER PRO MAX (TABLE & CARD PLACEHOLDERS)
     ========================================================================== */
  @keyframes skeletonSweep {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  .skeleton-shimmer {
    background: linear-gradient(
      90deg,
      #f1f5f9 0%,
      #e2e8f0 35%,
      #f8fafc 50%,
      #e2e8f0 65%,
      #f1f5f9 100%
    );
    background-size: 200% 100%;
    animation: skeletonSweep 1.6s ease-in-out infinite;
    border-radius: 6px;
    display: inline-block;
  }

  .skeleton-row td {
    padding: 13px 14px;
    vertical-align: middle;
  }

  .skeleton-bar {
    height: 12px;
    border-radius: 6px;
    display: block;
  }

  .skeleton-bar-sm {
    height: 9px;
    border-radius: 4px;
    display: block;
  }

  .skeleton-pill {
    height: 22px;
    border-radius: 9999px;
    display: inline-block;
  }

  /* 6. Universal Tactile Click Physics */
  button:active,
  .btn:active,
  .btn-bounce:active,
  .stat-card-item:active,
  .launchpad-card:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
  }

  /* 7. Primary CTA Buttons (Flat & Clean, zero shimmer beam) */
  .btn-primary, .btn-table-pdf {
    position: relative;
  }

  /* 8. Interactive Button Physics (Flat, zero bounce/lift) */
  .btn-bounce {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  .btn-bounce:hover {
    transform: none;
  }

  /* 9. Progress Bar Transition */
  .progress-bar-fill {
    transition: width 0.45s ease;
  }

  /* Accessibility: Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    .animate-entrance {
      animation: none !important;
      transform: none !important;
    }
    .btn-bounce,
    .stat-card-item,
    .progress-bar-fill,
    .launchpad-card {
      transition: none !important;
    }
  }

  /* ==========================================================================
     PRINT STYLESHEET (100% Anti-Blank & Bersih untuk Dokumen Surat & Rekapitulasi)
     ========================================================================== */
  @media print {
    @page {
      size: A4 portrait;
      margin: 10mm 15mm 10mm 15mm;
    }

    *, *::before, *::after {
      box-shadow: none !important;
      text-shadow: none !important;
    }

    html, body {
      background: #ffffff !important;
      color: #000000 !important;
      margin: 0 !important;
      padding: 0 !important;
      font-size: 10.5pt !important;
      line-height: 1.35 !important;
      width: 100% !important;
      height: auto !important;
      overflow: visible !important;
    }

    /* Sembunyikan elemen UI Aplikasi */
    .modal-header,
    .modal-footer,
    .btn,
    #live-clock,
    .toast-container,
    .modal-backdrop:not(.active),
    .view-pane {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      width: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    /* Bebaskan container dari flex/overflow constraint */
    .app-container,
    .content-container,
    .modal-backdrop.active,
    .modal-box {
      display: block !important;
      position: static !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      max-height: none !important;
      height: auto !important;
      overflow: visible !important;
      backdrop-filter: none !important;
    }

    .modal-body {
      padding: 0 !important;
      background: transparent !important;
      overflow: visible !important;
      max-height: none !important;
    }

    /* Kertas Dokumen Cetak */
    .paper-sheet,
    #preview-paper-sheet,
    #preview-modal-content-container,
    #rekomendasi-modal-paper-container,
    #drive-preview-paper-container,
    .paper-berita-acara,
    .paper-rekomendasi {
      display: block !important;
      visibility: visible !important;
      position: relative !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 0 !important;
      box-shadow: none !important;
      border: none !important;
      background: #ffffff !important;
      color: #000000 !important;
      font-family: Arial, sans-serif !important;
      page-break-after: avoid !important;
      page-break-inside: avoid !important;
    }

    #preview-paper-sheet *,
    #preview-modal-content-container *,
    #rekomendasi-modal-paper-container *,
    #drive-preview-paper-container *,
    .paper-berita-acara *,
    .paper-rekomendasi * {
      visibility: visible !important;
      color: #000000 !important;
    }

    .page-break-after {
      page-break-after: always !important;
      break-after: page !important;
    }

    table {
      page-break-inside: avoid;
    }
  }

  /* ========================================================================= */
  /* KUMPULAN KODE PLACEHOLDER GRID & CARDS (BENTO MODERN DESIGN) */
  /* ========================================================================= */
  .placeholder-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 14px;
  }

  .placeholder-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    box-shadow: none;
    position: relative;
    min-height: 175px;
  }

  .placeholder-card:hover {
    border-color: var(--primary);
    background-color: #f8fafc;
    box-shadow: none;
  }

  .placeholder-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f4ff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .placeholder-code-text {
    font-family: 'JetBrains Mono', monospace, Consolas;
    font-size: 13.5px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.02em;
    user-select: all;
  }

  .btn-copy-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1d4ed8;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  .btn-copy-tag:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
  }

  .btn-copy-tag.copied {
    background: #065f46 !important;
    color: #ffffff !important;
    border-color: #065f46 !important;
  }

  .placeholder-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .placeholder-badge-cat {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
  }

  .placeholder-badge-type {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }

  .placeholder-badge-custom {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
  }

  .placeholder-example-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    padding: 7px 10px;
    margin-bottom: 12px;
  }

  .placeholder-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
  }

  .btn-category-plc {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .btn-category-plc:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
  }

  .btn-category-plc.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
  }

  /* ========================================================================= */
  /* GAYA FITUR SURAT MASSAL / KOLEKTIF & MULTI-SELECT */
  /* ========================================================================= */
  .col-kolektif-checkbox {
    width: 38px;
    text-align: center;
    vertical-align: middle;
    display: none;
  }

  .kolektif-mode-active .col-kolektif-checkbox {
    display: table-cell !important;
  }

  .custom-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 4px;
  }

  .row-selected {
    background-color: #eff6ff !important;
    border-left: 3.5px solid #2563eb !important;
  }

  /* Interaksi Baris Tabel saat Mode Seleksi / Kolektif */
  .kolektif-mode-active #penduduk-table-body tr {
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
  }

  .kolektif-mode-active #penduduk-table-body tr:hover {
    background-color: #eff6ff !important;
    transform: translateY(-1px);
  }

  #arsip-table-body tr {
    transition: background-color 0.15s ease, transform 0.12s ease;
  }

  #arsip-table-body tr:hover {
    background-color: #f8fafc;
  }

  .row-click-pulse {
    animation: rowClickPulseAnim 0.25s ease !important;
  }

  @keyframes rowClickPulseAnim {
    0% {
      background-color: #eff6ff !important;
    }
    50% {
      background-color: #dbeafe !important;
    }
    100% {
      background-color: transparent;
    }
  }

  .floating-bulk-bar {
    position: sticky;
    bottom: 20px;
    z-index: 999 !important;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    animation: bulkBarSlideUp 0.22s ease;
  }

  .btn-cancel-selection {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    outline: none !important;
    text-decoration: none !important;
  }
  .btn-cancel-selection:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none !important;
  }
  .btn-cancel-selection:active {
    transform: none !important;
  }

  .floating-bulk-bar button {
    cursor: pointer !important;
    position: relative;
    z-index: 1000 !important;
  }

  @keyframes bulkBarSlideUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ========================================================================= */
  /* BUKU AGENDA & ARSIP SURAT KELUAR (EDITORIAL FRAMED-SHEET)                 */
  /* ========================================================================= */
  #view-arsip-surat .card-header,
  #view-kotak-sampah .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
  }
  #view-arsip-surat .card-title,
  #view-kotak-sampah .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
  }
  #view-arsip-surat .card-title-icon,
  #view-kotak-sampah .card-title-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none !important;
  }
  #view-kotak-sampah .card-title-icon {
    color: #c4242a !important;
  }
  #view-arsip-surat .btn-arsip-primary,
  #view-kotak-sampah .btn-arsip-primary {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }
  #view-arsip-surat .btn-arsip-primary:hover,
  #view-kotak-sampah .btn-arsip-primary:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    box-shadow: none !important;
  }
  #view-arsip-surat .btn-arsip-secondary,
  #view-kotak-sampah .btn-arsip-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 13px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  #view-arsip-surat .btn-arsip-secondary:hover,
  #view-kotak-sampah .btn-arsip-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  /* Unified Editorial Summary Ledger (Flat Divided 4-Col Strip) */
  .arsip-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
  }
  @media (max-width: 1024px) {
    .arsip-bento-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .arsip-bento-card {
    background: #ffffff;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px 18px;
    box-shadow: none !important;
    position: relative;
    transition: background-color 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .arsip-bento-card:last-child {
    border-right: none;
  }
  .arsip-bento-card:hover {
    background: #f8fafc;
    box-shadow: none !important;
  }
  .arsip-bento-card.card-blue {
    background: #f0f4ff;
  }
  .arsip-bento-card.card-blue:hover {
    background: #e6eeff;
  }

  .arsip-bento-top-stripe {
    display: none;
  }

  .arsip-bento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
  }

  .arsip-bento-title {
    font-size: 13.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #475569;
  }
  .arsip-bento-card.card-blue .arsip-bento-title {
    color: #1d4ed8;
  }

  .arsip-bento-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    color: #64748b !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .arsip-bento-icon.icon-blue { color: #1d4ed8 !important; }
  .arsip-bento-icon.icon-rose { color: #c4242a !important; }

  .arsip-bento-value {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 4px 0 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
  }
  .arsip-bento-card.card-blue .arsip-bento-value {
    color: #1d4ed8;
  }
  .arsip-bento-card.card-rose .arsip-bento-value {
    color: #c4242a;
  }

  .arsip-bento-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 500;
    padding: 0;
    border-radius: 0;
    border: none !important;
    background: transparent !important;
    color: #475569 !important;
    width: fit-content;
  }
  .arsip-bento-card.card-blue .arsip-bento-pill {
    color: #1e40af !important;
  }
  .arsip-bento-card.card-rose .arsip-bento-pill {
    color: #831c1e !important;
  }

  /* Quick Filter Segmented Track */
  #view-arsip-surat .arsip-chips-track,
  #view-kotak-sampah .arsip-chips-track {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
  }
  #view-arsip-surat .arsip-chips-label,
  #view-kotak-sampah .arsip-chips-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 4px;
  }
  #view-arsip-surat .filter-chip,
  #view-kotak-sampah .filter-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    outline: none;
  }
  #view-arsip-surat .filter-chip:hover,
  #view-kotak-sampah .filter-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
  }
  #view-arsip-surat .filter-chip.active,
  #view-kotak-sampah .filter-chip.active {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  /* Search & Multi-Filter Toolbar */
  #view-arsip-surat .arsip-filter-toolbar,
  #view-kotak-sampah .arsip-filter-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    align-items: center;
  }
  #view-arsip-surat .arsip-search-group,
  #view-kotak-sampah .arsip-search-group {
    flex: 2;
    min-width: 240px;
    position: relative;
  }
  #view-arsip-surat .arsip-search-icon,
  #view-kotak-sampah .arsip-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
  }
  #view-arsip-surat .arsip-search-group input,
  #view-kotak-sampah .arsip-search-group input {
    width: 100%;
    height: 40px !important;
    padding-left: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s ease;
  }
  #view-arsip-surat .arsip-search-group input:focus,
  #view-kotak-sampah .arsip-search-group input:focus {
    border-color: #1d4ed8 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14) !important;
  }
  #view-arsip-surat .arsip-filter-group-select select,
  #view-kotak-sampah .arsip-filter-group-select select {
    height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s ease;
  }
  #view-arsip-surat .arsip-filter-group-select select:focus,
  #view-kotak-sampah .arsip-filter-group-select select:focus {
    border-color: #1d4ed8 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14) !important;
  }
  #view-arsip-surat .arsip-col-jenis { flex: 1.2; min-width: 170px; }
  #view-arsip-surat .arsip-col-tahun { flex: 0.9; min-width: 120px; }
  #view-arsip-surat .arsip-col-periode { flex: 1; min-width: 135px; }
  #view-arsip-surat .arsip-col-status { flex: 0.9; min-width: 125px; }
  #view-arsip-surat .select-arsip-tahun {
    font-weight: 600 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
  }

  /* Floating Bulk Bar Danger */
  #view-arsip-surat .floating-bulk-bar-danger,
  #view-kotak-sampah .floating-bulk-bar-danger {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    padding: 12px 18px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  #view-arsip-surat .bulk-bar-left,
  #view-kotak-sampah .bulk-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  #view-arsip-surat .bulk-selected-pill,
  #view-kotak-sampah .bulk-selected-pill {
    background: #ffedea !important;
    border: 1px solid #fecdd3 !important;
    color: #831c1e !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #view-arsip-surat .bulk-selected-hint,
  #view-kotak-sampah .bulk-selected-hint {
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
  }
  #view-arsip-surat .bulk-bar-right,
  #view-kotak-sampah .bulk-bar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  #view-arsip-surat .btn-bulk-delete,
  #view-kotak-sampah .btn-bulk-delete {
    background: #c4242a !important;
    border: 1px solid #c4242a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
  }
  #view-arsip-surat .btn-bulk-delete:hover,
  #view-kotak-sampah .btn-bulk-delete:hover {
    background: #991b1b !important;
    box-shadow: none !important;
  }

  /* Table Modern Hairline */
  #view-arsip-surat .desktop-table-wrapper,
  #view-kotak-sampah .desktop-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: auto;
    background: #ffffff;
  }
  #view-arsip-surat .custom-table,
  #view-kotak-sampah .custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
  }
  #view-arsip-surat .custom-table thead tr,
  #view-kotak-sampah .custom-table thead tr {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }
  #view-arsip-surat .custom-table thead th,
  #view-kotak-sampah .custom-table thead th {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #475569 !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
  }
  #view-arsip-surat .custom-table tbody tr,
  #view-kotak-sampah .custom-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    background: #ffffff;
    transition: background-color 0.15s ease !important;
  }
  #view-arsip-surat .custom-table tbody tr:hover,
  #view-kotak-sampah .custom-table tbody tr:hover {
    background-color: #f8fafc !important;
  }
  #view-arsip-surat .custom-table tbody tr.row-selected,
  #view-kotak-sampah .custom-table tbody tr.row-selected {
    background-color: #eff6ff !important;
  }
  #view-kotak-sampah .custom-table tbody tr.row-selected {
    background-color: #fff1f2 !important;
  }
  #view-arsip-surat .custom-table tbody td,
  #view-kotak-sampah .custom-table tbody td {
    padding: 13px 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
  }

  /* Kotak Sampah & Progress Animation */
  @keyframes indeterminateProgress {
    0% { left: -35%; right: 100%; }
    60% { left: 100%; right: -90%; }
    100% { left: 100%; right: -90%; }
  }
  .progress-indeterminate-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
  }
  .progress-indeterminate-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    animation: indeterminateProgress 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
  }
  .progress-bar-rose {
    background: #c4242a;
  }
  .progress-bar-emerald {
    background: #059669;
  }

  /* Footer Stats */
  #view-arsip-surat .arsip-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: #475569;
    padding: 4px 2px;
  }
  #view-arsip-surat .arsip-table-footer strong {
    color: #0f172a;
    font-weight: 700;
  }
  #view-arsip-surat .arsip-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
  }

  @media (max-width: 1024px) {
    .arsip-bento-card {
      border-bottom: 1px solid #e2e8f0;
    }
    .arsip-bento-card:nth-child(2n) {
      border-right: none;
    }
    .arsip-bento-card:nth-child(n+3) {
      border-bottom: none;
    }
  }

  /* Responsif Smartphone: Ledger 2x2 Clean & Readable */
  @media (max-width: 768px) {
    .arsip-bento-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 0 !important;
      margin-bottom: 14px !important;
    }

    .arsip-bento-card {
      padding: 12px 14px !important;
      border-radius: 0 !important;
      min-height: auto !important;
    }

    .arsip-bento-header {
      margin-bottom: 4px !important;
    }

    .arsip-bento-title {
      font-size: 12.5px !important;
      letter-spacing: 0 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .arsip-bento-icon svg {
      width: 14px !important;
      height: 14px !important;
    }

    .arsip-bento-value {
      font-size: 22px !important;
      font-weight: 700 !important;
      margin: 2px 0 4px !important;
      line-height: 1.15 !important;
    }

    .arsip-bento-pill {
      font-size: 12px !important;
      padding: 0 !important;
    }
  }

  .floating-bulk-bar-danger {
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  }

  .chip-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 110px;
    overflow-y: auto;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }

  .resident-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }

  .resident-chip strong {
    color: var(--primary-dark);
  }

  .resident-chip .chip-remove-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    transition: all 0.15s ease;
  }

  .resident-chip .chip-remove-btn:hover {
    background: #ef4444;
    color: #ffffff;
  }

  /* Tabel Input Perorangan di Modal Surat Kolektif */
  .massal-ind-table-container {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    margin-top: 10px;
  }

  .massal-ind-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }

  .massal-ind-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f1f5f9;
    padding: 9px 10px;
    text-align: left;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  .massal-ind-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .massal-ind-input {
    width: 100%;
    padding: 6px 9px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: var(--transition);
  }

  .massal-ind-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2.5px var(--primary-glow);
  }

  .batch-progress-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-top: 14px;
  }

  .batch-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
  }

  .batch-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #1d4ed8;
    border-radius: 4px;
    transition: width 0.3s ease;
  }

  .batch-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }

  .batch-result-table th {
    background: #f1f5f9;
    padding: 8px 10px;
    text-align: left;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid #e2e8f0;
  }

  .batch-result-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  /* ========================================================================= */
  /* SEARCHABLE COMBOBOX / AUTOCOMPLETE UNTUK JENIS SURAT */
  /* ========================================================================= */
  .searchable-combobox-wrapper {
    position: relative !important;
    width: 100%;
    z-index: 70 !important;
  }

  .custom-combobox-dropdown {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    border: 1.5px solid var(--primary) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 20px 45px -6px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(37, 99, 235, 0.15) !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px !important;
    animation: dropdownFadeIn 0.15s ease !important;
  }

  .custom-combobox-dropdown::-webkit-scrollbar {
    width: 6px;
  }
  .custom-combobox-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
    border-radius: var(--radius-pill);
  }
  .custom-combobox-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: var(--radius-pill);
  }
  .custom-combobox-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
  }

  /* Universal Scroll Containment & Native Physics for Overlays & Dropdowns (UI/UX Pro Max) */
  .custom-combobox-dropdown,
  .autocomplete-dropdown,
  .nikah-suggest-dropdown,
  .nikah-modal-body,
  .modal-body,
  #preview-modal-content-container,
  .massal-ind-table-container,
  #mobile-action-sheet-drawer,
  .mobile-drawer-content {
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Stacking Context Fix for Buat Surat: Card 1 must be above Card 2 */
  #card-buat-surat-kategori,
  .card-kategori-surat {
    position: relative !important;
    z-index: 50 !important;
  }

  #card-buat-surat-identitas {
    position: relative !important;
    z-index: 20 !important;
  }

  @keyframes dropdownFadeIn {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .combobox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9.5px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.12s ease;
    gap: 10px;
  }

  .combobox-item:hover,
  .combobox-item.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
  }

  .combobox-item .item-badge {
    font-size: 10.5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    padding: 2.5px 8px;
    border-radius: var(--radius-pill);
    background: #dbeafe;
    color: #1d4ed8;
    white-space: nowrap;
  }

  .combobox-item:hover .item-badge,
  .combobox-item.active .item-badge {
    background: #bfdbfe;
    color: #1e3a8a;
  }

  /* ========================================================================= */
  /* STYLING KATEGORI MASTER TEMPLATE & MODUL UNDANGAN */
  /* ========================================================================= */
  .tpl-cat-tab {
    transition: all 0.2s ease;
    border-radius: var(--radius-pill);
    font-weight: 700;
  }
  .tpl-cat-tab.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3) !important;
  }
  .badge-cat-surat {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }
  .badge-cat-undangan {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
  }
  .badge-cat-bencana {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
  }

  @keyframes pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.4;
      transform: scale(0.85);
    }
  }

  /* ==========================================================================
     HARDWARE-ACCELERATED ZERO-LAG SCROLL REVEAL (GPU COMPOSITED)
     ========================================================================== */
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  .scroll-reveal.is-revealed {
    opacity: 1;
    transform: none;
  }

  /* ==========================================================================
     EDITORIAL NEXT SEQUENCE PILL (FLAT & PORTAL WARGA SCALE)
     ========================================================================== */
  .next-sequence-pill {
    position: relative;
    z-index: 25 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 10px 6px 8px !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
    user-select: none !important;
  }

  .next-sequence-pill:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f8fafc !important;
    border-color: #1d4ed8 !important;
  }

  .next-sequence-blue {
    border-color: #cbd5e1 !important;
  }
  .next-sequence-blue:hover {
    border-color: #1d4ed8 !important;
  }

  .next-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: #eef2ff;
    color: #1d4ed8;
    box-shadow: none;
  }

  .next-pill-number {
    display: inline-flex;
    align-items: center;
    padding-right: 2px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .next-pill-copy-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .next-sequence-pill:hover .next-pill-copy-hint {
    background: #eef2ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: none;
  }

  /* ==========================================================================
     EDITORIAL METADATA CELLS & TYPOGRAPHY
     ========================================================================== */
  .bento-hud-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease !important;
  }
  .bento-hud-card:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none;
  }

  .bento-hud-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1.3 !important;
  }
  .bento-hud-label svg {
    flex-shrink: 0 !important;
    stroke-width: 2.2 !important;
    opacity: 1 !important;
  }

  .bento-hud-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
  }

  /* ==========================================================================
     FLAT TABLE ACTION BUTTONS (ZERO SHADOW/GRADIENT/PILL)
     ========================================================================== */
  .btn-table-pdf {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    vertical-align: middle !important;
    transform: none !important;
  }
  .btn-table-pdf:hover {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .btn-table-pdf:active {
    transform: scale(0.98) !important;
  }

  /* ==========================================================================
     HIGH-CONTRAST COPY BUTTON (.btn-copy-action)
     ========================================================================== */
  .btn-copy-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    padding: 7px 12px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    user-select: none !important;
    vertical-align: middle !important;
  }
  .btn-copy-action:hover {
    background: #eef2ff !important;
    color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .btn-copy-action:active {
    transform: scale(0.98) !important;
  }
  .btn-copy-action.is-copied {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .btn-copy-action svg {
    flex-shrink: 0;
  }
  .btn-copy-action:hover svg {
    transform: none;
  }

  /* ==========================================================================
     APP SITE FOOTER (ELEVATED HIGH CONTRAST CARD)
     ========================================================================== */
  .app-site-footer {
    margin-top: 36px;
    margin-bottom: 24px;
    padding: 16px 22px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  }
  @media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }
  @media print {
    .app-site-footer {
      display: none !important;
      visibility: hidden !important;
    }
  }
  /* ==========================================================================
     SISTEM VALIDASI CERDAS NIK & NO. KK (16 DIGIT BAKU)
     ========================================================================== */
  .nik-feedback-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 5px;
    min-height: 22px;
    transition: all 0.2s ease;
  }

  .nik-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    padding: 3px 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  /* Status Netral / Kosong */
  .nik-badge-neutral {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
  }

  /* Status Sedang Mengetik (< 16 digit) */
  .nik-badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
  }

  /* Status Valid Tepat 16 Digit */
  .nik-badge-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
  }

  /* Status Error / Salah Format */
  .nik-badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
  }

  /* Input States Glow */
  .input-nik-typing {
    border-color: #f59e0b !important;
    background-color: #fffdf5 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16) !important;
  }

  .input-nik-valid {
    border-color: #10b981 !important;
    background-color: #f6fef9 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16) !important;
  }

  .input-nik-invalid {
    border-color: #ef4444 !important;
    background-color: #fef8f8 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
  }

  /* Shake Animation */
  @keyframes inputShakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
  }

  .input-shake {
    animation: inputShakeAnim 0.4s ease-in-out !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
  }

  /* ========================================================================= */
  /* MULTI-STEP WIZARD / STEPPER (Santunan Kematian & Formulir Bertahap)      */
  /* ========================================================================= */
  .stepper-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 10px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
    gap: 8px;
    flex-wrap: wrap;
  }

  .stepper-step-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }

  .stepper-step-item:hover {
    background: #f8fafc;
    color: #1e293b;
  }

  .stepper-step-item.active {
    background: #eff6ff !important;
    color: var(--primary) !important;
    border-color: #bfdbfe !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
  }

  .stepper-step-item.completed {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
  }

  .stepper-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
  }

  .stepper-step-item.active .stepper-step-number {
    background: var(--primary);
    color: #ffffff;
  }

  .stepper-step-item.completed .stepper-step-number {
    background: #10b981;
    color: #ffffff;
  }

  .stepper-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    min-width: 14px;
  }

  .stepper-divider.completed {
    background: #10b981;
  }

  .form-step-pane {
    display: none;
  }

  .form-step-pane.active {
    display: block;
  }

  /* Sticky Bottom Action Bar for Steppers & Forms */
  .sticky-form-footer {
    position: sticky;
    bottom: 12px;
    z-index: 30;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
  }

  /* Quick Filter Chips for Tables */
  .filter-chips-wrapper {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
  }
  .filter-chips-wrapper::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    padding: 4.5px 12px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .filter-chip:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
  }

  .filter-chip.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
  }

  /* Adaptive Bento Stat Grid (UI/UX Pro Max Balanced Layout) */
  .bento-stat-adaptive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  @media (min-width: 1280px) {
    .bento-stat-adaptive-grid {
      grid-template-columns: repeat(7, 1fr);
    }
  }
  @media (min-width: 768px) and (max-width: 1279px) {
    .bento-stat-adaptive-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (max-width: 767px) {
    .bento-stat-adaptive-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Auto-draft Status Pill */
  .draft-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
  }

  /* Modal Safe Viewport Sizing on Short Monitors */
  @media (max-height: 800px) {
    .modal-box {
      max-height: 94vh !important;
    }
    .modal-header {
      padding: 12px 18px !important;
    }
    .modal-body {
      padding: 14px 18px !important;
    }
    .modal-footer {
      padding: 12px 18px !important;
    }
  }

  /* ========================================================================= */
  /* UI/UX PRO MAX: SMART SEMANTIC TAGS UNTUK JENIS SURAT (ANTI NAIK KE ATAS)  */
  /* ========================================================================= */
  .tag-jenis {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
    max-width: 210px !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.15s ease !important;
  }
  .tag-jenis .tag-dot {
    width: 6.5px !important;
    height: 6.5px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  /* Color Schemes Semantic */
  .tag-blue { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #bfdbfe !important; }
  .tag-blue .tag-dot { background: #2563eb !important; }

  .tag-amber { background: #fffbeb !important; color: #b45309 !important; border: 1px solid #fde68a !important; }
  .tag-amber .tag-dot { background: #d97706 !important; }

  .tag-emerald { background: #ecfdf5 !important; color: #047857 !important; border: 1px solid #a7f3d0 !important; }
  .tag-emerald .tag-dot { background: #10b981 !important; }

  .tag-purple { background: #faf5ff !important; color: #7e22ce !important; border: 1px solid #e9d5ff !important; }
  .tag-purple .tag-dot { background: #a855f7 !important; }

  .tag-teal { background: #f0fdfa !important; color: #0f766e !important; border: 1px solid #99f6e4 !important; }
  .tag-teal .tag-dot { background: #14b8a6 !important; }

  .tag-indigo { background: #f8fafc !important; color: #334155 !important; border: 1px solid #cbd5e1 !important; }
  .tag-indigo .tag-dot { background: #64748b !important; }

  /* ========================================================================= */
  /* UI/UX PRO MAX: NON-FREEZE ACTION COLUMN (CLEAN NATURAL SCROLL)            */
  /* ========================================================================= */
  .custom-table th.col-aksi-header,
  .custom-table td.col-aksi-cell {
    position: static !important;
    right: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
  .custom-table thead th.col-aksi-header {
    position: static !important;
    background: #f8fafc !important;
    z-index: auto !important;
  }
  .custom-table tbody tr:hover td.col-aksi-cell {
    background-color: transparent !important;
  }
  .custom-table tbody tr.row-selected td.col-aksi-cell {
    background-color: transparent !important;
  }

  /* Compact Action Buttons Cluster */
  .btn-action-pdf {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
    white-space: nowrap !important;
  }
  .btn-action-pdf:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .btn-action-pdf-teal {
    background: #0f766e !important;
    border-color: #0f766e !important;
    box-shadow: none !important;
  }
  .btn-action-pdf-teal:hover {
    background: #115e59 !important;
    border-color: #115e59 !important;
    box-shadow: none !important;
  }

  .btn-action-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  .btn-action-icon:hover {
    transform: scale(1.08) !important;
  }
  .btn-action-doc { color: #0284c7 !important; border-color: #bae6fd !important; background: #f0f9ff !important; }
  .btn-action-doc:hover { background: #e0f2fe !important; color: #0369a1 !important; }
  .btn-action-edit { color: #2563eb !important; border-color: #bfdbfe !important; background: #eff6ff !important; }
  .btn-action-edit:hover { background: #dbeafe !important; color: #1d4ed8 !important; }
  .btn-action-copy { color: #475569 !important; border-color: #cbd5e1 !important; background: #f8fafc !important; }
  .btn-action-copy:hover { background: #e2e8f0 !important; color: #0f172a !important; }
  .btn-action-delete { color: #ef4444 !important; border-color: #fecaca !important; background: #fff1f2 !important; }
  .btn-action-delete:hover { background: #fee2e2 !important; color: #dc2626 !important; }

  /* ========================================================================= */
  /* UI/UX PRO MAX (PILIHAN A): MODERN CLEAN SAAS TABLE COMPONENTS             */
  /* ========================================================================= */
  .badge-agenda-no {
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    letter-spacing: 0 !important;
  }

  .status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5.5px !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }
  .status-pill-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
  }
  .status-pill-success .status-dot {
    background: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
  }
  .status-pill-danger {
    background: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #fecdd3 !important;
  }
  .status-pill-danger .status-dot {
    background: #f43f5e !important;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2) !important;
  }
  .status-pill-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
  }
  .status-pill-warning .status-dot {
    background: #d97706 !important;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2) !important;
  }
  .status-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  #arsip-table-body tr {
    transition: all 0.15s ease !important;
    border-left: 3px solid transparent !important;
  }
  #arsip-table-body tr:hover {
    background-color: #f8fafc !important;
    border-left: 3px solid #2563eb !important;
  }
  #arsip-table-body tr.row-selected {
    background-color: #eff6ff !important;
    border-left: 3.5px solid #1d4ed8 !important;
  }

  /* Quick Chips Pintasan Surat Populer */
  .quick-chip-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
  }
  .quick-chip-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
  }
  .quick-chip-btn:active {
    transform: translateY(0);
  }
  .quick-chip-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 700;
  }

  /* ========================================================================= */
  /* SMART KEPERLUAN CHIPS (UI/UX PRO MAX)                                    */
  /* ========================================================================= */
  .smart-keperluan-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .smart-keperluan-container:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
  }
  .smart-keperluan-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
  }
  .smart-keperluan-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    line-height: 1.35;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }
  .smart-keperluan-chip svg {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.2s ease;
  }
  .smart-keperluan-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
  }
  .smart-keperluan-chip:hover svg {
    transform: scale(1.15);
  }
  .smart-keperluan-chip:active {
    transform: translateY(0);
  }
  .smart-keperluan-chip.active {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e40af;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
  }
  .smart-keperluan-chip.active svg {
    color: #1e40af;
  }

  /* ========================================================================= */
  /* FRAMED-SHEET STATUS WIDGET                                                */
  /* ========================================================================= */
  .banner-civic-royal {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    position: relative;
    overflow: hidden;
  }

  .banner-civic-royal:hover {
    transform: none;
    box-shadow: none !important;
  }

  .civic-royal-glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    box-shadow: none;
  }

  .civic-royal-btn-sync {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }

  .civic-royal-btn-sync:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none;
    box-shadow: none;
  }

  .civic-royal-btn-sync .sync-icon {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .civic-royal-btn-sync:hover .sync-icon {
    transform: rotate(180deg);
  }

  .sync-icon-spin {
    animation: civicSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  @keyframes civicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* ========================================================================= */
  /* REKOMENDASI & BERITA ACARA: SEGMENTED TABS & FINANCIAL BENTO TRACKER       */
  /* ========================================================================= */
  .rekom-segmented-nav {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
  }

  .rekom-tab-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
  }

  .rekom-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
  }

  .rekom-tab-btn.active {
    background: #ffffff;
    color: #1d4ed8;
    border-color: #cbd5e1;
    font-weight: 700;
    box-shadow: none;
  }

  .rekom-tab-badge {
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
  }

  .rekom-tab-btn.active .rekom-tab-badge {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
  }

  .mobile-only-inline {
    display: none !important;
  }
  .desktop-only-inline {
    display: inline !important;
  }

  @media (max-width: 768px) {
    .mobile-only-inline {
      display: inline !important;
    }
    .desktop-only-inline {
      display: none !important;
    }
  }

  /* Financial Bento Summary Grid */
  .financial-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
  }

  @media (max-width: 900px) {
    .financial-bento-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Responsif Smartphone: Header Rekomendasi Keuangan Compact 2x2 */
  @media (max-width: 768px) {
    #banner-status-rekomendasi {
      padding: 12px 14px !important;
      margin-bottom: 14px !important;
      border-radius: 8px !important;
    }

    .banner-civic-royal .rekom-banner-header {
      gap: 8px !important;
      padding-bottom: 8px !important;
    }

    .banner-civic-royal .rekom-banner-info {
      font-size: 12px !important;
      gap: 6px !important;
    }

    .civic-royal-glass-pill {
      font-size: 12px !important;
      padding: 3px 8px !important;
    }

    .civic-royal-btn-sync {
      padding: 5px 10px !important;
      font-size: 12px !important;
    }

    .financial-bento-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
      margin-top: 10px !important;
    }

    .financial-bento-card {
      padding: 10px !important;
      border-radius: 8px !important;
      min-height: auto !important;
    }

    .financial-bento-title {
      font-size: 12px !important;
      gap: 4px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    .financial-bento-title svg {
      width: 12px !important;
      height: 12px !important;
      flex-shrink: 0 !important;
    }

    .financial-bento-val {
      font-size: 15px !important;
      margin: 2px 0 1px !important;
    }

    .financial-bento-sub {
      font-size: 12px !important;
    }
  }

  .financial-bento-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .financial-bento-card:hover {
    border-color: #cbd5e1;
  }

  .financial-bento-title {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .financial-bento-val {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 2px;
  }

  .financial-bento-sub {
    font-size: 12px;
    color: #475569;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ========================================================================= */
  /* SANTUNAN KEMATIAN: EMERALD SAGE & CIVIC COBALT WIDGET                     */
  /* ========================================================================= */
  .banner-santunan-civic {
    background: linear-gradient(135deg, #065f46 0%, #0f766e 40%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.35), 0 4px 10px -2px rgba(29, 78, 216, 0.2) !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    margin-bottom: 20px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
  }

  .banner-santunan-civic:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(15, 118, 110, 0.45), 0 6px 14px -2px rgba(29, 78, 216, 0.25) !important;
  }

  .santunan-glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    user-select: none;
  }

  .santunan-glass-chip:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
  }

  /* ========================================================================= */
  /* SANTUNAN PRO MAX: SEGMENTED CONTROLS & FAMILY QUICK-PICK CHIPS            */
  /* ========================================================================= */
  .santunan-segmented-control {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 16px;
  }

  .santunan-segmented-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .santunan-segmented-btn:hover {
    color: #0f172a;
  }

  .santunan-segmented-btn.active {
    background: #ffffff;
    color: #0f766e;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .santunan-family-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    animation: fadeIn 0.2s ease;
  }

  .santunan-family-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  .santunan-family-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }

  .santunan-family-chip:hover {
    background: #f0fdf4;
    border-color: #059669;
    color: #065f46;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px -2px rgba(5, 150, 105, 0.2);
  }

  .santunan-family-chip.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    font-weight: 700;
  }

  .santunan-family-chip .chip-role {
    font-size: 10.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
  }

  .santunan-family-chip.active .chip-role {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
  }

  .santunan-address-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
  }

  /* ========================================================================= */
  /* SURAT UNDANGAN: FRAMED-SHEET STATUS & PRESET STYLES                       */
  /* ========================================================================= */
  .banner-undangan-civic {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    position: relative;
    overflow: hidden;
  }

  .banner-undangan-civic:hover {
    transform: none;
    box-shadow: none !important;
  }

  .undangan-glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    user-select: none;
  }

  .undangan-glass-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
  }

  .event-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    box-shadow: none;
  }

  .event-preset-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: none;
    box-shadow: none;
  }

  .event-preset-chip:active {
    background: #dbeafe;
  }

  .date-quick-pill {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
  }

  .date-quick-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
  }

  .ai-panel-civic {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
  }

  /* ==========================================================================
     PENGANTAR NIKAH TERPADU (MODEL N1-N6) - FRAMED-SHEET EDITORIAL
     ========================================================================== */
  .banner-pengantar-nikah {
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
  }

  .nikah-glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
  }

  .nikah-glass-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
  }

  .nikah-glass-chip.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    font-weight: 600;
    box-shadow: none;
  }

  /* Role Selection Cards (Suami / Istri / Keduanya Warga Desa) */
  .role-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }

  .role-card-item {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .role-card-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: none;
    box-shadow: none;
  }

  .role-card-item.selected {
    border: 1.5px solid #1d4ed8;
    background: #eff6ff;
    box-shadow: none;
  }

  .role-card-item .role-icon {
    width: 24px;
    height: 24px;
    background: transparent;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .role-card-item.selected .role-icon {
    background: transparent;
    color: #1d4ed8;
  }

  /* Smart Mode Switcher Pills (KK vs Cari Penduduk vs Manual) */
  .sub-mode-nav {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    gap: 4px;
    margin-bottom: 16px;
  }

  .sub-mode-btn {
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .sub-mode-btn:hover {
    color: #0f172a;
  }

  .sub-mode-btn.active {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1d4ed8;
    box-shadow: none;
  }

  /* Stepper Active Override for Nikah */
  #nikah-stepper-nav .stepper-step-item.active {
    color: #1d4ed8 !important;
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }

  #nikah-stepper-nav .stepper-step-item.active .stepper-step-number {
    background: #1d4ed8 !important;
    color: #ffffff !important;
  }

  #nikah-stepper-nav .stepper-step-item.completed {
    color: #0f172a !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  #nikah-stepper-nav .stepper-step-item.completed .stepper-step-number {
    background: #dcfae5 !important;
    color: #04250e !important;
  }

  /* Clean Structured Form Sections */
  .nikah-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: none;
  }

  .nikah-section-box:hover {
    border-color: #cbd5e1;
  }

  .nikah-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }

  .nikah-section-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nikah-section-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
  }

  #view-pengantar-nikah .form-control:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  }

  /* ========================================================================= */
  /* AUTOCOMPLETE & AUTOFILL ANIMATIONS (UI UX PRO MAX)                       */
  /* ========================================================================= */
  .nikah-search-box-wrapper {
    position: relative;
    width: 100%;
    z-index: 80;
  }

  .nikah-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .nikah-search-input-wrap input {
    padding-right: 36px;
    transition: all 0.2s ease;
  }

  .nikah-search-spinner {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: nikahSpin 0.6s linear infinite;
    display: none;
    pointer-events: none;
  }

  @keyframes nikahSpin {
    to { transform: rotate(360deg); }
  }

  .nikah-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 6px 12px -2px rgba(15, 23, 42, 0.08);
    max-height: 260px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1050;
    padding: 6px;
    animation: nikahDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes nikahDropdownFadeIn {
    0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  .nikah-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.16s ease;
    border-left: 3.5px solid transparent;
    border-bottom: 1px solid #f1f5f9;
  }

  .nikah-suggest-item:last-child {
    border-bottom: none;
  }

  .nikah-suggest-item:hover {
    background: #eff6ff;
    border-left-color: #1e3a8a;
    transform: translateX(4px);
  }

  .nikah-suggest-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e0e7ff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .nikah-suggest-avatar.female {
    background: #fce7f3;
    color: #db2777;
  }

  .nikah-suggest-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
  }

  /* Animasi Visual Flash Highlight saat Form Terisi Otomatis */
  .autofill-highlight-pulse {
    animation: nikahAutofillPulse 1.4s ease-out forwards !important;
  }

  @keyframes nikahAutofillPulse {
    0% {
      background-color: #ecfdf5 !important;
      border-color: #10b981 !important;
      box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.35) !important;
      transform: scale(1.01);
    }
    40% {
      background-color: #f0fdf4 !important;
      border-color: #34d399 !important;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
      transform: scale(1);
    }
    100% {
      background-color: #ffffff !important;
      border-color: #cbd5e1 !important;
      box-shadow: none !important;
      transform: scale(1);
    }
  }

  /* ========================================================================= */
  /* LIVE NIK VALIDATOR (UI UX PRO MAX - REAL-TIME FEEDBACK)                  */
  /* ========================================================================= */
  .nik-label-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 0;
  }
  .form-group > label.form-label:not(.nik-label-wrap label) {
    min-height: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    line-height: 1.25;
  }

  .nik-live-badge {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
  }

  .nik-live-badge.empty {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
  }

  .nik-live-badge.typing {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
  }

  .nik-live-badge.valid {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
  }

  .nik-live-badge.invalid {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
  }

  @keyframes nikahBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
  }

  .form-control.nik-input-typing {
    border-color: #f59e0b !important;
    background-color: #fffdfa !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
  }

  .form-control.nik-input-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
  }

  .form-control.nik-input-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  }

  /* Error Highlight Shake & Pulse Animation (UI/UX Pro Max) */
  @keyframes inputErrorShakePulse {
    0%, 100% { transform: translateX(0); border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important; }
    20%, 60% { transform: translateX(-3px); border-color: #dc2626 !important; box-shadow: 0 0 0 4.5px rgba(220, 38, 38, 0.35) !important; }
    40%, 80% { transform: translateX(3px); border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important; }
  }

  .form-control.input-error-pulse,
  .form-control.input-attention-pulse {
    animation: inputErrorShakePulse 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
    border-color: #ef4444 !important;
  }

  /* Badge Template Pengantar Nikah */
  .badge-cat-nikah {
    background: #1e3a8a;
    color: #fef3c7;
    border: 1px solid #3b82f6;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
  }

  /* ========================================================================= */
  /* MODEL N 2 & N 3 SIMPLIFIED CARDS (UI/UX PRO MAX)                         */
  /* ========================================================================= */
  .kua-info-banner {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(240, 253, 250, 0.95) 100%);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 4px 14px -2px rgba(30, 58, 138, 0.05);
  }
  .kua-info-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
  }
  .kua-info-content h4 {
    margin: 0 0 4px 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .kua-info-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
  }

  .n2n3-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
  }
  @media (max-width: 900px) {
    .n2n3-summary-grid {
      grid-template-columns: 1fr;
    }
  }

  .n2n3-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .n2n3-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
  }
  .n2n3-card.pemohon {
    border-top: 3.5px solid #2563eb;
  }
  .n2n3-card.suami {
    border-top: 3.5px solid #0284c7;
  }
  .n2n3-card.istri {
    border-top: 3.5px solid #ec4899;
  }

  .n2n3-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .n2n3-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
  }
  .n2n3-card.pemohon .n2n3-avatar {
    background: #eff6ff;
    color: #1d4ed8;
  }
  .n2n3-card.suami .n2n3-avatar {
    background: #f0f9ff;
    color: #0369a1;
  }
  .n2n3-card.istri .n2n3-avatar {
    background: #fdf2f8;
    color: #be185d;
  }

  .n2n3-role-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
  }
  .n2n3-card.pemohon .n2n3-role-tag {
    background: #dbeafe;
    color: #1e40af;
  }
  .n2n3-card.suami .n2n3-role-tag {
    background: #e0f2fe;
    color: #0369a1;
  }
  .n2n3-card.istri .n2n3-role-tag {
    background: #fce7f3;
    color: #9d174d;
  }

  .n2n3-name {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 6px;
    word-break: break-word;
  }
  .n2n3-nik {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 4px;
  }
  .n2n3-meta {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
  }
  .n2n3-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .n2n3-scope {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .n2n3-status-connected {
    font-size: 10px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }

  /* ========================================================================= */
  /* MODAL KONFIRMASI PENERBITAN PENGANTAR NIKAH (UI/UX PRO MAX)               */
  /* ========================================================================= */
  .nikah-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: rgba(15, 23, 42, 0.5) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(12px, 3vh, 28px) 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    animation: fadeIn 0.2s ease;
  }

  @media (max-height: 760px) {
    .nikah-modal-backdrop {
      align-items: flex-start !important;
      padding-top: 14px !important;
    }
  }

  .nikah-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: calc(100vh - 44px);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    margin: auto;
  }

  @keyframes nikahModalSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nikah-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 13px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid #f59e0b;
    flex-shrink: 0;
  }

  .nikah-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
  }

  .nikah-modal-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
  }

  .nikah-modal-subtitle {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 1px;
  }

  .nikah-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nikah-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
  }

  /* ========================================================================= */
  /* MODAL REVIEW SURAT KETERANGAN (CIVIC ROYAL BLUE THEME - UI/UX PRO MAX)   */
  /* ========================================================================= */
  .surat-modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 13px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2.5px solid #60a5fa !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.2) !important;
  }

  .surat-modal-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .surat-modal-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  }

  .surat-modal-subtitle {
    font-size: 11px !important;
    color: #dbeafe !important;
    margin-top: 1px !important;
    font-weight: 500 !important;
  }

  .surat-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #bfdbfe !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .surat-modal-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  /* ========================================================================= */
  /* MODAL REVIEW SANTUNAN KEMATIAN (EMERALD SAGE & COBALT - UI/UX PRO MAX)   */
  /* ========================================================================= */
  .santunan-modal-header {
    background: linear-gradient(135deg, #065f46 0%, #0f766e 45%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 13px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2.5px solid #34d399 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25) !important;
  }

  .santunan-modal-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .santunan-modal-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  }

  .santunan-modal-subtitle {
    font-size: 11px !important;
    color: #ccfbf1 !important;
    margin-top: 1px !important;
    font-weight: 500 !important;
  }

  .santunan-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #a7f3d0 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .santunan-modal-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  /* ========================================================================= */
  /* MODAL REVIEW REKOMENDASI & BA (FINANCIAL TEAL & COBALT - UI/UX PRO MAX)   */
  /* ========================================================================= */
  .rekomendasi-modal-header {
    background: linear-gradient(135deg, #0f766e 0%, #0369a1 50%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 13px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2.5px solid #38bdf8 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25) !important;
  }

  .rekomendasi-modal-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .rekomendasi-modal-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  }

  .rekomendasi-modal-subtitle {
    font-size: 11px !important;
    color: #e0f2fe !important;
    margin-top: 1px !important;
    font-weight: 500 !important;
  }

  .rekomendasi-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #bae6fd !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .rekomendasi-modal-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  /* ========================================================================= */
  /* MODAL REVIEW SURAT UNDANGAN (CIVIC INDIGO & SAPPHIRE - UI/UX PRO MAX)     */
  /* ========================================================================= */
  .undangan-modal-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4338ca 70%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 13px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2.5px solid #818cf8 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3) !important;
  }

  .undangan-modal-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
  }

  .undangan-modal-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  }

  .undangan-modal-subtitle {
    font-size: 11px !important;
    color: #e0e7ff !important;
    margin-top: 1px !important;
    font-weight: 500 !important;
  }

  .undangan-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #c7d2fe !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .undangan-modal-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .nikah-modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0 !important;
    background: #f8fafc;
  }

  .nikah-review-highlight-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
  }

  .nikah-review-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nikah-review-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .nikah-review-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    display: block;
  }

  @media (max-width: 640px) {
    .nikah-review-divider {
      display: none;
    }
  }

  .nikah-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  @media (max-width: 700px) {
    .nikah-review-grid {
      grid-template-columns: 1fr;
    }
  }

  .nikah-review-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  }

  .nikah-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 7px;
    margin-bottom: 4px;
  }

  .nikah-review-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2.5px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .nikah-review-badge.blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
  }

  .nikah-review-badge.pink {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
  }

  .nikah-review-badge.amber {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
  }

  .nikah-review-badge.green {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
  }

  .nikah-review-field {
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.4;
  }

  .nikah-review-field .lbl {
    color: #64748b;
    min-width: 90px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
  }

  .nikah-review-field .val {
    color: #0f172a;
    word-break: break-word;
  }

  .nikah-review-docs-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
  }

  .nikah-review-docs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nikah-review-doc-pill {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 3.5px 10px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.15s ease;
  }
  .nikah-review-doc-pill:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
  }

  .nikah-review-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
  }

  .nikah-modal-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .nikah-modal-footer .btn {
    border-radius: 8px !important;
    font-size: 12.5px !important;
    letter-spacing: -0.01em !important;
  }

  /* ==========================================================================
     IN-MODAL LIVE PIPELINE PROGRESS & SUCCESS STATES (UI/UX PRO MAX - SVG ONLY)
     ========================================================================== */
  .inmodal-phase {
    display: none;
    animation: inmodalPhaseFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .inmodal-phase.active {
    display: block;
  }

  @keyframes inmodalPhaseFade {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .inmodal-progress-panel {
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .inmodal-progress-header {
    text-align: center;
  }

  .inmodal-progress-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2.5px solid #cbd5e1;
    border-top-color: #1d4ed8;
    animation: spin 0.75s linear infinite;
  }

  .inmodal-progress-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
  }

  .inmodal-progress-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
  }

  /* Flat Progress Bar */
  .inmodal-bar-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: none;
  }

  .inmodal-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
  }

  .inmodal-bar-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }

  .inmodal-bar-fill {
    height: 100%;
    width: 0%;
    background: #1d4ed8;
    border-radius: 4px;
    transition: width 0.35s ease;
  }

  /* Micro-steps Pipeline List */
  .inmodal-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .inmodal-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .inmodal-step-item.pending {
    opacity: 0.72;
    background: #f8fafc;
  }

  .inmodal-step-item.active {
    opacity: 1;
    border-color: #1d4ed8;
    background: #eff6ff;
    box-shadow: none;
  }

  .inmodal-step-item.completed {
    opacity: 1;
    border-color: #bbf7d0;
    background: #f0fdf4;
  }

  .inmodal-step-badge {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
  }

  .inmodal-step-item.pending .inmodal-step-badge {
    background: #e2e8f0;
    color: #475569;
  }

  .inmodal-step-item.active .inmodal-step-badge {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: none;
  }

  .inmodal-step-item.completed .inmodal-step-badge {
    background: #15803d;
    color: #ffffff;
  }

  .inmodal-step-info {
    flex: 1;
    min-width: 0;
  }

  .inmodal-step-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
  }

  .inmodal-step-desc {
    font-size: 12px;
    color: #475569;
    margin-top: 2px;
    line-height: 1.35;
  }

  .inmodal-step-status-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Success State Panel */
  .inmodal-success-panel {
    padding: 16px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: inmodalSuccessZoom 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes inmodalSuccessZoom {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .inmodal-success-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 3px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px -6px rgba(16, 185, 129, 0.3);
  }

  .inmodal-success-check-svg {
    width: 36px;
    height: 36px;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: inmodalDrawCheck 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  }

  @keyframes inmodalDrawCheck {
    to {
      stroke-dashoffset: 0;
    }
  }

  .inmodal-success-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #065f46;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
  }

  .inmodal-success-desc {
    font-size: 12px;
    color: #475569;
    max-width: 480px;
    margin-bottom: 16px;
    line-height: 1.45;
  }

  .inmodal-success-card {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  }

  .inmodal-success-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    gap: 8px;
  }

  .inmodal-success-field .lbl {
    color: #64748b;
    font-weight: 600;
  }

  .inmodal-success-field .val {
    color: #0f172a;
    font-weight: 700;
  }

  .inmodal-success-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  /* ==========================================================================
     DUAL SMART STACK - APPLE iOS SPRING PHYSICS & EXECUTIVE UI/UX PRO MAX
     ========================================================================== */
  .smartstack-container {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .smartstack-header {
    flex-shrink: 0;
  }

  /* Liquid Tab Pill Indicator (GSAP Sliding Pill ala Apple iOS) */
  .liquid-tab-pill {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
    z-index: 1;
    will-change: transform, width, height;
  }

  .smartstack-tab-btn, .rekom-tab-btn, .tab-btn {
    position: relative;
    z-index: 2;
  }

  .smartstack-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
  }
  .smartstack-tab-btn svg {
    stroke-width: 2;
    opacity: 0.85;
    flex-shrink: 0;
  }
  .smartstack-tab-btn.active svg {
    opacity: 1;
    color: #ffffff;
  }

  .smartstack-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.75);
  }

  .smartstack-tab-btn.active {
    color: #ffffff;
    background: #1d4ed8;
    font-weight: 700;
    box-shadow: none !important;
  }

  .smartstack-dot {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
    display: inline-block;
  }

  .smartstack-dot:hover {
    background: #94a3b8;
  }

  .smartstack-dot.active,
  .smartstack-dot.active-amber {
    width: 18px;
    background: #1d4ed8;
    border-radius: 99px;
    box-shadow: none;
  }

  .smartstack-viewport {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
    padding-bottom: 0;
    flex: 1;
    height: 100%;
  }

  .smartstack-card {
    grid-area: 1 / 1 / 2 / 2;
    height: 100%;
    will-change: transform, opacity;
    transition: border-color 0.18s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  .smartstack-card.smartstack-card-active {
    transform: translateY(0px) scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 20;
    pointer-events: auto;
    box-shadow: none !important;
  }

  .smartstack-card.smartstack-card-behind {
    transform: translateY(8px) scale(0.985);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    pointer-events: none;
    box-shadow: none !important;
    user-select: none;
  }

  /* Hairline Auto-Cycle Timer Indicator */
  .hairline-timer-track {
    width: 44px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
  }

  .hairline-timer-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.8s linear;
  }

  /* Tren List Items (Flat Editorial & Readability First) */
  .tren-letter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .tren-letter-row:hover {
    background: #eef2ff;
    border-color: #cbd5e1;
    transform: none;
    box-shadow: none !important;
  }

  .tren-btn-quick-create {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
  }

  .tren-btn-quick-create:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: none;
    box-shadow: none !important;
  }

  /* Live Pulse Beacon */
  .pulse-beacon-emerald {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
  }

  .pulse-beacon-emerald::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  }

  .pulse-beacon-emerald::after {
    content: '';
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
  }

  /* ==========================================================================
   * DIRECT PRINT PRO MAX STYLES (A4 & F4 CONTEXTUAL ACTION ISLAND)
   * ========================================================================== */
  .direct-print-panel {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .direct-print-panel:hover {
    border-color: #cbd5e1 !important;
  }

  #btn-direct-print-surat:hover, #btn-sukses-direct-print:hover,
  #btn-direct-print-santunan:hover, #btn-direct-print-rekom:hover, #btn-direct-print-undangan:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
  }

  #btn-direct-print-surat:active, #btn-sukses-direct-print:active,
  #btn-direct-print-santunan:active, #btn-direct-print-rekom:active, #btn-direct-print-undangan:active {
    transform: translateY(0);
    filter: brightness(0.96);
  }

  #btn-direct-print-surat:focus-visible, #btn-sukses-direct-print:focus-visible,
  #btn-direct-print-santunan:focus-visible, #btn-direct-print-rekom:focus-visible, #btn-direct-print-undangan:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35) !important;
  }
  /* ========================================================================= */
  /* PRO MAX TABLE ACTION HUB (DROPDOWN ⋮ & FLOATING POPOVER)                  */
  /* ========================================================================= */
  .btn-action-more {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }
  .btn-action-more:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  }
  .btn-action-more.active {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
  }

  .table-action-popover {
    position: fixed;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    padding: 6px;
    min-width: 215px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform-origin: top right;
  }

  .popover-item,
  .table-popover-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8.5px 12px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #334155 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    user-select: none !important;
  }

  .popover-item:hover,
  .table-popover-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    transform: translateX(2px) !important;
  }

  .popover-item svg,
  .table-popover-item svg {
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
    color: #64748b !important;
    transition: color 0.15s ease !important;
  }

  .popover-item:hover svg,
  .table-popover-item:hover svg {
    color: #2563eb !important;
  }

  .popover-item.danger,
  .table-popover-item.danger {
    color: #e11d48 !important;
  }

  .popover-item.danger svg,
  .table-popover-item.danger svg {
    color: #e11d48 !important;
  }

  .popover-item.danger:hover,
  .table-popover-item.danger:hover {
    background: #fff1f2 !important;
    color: #be123c !important;
  }

  .popover-item.danger:hover svg,
  .table-popover-item.danger:hover svg {
    color: #be123c !important;
  }

  .popover-divider,
  .table-popover-divider {
    height: 1px !important;
    background: #e2e8f0 !important;
    margin: 4px 6px !important;
  }

  /* ========================================================================= */
  /* PRO MAX RESPONSIVE MOBILE NAV & DRAWER                                    */
  /* ========================================================================= */
  .mobile-nav-toggle-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .mobile-nav-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 99998;
    animation: fadeIn 0.2s ease;
  }
  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(85vw, 320px);
    background: #ffffff;
    z-index: 99999;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideDrawerRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideDrawerRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
  }
  .mobile-nav-link:hover, .mobile-nav-link.active {
    background: #f1f5f9;
    color: #1d4ed8;
  }
  .mobile-nav-group-title {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 14px 6px;
  }

  /* Breakpoint 1024px-1366px Laptop Single Line Optimization */
  @media (min-width: 1024px) and (max-width: 1366px) {
    #main-top-navbar {
      flex-wrap: nowrap !important;
      gap: 14px !important;
    }
    #main-top-navbar .top-nav-tab,
    #main-top-navbar > .nav-item {
      padding: 10px 2px !important;
      font-size: 13px !important;
    }
  }
  @media (max-width: 1023px) {
    .mobile-nav-toggle-btn {
      display: inline-flex !important;
    }
    #main-top-navbar {
      display: none !important;
    }
  }
  @media (min-width: 1024px) {
    .mobile-nav-toggle-btn,
    .mobile-nav-backdrop,
    .mobile-nav-drawer {
      display: none !important;
    }
  }

  /* ========================================================================= */
  /* PRO MAX MULTI-STEPPER BUAT SURAT (2-TAHAP ERGONOMIS)                      */
  /* ========================================================================= */
  .buat-surat-stepper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 4px;
    gap: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  }
  .buat-surat-step-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
  }
  .buat-surat-step-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
  }
  .buat-surat-step-btn.active {
    background: #ffffff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
  }
  .buat-surat-step-btn .step-number {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .buat-surat-step-btn.active .step-number {
    background: #1d4ed8;
    color: #ffffff;
  }
  .buat-surat-step-btn.completed {
    color: #047857;
  }
  .buat-surat-step-btn.completed .step-number {
    background: #dcfce7;
    color: #15803d;
  }
  .buat-surat-step-btn .step-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .buat-surat-step-divider {
    display: none;
  }
  .buat-surat-step-pane {
    display: none;
  }
  .buat-surat-step-pane.active {
    display: block;
  }
  .step-pemohon-summary-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ========================================================================= */
  /* SI-SURAT SRU: MOBILE SHELL RESPONSIVE DUAL-VIEW (APPLE HIG & UI/UX PRO MAX) */
  /* ========================================================================= */
  @media (max-width: 1023px) {
    /* PRIORITAS 1: Hilangkan sela/margin/padding body desktop di smartphone */
    html, body {
      padding: 0 !important;
      margin: 0 !important;
      background-color: #f8fafc !important;
      overflow-x: hidden !important;
      overflow-x: clip !important;
      width: 100% !important;
    }
    body::before {
      display: none !important;
    }
    .app-container {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: calc(54px + env(safe-area-inset-top, 0px)) 0 0 0 !important;
      gap: 0 !important;
      background: #f8fafc !important;
    }
    #mobile-app-shell > header {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      z-index: 35 !important;
      padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
    }
    /* Sembunyikan header desktop dan dashboard tabel lebar saat di HP/Tablet */
    #main-header-stitch {
      display: none !important;
    }
    #view-dashboard {
      display: none !important;
    }
    .app-site-footer {
      display: none !important;
    }
    #mobile-home-content {
      padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .main-content-area {
      padding: 10px 14px calc(92px + env(safe-area-inset-bottom, 0px)) 14px !important;
      box-sizing: border-box;
      width: 100% !important;
    }
    #mobile-bottom-nav {
      padding-left: max(clamp(45px, 12.5vw, 52px), env(safe-area-inset-left, 0px)) !important;
      padding-right: max(clamp(45px, 12.5vw, 52px), env(safe-area-inset-right, 0px)) !important;
      padding-bottom: max(18px, calc(12px + env(safe-area-inset-bottom, 0px))) !important;
      touch-action: manipulation;
    }
    #mobile-bottom-nav button span {
      white-space: nowrap;
    }
    /* Pastikan formulir di HP tetap lega dan rapi */
    .view-pane {
      margin-top: 0 !important;
      width: 100% !important;
      box-sizing: border-box;
    }
  }

  @media (min-width: 1024px) {
    /* Sembunyikan seluruh komponen mobile di layar Laptop/Desktop */
    #mobile-app-shell,
    #mobile-action-sheet-overlay {
      display: none !important;
    }
  }

  /* Smart Stack Card Transitions (Apple 3D Perspective & GSAP Hardware Accel) */
  #smart-stack-hero-box {
    perspective: 1000px;
    transform-style: preserve-3d;
  }
  .smart-stack-slide {
    will-change: transform, opacity;
  }
  .mobile-bento-card {
    transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .mobile-bento-card:active {
    transform: scale(0.97);
  }

  /* ========================================================================= */
  /* iOS ACTION SHEET MODAL (DRAWER PRO MAX - 100% RELIABLE & GSAP-SYNCED)     */
  /* ========================================================================= */
  #mobile-action-sheet-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  #mobile-action-sheet-overlay.active {
    display: flex !important;
    align-items: flex-end !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #mobile-action-sheet-overlay > div:first-child {
    touch-action: none;
  }
  #mobile-action-sheet-drawer {
    transform: translateY(100%);
    will-change: transform;
    padding-bottom: max(28px, calc(14px + env(safe-area-inset-bottom, 0px)));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  #mobile-action-sheet-overlay.active #mobile-action-sheet-drawer {
    transform: translateY(0);
  }

  /* ========================================================================= */
  /* UI/UX PRO MAX: NATIVE APPLE MOBILE BUTTON RESETS (100% BORDERLESS)        */
  /* Mengeliminasi kotak-kotak abu-abu kalkulator bawaan browser di smartphone */
  /* ========================================================================= */
  #mobile-bottom-nav button:not(.w-12) {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  #mobile-bottom-nav button.w-12 {
    border: 4px solid #ffffff !important;
    background: #1d4ed8 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  #smart-stack-tabs {
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    background: #f1f5f9 !important;
  }
  #smart-stack-tabs button {
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  #smart-stack-tabs button:not(.bg-\[\#1d4ed8\]) {
    background: transparent !important;
  }
  #smart-stack-hero-box button[onclick*="navigateTo"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  #smart-stack-hero-box button[onclick*="copyMobileNomor"] {
    border: 1px solid rgba(191, 219, 254, 0.8) !important;
    background: #ffffff !important;
    outline: none !important;
  }

  /* ========================================================================= */
  /* UI/UX PRO MAX: MOBILE DOCUMENT CARDS (ZERO HORIZONTAL SCROLL)             */
  /* ========================================================================= */
  .mobile-doc-cards-list {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
  }

  .mobile-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.15s ease;
  }
  .mobile-doc-card:active {
    transform: none;
  }

  .mobile-doc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-doc-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-doc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px 12px 14px;
    border-top: 1px solid #f1f5f9;
  }

  .mobile-doc-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
  }
  .mobile-doc-meta-label {
    color: #475569;
    font-weight: 500;
    min-width: 60px;
    flex-shrink: 0;
  }
  .mobile-doc-meta-val {
    color: #0f172a;
    text-align: right;
    word-break: break-word;
  }
  .mobile-doc-badge-urut {
    display: inline-block;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: #1d4ed8;
    border-radius: 4px;
  }
  .mobile-doc-nomor {
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
  }
  .mobile-doc-card-empty {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    color: #475569;
  }
  .mobile-doc-card-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
  }
  .mobile-doc-card-empty-text {
    font-size: 13.5px;
    font-weight: 500;
  }

  @media (min-width: 1024px) {
    .mobile-doc-cards-list {
      display: none !important;
    }
    .desktop-table-wrapper {
      display: block !important;
    }
  }

  @media (max-width: 1023px) {
    /* Dual-View: Sembunyikan tabel lebar yang menyebabkan horizontal scroll */
    #view-arsip-surat .desktop-table-wrapper,
    #view-buku-undangan .desktop-table-wrapper,
    #view-master-penduduk .desktop-table-wrapper,
    #view-rekomendasi-keuangan .desktop-table-wrapper {
      display: none !important;
    }

    /* Tampilkan Mobile Document Card Feed */
    .mobile-doc-cards-list {
      display: flex !important;
    }

    /* Sticky Bottom Action Bar di HP (Mengambang tepat di atas bottom nav 74px) */
    .sticky-form-footer {
      position: sticky !important;
      bottom: 74px !important;
      z-index: 35 !important;
      margin-top: 16px !important;
      padding: 10px 14px !important;
      background: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    }

    /* Stepper Responsif Smartphone (Horizontal Scrollable Smooth Strip) */
    .stepper-nav-container {
      overflow-x: auto !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
      padding: 6px 10px !important;
      gap: 6px !important;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .stepper-nav-container::-webkit-scrollbar {
      display: none;
    }
    .stepper-step-item {
      flex-shrink: 0 !important;
      white-space: nowrap !important;
      padding: 6px 12px !important;
      font-size: 11.5px !important;
    }
    .stepper-divider {
      flex-shrink: 0 !important;
      min-width: 10px !important;
    }

    /* Sembunyikan banner riwayat desktop tebal di mobile */
    #banner-status-buat-surat {
      display: none !important;
    }
  }

  /* ==========================================================================
     FLATPICKR MODERN DATEPICKER - UI/UX PRO MAX (HARI/BULAN/TAHUN BAKU)
     ========================================================================== */
  .flatpickr-calendar {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16), 0 6px 16px -2px rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    z-index: 999999 !important;
    padding: 6px !important;
    width: 308px !important;
  }
  .flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
    border-bottom-color: #ffffff !important;
  }
  .flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after {
    border-top-color: #ffffff !important;
  }
  .flatpickr-months {
    padding: 6px 4px 4px 4px !important;
    position: relative !important;
  }
  .flatpickr-months .flatpickr-month {
    height: 40px !important;
    color: #0f172a !important;
    fill: #0f172a !important;
  }
  .flatpickr-current-month {
    font-size: 14px !important;
    font-weight: 800 !important;
    padding-top: 2px !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  /* Sembunyikan dropdown bawaan HTML5 murni Flatpickr */
  .flatpickr-calendar select.flatpickr-monthDropdown-months,
  .flatpickr-monthDropdown-months {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* Tombol Bulan Kustom UI/UX Pro Max */
  .sru-fp-month-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sru-fp-month-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2575FC;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 117, 252, 0.12);
  }
  .sru-fp-month-btn:active {
    transform: scale(0.96);
  }
  .sru-fp-month-chevron {
    color: #64748b;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sru-fp-month-btn:hover .sru-fp-month-chevron {
    color: #2575FC;
  }
  /* Input Tahun Modern */
  .flatpickr-current-month .numInputWrapper {
    width: 68px !important;
    border-radius: 9px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.18s ease !important;
  }
  .flatpickr-current-month .numInputWrapper:hover,
  .flatpickr-current-month .numInputWrapper:focus-within {
    background: #ffffff !important;
    border-color: #2575FC !important;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.12) !important;
  }
  .flatpickr-current-month input.cur-year {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    padding: 3px 0 !important;
  }
  .flatpickr-current-month .numInputWrapper span.arrowUp,
  .flatpickr-current-month .numInputWrapper span.arrowDown {
    border: none !important;
    opacity: 0.6 !important;
    transition: opacity 0.15s ease !important;
  }
  .flatpickr-current-month .numInputWrapper:hover span.arrowUp,
  .flatpickr-current-month .numInputWrapper:hover span.arrowDown {
    opacity: 1 !important;
  }
  /* Overlay Pemilih Bulan 3x4 Grid (Bebas Pencarian / Filter) */
  .sru-fp-month-panel {
    position: absolute;
    top: 52px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16);
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 10px 10px 12px 10px;
    transform-origin: top center;
  }
  .sru-fp-month-panel.is-open {
    display: flex;
  }
  .sru-fp-month-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
  }
  .sru-fp-month-panel-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #64748b;
  }
  .sru-fp-month-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .sru-fp-month-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
  }
  .sru-fp-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
  }
  .sru-fp-month-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sru-fp-month-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2575FC;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.15);
  }
  .sru-fp-month-item:active {
    transform: scale(0.95);
  }
  .sru-fp-month-item.is-selected {
    background: linear-gradient(135deg, #2575FC 0%, #1652B0 100%) !important;
    border-color: #2575FC !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.35) !important;
    transform: scale(1.02);
  }
  .sru-fp-month-item.is-selected:hover {
    transform: translateY(-1px) scale(1.04);
  }

  .flatpickr-months .flatpickr-prev-month, 
  .flatpickr-months .flatpickr-next-month {
    border-radius: 8px !important;
    padding: 6px !important;
    transition: all 0.2s ease !important;
  }
  .flatpickr-months .flatpickr-prev-month:hover, 
  .flatpickr-months .flatpickr-next-month:hover {
    background: #f1f5f9 !important;
    color: #2575FC !important;
  }
  .flatpickr-months .flatpickr-prev-month:hover svg, 
  .flatpickr-months .flatpickr-next-month:hover svg {
    fill: #2575FC !important;
  }
  span.flatpickr-weekday {
    font-weight: 700 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
  }
  .flatpickr-day {
    border-radius: 10px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1e293b !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
  }
  .flatpickr-day:hover {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
  }
  .flatpickr-day.today {
    border-color: #2575FC !important;
    color: #2575FC !important;
    background: #f0f7ff !important;
    font-weight: 800 !important;
  }
  .flatpickr-day.today:hover {
    background: #2575FC !important;
    color: #ffffff !important;
  }
  .flatpickr-day.selected, 
  .flatpickr-day.selected:focus, 
  .flatpickr-day.selected:hover {
    background: linear-gradient(135deg, #2575FC 0%, #1652B0 100%) !important;
    border-color: #2575FC !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3) !important;
  }
  .flatpickr-day.flatpickr-disabled, 
  .flatpickr-day.flatpickr-disabled:hover {
    color: #cbd5e1 !important;
  }
  /* Soft Ghost Days: Tanggal di Luar Bulan Aktif (UI/UX Pro Max) */
  .flatpickr-day.prevMonthDay, 
  .flatpickr-day.nextMonthDay {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 0.35 !important;
    background: transparent !important;
    border-color: transparent !important;
  }
  .flatpickr-day.prevMonthDay:hover, 
  .flatpickr-day.nextMonthDay:hover {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
    opacity: 0.75 !important;
  }
  /* Input yang telah dikonversi oleh Flatpickr altInput */
  .flatpickr-input[readonly] {
    cursor: pointer !important;
    background-color: #ffffff !important;
  }
  .flatpickr-input-custom {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px 16px !important;
  }

  /* ========================================================================= */
  /* MULTI-SOURCE OF FUNDS CHIP & FINANCIAL FORM (UI/UX PRO MAX)               */
  /* ========================================================================= */
  .sumber-dana-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
    box-shadow: none;
    font-family: inherit;
  }
  .sumber-dana-chip:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #f8fafc;
    transform: none;
    box-shadow: none;
  }
  .sumber-dana-chip:active {
    transform: none;
  }
  .sumber-dana-chip.active {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
    font-weight: 700;
    box-shadow: none;
  }
  .sumber-dana-chip .chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
  }
  .sumber-dana-chip.active .chip-check {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: none;
  }
  .sumber-dana-chip.active .chip-check::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
  }

  /* Status Bar SiLPA & Ringkasan Pilihan Aktif */
  .sumber-dana-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    gap: 12px;
    margin-top: 4px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: var(--transition);
  }
  .sumber-dana-status-bar:hover {
    border-color: #cbd5e1;
  }
  .silpa-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    margin: 0;
  }
  .silpa-toggle-wrapper input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
  }
  .silpa-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
  }
  .silpa-desc {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
  }
  .active-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: none;
  }
  .active-badge-pill .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1d4ed8;
    display: inline-block;
    flex-shrink: 0;
  }
  .active-badge-pill .badge-prefix {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
  }
  .active-badge-pill .badge-name {
    color: #1e40af;
    font-weight: 700;
  }

  /* Input Nominal dengan Prefix Rp */
  .input-nominal-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }
  .nominal-currency-prefix {
    position: absolute;
    left: 14px;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    pointer-events: none;
    user-select: none;
  }
  .input-with-currency {
    padding-left: 40px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #1e3a8a !important;
  }

  /* Terbilang Callout Box */
  .terbilang-callout {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-left: 4px solid #2563eb;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: none;
    transition: border-color 0.15s ease;
  }
  .terbilang-callout:hover {
    border-color: #93c5fd;
    border-left-color: #1d4ed8;
  }
  .terbilang-callout-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 5px;
  }
  .terbilang-callout-body {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.5;
  }
  /* ==========================================================================
     EDITORIAL DASHBOARD DESIGN SYSTEM (PORTAL WARGA TYPOGRAPHY & TASTESKILL)
     ========================================================================== */
  .dashboard-section-gap {
    margin-bottom: 16px !important;
  }

  .dash-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .dash-h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.18;
  }
  .dash-sub {
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 400;
    color: #475569;
    line-height: 1.5;
  }
  .dash-head-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
  }

  .dash-alert-banner {
    display: none;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  .dash-alert-text {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
  }

  /* 7 Metrik Terpadu (Unified Editorial Stat Ledger - Explicit Type Sizes) */
  .dashboard-stat-ledger {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  @media (max-width: 1240px) {
    .dashboard-stat-ledger {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
  }
  @media (max-width: 680px) {
    .dashboard-stat-ledger {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  .stat-ledger-cell {
    padding: 16px 18px !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: background-color 0.15s ease !important;
    cursor: pointer !important;
  }
  .stat-ledger-cell:hover {
    background-color: #f8fafc !important;
  }
  @media (min-width: 1241px) {
    .stat-ledger-cell {
      border-bottom: none !important;
    }
    .stat-ledger-cell:nth-child(7n) {
      border-right: none !important;
    }
  }
  .stat-ledger-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .stat-ledger-cell.is-accent {
    background: #f0f4ff;
  }
  .stat-ledger-label.is-accent {
    color: #1d4ed8;
  }
  .stat-ledger-value {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
  }
  .stat-ledger-value.is-accent {
    color: #1d4ed8;
  }
  .stat-ledger-caption {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #475569;
    line-height: 1.3;
  }

  /* Workstation Grid & Switcher */
  .dash-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }
  @media (max-width: 1023px) {
    .dash-dual-grid {
      grid-template-columns: 1fr;
    }
  }
  .dash-switcher-wrap {
    display: inline-flex;
    padding: 4px;
    background: #e2e8f0;
    border-radius: 8px;
    gap: 4px;
  }
  .dash-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: none !important;
  }
  .dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .dash-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }
  .dash-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }
  .dash-card-desc {
    margin: 4px 0 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
  }
  .dash-header-note {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
  }

  /* Spotlight Registration Box */
  .dash-reg-box {
    background: #f4f8ff;
    border: 1px solid #dde4f5;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .dash-reg-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }
  .dash-reg-subject {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .dash-badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    background: #eef2ff;
    color: #1d4ed8;
    flex-shrink: 0;
  }
  .dash-badge-soft.is-ok {
    background: #ecfdf5;
    color: #065f46;
  }
  .dash-reg-perihal {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-reg-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
  }
  .dash-reg-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 9px 10px 9px 14px;
  }
  .dash-reg-code {
    font-size: 18px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
  }
  .dash-meta-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  @media (max-width: 639px) {
    .dash-meta-grid-3 {
      grid-template-columns: 1fr;
    }
  }

  /* Flat Editorial Action Buttons (Shared Rules) */
  .dash-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .dash-btn-dark {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
  }
  .dash-btn-dark:hover {
    background: #1e293b;
  }
  .dash-btn-primary {
    background: #1d4ed8;
    color: #ffffff;
    border: 1px solid #1d4ed8;
  }
  .dash-btn-primary:hover {
    background: #1e40af;
  }
  .dash-btn-outline {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
  }
  .dash-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
  }
  .dash-link-inline {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .dash-link-inline:hover {
    text-decoration: underline;
  }

  .dash-card-foot {
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #475569;
  }

  /* Tren & Produktivitas Helpers */
  .dash-tren-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dash-tren-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .dash-tren-rank {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    font-variant-numeric: tabular-nums;
    width: 18px;
    flex-shrink: 0;
  }
  .dash-tren-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 5px;
  }
  .dash-tren-pct {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #334155;
    flex-shrink: 0;
  }
  .dash-tren-pct.is-lead {
    color: #1d4ed8;
  }
  .dash-bar-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
  }
  .dash-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: #64748b;
  }
  .dash-bar-fill.is-lead {
    background: #1d4ed8;
  }

  /* SmartStack Tab Count Badge & Dashboard Permohonan Warga Card */
  .tab-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    background: #fef3c7;
    color: #92400e;
  }
  .smartstack-tab-btn.active .tab-count-badge {
    background: #ffffff;
    color: #1d4ed8;
  }
  .dash-perm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dash-perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
  }
  .dash-perm-row:hover {
    background: #ffffff;
    border-color: #cbd5e1;
  }
  .dash-perm-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #475569;
  }
  .dash-perm-code {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
  }
  .dash-perm-status {
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
  }
  .dash-perm-status.is-wait { background: #fef3c7; color: #92400e; }
  .dash-perm-status.is-proc { background: #dbeafe; color: #1e40af; }
  .dash-perm-status.is-done { background: #dcfce7; color: #166534; }
  .dash-perm-status.is-rej { background: #ffe4e6; color: #9f1239; }
  .dash-perm-title {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-perm-empty {
    padding: 28px 14px;
    text-align: center;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
  }

  /* Editorial Service Grid (Pusat Layanan Surat Kilat) */
  .service-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  @media (max-width: 1023px) {
    .service-grid-4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 639px) {
    .service-grid-4 {
      grid-template-columns: 1fr;
    }
  }
  .service-card-gov {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 3px solid #1d4ed8 !important;
    border-radius: 8px !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 14px !important;
    transition: border-color 0.15s ease, background-color 0.15s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
    position: relative !important;
  }
  .service-card-gov:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #1d4ed8 !important;
    border-top-color: #1d4ed8 !important;
    background: #eef2ff !important;
  }
  .service-card-gov-blue,
  .service-card-gov-emerald,
  .service-card-gov-purple,
  .service-card-gov-amber {
    border-top: 3px solid #1d4ed8 !important;
  }
  .service-card-tag {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
  }
  .service-card-title {
    margin: 6px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
  }
  .service-card-gov:hover .service-card-title {
    color: #1d4ed8;
  }
  .service-card-desc {
    margin: 6px 0 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
  }
  .service-card-cta {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
  }

  /* Split Grid Bawah (Sejajar & Bebas Panel Void) */
  .dash-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  @media (max-width: 1023px) {
    .dash-split-grid {
      grid-template-columns: 1fr;
    }
  }
  .dash-right-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .dash-right-rail .dash-card {
    padding: 16px 20px;
    gap: 10px;
  }
  .dash-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    color: #0f172a;
  }
  .dash-table th {
    padding: 0 12px 12px 0;
    border-bottom: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
  }
  .dash-table th:last-child {
    padding-right: 0;
    text-align: right;
  }
  .dash-table td {
    padding: 16px 12px 16px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
  }
  .dash-table td:last-child {
    padding-right: 0;
    text-align: right;
  }

  .dash-dist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dash-dist-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  .dash-shortcut-list {
    display: flex;
    flex-direction: column;
  }
  .dash-shortcut-row {
    padding: 9px 4px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  .dash-shortcut-row:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }
  .dash-shortcut-row:hover {
    background: #f8fafc;
  }
  .dash-shortcut-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
  }
  .dash-shortcut-desc {
    font-size: 13px;
    color: #475569;
    margin-top: 2px;
  }

  .doc-register-mono {
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.01em !important;
  }

  .gov-table-row {
    transition: background-color 0.12s ease !important;
  }
  .gov-table-row:hover {
    background-color: #f8fafc !important;
  }

  .btn-copied-active {
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }

  .pulse-beacon-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #059669;
    display: inline-block;
  }

  /* Copy feedback state */
  .is-copied,
  .btn-copy-action.is-copied {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
    transform: none !important;
  }

  /* ========================================================================= */
  /* GOVTECH EDITORIAL: HALAMAN SURAT KETERANGAN (#view-buat-surat) - TASTESKILL & PONYTAIL */
  /* ========================================================================= */
  #view-buat-surat #banner-status-buat-surat,
  #view-buat-surat .banner-civic-royal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    color: #0f172a !important;
  }
  #view-buat-surat #banner-status-buat-surat:hover,
  #view-buat-surat .banner-civic-royal:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  #view-buat-surat .civic-royal-glass-pill {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #view-buat-surat #info-buat-surat-nomor {
    color: #0f172a !important;
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-shadow: none !important;
  }
  #view-buat-surat #info-buat-surat-jenis {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
  }
  #view-buat-surat #info-buat-surat-pemohon {
    color: #0f172a !important;
    font-weight: 700 !important;
  }
  #view-buat-surat #pill-nomor-berikutnya-surat {
    background: #dcfae5 !important;
    border: 1px solid #bbf7d0 !important;
    color: #04250e !important;
    font-weight: 600 !important;
    font-size: 12px !important;
  }
  #view-buat-surat .civic-royal-btn-sync {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    box-shadow: none !important;
  }
  #view-buat-surat .civic-royal-btn-sync:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Multi-Stepper Buat Surat (Flat Segmented Navigation) */
  #view-buat-surat .buat-surat-stepper {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
  }
  #view-buat-surat .buat-surat-step-btn {
    border-radius: 6px !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }
  #view-buat-surat .buat-surat-step-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
  }
  #view-buat-surat .buat-surat-step-btn.active {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  #view-buat-surat .buat-surat-step-btn .step-number {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 6px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  #view-buat-surat .buat-surat-step-btn.active .step-number {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }
  #view-buat-surat .buat-surat-step-btn.completed .step-number {
    background: #dcfae5 !important;
    color: #04250e !important;
  }

  /* App Cards in Buat Surat (Framed-Sheet Surfaces) */
  #view-buat-surat .app-card:not(.banner-civic-royal) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 22px !important;
    margin-bottom: 20px !important;
  }
  #view-buat-surat .card-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }
  #view-buat-surat .card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  #view-buat-surat .card-title svg {
    color: #1d4ed8 !important;
    flex-shrink: 0;
  }

  /* Form Labels & Controls */
  #view-buat-surat .form-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
  }
  #view-buat-surat .form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 9px 12px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
  }
  #view-buat-surat .form-control:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    outline: none !important;
  }
  #view-buat-surat #input-nomor-surat {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* Quick Shortcut Chips */
  #view-buat-surat .quick-chip-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  #view-buat-surat .quick-chip-btn:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
  }

  /* OCR Dropzone Panel */
  #view-buat-surat .ocr-dropzone {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 22px 18px !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }
  #view-buat-surat .ocr-dropzone:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
  }
  #view-buat-surat .ocr-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }
  #view-buat-surat .ocr-subtitle {
    font-size: 12.5px !important;
    color: #475569 !important;
  }

  /* Step 2 Summary Bar */
  #view-buat-surat #step2-pemohon-summary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
  }

  /* Dynamic Sub-Panels (Ahli Waris & Pindah Domisili) */
  #view-buat-surat #dynamic-ahli-waris > div,
  #view-buat-surat #dynamic-pindah > div {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  /* Step Footer Actions */
  #view-buat-surat .buat-surat-step-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 14px !important;
  }
  #view-buat-surat .buat-surat-step-footer .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  #view-buat-surat .buat-surat-step-footer .btn-secondary:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
  }
  #view-buat-surat .buat-surat-step-footer .btn-primary,
  #view-buat-surat #btn-submit-surat {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #view-buat-surat .buat-surat-step-footer .btn-primary:hover,
  #view-buat-surat #btn-submit-surat:hover {
    background: #1e40af !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* ========================================================================= */
  /* FRAMED-SHEET EDITORIAL: HALAMAN SANTUNAN KEMATIAN (#view-santunan-kematian) */
  /* ========================================================================= */

  /* 1. Framed-Sheet Status Banner */
  #view-santunan-kematian #banner-status-santunan,
  #view-santunan-kematian .banner-santunan-civic {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    color: #0f172a !important;
  }
  #view-santunan-kematian #banner-status-santunan:hover,
  #view-santunan-kematian .banner-santunan-civic:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  #view-santunan-kematian .civic-royal-glass-pill {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #view-santunan-kematian #info-santunan-nomor-terakhir {
    color: #0f172a !important;
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 700 !important;
    text-shadow: none !important;
  }
  #view-santunan-kematian #info-santunan-almarhum {
    color: #0f172a !important;
    font-weight: 700 !important;
  }
  #view-santunan-kematian #info-santunan-ahliwaris {
    color: #475569 !important;
  }
  #view-santunan-kematian #pill-nomor-berikutnya-santunan {
    background: #dcfae5 !important;
    border: 1px solid #bbf7d0 !important;
    color: #04250e !important;
    font-weight: 600 !important;
    font-size: 12px !important;
  }
  #view-santunan-kematian .civic-royal-btn-sync {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    box-shadow: none !important;
  }
  #view-santunan-kematian .civic-royal-btn-sync:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
    box-shadow: none !important;
  }
  #view-santunan-kematian .santunan-glass-chip {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }
  #view-santunan-kematian .santunan-glass-chip:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
  }

  /* 2. Segmented Stepper Wizard */
  #view-santunan-kematian #santunan-stepper-nav {
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
  }
  #view-santunan-kematian .stepper-step-item {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
  }
  #view-santunan-kematian .stepper-step-item:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
  }
  #view-santunan-kematian .stepper-step-item.active {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  #view-santunan-kematian .stepper-step-number {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 6px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #view-santunan-kematian .stepper-step-item.active .stepper-step-number {
    background: #1d4ed8 !important;
    color: #ffffff !important;
  }
  #view-santunan-kematian .stepper-step-item.completed {
    color: #0f172a !important;
  }
  #view-santunan-kematian .stepper-step-item.completed .stepper-step-number {
    background: #dcfae5 !important;
    color: #04250e !important;
  }
  #view-santunan-kematian .stepper-divider {
    display: none !important;
  }

  /* 3. App Cards & Headings */
  #view-santunan-kematian .app-card:not(.banner-santunan-civic) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 22px !important;
    margin-bottom: 20px !important;
  }
  #view-santunan-kematian .card-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }
  #view-santunan-kematian .card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  #view-santunan-kematian .card-title svg {
    color: #1d4ed8 !important;
    flex-shrink: 0;
  }

  /* 4. Form Labels & Controls */
  #view-santunan-kematian .form-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
  }
  #view-santunan-kematian .form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 9px 12px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
  }
  #view-santunan-kematian .form-control:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    outline: none !important;
  }
  #view-santunan-kematian #santunan-nomor-surat,
  #view-santunan-kematian #santunan-hari-kematian {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* 5. Segmented Button for Asal Almarhum */
  #view-santunan-kematian .santunan-segmented-control {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 3px !important;
    gap: 4px !important;
  }
  #view-santunan-kematian .santunan-segmented-btn {
    border-radius: 6px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }
  #view-santunan-kematian .santunan-segmented-btn:hover {
    color: #0f172a !important;
  }
  #view-santunan-kematian .santunan-segmented-btn.active {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }

  /* 6. Smart Family Quick-Pick Box */
  #view-santunan-kematian .santunan-family-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
  }
  #view-santunan-kematian .santunan-family-chip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  #view-santunan-kematian .santunan-family-chip:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
  }
  #view-santunan-kematian .santunan-family-chip.active {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
  }

  /* 7. Action Buttons */
  #view-santunan-kematian .sticky-form-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 14px !important;
  }
  #view-santunan-kematian .sticky-form-footer .btn-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }
  #view-santunan-kematian .sticky-form-footer .btn-secondary:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
  }
  #view-santunan-kematian .sticky-form-footer .btn-primary,
  #view-santunan-kematian #btn-submit-santunan-bottom {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  #view-santunan-kematian .sticky-form-footer .btn-primary:hover,
  #view-santunan-kematian #btn-submit-santunan-bottom:hover {
    background: #1e40af !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* 8. Card 5 Summary Cards */
  #view-santunan-kematian .santunan-doc-summary-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    position: relative !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease !important;
  }
  #view-santunan-kematian .santunan-doc-summary-card:hover {
    border-color: #cbd5e1 !important;
    transform: none !important;
  }
  #view-santunan-kematian .santunan-doc-seq {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    font-family: inherit !important;
  }
  /* ========================================================================= */
  /* FRAMED-SHEET EDITORIAL: HALAMAN BANTUAN BENCANA BPBD (#view-bantuan-bencana) */
  /* ========================================================================= */

  /* 1. Framed-Sheet Status Banner */
  #view-bantuan-bencana #banner-status-bencana,
  #view-bantuan-bencana .banner-bencana-civic {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
    color: #0f172a !important;
    position: relative !important;
    overflow: hidden !important;
  }
  #view-bantuan-bencana #banner-status-bencana:hover,
  #view-bantuan-bencana .banner-bencana-civic:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  #view-bantuan-bencana .civic-royal-glass-pill {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  #view-bantuan-bencana #info-bencana-nomor-terakhir {
    color: #0f172a !important;
    font-family: inherit !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 700 !important;
  }
  #view-bantuan-bencana .civic-royal-btn-sync {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    box-shadow: none !important;
  }
  #view-bantuan-bencana .civic-royal-btn-sync:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
  }

  /* 2. Bento Grid & App Cards for Bantuan Bencana */
  #view-bantuan-bencana .bencana-bento-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
  }
  #view-bantuan-bencana .bencana-col-12 { grid-column: span 12 !important; }
  #view-bantuan-bencana .bencana-col-8 { grid-column: span 8 !important; }
  #view-bantuan-bencana .bencana-col-6 { grid-column: span 6 !important; }
  #view-bantuan-bencana .bencana-col-4 { grid-column: span 4 !important; }
  #view-bantuan-bencana .bencana-col-3 { grid-column: span 3 !important; }

  @media (max-width: 1024px) {
    #view-bantuan-bencana .bencana-col-8,
    #view-bantuan-bencana .bencana-col-6,
    #view-bantuan-bencana .bencana-col-4 {
      grid-column: span 12 !important;
    }
  }

  #view-bantuan-bencana .app-card:not(.banner-bencana-civic) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 22px !important;
    margin-bottom: 0 !important;
  }
  #view-bantuan-bencana .card-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }

  /* 3. Form Controls & Focus */
  #view-bantuan-bencana .form-label {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    letter-spacing: -0.01em !important;
  }
  #view-bantuan-bencana .form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 9px 12px !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
  }
  #view-bantuan-bencana .form-control:focus {
    border-color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    outline: none !important;
  }

  /* 4. Quick Action Chips for Bencana Types */
  #view-bantuan-bencana .bencana-chip-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #view-bantuan-bencana .bencana-chip-btn:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: none !important;
  }

  /* 5. Submit Button Action */
  #view-bantuan-bencana .btn-submit-bencana-action:hover {
    background: #1e40af !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* ========================================================================= */
  /* REDESIGN REKOMENDASI & BERITA ACARA SMARTPHONE (TASTESKILL APP-SCREEN)    */
  /* Quiet surface, 44px touch targets, 2x3 source grid, no blocking sticky    */
  /* ========================================================================= */
  .rekom-banner-toggle-btn,
  .rekom-mobile-stepper,
  .rekom-step1-mobile-bar,
  .rekom-step2-summary-chip,
  .rekom-btn-prev {
    display: none;
  }
  .rekom-chip-code {
    font-weight: 700;
  }
  .rekom-chip-name {
    font-weight: 500;
  }
  .rekom-riwayat-search {
    position: relative;
    width: 220px;
  }
  textarea.rekom-textarea-keterangan {
    min-height: 68px;
    line-height: 1.45;
  }

  /* Mobile & Tablet: hentikan stickyfooter agar tidak menutupi separuh layar HP */
  @media (max-width: 1023px) {
    #view-rekomendasi-keuangan .sticky-form-footer.rekom-form-footer {
      position: static !important;
      bottom: auto !important;
      z-index: 1 !important;
      display: grid !important;
      grid-template-columns: 1fr 1.35fr !important;
      gap: 8px !important;
      margin: 14px 0 24px !important;
      padding: 12px !important;
      background: #ffffff !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 16px !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }
    #view-rekomendasi-keuangan .rekom-footer-right {
      display: contents !important;
    }
    #view-rekomendasi-keuangan .rekom-btn-reset,
    #view-rekomendasi-keuangan .rekom-btn-preview {
      width: 100% !important;
      min-height: 44px !important;
      justify-content: center !important;
      padding: 10px 12px !important;
      font-size: 12.5px !important;
      font-weight: 600 !important;
      border-radius: 10px !important;
    }
    #view-rekomendasi-keuangan .rekom-btn-submit {
      grid-column: 1 / -1 !important;
      width: 100% !important;
      min-height: 48px !important;
      justify-content: center !important;
      padding: 12px 16px !important;
      font-size: 13.5px !important;
      border-radius: 12px !important;
      box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25) !important;
    }
  }

  @media (max-width: 768px) {
    #view-rekomendasi-keuangan .rekom-desktop-label {
      display: none !important;
    }

    /* 1. Banner Status -> Quiet Compact Ledger Summary Card (Collapsible 4 Kas) */
    #banner-status-rekomendasi.banner-civic-royal {
      background: #ffffff !important;
      color: #0f172a !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
      border-radius: 8px !important;
      padding: 12px 14px !important;
      margin-bottom: 12px !important;
      transform: none !important;
    }
    #banner-status-rekomendasi .rekom-banner-header {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 10px !important;
      border-bottom: none !important;
      padding-bottom: 0 !important;
    }
    #banner-status-rekomendasi .rekom-banner-info {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 5px !important;
      color: #334155 !important;
    }
    #banner-status-rekomendasi .rekom-banner-info > span {
      display: none !important;
    }
    #banner-status-rekomendasi .rekom-banner-info > div {
      color: #334155 !important;
      font-size: 12.5px !important;
      line-height: 1.4 !important;
    }
    #banner-status-rekomendasi .civic-royal-glass-pill {
      background: #eff6ff !important;
      color: #1d4ed8 !important;
      border: 1px solid #dbeafe !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      font-size: 11px !important;
      padding: 3px 9px !important;
    }
    #info-penarikan-sumber-dana {
      color: #0f172a !important;
      text-decoration: none !important;
      font-weight: 700 !important;
    }
    #info-penarikan-ke-terakhir {
      color: #0f172a !important;
      font-variant-numeric: tabular-nums !important;
    }
    #info-penarikan-nominal {
      color: #1d4ed8 !important;
      font-variant-numeric: tabular-nums !important;
    }
    #banner-status-rekomendasi .rekom-banner-actions {
      display: flex !important;
      gap: 8px !important;
      width: 100% !important;
    }
    #banner-status-rekomendasi .rekom-banner-toggle-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 5px !important;
      flex: 1 1 0 !important;
      min-height: 36px !important;
      padding: 6px 10px !important;
      border-radius: 10px !important;
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      color: #334155 !important;
      font-size: 11.5px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
    }
    #banner-status-rekomendasi .rekom-chevron {
      transition: transform 0.2s ease !important;
    }
    #banner-status-rekomendasi.rekom-bento-open .rekom-chevron {
      transform: rotate(180deg) !important;
    }
    #banner-status-rekomendasi .civic-royal-btn-sync {
      flex: 1 1 0 !important;
      justify-content: center !important;
      min-height: 36px !important;
      background: #ffffff !important;
      color: #1e293b !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      font-size: 11.5px !important;
      font-weight: 600 !important;
      border-radius: 10px !important;
    }
    #banner-status-rekomendasi .financial-bento-grid {
      display: none !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
      margin-top: 10px !important;
      padding-top: 10px !important;
      border-top: 1px solid #f1f5f9 !important;
    }
    #banner-status-rekomendasi.rekom-bento-open .financial-bento-grid {
      display: grid !important;
    }
    #banner-status-rekomendasi .financial-bento-card {
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 10px !important;
      padding: 9px 10px !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      box-shadow: none !important;
      color: #0f172a !important;
    }
    #banner-status-rekomendasi .financial-bento-title {
      color: #475569 !important;
      font-size: 12px !important;
    }
    #banner-status-rekomendasi .financial-bento-val {
      color: #0f172a !important;
      font-size: 14px !important;
      font-variant-numeric: tabular-nums !important;
    }
    #banner-status-rekomendasi .financial-bento-sub {
      color: #475569 !important;
      font-size: 12px !important;
      font-variant-numeric: tabular-nums !important;
      opacity: 1 !important;
    }

    /* 2. Segmented Switcher -> Satu Baris Rapi Full Width */
    #view-rekomendasi-keuangan .rekom-segmented-nav {
      display: flex !important;
      width: 100% !important;
      padding: 4px !important;
      gap: 4px !important;
      border-radius: 8px !important;
      margin-bottom: 12px !important;
      background: #f1f5f9 !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
    }
    #view-rekomendasi-keuangan .rekom-tab-btn {
      flex: 1 1 0 !important;
      min-width: 0 !important;
      min-height: 44px !important;
      padding: 8px 10px !important;
      font-size: 12.5px !important;
      border-radius: 6px !important;
      justify-content: center !important;
      white-space: nowrap !important;
      gap: 6px !important;
    }
    #view-rekomendasi-keuangan .rekom-tab-badge {
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      font-size: 12px !important;
      padding: 1px 7px !important;
    }

    /* 3. Form Cards -> Quiet 1px Surfaces & Touch Ergonomics */
    #view-rekomendasi-keuangan .app-card:not(.banner-civic-royal) {
      padding: 16px 14px !important;
      border-radius: 8px !important;
      margin-bottom: 14px !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
    }
    #view-rekomendasi-keuangan .card-header {
      align-items: flex-start !important;
      gap: 8px !important;
      padding-bottom: 10px !important;
      margin-bottom: 14px !important;
    }
    #view-rekomendasi-keuangan .card-title {
      font-size: 14.5px !important;
      line-height: 1.3 !important;
      align-items: flex-start !important;
    }
    #view-rekomendasi-keuangan .card-title svg {
      margin-top: 2px !important;
      flex-shrink: 0 !important;
    }
    #view-rekomendasi-keuangan .rekom-card-badge {
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      font-size: 12px !important;
      padding: 3px 8px !important;
    }
    #view-rekomendasi-keuangan .form-grid {
      gap: 14px !important;
    }
    #view-rekomendasi-keuangan .form-control {
      min-height: 44px !important;
      font-size: 14px !important;
      border-radius: 10px !important;
    }
    #view-rekomendasi-keuangan input,
    #view-rekomendasi-keuangan select,
    #view-rekomendasi-keuangan textarea {
      font-variant-numeric: tabular-nums !important;
    }

    /* 4. Sumber Dana Chips -> Grid 2 Kolom Simetris (3 Baris, Tanpa Stack 6 Baris) */
    #rek-sumber-dana-chips {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
      margin-bottom: 10px !important;
    }
    #rek-sumber-dana-chips .sumber-dana-chip {
      width: 100% !important;
      min-height: 48px !important;
      padding: 8px 10px !important;
      border-radius: 12px !important;
      align-items: flex-start !important;
      justify-content: flex-start !important;
      gap: 7px !important;
      white-space: normal !important;
    }
    #rek-sumber-dana-chips .sumber-dana-chip .chip-check {
      margin-top: 2px !important;
      flex-shrink: 0 !important;
    }
    #rek-sumber-dana-chips .sumber-dana-chip .chip-label {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      text-align: left !important;
      line-height: 1.25 !important;
    }
    #rek-sumber-dana-chips .rekom-chip-code {
      font-size: 12.5px !important;
      font-weight: 700 !important;
      color: inherit !important;
    }
    #rek-sumber-dana-chips .rekom-chip-name {
      font-size: 12px !important;
      font-weight: 500 !important;
      color: #475569 !important;
    }
    #view-rekomendasi-keuangan .rekom-multi-toggle-label {
      min-height: 32px !important;
      padding: 4px 10px !important;
      border-radius: 8px !important;
    }
    #view-rekomendasi-keuangan .sumber-dana-status-bar {
      padding: 10px 12px !important;
      border-radius: 12px !important;
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 8px !important;
    }
    #view-rekomendasi-keuangan .silpa-toggle-wrapper {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      column-gap: 8px !important;
      row-gap: 2px !important;
    }
    #view-rekomendasi-keuangan .silpa-title {
      white-space: nowrap !important;
      font-size: 13px !important;
      font-weight: 700 !important;
    }
    #view-rekomendasi-keuangan .silpa-desc {
      display: block !important;
      flex: 1 0 100% !important;
      padding-left: 25px !important;
      font-size: 12px !important;
      line-height: 1.35 !important;
      color: #475569 !important;
      margin-top: 0 !important;
    }
    #view-rekomendasi-keuangan .active-badge-pill {
      justify-content: flex-start !important;
      padding: 6px 10px !important;
      border-radius: 8px !important;
      white-space: normal !important;
      font-size: 11.5px !important;
    }

    /* 5. Kartu 2: Header SPTJM & Keterangan Horizontal Swipe + Textarea */
    #view-rekomendasi-keuangan .rekom-sptjm-header-bar {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 6px !important;
      margin-bottom: 6px !important;
    }
    #view-rekomendasi-keuangan .rekom-sptjm-controls {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      width: 100% !important;
    }
    #view-rekomendasi-keuangan .sptjm-pill-btn {
      min-height: 30px !important;
      padding: 4px 10px !important;
      font-size: 11px !important;
    }
    #view-rekomendasi-keuangan .rekom-inline-edit-btn {
      min-height: 32px !important;
      padding: 4px 10px !important;
      font-size: 11.5px !important;
    }
    #view-rekomendasi-keuangan .rekom-quick-chips-rail {
      display: flex !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      gap: 6px !important;
      padding: 2px 0 6px !important;
      margin-bottom: 6px !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none !important;
    }
    #view-rekomendasi-keuangan .rekom-quick-chips-rail::-webkit-scrollbar {
      display: none !important;
    }
    #view-rekomendasi-keuangan .rekom-quick-chips-rail .quick-chip-btn {
      flex: 0 0 auto !important;
      min-height: 36px !important;
      padding: 6px 12px !important;
      white-space: nowrap !important;
    }
    #view-rekomendasi-keuangan textarea.rekom-textarea-keterangan {
      min-height: 76px !important;
      padding: 10px 12px !important;
      line-height: 1.45 !important;
    }

    /* 6. Tab Riwayat Toolbar & Kartu Mobile */
    #rekom-pane-riwayat .rekom-riwayat-card-header {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 12px !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-card-header .card-title {
      width: 100% !important;
      justify-content: space-between !important;
      align-items: center !important;
      gap: 8px !important;
    }
    #rekom-pane-riwayat #badge-total-rekomendasi {
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-toolbar {
      display: grid !important;
      grid-template-columns: 1fr auto !important;
      gap: 8px !important;
      width: 100% !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-search {
      grid-column: 1 / -1 !important;
      grid-row: 1 !important;
      width: 100% !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-toolbar > select,
    #rekom-pane-riwayat .rekom-riwayat-toolbar > .sru-custom-select-wrapper {
      min-width: 0 !important;
      width: 100% !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-select,
    #rekom-pane-riwayat .sru-custom-select-trigger,
    #rekom-pane-riwayat #filter-rekom-search {
      min-height: 44px !important;
      font-size: 13px !important;
    }
    #rekom-pane-riwayat .rekom-riwayat-refresh {
      min-height: 44px !important;
      padding: 8px 14px !important;
      font-size: 12.5px !important;
      white-space: nowrap !important;
    }
    #mobile-rekom-cards-container .rekom-mobile-doc-card {
      border-radius: 16px !important;
      box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    }
    #mobile-rekom-cards-container .mobile-doc-meta-row.rekom-meta-stack {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 2px !important;
    }
    #mobile-rekom-cards-container .mobile-doc-meta-row.rekom-meta-stack .mobile-doc-meta-val {
      text-align: left !important;
      line-height: 1.45 !important;
    }
    #mobile-rekom-cards-container .rekom-mobile-card-actions .btn,
    #mobile-rekom-cards-container .rekom-mobile-card-utils .btn {
      min-height: 36px !important;
      min-width: 36px !important;
      justify-content: center !important;
    }

    /* 7. Modal Live Preview Rekomendasi di HP */
    #modal-preview-rekomendasi .modal-header {
      flex-wrap: wrap !important;
      gap: 10px !important;
      padding: 14px 16px !important;
    }
    #modal-preview-rekomendasi .rekom-preview-tabs-bar {
      padding: 8px 12px !important;
      overflow-x: auto !important;
      flex-wrap: nowrap !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-width: none !important;
    }
    #modal-preview-rekomendasi .rekom-preview-tabs-bar::-webkit-scrollbar {
      display: none !important;
    }
    #modal-preview-rekomendasi .rekom-preview-tabs-prefix {
      display: none !important;
    }
    #modal-preview-rekomendasi .rekom-preview-tabs-bar .btn {
      flex: 0 0 auto !important;
      white-space: nowrap !important;
      min-height: 38px !important;
    }
    #modal-preview-rekomendasi .rekom-preview-body {
      padding: 12px !important;
    }
    #modal-preview-rekomendasi .rekom-preview-paper {
      padding: 16px !important;
    }

    /* 8. Mobile 2-Step Stepper untuk Formulir Rekomendasi */
    #view-rekomendasi-keuangan .rekom-mobile-stepper {
      display: flex !important;
      margin-bottom: 12px !important;
      border-radius: 12px !important;
      padding: 4px !important;
      box-shadow: none !important;
      border: 1px solid #e2e8f0 !important;
    }
    #view-rekomendasi-keuangan .rekom-mobile-stepper .buat-surat-step-btn {
      min-height: 40px !important;
      padding: 7px 10px !important;
      border-radius: 9px !important;
      font-size: 12px !important;
    }
    #form-rekomendasi-keuangan[data-active-step="1"] #rekom-step-card-2,
    #form-rekomendasi-keuangan[data-active-step="1"] #rekom-step2-summary-chip,
    #form-rekomendasi-keuangan[data-active-step="1"] .rekom-form-footer {
      display: none !important;
    }
    #form-rekomendasi-keuangan[data-active-step="2"] #rekom-step-card-1 {
      display: none !important;
    }
    #view-rekomendasi-keuangan .rekom-step1-mobile-bar {
      display: grid !important;
      grid-template-columns: 0.72fr 1.28fr !important;
      gap: 8px !important;
      margin-top: 16px !important;
      padding-top: 14px !important;
      border-top: 1px solid #f1f5f9 !important;
    }
    #view-rekomendasi-keuangan .rekom-step1-reset,
    #view-rekomendasi-keuangan .rekom-step1-next {
      min-height: 46px !important;
      justify-content: center !important;
      border-radius: 10px !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
    }
    #view-rekomendasi-keuangan .rekom-step2-summary-chip {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 8px !important;
      background: #f8fafc !important;
      border: 1px solid #e2e8f0 !important;
      border-radius: 12px !important;
      padding: 9px 12px !important;
      margin-bottom: 10px !important;
    }
    #view-rekomendasi-keuangan .rekom-step2-summary-text {
      font-size: 12px !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      font-variant-numeric: tabular-nums !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #view-rekomendasi-keuangan .rekom-step2-edit-link {
      background: #ffffff !important;
      border: 1px solid #cbd5e1 !important;
      color: #1d4ed8 !important;
      font-size: 11.5px !important;
      font-weight: 700 !important;
      padding: 4px 10px !important;
      border-radius: 8px !important;
      flex-shrink: 0 !important;
      min-height: 30px !important;
      cursor: pointer !important;
    }
    #form-rekomendasi-keuangan[data-active-step="2"] .rekom-btn-reset {
      display: none !important;
    }
    #form-rekomendasi-keuangan[data-active-step="2"] .rekom-btn-prev {
      display: inline-flex !important;
      width: 100% !important;
      min-height: 44px !important;
      justify-content: center !important;
      padding: 10px 12px !important;
      font-size: 12.5px !important;
      font-weight: 600 !important;
      border-radius: 10px !important;
    }

    /* 9. Sederhanakan Modal Konfirmasi Review (#modal-review-rekomendasi) di HP */
    #modal-review-rekomendasi {
      padding: 10px !important;
    }
    #modal-review-rekomendasi .nikah-modal-card {
      max-height: 92dvh !important;
      border-radius: 16px !important;
    }
    #modal-review-rekomendasi .rekomendasi-modal-header {
      background: #ffffff !important;
      color: #0f172a !important;
      border-bottom: 1px solid #e2e8f0 !important;
      box-shadow: none !important;
      padding: 12px 14px !important;
    }
    #modal-review-rekomendasi .rekomendasi-modal-icon {
      display: none !important;
    }
    #modal-review-rekomendasi .rekomendasi-modal-title {
      color: #0f172a !important;
      font-size: 14.5px !important;
      text-shadow: none !important;
    }
    #modal-review-rekomendasi .rekomendasi-modal-subtitle {
      display: none !important;
    }
    #modal-review-rekomendasi .rekomendasi-modal-close {
      color: #64748b !important;
      min-width: 36px !important;
      min-height: 36px !important;
    }
    #modal-review-rekomendasi .nikah-modal-body {
      padding: 12px 14px !important;
      background: #f8fafc !important;
    }
    #modal-review-rekomendasi .nikah-review-highlight-box {
      padding: 12px !important;
      gap: 8px !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      box-shadow: none !important;
      margin-bottom: 10px !important;
    }
    #modal-review-rekomendasi .nikah-review-label {
      text-transform: none !important;
      letter-spacing: 0 !important;
      font-size: 11px !important;
      font-weight: 600 !important;
    }
    #modal-review-rekomendasi #review-rekom-nomor,
    #modal-review-rekomendasi #review-rekom-nominal {
      font-variant-numeric: tabular-nums !important;
    }
    #modal-review-rekomendasi .nikah-review-grid {
      gap: 10px !important;
      margin-bottom: 0 !important;
    }
    #modal-review-rekomendasi .nikah-review-card {
      padding: 12px !important;
      gap: 8px !important;
      box-shadow: none !important;
    }
    #modal-review-rekomendasi .nikah-review-card-header {
      padding-bottom: 6px !important;
      margin-bottom: 2px !important;
    }
    #modal-review-rekomendasi .nikah-review-badge {
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
      color: #64748b !important;
      font-size: 11px !important;
      font-weight: 700 !important;
    }
    #modal-review-rekomendasi .nikah-review-field {
      justify-content: space-between !important;
      align-items: baseline !important;
      gap: 10px !important;
      font-size: 12.5px !important;
    }
    #modal-review-rekomendasi .nikah-review-field .lbl {
      min-width: auto !important;
      font-size: 11.5px !important;
    }
    #modal-review-rekomendasi .nikah-review-field .val {
      text-align: right !important;
    }
    #modal-review-rekomendasi .nikah-review-docs-box,
    #modal-review-rekomendasi .nikah-review-notice {
      display: none !important;
    }
    #modal-review-rekomendasi .nikah-modal-footer {
      flex-direction: column-reverse !important;
      align-items: stretch !important;
      gap: 8px !important;
      padding: 12px 14px !important;
    }
    #modal-review-rekomendasi .nikah-modal-footer .btn {
      width: 100% !important;
      min-height: 44px !important;
      justify-content: center !important;
      border-radius: 10px !important;
    }
    #modal-review-rekomendasi #btn-konfirmasi-submit-rekom {
      min-height: 48px !important;
      background: #1d4ed8 !important;
      border-color: #1d4ed8 !important;
      box-shadow: 0 2px 10px rgba(29, 78, 216, 0.25) !important;
    }
  }
  /* ========================================================================= */
  /* GERBANG LOGIN ADMIN — SWISS ARCHITECTURAL LIGHT SPLIT-SCREEN              */
  /* ========================================================================= */
  html.sru-has-admin-token #admin-login-gate {
    display: none;
  }

  #admin-login-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    min-height: 100dvh;
    background: #ffffff;
    color: #0f172a;
    overflow-y: auto;
  }

  .sru-login-brand {
    flex: 0 0 56%;
    background: #f1f5f9;
    border-right: 1px solid #cbd5e1;
    padding: clamp(32px, 4.5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
  }

  .sru-login-brand-top {
    opacity: 0;
    transform: translateY(10px);
    animation: sruFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
  }

  .sru-login-inst {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
  }

  .sru-login-brand-core {
    max-width: 540px;
  }

  .sru-login-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    animation: sruLogoEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
  }

  .sru-login-logo-hss {
    width: 60px;
    height: 68px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
    animation: sruEmblemDrift 9s ease-in-out infinite alternate;
  }

  .sru-login-logo-frame {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sru-login-logos:hover .sru-login-logo-frame {
    transform: translateY(-2px);
    border-color: #94a3b8;
  }

  .sru-login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
  }

  .sru-login-title {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 34px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #0f172a;
  }

  .sru-line-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
  }

  .sru-line-inner {
    display: block;
    transform: translateY(108%);
    animation: sruMaskedRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .sru-line-mask:nth-child(2) .sru-line-inner {
    animation-delay: 0.11s;
  }

  .sru-login-desc {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #0f172a;
    max-width: 38ch;
    opacity: 0;
    transform: translateY(16px);
    animation: sruFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
  }

  .sru-login-brand-foot {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    opacity: 0;
    transform: translateY(10px);
    animation: sruFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.34s forwards;
  }

  .sru-login-main {
    flex: 1 1 44%;
    background: #ffffff;
    padding: clamp(28px, 4.5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sru-login-panel {
    width: 100%;
    max-width: 368px;
  }

  .sru-login-stagger {
    opacity: 0;
    transform: translateY(14px);
    animation: sruFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .sru-stagger-1 { animation-delay: 0.1s; }
  .sru-stagger-2 { animation-delay: 0.18s; }
  .sru-stagger-3 { animation-delay: 0.25s; }
  .sru-stagger-4 { animation-delay: 0.32s; }

  .sru-login-head {
    margin-bottom: 24px;
  }

  .sru-login-heading {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
  }

  .sru-login-sub {
    margin: 10px 0 0;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
    color: #475569;
  }

  .sru-login-error {
    display: none;
    margin-bottom: 16px;
    padding: 11px 13px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    color: #9f1239;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
  }

  .sru-login-field {
    margin-bottom: 16px;
  }

  .sru-login-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
  }

  .sru-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .sru-login-input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
  }

  .sru-login-input::placeholder {
    color: #64748b;
  }

  .sru-login-input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
  }

  .sru-login-eye-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease-out, background-color 0.15s ease-out;
  }

  .sru-login-eye-btn:hover,
  .sru-login-eye-btn:focus-visible {
    color: #0f172a;
    background: #f1f5f9;
    outline: none;
  }

  .sru-login-remember-wrap {
    margin: -4px 0 16px;
  }

  .sru-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
  }

  .sru-login-checkbox {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0f172a;
    cursor: pointer;
    border-radius: 4px;
  }

  .sru-login-checkbox:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
  }

  .sru-login-submit {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sru-login-submit:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
  }

  .sru-login-submit:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
  }

  .sru-login-submit:active:not(:disabled) {
    transform: translateY(1px);
  }

  .sru-login-submit:disabled {
    background: #cbd5e1;
    color: #334155;
    cursor: not-allowed;
  }

  .sru-login-back-wrap {
    margin-top: 22px;
  }

  .sru-login-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sru-login-back-arrow {
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sru-login-back:hover,
  .sru-login-back:focus-visible {
    color: #0f172a;
    outline: none;
  }

  .sru-login-back:hover .sru-login-back-arrow {
    transform: translateX(-3px);
  }

  @keyframes sruMaskedRise {
    to {
      transform: translateY(0);
    }
  }

  @keyframes sruFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes sruLogoEnter {
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes sruEmblemDrift {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.04) translateY(-2px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .sru-login-brand-top,
    .sru-login-logos,
    .sru-login-logo-hss,
    .sru-line-inner,
    .sru-login-desc,
    .sru-login-brand-foot,
    .sru-login-stagger {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }

  @media (max-width: 900px) {
    #admin-login-gate {
      flex-direction: column;
    }

    .sru-login-brand {
      flex: 0 0 auto;
      border-right: none;
      border-bottom: 1px solid #cbd5e1;
      padding: 24px 20px;
      gap: 14px;
    }

    .sru-login-brand-top,
    .sru-login-brand-foot {
      display: none;
    }

    .sru-login-brand-core {
      max-width: none;
    }

    .sru-login-logos {
      gap: 10px;
      margin-bottom: 14px;
    }

    .sru-login-logo-hss {
      width: 40px;
      height: 46px;
    }

    .sru-login-logo-frame {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      padding: 4px;
    }

    .sru-login-title {
      font-size: 24px;
      line-height: 1.08;
    }

    .sru-login-desc {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.45;
    }

    .sru-login-main {
      flex: 1 0 auto;
      align-items: flex-start;
      justify-content: center;
      padding: 40px 24px;
    }

    .sru-login-panel {
      max-width: 420px;
    }
  }

  @media (max-width: 560px) {
    .sru-login-main {
      padding: 28px 20px 40px;
    }

    .sru-login-panel {
      max-width: none;
    }
  }
