@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* ── MRO One — Grafit & Cyan ───────────────────────────────────────────
     Sengaja BUKAN keluarga navy seperti MRS One. Grafit bersifat netral,
     sehingga tidak bertabrakan dengan satu pun dari lima warna divisi dan
     tidak bersaing dengan merah/kuning/hijau status. Cyan menyambung ke
     hero Dashboard Direktorat, supaya hero itu terasa bagian dari aplikasi,
     bukan tempelan dari sistem lain. */
  --canvas: #F4F6F8;
  --surface: #FFFFFF;
  --border: #DFE4E8;
  --navy: #101820;          /* blok gelap & avatar — kini grafit, bukan navy */
  --ink: #101820;
  --muted: #69747E;

  /* Status. Disamakan dengan warna tingkat risiko di mro_data.php: sebelumnya
     ada dua merah berbeda bersebelahan di layar yang sama, dan dua merah yang
     bukan warna yang sama terbaca sebagai kesalahan, bukan sebagai desain. */
  /* Dua kuning, karena dipakai dua cara. --amber jadi warna TEKS di atas
     putih, jadi harus cukup tua: #E8A33D hanya beda 2,16:1 dari putih dan
     nyaris tak terbaca. --amber-bg tetap cerah untuk latar lencana. */
  --amber: #B4761C;
  --amber-bg: #E8A33D;
  --red: #C1272D;
  --green: #2E9B69;

  /* Klasifikasi Program. Hue-nya dipertahankan supaya orang tidak perlu
     belajar ulang warna kategori, hanya digeser sedikit lebih sejuk. */
  --tree-pekerjaan: #1F5F73;
  --tree-aktivitas: #3F7F6E;
  --class-grc: #226C8A;
  --class-ews: #6E56B8;
  --class-tematik: #17796B;

  /* Sidebar grafit. */
  --side-top: #12181D;
  --side-bottom: #070A0D;
  --side-text: #9AA8B4;
  --side-text-dim: #6B7782;
  --side-line: #1E262E;

  /* DUA token aksen, bukan satu.
     --brand-blue dipakai sebagai warna TEKS dan garis di atas latar putih,
     jadi harus cukup tua agar terbaca. --accent-bright dipakai sebagai LATAR
     menu aktif di sidebar gelap, jadi harus cerah. Menyatukan keduanya adalah
     bagaimana tautan bisa berakhir nyaris tak terbaca di atas putih. */
  --brand-blue: #0E7C97;
  --accent-bright: #35D4F4;

  /* Halaman Tentang/Profil — sudah bernuansa navy-cyan sejak awal, dan kini
     justru menyatu dengan sisa aplikasi. */
  --about-navy: #07182B;
  --about-cyan: #18C8F4;
  --about-bg: #F5F8FA;
  --about-line: #DCE7F2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.muted { color: var(--muted); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: linear-gradient(180deg, var(--side-top) 0%, var(--side-bottom) 100%); color: var(--side-text); padding: 18px 12px; flex-shrink: 0; display: flex; flex-direction: column; }
.brand { color: #fff; font-weight: 700; font-size: 17px; padding: 4px 8px; display: flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 8px; }
.brand:hover { background: rgba(255,255,255,0.06); }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; object-fit: cover; }
.tagline { font-size: 11px; color: var(--side-text-dim); padding: 2px 8px 18px 8px; line-height: 1.45; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--side-text); cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active { background: var(--accent-bright); color: #08222A; font-weight: 700; box-shadow: 0 2px 10px rgba(53,212,244,0.30); }
.nav-item.active:hover { background: var(--accent-bright); }
.nav-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.9; }
.nav-item.active .nav-ico { opacity: 1; }
.nav-label { flex: 1; }
.nav-soon { color: var(--side-text-dim); }
.nav-soon:hover { background: none; color: var(--side-text-dim); cursor: default; }
.soon-badge { font-size: 9.5px; border: 1px solid var(--side-line); border-radius: 4px; padding: 1px 5px; }
.sidebar-footer { margin-top: auto; padding: 12px 10px; border-top: 1px solid var(--side-line); font-size: 11px; color: var(--side-text-dim); line-height: 1.5; }

