/* Font IBM Plex disimpan SENDIRI di assets/fonts (lisensi OFL, lihat OFL.txt).
   Sebelumnya dimuat lewat @import dari Google Fonts — pelanggaran aturan
   tanpa-CDN, dan di jaringan kantor yang memblokirnya seluruh aplikasi jatuh
   ke huruf cadangan (monospace menjadi huruf mesin ketik). Bobotnya sama
   persis dengan yang dulu diminta dari Google: Sans 400-700, Mono 500 & 600. */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  --canvas: #EEF1EF;
  --surface: #FFFFFF;
  --border: #DCE2DF;
  --navy: #101C2C;
  --tree-pekerjaan: #1E4D6B;
  --tree-aktivitas: #4A7A5E;
  --class-grc: #2C5F8A;
  --class-ews: #7B4FA6;
  --class-tematik: #1F7A6C;
  --ink: #15212B;
  --muted: #5C6B72;
  --amber: #C97A2B;
  --red: #B8503D;
  --green: #3F7F5C;
  /* Sidebar palette — deeper blue than the old flat navy, with a bright
     accent for the active item. Kept separate from --navy so content areas
     on every other page stay exactly as they were. */
  --side-top: #0B2C4E;
  --side-bottom: #061A31;
  --side-text: #A9BED4;
  --side-text-dim: #6E86A0;
  --side-line: #143654;
  --brand-blue: #2E7FD4;
  /* Design system halaman Tentang/Profil DIV MRS */
  --about-navy: #07182B;
  --about-cyan: #18C8F4;
  --about-bg: #F6F9FC;
  --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(--brand-blue); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(46,127,212,0.35); }
.nav-item.active:hover { background: var(--brand-blue); }
.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-kanan { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar-tanggal { font-size: 12px; color: var(--muted); }
/* Tombol ☰ dan logo hanya untuk ponsel; di desktop sidebar sudah memuatnya. */
.topbar-menu, .topbar-brand { display: none; }
/* Dashboard menulis tanggal di bawah judulnya sendiri; jangan dua kali. */
.hal-dashboard .topbar-tanggal { display: none; }
/* Judul halaman dengan tombol aksi di kanannya (lihat parameter $aksi
   render_header). Halaman tanpa aksi tidak memakai kelas ini sama sekali. */
.judul-baris { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.judul-teks { min-width: 0; }
.judul-aksi { flex-shrink: 0; padding-top: 2px; }
.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 */
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  /* Bilah atas MENEMPEL dan berlatar. Tombol ☰ tinggal di dalamnya — dulu ia
     melayang sendiri (position:fixed tanpa latar) dan menimpa isi halaman
     setiap kali digulir. z-index di bawah sidebar (50) dan tirainya (45),
     supaya laci menu tetap menutupi bilah ini saat dibuka. */
  .topbar {
    position: sticky; top: 0; z-index: 40;
    margin: 0 -14px 16px; padding: 6px 12px 6px 6px;
    background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 8px rgba(16,28,44,0.06);
    flex-wrap: nowrap !important; gap: 6px;
  }
  .topbar-menu {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: none; border-radius: 10px;
    background: none; color: var(--navy); cursor: pointer; flex-shrink: 0;
  }
  .topbar-menu:active { background: var(--canvas); }
  .topbar-brand {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none;
  }
  .topbar-brand img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
  .topbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Yang tidak muat di ponsel: tanggal, tombol mode fokus (tidak berguna
     tanpa sidebar tetap), petunjuk F11, dan nama+email di samping foto.
     Nama tetap bisa dilihat di Profil Saya lewat menu foto. */
  .topbar-tanggal, #btn-layar, #hint-f11, .topbar-user-teks { display: none !important; }
  .topbar-kanan { gap: 8px; }
  .topbar .bell { width: 40px; height: 40px; }
  .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: 0 14px 18px; width: 100%; box-sizing: border-box; }
  .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%; }
}

