/* ---- View_Dashboard.html ---- */
  .beranda-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 24px; min-height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
    transition: background .6s ease, color .6s ease; border: 1px solid rgba(15, 23, 42, .06); }
  @media (min-width: 640px) { .beranda-hero { flex-direction: row; text-align: left; gap: 36px; padding: 36px 44px; min-height: 280px; } }
  .beranda-hero[data-waktu="pagi"]  { background: linear-gradient(160deg, #e0f2fe 0%, #fef9c3 100%); color: #0f172a; }
  .beranda-hero[data-waktu="siang"] { background: linear-gradient(160deg, #7dd3fc 0%, #e0f2fe 100%); color: #0f172a; }
  .beranda-hero[data-waktu="sore"]  { background: linear-gradient(170deg, #fdba74 0%, #fb7185 55%, #a855f7 100%); color: #fff; }
  .beranda-hero[data-waktu="malam"] { background: linear-gradient(170deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%); color: #fff; }
  .beranda-ilustrasi { width: 168px; height: 168px; flex-shrink: 0; }
  @media (min-width: 640px) { .beranda-ilustrasi { width: 208px; height: 208px; } }
  .beranda-ilustrasi svg { width: 100%; height: 100%; display: block; overflow: visible; }
  .beranda-teks { min-width: 0; }
  .beranda-tanggal { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.3; font-weight: 800; opacity: .85; }
  @media (min-width: 640px) { .beranda-tanggal { font-size: 20px; } }
  .beranda-sapa { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; overflow-wrap: anywhere; }
  @media (min-width: 640px) { .beranda-sapa { font-size: 48px; } }
  .beranda-sppg { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .55); color: rgb(var(--tl-900,19 78 74)); max-width: 100%; }
  .beranda-hero[data-waktu="sore"] .beranda-sppg, .beranda-hero[data-waktu="malam"] .beranda-sppg { background: rgba(255, 255, 255, .16); color: #fff; }
  .beranda-sppg span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .beranda-motivasi { display: flex; gap: 14px; align-items: flex-start; }
  .beranda-motivasi-teks { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 18px; line-height: 1.5; font-weight: 700; color: #0f172a; font-style: italic; }
  @media (min-width: 640px) { .beranda-motivasi-teks { font-size: 20px; } }

  /* Gerak gambar */
  .anim-putar { transform-origin: 100px 100px; animation: beranda-putar 40s linear infinite; }
  .anim-angguk { transform-origin: 100px 100px; animation: beranda-angguk 4s ease-in-out infinite; }
  .anim-keringat { animation: beranda-keringat 1.8s ease-in infinite; }
  .anim-keringat.k2 { animation-delay: .9s; }
  .anim-kelip { animation: beranda-kelip 2.4s ease-in-out infinite; }
  .anim-kelip.b { animation-delay: .8s; } .anim-kelip.c { animation-delay: 1.6s; }
  .anim-tenggelam { animation: beranda-tenggelam 6s ease-in-out infinite; }
  @keyframes beranda-putar { to { transform: rotate(360deg); } }
  @keyframes beranda-angguk { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
  @keyframes beranda-keringat { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
  @keyframes beranda-kelip { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes beranda-tenggelam { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
  @media (prefers-reduced-motion: reduce) {
    .anim-putar, .anim-angguk, .anim-keringat, .anim-kelip, .anim-tenggelam { animation: none; }
  }

  /* v15.60: kotak laporan */
  .lap-kartu { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
  @media (min-width: 640px) { .lap-kartu { padding: 22px; } }
  .lap-kepala { display: flex; flex-direction: column; gap: 12px; }
  @media (min-width: 900px) { .lap-kepala { flex-direction: row; align-items: center; justify-content: space-between; } }
  .lap-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 800; color: #0f172a; }
  .lap-sub { font-size: 12.5px; color: #556378; margin-top: 2px; }
  .lap-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: #f1f5f9; width: 100%; }
  @media (min-width: 900px) { .lap-seg { width: 380px; } }
  .lap-seg button { height: 34px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #556378; transition: background .2s ease, color .2s ease; }
  .lap-seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }
  .lap-isi { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
  @media (min-width: 900px) { .lap-isi { grid-template-columns: 340px 1fr; gap: 22px; } }
  .lap-bulan.hidden, .lap-kal.hidden { display: none !important; }
  .lap-kal { border: 1px solid #eef2f6; border-radius: 18px; padding: 12px; }
  .lap-kal-atas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .lap-kal-atas strong { font-size: 13.5px; font-weight: 800; color: #0f172a; }
  .lap-kal-nav { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #475569; }
  .lap-kal-nav:hover { background: #f1f5f9; }
  .lap-kal-nav:disabled { opacity: .3; cursor: default; background: none; }
  .lap-kal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
  .lap-kal-grid .h { font-size: 11px; font-weight: 800; color: #5f6c80; padding: 4px 0; }
  .lap-kal-grid button, .lap-kal-grid span.k { height: 36px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #a3adbb; /* v15.88: nonaktif tapi tetap terbaca */ font-variant-numeric: tabular-nums; position: relative; }
  .lap-kal-grid button { color: #0f172a; }
  .lap-kal-grid button:hover { background: rgb(var(--tl-50,240 253 250)); }
  .lap-kal-grid button.is-ada::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(var(--tl-500,20 184 166)); }
  .lap-kal-grid button.is-rentang { background: rgb(var(--tl-50,240 253 250)); border-radius: 0; }
  .lap-kal-grid button.is-pilih { background: rgb(var(--tl-700,15 118 110)); color: #fff; border-radius: 10px; }
  .lap-kal-grid button.is-pilih::after { background: #fff; }
  .lap-kal-grid button.is-hariini:not(.is-pilih) { box-shadow: inset 0 0 0 1.5px rgb(var(--tl-300,94 234 212)); }
  .lap-kal-ket { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11px; color: #5f6c80; }
  .lap-kal-ket span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tl-500,20 184 166)); margin-right: 6px; vertical-align: 1px; }
  .lap-ringkas { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .lap-periode { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.3; }
  .lap-periode small { display: block; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 12px; font-weight: 600; color: #556378; margin-top: 2px; }
  .lap-angka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  @media (min-width: 640px) { .lap-angka { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .lap-angka div { padding: 10px 12px; border-radius: 14px; background: #f8fafc; min-width: 0; }
  .lap-angka b { display: block; font-size: 15px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lap-angka span { font-size: 11px; color: #556378; }
  .lap-menu { font-size: 12.5px; color: #475569; line-height: 1.5; }
  .lap-kosong { padding: 14px; border-radius: 14px; background: #f8fafc; font-size: 12.5px; color: #556378; }
  .lap-unduh { align-self: flex-start; }
  .lap-unduh:disabled { opacity: .45; cursor: not-allowed; }

  /* v15.65: akun Keluarga & laporan terkunci */
  .kel-banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px;
    background: linear-gradient(120deg, #fdf2f8 0%, #fff1f2 55%, rgb(var(--tl-50,240 253 250)) 100%); border: 1px solid #fbcfe8; animation: kel-masuk .5s cubic-bezier(.34, 1.4, .64, 1); }
  .kel-banner.hidden { display: none !important; }
  .kel-galeri { position: relative; z-index: 1; margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 999px;
    background: #fff; color: #be185d; font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px #fbcfe8; transition: background .15s ease; }
  .kel-galeri:hover { background: #fdf2f8; }
  .kel-galeri .material-symbols-outlined { font-size: 17px; }
  .kel-rumah { width: 46px; height: 38px; flex-shrink: 0; animation: kel-goyang 3s ease-in-out infinite; transform-origin: 50% 90%; }
  .kel-rumah-hati { animation: kel-denyut 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .kel-teks { min-width: 0; position: relative; z-index: 1; }
  .kel-teks strong { display: block; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 14px; font-weight: 800; color: #831843; letter-spacing: -.01em; line-height: 1.25; }
  .kel-teks > span:last-child { display: block; font-size: 11.5px; color: #9d174d; opacity: .85; }
  .kel-hati { position: absolute; inset: 0; pointer-events: none; }
  .kel-hati svg { position: absolute; width: 12px; height: 12px; fill: #f9a8d4; opacity: 0; animation: kel-naik 5s ease-in infinite; }
  .kel-hati .h1 { left: 70%; bottom: -10px; } .kel-hati .h2 { left: 82%; bottom: -10px; width: 11px; animation-delay: 1.4s; }
  .kel-hati .h3 { left: 92%; bottom: -10px; width: 13px; animation-delay: 2.6s; fill: #fda4af; } .kel-hati .h4 { left: 60%; bottom: -10px; width: 10px; animation-delay: 3.6s; fill: rgb(var(--tl-300,94 234 212)); }
  .lap-kunci { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 16px 26px; border-radius: 18px; background: linear-gradient(160deg, #fdf2f8, #fff); border: 1px dashed #f9a8d4; }
  .lap-kunci.hidden, .lap-isi.hidden, .lap-seg.hidden { display: none !important; }
  .lap-kunci-art { width: 150px; height: 118px; }
  .lap-kunci-buku { animation: kel-goyang 3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .lap-kunci-gembok { animation: kel-ayun 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
  .lap-kunci-hati { animation: kel-denyut 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .lap-kunci-teks strong { display: block; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17px; font-weight: 800; color: #be185d; }
  .lap-kunci-teks span { display: block; font-size: 12.5px; color: #9d174d; opacity: .8; margin-top: 4px; max-width: 360px; }
  @keyframes kel-masuk { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes kel-goyang { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
  @keyframes kel-ayun { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
  @keyframes kel-denyut { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
  @keyframes kel-naik { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(-60px) scale(1.1) rotate(15deg); } }
  @media (prefers-reduced-motion: reduce) { .kel-banner, .kel-rumah, .kel-rumah-hati, .kel-hati svg, .lap-kunci-buku, .lap-kunci-gembok, .lap-kunci-hati { animation: none; } }

/* ---- View_StandarGizi.html ---- */
  /* ---------- Standar Gizi & PM (v15.36) ---------- */
  #view-standar-gizi { --sg-sky: #0369a1; --sg-sky-bg: #eff8ff; --sg-sky-line: #cfe8fb;
    --sg-teal: rgb(var(--tl-700,15 118 110)); --sg-teal-bg: #effcf8; --sg-teal-line: #c4efe3;
    --sg-peach: #c2410c; --sg-peach-bg: #fff6ed; --sg-mint: #047857; --sg-mint-bg: #ecfdf5;
    --sg-rose: #e11d48; --sg-radius: 20px; }
  /* v15.55: isian 1 baris sekolah/posyandu */
  .sg-rinci { display: flex; flex-wrap: wrap; gap: 6px; }
  .sg-rinci-item { display: flex; flex-direction: column; gap: 3px; width: 92px; }
  .sg-rinci-item > span { font-size: 11px; font-weight: 700; color: #556378; padding-left: 4px; white-space: nowrap; }
  .sg-rinci-item.is-k > span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; margin-right: 5px; vertical-align: 1px; }
  .sg-rinci-item.is-b > span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tl-500,20 184 166)); margin-right: 5px; vertical-align: 1px; }
  .sg-rinci-item input { width: 100%; height: 36px; text-align: center; font-variant-numeric: tabular-nums; }
  .sg-tipe-pos { height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 800; }
  .sg-sek-head td { padding: 14px 20px 8px; background: #f8fafc; border-top: 1px solid #eef2f6; }
  .sg-sek-judul { font-size: 13px; font-weight: 800; color: #0f172a; margin-right: 10px; }
  .sg-sek-sub { font-size: 11px; color: #5f6c80; }
  .sg-sek-n { float: right; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)); }
  .sg-sek-kosong { padding: 14px 20px; font-size: 12px; color: #5f6c80; }
  .sg-porsi-tutup { height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f8fafc; color: #cbd5e1; font-weight: 800; cursor: default; }
  .sg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

  /* Kartu ringkas */
  .sg-kpis { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; align-items: start; }
  @media (min-width: 640px) { .sg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1280px) { .sg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .sg-kpi { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--sg-radius);
    box-shadow: 0 1px 2px rgb(15 23 42 / .03); transition: box-shadow .2s ease, transform .2s ease; }
  .sg-kpi:hover { box-shadow: 0 12px 28px -18px rgb(15 23 42 / .35); transform: translateY(-1px); }
  .sg-kpi::after { content: ''; position: absolute; right: -36px; top: -36px; width: 112px; height: 112px; border-radius: 50%;
    background: var(--sg-blob, #f1f5f9); opacity: .7; pointer-events: none; }
  .sg-kpi > * { position: relative; z-index: 1; }
  .sg-kpi-pad { padding: 18px 18px 16px; }
  .sg-kpi-top { display: flex; align-items: center; gap: 10px; }
  .sg-kpi-ico { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
  .sg-kpi-ico .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
  .sg-kpi-label { font-size: 12px; font-weight: 700; color: var(--c-muted); }
  .sg-kpi-val { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.02em;
    color: var(--c-ink); margin-top: 12px; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .sg-kpi-val small { font-size: 13px; font-weight: 700; color: var(--c-muted); letter-spacing: 0; }
  .sg-kpi-sub { font-size: 11.5px; color: var(--c-muted); margin-top: 8px; }
  .sg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
  .sg-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
  .sg-pill strong { font-weight: 800; font-variant-numeric: tabular-nums; }
  .sg-pill-k { background: var(--sg-sky-bg); color: var(--sg-sky); }
  .sg-pill-b { background: var(--sg-teal-bg); color: var(--sg-teal); }
  .sg-kpi-btn { width: 100%; text-align: left; display: block; }
  .sg-edit-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--sg-teal); }
  .sg-edit-hint .material-symbols-outlined { font-size: 15px; }
  .sg-tarif { border-top: 1px dashed var(--c-line); background: #fbfcfd; padding: 12px 18px 16px; }
  .sg-buffer { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .sg-buffer-box { position: relative; width: 104px; }
  .sg-buffer-box input { width: 100%; height: 42px; padding: 0 30px 0 12px; border-radius: 14px; border: 1px solid var(--c-line);
    background: #fff; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .sg-buffer-box input:focus { outline: none; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .sg-buffer-box span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; color: #5f6c80; }

  /* Kartu bagian */
  .sg-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--sg-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }
  .sg-card-head { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
  @media (min-width: 768px) { .sg-card-head { flex-direction: row; align-items: center; justify-content: space-between; } }
  .sg-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .sg-title h2 { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15.5px; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
  .sg-title p { font-size: 12px; color: var(--c-muted); margin-top: 1px; }
  .sg-count { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 11.5px; font-weight: 700; }

  /* Tabel sekolah */
  .sg-table { width: 100%; font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
  .sg-table thead th { font-size: 11px; font-weight: 700; color: #556378; text-align: left; padding: 10px 8px; background: #f8fafc;
    border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); white-space: nowrap; }
  .sg-table thead th:first-child { padding-left: 20px; }
  .sg-table thead th:last-child { padding-right: 20px; }
  .sg-table thead th.sg-th-k { color: var(--sg-sky); }
  .sg-table thead th.sg-th-b { color: var(--sg-teal); }
  .sg-table tbody tr { transition: background .15s ease; }
  .sg-table tbody tr:hover { background: #fafcfd; }
  .sg-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  .sg-table tbody tr:last-child td { border-bottom: 0; }
  .sg-table .field { border-radius: 12px; background: #f8fafc; border-color: transparent; }
  .sg-table .field:hover { background: #f1f5f9; }
  .sg-table .field:focus { background: #fff; border-color: rgb(var(--tl-300,94 234 212)); }
  .sg-table .cell-input { border-radius: 12px; font-weight: 700; }
  .sg-table .cell-input[data-fk$="-kecil"] { background-color: var(--sg-sky-bg); box-shadow: inset 0 0 0 1px #d4e9fa; color: #075985; }
  .sg-table .cell-input[data-fk$="-besar"] { background-color: var(--sg-teal-bg); box-shadow: inset 0 0 0 1px #cdeee4; color: rgb(var(--tl-800,17 94 89)); }
  .sg-table .cell-input:hover { box-shadow: inset 0 0 0 1px #94a3b8; }
  .sg-table .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); outline: none; }
  .sg-table .btn-sm { height: 32px; border-radius: 10px; }
  .sg-table tfoot td { background: #f8fafc; border-top: 1px solid var(--c-line-soft); font-weight: 800; }

  /* Libur */
  .sg-libur-row { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px;
    border-top: 1px solid var(--c-line-soft); transition: background .15s ease; }
  @media (min-width: 768px) { .sg-libur-row { flex-direction: row; align-items: center; gap: 16px; } }
  .sg-libur-row:hover { background: #fafcfd; }
  .sg-libur-date { display: flex; align-items: center; gap: 12px; width: 190px; flex-shrink: 0; }
  .sg-cal { width: 46px; flex-shrink: 0; border-radius: 14px; overflow: hidden; text-align: center; background: #fff; border: 1px solid #fde2e7;
    box-shadow: 0 4px 10px -8px rgb(225 29 72 / .6); }
  .sg-cal-m { display: block; background: #fff1f3; color: var(--sg-rose); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 0; }
  .sg-cal-d { display: block; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 18px; font-weight: 800; color: var(--c-ink); line-height: 1.35; }
  .sg-libur-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: #334155;
    font-size: 11.5px; font-weight: 600; max-width: 100%; }
  .sg-libur-chip.is-part { background: #fff7ed; color: #9a3412; }
  .sg-libur-chip-n { font-weight: 800; font-variant-numeric: tabular-nums; opacity: .9; }
  .sg-empty { padding: 28px 20px; text-align: center; font-size: 12.5px; color: var(--c-muted); border-top: 1px solid var(--c-line-soft); }
  .sg-empty .material-symbols-outlined { display: block; font-size: 32px; color: #cbd5e1; margin-bottom: 4px; }

  /* Bagian lipat */
  .sg-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
  .sg-fold > summary::-webkit-details-marker { display: none; }
  .sg-fold > summary:hover { background: #fafcfd; }
  .sg-fold[open] > summary { border-bottom: 1px solid var(--c-line-soft); }
  .sg-fold-body { padding: 16px 20px 20px; overflow-x: auto; }

  /* Modal libur: sekolah + jumlah libur kecil/besar */
  .libur-school { transition: background .15s ease; }
  .libur-school.is-on { background: #fbfdff; }
  .libur-school-head { display: flex; align-items: center; gap: 12px; padding: 11px 12px; cursor: pointer; }
  .libur-school-head:hover { background: #f8fafc; }
  .libur-school-tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #ffe4e6; color: #be123c; white-space: nowrap; }
  .libur-school-tag:empty { display: none; }
  .libur-school-tag.is-part { background: #ffedd5; color: #9a3412; }
  .libur-school-body { display: none; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 0 12px 12px 40px; }
  .libur-school.is-on .libur-school-body { display: flex; }
  .libur-num { display: flex; flex-direction: column; gap: 4px; }
  .libur-num-label { font-size: 11px; font-weight: 700; color: var(--c-muted); }
  .libur-num-box { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 4px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); }
  .libur-num-box:focus-within { border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .libur-num-box input { width: 58px; height: 30px; border: 0; background: transparent; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-ink); }
  .libur-num-box input:focus { outline: none; box-shadow: none; }
  .libur-num-of { font-size: 11.5px; font-weight: 600; color: #5f6c80; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .libur-num.is-empty { opacity: .45; }
  .libur-masuk { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 12px; background: var(--sg-mint-bg, #ecfdf5); color: #065f46; font-size: 11.5px; }
  .libur-masuk .material-symbols-outlined { font-size: 16px; }
  .libur-masuk strong { font-weight: 800; font-variant-numeric: tabular-nums; }
  .libur-all-btn { height: 36px; padding: 0 12px; border-radius: 12px; font-size: 11.5px; font-weight: 700; color: #be123c; background: #fff1f2; }
  .libur-all-btn:hover { background: #ffe4e6; }
  @media (max-width: 480px) { .libur-school-body { padding-left: 12px; } .libur-num-box input { width: 48px; } }

/* ---- View_StandarGizi.html ---- */
  /* ---------- Standar Porsi (v15.37) ---------- */
  #view-standar-porsi { --sp-sky: #0369a1; --sp-sky-bg: #eff8ff; --sp-teal: rgb(var(--tl-700,15 118 110)); --sp-teal-bg: #effcf8; --sp-radius: 20px; }
  .sp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  .sp-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--sp-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }
  .sp-tools { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
  @media (min-width: 1280px) { .sp-tools { flex-direction: row; align-items: center; } }
  .sp-search { position: relative; width: 100%; flex-shrink: 0; }
  @media (min-width: 1280px) { .sp-search { width: 280px; } }
  .sp-search .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #5f6c80; pointer-events: none; }
  .sp-search input { width: 100%; height: 40px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9;
    font-size: 13px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .sp-search input:hover { background: #eef1f5; }
  .sp-search input:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  #sp-category-pills { gap: 6px; padding: 2px; }
  #view-standar-porsi .sp-cat-btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
  #view-standar-porsi .sp-cat-btn.btn-ghost { background: #f4f6f9; color: #475569; }
  #view-standar-porsi .sp-cat-btn.btn-ghost:hover { background: #e9edf2; color: #0f172a; }
  #view-standar-porsi .sp-cat-btn.btn-primary { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  /* v15.67: Standar BGN / Bandingkan */
  .sp-mode { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #f4f6f9; flex-shrink: 0; align-self: flex-start; }
  @media (min-width: 1280px) { .sp-mode { align-self: auto; } }
  .sp-mode-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #556378; white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
  .sp-mode-btn .material-symbols-outlined { font-size: 17px; }
  .sp-mode-btn:hover { color: #0f172a; }
  .sp-mode-btn.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .22); }
  .sp-mode-btn:focus-visible { outline: none; box-shadow: var(--focus); }
  .sp-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 18px 14px; padding: 10px 14px; border-radius: 14px; font-size: 12px; line-height: 1.5; color: #334155; background: #f8fafc; }
  .sp-info .material-symbols-outlined { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
  .sp-info.is-bgn { background: #effcf8; color: rgb(var(--tl-900,19 78 74)); }
  .sp-info.is-bgn .material-symbols-outlined { color: rgb(var(--tl-700,15 118 110)); }
  .sp-info.is-admin { background: #fff7ed; color: #7c2d12; }
  .sp-info.is-admin .material-symbols-outlined { color: #c2410c; }
  .sp-info.is-cmp { background: #f5f3ff; color: #3b0764; }
  .sp-info.is-cmp .material-symbols-outlined { color: #7c3aed; }
  #sp-table .cell-input.sp-kunci, #sp-table td.sp-ref-k .cell-input.sp-kunci, #sp-table td.sp-ref-b .cell-input.sp-kunci { background-color: transparent; box-shadow: none; cursor: default; }
  #sp-table .cell-input.sp-kunci:focus { box-shadow: inset 0 0 0 1px #e2e8f0; }
  #sp-table .sp-bgn { margin-top: 2px; font-size: 11px; font-weight: 700; color: #5f6c80; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
  #sp-table .sp-tag.is-milik { background: #ecfdf5; color: #047857; }
  #sp-table .sp-tag.is-luar { background: #f1f5f9; color: #556378; }

  /* Tabel gramasi */
  #sp-table { font-size: 12.5px; }
  #sp-table thead th { font-weight: 700; border-bottom: 1px solid var(--c-line-soft); }
  #sp-table thead tr:first-child th { background: #f8fafc; }
  #sp-table .sp-band-k { background: var(--sp-sky-bg) !important; color: var(--sp-sky) !important; }
  #sp-table .sp-band-b { background: var(--sp-teal-bg) !important; color: var(--sp-teal) !important; }
  #sp-table .sp-band-k, #sp-table .sp-band-b { font-size: 11px; letter-spacing: .04em; text-transform: none; }
  #sp-table .sp-band-k::before, #sp-table .sp-band-b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; opacity: .75; }
  #sp-table .sp-th-g { font-size: 11.5px; font-weight: 800; color: #475569; white-space: nowrap; }
  #sp-table .sp-th-g.is-ref-k { color: var(--sp-sky); }
  #sp-table .sp-th-g.is-ref-b { color: var(--sp-teal); }
  #sp-table .sp-star { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; border-radius: 50%; font-size: 11px; vertical-align: 1px; }
  #sp-table .is-ref-k .sp-star { background: #dbeefe; }
  #sp-table .is-ref-b .sp-star { background: rgb(var(--tl-100,204 251 241)); }
  #sp-table tbody tr { transition: background .15s ease; }
  #sp-table tbody tr:hover > td { background-color: #fafcfd; }
  #sp-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #sp-table .cell-input { height: 32px; border-radius: 10px; background-color: #f6f8fa; box-shadow: inset 0 0 0 1px #e8edf2; }
  #sp-table .cell-input:hover { background-color: #f1f5f9; box-shadow: inset 0 0 0 1px #cbd5e1; }
  #sp-table .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); outline: none; }
  #sp-table .cell-input::placeholder { color: #cbd5e1; font-weight: 500; }
  #sp-table td.sp-ref-k .cell-input { background-color: var(--sp-sky-bg); box-shadow: inset 0 0 0 1px #d4e9fa; color: #075985; }
  #sp-table td.sp-ref-b .cell-input { background-color: var(--sp-teal-bg); box-shadow: inset 0 0 0 1px #cdeee4; color: rgb(var(--tl-800,17 94 89)); }
  #sp-table td.sp-ref-k .cell-input:focus, #sp-table td.sp-ref-b .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); }
  #sp-table .sp-name { font-weight: 700; color: var(--c-ink); line-height: 1.25; }
  #sp-table .sp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; font-size: 11px; color: #5f6c80; font-weight: 600; }
  #sp-table .sp-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff7ed; color: #b45309; }
  #sp-table .btn-sm { height: 30px; border-radius: 10px; }

  .sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--c-line-soft); font-size: 11.5px; color: var(--c-muted); }
  .sp-legend-count { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #f1f5f9; color: #334155; font-weight: 700; }
  .sp-swatch { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 8px; background: #f6f8fa; font-variant-numeric: tabular-nums; }

/* ---- View_StandarResep.html ---- */
  #view-standar-resep { --sr-radius: 20px; }
  .sr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  .sr-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--sr-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }

  /* Peringkat minggu ini */
  .sr-podium { position: relative; overflow: hidden; padding: 18px 20px; border-radius: var(--sr-radius); background: linear-gradient(120deg, #fffbeb 0%, #fff7ed 50%, rgb(var(--tl-50,240 253 250)) 100%); border: 1px solid #fde68a; }
  .sr-podium::after { content: ''; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: rgb(255 255 255 / .55); pointer-events: none; }
  .sr-podium > * { position: relative; z-index: 1; }
  .sr-podium-judul { display: flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: #78350f; }
  .sr-podium-judul .material-symbols-outlined { font-size: 20px; color: #d97706; font-variation-settings: 'FILL' 1; }
  .sr-podium-sub { font-size: 11.5px; color: #92400e; opacity: .8; margin-top: 2px; }
  .sr-podium-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  @media (min-width: 768px) { .sr-podium-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .sr-podium-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgb(255 255 255 / .8); box-shadow: 0 1px 2px rgb(120 53 15 / .06); animation: sr-naik .45s cubic-bezier(.34, 1.4, .64, 1) both; }
  .sr-podium-item:nth-child(2) { animation-delay: .06s; } .sr-podium-item:nth-child(3) { animation-delay: .12s; }
  .sr-podium-nama { font-weight: 800; font-size: 13px; color: #0f172a; line-height: 1.25; }
  .sr-podium-n { font-size: 11px; color: #556378; }
  .sr-podium-kosong { margin-top: 10px; font-size: 12px; color: #92400e; }
  .sr-medali { flex-shrink: 0; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 14px; font-weight: 800; color: #fff; }
  .sr-medali.m1 { background: linear-gradient(145deg, #fcd34d, #d97706); box-shadow: 0 4px 10px -4px #d97706; }
  .sr-medali.m2 { background: linear-gradient(145deg, #e2e8f0, #94a3b8); box-shadow: 0 4px 10px -4px #64748b; }
  .sr-medali.m3 { background: linear-gradient(145deg, #fdba74, #c2410c); box-shadow: 0 4px 10px -4px #c2410c; }
  .sr-medali.kecil { width: 24px; height: 24px; font-size: 11px; }
  @keyframes sr-naik { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

  /* Alat */
  .sr-tools { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
  @media (min-width: 1024px) { .sr-tools { flex-direction: row; align-items: center; justify-content: space-between; } }
  .sr-search { position: relative; width: 100%; }
  @media (min-width: 1024px) { .sr-search { width: 280px; } }
  .sr-search .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #5f6c80; pointer-events: none; }
  .sr-search input { width: 100%; height: 40px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9; font-size: 13px; }
  .sr-search input:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .sr-filter { display: flex; flex-wrap: wrap; gap: 6px; }
  .sr-filter button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f4f6f9; color: #475569; transition: background .15s ease, color .15s ease; }
  .sr-filter button:hover { background: #e9edf2; color: #0f172a; }
  .sr-filter button.is-active { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  .sr-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 18px 14px; padding: 10px 14px; border-radius: 14px; font-size: 12px; line-height: 1.5; background: #effcf8; color: rgb(var(--tl-900,19 78 74)); }
  .sr-info .material-symbols-outlined { font-size: 18px; color: rgb(var(--tl-700,15 118 110)); margin-top: 1px; flex-shrink: 0; }
  .sr-info.is-admin { background: #fff7ed; color: #7c2d12; }
  .sr-info.is-admin .material-symbols-outlined { color: #c2410c; }

  /* Kartu resep */
  .sr-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 18px 18px; }
  @media (min-width: 768px) { .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1440px) { .sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .sr-item { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--c-line-soft); background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
  .sr-item:hover { border-color: rgb(var(--tl-200,153 246 228)); box-shadow: 0 10px 24px -18px rgb(var(--tl-700,15 118 110) / .55); transform: translateY(-1px); }
  .sr-item.is-top { border-color: #fde68a; background: linear-gradient(180deg, #fffdf5, #fff 40%); }
  .sr-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .sr-item-nama { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: var(--c-ink); line-height: 1.25; margin: 0; }
  .sr-untuk { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
  .sr-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
  .sr-chip.k-KARBO { background: #fff1e6; color: #c2410c; }
  .sr-chip.k-PH { background: #ffe4e6; color: #be123c; }
  .sr-chip.k-PN { background: #ecfccb; color: #4d7c0f; }
  .sr-chip.k-SAYUR { background: #dcfce7; color: #15803d; }
  .sr-chip.is-milik { background: #ede9fe; color: #6d28d9; }
  .sr-bahan { width: 100%; border-collapse: collapse; font-size: 12px; }
  .sr-bahan th { font-size: 11px; font-weight: 800; color: #5f6c80; text-align: right; padding: 0 0 4px 8px; letter-spacing: .02em; }
  .sr-bahan th:first-child { text-align: left; padding-left: 0; }
  .sr-bahan td { padding: 4px 0 4px 8px; border-top: 1px dashed #eef2f6; text-align: right; font-variant-numeric: tabular-nums; color: #334155; font-weight: 700; white-space: nowrap; }
  .sr-bahan td:first-child { text-align: left; padding-left: 0; font-weight: 600; color: #1e293b; white-space: normal; }
  .sr-bahan td.is-luar { color: #b45309; }
  .sr-bahan td.is-luar::after { content: ' •'; color: #f59e0b; }
  .sr-catatan { font-size: 11.5px; color: #556378; line-height: 1.5; margin: 0; }
  .sr-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; font-size: 11px; color: #5f6c80; }
  .sr-foot strong { color: #475569; font-weight: 700; }
  .sr-kosong { padding: 40px 18px; text-align: center; font-size: 12.5px; color: #556378; grid-column: 1 / -1; }

  /* Cara memakai */
  .sr-cara { display: grid; grid-template-columns: 1fr; gap: 10px; }
  @media (min-width: 768px) { .sr-cara { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .sr-cara-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line-soft); font-size: 12px; color: #475569; line-height: 1.5; }
  .sr-cara-no { flex-shrink: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); font-size: 11.5px; font-weight: 800; }

  /* Jendela sumbang / ubah resep */
  #modal-sr .sr-untuk-pilih { display: flex; flex-wrap: wrap; gap: 8px; }
  #modal-sr .sr-untuk-pilih label { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line); font-size: 12px; font-weight: 700; color: #475569; cursor: pointer; user-select: none; }
  #modal-sr .sr-untuk-pilih input { accent-color: rgb(var(--tl-700,15 118 110)); }
  #modal-sr .sr-untuk-pilih label:has(input:checked) { background: rgb(var(--tl-50,240 253 250)); border-color: rgb(var(--tl-300,94 234 212)); color: rgb(var(--tl-700,15 118 110)); }
  #modal-sr .sr-baris td { padding: 4px 4px 4px 0; }
  #modal-sr .sr-baris input { height: 36px; }

  /* Pilihan resep di Resep & Nilai Gizi */
  .sr-pop { position: fixed; z-index: 70; width: 320px; max-width: calc(100vw - 16px); max-height: min(420px, 70vh); display: flex; flex-direction: column; background: #fff; border-radius: 18px;
    border: 1px solid var(--c-line); box-shadow: 0 24px 48px -20px rgb(15 23 42 / .35); overflow: hidden; animation: sr-pop-masuk .16s ease-out; }
  @keyframes sr-pop-masuk { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
  .sr-pop-head { padding: 12px 14px 8px; }
  .sr-pop-judul { font-size: 13px; font-weight: 800; color: var(--c-ink); }
  .sr-pop-sub { font-size: 11px; color: #5f6c80; }
  .sr-pop-list { overflow-y: auto; padding: 0 6px 6px; }
  .sr-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; text-align: left; transition: background .12s ease; }
  .sr-pop-item:hover, .sr-pop-item:focus-visible { background: rgb(var(--tl-50,240 253 250)); outline: none; }
  .sr-pop-item .sr-pop-ikon { flex-shrink: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f1f5f9; color: #556378; }
  .sr-pop-item .sr-pop-ikon .material-symbols-outlined { font-size: 15px; }
  .sr-pop-nama { display: block; font-size: 12.5px; font-weight: 800; color: #0f172a; line-height: 1.3; }
  .sr-pop-isi { display: block; font-size: 11px; color: #5f6c80; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
  .sr-pop-n { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #5f6c80; }
  .sr-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-top: 1px solid #f1f5f9; background: #fafbfc; font-size: 11.5px; }
  .sr-pop-foot button { font-weight: 700; color: rgb(var(--tl-700,15 118 110)); }
  .sr-pop-kosong { padding: 14px; font-size: 12px; color: #556378; }
  @media (prefers-reduced-motion: reduce) { .sr-podium-item, .sr-pop { animation: none; } .sr-item:hover { transform: none; } }

/* ---- View_Bahan.html ---- */
  /* ---------- Katalog Bahan & Harga (v15.38) ---------- */
  #view-daftar-bahan { --bh-radius: 20px; }
  .bh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  .bh-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--bh-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }

  /* Lokasi dapur (baris atas kartu) */
  .bh-lokasi { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--c-line-soft); }
  @media (min-width: 640px) { .bh-lokasi { flex-direction: row; align-items: center; justify-content: space-between; } }
  .bh-lokasi-ico { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); }
  .bh-lokasi-ico .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
  .bh-lokasi-label { font-size: 11.5px; font-weight: 700; color: var(--c-muted); }
  .bh-lokasi.is-empty .bh-lokasi-ico { background: #e0f2fe; color: #0369a1; }

  /* Alat: cari, tampilan, satuan */
  .bh-tools { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; }
  @media (min-width: 1280px) { .bh-tools { flex-direction: row; align-items: center; } }
  .bh-search { position: relative; width: 100%; flex-shrink: 0; }
  @media (min-width: 1280px) { .bh-search { width: 270px; } }
  .bh-search .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #5f6c80; pointer-events: none; }
  .bh-search input { width: 100%; height: 40px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9;
    font-size: 13px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .bh-search input:hover { background: #eef1f5; }
  .bh-search input:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  #view-daftar-bahan .seg { border-radius: 999px; background: #f4f6f9; padding: 4px; }
  #view-daftar-bahan .seg button { height: 32px; border-radius: 999px; font-size: 12px; }
  #view-daftar-bahan .seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }
  #view-daftar-bahan .bahan-sat-btn { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
  #view-daftar-bahan .bahan-sat-btn.btn-ghost { background: #f4f6f9; color: #475569; }
  #view-daftar-bahan .bahan-sat-btn.btn-ghost:hover { background: #e9edf2; color: #0f172a; }
  #view-daftar-bahan .bahan-sat-btn.btn-primary { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  .bh-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; user-select: none; flex-shrink: 0; }
  .bh-switch.hidden { display: none !important; }
  .bh-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .bh-switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #dbe2ea; transition: background .2s ease; flex-shrink: 0; }
  .bh-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / .25); transition: transform .2s ease; }
  .bh-switch input:checked + .bh-switch-track { background: rgb(var(--tl-500,20 184 166)); }
  .bh-switch input:checked + .bh-switch-track::after { transform: translateX(16px); }
  .bh-switch input:focus-visible + .bh-switch-track { box-shadow: var(--focus); }
  .bh-lock { display: flex; align-items: center; gap: 8px; margin: 0 18px 12px; padding: 9px 12px; border-radius: 12px; background: #f4f6f9; color: #475569; font-size: 12px; font-weight: 600; }
  .bh-lock.hidden { display: none !important; }

  /* Tabel: semua menyatu, tanpa kotak kuning */
  #bahan-table { font-size: 12.5px; }
  #bahan-table thead th { font-size: 11px; font-weight: 700; color: #556378; text-transform: none; letter-spacing: 0; background: #f8fafc;
    border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); white-space: nowrap; }
  #bahan-table thead th > div { font-size: 11px; font-weight: 600; color: #5f6c80; }
  #bahan-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #bahan-table tbody tr { transition: background .15s ease; }
  #bahan-table tbody tr:hover > td { background-color: #fafcfd; }
  #bahan-table .cell-input { height: 32px; border-radius: 10px; background-color: #f6f8fa; box-shadow: inset 0 0 0 1px #e8edf2; }
  #bahan-table .cell-input:hover { background-color: #f1f5f9; box-shadow: inset 0 0 0 1px #cbd5e1; }
  #bahan-table .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); outline: none; }
  #bahan-table .cell-input.is-saved { animation: savedFlashPutih .9s ease; }
  #bahan-table select.cell-input { padding-right: 24px; }
  #bahan-table .bh-name { font-weight: 700; color: var(--c-ink); line-height: 1.25; }
  #bahan-table .bh-meta { margin-top: 2px; font-size: 11px; color: #5f6c80; font-weight: 600; }
  #bahan-table .bh-rp { font-size: 11px; font-weight: 700; color: #5f6c80; }
  #bahan-table .btn-sm { height: 30px; border-radius: 10px; }
  #view-daftar-bahan .chip { padding: 3px 9px; border-radius: 999px; border-color: transparent; }
  #view-daftar-bahan .chip-warn { background: #fff1e6; color: #c2410c; }
  #view-daftar-bahan .chip-brand { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  #view-daftar-bahan .chip-muted { background: #f1f5f9; color: #556378; }
  #view-daftar-bahan .chip-bad { background: #ffe4e6; color: #be123c; }

  .bh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; border-top: 1px solid var(--c-line-soft); font-size: 11.5px; color: var(--c-muted); }
  .bh-legend-count { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #f1f5f9; color: #334155; font-weight: 700; }

/* ---- View_Siklus.html ---- */
  /* ---------- Siklus Menu (v15.39) ---------- */
  #view-siklus-menu { --sik-radius: 20px; }
  .sik-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
  .sik-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--sik-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }
  .sik-ico { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
  .sik-ico .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

  /* Ringkasan belanja minggu */
  .sik-kpi { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
  @media (min-width: 640px) { .sik-kpi { flex-direction: row; align-items: center; gap: 20px; } }
  .sik-kpi::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: #e6fbf5; opacity: .8; pointer-events: none; }
  .sik-kpi > * { position: relative; z-index: 1; }
  .sik-kpi-label { font-size: 12px; font-weight: 700; color: var(--c-muted); }
  .sik-kpi-val { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
  #siklus-kpi-week-bar { height: 10px !important; border-radius: 999px; background: #eef2f6 !important; }

  /* Navigasi minggu + jenis menu */
  .sik-head { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; }
  @media (min-width: 1024px) { .sik-head { flex-direction: row; align-items: center; justify-content: space-between; } }
  .sik-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sik-nav-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f4f6f9; color: #334155; transition: background .15s ease; }
  .sik-nav-btn:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .sik-nav-btn .material-symbols-outlined { font-size: 22px; }
  .sik-range { min-width: 180px; padding: 0 4px; }
  .sik-range-kecil { font-size: 11px; font-weight: 700; color: var(--c-muted); line-height: 1.2; }
  .sik-range-besar { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15.5px; font-weight: 800; color: var(--c-ink); line-height: 1.25; }
  .sik-today-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 999px; background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 700; }
  .sik-today-btn .material-symbols-outlined { font-size: 17px; }
  .sik-date { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9; font-size: 12.5px; font-weight: 700; color: #334155; }
  .sik-date:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  #view-siklus-menu .seg { border-radius: 999px; background: #f4f6f9; padding: 4px; }
  #view-siklus-menu .seg button { height: 32px; border-radius: 999px; font-size: 12px; }
  #view-siklus-menu .seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }

  /* v15.70: tabel tanpa scroll bar — tinggi mengikuti isi (halaman yang digulir), geser samping tetap bisa
     dengan touchpad, Shift + roda mouse, atau tarik dengan mouse */
  #view-siklus-menu .table-scroll-container { max-height: none; scrollbar-width: none; -ms-overflow-style: none; }
  #view-siklus-menu .table-scroll-container::-webkit-scrollbar { display: none; width: 0; height: 0; }
  #view-siklus-menu .table-scroll-container.bisa-geser { cursor: grab; }
  #view-siklus-menu .table-scroll-container.sedang-geser { cursor: grabbing; user-select: none; }
  #view-siklus-menu .table-scroll-container.sedang-geser * { cursor: grabbing !important; }

  /* Matriks menu */
  #siklus-matrix { font-size: 12.5px; }
  #siklus-matrix thead th { background: #f8fafc; border-top: 1px solid var(--c-line-soft); border-bottom: 1px solid var(--c-line-soft); }
  #siklus-matrix thead th.sik-th-hari.is-today { background: #effcf8; }
  #siklus-matrix thead th.sik-th-hari.is-libur { background: #f1f5f9; }
  .sik-hari { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 13.5px; font-weight: 800; color: var(--c-ink); line-height: 1.2; }
  .sik-tgl { font-size: 11px; font-weight: 600; color: #5f6c80; }
  .sik-badge-today { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); font-size: 11px; font-weight: 800; vertical-align: 2px; }
  .sik-libur-tgl { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-size: 11px; font-weight: 700; color: #556378; cursor: pointer; user-select: none; white-space: nowrap; }
  .sik-libur-tgl input { width: 13px; height: 13px; accent-color: #e11d48; }
  .sik-libur-tgl.is-on { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
  #siklus-matrix tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #siklus-matrix tbody tr:hover > td { background-color: #fcfdfe; }
  .sik-komp { display: block; padding-top: 7px; font-size: 12.5px; font-weight: 700; color: #1e293b; }
  .sik-dish-label { font-size: 12px; font-weight: 600; color: #556378; }
  .sik-dish-head { font-size: 11px; font-weight: 800; color: #5f6c80; letter-spacing: .04em; margin-bottom: 2px; }
  #view-siklus-menu .cell-input { border-radius: 10px; background-color: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
  #view-siklus-menu .cell-input:hover { background-color: #fff; box-shadow: inset 0 0 0 1px #94a3b8; }
  #view-siklus-menu .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); }
  #view-siklus-menu .cell-input.is-saved { animation: savedFlashPutih .9s ease; }
  .sik-plus { font-size: 11px; font-weight: 500; color: #cbd5e1; width: 10px; text-align: center; flex-shrink: 0; }
  .sik-add { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; padding: 2px 6px; border-radius: 8px; font-size: 11px; font-weight: 500;
    color: #5f6c80; transition: color .15s ease, background .15s ease; }
  .sik-add:hover { color: rgb(var(--tl-700,15 118 110)); background: rgb(var(--tl-50,240 253 250)); }
  .sik-add .material-symbols-outlined { font-size: 14px; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20; }
  .sik-add-in { animation: sik-muncul .25s ease-out; }
  @keyframes sik-muncul { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
  #view-siklus-menu .sik-simpan { border-radius: 10px; min-height: 30px; margin-top: 0; }
  #siklus-matrix tbody tr.sik-simpan-row > td { background-color: #fbfcfd; border-bottom: 1px solid #e2e8f0; }

  /* Hari libur: kartu lucu memenuhi kotak hari (v15.40) */
  #siklus-matrix td.sik-libur-td { padding: 8px; height: 1px; vertical-align: top; background: #fff !important; }
  .sik-libur-card { height: 100%; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 18px 14px; border-radius: 18px; text-align: center; overflow: hidden; position: relative;
    background: linear-gradient(170deg, #e0f2fe 0%, #fef9c3 55%, #ffe4e6 100%); animation: sik-libur-masuk .5s cubic-bezier(.2,.8,.2,1); }
  .sik-libur-card::before { content: ''; position: absolute; left: -20%; right: -20%; bottom: -46px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.55); }
  .sik-libur-card > * { position: relative; }
  .sik-libur-art { width: 132px; height: 100px; overflow: visible; }
  .sik-mthr { transform-origin: 80px 60px; animation: sik-ayun 4.5s ease-in-out infinite; }
  .sik-sinar { transform-origin: 80px 60px; animation: sik-putar 24s linear infinite; }
  .sik-awan-a { animation: sik-melayang 7s ease-in-out infinite; }
  .sik-awan-b { animation: sik-melayang 8s ease-in-out infinite reverse; }
  .sik-zzz text { opacity: 0; animation: sik-z 3s ease-in-out infinite; }
  .sik-zzz .z2 { animation-delay: .6s; } .sik-zzz .z3 { animation-delay: 1.2s; }
  .sik-libur-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
  .sik-libur-sub { font-size: 11.5px; line-height: 1.5; color: #475569; max-width: 200px; }
  #view-siklus-menu .sik-libur-ket { width: 100%; max-width: 210px; margin-top: 6px; padding: 6px 10px; text-align: center; font-size: 12px; border-radius: 999px;
    background-color: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(148,163,184,.35); }
  .sik-libur-simpan { width: 100%; max-width: 210px; margin-top: 4px; }
  @keyframes sik-libur-masuk { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes sik-ayun { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
  @keyframes sik-putar { to { transform: rotate(360deg); } }
  @keyframes sik-melayang { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
  @keyframes sik-z { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; transform: translate(4px, -6px); } }
  @media (prefers-reduced-motion: reduce) {
    .sik-libur-card, .sik-mthr, .sik-sinar, .sik-awan-a, .sik-awan-b, .sik-zzz text, .sik-add-in { animation: none; }
    .sik-zzz text { opacity: 1; }
  }
  #siklus-matrix tfoot td { background-color: #fbfcfd; border-top: 1px solid var(--c-line-soft); }
  .sik-open { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: #f4f6f9; color: #334155; font-size: 11.5px; font-weight: 700; transition: background .15s ease, color .15s ease; }
  .sik-open:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }

  /* v15.67: subjudul Master Menu & Siklus Menu */
  .sik-subjudul { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800;
    color: rgb(var(--tl-700,15 118 110)); letter-spacing: -.01em; white-space: nowrap; }
  .sik-subjudul::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--tl-500,20 184 166)); box-shadow: 0 0 0 4px rgb(var(--tl-100,204 251 241)); flex-shrink: 0; }
  .sik-subjudul-kanan { margin-left: 8px; height: 38px; }
  #siklus-matrix tbody tr.sik-judul-row > td { padding: 14px 0 10px; background: #fff !important; border-bottom: 1px solid var(--c-line-soft); }
  .sik-judul-tengah { position: sticky; left: 0; display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; }
  .sik-judul-tengah::before, .sik-judul-tengah::after { content: ''; height: 1px; flex: 0 1 90px; background: linear-gradient(90deg, transparent, #cbd5e1); }
  .sik-judul-tengah::after { background: linear-gradient(90deg, #cbd5e1, transparent); }
  #siklus-matrix td.sik-libur-sisa { background: #f8fafc !important; text-align: center; vertical-align: middle; }
  #siklus-matrix td.sik-libur-sisa span { font-size: 11px; font-weight: 700; color: #cbd5e1; letter-spacing: .04em; }

  /* Rekap */
  .sik-sec-title { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15.5px; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
  #siklus-gizi-panel > div { border-color: var(--c-line-soft) !important; border-radius: 16px !important; background: #fcfdfe; }
  .sik-mini { border-radius: 14px; padding: 10px 12px; background: #f6f8fa; }
  .sik-mini-label { font-size: 11px; font-weight: 600; color: var(--c-muted); }
  .sik-mini.is-brand { background: #effcf8; }
  .sik-mini.is-brand .sik-mini-label { color: rgb(var(--tl-700,15 118 110)); }
  .sik-fold { border: 1px solid var(--c-line-soft); border-radius: 16px; }
  .sik-fold > summary::-webkit-details-marker { display: none; }

/* ---- View_Resep.html ---- */
  /* ---------- Resep & Nilai Gizi (v15.41) ---------- */
  #view-resep-gizi { --rs-radius: 20px; }
  .rs-top { display: flex; flex-direction: column; gap: 12px; }
  @media (min-width: 1024px) { .rs-top { flex-direction: row; align-items: center; justify-content: space-between; } }
  .rs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .rs-nav-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line-soft); color: #334155;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: background .15s ease, color .15s ease; }
  .rs-nav-btn:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .rs-nav-btn .material-symbols-outlined { font-size: 22px; }
  .rs-date { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-soft); background: #fff; font-size: 13px; font-weight: 700; color: #0f172a; }
  .rs-date:focus { outline: none; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .rs-date-label { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: var(--c-ink); margin-left: 4px; }
  .rs-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--rs-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }

  /* Pilihan menu (varian) + alat */
  #resep-varian-bar { padding: 14px 18px; border-bottom: 1px solid var(--c-line-soft); }
  #view-resep-gizi .seg { border-radius: 999px; background: #f4f6f9; padding: 4px; }
  #view-resep-gizi .seg button { height: 32px; border-radius: 999px; font-size: 12px; }
  #view-resep-gizi .seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }
  #resep-varian-bar button.rounded-xl { border-radius: 14px; }
  #resep-varian-bar select.field { border-radius: 999px; }
  .rs-tools { display: flex; flex-direction: column; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--c-line-soft); }
  @media (min-width: 1024px) { .rs-tools { flex-direction: row; align-items: center; justify-content: space-between; } }
  .rs-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; user-select: none; }
  .rs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .rs-switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #dbe2ea; transition: background .2s ease; flex-shrink: 0; }
  .rs-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgb(15 23 42 / .25); transition: transform .2s ease; }
  .rs-switch input:checked + .rs-switch-track { background: rgb(var(--tl-500,20 184 166)); }
  .rs-switch input:checked + .rs-switch-track::after { transform: translateX(16px); }
  .rs-switch input:focus-visible + .rs-switch-track { box-shadow: var(--focus); }
  .rs-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .rs-copy-bawah { padding: 12px 18px 14px; border-top: 1px solid var(--c-line-soft); }
  .rs-copy select { height: 34px; border-radius: 999px; border: 1px solid transparent; background-color: #f4f6f9; font-size: 12px; font-weight: 700; padding: 0 30px 0 12px; }
  .rs-copy select:focus { outline: none; background-color: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .rs-pill-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 700;
    transition: background .15s ease; }
  .rs-pill-btn:hover { background: rgb(var(--tl-100,204 251 241)); }
  .rs-pill-btn .material-symbols-outlined { font-size: 17px; }

  /* Tabel resep */
  #resep-table { font-size: 12.5px; }
  #resep-table thead th { background: #f8fafc; font-size: 11px; font-weight: 700; color: #556378; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--c-line-soft); }
  #resep-table thead th .text-\[9\.5px\] { color: #5f6c80; }
  #resep-table thead select.field { border-radius: 999px; background-color: #fff; }
  #resep-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #resep-table tbody tr:hover > td { background-color: #fcfdfe; }
  #resep-table tr.rs-blok > td { background: #fbfcfd !important; padding-top: 12px; padding-bottom: 8px; }
  .rs-blok-label { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
  .rs-blok-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
  .rs-blok-KARBO .rs-blok-label { background: #fff1e6; color: #c2410c; }
  .rs-blok-PH .rs-blok-label { background: #ffe4e6; color: #be123c; }
  .rs-blok-PN .rs-blok-label { background: #ecfccb; color: #4d7c0f; }
  .rs-blok-SAYUR .rs-blok-label { background: #dcfce7; color: #15803d; }
  .rs-blok-BUAH .rs-blok-label { background: #e0f2fe; color: #0369a1; }
  /* v15.68: Karbohidrat / Lauk / Sayur = tombol pilih standar resep */
  .rs-blok-btn { cursor: pointer; border: 0; transition: filter .15s ease, box-shadow .15s ease, transform .15s ease; }
  .rs-blok-btn .material-symbols-outlined { font-size: 16px; margin: 0 -4px 0 -2px; transition: transform .15s ease; }
  .rs-blok-btn:hover { filter: saturate(1.3) brightness(.97); box-shadow: 0 4px 12px -6px currentColor; }
  .rs-blok-btn:hover .material-symbols-outlined { transform: translateY(1px); }
  .rs-blok-btn:active { transform: scale(.97); }
  .rs-blok-btn:focus-visible { outline: none; box-shadow: var(--focus); }
  @media print { .rs-blok-btn .material-symbols-outlined { display: none; } }
  #view-resep-gizi .cell-input { border-radius: 10px; background-color: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
  #view-resep-gizi .cell-input:hover { box-shadow: inset 0 0 0 1px #94a3b8; }
  #view-resep-gizi .cell-input:focus { box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); }
  #view-resep-gizi .cell-ro { border-radius: 10px; background: #f8fafc; box-shadow: none; }
  #resep-table tfoot td { background-color: #fbfcfd; border-top: 1px solid var(--c-line-soft); }
  #resep-table tfoot tr:first-child td { border-top: 1px solid #e2e8f0; }
  .rs-capai { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 46px; height: 22px; padding: 0 8px; border-radius: 999px; font-weight: 800; font-size: 11.5px; font-variant-numeric: tabular-nums; }
  .rs-capai.is-ok { background: #dcfce7; color: #15803d; }
  .rs-capai.is-dekat { background: #ffedd5; color: #c2410c; }
  .rs-capai.is-kurang { background: #ffe4e6; color: #be123c; }
  .rs-biaya { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #effcf8; color: rgb(var(--tl-800,17 94 89)); font-size: 12px; }
  .rs-note { padding: 10px 18px; font-size: 11.5px; color: var(--c-muted); }

  /* Unduh */
  .rs-dl { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; }
  .rs-dl.hidden, .rs-card.hidden { display: none !important; }
  @media (min-width: 640px) { .rs-dl { flex-direction: row; align-items: center; justify-content: space-between; } }
  .rs-ico { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
  .rs-ico .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

  /* Daftar pilihan bahan: menempel tepat di bawah (atau di atas) kotak yang diisi (v15.44) */
  .saran-bahan { position: fixed; z-index: 90; overflow-y: auto; background: #fff; border: 1px solid rgb(var(--tl-300,94 234 212)); border-top: 0;
    border-radius: 0 0 12px 12px; box-shadow: 0 14px 28px -14px rgb(15 23 42 / .35); padding: 4px; font-size: 12px; overscroll-behavior: contain; }
  .saran-bahan.is-atas { border-top: 1px solid rgb(var(--tl-300,94 234 212)); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -14px 28px -14px rgb(15 23 42 / .35); }
  .saran-item { padding: 7px 10px; border-radius: 8px; color: #334155; font-weight: 600; text-transform: uppercase; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .saran-item b { color: rgb(var(--tl-700,15 118 110)); font-weight: 800; }
  .saran-item:hover { background: #f4f6f9; }
  .saran-item.is-aktif { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .saran-kosong { padding: 10px; color: #5f6c80; font-size: 11.5px; text-align: center; }
  #view-resep-gizi input[data-dl][aria-expanded="true"] { border-radius: 10px 10px 0 0; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); }

  /* Menu belum diisi: karakter lucu per hari (v15.43) */
  .rk-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 22px 24px; border-radius: 22px; text-align: center;
    border: 1px solid var(--c-line-soft); animation: rk-masuk .55s cubic-bezier(.2,.8,.2,1); }
  @media (min-width: 640px) { .rk-card { flex-direction: row; text-align: left; gap: 26px; padding: 22px 30px; } }
  .rk-card::after { content: ''; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.5); pointer-events: none; }
  .rk-card > * { position: relative; z-index: 1; }
  .rk-hari-1, .rk-hari-6 { background: linear-gradient(150deg, #fefce8 0%, #fef9c3 60%, #ecfccb 100%); }
  .rk-hari-2 { background: linear-gradient(150deg, #faf5ff 0%, #f3e8ff 60%, #fce7f3 100%); }
  .rk-hari-3 { background: linear-gradient(150deg, #fff7ed 0%, #ffedd5 60%, #ecfccb 100%); }
  .rk-hari-4 { background: linear-gradient(150deg, #fffbeb 0%, #fef3c7 55%, #ffe4e6 100%); }
  .rk-hari-5 { background: linear-gradient(150deg, #fefce8 0%, #fdf4e3 60%, #f5f0e6 100%); }
  .rk-art { width: 170px; height: 138px; flex-shrink: 0; overflow: visible; }
  .rk-teks { min-width: 0; }
  .rk-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.75); color: #475569; font-size: 11px; font-weight: 700; }
  .rk-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 19px; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; margin-top: 8px; line-height: 1.25; }
  .rk-sub { font-size: 12.5px; color: #475569; margin-top: 4px; max-width: 460px; }
  .rk-aksi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
  @media (min-width: 640px) { .rk-aksi { justify-content: flex-start; } }
  .rk-pill { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 12px; font-weight: 700; transition: background .15s ease, transform .15s ease; }
  .rk-pill:hover { transform: translateY(-1px); }
  .rk-pill .material-symbols-outlined { font-size: 17px; }
  .rk-pill.is-utama { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  .rk-pill.is-utama:hover { background: rgb(var(--tl-800,17 94 89)); }
  .rk-pill.is-lembut { background: rgba(255,255,255,.8); color: #334155; }
  .rk-pill.is-lembut:hover { background: #fff; color: rgb(var(--tl-700,15 118 110)); }
  /* Gerak tiap karakter */
  .rk-pisang { transform-origin: 80px 110px; animation: rk-ayun 3.2s ease-in-out infinite; }
  .rk-umbi { transform-origin: 80px 112px; animation: rk-pegas 2.2s ease-in-out infinite; }
  .rk-wortel { transform-origin: 80px 112px; animation: rk-lompat 1.9s ease-in-out infinite; }
  .rk-daun { transform-origin: 80px 30px; animation: rk-kibas 1.2s ease-in-out infinite; }
  .rk-ayam { transform-origin: 80px 100px; animation: rk-angguk 2.6s ease-in-out infinite; }
  .rk-tahu { transform-origin: 48px 102px; animation: rk-lompat 2s ease-in-out infinite; }
  .rk-tempe { transform-origin: 112px 102px; animation: rk-lompat 2s ease-in-out infinite; animation-delay: 1s; }
  .rk-bayang { transform-origin: 80px 118px; animation: rk-bayang 2.2s ease-in-out infinite; }
  .rk-kilau { transform-box: fill-box; transform-origin: center; animation: rk-kedip 2.2s ease-in-out infinite; }
  .rk-kilau.k2 { animation-delay: 1.1s; }
  @keyframes rk-masuk { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes rk-ayun { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg) translateY(-3px); } }
  @keyframes rk-pegas { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(1.06, .92); } 55% { transform: scale(.95, 1.06) translateY(-8px); } 80% { transform: scale(1.02, .98); } }
  @keyframes rk-lompat { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-12px) rotate(-3deg); } 55% { transform: translateY(-12px) rotate(3deg); } 80% { transform: translateY(0) scale(1.03, .97); } }
  @keyframes rk-kibas { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
  @keyframes rk-angguk { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-5px); } }
  @keyframes rk-bayang { 0%, 100% { transform: scaleX(1); opacity: .55; } 50% { transform: scaleX(.85); opacity: .35; } }
  @keyframes rk-kedip { 0%, 100% { opacity: .2; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1); } }
  @media (prefers-reduced-motion: reduce) {
    .rk-card, .rk-pisang, .rk-umbi, .rk-wortel, .rk-daun, .rk-ayam, .rk-tahu, .rk-tempe, .rk-bayang, .rk-kilau { animation: none; }
  }

  /* Alergi & libur */
  #resep-school-allergy-alert .mbg-card { border-radius: 18px; }
  .rs-libur { display: flex; flex-direction: column; align-items: center; gap: 16px; min-height: 0; padding: 22px; text-align: center; }
  @media (min-width: 640px) { .rs-libur { flex-direction: row; text-align: left; } }
  .rs-libur .sik-libur-art { width: 150px; height: 112px; flex-shrink: 0; }
  .rs-libur .sik-libur-sub { max-width: none; }
  /* v15.70: tabel tanpa scroll bar — tinggi mengikuti isi (halaman yang digulir), geser samping tetap bisa
     dengan touchpad, Shift + roda mouse, atau tarik dengan mouse */
  #view-resep-gizi .table-scroll-container { max-height: none; scrollbar-width: none; -ms-overflow-style: none; }
  #view-resep-gizi .table-scroll-container::-webkit-scrollbar { display: none; width: 0; height: 0; }
  #view-resep-gizi .table-scroll-container.bisa-geser { cursor: grab; }
  #view-resep-gizi .table-scroll-container.sedang-geser { cursor: grabbing; user-select: none; }
  #view-resep-gizi .table-scroll-container.sedang-geser * { cursor: grabbing !important; }
  /* v15.73: foto menu, galeri, kunci */
  .fm-kartu { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--c-line-soft); }
  @media (min-width: 768px) { .fm-kartu { flex-direction: row; align-items: center; } }
  .fm-kartu.fm-kosong { border: 1.5px dashed rgb(var(--tl-200,153 246 228)); background: linear-gradient(120deg, rgb(var(--tl-50,240 253 250)), #fff 60%); }
  .fm-kartu.fm-ada { border-color: #fde68a; background: linear-gradient(120deg, #fffbeb, #fff 60%); }
  .fm-ikon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); flex-shrink: 0; }
  .fm-ikon .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 1; }
  .fm-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .fm-teks strong { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; color: #0f172a; }
  .fm-teks strong .material-symbols-outlined { font-size: 17px; color: #b45309; font-variation-settings: 'FILL' 1; }
  .fm-teks > span { font-size: 12px; color: #556378; line-height: 1.45; }
  .fm-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-shrink: 0; }
  .fm-thumb { width: 96px; height: 72px; border-radius: 14px; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; background: #f1f5f9; color: #5f6c80; box-shadow: 0 6px 16px -10px rgb(15 23 42 / .5); transition: transform .15s ease; }
  .fm-thumb:hover { transform: scale(1.03); }
  .fm-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .fm-pil { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #f8fafc; color: #556378; font-size: 11.5px; }
  .fm-pil .material-symbols-outlined { font-size: 16px; color: #5f6c80; }
  .fm-terkunci #resep-main-tbody input { background-color: #f8fafc !important; box-shadow: none !important; color: #475569; cursor: not-allowed; }
  .fm-terkunci .rs-blok-btn { cursor: not-allowed; opacity: .75; }
  .fm-terkunci .rs-blok-btn .material-symbols-outlined { display: none; }
  .fm-kunci-teks { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #b45309; }
  .fm-kunci-teks .material-symbols-outlined { font-size: 15px; }
  .sik-badge-foto { display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; padding: 0 6px; height: 16px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 800; vertical-align: 1px; }
  .sik-badge-foto .material-symbols-outlined { font-size: 11px; }
  #siklus-matrix [data-kunci-foto] { cursor: not-allowed; }
  .mbg-modal.fm-lihat { background: rgb(15 23 42 / .82); }
  .fm-lihat-isi { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 10px; animation: popIn .18s ease both; }
  .fm-lihat-isi img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 18px; background: #0f172a; }
  .fm-lihat-muat { display: grid; place-items: center; gap: 8px; height: 50vh; color: #e2e8f0; font-size: 13px; }
  .fm-lihat-bawah { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #f8fafc; font-size: 13px; font-weight: 700; }
  .fm-galeri-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; font-size: 14px; color: #0f172a; }
  .fm-galeri-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  @media (min-width: 640px) { .fm-galeri-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .fm-galeri-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .fm-galeri-item { display: flex; flex-direction: column; gap: 6px; text-align: left; border-radius: 16px; padding: 6px; transition: background .15s ease, transform .15s ease; }
  .fm-galeri-item:hover { background: rgb(var(--tl-50,240 253 250)); transform: translateY(-2px); }
  .fm-galeri-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #f1f5f9; color: #5f6c80; }
  .fm-galeri-img img { width: 100%; height: 100%; object-fit: cover; }
  .fm-galeri-tgl { font-size: 12px; font-weight: 700; color: #334155; padding: 0 2px; }
  .fm-galeri-kosong { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: #556378; font-size: 12.5px; }
  .fm-galeri-kosong .material-symbols-outlined { font-size: 40px; color: rgb(var(--tl-200,153 246 228)); }
  .fm-galeri-kosong strong { color: #0f172a; font-size: 14px; }
  /* v15.73: foto profil / emoji buah */
  .avatar.is-foto { padding: 0; overflow: hidden; background: #e2e8f0; }
  .avatar.is-foto img { width: 100%; height: 100%; object-fit: cover; }
  .avatar.is-emoji { background: linear-gradient(135deg, #fef9c3, #ffe4e6); font-size: 18px; line-height: 1; }
  .pf-blok { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 16px; background: #f8fafc; }
  .pf-pratinjau { width: 64px; height: 64px; border-radius: 20px; font-size: 20px; flex-shrink: 0; }
  .pf-pratinjau.is-emoji { font-size: 34px; }
  .pf-buah { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .pf-buah-btn { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .12s ease, transform .12s ease; }
  .pf-buah-btn:hover { background: #fff; transform: scale(1.15); }
  .pf-buah-btn.is-aktif { background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); }

/* ---- View_Cost.html ---- */
  /* ---------- Cost & Order (v15.42) ---------- */
  #view-cost-order { --cs-radius: 20px; }
  .cs-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: var(--cs-radius); box-shadow: 0 1px 2px rgb(15 23 42 / .03); overflow: hidden; }
  .cs-card.hidden, .cs-dl.hidden { display: none !important; }
  .cs-top { display: flex; flex-direction: column; gap: 10px; }
  @media (min-width: 1024px) { .cs-top { flex-direction: row; align-items: center; justify-content: space-between; } }
  .cs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .cs-nav-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line-soft); color: #334155;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: background .15s ease, color .15s ease; }
  .cs-nav-btn:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .cs-nav-btn .material-symbols-outlined { font-size: 22px; }
  .cs-date { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-soft); background: #fff; font-size: 13px; font-weight: 700; color: #0f172a; }
  .cs-date:focus { outline: none; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  .cs-today-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 13px; border-radius: 999px; background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 700; }
  .cs-today-btn .material-symbols-outlined { font-size: 17px; }
  .cs-hari-ini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); }
  .cs-hari-ini::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--tl-500,20 184 166)); box-shadow: 0 0 0 3px rgb(var(--tl-100,204 251 241)); }
  .cs-hari-ini.is-lain::before { background: #94a3b8; box-shadow: 0 0 0 3px #e2e8f0; } /* v15.79: tanggal lain (bukan hari ini) */

  /* Status harga */
  #cost-lock-banner .cs-lock { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; }
  .cs-lock.is-terkunci { background: #f4f6f9; }
  .cs-lock.is-terbuka { background: #effcf8; }
  .cs-ico { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
  .cs-ico .material-symbols-outlined { font-size: 20px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

  /* Ringkasan */
  .cs-kpis { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
  @media (min-width: 640px) { .cs-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .cs-kpi { position: relative; overflow: hidden; padding: 16px 18px; }
  .cs-kpi::after { content: ''; position: absolute; right: -36px; top: -36px; width: 108px; height: 108px; border-radius: 50%; background: var(--cs-blob, #f1f5f9); opacity: .75; pointer-events: none; }
  .cs-kpi > * { position: relative; z-index: 1; }
  .cs-kpi-top { display: flex; align-items: center; gap: 10px; }
  .cs-kpi-label { font-size: 12px; font-weight: 700; color: var(--c-muted); }
  .cs-kpi-val { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--c-ink); margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
  .cs-kpi-sub { font-size: 11.5px; color: var(--c-muted); margin-top: 6px; }
  #cost-pagu-bar { height: 8px !important; border-radius: 999px; background: #eef2f6 !important; margin-top: 10px !important; }

  /* Alat tabel */
  .cs-tools { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--c-line-soft); }
  #view-cost-order .seg { border-radius: 999px; background: #f4f6f9; padding: 4px; }
  #view-cost-order .seg button { height: 32px; border-radius: 999px; font-size: 12px; }
  #view-cost-order .seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }
  .cs-search { position: relative; width: 100%; }
  @media (min-width: 1024px) { .cs-search { width: 280px; } }
  .cs-search .material-symbols-outlined { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #5f6c80; pointer-events: none; }
  .cs-search input { width: 100%; height: 40px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9; font-size: 13px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
  .cs-search input:hover { background: #eef1f5; }
  .cs-search input:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
  #cost-menu-filter button { border-radius: 14px; }

  /* Tabel */
  #cost-table { font-size: 12.5px; }
  #cost-table thead th { background: #f8fafc; font-size: 11px; font-weight: 700; color: #556378; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--c-line-soft); }
  #cost-table thead th .text-\[9\.5px\] { color: #5f6c80; }
  #cost-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #cost-table tbody tr:hover > td { background-color: #fcfdfe; }
  #cost-table tfoot td { background: #effcf8; color: rgb(var(--tl-800,17 94 89)) !important; border-top: 1px solid rgb(var(--tl-100,204 251 241)); font-size: 13px; }
  .cs-note { padding: 10px 18px; font-size: 11.5px; color: var(--c-muted); }

  /* Kosong: belum ada bahan (gambar lucu beranimasi) */
  #cost-table td.cs-kosong-td { padding: 26px 16px 30px; background: #fff !important; }
  .cs-kosong { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: cs-masuk .5s cubic-bezier(.2,.8,.2,1); }
  .cs-kosong-art { width: 170px; height: 120px; overflow: visible; }
  .cs-keranjang { transform-origin: 85px 96px; animation: cs-goyang 3.6s ease-in-out infinite; }
  .cs-sayur { animation: cs-lompat 2.4s ease-in-out infinite; }
  .cs-sayur.s2 { animation-delay: .3s; } .cs-sayur.s3 { animation-delay: .6s; }
  .cs-kilau { animation: cs-kedip 2.2s ease-in-out infinite; }
  .cs-kilau.k2 { animation-delay: 1.1s; }
  .cs-bayang { transform-origin: 85px 112px; animation: cs-bayang 3.6s ease-in-out infinite; }
  .cs-kosong-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 800; color: var(--c-ink); }
  .cs-kosong-sub { font-size: 12.5px; color: var(--c-muted); max-width: 320px; }
  .cs-kosong-aksi { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
  .cs-pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; transition: background .15s ease, transform .15s ease; }
  .cs-pill:hover { transform: translateY(-1px); }
  .cs-pill .material-symbols-outlined { font-size: 17px; }
  .cs-pill.is-utama { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  .cs-pill.is-utama:hover { background: rgb(var(--tl-800,17 94 89)); }
  .cs-pill.is-lembut { background: #f4f6f9; color: #334155; }
  .cs-pill.is-lembut:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  @keyframes cs-masuk { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes cs-goyang { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }
  @keyframes cs-lompat { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-10px); } }
  @keyframes cs-kedip { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
  @keyframes cs-bayang { 0%, 100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.88); opacity: .35; } }
  @media (prefers-reduced-motion: reduce) {
    .cs-kosong, .cs-keranjang, .cs-sayur, .cs-kilau, .cs-bayang { animation: none; }
  }

  /* v15.69: Rincian dua sisi — kiri porsi kecil, kanan porsi besar */
  #cost-table tr.rc-band th { text-align: center; }
  #cost-table th.rc-band-k { background: #eff8ff; color: #0369a1; font-weight: 800; border-left: 2px solid #fff; }
  #cost-table th.rc-band-b { background: #effcf8; color: rgb(var(--tl-700,15 118 110)); font-weight: 800; border-left: 2px solid #fff; }
  #cost-table th.rc-band-t { background: #f1f5f9; color: #334155; font-weight: 800; border-left: 2px solid #fff; }
  #cost-table th.rc-k { color: #0369a1; }
  #cost-table th.rc-b { color: rgb(var(--tl-700,15 118 110)); }
  #cost-table .rc-awal { border-left: 1px solid #e2e8f0; }
  #cost-table tbody td.rc-k { background-color: #fbfdff; }
  #cost-table tbody td.rc-b { background-color: #fbfefd; }
  #cost-table tbody td.rc-hpk { font-weight: 800; color: #0f172a; }
  .rc-ubah { width: 58px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; text-align: right; font: inherit; font-variant-numeric: tabular-nums; color: #475569;
    cursor: text; transition: background .15s ease, box-shadow .15s ease; }
  .rc-ubah:hover { background: #f1f5f9; }
  .rc-ubah:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); color: #0f172a; }
  .rc-ubah.is-ubah { color: #c2410c; font-weight: 800; background: #fff7ed; }
  #cost-table tr.rc-pisah > td { padding: 12px 12px 6px; background: #fff !important; font-size: 11px; color: #5f6c80; border-bottom: 1px solid var(--c-line-soft); }
  #cost-table tr.rc-pisah span { margin-right: 6px; font-size: 11.5px; font-weight: 800; color: #475569; }
  #cost-table tr.rc-lain-row > td { color: #556378; }
  #cost-table tfoot tr.rc-food td { background: #fff; color: #0f172a !important; border-top: 1px solid #e2e8f0; }
  .rc-fc { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .rc-fc.is-k { background: #e0f2fe; color: #075985; }
  .rc-fc.is-b { background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-800,17 94 89)); }
  .rc-fc-ket { margin-top: 2px; font-size: 11px; font-weight: 700; color: #5f6c80; }
  @media print { .rc-ubah { background: transparent !important; box-shadow: none !important; } }

  /* Rincian per masakan */
  .cs-fold > summary { list-style: none; }
  .cs-fold > summary::-webkit-details-marker { display: none; }
  .cs-fold > summary:hover { background: #fafcfd; }
  #cost-dish-breakdown .bg-teal-600 { background: linear-gradient(90deg, rgb(var(--tl-300,94 234 212)), rgb(var(--tl-600,13 148 136))); }
  #cost-dish-breakdown .h-1\.5 { height: 8px; }

  /* Custom (v15.48) */
  .cc-note { display: flex; flex-direction: column; gap: 10px; padding: 11px 14px; border-radius: 16px; background: #f6f8fa; color: #475569; font-size: 12.5px; line-height: 1.45; }
  @media (min-width: 900px) { .cc-note { flex-direction: row; align-items: center; justify-content: space-between; } }
  .cc-note.is-aktif { background: #effcf8; color: rgb(var(--tl-800,17 94 89)); }
  .cc-note.hidden { display: none !important; }
  .cc-berubah { display: block; margin-top: 2px; color: #c2410c; font-weight: 700; }
  .cc-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 13px; border-radius: 999px; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .15s ease, color .15s ease; }
  .cc-btn:hover { background: rgb(var(--tl-100,204 251 241)); }
  .cc-btn.is-utama { background: rgb(var(--tl-700,15 118 110)); color: #fff; }
  .cc-btn.is-utama:hover { background: rgb(var(--tl-800,17 94 89)); }
  .cc-btn.is-bahaya { color: #be123c; }
  .cc-btn.is-bahaya:hover { background: #ffe4e6; }
  .cc-pil { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 999px; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); font-size: 11px; font-weight: 800; }
  .cc-input { height: 32px; padding: 0 9px; border-radius: 10px; border: 0; background: #f6f8fa; box-shadow: inset 0 0 0 1px #e8edf2; color: #0f172a; font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
  .cc-input:hover { background: #f1f5f9; box-shadow: inset 0 0 0 1px #cbd5e1; }
  .cc-input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)), var(--focus); }
  .cc-input.cc-nama { text-align: left; text-transform: uppercase; }
  .cc-input.cc-nama::placeholder { text-transform: none; font-weight: 500; color: #5f6c80; }
  .cc-input.cc-satuan { text-align: left; padding-right: 26px; }
  .cc-input.cc-total { background: #effcf8; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-800,17 94 89)); font-weight: 800; }
  .cc-hapus { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #5f6c80; font-size: 18px; line-height: 1; transition: background .15s ease, color .15s ease; }
  .cc-hapus:hover { background: #ffe4e6; color: #be123c; }
  .cc-tambah { margin-left: 10px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 11.5px; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(var(--tl-200,153 246 228)); }
  .cc-tambah:hover { background: rgb(var(--tl-700,15 118 110)); color: #fff; }
  #view-cost-order .seg button#cost-view-custom.is-active { color: rgb(var(--tl-700,15 118 110)); }

  /* Status harga: kecil di bawah (v15.48) */
  .cs-lock-kecil { display: flex; align-items: flex-start; gap: 6px; padding: 0 4px; font-size: 11.5px; color: #556378; line-height: 1.45; }
  .cs-lock-kecil strong { color: #334155; font-weight: 700; }
  .cs-lock-kecil .material-symbols-outlined { font-size: 15px; color: #5f6c80; margin-top: 1px; }

  /* Unduh */
  .cs-dl { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; }
  @media (min-width: 640px) { .cs-dl { flex-direction: row; align-items: center; justify-content: space-between; } }
  /* v15.63–v15.64: kartu anggaran ringkas; surplus/defisit selalu di kanan anggaran */
  .cs-ang { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; }
  .cs-ang-tabel { padding: 4px 14px; min-width: 0; }
  .cs-ang-baris { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--c-line-soft); }
  .cs-ang-baris:last-child { border-bottom: 0; }
  .cs-ang-label { font-size: 11px; font-weight: 600; color: var(--c-muted); white-space: nowrap; }
  .cs-ang-n { font-size: 12.5px; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; text-align: right; min-width: 32px; }
  .cs-ang-rp { font-size: 12.5px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; min-width: 92px; }
  .cs-ang-baris.is-total .cs-ang-label { color: var(--c-ink); font-weight: 700; }
  .cs-ang-baris.is-total .cs-ang-n, .cs-ang-baris.is-total .cs-ang-rp { font-weight: 800; }
  .cs-ang-hasil { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 2px; padding: 10px 16px; min-width: 0; background: #ecfdf5; border-left: 1px solid #d1fae5; }
  @media (min-width: 640px) { .cs-ang-hasil { padding: 12px 22px; min-width: 220px; } }
  .cs-ang-hasil.is-defisit { background: #fff1f2; border-left-color: #ffe4e6; }
  .cs-ang-status { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #047857; }
  .cs-ang-selisih { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: clamp(19px, 4.6vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #059669; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cs-ang-hasil.is-defisit .cs-ang-status { color: #be123c; }
  .cs-ang-hasil.is-defisit .cs-ang-selisih { color: #e11d48; }
  .cs-ang-ket { font-size: 11px; color: var(--c-muted); }
  @media (max-width: 480px) { .cs-ang-ket { display: none; } .cs-ang-rp { min-width: 0; } .cs-ang-baris { gap: 8px; } }

/* ---- View_PO.html ---- */
@media print { .po-note-input { border: 0 !important; padding-left: 0 !important; margin-left: 0 !important; } .po-note-input::placeholder { color: transparent !important; } }

/* ---- View_PO.html ---- */
    /* ---------- PO Pengadaan (v15.45) ---------- */
    .po-pilih { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
    .po-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: var(--c-ink); }
    #po-date-label { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #effcf8; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 800; }
    #po-date-label:empty { display: none; }
    #po-quick button, #po-supplier-filter button { border-radius: 16px !important; padding: 8px 13px !important; }
    #po-quick button[aria-pressed="false"], #po-supplier-filter button[aria-pressed="false"] { border-color: transparent !important; background: #f4f6f9 !important; }
    #po-quick button[aria-pressed="false"]:hover, #po-supplier-filter button[aria-pressed="false"]:hover { background: #e6faf5 !important; }
    #po-quick button[aria-pressed="true"], #po-supplier-filter button[aria-pressed="true"] { box-shadow: 0 8px 16px -10px rgb(var(--tl-700,15 118 110) / .9); }
    #po-calendar button.h-10, #po-calendar div.h-10 { border-radius: 12px; }
    #po-calendar select.field { border-radius: 999px; }
    #view-po .seg { border-radius: 999px; background: #f4f6f9; padding: 4px; }
    #view-po .seg button { height: 32px; border-radius: 999px; font-size: 12px; }
    #view-po .seg button.is-active { background: #fff; color: rgb(var(--tl-700,15 118 110)); box-shadow: 0 2px 8px -3px rgb(15 23 42 / .2); }
    #po-pagu-bar { height: 8px !important; border-radius: 999px; background: #eef2f6 !important; margin-top: 10px !important; }

    /* Tabel */
    #po-table { font-size: 12.5px; }
    #po-table thead th { background: #f8fafc; font-size: 11px; font-weight: 700; color: #556378; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--c-line-soft); }
    #po-table tbody tr:hover > td { background-color: #fcfdfe; }
    #po-table tbody tr.bg-slate-50 > td { background: #f6fbfa !important; border-color: var(--c-line-soft) !important; }
    #po-table tbody tr.border-t > td { border-top-color: var(--c-line-soft); }
    #po-table tfoot td { background: #effcf8; color: rgb(var(--tl-800,17 94 89)) !important; border-top: 1px solid rgb(var(--tl-100,204 251 241)); font-size: 13px; }
    #po-table .po-note-input { border-radius: 8px; }

    /* Kosong: gambar lucu per hari */
    #po-table td.po-kosong-td { padding: 24px 16px 30px; background: #fff !important; }
    .po-kosong { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: po-masuk .5s cubic-bezier(.2,.8,.2,1); }
    .po-art { width: 220px; height: 150px; overflow: visible; }
    .po-kosong-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 800; color: var(--c-ink); }
    .po-kosong-sub { font-size: 12.5px; color: var(--c-muted); max-width: 360px; }
    .po-chip-hari { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #f4f6f9; color: #475569; font-size: 11px; font-weight: 700; }
    /* Senin: mobil box MBG */
    .po-truk { animation: po-goyang-truk .5s ease-in-out infinite; }
    .po-roda { transform-box: fill-box; transform-origin: center; animation: po-putar .7s linear infinite; }
    .po-jalan { animation: po-jalan .6s linear infinite; }
    .po-asap { animation: po-asap 1.4s ease-out infinite; opacity: 0; }
    .po-asap.a2 { animation-delay: .7s; }
    /* Selasa: sendok & garpu */
    .po-sendok { transform-origin: 82px 128px; animation: po-dansa 1.6s ease-in-out infinite; }
    .po-garpu { transform-origin: 138px 128px; animation: po-dansa 1.6s ease-in-out infinite reverse; }
    .po-not { animation: po-naik 2s ease-out infinite; opacity: 0; }
    .po-not.n2 { animation-delay: 1s; }
    /* Rabu: api biru */
    .po-api-luar { transform-origin: 110px 120px; animation: po-nyala 1.1s ease-in-out infinite; }
    .po-api-dalam { transform-origin: 110px 120px; animation: po-nyala 0.8s ease-in-out infinite reverse; }
    .po-percik { animation: po-naik 1.6s ease-out infinite; opacity: 0; }
    .po-percik.p2 { animation-delay: .55s; } .po-percik.p3 { animation-delay: 1.1s; }
    /* Kamis: anak berbaju adat makan */
    .po-anak { transform-origin: 110px 140px; animation: po-angguk 2.4s ease-in-out infinite; }
    .po-tangan { transform-origin: 132px 104px; animation: po-suap 2.4s ease-in-out infinite; }
    .po-pipi { animation: po-kunyah 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    /* Jumat: ahli gizi */
    .po-gizi { transform-origin: 80px 140px; animation: po-angguk 3s ease-in-out infinite; }
    .po-papan { transform-origin: 98px 96px; animation: po-tunjuk 3s ease-in-out infinite; }
    .po-bubble { transform-box: fill-box; transform-origin: left bottom; animation: po-pop 3s ease-in-out infinite; }
    .po-bayang { transform-origin: 110px 142px; animation: po-bayang 2.4s ease-in-out infinite; }
    @keyframes po-masuk { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
    @keyframes po-goyang-truk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
    @keyframes po-putar { to { transform: rotate(360deg); } }
    @keyframes po-jalan { from { transform: translateX(0); } to { transform: translateX(-24px); } }
    @keyframes po-asap { 0% { opacity: .7; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-18px, -10px) scale(1.4); } }
    @keyframes po-dansa { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateY(-6px); } }
    @keyframes po-naik { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
    @keyframes po-nyala { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(.94, 1.08); } 70% { transform: scale(1.05, .95); } }
    @keyframes po-angguk { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
    @keyframes po-suap { 0%, 15%, 100% { transform: rotate(0deg); } 40%, 55% { transform: rotate(78deg); } }
    @keyframes po-kunyah { 0%, 55%, 100% { transform: scale(1); } 65% { transform: scale(1.15); } 75% { transform: scale(.95); } 85% { transform: scale(1.12); } }
    @keyframes po-tunjuk { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
    @keyframes po-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
    @keyframes po-bayang { 0%, 100% { transform: scaleX(1); opacity: .55; } 50% { transform: scaleX(.88); opacity: .35; } }
    @media (prefers-reduced-motion: reduce) {
      .po-kosong, .po-truk, .po-roda, .po-jalan, .po-asap, .po-sendok, .po-garpu, .po-not, .po-api-luar, .po-api-dalam, .po-percik,
      .po-anak, .po-tangan, .po-pipi, .po-gizi, .po-papan, .po-bubble, .po-bayang { animation: none; }
      .po-asap, .po-not, .po-percik { opacity: .6; }
    }

    /* Status harga (paling bawah) */
    #po-lock-banner .cs-lock { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; }
    #po-lock-banner:empty { display: none; }

/* ---- View_FoodWaste.html ---- */
  /* ---------- Food Waste (v15.46) ---------- */
  #fw-calendar, #fw-form { padding: 18px; }
  .fw-nav-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #f4f6f9; color: #334155; transition: background .15s ease, color .15s ease; }
  .fw-nav-btn:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .fw-nav-btn.is-off { opacity: .4; cursor: not-allowed; }
  .fw-nav-btn.is-off:hover { background: #f4f6f9; color: #334155; }
  .fw-nav-btn .material-symbols-outlined { font-size: 21px; }
  .fw-select { height: 36px; border-radius: 999px; border: 1px solid transparent; background-color: #f4f6f9; padding: 0 30px 0 12px; font-size: 12.5px; font-weight: 800; color: #0f172a; }
  .fw-select:focus { outline: none; background-color: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }

  /* Sel tanggal */
  .fw-tgl { position: relative; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums;
    border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
  button.fw-tgl:hover { transform: translateY(-1px); }
  .fw-tgl.is-pilih { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 8px 16px -10px rgb(var(--tl-700,15 118 110) / .9); }
  .fw-tgl.is-isi { background: #e6faf5; color: rgb(var(--tl-800,17 94 89)); }
  .fw-tgl.is-isi:hover { border-color: rgb(var(--tl-300,94 234 212)); }
  .fw-tgl.is-kosong { background: #fff; color: #1e293b; border-color: #e2e8f0; }
  .fw-tgl.is-kosong:hover { border-color: rgb(var(--tl-300,94 234 212)); }
  .fw-tgl.is-tanpa-menu { background: #fff; color: #a3adbb; border: 1px dashed #e2e8f0; cursor: not-allowed; font-weight: 700; }
  .fw-tgl.is-mati { background: #f8fafc; color: #cbd5e1; font-weight: 600; cursor: default; }
  .fw-tgl.is-hari-ini { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(var(--tl-200,153 246 228)); }
  .fw-tgl.is-pilih.is-hari-ini { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(var(--tl-300,94 234 212)); }
  .fw-tgl-cek { position: absolute; top: 2px; right: 3px; font-size: 12px !important; color: rgb(var(--tl-500,20 184 166)); }
  .fw-tgl.is-pilih .fw-tgl-cek { color: rgb(var(--tl-100,204 251 241)); }
  .fw-tgl-titik { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #fda4af; }
  .fw-bar { height: 8px; border-radius: 999px; background: #eef2f6; overflow: hidden; }
  .fw-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--tl-300,94 234 212)), rgb(var(--tl-600,13 148 136))); }
  .fw-legenda { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11px; color: var(--c-muted); }
  .fw-legenda span { display: inline-flex; align-items: center; gap: 5px; }
  .fw-legenda i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
  .fw-legenda i.is-pilih { background: rgb(var(--tl-700,15 118 110)); }
  .fw-legenda i.is-isi { background: #e6faf5; border: 1px solid rgb(var(--tl-200,153 246 228)); }
  .fw-legenda i.is-kosong { background: #fff; border: 1px solid #cbd5e1; }
  .fw-legenda i.is-tanpa-menu { background: #fff; border: 1px dashed #cbd5e1; }
  .fw-legenda i.is-mati { background: #e2e8f0; }

  /* Isian sisa makanan */
  .fw-tgl-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 800; color: var(--c-ink); }
  .fw-baris { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-line-soft); }
  .fw-baris:last-child { border-bottom: 0; }
  .fw-ikon { width: 38px; height: 38px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
  .fw-ikon .material-symbols-outlined { font-size: 19px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
  .fw-ikon-karbohidrat { background: #fff1e6; color: #c2410c; }
  .fw-ikon-hewani { background: #ffe4e6; color: #be123c; }
  .fw-ikon-nabati { background: #ecfccb; color: #4d7c0f; }
  .fw-ikon-sayur { background: #dcfce7; color: #15803d; }
  .fw-ikon-buah { background: #e0f2fe; color: #0369a1; }
  #fw-form .fw-input { border-radius: 14px; background: #f6f8fa; border-color: transparent; }
  #fw-form .fw-input:hover { background: #f1f5f9; }
  #fw-form .fw-input:focus { background: #fff; border-color: rgb(var(--tl-300,94 234 212)); }
  #fw-summary { padding: 12px 14px; border-radius: 16px; background: #f6fbfa; }
  .fw-stat { padding: 12px 14px; border-radius: 16px; background: #f6f8fa; }
  #fw-table thead th { background: #f8fafc; font-size: 11px; font-weight: 700; color: #556378; border-bottom: 1px solid var(--c-line-soft); }
  #fw-table tbody tr { border-bottom: 1px solid var(--c-line-soft); }
  #fw-table tfoot td { background: #effcf8; color: rgb(var(--tl-800,17 94 89)); border-top: 1px solid rgb(var(--tl-100,204 251 241)); }
  #fw-table tfoot td.bg-slate-50 { background: #effcf8 !important; }
  .fw-sppg { height: 36px; border-radius: 999px; border: 1px solid transparent; background: #f4f6f9; padding: 0 14px; font-size: 12.5px; font-weight: 700; }
  .fw-sppg:focus { outline: none; background: #fff; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }

  /* Belum ada menu: gambar lucu (ganjil timbangan, genap cuci tangan) */
  .fw-kosong { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 4px 12px; animation: fw-masuk .5s cubic-bezier(.2,.8,.2,1); }
  .fw-art { width: 200px; height: 150px; overflow: visible; }
  .fw-kosong-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
  .fw-kosong.is-timbang .fw-kosong-chip { background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); }
  .fw-kosong.is-cuci .fw-kosong-chip { background: #e0f2fe; color: #0369a1; }
  .fw-kosong-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 16px; font-weight: 800; color: var(--c-ink); }
  .fw-kosong-sub { font-size: 12.5px; color: var(--c-muted); max-width: 360px; }
  .fw-mangkok { transform-origin: 100px 92px; animation: fw-naik-turun 2.4s ease-in-out infinite; }
  .fw-jarum { transform-origin: 100px 122px; animation: fw-jarum 2.4s ease-in-out infinite; }
  .fw-bayang { transform-origin: 100px 140px; animation: fw-bayang 2.4s ease-in-out infinite; }
  .fw-kilau { transform-box: fill-box; transform-origin: center; animation: fw-kedip 2.2s ease-in-out infinite; }
  .fw-kilau.k2 { animation-delay: 1.1s; }
  .fw-air { transform-origin: 102px 38px; animation: fw-air 1s ease-in-out infinite; }
  .fw-tetes { animation: fw-tetes 1s linear infinite; }
  .fw-tetes.t2 { animation-delay: .33s; } .fw-tetes.t3 { animation-delay: .66s; }
  .fw-tangan-kiri { animation: fw-gosok-kiri 1.2s ease-in-out infinite; }
  .fw-tangan-kanan { animation: fw-gosok-kanan 1.2s ease-in-out infinite; }
  .fw-busa { transform-box: fill-box; transform-origin: center; animation: fw-busa 1.2s ease-in-out infinite; }
  .fw-gelembung { animation: fw-gelembung 2.4s ease-out infinite; opacity: 0; }
  .fw-gelembung.g2 { animation-delay: .8s; } .fw-gelembung.g3 { animation-delay: 1.6s; }
  @keyframes fw-masuk { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes fw-naik-turun { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-18px); } 45% { transform: translateY(2px) scale(1.04, .96); } 60% { transform: translateY(0); } }
  @keyframes fw-jarum { 0%, 25%, 100% { transform: rotate(-50deg); } 48% { transform: rotate(40deg); } 58% { transform: rotate(18deg); } 70%, 85% { transform: rotate(26deg); } }
  @keyframes fw-bayang { 0%, 100% { transform: scaleX(1); opacity: .55; } 25% { transform: scaleX(.85); opacity: .35; } }
  @keyframes fw-kedip { 0%, 100% { opacity: .2; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.1); } }
  @keyframes fw-air { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.8); } }
  @keyframes fw-tetes { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
  @keyframes fw-gosok-kiri { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px) translateY(-2px); } }
  @keyframes fw-gosok-kanan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px) translateY(2px); } }
  @keyframes fw-busa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
  @keyframes fw-gelembung { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.2); } }
  @media (prefers-reduced-motion: reduce) {
    .fw-kosong, .fw-mangkok, .fw-jarum, .fw-bayang, .fw-kilau, .fw-air, .fw-tetes, .fw-tangan-kiri, .fw-tangan-kanan, .fw-busa, .fw-gelembung { animation: none; }
    .fw-gelembung { opacity: .7; }
  }

/* ---- View_SopJuknis.html ---- */
  /* ---------- Kontrol SOP dan Juknis (v15.47) ---------- */
  .sop-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: 20px; box-shadow: 0 1px 2px rgb(15 23 42 / .03); }
  .sop-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; font-weight: 800; color: var(--c-ink); }
  #sop-link { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: box-shadow .2s ease, transform .2s ease; }
  #sop-link:hover { box-shadow: 0 12px 28px -18px rgb(15 23 42 / .35); transform: translateY(-1px); }
  #sop-link::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: #fef3c7; opacity: .6; pointer-events: none; }
  #sop-link > * { position: relative; z-index: 1; }
  .sop-buka { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 13px; border-radius: 999px; background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 700; flex-shrink: 0; }

  .sop-tile { display: flex; align-items: flex-start; gap: 10px; min-height: 62px; padding: 12px 14px; text-align: left; border: 1px solid transparent; border-radius: 16px; background: #f6f8fa; color: #334155; font-size: 12.5px; font-weight: 700; line-height: 1.3; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
  .sop-tile:hover { background: #effcf8; transform: translateY(-1px); }
  .sop-tile.is-on { background: #effcf8; border-color: rgb(var(--tl-300,94 234 212)); color: rgb(var(--tl-900,19 78 74)); box-shadow: 0 8px 18px -14px rgb(var(--tl-700,15 118 110) / .9); }
  .sop-tile::before { content: ''; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; transition: background .15s; }
  .sop-tile.lebar { grid-column: 1 / -1; }
  .sop-tile.is-on::before { background: rgb(var(--tl-700,15 118 110)); box-shadow: 0 0 0 3px rgb(var(--tl-100,204 251 241)); }
  .sop-tile small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: #556378; }
  #view-sop-juknis .field { border-radius: 14px; background: #f6f8fa; border-color: transparent; }
  #view-sop-juknis .field:hover { background: #f1f5f9; }
  #view-sop-juknis .field:focus { background: #fff; border-color: rgb(var(--tl-300,94 234 212)); }
  .sop-pil { min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 999px; background: #f4f6f9; color: #334155; font-size: 12.5px; font-weight: 700; transition: background .15s, box-shadow .15s; }
  .sop-pil:hover { background: #e6faf5; }
  .sop-pil.is-on { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--tl-700,15 118 110) / .8); }
  .sop-cepat { min-height: 30px; padding: 4px 12px; border: 0; border-radius: 999px; background: #f4f6f9; color: #334155; font-size: 12px; font-weight: 700; }
  .sop-cepat:hover { background: #e6faf5; color: rgb(var(--tl-700,15 118 110)); }
  .sop-hal-list { max-height: 190px; overflow-y: auto; border: 1px solid var(--c-line-soft); border-radius: 14px; background: #fff; }
  .sop-hal-row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; font-size: 12.5px; cursor: pointer; }
  .sop-hal-row:last-child { border-bottom: 0; }
  .sop-hal-row:hover { background: #f8fafc; }
  .sop-hal-row input { width: 16px; height: 16px; flex: none; accent-color: rgb(var(--tl-700,15 118 110)); }
  .sop-hal-row b { min-width: 20px; color: #0f172a; }
  .sop-hal-row span { min-width: 0; overflow-wrap: anywhere; }
  #sop-identitas { border: 0; border-radius: 16px; background: #f6f8fa; padding: 10px 14px; }
  #sop-identitas > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  #sop-identitas > summary::-webkit-details-marker { display: none; }
  #sop-identitas > summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s; }
  #sop-identitas[open] > summary::after { transform: rotate(-135deg); }
  #sop-identitas .field { background: #fff; }
  #sop-cetak { height: 46px; border-radius: 999px; font-size: 13.5px; box-shadow: 0 10px 20px -12px rgb(var(--tl-700,15 118 110) / .9); }
  #sop-cetak:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
  #sop-halaman:not(:empty) { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #f4f6f9; color: #475569; font-weight: 700; }
  .sop-preview { min-width: 0; contain: inline-size; background: #eef2f6; background-image: radial-gradient(#dbe2ea 1px, transparent 1px); background-size: 14px 14px;
    border-radius: 18px; padding: 16px; overflow: hidden; }
  .sop-preview-in { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .sop-preview .sopf-page { box-shadow: 0 6px 22px rgba(15, 23, 42, .16); flex: none; }

  /* Format A4 mengikuti ukuran dokumen Word asli (satuan pt) */
  .sopf-page, .sopf-page * { box-sizing: border-box; margin: 0; padding: 0; border: 0; color: #000; letter-spacing: 0; text-transform: none; }
  .sopf-page { position: relative; width: 595.3pt; min-height: 841.5pt; padding: 35.4pt 72pt 0; background: #fff; font-family: 'Times New Roman', Tinos, 'Liberation Serif', serif; font-size: 12pt; font-weight: 400; line-height: 15.87pt; text-align: left; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sopf-page.prof-b { padding-top: 51.3pt; }
  /* v15.81: Formulir Penerimaan Bahan Baku — Arial, margin 1,5 cm, kop surat SPPG (gaya tabel ditulis inline agar sama dengan Word) */
  .sopf-page.prof-c { padding: 24pt 42.5pt 0; font-family: Arial, Arimo, 'Liberation Sans', Helvetica, sans-serif; font-size: 10pt; line-height: 1.25; }
  .sopf-page.prof-c td { font-size: 9.5pt; line-height: 1.2; vertical-align: middle; }
  .sopf-page.prof-c table { table-layout: auto; }
  .sopf-page table { border-collapse: collapse; table-layout: fixed; background: transparent; }
  .sopf-page td { border: .5pt solid #000; padding: 0 5.4pt; vertical-align: top; line-height: 13.8pt; font-size: 12pt; background: transparent; }
  .sopf-page b, .sopf-page .b { font-weight: 700; }
  .sopf-page i { font-style: italic; }
  .sopf-kop { width: 450.3pt; }
  .sopf-kop td { border: .5pt solid #000; font-size: 10pt; font-weight: 700; line-height: 11.5pt; padding: 3.6pt 3pt 0; }
  .sopf-kop td.a { border-right: 0; padding-right: 0; }
  .sopf-kop td.t { border-left: 0; border-right: 0; }
  .sopf-kop td.v { border-left: 0; padding-right: 0; font-weight: 400; }
  .dok-posyandu .sopf-kop td.a, .dok-posyandu .sopf-kop td.t, .dok-posyandu .sopf-kop td.v { padding-top: 4.9pt; }
  .dok-posyandu .sopf-kop tr:last-child td.t { padding-top: 0; vertical-align: middle; }
  .sopf-tabel td.ca { text-align: center; vertical-align: top; }
  .sopf-page.padat .sopf-kosong, .sopf-page.padat .sopf-rapat { height: 5pt; }
  .sopf-kop tr:first-child > td:nth-child(1), .sopf-kop tr:first-child > td:nth-child(2) { border-width: 1pt; padding: 0 5.4pt; vertical-align: middle; text-align: center; }
  .sopf-kop tr:first-child > td:nth-child(1) { padding: 0 0 0 1pt; }
  .sopf-kop img { display: block; width: 48.7pt; height: 51.9pt; margin: 0 auto; }
  .sopf-kop td.t { padding-left: 0; padding-right: 0; text-align: center; }
  .sopf-kop .k1 { display: block; line-height: 13.2pt; font-size: 10pt; font-weight: 700; }
  .sopf-kop .k2 { display: block; line-height: 18.5pt; font-size: 14pt; font-weight: 700; font-style: italic; }
  .prof-b .sopf-kop, .prof-b .sopf-kop td { font-family: Calibri, Carlito, sans-serif; line-height: 12.2pt; }
  .prof-b .sopf-kop .k1 { line-height: 14.05pt; }
  .prof-b .sopf-kop .k2 { line-height: 19.65pt; }
  .sopf-kop { border: 1pt solid #000; }
  .sopf-judul { margin-top: 13.2pt; text-align: center; font-weight: 700; }
  .prof-b .sopf-judul { margin-top: 12.7pt; }
  .sopf-kosong { height: 15.87pt; }
  .sopf-info { line-height: 13.8pt; margin-top: 1.3pt; margin-bottom: -.4pt; }
  .sopf-info.sempit { margin-top: .1pt; margin-bottom: 1.3pt; }
  .sopf-rapat { height: 14.07pt; }
  .sopf-info > div { padding-left: 144pt; text-indent: -144pt; }
  .sopf-info .l { display: inline-block; width: 144pt; text-indent: 0; }
  .sopf-info.sempit > div { padding-left: 108pt; text-indent: -108pt; line-height: 15.87pt; }
  .sopf-info.sempit .l { width: 108pt; }
  .sopf-tabel td.c { text-align: center; vertical-align: middle; }
  .sopf-tabel td.h { font-weight: 700; text-align: center; vertical-align: middle; }
  .sopf-catatan { padding-left: 36pt; text-align: justify; position: relative; }
  .sopf-catatan::before { content: ''; position: absolute; left: 19pt; top: 5.6pt; width: 4.6pt; height: 4.6pt; border-radius: 50%; background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .prof-a .sopf-catatan { margin-top: .9pt; }
  .sopf-skor { display: flex; }
  .sopf-skor span:first-child { width: 108pt; }
  .sopf-kanan { text-align: right; }
  .sopf-ttd { padding-left: 324pt; white-space: nowrap; }
  .sopf-param { margin-left: -8.8pt; width: 496.15pt; margin-top: 10.9pt; }
  .sopf-param td.hd { background: #244061 !important; color: #fff !important; font-weight: 700; text-align: center; }
  .sopf-param td.pm { background: #DBE5F1 !important; font-weight: 700; }
  #sop-print-root { display: none; }
  @media print {
    body.sop-printing > *:not(#sop-print-root) { display: none !important; }
    body.sop-printing { background: #fff !important; margin: 0 !important; padding: 0 !important; }
    body.sop-printing #sop-print-root { display: block !important; }
    #sop-print-root .sopf-page { break-after: page; page-break-after: always; break-inside: avoid; }
    #sop-print-root .sopf-page:last-child { break-after: auto; page-break-after: auto; }
  }

/* ---- View_Panduan.html ---- */
    /* ---------- Panduan & Verifikasi (v15.49) — tanpa ikon ---------- */
    .pd-card { background: #fff; border: 1px solid var(--c-line-soft); border-radius: 20px; box-shadow: 0 1px 2px rgb(15 23 42 / .03); padding: 20px; }
    .pd-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15.5px; font-weight: 800; color: var(--c-ink); letter-spacing: -.01em; }
    .pd-sub { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
    .pd-chip { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: #effcf8; color: rgb(var(--tl-700,15 118 110)); font-size: 11.5px; font-weight: 800; white-space: nowrap; }

    /* Langkah kerja */
    #panduan-steps, #dash-langkah-list { gap: 8px 16px; }
    .pd-step { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: #f8fafc; text-align: left; transition: background .15s ease, transform .15s ease; }
    .pd-step:hover { background: #effcf8; transform: translateY(-1px); }
    .pd-step-no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 13px; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)); }
    .pd-step-status { flex-shrink: 0; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
    .pd-step.is-ok .pd-step-no { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: none; }
    .pd-step.is-ok .pd-step-status { background: #dcfce7; color: #15803d; }
    .pd-step.is-cek .pd-step-status { background: #ffedd5; color: #c2410c; }
    .pd-step.is-belum .pd-step-status { background: #f1f5f9; color: #5f6c80; }

    /* Pertanyaan umum */
    .pd-faq { border-radius: 14px; transition: background .15s ease; }
    .pd-faq + .pd-faq { margin-top: 4px; }
    .pd-faq[open] { background: #f8fafc; }
    .pd-faq > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; font-size: 13px; font-weight: 700; color: #1e293b; border-radius: 14px; }
    .pd-faq > summary::-webkit-details-marker { display: none; }
    .pd-faq > summary:hover { background: #f8fafc; }
    .pd-faq > summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; flex-shrink: 0; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s ease; }
    .pd-faq[open] > summary::after { transform: rotate(-135deg); }
    .pd-faq > p { padding: 0 12px 12px; font-size: 12.5px; line-height: 1.6; color: #475569; }

    /* Cek hitungan */
    .pd-skor { min-width: 56px; height: 44px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17px; font-weight: 800; }
    .pd-skor.is-ok { background: #dcfce7; color: #15803d; }
    .pd-skor.is-salah { background: #ffe4e6; color: #be123c; }
    .pd-hasil { flex-shrink: 0; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
    .pd-hasil.is-ok { background: #dcfce7; color: #15803d; }
    .pd-hasil.is-salah { background: #ffe4e6; color: #be123c; }
    .pd-rincian > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgb(var(--tl-700,15 118 110)); }
    .pd-rincian > summary::-webkit-details-marker { display: none; }
    .pd-rincian > summary::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
    .pd-rincian[open] > summary::after { transform: rotate(-135deg); }
    .pd-tombol { display: flex; align-items: center; width: 100%; height: 42px; padding: 0 16px; border-radius: 14px; background: #f6f8fa; color: #1e293b; font-size: 12.5px; font-weight: 700; text-align: left; transition: background .15s ease, color .15s ease; }
    .pd-tombol:hover { background: #effcf8; color: rgb(var(--tl-700,15 118 110)); }
    .pd-tombol-kecil { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: #f4f6f9; color: #334155; font-size: 12px; font-weight: 700; }
    .pd-tombol-kecil:hover { background: #effcf8; color: rgb(var(--tl-700,15 118 110)); }

    /* Ide pengembangan */
    #panduan-ide { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
    @media (min-width: 900px) { #panduan-ide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .pd-ide { position: relative; display: flex; align-items: flex-start; min-height: 72px; padding: 14px 78px 14px 14px; border-radius: 18px; background: #f8fafc; border: 1px solid transparent; transition: border-color .2s ease, background .2s ease; animation: pd-masuk .35s ease-out; }
    #panduan-ide[data-tampil] .pd-ide { animation: none; }
    .pd-ide.is-teratas { background: linear-gradient(150deg, #fefce8 0%, #f0fdf4 100%); border-color: #d9f99d; }
    .pd-ide-atas { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; padding-top: 2px; }
    .pd-ide-no { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 12.5px; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)); }
    .pd-ide-teks { flex: 1; min-width: 0; padding-top: 3px; }
    .pd-ide-judul { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
    .pd-ide-isi { font-size: 13.5px; color: #556378; margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }

    /* Tumpukan buah: menumpuk tak beraturan di satu titik, di tengah kanan kotak ide (ikut tinggi teks).
       Diklik -> melebar jadi satu baris; buah terpilih besar, lainnya kecil. */
    .pd-buah-tumpuk { position: absolute; right: 16px; top: 50%; width: 46px; height: 40px; margin-top: -20px; z-index: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .pd-buah-tumpuk::before { content: ''; position: absolute; top: -6px; bottom: -6px; right: -8px; width: 208px; border-radius: 999px; background: rgb(255 255 255 / .97); box-shadow: 0 14px 30px -16px rgb(15 23 42 / .45), inset 0 0 0 1px #eef2f6; opacity: 0; transform: scaleX(.2); transform-origin: right center; pointer-events: none; transition: opacity .2s ease, transform .32s cubic-bezier(.34, 1.3, .64, 1); }
    .pd-buah-tumpuk.is-buka { z-index: 5; cursor: default; }
    .pd-buah-tumpuk.is-buka::before { opacity: 1; transform: none; pointer-events: auto; }
    .pd-buah { position: absolute; left: var(--x); top: var(--y); z-index: var(--z); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; transform: rotate(var(--r)); -webkit-tap-highlight-color: transparent; transition: left .36s cubic-bezier(.34, 1.3, .64, 1) var(--d), top .36s cubic-bezier(.34, 1.3, .64, 1) var(--d), transform .3s ease var(--d), background .15s ease; }
    .pd-buah-emoji { display: inline-block; font-size: 14px; line-height: 1; filter: grayscale(.6) drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgb(15 23 42 / .15)); opacity: .75; transform-origin: 50% 60%; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), filter .15s ease, opacity .15s ease, font-size .25s ease; }
    .pd-buah.is-ada .pd-buah-emoji { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 1px rgb(15 23 42 / .15)); opacity: 1; }
    .pd-buah-n { display: none; font-size: 11px; font-weight: 800; line-height: 1; color: #556378; font-variant-numeric: tabular-nums; }
    .pd-buah.is-on .pd-buah-emoji { font-size: 26px; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 3px 4px rgb(var(--tl-700,15 118 110) / .28)); opacity: 1; }
    .pd-ide-total { position: absolute; right: -7px; bottom: -9px; z-index: 12; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 11px; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)), 0 2px 6px -3px rgb(15 23 42 / .3); pointer-events: none; transition: opacity .15s ease; }
    .pd-buah-tumpuk:not(.is-buka):hover .pd-buah { transform: rotate(var(--r)) scale(1.1); }
    .pd-buah-tumpuk.is-buka .pd-buah { left: var(--bx); top: 3px; width: 32px; height: 34px; transform: none; }
    .pd-buah-tumpuk.is-buka .pd-buah-emoji { font-size: 16px; }
    .pd-buah-tumpuk.is-buka .pd-buah.is-on .pd-buah-emoji { font-size: 24px; }
    .pd-buah-tumpuk.is-buka .pd-buah-n { display: block; }
    .pd-buah-tumpuk.is-buka .pd-buah.is-on .pd-buah-n { color: rgb(var(--tl-700,15 118 110)); }
    .pd-buah-tumpuk.is-buka .pd-ide-total { opacity: 0; }
    .pd-buah-tumpuk.is-buka .pd-buah:hover, .pd-buah-tumpuk.is-buka .pd-buah:focus-visible { background: rgb(var(--tl-50,240 253 250)); }
    .pd-buah-tumpuk.is-buka .pd-buah:hover .pd-buah-emoji, .pd-buah-tumpuk.is-buka .pd-buah:focus-visible .pd-buah-emoji { filter: none; opacity: 1; transform: scale(1.45); }
    .pd-buah-tumpuk.is-buka .pd-buah.is-on:hover .pd-buah-emoji { transform: scale(1.1); }
    .pd-buah-tumpuk.is-buka .pd-buah:active .pd-buah-emoji { transform: scale(1.25); }
    @media (max-width: 480px) { .pd-ide { padding: 12px 68px 12px 12px; } .pd-buah-tumpuk { right: 12px; } .pd-ide-atas { gap: 8px; } .pd-ide-no { width: 24px; height: 24px; font-size: 11.5px; } .pd-ide-teks { padding-top: 1px; } .pd-ide-judul { font-size: 15px; } .pd-ide-isi { font-size: 13px; margin-top: 4px; } }
    .pd-buah.is-baru .pd-buah-emoji { animation: pd-pop .4s cubic-bezier(.34, 1.56, .64, 1); }

    /* Karakter buah yang muncul saat dipilih */
    .pd-karakter { position: fixed; z-index: 9999; width: 0; height: 0; pointer-events: none; }
    .pd-karakter-badan { position: absolute; left: -32px; top: -78px; width: 64px; height: 64px; animation: pd-karakter 1.15s cubic-bezier(.34, 1.56, .64, 1) forwards; }
    .pd-karakter-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 52px; line-height: 1; filter: drop-shadow(0 8px 10px rgb(15 23 42 / .18)); }
    .pd-karakter-wajah { position: absolute; left: 14px; top: 22px; width: 36px; height: 26px; }
    .pd-karakter-wajah .mata { animation: pd-kedip 1.15s steps(1) forwards; transform-origin: center; transform-box: fill-box; }
    .pd-karakter-kilau { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fde047; opacity: 0; animation: pd-kilau .8s ease-out .12s forwards; }
    .pd-karakter-kilau.k2 { background: rgb(var(--tl-300,94 234 212)); animation-delay: .18s; }
    .pd-karakter-kilau.k3 { background: #f9a8d4; animation-delay: .24s; }
    .pd-karakter-kilau.k4 { background: #a5b4fc; animation-delay: .3s; }
    @keyframes pd-karakter {
      0% { opacity: 0; transform: translateY(40px) scale(.2); }
      22% { opacity: 1; transform: translateY(0) scale(1.12) rotate(-6deg); }
      34% { transform: translateY(2px) scale(.96) rotate(5deg); }
      46% { transform: translateY(-2px) scale(1.02) rotate(-3deg); }
      58% { transform: translateY(0) scale(1) rotate(0); }
      78% { opacity: 1; transform: translateY(-8px) scale(1); }
      100% { opacity: 0; transform: translateY(-26px) scale(.85); }
    }
    @keyframes pd-kedip { 0%, 55% { transform: scaleY(1); } 58% { transform: scaleY(.1); } 64%, 100% { transform: scaleY(1); } }
    @keyframes pd-kilau { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--kx), var(--ky)) scale(1); } }
    .pd-ide-kosong { padding: 18px; border-radius: 16px; background: #f8fafc; color: #556378; font-size: 12.5px; text-align: center; }
    @keyframes pd-masuk { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
    @keyframes pd-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
    @media (prefers-reduced-motion: reduce) { .pd-ide, .pd-buah.is-baru .pd-buah-emoji { animation: none; } .pd-buah, .pd-buah-emoji, .pd-buah-n { transition: none; } .pd-karakter { display: none; } }

    /* Editor Admin */
    .pd-ed-info { grid-column: 1 / -1; padding: 10px 14px; border-radius: 14px; background: #f6f8fa; color: #475569; font-size: 12px; }
    .pd-ed-baris { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; background: #f8fafc; }
    .pd-ed-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 4px; background: #fff; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(var(--tl-100,204 251 241)); }
    .pd-ed-input { width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font-size: 12.5px; color: #1e293b; resize: vertical; }
    .pd-ed-input.is-judul { font-weight: 700; }
    .pd-ed-input:focus { outline: none; border-color: rgb(var(--tl-300,94 234 212)); box-shadow: var(--focus); }
    .pd-ed-aksi { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
    .pd-ed-btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; color: #334155; font-size: 11.5px; font-weight: 700; box-shadow: inset 0 0 0 1px #e2e8f0; }
    .pd-ed-btn:hover:not(:disabled) { background: #effcf8; color: rgb(var(--tl-700,15 118 110)); }
    .pd-ed-btn:disabled { opacity: .4; cursor: not-allowed; }
    .pd-ed-btn.is-hapus { color: #be123c; }
    .pd-ed-btn.is-hapus:hover { background: #ffe4e6; color: #be123c; }
    .pd-ed-btn.is-tambah { color: rgb(var(--tl-700,15 118 110)); box-shadow: inset 0 0 0 1px rgb(var(--tl-200,153 246 228)); }
    .pd-ed-btn.is-simpan { background: rgb(var(--tl-700,15 118 110)); color: #fff; box-shadow: none; padding: 0 18px; }
    .pd-ed-btn.is-simpan:hover:not(:disabled) { background: rgb(var(--tl-800,17 94 89)); color: #fff; }
    .pd-ed-kaki { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    #panduan-ide-ubah { align-self: flex-start; }
    #panduan-ide-ubah.hidden { display: none !important; }

/* ==========================================================================
   v15.88 — audit UI/UX (skill ui-ux-pro-max): konsep sama, dirapikan.
   Target sentuh minimal (WCAG 2.2: 24px; HP/layar sentuh: ±40px) & keterbacaan.
   ========================================================================== */
  .sik-add { min-height: 28px; padding: 4px 8px; }
  .pd-rincian > summary { min-height: 32px; }
  select.field { min-height: 28px; }
  .chip { line-height: 1.35; }
  @media (pointer: coarse) {
    .btn { min-height: 40px; }
    .btn-sm { min-height: 36px; }
    .btn-icon { min-width: 40px; }
    .field { min-height: 40px; }
    .sik-add { min-height: 34px; }
    .toast-close { min-width: 36px; min-height: 36px; }
  }
  /* Top bar HP: beri ruang untuk judul halaman (sebelumnya terpotong "Siklu…") */
  @media (max-width: 479px) {
    .app-topbar { gap: 6px; }
    .user-btn > .material-symbols-outlined { display: none; }
    .btn-cari { width: 40px; padding: 0; }
    .page-crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }
  .side-ciut { min-width: 32px; min-height: 32px; justify-content: center; border-radius: 8px; transition: background .15s ease, color .15s ease; }
  .side-ciut:hover { background: rgb(255 255 255 / .08); }

/* v15.89 — teks berlebih dibuang, tata letak dirapikan */
  .sr-podium.hidden, #dash-motivasi.hidden { display: none !important; }
  /* Standar Porsi: tombol kelompok tidak terpotong di layar lebar (dulu "Sayur", "Buah"… tersembunyi) */
  @media (min-width: 1280px) { #sp-category-pills { flex-wrap: wrap; overflow: visible; min-width: 0; row-gap: 6px; } }

/* ==========================================================================
   v15.90 — Standar Gizi, Standar Porsi, Siklus Menu: tanpa "bubble".
   Kotak isian menyatu dengan tabel (garis sel seperti lembar kerja), lebih ringkas.
   Fokus keyboard tetap jelas: garis teal di dalam sel.
   ========================================================================== */
  /* ---------- Standar Gizi ---------- */
  .sg-pill { padding: 0; background: none !important; border-radius: 0; gap: 5px; }
  .sg-count { height: auto; padding: 0; background: none; border-radius: 0; color: var(--c-muted); }
  .sg-uk { margin-left: 6px; font-size: 11px; font-weight: 700; }
  .sg-uk.is-k { color: #0369a1; }
  .sg-uk.is-b { color: rgb(var(--tl-700,15 118 110)); }

  .sg-table tbody tr.sg-sek-row > td { padding-top: 0; padding-bottom: 0; height: 44px; vertical-align: middle; }
  .sg-table tbody tr.sg-sek-row > td + td { border-left: 1px solid var(--c-line-soft); }
  .sg-table td.sg-td-isi { padding: 0; }
  .sg-table td.sg-td-isi .field { width: 100%; height: 44px; min-height: 44px; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 10px; font-weight: 600; }
  .sg-table td.sg-td-isi .field:hover { background: #f8fafc; }
  .sg-table td.sg-td-isi .field:focus, .sg-table td.sg-td-isi .field:focus-visible { background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); outline: none; }
  .sg-table td.sg-td-isi > div { padding: 0 10px; }

  /* Rincian jumlah orang: satu baris (SD dan Posyandu yang punya 3 isian tidak turun ke bawah lagi) */
  .sg-rinci { flex-wrap: nowrap; align-items: center; gap: 4px 14px; }
  .sg-rinci-item { flex-direction: row; align-items: center; gap: 6px; width: auto; white-space: nowrap; }
  .sg-rinci-item > span { padding-left: 0; }
  .sg-table .sg-rinci-item .cell-input, .sg-table .sg-rinci-item .cell-input[data-fk$="-kecil"], .sg-table .sg-rinci-item .cell-input[data-fk$="-besar"] {
    width: 56px; height: 30px; padding: 0 4px; border-radius: 0; background: transparent; color: var(--c-ink);
    box-shadow: inset 0 -1px 0 #cbd5e1; }
  .sg-table .sg-rinci-item .cell-input:hover { background: #f8fafc; box-shadow: inset 0 -2px 0 #94a3b8; }
  .sg-table .sg-rinci-item .cell-input:focus { background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); outline: none; }
  .sg-tipe-pos { height: auto; padding: 0 10px; border-radius: 0; background: none; color: #92400e; font-size: 12.5px; font-weight: 700; }

  .sg-alergi { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 6px; font-size: 12px; font-weight: 700; color: rgb(var(--tl-700,15 118 110)); border-radius: 6px; white-space: nowrap; }
  .sg-alergi .material-symbols-outlined { font-size: 16px; }
  .sg-alergi:hover { background: rgb(var(--tl-50,240 253 250)); }
  .sg-alergi.is-ada { color: #be123c; }
  .sg-alergi.is-ada:hover { background: #fff1f2; }

  .sg-sek-head td { padding: 8px 20px; }
  .sg-sek-n { float: none; display: inline; min-width: 0; height: auto; padding: 0; margin-left: 8px; background: none; box-shadow: none; color: rgb(var(--tl-700,15 118 110)); font-size: 12px; }
  .sg-sek-n::before { content: '• '; color: #94a3b8; }
  .sg-sek-kosong { padding: 10px 20px; }

  /* ---------- Standar Porsi ---------- */
  #sp-table tbody td { border-bottom: 1px solid var(--c-line-soft); }
  #sp-table tbody td + td, #sp-table thead tr + tr th + th { border-left: 1px solid var(--c-line-soft); }
  #sp-table .sp-tepi { border-left: 1px solid #e2e8f0 !important; }
  #sp-table td.sp-sel { padding: 0; height: 44px; vertical-align: middle; }
  #sp-table td.sp-ref-k { background: rgb(240 249 255 / .7); }
  #sp-table td.sp-ref-b { background: rgb(var(--tl-50,240 253 250) / .7); }
  #sp-table .cell-input, #sp-table td.sp-ref-k .cell-input, #sp-table td.sp-ref-b .cell-input {
    width: 100%; height: 44px; padding: 0 10px; border-radius: 0; background: transparent; box-shadow: none; text-align: center; }
  #sp-table td.sp-ref-k .cell-input { color: #075985; }
  #sp-table td.sp-ref-b .cell-input { color: rgb(var(--tl-800,17 94 89)); }
  #sp-table .cell-input:hover { background-color: rgb(241 245 249 / .8); box-shadow: none; }
  #sp-table .cell-input:focus, #sp-table td.sp-ref-k .cell-input:focus, #sp-table td.sp-ref-b .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); }
  #sp-table .cell-input.sp-kunci:hover { background: transparent; }
  #sp-table .cell-input.sp-kunci:focus { box-shadow: inset 0 0 0 1px #cbd5e1; }
  #sp-table td.sp-sel:has(.sp-bgn) .cell-input { height: 30px; }
  #sp-table .sp-bgn { margin: 0 0 5px; }
  #sp-table tbody tr:hover > td.sp-ref-k, #sp-table tbody tr:hover > td.sp-ref-b { background-color: rgb(241 245 249 / .6); }
  #sp-table .sp-tag, #sp-table .sp-tag.is-milik, #sp-table .sp-tag.is-luar { padding: 0; background: none; border-radius: 0; }
  #sp-table .sp-tag::before { content: '· '; color: #94a3b8; }
  #sp-table .sp-tag.is-milik { color: #047857; }
  #sp-table .sp-star, #sp-table .is-ref-k .sp-star, #sp-table .is-ref-b .sp-star { width: auto; height: auto; margin-left: 2px; background: none; border-radius: 0; }
  #sp-table tbody td:last-child { padding-top: 0; padding-bottom: 0; }
  .sp-legend-count { height: auto; padding: 0; background: none; border-radius: 0; }
  .sp-swatch { background: none; min-width: 0; padding: 0; height: auto; border-bottom: 1px solid #cbd5e1; border-radius: 0; }

  /* ---------- Siklus Menu ---------- */
  #siklus-matrix tbody td.sik-sel { padding: 0; border-left: 1px solid var(--c-line-soft); }
  #siklus-matrix tbody td.sik-sel-awal { border-top: 1px solid #e2e8f0; }
  #view-siklus-menu #siklus-matrix .cell-input {
    display: block; width: 100%; min-height: 36px; padding: 8px 10px; border-radius: 0; background-color: transparent; box-shadow: none; }
  #view-siklus-menu #siklus-matrix .cell-input:hover { background-color: #f8fafc; box-shadow: none; }
  #view-siklus-menu #siklus-matrix .cell-input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); }
  #view-siklus-menu #siklus-matrix .cell-input[readonly]:hover { background-color: transparent; }
  #siklus-matrix .sik-baris { border-top: 1px dashed #e2e8f0; }
  #siklus-matrix .sik-baris .sik-plus { margin-left: 6px; }
  #siklus-matrix .sik-baris .btn-icon { margin-right: 4px; }
  #siklus-matrix .sik-add { margin: 0; width: 100%; border-radius: 0; border-top: 1px dashed #e2e8f0; padding: 4px 10px; }
  #view-siklus-menu #siklus-matrix .sik-simpan { width: 100%; min-height: 36px; margin: 0; border: 0; border-radius: 0; background: transparent; }
  #view-siklus-menu #siklus-matrix .sik-simpan.is-antre { background: rgb(var(--tl-700,15 118 110)); color: #fff; }
  #view-siklus-menu #siklus-matrix .sik-simpan.is-antre:hover { background: rgb(var(--tl-800,17 94 89)); }
  #view-siklus-menu #siklus-matrix .sik-simpan.is-kirim { background: rgb(var(--tl-50,240 253 250)); }
  #view-siklus-menu #siklus-matrix .sik-simpan.is-gagal { background: #fff1f2; }
  #siklus-matrix tbody tr.sik-simpan-row > td { background-color: #fff; }
  .sik-libur-tgl { height: auto; min-height: 28px; padding: 0 4px; border: 0; border-radius: 6px; background: none; }
  .sik-libur-tgl:hover { background: #f1f5f9; }
  .sik-libur-tgl.is-on { background: none; }
  .sik-badge-today { height: auto; padding: 0; margin-left: 6px; background: none; border-radius: 0; }
  .sik-badge-foto { height: auto; padding: 0; margin-left: 6px; background: none; border-radius: 0; }
  .sik-open { height: 28px; padding: 0 6px; border-radius: 6px; background: none; color: rgb(var(--tl-700,15 118 110)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--tl-200,153 246 228)); }
  .sik-open:hover { background: rgb(var(--tl-50,240 253 250)); }

/* v15.91 — Standar Gizi: kolom porsi kecil/besar dihapus; jumlah orang sejajar rapi antarbaris
   (setiap isian punya lebar tetap: nama di kiri, angka di kanan, sehingga kolom angka lurus ke bawah) */
  .sg-rinci { display: grid; grid-template-columns: repeat(3, 148px); column-gap: 18px; align-items: center; }
  .sg-rinci-item { display: flex; justify-content: space-between; gap: 8px; width: 148px; }
  .sg-rinci-item > span { flex: 1; min-width: 0; }
  .sg-table .sg-rinci-item .cell-input, .sg-table .sg-rinci-item .cell-input[data-fk$="-kecil"], .sg-table .sg-rinci-item .cell-input[data-fk$="-besar"] { width: 58px; flex-shrink: 0; text-align: right; padding-right: 6px; }

/* v15.92 — Standar Porsi (Bandingkan): angka Standar BGN hanya muncul bila berbeda, tanpa tulisan "BGN" berulang */
  #sp-table .sp-bgn { font-size: 11px; font-weight: 600; color: #5f6c80; }
  #sp-table .sp-bgn[hidden] { display: none; }
  #sp-table td.sp-sel:has(.sp-bgn[hidden]) .cell-input { height: 44px; }
  .sp-legend-bgn { font-size: 11px; font-weight: 600; color: #5f6c80; font-variant-numeric: tabular-nums; border-bottom: 1px dotted #94a3b8; }

/* v15.93 — Cost & Order Custom: susunan kolom sama dengan Rincian, bisa tambah & hapus bahan */
  #cost-table .rc-ubah { color: #0f172a; box-shadow: inset 0 -1px 0 #cbd5e1; border-radius: 0; }
  #cost-table .rc-ubah:hover { background: #f8fafc; box-shadow: inset 0 -2px 0 #94a3b8; }
  #cost-table .rc-ubah:focus { box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); border-radius: 4px; }
  #cost-table .rc-ubah.cc-nama { width: 100%; min-width: 140px; text-align: left; text-transform: uppercase; font-weight: 800; padding-left: 0; }
  #cost-table .rc-ubah.cc-nama::placeholder { text-transform: none; font-weight: 500; color: #5f6c80; }
  #cost-table .rc-ubah.cc-sempit { width: 48px; }
  #cost-table .rc-ubah.cc-tebal { font-weight: 800; width: 66px; }
  #cost-table .rc-ubah.cc-rp { width: 96px; }
  .cc-unit { margin-left: 3px; font-size: 12px; font-weight: 600; color: #475569; }
  .cc-unit.cc-rp-awal { margin: 0 2px 0 0; font-weight: 800; color: #0f172a; }
  #cost-table .cc-hapus { width: 32px; height: 32px; border-radius: 8px; font-size: 0; }
  #cost-table .cc-hapus .material-symbols-outlined { font-size: 18px; }
  .cc-tambah { display: inline-flex; align-items: center; gap: 4px; height: 32px; }
  .cc-tambah .material-symbols-outlined { font-size: 16px; }
  @media print { #cost-table .rc-ubah { box-shadow: none !important; } }

/* v15.94 — Cost & Order: kotak isian tanpa garis bawah, menyatu dengan tabel (hanya warna lembut saat disorot) */
  #cost-table .rc-ubah, #cost-table .rc-ubah:hover { box-shadow: none; border-radius: 6px; }
  #cost-table .rc-ubah:hover { background: #f1f5f9; }
  #cost-table .rc-ubah:focus { background: #fff; box-shadow: inset 0 0 0 2px rgb(var(--tl-500,20 184 166)); }

/* v15.95 — SOP dan Juknis: tiga tautan (SOP, Juknis, Surat Edaran) */
  .sop-tautan { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: box-shadow .2s ease, transform .2s ease; }
  .sop-tautan:hover { box-shadow: 0 12px 28px -18px rgb(15 23 42 / .35); transform: translateY(-1px); }
  .sop-tautan::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: #fef3c7; opacity: .6; pointer-events: none; }
  .sop-tautan.is-juknis::after { background: #e0f2fe; }
  .sop-tautan.is-se::after { background: #ede9fe; }
  .sop-tautan > * { position: relative; z-index: 1; }
  @media (prefers-reduced-motion: reduce) { .sop-tautan, .sop-tautan:hover { transition: none; transform: none; } }

/* v15.95 — HACCP: segera hadir + hitung mundur */
  .hc-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    padding: 44px 20px 40px; background: #fff; border: 1px solid var(--c-line-soft); border-radius: 24px; box-shadow: 0 1px 2px rgb(15 23 42 / .03); }
  .hc-card::before { content: ''; position: absolute; left: 50%; top: -160px; width: 420px; height: 280px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--tl-100,204 251 241)), transparent); opacity: .9; pointer-events: none; }
  .hc-card > * { position: relative; }
  .hc-ikon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgb(var(--tl-100,204 251 241)); color: rgb(var(--tl-700,15 118 110)); }
  .hc-ikon .material-symbols-outlined { font-size: 34px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 40; }
  .hc-label { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--tl-700,15 118 110)); }
  .hc-judul { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--c-ink); }
  .hc-sub { max-width: 440px; font-size: 13px; line-height: 1.55; color: #475569; }
  .hc-tanggal { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 800; color: #0f172a; }
  .hc-tanggal .material-symbols-outlined { font-size: 20px; color: rgb(var(--tl-700,15 118 110)); }
  .hc-hitung { display: grid; grid-template-columns: repeat(4, minmax(64px, 96px)); gap: 10px; margin-top: 14px; }
  .hc-sel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
  .hc-angka { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 30px; font-weight: 800; line-height: 1; color: #0f172a; font-variant-numeric: tabular-nums; }
  .hc-satuan { font-size: 11px; font-weight: 700; color: #556378; text-transform: uppercase; letter-spacing: .06em; }
  .hc-status { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #556378; }
  @media (max-width: 479px) { .hc-judul { font-size: 32px; } .hc-hitung { gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; } .hc-angka { font-size: 24px; } .hc-satuan { font-size: 11px; letter-spacing: 0; } }
