    :root {
      --sidebar-w: 250px;
      --green: #1DB954;
      --green-dim: rgba(29, 185, 84, .12);
      --orange: #FF8C42;
      --orange-dim: rgba(255, 140, 66, .12);
      --blue: #3B8BEB;
      --blue-dim: rgba(59, 139, 235, .12);
      --purple: #9B5DE5;
      --purple-dim: rgba(155, 93, 229, .12);
      --teal: #00B4D8;
      --teal-dim: rgba(0, 180, 216, .12);
      --yellow: #F4C430;
      --yellow-dim: rgba(244, 196, 48, .12);
      --red: #E63946;
      --red-dim: rgba(230, 57, 70, .12);
      --indigo: #6366F1;
      --indigo-dim: rgba(99, 102, 241, .12);
      --pink: #EC4899;
      --pink-dim: rgba(236, 72, 153, .12);
      --cyan: #06B6D4;
      --cyan-dim: rgba(6, 182, 212, .12);
      --body-bg: #F4F6F8;
      --card-bg: #FFFFFF;
      --sidebar-bg: #0F172A;
      --sidebar-text: #94A3B8;
      --topbar-bg: #FFFFFF;
      --font: 'Inter', sans-serif;
      --mono: 'IBM Plex Mono', monospace;
    }

    body {
      font-family: var(--font);
      background: var(--body-bg);
      overflow: hidden;
      font-size: 13px;
      color: #334155;
    }

    /* ── LAYOUT ── */
    .app-layout {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    .sidebar {
      width: var(--sidebar-w);
      background: var(--sidebar-bg);
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow-y: auto;
      flex-shrink: 0;
      box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
      z-index: 10;
      border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

    .topbar {
      background: var(--topbar-bg);
      border-bottom: 1px solid #E2E8F0;
      padding: 12px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-shrink: 0;
      gap: 10px;
      flex-wrap: wrap;
      z-index: 5;
    }

    .content-area {
      flex: 1;
      overflow-y: auto;
      padding: 24px;
    }

    /* ── LOGIN SCREEN ── */
    .login-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: var(--sidebar-bg);
      background-image: radial-gradient(circle at top right, #1E293B 0%, #0F172A 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    .login-card {
      background: #FFFFFF;
      width: 100%;
      max-width: 380px;
      border-radius: 16px;
      padding: 40px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .login-logo {
      width: 60px;
      height: 60px;
      background: var(--indigo-dim);
      color: var(--indigo);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      margin: 0 auto 24px;
    }

    /* ── SIDEBAR FLAT 2.0 MODERN & CLEAN (100% SYMMETRICAL) ── */
    .sb-brand {
      padding: 20px 14px 16px;
      border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .sb-brand-logo {
      font-size: 9.5px;
      font-weight: 700;
      color: #38BDF8;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      margin-bottom: 4px;
      line-height: 1.2;
    }

    .sb-brand-title {
      font-size: 15px;
      font-weight: 700;
      color: #F8FAFC;
      letter-spacing: 0.3px;
      display: flex;
      align-items: center;
      line-height: 1.2;
    }

    .sb-brand-title .badge {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      background: rgba(56, 189, 248, 0.15) !important;
      color: #38BDF8 !important;
      border: 1px solid rgba(56, 189, 248, 0.3);
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .sb-user-profile {
      font-size: 11.5px;
      margin-top: 14px;
      color: #94A3B8;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      padding: 8px 10px;
      border-radius: 8px;
      transition: all 0.2s;
    }

    .sb-user-profile:hover {
      background: rgba(255, 255, 255, 0.06);
    }

    .sidebar::-webkit-scrollbar {
      width: 4px;
    }

    .sidebar::-webkit-scrollbar-track {
      background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.12);
      border-radius: 4px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .sb-section,
    .sub-menu-header {
      padding: 8px 11px;
      font-size: 11.5px;
      font-weight: 700;
      color: #CBD5E1;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      line-height: 1.2;
      margin: 4px 8px 2px 8px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .sb-section:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #FFFFFF;
    }

    .sb-section .sb-sec-title {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11.5px;
      font-weight: 700;
    }

    .sb-section .sb-sec-title i {
      font-size: 13.5px;
      width: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .sb-section .sb-sec-arrow {
      font-size: 11px;
      color: #94A3B8;
      transition: transform 0.2s ease, color 0.15s ease;
    }

    .sb-section:hover .sb-sec-arrow {
      color: #FFFFFF;
    }

    .sb-section.collapsed .sb-sec-arrow {
      transform: rotate(-90deg);
    }

    .sb-sec-body {
      overflow: hidden;
      transition: all 0.2s ease-in-out;
    }

    .sb-sec-body.collapsed {
      display: none;
    }

    .sub-menu-header {
      padding-top: 6px;
    }

    .sb-module,
    .sb-nav-item {
      display: flex;
      align-items: center;
      width: calc(100% - 16px);
      margin: 1.5px 8px;
      padding: 6.5px 10px;
      border-radius: 7px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      border: 1px solid transparent;
      background: transparent;
      color: #94A3B8;
      text-align: left;
      text-decoration: none;
      outline: none;
      transition: all .15s ease-in-out;
      line-height: 1.2;
      box-sizing: border-box;
      font-family: inherit;
    }

    .sb-module:hover,
    .sb-nav-item:hover {
      background: rgba(255, 255, 255, .04);
      color: #F8FAFC;
    }

    .sb-mod-icon,
    .sb-nav-icon {
      font-size: 15px;
      width: 22px;
      min-width: 22px;
      height: 22px;
      text-align: center;
      flex-shrink: 0;
      opacity: 0.85;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-right: 10px;
      transition: all .15s ease-in-out;
    }

    .sb-mod-icon::before,
    .sb-nav-icon::before {
      display: block !important;
      line-height: 1 !important;
      vertical-align: 0 !important;
      margin: 0 auto !important;
    }

    .sb-module:hover .sb-mod-icon,
    .sb-nav-item:hover .sb-nav-icon {
      opacity: 1;
    }

    .sb-module.active,
    .sb-nav-item.active {
      font-weight: 600;
      border-radius: 8px;
    }

    /* Active Themes for Main Modules */
    .sb-module.mod-d.active {
      background: rgba(59, 130, 246, .12);
      border-color: rgba(59, 130, 246, .25);
      color: #60A5FA;
    }

    .sb-module.mod-d.active .sb-mod-icon {
      color: #60A5FA;
      opacity: 1;
    }

    .sb-module.mod-k.active {
      background: rgba(236, 72, 153, .12);
      border-color: rgba(236, 72, 153, .25);
      color: #F472B6;
    }

    .sb-module.mod-k.active .sb-mod-icon {
      color: #F472B6;
      opacity: 1;
    }

    .sb-module.mod-w.active {
      background: rgba(99, 102, 241, .12);
      border-color: rgba(99, 102, 241, .25);
      color: #818CF8;
    }

    .sb-module.mod-w.active .sb-mod-icon {
      color: #818CF8;
      opacity: 1;
    }

    .sb-module.mod-dk.active {
      background: rgba(168, 85, 247, .12);
      border-color: rgba(168, 85, 247, .25);
      color: #C084FC;
    }

    .sb-module.mod-dk.active .sb-mod-icon {
      color: #C084FC;
      opacity: 1;
    }

    .sb-module.mod-s.active {
      background: rgba(20, 184, 166, .12);
      border-color: rgba(20, 184, 166, .25);
      color: #2DD4BF;
    }

    .sb-module.mod-s.active .sb-mod-icon {
      color: #2DD4BF;
      opacity: 1;
    }

    /* Active Themes for Submenu items (identical padding and border) */
    .sb-nav-item.active.d {
      background: rgba(59, 130, 246, .12);
      border-color: rgba(59, 130, 246, .25);
      color: #60A5FA;
    }

    .sb-nav-item.active.d .sb-nav-icon {
      color: #60A5FA;
      opacity: 1;
    }

    .sb-nav-item.active.k {
      background: rgba(236, 72, 153, .12);
      border-color: rgba(236, 72, 153, .25);
      color: #F472B6;
    }

    .sb-nav-item.active.k .sb-nav-icon {
      color: #F472B6;
      opacity: 1;
    }

    .sb-nav-item.active.w {
      background: rgba(99, 102, 241, .12);
      border-color: rgba(99, 102, 241, .25);
      color: #818CF8;
    }

    .sb-nav-item.active.w .sb-nav-icon {
      color: #818CF8;
      opacity: 1;
    }

    .sb-nav-item.active.dk {
      background: rgba(168, 85, 247, .12);
      border-color: rgba(168, 85, 247, .25);
      color: #C084FC;
    }

    .sb-nav-item.active.dk .sb-nav-icon {
      color: #C084FC;
      opacity: 1;
    }

    .sb-nav-item.active.s {
      background: rgba(20, 184, 166, .12);
      border-color: rgba(20, 184, 166, .25);
      color: #2DD4BF;
    }

    .sb-nav-item.active.s .sb-nav-icon {
      color: #2DD4BF;
      opacity: 1;
    }

    .sb-divider {
      border-top: 1px solid rgba(255, 255, 255, .06);
      margin: 12px 14px;
    }

    /* ── TOPBAR & STATUS ── */
    .tb-title {
      font-size: 16px;
      font-weight: 700;
      color: #0F172A;
    }

    .tb-sub {
      font-size: 12px;
      color: #64748B;
      margin-top: 2px;
    }

    /* ── SHADCN UI SECTION CARDS & TABLES ── */
    .section-card {
      background: var(--card-bg);
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
      margin-bottom: 24px;
      overflow: hidden;
    }

    .section-card-header {
      padding: 16px 20px;
      border-bottom: 1px solid #F1F5F9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #FFFFFF;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    .sc-title {
      font-size: 14px;
      font-weight: 600;
      color: #0F172A;
      letter-spacing: -0.2px;
    }

    .section-card-body {
      padding: 20px;
    }

    .tbl-wrap {
      border-radius: 12px;
      border: 1px solid #E2E8F0;
      overflow: auto;
      background: #fff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    .tbl-wrap table {
      margin: 0;
      font-size: 12px;
    }

    .tbl-wrap thead th {
      background: #F8FAFC;
      font-size: 11px;
      font-weight: 700;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid #E2E8F0;
      padding: 12px 16px;
      white-space: nowrap;
    }

    .tbl-wrap tbody td {
      padding: 10px 16px;
      border-bottom: 1px solid #F1F5F9;
      vertical-align: middle;
      white-space: nowrap;
    }

    .tbl-wrap tbody tr:hover td {
      background: #F8FAFC;
    }

    .tbl-wrap tbody tr.row-rejected>td {
      background-color: #FEF2F2 !important;
      /* Soft samar red */
    }

    .tbl-wrap tbody tr.row-rejected:hover>td {
      background-color: #FEE2E2 !important;
    }

    .tbl-wrap tbody tr.row-bak-done>td {
      background-color: #F0FDF4 !important;
      /* Soft samar green */
    }

    .tbl-wrap tbody tr.row-bak-done:hover>td {
      background-color: #DCFCE7 !important;
    }

    .sticky-col-1 {
      position: sticky;
      left: 0;
      background: #fff;
      z-index: 2;
      min-width: 130px;
      max-width: 130px;
      box-shadow: inset -1px 0 0 #E2E8F0;
    }

    .sticky-col-2 {
      position: sticky;
      left: 130px;
      background: #fff;
      z-index: 2;
      min-width: 180px;
      max-width: 180px;
      box-shadow: inset -1px 0 0 #E2E8F0;
    }

    .sticky-col-3 {
      position: sticky;
      left: 310px;
      background: #fff;
      z-index: 2;
      min-width: 220px;
      max-width: 220px;
      box-shadow: inset -2px 0 0 #E2E8F0, 2px 0 5px -2px rgba(0, 0, 0, 0.1);
    }

    .tbl-wrap tbody tr:hover td.sticky-col-1,
    .tbl-wrap tbody tr:hover td.sticky-col-2,
    .tbl-wrap tbody tr:hover td.sticky-col-3 {
      background: #F8FAFC;
    }

    .sticky-th-1 {
      position: sticky;
      left: 0;
      background: #F8FAFC;
      z-index: 5 !important;
      min-width: 130px;
      max-width: 130px;
      box-shadow: inset -1px 0 0 #E2E8F0;
    }

    .sticky-th-2 {
      position: sticky;
      left: 130px;
      background: #F8FAFC;
      z-index: 5 !important;
      min-width: 180px;
      max-width: 180px;
      box-shadow: inset -1px 0 0 #E2E8F0;
    }

    .sticky-th-3 {
      position: sticky;
      left: 310px;
      background: #F8FAFC;
      z-index: 5 !important;
      min-width: 220px;
      max-width: 220px;
      box-shadow: inset -2px 0 0 #E2E8F0, 2px 0 5px -2px rgba(0, 0, 0, 0.1);
    }

    .mono {
      font-family: var(--font);
      white-space: nowrap;
    }

    /* ── TABEL LAPORAN PMO (MODERNIZED & SEAMLESS UI) ── */
    .tbl-pmo-laporan {
      border-collapse: separate;
      border-spacing: 0;
      width: 100%;
      font-size: 11.5px;
    }

    .tbl-pmo-laporan thead th {
      background: #0F172A !important;
      color: #F8FAFC !important;
      font-weight: 600;
      font-size: 10.5px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      padding: 10px 12px;
      border-bottom: 2px solid #334155;
      border-right: 1px solid #1E293B;
      vertical-align: middle;
      white-space: nowrap;
    }

    .tbl-pmo-laporan thead th.th-grp {
      background: #1E293B !important;
      border-bottom: 2px solid var(--indigo) !important;
      color: #E2E8F0 !important;
    }

    .tbl-pmo-laporan thead th.th-detail {
      background: #0F172A !important;
      border-bottom: 2px solid var(--pink) !important;
      color: #F1F5F9 !important;
    }

    .tbl-pmo-laporan tbody td {
      padding: 8px 10px;
      vertical-align: middle;
      border-bottom: 1px solid #E2E8F0;
      border-right: 1px solid #E2E8F0;
      transition: background-color 0.15s ease;
    }

    .tbl-pmo-laporan tbody tr:hover td {
      background-color: rgba(99, 102, 241, 0.05) !important;
    }

    .tbl-pmo-laporan .row-percepatan {
      background-color: #FFFDF7;
    }

    .tbl-pmo-laporan .row-reguler {
      background-color: #F8FCF9;
    }

    .tbl-pmo-laporan .cell-tl {
      background: #FFFFFF !important;
      font-weight: 700;
      text-align: center;
      vertical-align: middle;
      border-right: 2px solid #CBD5E1 !important;
    }

    .tbl-pmo-laporan .cell-sg {
      background: #FFFFFF !important;
      font-weight: 600;
      text-align: center;
      vertical-align: middle;
      border-right: 2px solid #CBD5E1 !important;
    }

    .pmo-editable {
      outline: none;
      padding: 4px 6px;
      border-radius: 6px;
      border: 1px solid transparent;
      transition: all 0.2s ease;
      cursor: text;
    }

    .pmo-editable:hover {
      background: rgba(255, 255, 255, 0.9);
      border-color: #CBD5E1;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .pmo-editable:focus {
      background: #FFFFFF;
      border-color: var(--indigo);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    /* ── SHADCN UI METRIC STAT CARDS ── */
    .metric-card {
      background: #FFFFFF;
      border-radius: 12px;
      padding: 14px 18px;
      border: 1px solid #E2E8F0;
      box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .metric-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .metric-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .mc-blue .metric-icon {
      background: rgba(59, 130, 246, 0.1);
      color: #2563EB;
    }

    .mc-green .metric-icon {
      background: rgba(16, 185, 129, 0.1);
      color: #059669;
    }

    .mc-orange .metric-icon {
      background: rgba(249, 115, 22, 0.1);
      color: #EA580C;
    }

    .mc-red .metric-icon {
      background: rgba(239, 68, 68, 0.1);
      color: #DC2626;
    }

    .mc-purple .metric-icon {
      background: rgba(139, 92, 246, 0.1);
      color: #7C3AED;
    }

    .mc-teal .metric-icon {
      background: rgba(20, 184, 166, 0.1);
      color: #0D9488;
    }

    .mc-yellow .metric-icon {
      background: rgba(245, 158, 11, 0.1);
      color: #D97706;
    }

    .mc-indigo .metric-icon {
      background: rgba(99, 102, 241, 0.1);
      color: #4F46E5;
    }

    .mc-pink .metric-icon {
      background: rgba(236, 72, 153, 0.1);
      color: #DB2777;
    }

    .mc-cyan .metric-icon {
      background: rgba(6, 182, 212, 0.1);
      color: #0891B2;
    }

    .metric-label {
      font-size: 11.5px;
      font-weight: 600;
      color: #64748B;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      line-height: 1.2;
    }

    .metric-value {
      font-size: 22px;
      font-weight: 700;
      font-family: var(--font);
      color: #0F172A;
      letter-spacing: -0.4px;
      line-height: 1.15;
      margin: 0 0 3px;
    }

    .metric-sub {
      font-size: 12px;
      color: #94A3B8;
      line-height: 1.3;
      margin-top: 2px;
    }

    .metric-card-hover {
      cursor: pointer;
    }

    .metric-card-hover:hover {
      border-color: #CBD5E1;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
      transform: translateY(-2px);
    }

    /* ── FORMS & BADGES ── */
    .form-label-sm {
      font-size: 11px;
      font-weight: 600;
      color: #475569;
      margin-bottom: 6px;
    }

    .form-control {
      font-size: 13px;
      border-color: #CBD5E1;
      border-radius: 8px;
      padding: 8px 12px;
      transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    .form-select {
      font-size: 13px;
      border-color: #CBD5E1;
      border-radius: 8px;
      padding: 8px 12px;
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
      background-repeat: no-repeat;
      background-position: right 0.75rem center;
      background-size: 13px 9px;
      cursor: pointer;
      transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

    .form-control:focus,
    .form-select:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(59, 139, 235, .15);
    }

    .dropdown-item i.bi {
      margin-right: 5px;
      display: inline-block;
    }

    /* Modern Dropdown & Scrollbar Standard */
    .dropdown-menu {
      border: 1px solid #cbd5e1 !important;
      border-radius: 8px !important;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    }

    .dropdown-menu::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }

    .dropdown-menu::-webkit-scrollbar-track {
      background: transparent;
    }

    .dropdown-menu::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
    }

    .dropdown-menu::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    .dropdown-item {
      transition: background-color 0.15s ease, color 0.15s ease;
      color: #1e293b;
    }

    .dropdown-item:hover {
      background-color: #f1f5f9;
      color: #0f172a;
    }

    .dropdown-item.active,
    .dropdown-item:active {
      background-color: #e2e8f0;
      color: #0f172a;
    }

    .req-mark {
      color: var(--red);
      margin-left: 2px;
    }

    .boq-section .table-responsive {
      border: 1px solid #E2E8F0;
      border-radius: 16px;
      background: #fff;
      padding: 18px;
    }

    .boq-section .table {
      margin-bottom: 0;
    }

    .boq-section .table th,
    .boq-section .table td {
      padding: 4px 12px !important;
      vertical-align: middle;
    }

    .boq-section .table thead th {
      border-bottom: 2px solid #E2E8F0;
    }

    .boq-section .table tbody tr td {
      border-top: 1px solid #F1F5F9;
    }

    .boq-section .table tbody .table-secondary td {
      padding-top: 6px !important;
      padding-bottom: 6px !important;
    }

    .boq-section .table input.form-control {
      min-height: 26px;
      border-radius: 6px;
      font-size: 11px;
      padding: 2px 8px;
    }

    .boq-save-row {
      background: #FFFBF2;
      border: 1px solid #F5D6A4;
      border-radius: 16px;
    }

    .boq-save-row .form-control {
      min-height: 48px;
    }

    .boq-save-row .btn {
      min-width: 180px;
    }

    .bdg {
      display: inline-block;
      font-size: 10px;
      padding: 4px 8px;
      border-radius: 6px;
      font-weight: 600;
      font-family: var(--font);
      white-space: nowrap;
    }

    .bdg-green {
      background: #DCFCE7;
      color: #166534;
      border: 1px solid #BBF7D0;
    }

    .bdg-orange {
      background: #FFEDD5;
      color: #9A3412;
      border: 1px solid #FED7AA;
    }

    .bdg-blue {
      background: #DBEAFE;
      color: #1E40AF;
      border: 1px solid #BFDBFE;
    }

    .bdg-red {
      background: #FEE2E2;
      color: #991B1B;
      border: 1px solid #FECACA;
    }

    .bdg-purple {
      background: #F3E8FF;
      color: #6B21A8;
      border: 1px solid #E9D5FF;
    }

    .bdg-yellow {
      background: #FEF9C3;
      color: #854D0E;
      border: 1px solid #FEF08A;
    }

    .bdg-teal {
      background: #CCFBF1;
      color: #115E59;
      border: 1px solid #99F6E4;
    }

    .bdg-indigo {
      background: #E0E7FF;
      color: #4338CA;
      border: 1px solid #C7D2FE;
    }

    .bdg-pink {
      background: #FCE7F3;
      color: #BE185D;
      border: 1px solid #FBCFE8;
    }

    .btn-icon {
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      border: 1px solid #E2E8F0;
      background: #fff;
      cursor: pointer;
      font-size: 13px;
      color: #64748B;
      transition: all .2s;
    }

    .btn-icon:hover {
      background: #F1F5F9;
      color: #1E293B;
    }

    .btn-icon.edit:hover {
      background: var(--blue-dim);
      color: var(--blue);
      border-color: var(--blue);
    }

    .btn-icon.del:hover {
      background: var(--red-dim);
      color: var(--red);
      border-color: var(--red);
    }

    .btn-icon.print:hover {
      background: var(--purple-dim);
      color: var(--purple);
      border-color: var(--purple);
    }

    .btn-icon.save {
      color: #16A34A;
      border-color: #BBF7D0;
      background: #F0FDF4;
    }

    .btn-icon.save:hover {
      background: #DCFCE7;
      color: #15803D;
      border-color: #16A34A;
    }

    .btn-icon.cancel:hover {
      background: #F1F5F9;
      color: #64748B;
      border-color: #CBD5E1;
    }

    .progress-stacked {
      display: flex;
      height: 16px;
      border-radius: 8px;
      overflow: hidden;
      background: #E2E8F0;
    }

    .progress-segment {
      height: 100%;
      transition: width 0.4s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 9px;
      font-weight: bold;
      color: white;
    }

    /* Sub Menu Section Styling */
    .sub-menu-header {
      font-size: 11px;
      font-weight: 700;
      color: #94A3B8;
      text-transform: uppercase;
      margin: 16px 20px 4px;
      letter-spacing: 1px;
    }

    /* NoSQL Cloud Sync Status Badge */
    .cloud-status {
      font-size: 11px;
      background: #fff;
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid #E2E8F0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: #475569;
    }

    .cloud-status .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #CBD5E1;
    }

    .cloud-status.online .dot {
      background: var(--green);
      box-shadow: 0 0 6px var(--green);
    }

    .cloud-status.syncing .dot {
      background: var(--orange);
      box-shadow: 0 0 6px var(--orange);
      animation: blink 1s infinite alternate;
    }

    .text-pink {
      color: var(--pink) !important;
    }

    @keyframes blink {
      0% {
        opacity: 1;
      }

      100% {
        opacity: 0.3;
      }
    }

    /* Mobile Sidebar Toggle */
    @media (min-width: 769px) {
      .sidebar {
        transition: margin-left 0.3s ease-in-out;
      }

      .sidebar.hide-desktop {
        margin-left: calc(var(--sidebar-w) * -1);
      }
    }

    @media (max-width: 768px) {
      .sidebar {
        position: fixed;
        left: calc(var(--sidebar-w) * -1);
        transition: left 0.3s ease-in-out;
      }

      .sidebar.show {
        left: 0;
      }

      .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9;
        display: none;
      }

      .sidebar-backdrop.show {
        display: block;
      }
    }

    /* Pastikan Custom Alert / Confirm / Prompt selalu di layer terdepan di atas semua modal */
    #customAppModal {
      z-index: 1095 !important;
    }

    /* ── STYLING MODUL TIMELINE & KURVA S ── */
    .custom-timeline-tabs .nav-link {
      color: #64748B;
      background: #FFFFFF;
      border: 1px solid #E2E8F0;
      transition: all 0.2s ease;
    }

    .custom-timeline-tabs .nav-link:hover {
      color: #0F172A;
      background: #F8FAFC;
      border-color: #CBD5E1;
    }

    .custom-timeline-tabs .nav-link.active {
      color: #FFFFFF !important;
      background: #0284C7 !important;
      border-color: #0284C7 !important;
      box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
    }

    /* Fractional spacing utilities for flexbox/grid/margins/padding */
    .gap-0\.5 { gap: 2px !important; }
    .gap-1\.5 { gap: 6px !important; }
    .gap-2\.5 { gap: 10px !important; }

    .mb-0\.5 { margin-bottom: 2px !important; }
    .mb-1\.5 { margin-bottom: 6px !important; }
    .mb-2\.5 { margin-bottom: 12px !important; }

    .mt-0\.5 { margin-top: 2px !important; }
    .mt-1\.5 { margin-top: 6px !important; }
    .mt-2\.5 { margin-top: 12px !important; }

    .p-1\.5 { padding: 6px !important; }
    .p-2\.5 { padding: 10px !important; }
    .p-3\.5 { padding: 14px !important; }

    .py-0\.5 { padding-top: 2px !important; padding-bottom: 2px !important; }
    .py-1\.5 { padding-top: 6px !important; padding-bottom: 6px !important; }
    .py-2\.5 { padding-top: 10px !important; padding-bottom: 10px !important; }

    .px-1\.5 { padding-left: 6px !important; padding-right: 6px !important; }
    .px-2\.5 { padding-left: 10px !important; padding-right: 10px !important; }
    .px-3\.5 { padding-left: 14px !important; padding-right: 14px !important; }

    @media print {
      body {
        background: #FFFFFF !important;
        overflow: visible !important;
      }

      .sidebar,
      .topbar,
      .custom-timeline-tabs,
      .btn,
      #global-loader {
        display: none !important;
      }

      .main-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
      }

      .content-area {
        overflow: visible !important;
        height: auto !important;
        padding: 0 !important;
      }

      .timeline-module-wrapper {
        padding: 0 !important;
        max-width: 100% !important;
      }

      .card {
        box-shadow: none !important;
        border: 1px solid #CBD5E1 !important;
        break-inside: avoid;
        page-break-inside: avoid;
      }
    }