/* ---- Sisa kelas Dashboard lama yang masih dipakai halaman lain ---------
   Kartu KPI, sapaan, dan panel Dashboard lama dihapus di #373 (Dashboard kini
   memakai kelas .dsb). .dash-grid dipakai logharian.php; .dash-link dipakai
   kalender.php dan budaya.php; .bell dipakai bilah atas. */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-link { font-size: 11.5px; color: var(--brand-blue); text-decoration: none; font-weight: 600; white-space: nowrap; }

.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) {
  .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; }

/* ---- 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; }
}


/* ---- Baris penyaring halaman Program & Pekerjaan ------------------------
   Satu baris di desktop: dua dropdown dengan lebar terbatas, pencarian
   mengisi sisa ruang di kanan. Dropdown boleh menyempit (min-width:0) —
   teksnya terpotong di kotak tertutup saja; daftar pilihannya tetap utuh.
   Di layar sempit pencarian naik ke baris sendiri selebar layar. */
.saring-baris { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.saring-baris select { flex: 0 1 240px; min-width: 0; text-overflow: ellipsis;
  padding: 8px 10px; border-radius: 7px; border: 1px solid var(--border); font-size: 12.5px; background: #fff; font-family: inherit; }
.saring-baris input[type="search"] { order: 9; flex: 1 1 220px; min-width: 0; max-width: 360px; margin-left: auto;
  padding: 8px 11px; border-radius: 7px; border: 1px solid var(--border); font-size: 12.5px; font-family: inherit; }
@media (max-width: 700px) {
  .saring-baris { flex-wrap: wrap; }
  .saring-baris input[type="search"] { order: -1; flex-basis: 100%; max-width: none; margin-left: 0; font-size: 16px; min-height: 44px; }
  .saring-baris select { flex: 1 1 0; font-size: 16px; min-height: 44px; }
}

/* ---- 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; } }

/* ---- Tombol ⊕ "Buat baru" (private/tombol_buat.php) ---------------------
   Dipakai Dashboard dan Program & Pekerjaan, di kanan judul halaman. Sengaja
   TIDAK melayang di pojok bawah: bilah alamat Safari di iPhone kini
   mengambang di bagian bawah layar dan akan menutupinya. */
.tombol-buat-wadah { position: relative; }
.tombol-buat-wadah > summary { list-style: none; }
.tombol-buat-wadah > summary::-webkit-details-marker { display: none; }
.tombol-buat { width: 44px; height: 44px; border-radius: 999px; border: none; background: #0F7C80; color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px rgba(15,124,128,0.30); }
.tombol-buat:hover { background: #0B6568; }
.tombol-buat svg { transition: transform 0.15s; }
.tombol-buat-wadah[open] > .tombol-buat svg { transform: rotate(45deg); }
.tombol-buat-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(16,28,44,0.16); }
.tombol-buat-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink); text-decoration: none; }
.tombol-buat-menu a:hover { background: var(--canvas); }
.tombol-buat-garis { height: 1px; background: var(--border); margin: 4px 0; }
@media (prefers-reduced-motion: reduce) { .tombol-buat svg { transition: none; } }

/* ---- Dashboard — tampilan baru (private/dashboard_tampilan.php) ---------
   Semua aturan di bawah kelas .dsb supaya halaman lain tidak ikut berubah.
   Angka memakai huruf biasa dengan tabular-nums (lebar digit sama), bukan
   monospace. Tidak ada grid-template-columns inline di templatnya: aturan
   penampung ponsel di atas akan memaksanya satu kolom. */
.dsb { --dsb-navy: #0B2C4E; --dsb-teal: #0F7C80; --dsb-aksi: #1F6FD1; --dsb-radius: 12px;
  --dsb-bayang: 0 1px 3px rgba(16,28,44,0.05); }
.dsb .dsb-merah { color: var(--red); }
.dsb .dsb-kuning { color: var(--amber); }
.dsb .dsb-hijau { color: var(--green); }
.dsb .dsb-biru { color: var(--brand-blue); }
.dsb-kecil { font-size: 11.5px; }
.dsb-label-kecil { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--dsb-aksi); }

