﻿@import url("../base/tokens.css");
@import url("../base/state.css");
@import url("../base/reset.css");
@import url("../shared/scrollbar.css");
@import url("../shared/loading.css");
@import url("../shared/empty-state.css");
@import url("../shared/buttons.css");
@import url("../shared/cards.css");
@import url("../shared/forms.css");

/* ===== RESET & VARS ===== */

    :root {
      /* â”€â”€ Government Portal Design System â”€â”€ */
      /* Primary Colors */
      --primary: #0A1628;
      --primary-dark: #060E1A;
      --secondary: #1C2B4A;
      --accent: #C8922A;
      --accent-dark: #A87520;
      --accent-light: #FFF8E1;

      /* Backgrounds */
      --bg-body: #F4F5F7;
      --bg-card: #FFFFFF;
      --bg-sidebar: #0A1628;
      --bg-sidebar-user: #060E1A;
      --bg-sidebar-active: #E8EDF5;

      /* Text */
      --text-main: #1A1A2E;
      --text-secondary: #4A4A6A;
      --text-muted: #6B7A96;
      --text-light: #FFFFFF;

      /* Border */
      --border: #E4E8EF;
      --input-bg: #FFFFFF;

      /* Status Colors */
      --status-blue: #2196F3;
      --status-green-dark: #2D7D52;
      --status-green-light: #8BC34A;
      --status-yellow-green: #CDDC39;
      --status-yellow: #FFEB3B;
      --status-orange: #FF9800;
      --status-red: #F44336;

      /* Semantic aliases */
      --success: #2D7D52;
      --warning: #FF9800;
      --danger: #F44336;
      --info: #2196F3;
      --green: var(--status-green-dark);
      --red: var(--status-red);
      --blue: var(--status-blue);
      --orange: var(--status-orange);
      --teal: #14b8a6;
      --white: #FFFFFF;
      --navy: var(--primary);
      --gold: var(--accent);

      /* Sizing */
      --sidebar: 260px;
      --topbar-utility: 52px;
      --topbar-nav: 44px;
      --topbar: 96px;
      /* combined height */

      /* Shape */
      --radius: 8px;
      --radius-sm: 5px;

      /* Shadows â€” flat style */
      --shadow: 0 2px 8px rgba(10, 22, 40, .07);
      --shadow-md: 0 4px 16px rgba(10, 22, 40, .10);

      /* Typography */
      --ff: 'Source Sans 3', system-ui, sans-serif;
      --ff-display: 'Plus Jakarta Sans', 'Source Sans 3', system-ui, sans-serif;
      --ff-serif: 'Plus Jakarta Sans', 'Source Sans 3', system-ui, sans-serif;
      --ff-mono: 'JetBrains Mono', 'Fira Code', monospace;

      /* Transitions */
      --transition: all 0.15s ease;

      /* Gray scale (kept for backward compat) */
      --gray-1: #F1F5F9;
      --gray-2: #E2E8F0;
      --gray-3: #BDBDBD;
      --gray-5: #4A4A6A;
      --scrollbar-size: 4px;
      --scrollbar-thumb: #BDBDBD;
      --scrollbar-radius: 4px;
      --loading-bg: rgba(13, 31, 60, .55);
      --loading-backdrop: none;
      --loading-z: 500;
      --spinner-size: 36px;
      --spinner-ring: rgba(255, 255, 255, .2);
      --spinner-top: #fff;
      --loading-text: #fff;
      --loading-text-weight: 500;
      --empty-padding: 48px 20px;
      --empty-color: var(--text-muted);
      --empty-ico-size: 36px;
      --empty-ico-gap: 10px;
      --empty-ico-color: var(--orange);
      --empty-ico-opacity: 1;
      --btn-gap: 8px;
      --btn-padding: 10px 20px;
      --btn-min-height: 44px;
      --btn-radius: var(--radius);
      --btn-font-family: var(--ff);
      --btn-font-size: 13px;
      --btn-font-weight: 600;
      --btn-transition: background 0.1s;
      --btn-border: none;
      --btn-focus-ring: 0 0 0 3px rgba(245, 166, 35, 0.4);
      --btn-sm-padding: 8px 14px;
      --btn-sm-min-height: 40px;
      --btn-sm-font-size: 12px;
      --btn-xs-padding: 6px 10px;
      --btn-xs-min-height: 36px;
      --btn-xs-font-size: 11px;
      --card-bg: var(--bg-card);
      --card-border: 1px solid var(--border);
      --card-radius: var(--radius);
      --card-shadow: var(--shadow);
      --card-margin-bottom: 24px;
      --card-overflow: hidden;
      --card-head-padding: 14px 20px;
      --card-head-border: 1px solid var(--border);
      --card-head-display: flex;
      --card-head-justify: space-between;
      --card-head-align: center;
      --card-head-bg: var(--bg-card);
      --card-title-font-weight: 700;
      --card-title-font-size: 15px;
      --card-title-color: #1A1A2E;
      --card-title-display: flex;
      --card-title-align: center;
      --card-title-gap: 8px;
      --card-body-padding: 24px;
      --form-grid-gap: 14px;
      --fgroup-align: flex-start;
      --fgroup-gap: 6px;
      --fgroup-margin-bottom: 4px;
      --flabel-size: 12.5px;
      --flabel-weight: 600;
      --flabel-transform: none;
      --flabel-letter-spacing: normal;
      --flabel-color: var(--text-secondary);
      --hint-color: var(--text-muted);
    }

    body {
      font-family: var(--ff);
      font-size: 13px;
      color: var(--text-main);
      background: var(--bg-body);
      display: flex;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      line-height: 1.5;
    }

    /* ===== SIDEBAR ===== */
    .sidebar {
      width: var(--sidebar);
      background-color: var(--bg-sidebar);
      color: var(--text-light);
      display: flex;
      flex-direction: column;
      height: 100vh;
      position: fixed;
      left: 0;
      top: 0;
      z-index: 200;
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-width: none;
    }

    .sidebar::-webkit-scrollbar {
      display: none;
    }

    /* Sidebar user info block */
    .sidebar-brand {
      padding: 16px;
      background: var(--bg-sidebar-user);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      text-align: left;
    }

    .brand-em {
      font-size: 13px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.85);
      line-height: 1.4;
      margin-bottom: 2px;
    }

    /* user ID shown large */
    .sidebar-brand .user-id {
      display: block;
      font-size: 18px;
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.2;
      margin-bottom: 4px;
    }

    .brand-sub {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.75);
      font-weight: 400;
      line-height: 1.4;
    }

    .sidebar-nav {
      flex: 1;
      padding: 8px 0;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
      display: none;
    }

    .nav-group-label {
      font-size: 13px;
      font-weight: 700;
      color: #FFFFFF;
      padding: 16px 20px 6px;
      margin-top: 8px;
      letter-spacing: 0;
      text-transform: none;
    }

    .nav-item {
      padding: 10px 20px;
      cursor: pointer;
      display: block;
      color: rgba(255, 255, 255, 0.85);
      transition: background 0.1s ease;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
      user-select: none;
      text-decoration: none;
      position: relative;
      border-left: 3px solid transparent;
    }

    .nav-item:hover {
      background-color: #243660;
      color: white;
    }

    .nav-item.active {
      background: var(--bg-sidebar-active);
      color: var(--primary);
      font-weight: 700;
      border-left: 3px solid var(--accent);
    }

    /* Show icons in nav to introduce emojis */
    .nav-ico {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 28px;
      margin-right: 10px;
      border-radius: 10px;
      border: 1px solid rgba(200, 146, 42, 0.22);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
      color: #F7D791;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .nav-item:hover .nav-ico,
    .nav-item.active .nav-ico {
      background: rgba(10, 22, 40, 0.08);
      border-color: rgba(10, 22, 40, 0.12);
      color: var(--primary);
    }

    .nav-badge {
      margin-left: 8px;
      background: var(--accent);
      color: var(--primary);
      font-size: 11px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      font-family: var(--ff-mono);
    }

    .sidebar-foot {
      padding: 12px 16px;
      border-top: 1px solid rgba(255, 255, 255, .08);
      font-size: 11px;
      color: rgba(255, 255, 255, .35);
      line-height: 1.5;
    }

    /* ===== MAIN ===== */
    .main {
      margin-left: var(--sidebar);
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ===== TOP UTILITY BAR + NAV MENU ===== */
    /* top-utility: white bg, 52px */
    .top-utility {
      height: var(--topbar-utility);
      flex-shrink: 0;
      background: #FFFFFF;
      border-bottom: 1px solid #E0E0E0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      position: sticky;
      top: 0;
      z-index: 999;
      /* Increased z-index to stay above content */
    }

    .top-utility-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .top-utility-logo {
      height: 32px;
      width: auto;
    }

    .top-utility-brand {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);
    }

    .top-utility-right {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .top-user-info {
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
    }

    .top-user-text {
      text-align: right;
    }

    .top-user-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-main);
    }

    .top-user-role {
      font-size: 11px;
      color: var(--text-muted);
    }

    .top-user-avatar {
      width: 32px;
      height: 32px;
      background: var(--gray-2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--primary);
    }

    /* top-nav: navy bg, 44px */
    .top-nav {
      height: var(--topbar-nav);
      flex-shrink: 0;
      background: var(--primary);
      display: flex;
      align-items: center;
      padding: 0 24px;
      position: sticky;
      top: var(--topbar-utility);
      z-index: 998;
      /* Increased z-index to stay above content, but below utility */
      box-shadow: var(--shadow);
    }

    .top-nav-list {
      display: flex;
      list-style: none;
      height: 100%;
    }

    .top-nav-item {
      padding: 0 20px;
      height: 100%;
      display: flex;
      align-items: center;
      color: #FFFFFF;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.1s;
    }

    .top-nav-item:hover {
      background: var(--secondary);
    }

    .top-nav-item.active {
      background: var(--accent);
      color: var(--primary);
    }

    /* Date and Sync move to utility or nav right */
    .topbar-right-alt {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .topbar-date {
      font-size: 12px;
      color: rgba(255, 255, 255, .75);
    }

    .content {
      padding: 24px;
      flex: 1;
    }

    /* ===== PAGES ===== */
    .page {
      display: none;
      animation: fadeUp .18s ease;
    }

    .page.active {
      display: block;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(5px);
      }

      to {
        opacity: 1;
        transform: none;
      }
    }

    /* ===== STAT CARDS ===== */
    .stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .stat {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      position: relative;
      overflow: hidden;
      box-shadow: var(--shadow);
      border-top: 3px solid var(--border);
    }

    .stat.s-navy {
      border-top-color: var(--primary);
    }

    .stat.s-gold {
      border-top-color: var(--accent);
    }

    .stat.s-green {
      border-top-color: var(--status-green-dark);
    }

    .stat.s-orange {
      border-top-color: var(--status-orange);
    }

    .stat-label {
      font-size: 11.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }

    .stat-val {
      font-size: 32px;
      /* Larger */
      font-weight: 800;
      /* Extra bold */
      color: var(--primary);
      line-height: 1;
    }

    .stat-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 5px;
    }

    /* ===== HERO BANNER (GOVERNMENT OFFICIAL) ===== */
    .hero-banner {
      background: linear-gradient(135deg, #0A1628 0%, #1A2C50 60%, #0A1628 100%);
      border-radius: 10px;
      padding: 36px 48px;
      margin-bottom: 28px;
      min-height: 180px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      overflow: hidden;
      box-shadow: 0 6px 20px rgba(10, 22, 40, 0.22);
      border: 1px solid rgba(200, 146, 42, 0.18);
    }

    .hero-banner:hover {
      box-shadow: 0 10px 28px rgba(10, 22, 40, 0.28);
    }

    @keyframes gradientShift {

      0%,
      100% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }
    }

    .hero-banner::before {
      content: '';
      position: absolute;
      top: -80px;
      right: -80px;
      width: 320px;
      height: 320px;
      background: radial-gradient(circle, rgba(200, 146, 42, 0.07) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 1;
    }

    .hero-banner::after {
      content: '';
      position: absolute;
      bottom: -80px;
      left: -80px;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 1;
    }

    @keyframes floatGlow {
      from {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
      }

      to {
        transform: translate(30px, 40px) scale(1.2);
        opacity: 0.8;
      }
    }

    .hero-content {
      flex: 1;
      z-index: 3;
      animation: slideInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }

      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .hero-title {
      font-size: 26px;
      font-weight: 700;
      color: #FFFFFF;
      line-height: 1.2;
      letter-spacing: -0.01em;
      margin-bottom: 10px;
    }

    .hero-sub {
      font-size: 13.5px;
      color: rgba(255, 255, 255, 0.78);
      font-weight: 400;
      line-height: 1.65;
      max-width: 600px;
      margin-bottom: 24px;
    }

    .hero-actions {
      display: flex;
      gap: 16px;
    }

    /* Banner Action Buttons */
    .hero-banner .btn-gold {
      padding: 10px 24px;
      font-size: 13px;
      background: var(--accent);
      color: #fff;
      border: 1px solid var(--accent);
      font-weight: 600;
    }

    .hero-banner .btn-gold:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }

    .hero-banner .btn-ghost {
      padding: 10px 24px;
      font-size: 13px;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.35);
      color: rgba(255, 255, 255, 0.85);
    }

    .hero-banner .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.6);
    }

    .hero-illustration {
      z-index: 3;
      flex-shrink: 0;
      opacity: 0.85;
    }

    @keyframes floatingIllustration {

      0%,
      100% {
        transform: none;
      }
    }

    /* ===== GRID ===== */
    .dash-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    /* ===== CARD ===== */
    .card-head .btn-ghost {
      color: var(--text-main);
      border-color: var(--border);
    }

    .card-head .btn-ghost:hover {
      background: var(--gray-1);
      border-color: var(--primary);
      color: var(--primary);
    }

    #dash-recent::-webkit-scrollbar {
      width: 4px;
    }

    #dash-recent::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 10px;
    }

    .dash-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 14px 24px;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: var(--transition);
      position: relative;
    }

    .dash-item:hover {
      background: #F8F9FA;
      padding-left: 28px;
    }

    .dash-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 4px;
      height: 100%;
      background: var(--primary);
      opacity: 0;
      transition: var(--transition);
    }

    .dash-item:hover::before {
      opacity: 1;
    }

    .dash-info {
      flex: 1;
      min-width: 0;
    }

    .dash-name {
      font-weight: 700;
      font-size: 14px;
      color: var(--primary);
      margin-bottom: 4px;
    }

    .dash-meta {
      font-size: 11.5px;
      font-weight: 500;
      color: var(--text-muted);
    }

    /* ===== BUTTONS ===== */
    .btn-navy {
      background: linear-gradient(180deg, #132645 0%, #0A1628 100%);
      color: #fff;
      box-shadow: 0 10px 20px rgba(10, 22, 40, .18);
    }

    .btn-navy:hover {
      background: linear-gradient(180deg, #182d50 0%, #060E1A 100%);
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(10, 22, 40, .22);
    }

    .btn-gold {
      background: linear-gradient(180deg, #E1AE4E 0%, #C8922A 100%);
      color: #24170A;
      border: 1px solid var(--accent);
      box-shadow: 0 10px 24px rgba(200, 146, 42, .24);
    }

    .btn-gold:hover {
      background: linear-gradient(180deg, #E7B85E 0%, #A87520 100%);
      border-color: var(--accent-dark);
      transform: translateY(-1px);
      box-shadow: 0 14px 28px rgba(200, 146, 42, .28);
    }

    .btn-gold-outline {
      background: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
    }

    .btn-gold-outline:hover {
      background: var(--primary);
      color: white;
    }

    .btn-ghost {
      background: rgba(255, 255, 255, 0.92);
      color: var(--text-main);
      border: 1px solid var(--border);
      box-shadow: 0 8px 20px rgba(10, 22, 40, .06);
    }

    .btn-ghost:hover {
      border-color: var(--primary);
      background: #F8FAFC;
      color: var(--primary);
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(10, 22, 40, .09);
    }

    .btn-red {
      background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
      color: #fff;
      box-shadow: 0 10px 20px rgba(185, 28, 28, .18);
    }

    .btn-red:hover {
      opacity: .9;
    }

    .btn-green {
      background: linear-gradient(180deg, #22C55E 0%, #15803D 100%);
      color: #fff;
      box-shadow: 0 10px 20px rgba(21, 128, 61, .18);
    }

    .btn-teal {
      background: linear-gradient(180deg, #2DD4BF 0%, #0F766E 100%);
      color: #fff;
      box-shadow: 0 10px 20px rgba(15, 118, 110, .18);
    }

    .btn-orange {
      background: linear-gradient(180deg, #FB923C 0%, #C2410C 100%);
      color: #fff;
      box-shadow: 0 10px 20px rgba(194, 65, 12, .18);
    }

    .btn-teal {
      background: var(--teal);
      color: #fff;
    }

    .btn-orange {
      background: var(--orange);
      color: #fff;
    }

    .btn-purple {
      background: #7C3AED;
      color: #fff;
    }

    /* ===== BADGES / STATUS CHIPS ===== */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: var(--radius-sm);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      white-space: nowrap;
      letter-spacing: 0.03em;
    }

    /* Colored square dot instead of bullet */
    .badge::before {
      content: '';
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 1px;
      background: currentColor;
      flex-shrink: 0;
    }

    /* Status chip colors per spec palette */
    .b-diterima {
      background: #E3F2FD;
      color: #1565C0;
    }

    .b-dijadwalkan {
      background: #F3E5F5;
      color: #6A1B9A;
    }

    .b-triase {
      background: #FFF3E0;
      color: #E65100;
    }

    .b-pengukuran {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .b-desain {
      background: #F9FBE7;
      color: #558B2F;
    }

    .b-siap {
      background: #FFFDE7;
      color: #F57F17;
    }

    .b-selesai {
      background: #F5F5F5;
      color: #424242;
    }

    .b-ditolak {
      background: #FFEBEE;
      color: #B71C1C;
    }

    /* ===== TABLE ===== */
    .tbl-wrap {
      overflow-x: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    thead tr {
      border-bottom: none;
    }

    th {
      padding: 12px 16px;
      text-align: left;
      font-size: 12px;
      font-weight: 700;
      color: #FFFFFF;
      white-space: nowrap;
      background: var(--primary);
      letter-spacing: .02em;
      text-transform: uppercase;
    }

    /* Navy header (government official style) */
    thead.thead-yellow th,
    thead th {
      background-color: var(--primary);
      color: #FFFFFF;
      padding: 11px 16px;
      text-align: left;
      font-weight: 700;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .02em;
    }

    thead tr.header-filter {
      border-bottom: 1px solid var(--border);
    }

    thead tr.header-filter th {
      background: #FFFFFF;
      padding: 6px 8px;
    }

    .col-search {
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 40px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--bg-card);
      overflow: hidden;
      transition: var(--transition);
    }

    .col-search .col-icon {
      position: absolute;
      left: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12px;
      pointer-events: none;
      z-index: 1;
    }

    .col-search input,
    .col-search select {
      width: 100%;
      min-height: 38px;
      height: 38px;
      padding: 8px 10px 8px 52px;
      border: 0;
      border-radius: 0;
      font-size: 11px;
      outline: none;
      background: transparent;
      transition: var(--transition);
      color: var(--text-main);
      box-shadow: none;
    }

    .col-search select {
      padding-left: 52px;
    }

    .col-search:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(26, 49, 102, 0.1);
    }

    .col-search input:focus,
    .col-search select:focus {
      box-shadow: none;
    }

    tbody tr {
      border-bottom: 1px solid var(--border);
      background-color: #FFFFFF;
      transition: background .1s;
    }

    tbody tr:nth-child(even) {
      background-color: #FAFAFA;
    }

    tbody tr:hover {
      background: #EEF2FF !important;
    }

    td {
      padding: 12px 16px;
      vertical-align: middle;
      color: var(--text-main);
    }

    .td-act {
      display: flex;
      gap: 8px;
    }

    /* ===== PAGINATION ===== */
    .pagination {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      padding: 12px 24px;
      border-top: 1px solid var(--border);
      background: #FFFFFF;
      gap: 16px;
    }

    .pagin-info {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .pagin-controls {
      display: flex;
      gap: 4px;
      align-items: center;
    }

    .pagin-page {
      font-weight: 600;
      color: var(--primary);
      min-width: 40px;
      text-align: center;
    }

    /* Select in pagination/table */
    .pagin-select {
      height: 28px;
      padding: 0 8px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 12px;
      width: auto;
    }

    /* ===== FORM ===== */
    .fg3 {
      grid-template-columns: 1fr 1fr 1fr;
    }

    .form-sec {
      background: #F8FAFC;
      border: 1px solid #E4E8EF;
      border-radius: var(--radius);
      padding: 16px 18px;
      margin-bottom: 16px;
    }

    .form-sec-title {
      font-size: 13px;
      /* Slightly larger */
      font-weight: 800;
      /* Much bolder */
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--primary);
      /* Use primary color */
      margin-bottom: 16px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--accent);
      /* Accent border */
    }

    label.flabel {
      width: 100%;
      min-width: auto;
    }

    .fcontrol-wrap {
      width: 100%;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 44px;
      height: 44px;
      padding: 0 12px;
      font-family: inherit;
      font-size: 16px;
      font-weight: 400;
      border: 1px solid #BDBDBD;
      border-radius: var(--radius-sm);
      background-color: #FFFFFF;
      color: var(--text-main);
      outline: none;
      transition: border-color 0.1s;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
    }

    textarea {
      height: auto;
      padding: 8px 12px;
      resize: vertical;
      min-height: 80px;
    }

    input::placeholder {
      color: var(--text-muted);
    }

    .chk-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 7px;
      margin-top: 4px;
    }

    .chk-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      padding: 7px 10px;
      border: 1px solid var(--gray-3);
      border-radius: var(--radius);
      cursor: pointer;
      transition: background .1s;
      font-size: 12.5px;
    }

    .chk-item:has(input:checked) {
      background: #eff6ff;
      border-color: #93c5fd;
    }

    .chk-item input[type=checkbox] {
      width: 14px;
      height: 14px;
      margin-top: 1px;
      accent-color: var(--navy);
      cursor: pointer;
    }

    /* ===== FILTER BAR ===== */
    .fbar {
      display: flex;
      gap: 9px;
      margin-bottom: 14px;
      flex-wrap: wrap;
      align-items: center;
    }

    .search-wrap {
      position: relative;
      flex: 1;
      min-width: 180px;
      display: flex;
      align-items: center;
      min-height: 44px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: #FFFFFF;
      overflow: hidden;
      transition: var(--transition);
    }

    .search-wrap input {
      min-height: 42px;
      height: 42px;
      padding: 0 14px 0 72px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .search-ico {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 28px;
      border-radius: 10px;
      border: 1px solid #D7E0EC;
      background: #F8FAFC;
      color: var(--primary);
      pointer-events: none;
    }

    .search-wrap:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(26, 49, 102, 0.1);
    }

    .col-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 28px;
      border-radius: 10px;
      background: #FFF7E6;
      border: 1px solid rgba(200, 146, 42, .2);
      color: var(--accent-dark);
    }

    .empty-ico {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 54px;
      height: 54px;
      padding: 0;
      border-radius: 16px;
      background: linear-gradient(180deg, #FFF8E1 0%, #FDECC8 100%);
      border: 1px solid rgba(200, 146, 42, .24);
      color: var(--accent-dark);
      box-shadow: 0 8px 18px rgba(200, 146, 42, .12);
    }

    /* ===== PANEL SPLIT (30/70) ===== */
    .panel-split {
      display: flex;
      gap: 24px;
      height: calc(100vh - var(--topbar) - 48px);
    }

    .panel-left {
      width: 30%;
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .panel-right {
      width: 70%;
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .panel-head {
      padding: 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #FFFFFF;
    }

    .panel-body {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
    }

    /* ===== INFO GRID ===== */
    .info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: start;
    }

    .info-row {
      display: grid;
      grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
      gap: 16px 22px;
      align-items: start;
      padding: 14px 0;
      border-bottom: 1px solid #D7E0EC;
      font-size: 14px;
      line-height: 1.55;
    }

    .info-row:last-child {
      border: none;
    }

    .info-lbl {
      color: var(--primary);
      font-weight: 800;
      text-transform: uppercase;
      font-size: 11px;
      line-height: 1.45;
      letter-spacing: 0.06em;
      word-break: break-word;
    }

    .info-val {
      color: var(--text-main);
      font-weight: 650;
      min-width: 0;
      word-break: break-word;
    }

    /* ===== FORM SECTION CARDS ===== */
    .fsec {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 14px 16px 10px;
      margin-bottom: 12px;
    }

    .fsec-title {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: var(--navy);
      margin-bottom: 12px;
      padding-bottom: 6px;
      border-bottom: 1.5px solid #e0e7ff;
    }

    .form1-edit-panel {
      display: grid;
      gap: 14px;
      padding-top: 4px;
    }

    .form1-edit-panel .fsec {
      padding: 16px 18px 14px;
      margin-bottom: 0;
      border-radius: 14px;
      background: linear-gradient(180deg, #FCFDFE 0%, #F7FAFD 100%);
      border-color: #DDE6F0;
      box-shadow: 0 8px 22px rgba(10, 22, 40, .04);
    }

    .form1-edit-panel .fsec-title {
      font-size: 11px;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom-color: #DCE6F4;
      color: var(--primary);
    }

    .form1-edit-panel .fg {
      --form-grid-gap: 16px;
    }

    .form1-edit-panel .fgroup {
      --fgroup-gap: 7px;
    }

    .form1-edit-panel .flabel {
      color: #56627d;
      letter-spacing: .03em;
      font-size: 10.5px;
    }

    .form1-edit-panel input,
    .form1-edit-panel select,
    .form1-edit-panel textarea {
      border-color: #C9D3E0;
      font-size: 13px;
    }

    .form1-edit-panel textarea {
      min-height: 88px;
    }

    .f1-layanan-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 6px;
    }

    .f1-layanan-list .cl-item {
      min-height: 54px;
      margin-bottom: 0;
      padding: 12px 14px;
      align-items: center;
      border-radius: 12px;
      background: #FFFFFF;
      border-color: #D7E0EC;
      line-height: 1.45;
      box-shadow: 0 3px 10px rgba(10, 22, 40, .03);
    }

    .f1-layanan-list .cl-item:hover {
      background: #F8FBFF;
      border-color: #B8C7DA;
    }

    .f1-layanan-list .cl-item input[type=checkbox] {
      flex: 0 0 auto;
    }

    .form1-edit-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      padding: 4px 2px 2px;
    }

    .form1-save-btn {
      min-height: 46px;
      max-width: 360px;
      border-radius: 14px;
      box-shadow: 0 14px 28px rgba(79, 70, 229, .18);
    }

    .form1-cancel-btn {
      min-width: 112px;
      min-height: 46px;
      border-radius: 14px;
    }

    /* ===== INFO GRID COLUMNS ===== */
    .info-col {
      background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
      border: 1px solid #DDE6F0;
      border-radius: 14px;
      padding: 18px 18px 8px;
      box-shadow: 0 8px 24px rgba(10, 22, 40, .05);
    }

    .info-col-title {
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--accent);
      margin-bottom: 10px;
      padding-bottom: 10px;
      border-bottom: 1px solid #E6EDF5;
    }

    /* ===== PROGRESS STEPS ===== */
    .progress-bar {
      background: linear-gradient(180deg, #FBFDFF 0%, #F7FAFD 100%);
      border: 1px solid #DDE6F0;
      border-radius: 16px;
      padding: 22px 22px 18px;
      margin-bottom: 22px;
      overflow-x: auto;
      box-shadow: 0 10px 28px rgba(10, 22, 40, .05);
    }

    .steps {
      display: flex;
      align-items: flex-start;
      min-width: max-content;
      gap: 8px;
      padding-bottom: 10px;
    }

    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 112px;
    }

    .step-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2.5px solid #CBD5E1;
      /* Stronger border */
      background: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 800;
      color: #64748B;
      transition: all 0.3s ease;
      z-index: 2;
    }

    .step-dot.done {
      background: var(--green);
      border-color: var(--green);
      color: #fff;
    }

    .step-dot.active {
      background: var(--navy);
      border-color: var(--navy);
      color: #fff;
      box-shadow: 0 0 0 4px rgba(26, 49, 102, 0.2);
      transform: scale(1.1);
    }

    .step-lbl {
      font-size: 11px;
      font-weight: 700;
      text-align: center;
      color: #475569;
      line-height: 1.3;
      max-width: 100px;
    }

    .step-lbl.active {
      color: var(--navy);
      font-weight: 700;
    }

    .step-line {
      flex: 1;
      height: 5px;
      background: #E2E8F0;
      min-width: 36px;
      margin-top: 13.5px;
      border-radius: 10px;
      position: relative;
      z-index: 1;
    }

    .step-line.done {
      background: var(--green);
    }

    /* ===== DURATION SUMMARY ===== */
    .dur-summary {
      background: linear-gradient(135deg, #f0f4ff 0%, #faf8f2 100%);
      border: 1.5px solid #d0d8e8;
      border-radius: var(--radius);
      padding: 16px 18px;
      margin-bottom: 16px;
    }

    .dur-summary-title {
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--navy-3);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
      font-family: var(--ff);
    }

    .dur-total-box {
      background: var(--navy);
      color: #fff;
      border-radius: var(--radius);
      padding: 11px 16px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .dur-total-label {
      font-size: 11px;
      font-weight: 400;
      opacity: .85;
      letter-spacing: .02em;
    }

    .dur-total-val {
      font-size: 16px;
      font-weight: 600;
      font-family: var(--ff-mono);
      letter-spacing: .04em;
    }

    .dur-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 0;
      border-bottom: 1px solid rgba(0, 0, 0, .06);
    }

    .dur-row:last-child {
      border-bottom: none;
    }

    .dur-step-name {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink);
      min-width: 130px;
      flex-shrink: 0;
      letter-spacing: .01em;
    }

    .dur-bar-wrap {
      flex: 1;
      height: 6px;
      background: var(--gray-3);
      border-radius: 99px;
      overflow: hidden;
    }

    .dur-bar-fill {
      height: 100%;
      border-radius: 99px;
      transition: width .4s ease;
      min-width: 2px;
    }

    .dur-val {
      font-size: 11px;
      font-family: var(--ff-mono);
      font-weight: 500;
      color: var(--gray-5);
      min-width: 95px;
      text-align: right;
      flex-shrink: 0;
      letter-spacing: .03em;
    }

    .step-dur {
      font-size: 9.5px;
      color: #64748B;
      font-family: var(--ff-mono);
      font-weight: 700;
      margin-top: 3px;
      white-space: nowrap;
      letter-spacing: .01em;
    }

    .tl-dur {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      color: var(--navy-3);
      font-family: var(--ff-mono);
      font-weight: 500;
      background: #f0f4ff;
      border: 1px solid #c7d2e8;
      border-radius: 4px;
      padding: 2px 7px;
      margin-top: 3px;
      letter-spacing: .03em;
    }

    /* ===== TIMELINE ===== */

    .tl-item {
      display: flex;
      gap: 11px;
      padding-bottom: 14px;
      position: relative;
    }

    .tl-item::before {
      content: '';
      position: absolute;
      left: 10px;
      top: 22px;
      width: 2px;
      bottom: 0;
      background: var(--gray-3);
    }

    .tl-item:last-child::before {
      display: none;
    }

    .tl-dot {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--navy);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 9px;
      margin-top: 1px;
    }

    .tl-body {
      flex: 1;
    }

    .tl-title {
      font-weight: 600;
      font-size: 12.5px;
    }

    .tl-time {
      font-size: 10.5px;
      color: var(--gray-5);
      margin-top: 2px;
    }

    .tl-note {
      font-size: 11.5px;
      color: #444;
      margin-top: 4px;
      background: var(--gray-1);
      padding: 5px 9px;
      border-radius: var(--radius);
    }

    /* ===== TABS ===== */
    .tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px;
      background: linear-gradient(180deg, #F7FAFD 0%, #EFF4FA 100%);
      border: 1px solid #DDE6F0;
      border-radius: 16px;
      margin-bottom: 20px;
      overflow-x: visible;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
    }

    .tab {
      padding: 12px 18px;
      font-size: 13px;
      font-weight: 700;
      color: var(--gray-5);
      background-color: transparent;
      border: 1px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      transition: all .2s ease-in-out;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .tab:hover {
      color: var(--navy);
      background-color: rgba(255, 255, 255, .9);
      border-color: #D7E0EC;
    }

    .tab.active {
      color: #fff;
      background-color: var(--navy);
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .tab.tab-print {
      color: var(--gold);
      margin-left: auto;
      background-color: #fffbeb;
      border: 1px solid #fef3c7;
    }

    .tab.tab-print:hover {
      background-color: #fef3c7;
      color: #d97706;
    }

    .tab.tab-print.active {
      color: #fff;
      background-color: var(--gold);
      border-color: var(--gold);
      box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
    }

    .tab-pane {
      display: none;
    }

    .tab-pane.active {
      display: block;
      padding-top: 10px;
    }

    .detail-edit-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      margin-bottom: 12px;
      border: 1px solid #dbe5f1;
      border-radius: 12px;
      background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .detail-edit-hint {
      flex: 1;
      min-width: 0;
      font-size: 11.5px;
      line-height: 1.6;
      color: #5b6984;
    }

    .detail-edit-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .detail-editable-section.is-readonly .fsec {
      background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fb 100%);
      border-color: #e2e8f0;
    }

    .detail-editable-section.is-readonly input:not([type=checkbox]):not([type=radio]),
    .detail-editable-section.is-readonly textarea,
    .detail-editable-section.is-readonly select {
      background: #f8fafc;
      color: #64748b;
      border-color: #d7deea;
      box-shadow: none;
    }

    .detail-editable-section.is-readonly textarea {
      resize: none;
    }

    .detail-editable-section.is-readonly .cl-item {
      cursor: default;
      background: #fcfdff;
    }

    .detail-editable-section.is-readonly .cl-item:hover {
      background: #fcfdff;
    }

    .detail-editable-section.is-editing .fsec {
      box-shadow: 0 10px 24px rgba(10, 22, 40, .04);
    }

    /* ===== CHECKLIST ===== */
    .cl-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 8px 11px;
      border: 1px solid var(--gray-3);
      border-radius: var(--radius);
      margin-bottom: 5px;
      font-size: 12.5px;
      cursor: pointer;
      transition: background .1s;
    }

    .cl-item:hover {
      background: var(--gray-1);
    }

    .cl-item.checked {
      background: #f0fdf4;
      border-color: #bbf7d0;
    }

    .cl-item input[type=checkbox] {
      width: 14px;
      height: 14px;
      accent-color: var(--navy);
      cursor: pointer;
    }

    .cl-ok {
      margin-left: auto;
      font-size: 10px;
      font-weight: 700;
      color: var(--green);
    }

    /* ===== UPLOAD DOKUMEN (PETUGAS) ===== */
    .upload-section {
      display: none;
      margin-top: 24px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: #fff;
    }

    .upload-section.active {
      display: block;
    }

    .upload-section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .upload-section-title-wrap {
      flex: 1;
      min-width: 220px;
    }

    .upload-section-title {
      font-weight: 700;
      font-size: 14px;
      color: var(--text-main);
    }

    .upload-section-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .upload-section-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 8px;
    }

    .upload-meta-code {
      font-family: var(--ff-mono);
    }

    .upload-select-wrap {
      margin-bottom: 12px;
    }

    .upload-select-wrap label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .upload-select-wrap select {
      width: 100%;
      height: 40px;
      padding: 0 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-main);
      background: #fff;
    }

    .btn-nowrap {
      white-space: nowrap;
    }

    .upload-status {
      font-size: 12px;
      margin-top: 6px;
      min-height: 18px;
      color: var(--text-muted);
    }

    .upload-doc-list {
      margin-top: 16px;
    }

    /* â”€â”€ Upload section redesign â”€â”€ */
    .upload-section {
      display: none;
      margin-top: 24px;
      border: 1.5px solid var(--accent);
      border-radius: var(--radius);
      background: #fff;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(200, 146, 42, .08);
    }

    .upload-section.active {
      display: block;
    }

    .upload-section-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 20px;
      background: linear-gradient(90deg, #fffbf2, #fff8e1);
      border-bottom: 1px solid rgba(200, 146, 42, .2);
      flex-wrap: wrap;
    }

    .upload-section-title {
      font-weight: 700;
      font-size: 14px;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .upload-section-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .upload-section-meta {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-top: 5px;
      font-size: 11px;
      color: var(--text-muted);
      background: rgba(200, 146, 42, .1);
      border: 1px solid rgba(200, 146, 42, .25);
      border-radius: 4px;
      padding: 2px 8px;
    }

    .upload-meta-code {
      font-family: var(--ff-mono);
      font-weight: 700;
      color: var(--accent-dark);
      font-size: 11px;
    }

    .upload-body {
      padding: 20px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      align-items: start;
    }

    @media (max-width: 600px) {
      .upload-body {
        grid-template-columns: 1fr;
      }
    }

    .upload-col-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .upload-select-wrap select {
      width: 100%;
      height: 42px;
      padding: 0 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-main);
      background: #fff;
      transition: border-color .2s;
      cursor: pointer;
    }

    .upload-select-wrap select:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(200, 146, 42, .12);
    }

    .upload-hint {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 8px;
      padding: 8px 10px;
      background: #f7f9fc;
      border-radius: var(--radius-sm);
      line-height: 1.6;
    }

    .upload-dropzone {
      border: 2px dashed var(--border);
      border-radius: var(--radius);
      padding: 28px 16px;
      text-align: center;
      cursor: pointer;
      transition: border-color .2s, background .2s, transform .15s;
      background: #fafbfd;
      user-select: none;
    }

    .upload-dropzone:hover {
      border-color: var(--accent);
      background: var(--accent-light);
      transform: translateY(-1px);
    }

    .upload-dropzone.drag-over {
      border-color: var(--accent);
      background: var(--accent-light);
      border-style: solid;
      transform: scale(1.01);
    }

    .upload-dropzone-ico {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 78px;
      padding: 8px 14px;
      border-radius: 999px;
      background: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
      border: 1px solid #D7E0EC;
      color: var(--primary);
      font-family: var(--ff-mono);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .05em;
      margin-bottom: 8px;
      line-height: 1;
      transition: transform .2s, box-shadow .2s;
      text-transform: uppercase;
    }

    .upload-dropzone:hover .upload-dropzone-ico,
    .upload-dropzone.drag-over .upload-dropzone-ico {
      transform: scale(1.08) translateY(-2px);
      box-shadow: 0 12px 24px rgba(10, 22, 40, .08);
    }

    .upload-dropzone-lbl {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-main);
      margin-bottom: 4px;
    }

    .upload-dropzone-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .upload-dropzone-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: var(--ff-mono);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .04em;
      padding: 8px 16px;
      border-radius: 99px;
      background: linear-gradient(180deg, #E1AE4E 0%, #C8922A 100%);
      color: #24170A;
      border: none;
      cursor: pointer;
      box-shadow: 0 10px 20px rgba(200, 146, 42, .18);
      transition: background .2s, transform .15s, box-shadow .15s;
      pointer-events: none;
      text-transform: uppercase;
    }

    .upload-dropzone:hover .upload-dropzone-btn {
      background: linear-gradient(180deg, #E7B85E 0%, #A87520 100%);
      box-shadow: 0 12px 24px rgba(200, 146, 42, .22);
    }

    .upload-progress-bar {
      display: none;
      height: 5px;
      background: var(--border);
      border-radius: 99px;
      overflow: hidden;
      margin-top: 10px;
    }

    .upload-progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-dark));
      border-radius: 99px;
      transition: width .3s ease;
    }

    .upload-status {
      font-size: 12px;
      margin-top: 8px;
      min-height: 18px;
      padding: 0 2px;
      font-weight: 500;
    }

    .upload-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 20px;
      margin: 0 0 4px;
    }

    .upload-divider-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .upload-divider-lbl {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--text-muted);
    }

    .upload-doc-list {
      padding: 0 20px 20px;
    }

    .upload-doc-empty {
      font-size: 12px;
      color: var(--text-muted);
      font-style: italic;
      text-align: center;
      padding: 12px 0;
    }

    /* ===== PRINT CARDS ===== */
    .print-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    /* â”€â”€ Dokumen tab â”€â”€ */
    .dok-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: #fff;
      font-size: 13px;
    }

    .dok-row+.dok-row {
      margin-top: 6px;
    }

    .dok-row-ico {
      font-size: 18px;
      flex-shrink: 0;
    }

    .dok-row-info {
      flex: 1;
      min-width: 0;
    }

    .dok-row-name {
      font-weight: 600;
      color: var(--text-main);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dok-row-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .dok-row-jenis {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 3px;
      background: var(--accent-light);
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .dok-row-link {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--primary);
      padding: 4px 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      text-decoration: none;
      flex-shrink: 0;
    }

    .dok-row-link:hover {
      background: var(--gray-1);
    }

    .dok-row-actions {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-shrink: 0;
    }

    .dok-row-del {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--danger);
      padding: 4px 10px;
      border: 1px solid rgba(244, 67, 54, .3);
      border-radius: var(--radius-sm);
      background: #fff;
      cursor: pointer;
      transition: background .15s, border-color .15s;
      line-height: 1;
    }

    .dok-row-del:hover {
      background: #fff5f5;
      border-color: var(--danger);
    }

    /* â”€â”€ Widget upload susulan di tab Dokumen modal â”€â”€ */
    .dok-modal-upload {
      margin-top: 16px;
      border: 1.5px dashed var(--border);
      border-radius: var(--radius);
      padding: 14px 16px;
      background: #fafbfd;
    }

    .dok-modal-upload-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .dok-modal-upload-row {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

    .dok-modal-upload-row select {
      flex: 1;
      min-width: 160px;
      min-height: 44px;
      padding: 0 10px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 16px;
      color: var(--text-main);
      background: #fff;
    }

    .dok-modal-upload-row select:focus {
      outline: none;
      border-color: var(--accent);
    }

    .dok-modal-upload-progress {
      display: none;
      height: 4px;
      background: var(--border);
      border-radius: 99px;
      overflow: hidden;
      margin-top: 8px;
    }

    .dok-modal-upload-progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-dark));
      border-radius: 99px;
      transition: width .3s ease;
    }

    .dok-modal-upload-status {
      font-size: 11px;
      margin-top: 6px;
      min-height: 16px;
      font-weight: 500;
    }

    .print-card {
      border: 1.5px solid var(--gray-3);
      border-radius: var(--radius);
      padding: 14px 16px;
    }

    .print-card-no {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 5px;
    }

    .print-card-title {
      font-weight: 700;
      font-size: 13px;
      color: var(--navy);
      margin-bottom: 4px;
    }

    .print-card-desc {
      font-size: 11.5px;
      color: var(--gray-5);
      margin-bottom: 12px;
      line-height: 1.5;
    }

    /* ===== MODAL ===== */
    .modal-bg {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .48);
      z-index: 5000;
      align-items: flex-start;
      justify-content: center;
      overflow-y: auto;
      padding: calc(var(--topbar) + 18px) 24px 24px;
      box-sizing: border-box;
      overscroll-behavior: contain;
    }

    .modal-bg.open {
      display: flex !important;
      animation: fadeUp .15s;
    }

    .modal {
      background: #FFFFFF;
      border-radius: 18px;
      width: min(1240px, calc(100vw - 48px));
      max-width: 1240px;
      max-height: calc(100dvh - var(--topbar) - 42px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      position: relative;
      border: 1px solid rgba(215, 224, 236, .9);
    }

    .modal-head {
      padding: 20px 24px 16px;
      border-bottom: 1px solid #E6EDF5;
      position: sticky;
      top: 0;
      background: rgba(255, 255, 255, .96);
      backdrop-filter: blur(10px);
      z-index: 20;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .modal-title {
      font-family: var(--ff-serif);
      font-size: 20px;
      font-weight: 800;
      color: var(--navy);
      line-height: 1.3;
    }

    .modal-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
      line-height: 1.5;
    }

    .modal-body {
      padding: 24px 26px 26px;
      background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
      overflow-y: auto;
      flex: 1;
    }

    .modal-foot {
      padding: 14px 24px;
      border-top: 1px solid #E6EDF5;
      background: rgba(255, 255, 255, .98);
      backdrop-filter: blur(10px);
      position: sticky;
      bottom: 0;
      z-index: 15;
    }

    .close-btn {
      background: none;
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: var(--gray-5);
      padding: 2px 6px;
      border-radius: 4px;
    }

    .close-btn:hover {
      color: var(--ink);
      background: var(--gray-1);
    }

    /* ===== NOTIF ===== */
    .notif {
      position: fixed;
      bottom: 20px;
      right: 20px;
      padding: 11px 18px;
      border-radius: var(--radius);
      font-size: 12.5px;
      font-weight: 600;
      z-index: 999;
      animation: fadeUp .25s ease;
      box-shadow: var(--shadow-md);
    }

    .notif-default {
      background: var(--navy);
      color: #fff;
    }

    .notif-success {
      background: var(--green);
      color: #fff;
    }

    .notif-error {
      background: var(--red);
      color: #fff;
    }

    .notif-warn {
      background: var(--accent);
      color: #fff;
    }
    /* ===== EMPTY STATE ===== */
    .empty-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 5px;
      color: var(--text-main);
    }

    .empty-sub {
    }

    /* ===== STATUS RECAP WIDGET (NEW DESIGN) ===== */
    /* â”€â”€ Rekap Status â€“ redesign â”€â”€ */
    .recap-card-head {
      background: var(--navy);
      border-radius: 10px 10px 0 0;
      padding: 12px 18px 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      margin: -1px -1px 0;
      border-bottom: 2px solid var(--gold);
    }

    .recap-card-head-ico {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 8px;
      background: rgba(255, 255, 255, .08);
      color: #F7D791;
    }

    .recap-card-head-title {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: #fff;
    }

    .recap-list {
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 6px 0 2px;
    }

    .recap-item {
      display: grid;
      grid-template-columns: 44px 1fr;
      align-items: center;
      gap: 0 12px;
      padding: 8px 18px;
      border-radius: 0;
      transition: background .15s;
      cursor: default;
    }

    .recap-item:hover {
      background: #f1f5fb;
    }

    .recap-item-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .recap-big-num {
      font-size: 22px;
      font-weight: 900;
      line-height: 1;
      font-family: var(--ff-mono);
      letter-spacing: -.02em;
    }

    .recap-big-num.zero {
      color: #c5cdd8;
    }

    .recap-dot-sm {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      margin-top: 4px;
    }

    .recap-item-right {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .recap-name {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-main);
      line-height: 1.2;
    }

    .recap-track {
      width: 100%;
      height: 4px;
      background: #e8edf5;
      border-radius: 4px;
      overflow: hidden;
    }

    .recap-bar {
      height: 100%;
      border-radius: 4px;
      transition: width .7s cubic-bezier(.34, 1.56, .64, 1);
      min-width: 0;
    }

    .recap-divider {
      height: 1px;
      background: #eef1f6;
      margin: 0 18px;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 1000px) {
      .stats {
        grid-template-columns: 1fr 1fr;
      }

      .dash-grid {
        grid-template-columns: 1fr;
      }

      .info-grid {
        grid-template-columns: 1fr;
      }

      .fg3 {
        grid-template-columns: 1fr;
      }

      .print-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 860px) {
      .sidebar {
        display: none;
      }

      .main {
        margin-left: 0;
      }

      .top-utility,
      .top-nav,
      .content {
        padding-left: 16px;
        padding-right: 16px;
      }

      .top-utility {
        gap: 12px;
      }

      .top-utility-right {
        gap: 12px;
      }

      .top-nav {
        overflow-x: auto;
        scrollbar-width: none;
      }

      .top-nav::-webkit-scrollbar {
        display: none;
      }

      .top-nav-list {
        min-width: max-content;
      }

      .panel-split {
        flex-direction: column;
        height: auto;
      }

      .panel-left,
      .panel-right {
        width: 100%;
        min-height: 320px;
      }

      .hero-banner,
      .hero-actions,
      .upload-section-topbar,
      .upload-section-header,
      .pagination,
      .modal-foot,
      .modal-user-foot {
        flex-wrap: wrap;
      }

      .hero-banner,
      .content,
      .card-body,
      .panel-body,
      .modal-body {
        padding: 16px;
      }

      .card-head,
      .panel-head,
      .modal-head,
      .modal-foot,
      .modal-user-head,
      .modal-user-body,
      .modal-user-foot {
        padding-left: 16px;
        padding-right: 16px;
      }

      .stats,
      .report-stats,
      .report-grid {
        grid-template-columns: 1fr;
      }

      .fg,
      .fg3,
      .chk-grid,
      .info-grid {
        grid-template-columns: 1fr;
      }

      .info-lbl {
        min-width: 120px;
      }

      .modal {
        width: calc(100vw - 16px);
        max-height: min(94dvh, 94vh);
      }

      .f1-layanan-list {
        grid-template-columns: 1fr;
      }

      .form1-edit-actions {
        flex-direction: column-reverse;
        align-items: stretch;
      }

      .form1-save-btn,
      .form1-cancel-btn {
        max-width: none;
        width: 100%;
      }

      .modal-user-box {
        width: calc(100vw - 16px);
      }

      .close-btn {
        min-width: 44px;
        min-height: 44px;
      }

      .tbl-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      #page-daftar table {
        min-width: 880px;
      }

      #page-aktif table {
        min-width: 760px;
      }

      #page-selesai table {
        min-width: 680px;
      }
    }

    @media (max-width: 640px) {

      .top-user-text,
      .topbar-date,
      .conn-label,
      .sidebar-foot {
        display: none;
      }

      .top-utility {
        min-height: 56px;
      }

      .top-utility-right,
      .hero-actions,
      .fbar,
      .pagination {
        width: 100%;
      }

      .hero-actions .btn,
      .fbar .btn,
      .pagination .btn,
      .modal-foot .btn,
      .modal-user-foot .btn {
        width: 100%;
      }

      .btn-sm,
      .btn-xs {
        min-height: 44px;
        font-size: 14px;
      }

      .search-wrap,
      .um-toolbar {
        min-width: 0;
        width: 100%;
      }

      .modal-bg {
        padding: 8px;
      }

      .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
      }

      .tab.tab-print {
        margin-left: 0;
      }

      .info-row {
        grid-template-columns: 1fr;
        gap: 6px;
      }

      #page-daftar thead tr>*:nth-child(4),
      #page-daftar thead tr>*:nth-child(6),
      #page-daftar tbody tr>*:nth-child(4),
      #page-daftar tbody tr>*:nth-child(6) {
        display: none;
      }

      #page-aktif thead tr>*:nth-child(3),
      #page-aktif tbody tr>*:nth-child(3) {
        display: none;
      }

      #page-selesai thead tr>*:nth-child(3),
      #page-selesai tbody tr>*:nth-child(3) {
        display: none;
      }

      .dok-row {
        flex-wrap: wrap;
        align-items: flex-start;
      }

      .dok-row-actions {
        width: 100%;
      }

      .dok-row-link,
      .dok-row-del {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
    }

    /* ===== REPORT ===== */
    .report-header {
      text-align: center;
      margin-bottom: 24px;
      padding: 24px;
      background: linear-gradient(to right, #ffffff, #f1f5f9, #ffffff);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      position: relative;
    }

    .report-header::before {
      content: 'SISVERA';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 80px;
      font-weight: 900;
      color: var(--primary);
      opacity: 0.03;
      letter-spacing: 20px;
      z-index: 0;
    }

    .report-header h2 {
      font-family: var(--ff);
      font-size: 24px;
      /* Larger for hierarchy */
      font-weight: 800;
      /* Extra bold */
      color: var(--primary);
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }

    .report-header .report-inst {
      font-size: 14px;
      /* Proportional increase */
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-main);
      margin-bottom: 8px;
    }

    .report-header .report-period {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-muted);
    }

    .report-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

    .report-stat {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 16px;
      /* Slightly taller */
      text-align: center;
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      transition: var(--transition);
    }

    .report-stat:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .report-stat::after {
      content: '';
      position: absolute;
      bottom: -15px;
      right: -10px;
      font-size: 64px;
      opacity: 0.08;
      z-index: 0;
      pointer-events: none;
    }

    .report-stat.rs-navy::after {
      content: 'R';
    }

    .report-stat.rs-green::after {
      content: 'OK';
    }

    .report-stat.rs-red::after {
      content: 'X';
    }

    .report-stat.rs-gold::after {
      content: '...';
    }

    .report-stat.rs-navy {
      background: #EEF2FF;
      border-color: #C7D2FE;
    }

    .report-stat.rs-green {
      background: #F0FDF4;
      border-color: #BBF7D0;
    }

    .report-stat.rs-red {
      background: #FEF2F2;
      border-color: #FECACA;
    }

    .report-stat.rs-gold {
      background: #FFFBEB;
      border-color: #FEF3C7;
    }

    .report-stat::before {
      display: none;
      /* Remove the simple top line */
    }

    .report-stat .rs-val {
      font-family: var(--ff);
      font-size: 38px;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
      position: relative;
      z-index: 1;
    }

    .report-stat .rs-label {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text-muted);
      margin-top: 8px;
      position: relative;
      z-index: 1;
    }

    .report-section {
      margin-bottom: 20px;
    }

    .report-section-title {
      font-size: 15px;
      /* Larger */
      font-weight: 800;
      /* Extra Bold */
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--primary);
      margin-bottom: 12px;
      padding-bottom: 6px;
      border-bottom: 2px solid var(--accent);
      /* Consistent accent border */
    }

    .report-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-bottom: 20px;
    }

    .dist-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 0;
      font-size: 12px;
    }

    .dist-label {
      min-width: 130px;
      color: var(--text-main);
      font-weight: 700;
      /* Bolder */
      font-size: 13px;
    }

    .dist-bar-wrap {
      flex: 1;
      height: 14px;
      /* Thicker bars */
      background: #E5E7EB;
      border-radius: 99px;
      overflow: hidden;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .dist-bar-fill {
      height: 100%;
      border-radius: 99px;
      transition: width .6s cubic-bezier(0.34, 1.56, 0.64, 1);
      background: linear-gradient(90deg, var(--primary) 0%, #4F46E5 100%);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .dist-row:nth-child(2n) .dist-bar-fill {
      background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    }

    .dist-row:nth-child(3n) .dist-bar-fill {
      background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    }

    .dist-row:nth-child(5n) .dist-bar-fill {
      background: linear-gradient(90deg, #EF4444 0%, #B91C1C 100%);
    }

    .dist-row:nth-child(7n) .dist-bar-fill {
      background: linear-gradient(90deg, #6366F1 0%, #4338CA 100%);
    }

    .dist-count {
      font-family: var(--ff-mono);
      font-size: 13px;
      font-weight: 800;
      color: var(--primary);
      min-width: 32px;
      text-align: right;
    }

    .report-footer {
      margin-top: 24px;
      padding-top: 12px;
      border-top: 1px solid var(--gray-3);
      display: flex;
      justify-content: space-between;
      font-size: 10px;
      color: var(--gray-5);
    }

    /* ===== PRINT SURAT STYLE ===== */
    @media print {

      .no-print,
      .sidebar,
      .topbar,
      .modal-bg {
        display: none !important;
      }

      #print-overlay {
        display: block !important;
      }

      #print-overlay>div:first-child {
        display: none !important;
      }

      #print-content {
        padding: 0 !important;
        max-width: none !important;
      }

      /* Report print */
      .main {
        margin-left: 0 !important;
      }

      #laporan-filter-bar {
        display: none !important;
      }

      #laporan-card {
        border: none !important;
        box-shadow: none !important;
      }

      .card-head .btn {
        display: none !important;
      }

      .report-stats {
        grid-template-columns: repeat(4, 1fr) !important;
      }

      .report-grid {
        grid-template-columns: 1fr 1fr !important;
      }

      .report-stat {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }

      .report-stat::before {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }

      .dist-bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }

      .badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }

      .badge::before {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }

      @page {
        size: A4;
        margin: 15mm 18mm;
      }
    }

    /* ===== CONNECTIVITY INDICATOR ===== */
    .conn-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .conn-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      transition: background .3s;
      flex-shrink: 0;
    }

    .conn-dot.online {
      background: #22c55e;
      box-shadow: 0 0 6px #22c55e80;
    }

    .conn-dot.offline {
      background: #ef4444;
      box-shadow: 0 0 6px #ef444480;
      animation: blink-offline 1.5s ease infinite;
    }

    @keyframes blink-offline {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }

    .conn-badge {
      background: #F57F17;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      min-width: 18px;
      height: 18px;
      border-radius: 99px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
    }

    .conn-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
    }

    /* LENTERA v2 Visual Overrides */
    ::-webkit-scrollbar-thumb {
      background: var(--accent);
    }

    .sidebar-brand {
      border-bottom: 1px solid rgba(200, 146, 42, .15);
    }

    .nav-item.active {
      border-left-color: var(--accent);
      background: rgba(200, 146, 42, .07);
      color: var(--accent);
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, .05);
    }

    .top-utility {
      border-bottom: 1px solid var(--border);
    }

    .top-nav {
      background: var(--primary);
    }

    .top-nav-item.active {
      background: var(--accent);
      color: var(--primary);
      font-weight: 700;
    }

    .card {
      border-radius: 10px;
    }

    .card-head {
      border-bottom: 2px solid var(--accent);
    }

    .card-title {
      font-family: var(--ff-display, inherit);
      font-weight: 700;
    }

    .stat {
      border-radius: 10px;
      border-top-width: 4px;
    }

    .stat-val {
      font-family: var(--ff-display, inherit);
      font-size: 34px;
      font-weight: 800;
    }

    .stat-label {
      letter-spacing: .04em;
      font-size: 11px;
    }

    .hero-title {
      font-family: var(--ff-display, inherit);
    }

    thead th {
      background: var(--primary);
      color: #fff;
      letter-spacing: .04em;
      font-size: 11px;
      text-transform: uppercase;
    }

    tbody tr:hover {
      background: #EEF2FF !important;
    }

    .btn-gold {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }

    .btn-gold:hover {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }

    .btn-navy {
      background: var(--primary);
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(200, 146, 42, .12);
    }

    .badge {
      border-radius: 4px;
    }

    .sidebar-foot {
      border-top: 1px solid rgba(200, 146, 42, .12);
    }

    .step-dot.active {
      background: var(--accent);
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(200, 146, 42, .2);
    }

    .info-lbl {
      color: var(--accent);
    }

    .pagin-page {
      color: var(--accent);
    }

    /* ===== OFFICIAL UI REFRESH ===== */
    :root {
      --gov-paper: #f6f3ea;
      --gov-surface: #fcfbf7;
      --gov-line: #cfd7e3;
      --gov-line-strong: #9aa9be;
      --gov-navy-soft: #173055;
      --gov-gold-soft: #b5882f;
      --gov-label: #42536e;
      --gov-heading: #10233f;
      --gov-stripe: linear-gradient(90deg, #0f2347 0 78%, #b5882f 78% 100%);
    }

    body {
      background:
        linear-gradient(180deg, rgba(15, 35, 71, 0.03), rgba(15, 35, 71, 0)) 0 0 / 100% 220px no-repeat,
        linear-gradient(90deg, rgba(181, 136, 47, 0.05), rgba(181, 136, 47, 0)) 0 0 / 320px 100% no-repeat,
        var(--bg-body);
    }

    .content {
      position: relative;
      padding-top: 22px;
    }

    .content::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 2px;
      background: var(--gov-stripe);
      opacity: 0.92;
      pointer-events: none;
    }

    .sidebar {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) 0 0 / 100% 140px no-repeat,
        linear-gradient(180deg, #091426 0%, #10213b 58%, #091426 100%);
      box-shadow: 10px 0 28px rgba(7, 18, 34, 0.16);
    }

    .sidebar-brand {
      position: relative;
      background:
        linear-gradient(135deg, rgba(181, 136, 47, 0.14), rgba(181, 136, 47, 0)) top right / 180px 120px no-repeat,
        linear-gradient(180deg, #10213c 0%, #0a1628 100%);
      border-bottom: 1px solid rgba(181, 136, 47, 0.18);
    }

    .sidebar-brand::after {
      content: '';
      position: absolute;
      left: 20px;
      right: 20px;
      bottom: 0;
      height: 2px;
      background: linear-gradient(90deg, rgba(181, 136, 47, 0.9), rgba(181, 136, 47, 0));
    }

    .nav-group-label {
      color: #f2d59d;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .nav-item {
      margin: 2px 10px;
      border-left-width: 4px;
      border-radius: 0 10px 10px 0;
    }

    .nav-item.active {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 251, 0.94));
      color: var(--gov-heading);
      border-left-color: var(--gov-gold-soft);
      box-shadow: 0 10px 20px rgba(8, 19, 36, 0.12);
    }

    .nav-item:hover {
      background: rgba(255, 255, 255, 0.08);
    }

    .nav-item.active .nav-ico {
      background: rgba(15, 35, 71, 0.08);
      border-color: rgba(15, 35, 71, 0.14);
      color: var(--gov-heading);
    }

    .top-utility {
      background:
        linear-gradient(90deg, rgba(15, 35, 71, 0.025), rgba(15, 35, 71, 0)) 0 0 / 100% 100% no-repeat,
        #ffffff;
      border-bottom: 1px solid #d6deea;
    }

    .top-utility::after {
      content: '';
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: -1px;
      height: 2px;
      background: linear-gradient(90deg, #0f2347 0%, #b5882f 24%, rgba(181, 136, 47, 0) 52%);
      pointer-events: none;
    }

    .top-utility-brand {
      color: var(--gov-heading) !important;
      letter-spacing: 0.01em;
    }

    .top-user-avatar {
      background: linear-gradient(180deg, #e5ecf5 0%, #d6e0ec 100%);
      border: 1px solid #c0cddd;
      color: var(--gov-heading);
      font-weight: 800;
    }

    .top-nav {
      position: relative;
      background: linear-gradient(90deg, #10213c 0%, #0f2347 74%, #b5882f 100%);
      box-shadow: 0 6px 18px rgba(9, 20, 38, 0.18);
    }

    .top-nav::after {
      content: '';
      position: absolute;
      inset: auto 0 0 0;
      height: 1px;
      background: rgba(255, 255, 255, 0.18);
    }

    .hero-banner {
      min-height: 168px;
      border-radius: 12px;
      border: 1px solid #ced9e7;
      background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)) 0 0 / 100% 100% no-repeat,
        linear-gradient(90deg, #11233f 0%, #173055 78%, #b5882f 100%);
      box-shadow: 0 14px 30px rgba(15, 35, 71, 0.16);
    }

    .hero-banner::before {
      width: 220px;
      height: 220px;
      top: -40px;
      right: -20px;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 72%);
    }

    .hero-banner::after {
      width: 340px;
      height: 120px;
      left: 0;
      bottom: 0;
      border-radius: 0;
      background: linear-gradient(90deg, rgba(181, 136, 47, 0.24), rgba(181, 136, 47, 0));
    }

    .hero-title {
      font-size: 24px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-family: var(--ff-display);
    }

    .hero-sub {
      max-width: 720px;
      color: rgba(255, 255, 255, 0.84);
      font-size: 13px;
      line-height: 1.7;
      letter-spacing: 0.01em;
    }

    .stats {
      gap: 18px;
    }

    .stat {
      border-radius: 10px;
      border: 1px solid #d7e0ec;
      border-top-width: 4px;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        #ffffff;
      box-shadow: 0 10px 22px rgba(15, 35, 71, 0.06);
    }

    .stat-label {
      color: var(--gov-label);
      letter-spacing: 0.08em;
    }

    .stat-val {
      color: var(--gov-heading);
    }

    .card,
    .panel-left,
    .panel-right,
    .upload-section,
    .info-col {
      border-radius: 12px;
      border: 1px solid #d6deea;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(251, 252, 253, 1)),
        #ffffff;
      box-shadow: 0 14px 28px rgba(15, 35, 71, 0.06);
    }

    .card-head,
    .panel-head {
      position: relative;
      padding-top: 16px;
      padding-bottom: 16px;
      background:
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
      border-bottom: 1px solid #dbe4ef;
    }

    .card-head::before,
    .panel-head::before,
    .modal-head::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 4px;
      background: var(--gov-stripe);
    }

    .card-title,
    .panel-head .card-title,
    .modal-title {
      color: var(--gov-heading);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-size: 13px;
      font-weight: 800;
      font-family: var(--ff-display);
    }

    .tbl-wrap,
    .um-table-wrap {
      border: 1px solid #d8e1ec;
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
    }

    table {
      font-size: 12.5px;
    }

    thead th {
      background: linear-gradient(180deg, #10213c 0%, #0f2347 100%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 11px;
      letter-spacing: 0.08em;
    }

    tbody tr:nth-child(even) {
      background: #fbfcfe;
    }

    tbody tr:hover {
      background: #eef3f9 !important;
    }

    td {
      color: #20314d;
    }

    .form-sec,
    .fsec {
      position: relative;
      background:
        linear-gradient(180deg, #fcfdfd 0%, #f8fafc 100%);
      border: 1px solid #d6dee8;
      border-radius: 10px;
      padding: 18px 18px 16px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .form-sec::before,
    .fsec::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 4px;
      border-radius: 10px 0 0 10px;
      background: linear-gradient(180deg, #0f2347 0%, #b5882f 100%);
      opacity: 0.95;
    }

    .form-sec-title,
    .fsec-title,
    .info-col-title,
    .report-section-title {
      color: var(--gov-heading);
      font-size: 11.5px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border-bottom-color: #ccb174;
      padding-left: 2px;
      font-family: var(--ff-display);
      font-weight: 800;
    }

    label.flabel,
    .form1-edit-panel .flabel {
      color: var(--gov-label);
      font-size: 10.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.11em;
      line-height: 1.45;
    }

    input,
    select,
    textarea,
    .col-search,
    .search-wrap,
    .pagin-select,
    .upload-select-wrap select,
    .dok-modal-upload-row select {
      border-color: #bcc8d8;
      border-radius: 8px;
      background-color: #fffefb;
    }

    input,
    select,
    textarea {
      min-height: 46px;
      height: 46px;
      font-size: 13.5px;
      color: #20314d;
      box-shadow: inset 0 1px 2px rgba(15, 35, 71, 0.03);
      letter-spacing: 0.005em;
      line-height: 1.55;
    }

    textarea {
      min-height: 96px;
      padding-top: 10px;
      padding-bottom: 10px;
      line-height: 1.55;
    }

    input::placeholder,
    textarea::placeholder {
      color: #7d8ca5;
    }

    input:focus,
    select:focus,
    textarea:focus,
    .search-wrap:focus-within,
    .col-search:focus-within,
    .upload-select-wrap select:focus,
    .dok-modal-upload-row select:focus {
      border-color: #8d6c27;
      box-shadow: 0 0 0 3px rgba(181, 136, 47, 0.12);
    }

    .chk-item,
    .cl-item {
      border-color: #cad5e2;
      border-radius: 8px;
      background: #fff;
    }

    .chk-item:has(input:checked),
    .cl-item.checked {
      background: #f3f6fb;
      border-color: #8fa2bd;
    }

    .info-row {
      border-bottom-color: #dde5ef;
      padding-top: 12px;
      padding-bottom: 12px;
    }

    .info-lbl {
      color: var(--gov-heading);
      font-size: 10.5px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 800;
    }

    .info-val {
      color: #243750;
      font-weight: 600;
      line-height: 1.6;
    }

    .progress-bar,
    .tabs,
    .detail-edit-toolbar,
    .dur-summary {
      border-radius: 12px;
      border-color: #d7e0ec;
      background:
        linear-gradient(180deg, #fbfcfd 0%, #f4f7fb 100%);
      box-shadow: 0 10px 24px rgba(15, 35, 71, 0.05);
    }

    .tab {
      border-radius: 9px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 800;
      font-family: var(--ff-display);
    }

    .tab.active {
      background: linear-gradient(180deg, #173055 0%, #0f2347 100%);
    }

    .tab.tab-print {
      background: #fff8ea;
      color: #8d6c27;
      border-color: #e1c686;
    }

    .modal-bg {
      background: rgba(7, 18, 34, 0.46);
    }

    .modal {
      border-radius: 14px;
      border: 1px solid #d3dce7;
      box-shadow: 0 30px 50px rgba(7, 18, 34, 0.28);
    }

    .modal-head {
      position: sticky;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 253, 0.99));
      border-bottom: 1px solid #dbe4ef;
      padding-top: 22px;
    }

    .modal-body {
      background:
        linear-gradient(180deg, #fcfcfb 0%, #f7f9fc 100%);
    }

    .modal-foot {
      border-top: 1px solid #dbe4ef;
      background: rgba(252, 252, 251, 0.98);
    }

    .close-btn {
      border: 1px solid #d3dbe6;
      background: #fff;
      color: #4e607c;
    }

    .close-btn:hover {
      background: #f6f8fb;
      color: var(--gov-heading);
    }

    .badge,
    .um-role-badge,
    .udm-role-chip {
      border-radius: 4px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .upload-section-topbar,
    .upload-section-header {
      padding-bottom: 14px;
      border-bottom: 1px solid #e0e7ef;
      margin-bottom: 16px;
    }

    .upload-section-title,
    .dok-modal-upload-title {
      color: var(--gov-heading);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-family: var(--ff-display);
    }

    .stat-label,
    .nav-group-label,
    .report-header .report-inst,
    .report-stat .rs-label,
    .step-lbl.active,
    .step-lbl,
    .top-user-role,
    .conn-label {
      letter-spacing: 0.1em;
    }

    .btn,
    .btn-sm,
    .btn-xs {
      text-transform: none;
      letter-spacing: 0.005em;
      font-weight: 700;
      font-family: var(--ff);
    }

    thead th,
    .user-table thead th {
      font-family: var(--ff-display);
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .top-utility-brand span,
    .modal-sub,
    .login-sub,
    .notif,
    .dash-meta,
    .print-card-desc,
    .tl-time,
    .tl-note,
    .empty-sub,
    .upload-section-subtitle,
    .upload-section-meta,
    .dur-total-label,
    .stat-sub {
      text-transform: none;
      letter-spacing: 0.01em;
      line-height: 1.6;
    }

    .dash-name,
    .top-user-name,
    .udm-name,
    .login-logo,
    .report-header h2 {
      font-family: var(--ff-display);
      font-weight: 800;
      letter-spacing: 0.03em;
    }

    .top-user-role,
    .modal-sub,
    .login-sub,
    .upload-section-subtitle,
    .upload-section-meta,
    .dash-meta,
    .stat-sub {
      color: #5d6e86;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    textarea {
      text-transform: none;
    }

    select {
      text-transform: none;
    }

    .report-header h2 {
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .report-header .report-period {
      letter-spacing: 0.02em;
    }

    .top-user-name,
    .udm-name,
    .dash-name,
    .info-val,
    td,
    .tl-title {
      text-transform: none;
      font-variant-numeric: tabular-nums;
    }

    .modal-sub,
    .login-sub,
    .upload-section-subtitle,
    .upload-section-meta,
    .dash-meta,
    .stat-sub,
    .tl-time,
    .tl-note,
    .print-card-desc {
      font-size: 11.5px;
      line-height: 1.65;
    }

    .report-header .report-inst,
    .stat-label,
    .nav-group-label,
    .info-lbl,
    label.flabel {
      font-variant-numeric: normal;
    }

    .notif {
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    @media (max-width: 860px) {
      .content::before,
      .top-utility::after {
        left: 16px;
        right: 16px;
      }
    }

    /* â•â•â• AUTH / LOGIN â•â•â• */
    #login-overlay {
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: linear-gradient(160deg, #060E1A 0%, #0A1628 50%, #1C2B4A 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--ff);
    }

    #login-overlay.hidden {
      display: none;
    }

    .login-box {
      background: #fff;
      border-radius: 14px;
      padding: 40px 40px 36px;
      width: 380px;
      max-width: 94vw;
      box-shadow: 0 24px 64px rgba(0, 0, 0, .4);
      position: relative;
    }

    .login-logo {
      font-family: var(--ff-display, 'Source Sans 3', system-ui, sans-serif);
      font-size: 28px;
      font-weight: 800;
      color: var(--primary);
      letter-spacing: -.015em;
      margin-bottom: 2px;
    }

    .login-logo span {
      color: var(--accent);
    }

    .login-sub {
      font-size: 11.5px;
      color: var(--text-muted);
      margin-bottom: 24px;
      line-height: 1.55;
    }

    .login-label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 5px;
    }

    .login-input {
      width: 100%;
      min-height: 44px;
      padding: 0 12px;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: var(--ff);
      font-size: 16px;
      color: var(--text-main);
      outline: none;
      transition: border-color .15s;
      margin-bottom: 16px;
    }

    .login-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(200, 146, 42, .12);
    }

    .login-btn {
      width: 100%;
      min-height: 44px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius-sm);
      font-family: var(--ff);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background .15s;
    }

    .login-btn:hover {
      background: var(--accent);
    }

    .login-err {
      background: #FEF2F2;
      border: 1px solid #FECACA;
      color: #B91C1C;
      border-radius: 5px;
      padding: 8px 12px;
      font-size: 12px;
      margin-bottom: 16px;
      display: none;
    }

    .login-err.show {
      display: block;
    }

    .login-version {
      text-align: center;
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .login-input-wrap {
      position: relative;
    }

    .login-eye {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: var(--primary);
      font-family: var(--ff-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .04em;
      user-select: none;
      padding: 5px 8px;
      border-radius: 999px;
      border: 1px solid #D7E0EC;
      background: #F8FAFC;
      box-shadow: 0 4px 12px rgba(10, 22, 40, .06);
      text-transform: uppercase;
    }

    /* â•â•â• USER DROPDOWN â•â•â• */
    .user-dropdown-wrap {
      position: relative;
    }

    .user-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(10, 22, 40, .14);
      min-width: 200px;
      z-index: 1000;
      display: none;
      overflow: hidden;
    }

    .user-dropdown-menu.open {
      display: block;
      animation: fadeUp .15s ease;
    }

    .udm-head {
      padding: 14px 16px 10px;
      border-bottom: 1px solid var(--border);
    }

    .udm-name {
      font-weight: 700;
      font-size: 13px;
      color: var(--primary);
    }

    .udm-role-chip {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: .04em;
      margin-top: 3px;
    }

    .role-superadmin {
      background: #FEF3C7;
      color: #D97706;
    }

    .role-admin {
      background: #E8EDF5;
      color: var(--primary);
    }

    .role-petugas {
      background: #F0FDF4;
      color: #2D7D52;
    }

    .udm-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      font-size: 13px;
      cursor: pointer;
      color: var(--text-main);
      transition: background .1s;
    }

    .udm-item:hover {
      background: #F4F5F7;
    }

    .udm-item.danger:hover {
      background: #FEF2F2;
      color: #B91C1C;
    }

    .udm-divider {
      height: 1px;
      background: var(--border);
    }

    /* â•â•â• USER MANAGEMENT PAGE â•â•â• */
    .um-toolbar {
      display: flex;
      gap: 10px;
      align-items: center;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .um-table-wrap {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .um-role-badge {
      display: inline-block;
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: .03em;
    }

    /* Modal User */
    #modal-user {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 5000;
      background: rgba(10, 22, 40, .55);
      align-items: center;
      justify-content: center;
    }

    #modal-user.open {
      display: flex;
    }

    .modal-user-box {
      background: #fff;
      border-radius: 12px;
      width: 420px;
      max-width: 94vw;
      box-shadow: 0 20px 48px rgba(0, 0, 0, .3);
    }

    .modal-user-head {
      padding: 18px 22px 14px;
      border-bottom: 2px solid var(--primary);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-user-title {
      font-family: var(--ff-display, inherit);
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);
    }

    .modal-user-body {
      padding: 22px;
    }

    .modal-user-foot {
      padding: 14px 22px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }

    /* Sidebar/admin visibility guards */
    .nav-mgr-only {
      display: none;
    }

    .nav-mgr-only.visible {
      display: block;
    }

    .nav-sa-only {
      display: none;
    }

    .nav-sa-only.visible {
      display: block;
    }

    /* Role indicator in topbar avatar */
    .top-user-avatar.role-sa {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: #fff;
    }

    .top-user-avatar.role-admin {
      background: var(--primary);
      color: #fff;
    }

    .top-user-avatar.role-petugas {
      background: #2D7D52;
      color: #fff;
    }

    /* Sync dot states */
    .conn-dot.syncing {
      background: var(--accent);
      animation: pulse-sync .6s ease-in-out infinite alternate;
    }

    @keyframes pulse-sync {
      from {
        opacity: .5;
      }

      to {
        opacity: 1;
      }
    }

    /* â”€â”€ PENGATURAN USER PAGES â”€â”€ */
    .setting-page-title {
      font-family: var(--ff-display, inherit);
      font-size: 22px;
      font-weight: 900;
      color: var(--primary);
      letter-spacing: -.02em;
      margin-bottom: 4px;
    }

    .setting-page-sub {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 24px;
    }

    /* User list table */
    .user-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .user-table thead th {
      background: var(--primary);
      color: #fff;
      padding: 10px 14px;
      text-align: left;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .user-table tbody tr {
      border-bottom: 1px solid var(--border);
      transition: background .1s;
    }

    .user-table tbody tr:nth-child(even) {
      background: #FAFAFA;
    }

    .user-table tbody tr:hover {
      background: rgba(200, 146, 42, .06);
    }

    .user-table td {
      padding: 11px 14px;
      vertical-align: middle;
    }

    /* Role chips */
    .role-chip {
      display: inline-block;
      padding: 2px 9px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .role-chip.superadmin {
      background: #FEF3C7;
      color: #D97706;
    }

    .role-chip.admin {
      background: #E8EDF5;
      color: var(--primary);
    }

    .role-chip.petugas {
      background: #F0FDF4;
      color: #2D7D52;
    }

    /* Aktif chip */
    .aktif-chip {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 3px;
      font-size: 11px;
      font-weight: 700;
    }

    .aktif-chip.aktif {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .aktif-chip.nonaktif {
      background: #FFEBEE;
      color: #B71C1C;
    }

    /* Self badge */
    .self-badge {
      font-size: 10px;
      background: var(--accent);
      color: #fff;
      padding: 1px 5px;
      border-radius: 3px;
      margin-left: 5px;
      vertical-align: middle;
    }

    /* Profile form card */
    .profil-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: var(--shadow);
      overflow: hidden;
      max-width: 520px;
    }

    .profil-card-head {
      padding: 16px 24px 14px;
      border-bottom: 2px solid var(--primary);
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .profil-avatar-big {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--ff-display, inherit);
      font-size: 20px;
      font-weight: 900;
      color: #fff;
      flex-shrink: 0;
    }

    .profil-card-body {
      padding: 22px 24px;
    }

    /* Password input wrapper */
    .pw-wrap {
      position: relative;
    }

    .pw-wrap input {
      padding-right: 38px;
    }

    .pw-eye {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: var(--primary);
      font-family: var(--ff-mono);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .04em;
      user-select: none;
      background: #F8FAFC;
      border: 1px solid #D7E0EC;
      padding: 5px 8px;
      border-radius: 999px;
      text-transform: uppercase;
      box-shadow: 0 4px 12px rgba(10, 22, 40, .06);
    }

    .pw-eye:hover {
      color: var(--accent-dark);
      border-color: rgba(200, 146, 42, .38);
      background: #FFF8E1;
    }

    /* Password strength bar */
    .pw-strength-wrap {
      margin-top: 5px;
      height: 3px;
      background: #E4E8EF;
      border-radius: 2px;
    }

    .pw-strength-bar {
      height: 100%;
      border-radius: 2px;
      transition: width .3s, background .3s;
    }

    /* Konfirmasi pw mismatch */
    .input-err {
      border-color: #E53935 !important;
      box-shadow: 0 0 0 3px rgba(229, 57, 53, .10) !important;
    }

    .input-ok {
      border-color: #2D7D52 !important;
    }

    /* Modal user â€” confirm password row */
    .mu-pw-confirm-row {
      display: none;
      margin-bottom: 13px;
    }

    .mu-pw-confirm-row.show {
      display: block;
    }

    /* â”€â”€ KECAMATAN CHIP â”€â”€ */
    .keca-chip {
      display: inline-block;
      padding: 2px 9px;
      border-radius: 10px;
      font-size: 10px;
      font-weight: 700;
      background: rgba(200, 146, 42, .15);
      color: var(--accent);
      border: 1px solid rgba(200, 146, 42, .3);
      letter-spacing: .03em;
      margin-top: 2px;
      max-width: 160px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .keca-chip.all {
      background: rgba(10, 22, 40, .08);
      color: var(--primary);
      border-color: rgba(10, 22, 40, .2);
    }

    .top-user-keca {
      font-size: 11px;
      color: var(--accent);
      font-weight: 600;
      margin-top: 1px;
    }