.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: '›'; margin-left: auto; transition: transform 0.15s; }
.nav-group[open] summary::after { transform: rotate(90deg); }
.nav-subitems { display: flex; flex-direction: column; padding-left: 10px; }
.nav-sub { font-size: 12.5px; padding: 7px 10px 7px 14px; }
.nav-subitems { border-left: 1px solid var(--side-line); margin-left: 18px; padding-left: 4px; }
.nav-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }

.main { flex: 1; padding: 26px 32px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); position: relative; }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.topbar-user::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

.user-menu { position: relative; }
.user-menu-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(16,28,44,0.12); min-width: 200px; padding: 8px; z-index: 20;
}
.user-menu-dropdown a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; color: var(--ink); text-decoration: none; }
.user-menu-dropdown a:hover { background: var(--canvas); }
.user-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-menu-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; padding: 4px 10px; }

.kegiatan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kegiatan-card { background: var(--canvas); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.kegiatan-card summary { list-style: none; cursor: pointer; }
.kegiatan-card summary::-webkit-details-marker { display: none; }
.kegiatan-card[open] { background: #fff; border-color: var(--amber); }
.kegiatan-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; }
.kegiatan-label { display: block; font-size: 9.5px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }

.news-tier { border-radius: 10px; padding: 18px 20px; }
.tier-tab-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tier-tab-btn.active { color: #fff; background: var(--navy); border-color: var(--navy); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 8px 14px; border: none; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; display: inline-block; }
.tab.active { color: var(--navy); border-bottom: 2px solid var(--amber); }

.agenda-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.agenda-row:last-child { border-bottom: none; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.dot-hijau { background: var(--green); }
.dot-kuning { background: #B8862B; }
.dot-merah { background: var(--red); }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel-grid .full { grid-column: 1 / -1; }
.panel ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; }
.panel-title { font-weight: 600; font-size: 13px; margin-bottom: 10px; }

.score-badge { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 16px; border-radius: 6px; padding: 4px 12px; min-width: 40px; text-align: center; background: var(--canvas); }
.score-row-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; }
.score-row-fill { height: 5px; border-radius: 3px; }
.page-title { font-size: 20px; font-weight: 700; margin: 0; }
.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 2px; margin-bottom: 22px; }

.btn { background: var(--navy); color: #fff; border: none; border-radius: 6px; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-outline { background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 11.5px; cursor: pointer; color: var(--ink); text-decoration: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.metric-row { display: flex; gap: 12px; margin-bottom: 24px; }
.metric-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.metric-value { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; }
.metric-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead tr { background: var(--navy); color: #fff; }
th, td { padding: 8px 10px; text-align: left; }
tbody tr { border-bottom: 1px solid var(--border); }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kanban-col-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.tag { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--canvas); color: var(--muted); margin-right: 4px; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; }
.progress-fill { height: 4px; background: var(--navy); border-radius: 2px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
.login-card input { width: 100%; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 10px; font-family: inherit; }
.error { color: var(--red); font-size: 12.5px; margin-bottom: 12px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Mobile responsiveness */
.mobile-menu-btn { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block; position: fixed; top: 12px; left: 12px; z-index: 60;
    width: 40px; height: 40px; border-radius: 8px; border: none;
    background: var(--navy); color: #fff; font-size: 18px; cursor: pointer;
  }
  .sidebar-backdrop.show {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 45;
  }
  .app-shell { display: block; }
  .sidebar {
    position: fixed; top: 0; left: -280px; width: 260px; height: 100vh;
    z-index: 50; overflow-y: auto; transition: left 0.22s ease;
  }
  .sidebar.sidebar-open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
  .main { padding: 18px 14px; padding-top: 62px; width: 100%; box-sizing: border-box; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .page-title { font-size: 20px; }

  /* Generic retrofits: most of this app's layouts are inline-styled grids/flex
     rows built for desktop. Rather than editing every page, override the
     common patterns broadly on mobile — !important is required since inline
     styles otherwise always win over an external stylesheet. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap !important; }
  .kegiatan-grid, .panel-grid, .kanban { grid-template-columns: 1fr !important; }
  /* The calendar month grid must stay 7 columns even on mobile — it scrolls
     sideways instead (see kalender.php's overflow-x wrapper). The broad
     catch-all above would otherwise flatten it to a single column too. */
  .calendar-month-grid { grid-template-columns: repeat(7, 1fr) !important; }
  .metric-row { flex-wrap: wrap; }
  .metric-card { min-width: 45%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  img { max-width: 100%; }
}

/* ---- Dashboard (Executive) ---------------------------------------------- */
/* Enam kartu dalam satu baris. Padding dan ukuran huruf dirapatkan supaya
   muat tanpa ada kartu yang turun ke baris kedua — kartu yang turun sendirian
   terbaca seperti kelompok terpisah, padahal setara dengan yang lain. */
/* Baris pertama: lima kartu operasional yang menjumlah tepat.
   Baris kedua: dua kartu catatan, sengaja lebih sempit agar terbaca sebagai
   kelompok yang berbeda, bukan lanjutan baris pertama. */
.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 10px; }
.kpi-row-bawah { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-bottom: 22px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 11px; display: flex; gap: 9px; align-items: flex-start; text-decoration: none; color: inherit; min-width: 0; }
.kpi-card:hover { border-color: var(--brand-blue); }
.kpi-card .kpi-num { font-size: 22px; }
.kpi-card .kpi-lbl { font-size: 10.5px; line-height: 1.35; }
.kpi-card .kpi-ico { flex-shrink: 0; }
@media (max-width: 1200px) { .kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .kpi-row-bawah { grid-template-columns: repeat(2, 1fr); max-width: none; } }
.kpi-ico { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-num { font-family: 'IBM Plex Mono', monospace; font-size: 26px; font-weight: 600; line-height: 1.05; }
.kpi-lbl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dash-panel-title { font-size: 14.5px; font-weight: 700; }
.dash-link { font-size: 11.5px; color: var(--brand-blue); text-decoration: none; font-weight: 600; white-space: nowrap; }

.greet-bar { background: linear-gradient(110deg, var(--side-top) 0%, #14456F 60%, #1C5B8F 100%); border-radius: 12px; padding: 18px 22px; color: #fff; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.greet-hi { font-size: 20px; font-weight: 700; }
.greet-sub { font-size: 12.5px; color: #B9D2E8; margin-top: 3px; }

.agenda-day { border-top: 1px solid var(--border); padding: 9px 0; display: flex; gap: 12px; }
.agenda-daylbl { width: 78px; flex-shrink: 0; font-size: 11px; font-weight: 700; }
.bell { position: relative; background: none; border: 1px solid var(--border); border-radius: 9px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; }
.bell-dot { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }

@media (max-width: 900px) {
  .kpi-row { grid-template-columns: 1fr 1fr !important; }
  .dash-grid { grid-template-columns: 1fr !important; }
}
/* Badges sit flush right now that .nav-item is a flex row. */
.nav-item .nav-badge { margin-left: auto; }
.nav-soon .soon-badge { margin-left: auto; }
/* Kotak rekap portofolio: 2 kolom di layar kecil, bukan 1 (aturan catch-all
   grid di atas akan memaksanya jadi 1 kolom tanpa penimpaan ini). */
@media (max-width: 900px) {
  .rekap-tiles { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Halaman Tentang / Profil DIV MRS ----------------------------------- */
.about-subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.about-subnav a { font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.about-subnav a[aria-current="page"] { background: var(--about-navy); border-color: var(--about-navy); color: #fff; }
.about-subnav a:focus-visible { outline: 2px solid var(--about-cyan); outline-offset: 2px; }

.about-hero { --about-hero-img: url('img/about-hero.webp');
  position: relative; border-radius: 18px; overflow: hidden; background-color: var(--about-navy);
  background-image: linear-gradient(100deg, rgba(7,24,43,0.97) 0%, rgba(7,24,43,0.88) 38%, rgba(7,24,43,0.35) 62%, rgba(7,24,43,0.15) 100%), var(--about-hero-img);
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  padding: 46px 44px; min-height: 320px; display: flex; align-items: center; margin-bottom: 30px; }
.about-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--about-cyan); margin-bottom: 14px; }
.about-h1 { font-size: 40px; line-height: 1.12; font-weight: 700; color: #fff; margin: 0 0 16px; max-width: 15ch; }
.about-h1 .accent { color: var(--about-cyan); display: block; }
.about-lede { font-size: 14px; line-height: 1.75; color: #C8DCEE; max-width: 46ch; margin: 0 0 22px; }
.about-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--about-cyan); color: var(--about-navy);
  font-weight: 700; font-size: 13.5px; padding: 12px 22px; border-radius: 999px; text-decoration: none; border: none; cursor: pointer; }
.about-cta:hover { background: #48D6FA; }
.about-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.about-h2 { font-size: 21px; font-weight: 700; color: var(--about-navy); margin: 0 0 16px; }
.about-band { background: var(--surface); border: 1px solid var(--about-line); border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 1px 3px rgba(7,24,43,0.05); margin-bottom: 22px; }

.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.role-card { background: var(--surface); border: 1px solid var(--about-line); border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 3px rgba(7,24,43,0.05); display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s; }
.role-card:hover { box-shadow: 0 8px 22px rgba(7,24,43,0.10); transform: translateY(-2px); border-color: #BFD8EE; }
.role-ico { width: 42px; height: 42px; border-radius: 12px; background: #E8F3FC; color: #1B5E8F;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; flex-shrink: 0; }
.role-title { font-size: 14px; font-weight: 700; color: var(--about-navy); line-height: 1.3; margin-bottom: 7px; }
.role-desc { font-size: 12px; line-height: 1.65; color: var(--muted); margin-bottom: 14px; }
.role-outcome { margin-top: auto; background: var(--about-bg); border-radius: 11px; padding: 10px 12px; }
.role-outcome-lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #1B5E8F; margin-bottom: 3px; }
.role-outcome-txt { font-size: 11.5px; line-height: 1.5; color: var(--ink); }
.role-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12px; font-weight: 700; color: #1B5E8F; text-decoration: none; }
.role-link:hover { text-decoration: underline; }

.flow { display: flex; align-items: flex-start; gap: 4px; }
.flow-step { flex: 1; text-align: center; min-width: 0; }
.flow-ico { width: 46px; height: 46px; border-radius: 999px; background: #E8F3FC; color: #1B5E8F;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 9px; }
.flow-name { font-size: 13px; font-weight: 700; color: var(--about-navy); margin-bottom: 4px; }
.flow-desc { font-size: 11px; line-height: 1.55; color: var(--muted); }
.flow-arrow { color: #9FC2DF; align-self: center; padding: 0 2px; flex-shrink: 0; }

.snap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.snap-item { text-align: center; padding: 6px 12px; border-right: 1px solid var(--about-line); }
.snap-item:last-child { border-right: none; }
.snap-num { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 700; color: var(--about-navy); line-height: 1.1; }
.snap-lbl { font-size: 12px; font-weight: 700; color: var(--about-navy); margin-top: 3px; }
.snap-sub { font-size: 10.5px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

.chip-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--about-line);
  border-radius: 999px; padding: 8px 15px 8px 8px; font-size: 12px; font-weight: 600; color: var(--about-navy); }
.chip-dot { width: 27px; height: 27px; border-radius: 999px; background: var(--about-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chip-sep { color: #9FC2DF; }

@media (max-width: 1100px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-hero { --about-hero-img: url('img/about-hero-sm.webp');
    padding: 30px 22px; min-height: 260px; border-radius: 14px;
    background-position: 65% center;
    background-image: linear-gradient(165deg, rgba(7,24,43,0.94) 0%, rgba(7,24,43,0.86) 55%, rgba(7,24,43,0.72) 100%), var(--about-hero-img); }
  .about-h1 { font-size: 27px; max-width: none; }
  .about-lede { font-size: 13px; max-width: none; }
  .role-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: stretch; gap: 2px; }
  .flow-step { display: flex; gap: 12px; text-align: left; align-items: flex-start; }
  .flow-ico { margin: 0; }
  .flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 21px; }
  .snap-grid { grid-template-columns: repeat(2, 1fr); }
  .snap-item { border-right: none; border-bottom: 1px solid var(--about-line); padding: 12px; }
  .snap-item:nth-child(odd) { border-right: 1px solid var(--about-line); }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .role-card { transition: none; }
}

/* ---- Budaya & Engagement ------------------------------------------------ */
.culture-hero { --culture-img: url('img/culture-hero.webp');
  position: relative; border-radius: 16px; overflow: hidden; background-color: #0B1C2E;
  background-image: linear-gradient(95deg, rgba(11,28,46,0.97) 0%, rgba(11,28,46,0.9) 34%, rgba(11,28,46,0.45) 62%, rgba(11,28,46,0.1) 100%), var(--culture-img);
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  min-height: 190px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.culture-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: #7FD3F5; margin-bottom: 9px; }
.culture-h1 { font-size: 32px; font-weight: 700; color: #fff; margin: 0 0 8px; line-height: 1.15; }
.culture-h1 .accent { color: #F28C28; }
.culture-sub { font-size: 13px; color: #B9D2E8; margin: 0; }

.culture-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.culture-kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; display: flex; gap: 13px; align-items: center; text-decoration: none; color: inherit; }
.culture-kpi-card:hover { border-color: #2D8CFF; }
.culture-kpi-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.culture-prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.culture-prog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 17px 19px;
  border-top: 4px solid var(--accent, #2D8CFF); box-shadow: 0 1px 3px rgba(11,28,46,0.05); }
.culture-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.culture-stat { text-align: center; min-width: 62px; }
.culture-stat b { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 19px; font-weight: 700; }
.culture-stat span { font-size: 9.5px; color: var(--muted); }

.culture-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }

/* Drawer sisi kanan untuk Tambah Update */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(11,28,46,0.45); z-index: 80; display: none; }
.drawer-backdrop.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(470px, 100%); background: var(--surface);
  z-index: 90; box-shadow: -8px 0 30px rgba(11,28,46,0.18); transform: translateX(100%);
  transition: transform .22s ease; overflow-y: auto; padding: 20px 22px; }
.drawer.open { transform: translateX(0); }

@media (max-width: 1000px) {
  .culture-kpi { grid-template-columns: repeat(2, 1fr); }
  .culture-prog-grid, .culture-two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .culture-hero { --culture-img: url('img/culture-hero-sm.webp');
    min-height: 210px; padding: 20px; background-position: 68% center;
    background-image: linear-gradient(160deg, rgba(11,28,46,0.95) 0%, rgba(11,28,46,0.88) 55%, rgba(11,28,46,0.7) 100%), var(--culture-img); }
  .culture-h1 { font-size: 24px; }
  .drawer { width: 100%; }
  .culture-kpi-card, .btn, .btn-outline { min-height: 44px; }
}

/* ---- Halaman Login ------------------------------------------------------ */
.lg-shell { display: flex; min-height: 100vh; }
.lg-visual { flex: 0 0 58%; position: relative; background-color: #07182B;
  background-image: linear-gradient(90deg, rgba(7,24,43,0.98) 0%, rgba(7,24,43,0.86) 42%, rgba(7,24,43,0.25) 100%), url('img/login-globe.webp');
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  padding: 46px 52px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand img { width: 42px; height: 42px; border-radius: 11px; }
.lg-brand-name { font-size: 25px; font-weight: 700; line-height: 1.1; }
.lg-brand-name .accent { color: #F28C28; }
.lg-brand-sub { font-size: 11.5px; color: #9FB8CE; margin-top: 2px; }
.lg-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.2px; color: #9FB8CE; text-transform: uppercase; }
.lg-eyebrow::before { content: ''; display: block; width: 38px; height: 3px; background: #F28C28; margin-bottom: 16px; border-radius: 2px; }
.lg-head { font-size: 42px; font-weight: 700; line-height: 1.18; margin: 18px 0 20px; }
.lg-head .dot { color: #F28C28; }
.lg-copy { font-size: 15px; line-height: 1.7; color: #C8DCEE; max-width: 42ch; margin: 0; }
.lg-props { display: flex; gap: 30px; flex-wrap: wrap; }
.lg-prop { max-width: 165px; }
.lg-prop-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.lg-prop b { font-size: 13px; display: block; line-height: 1.3; }
.lg-prop span { font-size: 11.5px; color: #9FB8CE; line-height: 1.5; display: block; margin-top: 4px; }
.lg-foot { font-size: 11px; color: #7B93AC; border-top: 1px solid rgba(255,255,255,.12); padding-top: 15px; }

.lg-form-side { flex: 1; background: #F7F9F8; display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.lg-form { width: 100%; max-width: 440px; }
.lg-welcome { font-size: 11px; font-weight: 600; letter-spacing: 2.4px; color: #687782; text-transform: uppercase; text-align: center; }
.lg-title { font-size: 26px; font-weight: 700; color: #07182B; text-align: center; margin: 12px 0 6px; }
.lg-subtitle { font-size: 13px; color: #687782; text-align: center; margin: 0 0 26px; }
.lg-label { display: block; font-size: 12px; font-weight: 600; color: #0B1C2E; margin-bottom: 6px; }
.lg-field { position: relative; margin-bottom: 15px; }
.lg-field input { width: 100%; min-height: 50px; padding: 12px 46px 12px 44px; border-radius: 11px;
  border: 1px solid #DDE5E8; background: #fff; font-family: inherit; font-size: 13.5px; color: #07182B; }
.lg-field input:focus { outline: none; border-color: #2D8CFF; box-shadow: 0 0 0 3px rgba(45,140,255,.18); }
.lg-field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8FA3B2; pointer-events: none; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none;
  color: #687782; cursor: pointer; padding: 8px; border-radius: 8px; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center; }
.lg-eye:focus-visible { outline: 2px solid #2D8CFF; outline-offset: 1px; }
.lg-submit { width: 100%; min-height: 52px; border-radius: 11px; border: none; background: #0B1C2E; color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 9px; transition: background .15s; }
.lg-submit:hover { background: #12304C; }
.lg-submit:disabled { opacity: .72; cursor: progress; }
.lg-submit:focus-visible { outline: 3px solid #2D8CFF; outline-offset: 2px; }
.lg-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: lgspin .7s linear infinite; display: none; }
@keyframes lgspin { to { transform: rotate(360deg); } }
.lg-error { background: #FBEAE7; border: 1px solid #D94A4A; color: #9A2F22; border-radius: 10px;
  padding: 11px 13px; font-size: 12.5px; margin-bottom: 16px; line-height: 1.6; }
.lg-help { font-size: 11.5px; color: #687782; text-align: center; line-height: 1.7; }
.lg-help a { color: #2D8CFF; }
.lg-sep { display: flex; align-items: center; gap: 11px; color: #8FA3B2; font-size: 11.5px; margin: 18px 0; }
.lg-sep::before, .lg-sep::after { content: ''; flex: 1; height: 1px; background: #DDE5E8; }

@media (max-width: 1023px) { .lg-visual { flex-basis: 45%; padding: 32px; } .lg-head { font-size: 30px; } .lg-props { display: none; } }
@media (max-width: 767px) {
  .lg-shell { flex-direction: column; min-height: 100vh; }
  .lg-visual { flex: none; min-height: 210px; padding: 22px 24px; justify-content: center; gap: 14px;
    background-image: linear-gradient(170deg, rgba(7,24,43,0.95) 0%, rgba(7,24,43,0.8) 100%), url('img/login-globe-sm.webp');
    background-position: 65% center; }
  .lg-head { font-size: 21px; margin: 10px 0 0; }
  .lg-eyebrow, .lg-copy, .lg-foot { display: none; }
  .lg-form-side { padding: 24px; align-items: flex-start; }
  .lg-submit { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .lg-spin { animation: none; } .lg-submit { transition: none; } }
/* Nama divisi di bawah baris PT PLN pada panel kiri login. */
.lg-foot-div { display: inline-block; margin-top: 5px; letter-spacing: .5px;
  text-transform: uppercase; font-size: 10px; color: #9FB8CE; line-height: 1.5; }
@media (max-width: 767px) { .lg-foot-div { display: none; } }

/* ---- Mode hanya-baca ---------------------------------------------------- */
.ro-banner { background: #FDF7EC; border: 1px solid var(--amber); border-radius: 10px;
  padding: 11px 14px; font-size: 12px; line-height: 1.65; margin-bottom: 14px; color: var(--ink); }

/* Hanya form POST yang dimatikan. Form method="get" — pemilih tahun, saringan
   bidang, pencarian — HARUS tetap jalan, karena membaca data justru inti dari
   akun ini. Selektor atribut membedakan keduanya dengan tepat. */
.ro-mode form[method="post"] { opacity: .45; pointer-events: none; user-select: none; }
.ro-mode form[method="post"]::after { content: 'Tidak tersedia pada mode hanya-baca'; display: block;
  font-size: 10.5px; color: var(--amber); font-weight: 600; margin-top: 6px; }
/* Tautan yang membuka formulir pembuatan data juga disembunyikan, supaya
   pengguna tidak dibawa ke halaman yang tidak bisa ia selesaikan. */
.ro-mode a[href^="submit_review.php"],
.ro-mode a[href^="news_form.php"],
.ro-mode a[href^="tutup_program.php"],
.ro-mode a[href^="isi_tanggal_program.php"],
.ro-mode a[href*="work_item_edit.php"] { display: none !important; }

/* ---- Pusat notifikasi --------------------------------------------------- */
.notif-menu { position: relative; }
.notif-menu > summary { list-style: none; cursor: pointer; }
.notif-menu > summary::-webkit-details-marker { display: none; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 336px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16,28,44,0.16); z-index: 60; overflow: hidden; max-height: 68vh; overflow-y: auto; }
.notif-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px;
  font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--border); }
.notif-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px;
  border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--canvas); }
.notif-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; }
/* Di ponsel, panel notifikasi dipasang RELATIF LAYAR, bukan relatif lonceng.
   Lonceng berada di kiri baris atas, jadi panel yang menempel padanya
   membentang ke kiri dan terpotong tepi layar — persis yang terjadi pada
   mode potret. Dengan position:fixed, panel selalu berada di dalam layar
   berapa pun letak loncengnya. */
@media (max-width: 700px) {
  .notif-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 64px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 150;
  }
}


/* Blok sisa hari pada kartu Program.
   Selalu di ujung kanan baris judul, tidak pernah turun sendirian — angka
   yang turun ke baris berikutnya terbaca seperti bagian dari isi kartu,
   bukan sebagai ringkasan barisnya. */
.sisa-hari { order: 99; }
@media (max-width: 900px) {
  /* Di layar sempit ia tetap di kanan, hanya ikut baris manapun yang muat. */
  .sisa-hari { border-left: none; padding-left: 0; }
}


/* ---- Our Products (kartu ringkas di Dashboard) -------------------------- */
.produk-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.produk-kpi { display: block; text-align: center; padding: 13px 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: inherit; transition: border-color .14s, transform .14s; }
.produk-kpi:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
@media (max-width: 900px) { .produk-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .produk-row { grid-template-columns: repeat(2, 1fr); } }


/* ---- Kartu KPI sebagai penyaring (halaman Program & Pekerjaan) ---------- */
/* Menggantikan baris tab: kartu dan tab dulu menampilkan angka yang sama,
   dan selama keduanya ada, keduanya bisa menyimpang. */
.kpi-filter { text-align: left; cursor: pointer; font: inherit; width: 100%;
  border: 1px solid var(--border); transition: border-color .14s, box-shadow .14s, transform .14s; }
.kpi-filter:hover { border-color: var(--brand-blue); transform: translateY(-2px); }
.kpi-filter.aktif { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.kpi-filter.aktif::after { content: 'sedang ditampilkan'; display: block; font-size: 9px;
  color: var(--navy); font-weight: 700; margin-top: 4px; letter-spacing: .3px; }
@media (max-width: 1100px) { .kpi-pekerjaan { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px)  { .kpi-pekerjaan { grid-template-columns: repeat(2, 1fr) !important; } }


/* ---- Mode Layar Penuh --------------------------------------------------- */
/* Menyembunyikan menu samping supaya isi memakai seluruh lebar layar. Layar
   penuh peramban saja tidak cukup: sidebar tetap memakan seperlima lebar,
   dan justru itu yang paling terasa saat menampilkan tabel di ruang rapat. */
body.layar-penuh .sidebar { display: none !important; }
body.layar-penuh .main { margin-left: 0 !important; width: 100% !important; max-width: none !important; }
body.layar-penuh .main > .topbar { border-bottom: 1px solid var(--border); }
/* Isi diberi ruang lebih lega karena tidak ada lagi menu di kiri. */
body.layar-penuh .main { padding-left: 26px; padding-right: 26px; }

@media print { #btn-layar { display: none !important; } }