.dsb-ut { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 14px; border-radius: var(--dsb-radius);
  background: #FDF7EC; border: 1px solid #F0D9B5; text-decoration: none; color: var(--ink); font-size: 12.5px; line-height: 1.6; }
.dsb-ut-isi { flex: 1; min-width: 0; }
.dsb-ut .dsb-merah, .dsb-ut .dsb-kuning { font-weight: 700; }

.dsb-jalan { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px;
  border-radius: var(--dsb-radius); background: #EAF2FE; border: 1px solid #B9D5FB; }
.dsb-jalan-titik { width: 10px; height: 10px; border-radius: 999px; background: #2D8CFF; flex-shrink: 0; animation: denyut 1.6s ease-in-out infinite; }
.dsb-jalan-isi { flex: 1; min-width: 200px; }
.dsb-jalan-judul { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--dsb-navy); }
.dsb-jalan-waktu { text-align: right; flex-shrink: 0; }
.dsb-jalan-timer { display: block; font-size: 20px; font-weight: 700; color: var(--dsb-aksi); font-variant-numeric: tabular-nums; }
.dsb-jalan-tombol { flex-shrink: 0; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .dsb-jalan-titik { animation: none; } }

.dsb-fokus { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 12px 12px 16px;
  border-radius: var(--dsb-radius); background: var(--dsb-navy); color: #fff; }
.dsb-fokus-ikon { width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,0.10); color: #5ED3D0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dsb-fokus-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dsb-fokus-label { font-size: 11.5px; color: #A9BED4; }
.dsb-fokus-utama { font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.35; }
.dsb-fokus-sub { font-size: 12.5px; color: #C8D7E6; text-decoration: none; }
.dsb-fokus-utama:hover, .dsb-fokus-sub:hover { text-decoration: underline; }
.dsb-fokus-panah { width: 44px; height: 44px; border-radius: 10px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dsb-fokus-panah:hover { background: rgba(255,255,255,0.08); }

.dsb-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dsb-kpi-kartu { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 14px; border-radius: var(--dsb-radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--dsb-bayang); text-decoration: none; color: inherit; }
.dsb-kpi-kartu:hover { border-color: var(--brand-blue); }
.dsb-kpi-ikon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dsb-kpi-teks { min-width: 0; display: flex; flex-direction: column; }
.dsb-kpi-angka { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--dsb-navy); font-variant-numeric: tabular-nums; }
.dsb-kpi-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dsb-kpi-pecah { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; font-weight: 600; }
.dsb-kpi-tambahan { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
/* Chip: bingkai tipis membulat supaya jelas bisa diketuk; tinggi 36px di
   desktop, 40px di HP (lihat blok HP). */
.dsb-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--dsb-bayang);
  font-size: 12.5px; color: var(--muted); text-decoration: none; }
.dsb-chip strong { color: var(--dsb-navy); font-variant-numeric: tabular-nums; }
.dsb-chip:hover { border-color: var(--brand-blue); color: var(--dsb-aksi); }
.dsb-chip-titik { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }

.dsb-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dsb-kolom { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dsb-panel { min-width: 0; padding: 16px 18px; border-radius: var(--dsb-radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--dsb-bayang); }
.dsb-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dsb-judul { margin: 0; font-size: 15px; font-weight: 700; color: var(--dsb-navy); }
.dsb-tautan { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 12.5px; font-weight: 600; color: var(--dsb-aksi); text-decoration: none; }
.dsb-tautan:hover { text-decoration: underline; }
.dsb-tautan-bawah { margin-top: 6px; }
.dsb-catatan { font-size: 11px; line-height: 1.55; margin-top: 10px; }
.dsb-kosong { font-size: 12.5px; padding: 6px 0; }

.dsb-sla { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 10px;
  background: #F7F9FB; border: 1px solid var(--border); text-decoration: none; color: var(--ink); min-height: 44px; }
.dsb-sla:hover { border-color: var(--brand-blue); }
.dsb-sla-label { flex: 1; font-size: 12px; color: var(--muted); }
.dsb-sla-angka { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dsb-sla-teks { font-size: 12.5px; }
.dsb-sla-panah { display: flex; color: var(--muted); }
.dsb-produk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dsb-produk-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 44px;
  padding: 8px 6px; border-left: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.dsb-produk-item:first-child { border-left: none; }
.dsb-produk-tanda { width: 18px; height: 3px; border-radius: 2px; margin-bottom: 6px; }
.dsb-produk-angka { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dsb-produk-nama { font-size: 12px; font-weight: 600; margin-top: 2px; }
.dsb-produk-item:hover .dsb-produk-nama { color: var(--dsb-aksi); }

/* Tab bersegmen. Tombolnya tetap .tier-tab-btn dengan id dan onclick lama,
   hanya penampilannya yang ditimpa di dalam .dsb. */
.dsb-tab { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 12px; padding: 3px; border-radius: 10px; background: #EEF2F5; }
.dsb .dsb-tab .tier-tab-btn { flex: 1 1 auto; min-height: 36px; padding: 7px 12px; border: none; border-radius: 8px;
  background: none; color: var(--muted); font-size: 12.5px; font-family: inherit; }
.dsb .dsb-tab .tier-tab-btn.active { background: var(--dsb-teal); color: #fff; box-shadow: 0 1px 3px rgba(15,124,128,0.30); }
.dsb-tab-kecil { margin-bottom: 0; }
.dsb-pilih { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dsb-pilih-label { font-size: 12.5px; color: var(--muted); }
.dsb-pilih select { min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B72' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--dsb-navy); cursor: pointer; }
.dsb-pilih select:focus-visible { outline: 2px solid var(--dsb-teal); outline-offset: 1px; }
.dsb .dsb-tab-kecil .tier-tab-btn { min-width: 64px; }

.dsb-prog { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.dsb-prog:first-child { border-top: none; }
.dsb-prog-utama { flex: 1; min-width: 0; }
.dsb-prog-judul { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.dsb-prog-judul:hover { color: var(--dsb-aksi); }
.dsb-prog-angka { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; gap: 3px; }
.dsb-prog-angka .progress-bar { display: block; margin-top: 0; }
.dsb-prog-angka .progress-fill { display: block; }
.dsb-prog-pct { font-size: 12px; font-weight: 700; text-align: right; color: var(--dsb-aksi); font-variant-numeric: tabular-nums; }
.dsb-prog-titik { display: flex; gap: 7px; justify-content: flex-end; font-size: 11px; font-variant-numeric: tabular-nums; }
.dsb-prog-lini { flex-shrink: 0; padding: 6px 10px; font-size: 11px; white-space: nowrap; }

.dsb-bilah { display: flex; height: 8px; margin: 2px 0 12px; border-radius: 4px; overflow: hidden; background: var(--border); }
.dsb-rekap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* background !important: showRekapGroup() (warisan tampilan sebelum #372)
   menulis latar abu-abu lewat style inline. Di sini baris terpilih cukup
   ditandai garis tepinya, yang tetap ditulis fungsi itu. */
.dsb-rekap-baris { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "titik nama angka" "titik meta angka";
  column-gap: 9px; align-items: center; min-height: 44px; padding: 9px 12px; border-radius: 10px; text-align: left;
  background: #fff !important; border: 1px solid var(--border); color: var(--ink); font-family: inherit; cursor: pointer; }
.dsb-rekap-baris:hover { border-color: var(--brand-blue); }
.dsb-rekap-titik { grid-area: titik; width: 9px; height: 9px; border-radius: 999px; }
.dsb-rekap-nama { grid-area: nama; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsb-rekap-meta { grid-area: meta; font-size: 11px; color: var(--muted); }
.dsb-rekap-angka { grid-area: angka; font-size: 18px; font-weight: 700; color: var(--dsb-navy); font-variant-numeric: tabular-nums; }
.dsb-rinci { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.dsb-rinci-judul { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.dsb-rinci-baris { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.dsb-rinci-baris > a:first-child { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.dsb-rinci-pct { width: 40px; text-align: right; font-size: 11px; color: var(--dsb-aksi); font-variant-numeric: tabular-nums; }

.dsb-hari { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.dsb-hari:first-child { border-top: none; }
.dsb-hari-tgl { width: 56px; flex-shrink: 0; align-self: flex-start; display: flex; flex-direction: column; padding: 6px 4px;
  border-radius: 10px; background: #F1F4F7; text-align: center; }
.dsb-hari-ini { background: #E3F1F1; }
.dsb-hari-nama { font-size: 11px; font-weight: 700; color: var(--dsb-navy); }
.dsb-hari-ini .dsb-hari-nama { color: var(--dsb-teal); }
.dsb-hari-angka { font-size: 11px; color: var(--muted); }
.dsb-hari-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.dsb-acara { display: block; padding-left: 9px; border-left: 3px solid var(--brand-blue); text-decoration: none; color: var(--ink); }
.dsb-acara-tenggat { border-left-color: var(--red); }
.dsb-acara-jadwal { border-left-color: var(--amber); }
/* Judul panjang diringkas dua baris; teks lengkapnya di atribut title dan
   di halaman tujuan tautannya. */
.dsb-acara-judul { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.35; }
.dsb-acara:hover .dsb-acara-judul { color: var(--dsb-aksi); }
.dsb-acara-meta { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }

.dsb-bidang { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dsb-bidang-nama { width: 52px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; }
.dsb-bidang-bilah { flex: 1; height: 8px; border-radius: 4px; overflow: hidden; background: #EEF2F5; }
.dsb-bidang-bilah span { display: block; height: 100%; border-radius: 4px; background: var(--dsb-teal); }
.dsb-bidang-angka { width: 30px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dsb-nilai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.dsb-nilai > div { display: flex; flex-direction: column; padding: 2px 4px; border-left: 1px solid var(--border); }
.dsb-nilai > div:first-child { border-left: none; }
.dsb-nilai-angka { font-size: 22px; font-weight: 700; color: var(--dsb-navy); font-variant-numeric: tabular-nums; }
.dsb-nilai-label { font-size: 11.5px; color: var(--muted); }
.dsb-nilai-bilah { margin-top: 12px; }

@media (max-width: 1100px) {
  .dsb-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* HP: satu kolom. Kedua kolom "dibuka" dengan display:contents sehingga
     panel-panelnya bisa diurutkan ulang dengan `order` sesuai urutan yang
     diminta untuk HP, tanpa menulis HTML kedua. */
  /* align-items: stretch WAJIB. Aturan desktop di atas memakai
     align-items:start (supaya dua kolom tidak dipaksa sama tinggi); tanpa
     penimpaan ini setiap panel di HP menyusut selebar isinya dan
     menyisakan ruang kosong di kanan — terjadi di #372/#373, terlihat di
     tangkapan layar 20 September 2026. */
  .dsb-grid { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .dsb-kolom { display: contents; }
  .dsb-o-hasil  { order: 1; }
  .dsb-o-bidang { order: 2; }
  .dsb-o-nilai  { order: 3; }
  .dsb-o-agenda { order: 4; }
  .dsb-o-porto  { order: 5; }
  .dsb-panel { padding: 14px; }
  .dsb-kpi { gap: 10px; }
  .dsb-kpi-kartu { padding: 12px; gap: 10px; }
  .dsb-kpi-ikon { width: 36px; height: 36px; }
  .dsb-kpi-angka { font-size: 24px; }
  .dsb-kpi-tambahan { margin-bottom: 14px; }
  .dsb-chip { min-height: 40px; }
  .dsb-fokus-utama { font-size: 15px; }
  /* Hasil kerja: lima kotak berjajar menjadi daftar baris dengan isi dan
     urutan yang sama. */
  .dsb-produk { grid-template-columns: minmax(0, 1fr); }
  .dsb-produk-item { flex-direction: row; align-items: center; gap: 10px; padding: 10px 2px; text-align: left;
    border-left: none; border-top: 1px solid var(--border); }
  .dsb-produk-item:first-child { border-top: none; }
  .dsb-produk-tanda { width: 4px; height: 22px; margin: 0; order: 0; }
  .dsb-produk-nama { order: 1; flex: 1; margin: 0; font-size: 13px; }
  .dsb-produk-angka { order: 2; font-size: 15px; }
  .dsb-rekap { grid-template-columns: minmax(0, 1fr); }
  .dsb-prog { flex-wrap: wrap; row-gap: 8px; }
  .dsb-prog-utama { flex-basis: 100%; }
  .dsb-prog-angka { flex: 1; width: auto; }
  .judul-aksi { padding-top: 0; }
  /* 16px: iPhone memperbesar halaman kalau huruf isian di bawah 16px. */
  .dsb-pilih select { flex: 1; min-height: 44px; font-size: 16px; }
}
@media (max-width: 480px) {
  /* Kartu KPI di HP: ikon dan angka SEBARIS di atas, label dan pecahan di
     bawahnya selebar kartu. Sebelumnya (#372) di bawah 380px kartu disusun
     tegak — ikon, angka, label bertumpuk — supaya label tidak terlipat,
     tetapi kartunya jadi terlalu tinggi (iPhone 375px, usul Emir 20 Sep).
     Hanya CSS: .dsb-kpi-teks "dibuka" dengan display:contents supaya angka,
     label, dan pecahan bisa ditempatkan langsung di grid kartu. */
  .dsb-kpi-kartu { display: grid; grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "ikon angka" "label label" "pecah pecah";
    column-gap: 10px; row-gap: 6px; align-items: center; align-content: start; padding: 12px; }
  /* align-content: start — kartu ikut ditarik setinggi kartu tetangganya
     (Perlu Perhatian punya baris pecahan), dan tanpa ini ruang lebihnya
     dibagi ke sela baris sehingga label "Lewat Target" turun (tangkapan
     layar 20 Sep, #377). */
  .dsb-kpi-teks { display: contents; }
  .dsb-kpi-ikon { grid-area: ikon; width: 34px; height: 34px; border-radius: 9px; }
  .dsb-kpi-angka { grid-area: angka; }
  .dsb-kpi-label { grid-area: label; margin-top: 0; line-height: 1.3; }
  .dsb-kpi-pecah { grid-area: pecah; margin-top: 0; }
}
@media (max-width: 380px) {
  .dsb-sla-label { display: none; }
}

/* ---- Form Buat Program / Pekerjaan (submit_review.php, #378) -------------
   Satu kolom berbagian. Semua di bawah .fb supaya form lain tidak ikut
   berubah. Isian diberi rupa seragam (latar putih, tinggi sama); dropdown
   tidak lagi abu-abu bawaan iPhone. */
.fb { max-width: 820px; }
.fb-kartu { padding: 18px 22px 22px; border-radius: 12px; }
.fb-tabs { margin-bottom: 6px; }
.fb-form { display: flex; flex-direction: column; gap: 6px; }
.fb-bagian { display: flex; flex-direction: column; gap: 14px; padding: 16px 0 18px; border-bottom: 1px solid var(--border); }
.fb-judul { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #0F7C80; }
.fb-isian { display: flex; flex-direction: column; min-width: 0; }
.fb-isian > label { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.fb-wajib { color: var(--red); }
.fb-opsional { font-weight: 400; color: var(--muted); }
.fb-bantu { display: block; font-size: 11.5px; line-height: 1.55; color: var(--muted); margin-top: 5px; }
.fb-bantu-atas { margin: 0 0 8px; }
.fb-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.fb input[type="text"], .fb input[type="url"], .fb input[type="number"], .fb input[type="date"],
.fb select, .fb textarea {
  width: 100%; min-width: 0; min-height: 40px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  background-color: #fff; color: var(--ink); font: inherit; font-size: 13px; }
.fb textarea { line-height: 1.5; resize: vertical; }
.fb select { -webkit-appearance: none; appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6B72' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
/* Safari iOS memberi <input type=date> lebar bawaan yang mengabaikan
   width:100%, sehingga kotaknya menjorok keluar kartu (tangkapan layar
   20 Sep). Mematikan tampilan bawaannya membuat lebarnya patuh. */
.fb input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.fb input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.fb input:focus-visible, .fb select:focus-visible, .fb textarea:focus-visible { outline: 2px solid #0F7C80; outline-offset: 1px; border-color: #0F7C80; }
.fb-cari { margin-bottom: 8px; }

.fb-sorot { background: #F4F7F8; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.fb-sorot-judul { font-size: 13px; font-weight: 700; }
.fb-centang { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.fb-centang input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: #0F7C80; }
.fb-centang > span { flex: 1; min-width: 0; }
.fb-centang-judul { display: block; font-size: 13px; font-weight: 700; }
.fb-centang .fb-bantu { margin-top: 3px; }
.fb #pra-wrap label { min-height: 32px; }
.fb #pra-wrap input[type="radio"] { width: 18px; height: 18px; accent-color: #0F7C80; flex-shrink: 0; }

.fb-jadwal { margin-top: -4px; font-size: 12.5px; }
.fb-jadwal .fb-bantu { display: inline; margin: 0; }
.fb-peringatan { margin-top: 8px; padding: 9px 11px; border-radius: 8px; background: #FDFAF4; border: 1px solid var(--amber); font-size: 12px; line-height: 1.55; }

.fb-tambahan { padding: 14px 0 16px; border-bottom: 1px solid var(--border); }
.fb-tambahan > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); min-height: 32px; display: flex; align-items: center; gap: 6px; list-style: none; }
.fb-tambahan > summary::-webkit-details-marker { display: none; }
.fb-tambahan > summary::before { content: '›'; font-size: 18px; color: var(--muted); transition: transform 0.15s; width: 14px; }
.fb-tambahan[open] > summary::before { transform: rotate(90deg); }
.fb-tambahan[open] > summary { margin-bottom: 12px; }
.fb-tambahan > .fb-isian, .fb-tambahan > .fb-dua { margin-bottom: 14px; }

.fb-status { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.fb-status:empty { display: none; }
.fb-status-kurang { background: #FDF7EC; color: #8A5A1C; }
.fb-status-siap { background: #E6F2EC; color: var(--green); }
.fb-tombol { display: flex; gap: 10px; margin-top: 10px; }
.fb-tombol .btn, .fb-tombol .btn-outline { min-height: 44px; min-width: 110px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; }

@media (max-width: 600px) {
  .fb-kartu { padding: 14px 16px 18px; }
  .fb-dua { grid-template-columns: minmax(0, 1fr); }
  /* 16px: di bawah itu iPhone memperbesar halaman saat isian disentuh. */
  .fb input[type="text"], .fb input[type="url"], .fb input[type="number"], .fb input[type="date"],
  .fb select, .fb textarea { font-size: 16px; min-height: 44px; }
  .fb-tombol .btn, .fb-tombol .btn-outline { flex: 1; }
}
