/* =====================================================================
   2026-11-11 — Dashboard Owner (mockup) : shell, hero, kartu, panel
   ===================================================================== */
:root { --dash-r: 18px; }

/* ---------- sidebar ala mockup ---------- */
.sidebar { padding: 20px 14px 14px; background: linear-gradient(180deg, #4a0d6d 0%, #380a55 55%, #2c0643 100%); }
.brand-card {
  background: transparent; box-shadow: none; padding: 2px 4px 4px; gap: 12px; border-radius: 0;
  align-items: center;
}
.brand-card img { width: 58px; height: 58px; border-radius: 14px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.28)); }
.brand-card .bt { color: #fff; font-size: 15.5px; line-height: 1.18; font-weight: 800; }
.brand-card .bs { color: #d6b9e8; font-size: 10px; letter-spacing: .1px; margin-top: 4px; font-weight: 600; }
.side-menu { margin-top: 18px; flex: 0 0 auto; }
.side-link {
  padding: 10.5px 12px; border-radius: 10px; margin-bottom: 3px; font-size: 13.2px; font-weight: 600;
  color: #e7d7f2;
}
.side-link .svg-i { width: 19px; height: 19px; color: #d9bff0; }
.side-link:hover { background: rgba(255,255,255,.10); }
.side-link.active {
  background: linear-gradient(94deg, #e21f6a 0%, #f0448c 100%);
  box-shadow: 0 10px 22px rgba(226,31,106,.38);
}
.side-link.active .svg-i { color: #fff; }
.side-chev { margin-left: auto; opacity: .7; transition: transform .18s ease; }
.side-parent { width: 100%; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.side-parent.open .side-chev { transform: rotate(90deg); }
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 0 0 5px 12px; padding-left: 11px; border-left: 1px solid rgba(255,255,255,.16); }
.side-sub[hidden] { display: none; }
.side-child { font-size: 12.5px; padding: 8px 10px; color: #dbc8ea; }
.side-child .svg-i { width: 16px; height: 16px; color: #c9a8de; }
.side-link .badge-dot { margin-left: 6px; }
.side-deco { margin-top: auto; padding-top: 12px; pointer-events: none; flex: 0 0 auto; }
.side-deco img { width: 118%; max-width: none; margin-left: -9%; opacity: .95; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
body.side-collapsed .sidebar { display: none; }
body.side-collapsed .top-menu { color: var(--p600); }

/* ---------- topbar ---------- */
.topbar { height: 70px; background: transparent; border-bottom: 0; backdrop-filter: none; padding: 0 26px; gap: 12px; }
.top-menu {
  width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; color: #5b4172;
  display: grid; place-items: center;
}
.top-menu:hover { background: #f1e8fa; color: var(--p600); }
.top-spacer { flex: 1; }
.gudang-pick, .range-pick {
  height: 44px; border-radius: 12px; border: 1.5px solid #ece2f6; background: #fff;
  box-shadow: 0 4px 14px rgba(74,16,106,.05); padding: 0 14px; font-size: 13px; color: #3b2450;
}
.gudang-pick .svg-i, .range-pick .svg-i { color: var(--p600); width: 18px; height: 18px; }
.gudang-pick .svg-i:last-child, .range-pick .svg-i:last-child { color: #9c86b1; width: 15px; height: 15px; margin-left: 4px; }
.range-pick { font-weight: 700; color: #3b2450; }
.range-pick:hover { border-color: #d9bcef; }
.top-right { gap: 14px; }
.top-right .icon-btn { border: 0; background: transparent; width: 42px; height: 42px; color: #4a3358; }
.top-right .icon-btn:hover { background: #f3e9fb; }
.user-chip { border: 0; background: transparent; padding: 0; gap: 10px; }
.user-chip:hover { background: transparent; }
.user-chip .avatar { width: 42px; height: 42px; font-size: 14px; box-shadow: 0 6px 14px rgba(162,28,175,.25); }
.user-chip .un { font-size: 13px; }
.user-chip .ur { font-size: 11px; }
.user-chip .svg-i { color: #9c86b1; width: 16px; height: 16px; }
.content { padding: 4px 26px 40px; }
.m-gudang { display: none; }

/* ---------- hero ---------- */
.dash-wrap { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hero {
  min-width: 0; position: relative; overflow: hidden; border-radius: 22px; min-height: 172px;
  padding: 28px 34px; display: flex; align-items: center;
  background: linear-gradient(96deg, #ffffff 0%, #fdf9ff 42%, #f8eefc 68%, #f7e9fb 100%);
  border: 1px solid #f3e9fa;
  box-shadow: 0 10px 28px rgba(74,16,106,.05);
}
.hero::after {
  content: ""; position: absolute; right: -70px; top: -90px; width: 520px; height: 400px; border-radius: 50%;
  background:
    radial-gradient(48% 52% at 62% 48%, rgba(244,171,214,.55) 0%, rgba(244,171,214,0) 70%),
    radial-gradient(46% 50% at 72% 62%, rgba(196,151,240,.5) 0%, rgba(196,151,240,0) 72%),
    radial-gradient(40% 44% at 84% 34%, rgba(255,214,234,.5) 0%, rgba(255,214,234,0) 74%);
  filter: blur(2px);
}
.hero-tx { position: relative; z-index: 2; max-width: 58%; }
.hero h1 { margin: 0; color: #3f0f57; font-size: 34px; font-weight: 800; letter-spacing: -.9px; }
.hero p { margin: 9px 0 0; color: #7d6a90; font-size: 14.5px; font-weight: 500; }
.hero-scope {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: #fff; border: 1px solid #eedcf8;
  color: #7b2a9c; font-size: 11.5px; font-weight: 700; box-shadow: 0 4px 12px rgba(74,16,106,.05);
}
.hero-scope .svg-i { width: 15px; height: 15px; }
.hero-img {
  position: absolute; right: 10px; bottom: -10px; height: 196px; width: auto; z-index: 1;
  filter: drop-shadow(0 18px 24px rgba(74,16,106,.18));
}

/* ---------- 6 kartu statistik ---------- */
.stats6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.stat {
  display: block; min-width: 0; position: relative; overflow: hidden; background: #fff; border: 1px solid #f0e8f8;
  border-radius: 16px; padding: 14px 13px 12px; box-shadow: 0 8px 22px rgba(74,16,106,.06);
}
.stat::after { display: none; }
.stat .st-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stat .st-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.stat .st-ic .svg-i { width: 18px; height: 18px; }
.stat .st-lb { font-size: 10.9px; font-weight: 700; color: #6d5a80; line-height: 1.2; min-width: 0; }
.stat .st-v { font-size: 23px; font-weight: 800; letter-spacing: -.8px; margin-top: 9px; color: #241733; white-space: nowrap; }
.stat .st-tr { margin-top: 6px; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.stat .st-tr b { font-weight: 800; }
.stat .st-tr span { font-weight: 600; color: #9a8ba8; }
.stat .st-tr.up b { color: #16a34a; }
.stat .st-tr.down b { color: #ef4444; }
.stat .st-tr.flat { color: #a294b3; }
.s-violet .st-ic { background: linear-gradient(140deg, #8b5cf6, #6d28d9); color: #fff; }
.s-green .st-ic { background: linear-gradient(140deg, #34d399, #15803d); color: #fff; }
.s-blue .st-ic { background: linear-gradient(140deg, #60a5fa, #1d4ed8); color: #fff; }
.s-pink .st-ic { background: linear-gradient(140deg, #f472b6, #db2777); color: #fff; }
.s-orange .st-ic { background: linear-gradient(140deg, #fbbf24, #d97706); color: #fff; }
.s-red .st-ic { background: linear-gradient(140deg, #f87171, #dc2626); color: #fff; }
.stat .st-v { font-size: 24px; }

/* ---------- panel umum ---------- */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr); gap: 16px; }
.dash-cols2 { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .88fr); gap: 16px; }
.dash-wrap .panel { background: #fff; border: 1px solid #f0e8f8; border-radius: var(--dash-r); padding: 18px 18px 16px; box-shadow: 0 10px 26px rgba(74,16,106,.06); }
.p-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p-head h3 { margin: 0; font-size: 14.6px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; color: #2b173c; }
.p-head h3 .svg-i { width: 18px; height: 18px; color: var(--p600); }
.p-legend { margin-left: auto; display: flex; gap: 14px; font-size: 11px; font-weight: 700; color: #6d5a80; }
.p-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.blue { background: #3b82f6; } .dot.pink { background: #f472b6; }
.p-link { margin-left: auto; font-size: 11.5px; font-weight: 800; color: #e01f73; display: inline-flex; gap: 4px; }
.p-link:hover { text-decoration: underline; }

/* ---------- grafik ---------- */
.chart-panel { display: flex; flex-direction: column; }
.ch-svg { width: 100%; height: 258px; display: block; }
.ch-svg .ch-ax { font-size: 9.5px; fill: #9a8ba8; font-weight: 600; font-family: var(--font); }

/* ---------- stok per gudang ---------- */
.gd-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gd-list2 { flex: 1; min-width: 0; display: grid; gap: 10px; }
.gd-row2 { display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px; align-items: center; gap: 8px; }
.gd-ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.gd-ic .svg-i { width: 14px; height: 14px; }
.gd-line { display: flex; align-items: baseline; gap: 5px; font-size: 10.9px; min-width: 0; white-space: nowrap; }
.gd-line b { color: #3b2450; font-weight: 800; white-space: nowrap; }
.gd-line span { color: #7a6790; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gd-bar { height: 7px; border-radius: 99px; background: #f2ebfa; margin-top: 4px; overflow: hidden; }
.gd-bar i { display: block; height: 100%; border-radius: 99px; }
.gd-num { text-align: right; }
.gd-num b { font-size: 12.4px; font-weight: 800; display: block; line-height: 1.2; }
.gd-num span { font-size: 10.5px; color: #9a8ba8; font-weight: 700; }
.donut-wrap { position: relative; width: 148px; height: 148px; flex: 0 0 148px; }
.donut { width: 148px; height: 148px; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font-size: 15.5px; font-weight: 800; letter-spacing: -.5px; display: block; }
.donut-c span { font-size: 9.8px; color: #9a8ba8; font-weight: 700; }
.donut-wrap, .donut { width: 122px; height: 122px; flex: 0 0 122px; }

/* ---------- tabel stok menipis ---------- */
.mn-wrap { overflow-x: auto; }
.mn-tbl { width: 100%; border-collapse: collapse; }
.mn-tbl th {
  text-align: left; font-size: 10.5px; text-transform: none; letter-spacing: .2px; color: #8f7ea3;
  font-weight: 800; padding: 8px 8px; border-bottom: 1px solid #f1eaf8; white-space: nowrap;
}
.mn-tbl td { padding: 9px 8px; border-bottom: 1px solid #f7f2fc; font-size: 11.8px; color: #4b3a5e; vertical-align: middle; }
.mn-tbl tr:last-child td { border-bottom: 0; }
.mn-no { color: #9a8ba8; font-weight: 700; width: 26px; }
.mn-nm { display: flex; align-items: center; gap: 9px; min-width: 168px; }
.mn-nm img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: #f8f4fd; padding: 2px; flex: 0 0 auto; }
.mn-nm b { display: block; font-size: 12px; font-weight: 800; color: #2b173c; line-height: 1.2; }
.mn-nm span { display: block; font-size: 10px; color: #9a8ba8; font-weight: 600; }
.mn-gd { font-weight: 800; color: #5b4172; white-space: nowrap; }
.mn-qt { white-space: nowrap; font-weight: 800; color: #3b2450; }
.mn-qt em { font-style: normal; font-size: 10px; color: #9a8ba8; font-weight: 600; }
.mn-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 10.2px; font-weight: 800; white-space: nowrap; }
.mn-pill.warn { background: #fdf1dc; color: #b45309; }
.mn-pill.danger { background: #fdeaea; color: #dc2626; }
.empty-min { color: #9a8ba8; font-size: 12px; padding: 18px 6px; text-align: center; }

/* ---------- aktivitas ---------- */
.ak-list { display: grid; gap: 2px; }
.ak-row { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 10px; }
.ak-row:hover { background: #faf5fe; }
.ak-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.ak-ic .svg-i { width: 17px; height: 17px; }
.ak-ic.green { background: #e6f7ec; color: #16a34a; }
.ak-ic.pink { background: #fde8f1; color: #e01f73; }
.ak-ic.violet { background: #f1e6fb; color: #8b2fc9; }
.ak-ic.blue { background: #e7f0ff; color: #2563eb; }
.ak-tx { flex: 1; min-width: 0; }
.ak-tx b { display: block; font-size: 11.8px; font-weight: 800; color: #2b173c; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-tx span { display: block; font-size: 10.6px; color: #8f7ea3; font-weight: 600; margin-top: 2px; }
.ak-time { font-size: 10.2px; color: #a294b3; font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- aksi cepat ---------- */
.quick {
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #f0e8f8;
  border-radius: var(--dash-r); padding: 16px 20px; box-shadow: 0 10px 26px rgba(74,16,106,.06);
}
.q-tx { min-width: 210px; }
.q-tx b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.q-tx span { display: block; font-size: 11.4px; color: #8f7ea3; font-weight: 600; margin-top: 2px; max-width: 210px; }
.q-btns { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.q-btn {
  height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font-size: 12.8px; font-weight: 800; box-shadow: 0 10px 20px rgba(40,8,60,.16);
}
.q-btn .svg-i { width: 18px; height: 18px; }
.q-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.q-btn.green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.q-btn.pink { background: linear-gradient(135deg, #e01f73, #f43f8e); }
.q-btn.violet { background: linear-gradient(135deg, #7b2ff7, #a855f7); }
.q-btn.blue { background: linear-gradient(135deg, #2563eb, #3b82f6); }

/* ---------- ranking laris/jarang ---------- */
.rk-list { display: grid; gap: 2px; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 9px; }
.rk-row:hover { background: #faf5fe; }
.rk-row img { width: 30px; height: 30px; object-fit: contain; background: #f8f4fd; border-radius: 8px; padding: 2px; }
.rk-row div { flex: 1; min-width: 0; }
.rk-row b { display: block; font-size: 11.8px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row span { display: block; font-size: 10.2px; color: #9a8ba8; font-weight: 600; }
.rk-row em { font-style: normal; font-size: 13px; font-weight: 800; color: #16a34a; }
.rk-row em.low { color: #b45309; }

/* ---------- mobile ---------- */
@media (max-width: 1180px) {
  .stats6 { grid-template-columns: repeat(3, 1fr); }
  .dash-cols, .dash-cols2 { grid-template-columns: minmax(0, 1fr); }
  .quick { flex-direction: column; align-items: stretch; gap: 12px; }
  .q-tx span { max-width: none; }
}
@media (max-width: 900px) {
  body { background: #f8f5fc; }
  .topbar { display: none; }
  .content { padding: 12px 13px 92px; }
  .m-head {
    display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #fff;
    border-bottom: 0; position: sticky; top: 0; z-index: 25;
  }
  .m-head .brand-mini { flex: 1; justify-content: center; }
  .m-head .brand-mini img { width: 32px; height: 32px; border-radius: 9px; }
  .m-head .brand-mini b { font-size: 12.2px; }
  .m-head .brand-mini span { font-size: 9px; }
  .m-head .spacer { display: none; }
  .m-gudang { display: block; padding: 10px 13px 0; }
  .m-gudang .gudang-pick { width: 100%; justify-content: flex-start; height: 42px; background: #fff; }
  .m-gudang .gudang-pick .svg-i:last-child { margin-left: auto; }
  .dash-wrap { gap: 12px; }
  .hero { min-height: 0; border-radius: 18px; padding: 20px 18px 22px; }
  .hero-tx { max-width: 100%; }
  .hero h1 { font-size: 24px; letter-spacing: -.5px; }
  .hero p { font-size: 12px; margin-top: 5px; }
  .hero-scope { margin-top: 12px; height: 27px; font-size: 10.2px; padding: 0 11px; }
  .hero-img { height: 112px; right: -8px; bottom: -6px; opacity: .72; }
  .stats6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat { padding: 11px 11px 10px; border-radius: 13px; }
  .stat .st-ic { width: 30px; height: 30px; border-radius: 9px; }
  .stat .st-ic .svg-i { width: 16px; height: 16px; }
  .stat .st-lb { font-size: 10.2px; }
  .stat .st-v { font-size: 19px; margin-top: 8px; letter-spacing: -.5px; }
  .stat .st-tr { display: none; }
  .dash-wrap .panel { padding: 13px 12px 12px; border-radius: 15px; }
  .p-head h3 { font-size: 12.6px; }
  .p-head h3 .svg-i { width: 16px; height: 16px; }
  .p-link { font-size: 10.4px; }
  .p-legend { display: none; }
  .ch-svg { height: 190px; }
  .gd-body { flex-direction: column; align-items: stretch; }
  .gd-list2 { order: 2; }
  .donut-wrap { order: 1; margin: 2px auto 8px; }
  .gd-row2 { grid-template-columns: 26px 1fr 62px; gap: 8px; }
  .gd-ic { width: 26px; height: 26px; border-radius: 8px; }
  .gd-line { font-size: 10.8px; }
  .gd-num b { font-size: 11.6px; }
  .mn-tbl th, .mn-tbl td { padding: 7px 6px; }
  .mn-nm img { width: 26px; height: 26px; }
  .mn-nm b { font-size: 11px; }
  .ak-time { font-size: 9.4px; }
  .q-btns { grid-template-columns: 1fr 1fr; gap: 9px; }
  .q-btn { height: 42px; font-size: 11.2px; border-radius: 11px; }
  .q-tx b { font-size: 13.5px; }
  .q-tx span { font-size: 10.6px; }
  .m-nav { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 0; box-shadow: 0 -10px 26px rgba(50,15,75,.1); }
  .m-nav a { font-size: 9.4px; gap: 2px; padding: 5px 2px; border-radius: 12px; }
  .m-nav a.on { color: #e01f73; }
  .m-nav a.on .svg-i { stroke-width: 2.2; }
}

/* bottom nav: 5 item tidak boleh melebarkan viewport */
.m-nav { min-width: 0; width: 100%; left: 0; right: 0; }
.m-nav a { flex: 1 1 0; min-width: 0; justify-content: center; }
.m-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .m-head { overflow: hidden; }
  .m-head .brand-mini { min-width: 0; overflow: hidden; }
  .m-head .brand-mini b, .m-head .brand-mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
}

/* grid track boleh menyusut di bawah min-content */
.dash-wrap .panel { min-width: 0; }
.ak-list, .rk-list, .gd-list2 { grid-template-columns: minmax(0, 1fr); }
.ak-row { min-width: 0; }
.ak-tx { flex: 1 1 0; }
.ak-time { flex: 0 0 auto; }

/* --- fitur lama tetap ada, gaya baru --- */
.side-label { color: #b58bd3; font-size: 9.2px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; margin: 14px 12px 6px; }
.side-label:first-child { margin-top: 4px; }
.hero-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-actions a {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26); color: #fff;
  font-size: 10.6px; font-weight: 700;
}
.hero-actions a:hover { background: rgba(255,255,255,.24); }
.hero-actions .svg-i { width: 14px; height: 14px; }
.gd-row2 { align-items: start; }
.gd-meta2 { font-size: 9.4px; color: #9a8ba8; font-weight: 600; margin-top: 4px; line-height: 1.5; }
.gd-meta2 .in { color: #16a34a; font-style: normal; font-weight: 700; }
.gd-meta2 .out { color: #e01f73; font-style: normal; font-weight: 700; }
.gd-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #ece0f7; padding-top: 7px; margin-top: 2px; font-size: 10.6px; color: #7a6790; font-weight: 700; }
.gd-total b { font-size: 12px; color: #2b173c; }
.st-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 9.4px; color: #7a6790; font-weight: 700; }
.st-legend span { display: inline-flex; align-items: center; gap: 4px; }
.st-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.st-legend b { color: #2b173c; }
.q-btns.duo { grid-template-columns: 1fr 1fr; }
.nf-panel { margin-top: 0; }
.nf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.nf-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; min-width: 0; }
.nf-row.unread { background: #fdf7ff; }
.nf-row .ak-tx b { font-size: 11.6px; }
.nf-row time { font-size: 9.8px; color: #a294b3; font-weight: 700; white-space: nowrap; }
.ak-ic.orange { background: #fff1dd; color: #f59e0b; }
.ak-ic.red { background: #fdeaea; color: #ef4444; }
@media (max-width: 900px) {
  .nf-list { grid-template-columns: minmax(0, 1fr); }
  .nf-row time { font-size: 9px; }
  .gd-meta2 { font-size: 8.8px; }
  .hero-actions a { height: 27px; font-size: 9.6px; padding: 0 10px; }
  .side-label { margin: 12px 10px 5px; }
}
.gd-meta2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid #f4edfa; }
.m-gudang { display: flex; gap: 8px; align-items: center; }
.m-gudang .gudang-pick { flex: 1 1 auto; min-width: 0; }
.m-gudang .gudang-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-gudang .range-pick { flex: 0 0 auto; padding: 0 10px; font-size: 11px; gap: 6px; }
.m-gudang .range-pick .svg-i { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .m-gudang { display: flex; }
  .hero-img { height: 96px; opacity: .34; bottom: 0; }
}
@media (min-width: 901px) { .m-gudang { display: none; } }
.m-gudang .range-pick { font-size: 10.2px; padding: 0 9px; letter-spacing: -.1px; }
/* modal pilih periode */
.pick-list { display: grid; gap: 10px; }
.pick-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border: 1.5px solid #efe6f8; border-radius: 13px; background: #fff; }
.pick-item .ic { width: 34px; height: 34px; border-radius: 10px; background: #f5ecfd; color: #a21caf; display: grid; place-items: center; flex: 0 0 auto; }
.pick-item .ic .svg-i { width: 17px; height: 17px; }
.pick-item .t { display: block; font-weight: 800; font-size: 13px; color: #2b173c; }
.pick-item .s { display: block; font-size: 10.6px; color: #8f7ea3; font-weight: 600; margin-top: 2px; }
.pick-item .radio { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #ddcfea; flex: 0 0 auto; }
.pick-item.on { border-color: #c026d3; background: #fdf6ff; }
.pick-item.on .radio { border-color: #c026d3; background: #c026d3; box-shadow: inset 0 0 0 3px #fff; }

/* ============ penyelarasan detail dengan mockup ============ */
.side-label { display: none; }                 /* menu tetap lengkap, tanpa judul grup */
.sidebar { width: 244px; padding: 18px 12px 10px; }
.brand-card img { width: 62px; height: 62px; }
.brand-card .bt { font-size: 16px; }
.brand-card .bs { font-size: 9.6px; color: #cbb0e0; }
.side-menu { margin-top: 14px; }
.side-link { padding: 9px 11px; margin-bottom: 2px; font-size: 12.6px; min-height: 38px; }
.side-link .svg-i { width: 18px; height: 18px; }
.side-deco img { width: 132%; margin-left: -16%; opacity: 1; }

.topbar { height: 64px; padding: 0 24px; }
.gudang-pick, .range-pick { height: 42px; font-size: 12.5px; }
.user-chip .un { font-size: 12.6px; font-weight: 800; }
.user-chip .ur { font-size: 10.6px; }
.user-chip .avatar { width: 40px; height: 40px; }
.content { padding: 2px 24px 36px; }

.hero { min-height: 186px; padding: 28px 32px; }
.hero h1 { font-size: 34px; }
.hero p { font-size: 14px; }
.hero-img { height: 252px; right: 6px; bottom: -34px; }
.hero-actions { margin-top: 12px; gap: 7px; }
.hero-actions a { height: 27px; font-size: 9.8px; padding: 0 10px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.hero-actions a:hover { background: rgba(255,255,255,.22); }

.stats6 { gap: 13px; }
.stat { padding: 14px 14px 12px; border-radius: 15px; }
.stat .st-top { gap: 9px; }
.stat .st-ic { width: 36px; height: 36px; border-radius: 11px; color: #fff !important; box-shadow: 0 6px 14px rgba(60,10,90,.16); }
.stat .st-ic .svg-i { width: 19px; height: 19px; }
.s-violet .st-ic { background: linear-gradient(135deg, #8b2fc9, #b044e0); }
.s-green .st-ic { background: linear-gradient(135deg, #16a34a, #22c55e); }
.s-blue .st-ic { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.s-pink .st-ic { background: linear-gradient(135deg, #db2777, #f43f8e); }
.s-orange .st-ic { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.s-red .st-ic { background: linear-gradient(135deg, #dc2626, #ef4444); }
.stat .st-lb { font-size: 10.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .st-v { font-size: 26px; margin-top: 8px; }
.stat .st-tr { font-size: 10px; margin-top: 5px; }
.stat .st-tr b { display: inline-flex; align-items: center; gap: 3px; }

.panel { padding: 16px 16px 14px; }
.p-head { margin-bottom: 10px; }
.p-head h3 { font-size: 14.2px; }
.ch-svg { height: 252px; }

/* gudang: satu baris seperti mockup */
.gd-body { align-items: center; gap: 10px; }
.gd-list2 { gap: 9px; }
.gd-row2 { grid-template-columns: 26px minmax(0, 1fr) 92px 62px 38px; align-items: center; gap: 8px; }
.gd-line { font-size: 11px; }
.gd-bar { margin-top: 0; height: 8px; }
.gd-qty2 { text-align: right; font-size: 12.4px; font-weight: 800; color: #241733; white-space: nowrap; }
.gd-pct { text-align: right; font-size: 10.4px; font-weight: 700; color: #9a8ba8; }
.donut-wrap, .donut { width: 150px; height: 150px; flex: 0 0 150px; }
.donut-c b { font-size: 19px; }
.donut-c span { font-size: 10px; }

/* tabel & aktivitas lebih rapat */
.mn-tbl th { font-size: 10.2px; padding: 7px 7px; }
.mn-tbl td { padding: 8px 7px; font-size: 11.4px; }
.mn-nm img { width: 28px; height: 28px; }
.mn-nm b { font-size: 11.6px; }
.ak-row { padding: 8px 5px; }
.ak-ic { width: 32px; height: 32px; border-radius: 9px; }
.ak-tx b { font-size: 11.4px; }
.ak-tx span { font-size: 10.2px; }
.ak-time { font-size: 9.8px; }

.quick { padding: 14px 18px; }
.q-tx b { font-size: 14.6px; }
.q-tx span { font-size: 11px; }
.q-btn { height: 48px; font-size: 12.6px; }
body { background: #f8f5fd; }

@media (min-width: 901px) and (max-width: 1500px) {
  .hero-img { height: 230px; bottom: -30px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-img { height: 118px; opacity: .6; bottom: -8px; }
  .gd-row2 { grid-template-columns: 24px minmax(0, 1fr) 58px 52px 34px; gap: 6px; }
  .gd-bar { height: 7px; }
  .gd-qty2 { font-size: 11px; }
  .gd-pct { font-size: 9.2px; }
  .donut-wrap, .donut { width: 120px; height: 120px; flex: 0 0 120px; }
  .donut-c b { font-size: 16px; }
}
/* kolom kanan lebih lega agar baris gudang tidak terpotong */
.dash-cols { grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); gap: 18px; }
.hero-img { height: 212px; right: -6px; bottom: -20px; }
.gd-body { gap: 8px; }
.gd-row2 { grid-template-columns: 22px minmax(0, 1fr) 74px 56px 32px; gap: 6px; }
.gd-ic { width: 22px; height: 22px; border-radius: 6px; }
.gd-ic .svg-i { width: 12px; height: 12px; }
.gd-line { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 10.6px; }
.gd-line b { flex: 0 0 auto; font-size: 10.8px; }
.gd-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f5d82; }
.gd-bar { height: 7px; border-radius: 99px; }
.gd-qty2 { font-size: 11.8px; }
.gd-pct { font-size: 9.8px; }
.donut-wrap, .donut { width: 140px; height: 140px; flex: 0 0 140px; }
.donut-c b { font-size: 17.5px; }
@media (max-width: 900px) {
  .gd-row2 { grid-template-columns: 22px minmax(0, 1fr) 54px 46px 30px; }
  .gd-line { font-size: 9.8px; }
  .gd-qty2 { font-size: 10.4px; }
}
.hero { min-height: 176px; padding: 24px 30px; }
.gd-body { align-items: stretch; height: 100%; }
.gd-list2 { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.gd-row2 { grid-template-columns: 20px minmax(0, 1fr) 58px 52px 31px; gap: 5px; }
.gd-bar { width: 100%; }
.gd-line span { color: #5f4d72; }
.gd-row2 { grid-template-columns: 18px minmax(0, 1fr) 50px 48px 29px; gap: 4px; }
.gd-ic { width: 18px; height: 18px; }
.gd-ic .svg-i { width: 11px; height: 11px; }
.gd-line { font-size: 10.2px; }
.gd-line b { font-size: 10.4px; }
.gd-qty2 { font-size: 11.4px; }
.gd-pct { font-size: 9.4px; }
.gd-row2 { grid-template-columns: 18px minmax(0, 1fr) 42px 46px 28px; gap: 5px; }
.donut-wrap, .donut { width: 128px; height: 128px; flex: 0 0 128px; }
.donut-c b { font-size: 16px; }
.gd-line span { font-size: 10px; }
@media (max-width: 900px) {
  .hero { padding: 20px 18px 18px; }
  .hero-img { height: 132px; opacity: .34; right: -26px; bottom: -10px; }
  .hero h1 { font-size: 26px; line-height: 1.15; }
  .hero p { font-size: 11.6px; margin-top: 6px; }
  .stat { padding: 12px 12px 11px; }
  .stat .st-ic { width: 29px; height: 29px; border-radius: 9px; }
  .stat .st-ic .svg-i { width: 16px; height: 16px; }
  .stat .st-top { gap: 7px; }
  .stat .st-lb { font-size: 9.2px; }
  .stat .st-v { font-size: 23px; margin-top: 6px; }
  .panel { padding: 13px 12px 12px; }
  .p-head h3 { font-size: 12.2px; line-height: 1.25; }
  .p-head .svg-i { width: 16px; height: 16px; }
  .ch-svg { height: 210px; }
}
.ch-svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .ch-svg { height: auto; } .ch-ax { font-size: 12px; } }
@media (max-width: 900px) {
  .gd-body { flex-direction: column; align-items: stretch; gap: 8px; }
  .gd-list2 { height: auto; }
  .gd-row2 { grid-template-columns: 20px minmax(0, 1fr) 52px 46px 30px; }
  .gd-donut { display: flex; justify-content: center; padding-top: 2px; }
  .gd-donut .donut-wrap { margin: 0 auto; }
  .mn-tbl { table-layout: fixed; width: 100%; }
  .mn-tbl th, .mn-tbl td { padding: 6px 4px; font-size: 9.6px; }
  .mn-tbl th:nth-child(1), .mn-tbl td:nth-child(1) { width: 22px; padding-left: 0; }
  .mn-tbl th:nth-child(2), .mn-tbl td:nth-child(2) { width: auto; }
  .mn-tbl th:nth-child(3), .mn-tbl td:nth-child(3) { width: 54px; }
  .mn-tbl th:nth-child(4), .mn-tbl td:nth-child(4) { width: 44px; }
  .mn-tbl th:nth-child(5), .mn-tbl td:nth-child(5) { width: 44px; }
  .mn-tbl th:nth-child(6), .mn-tbl td:nth-child(6) { width: 56px; }
  .mn-tbl th:nth-child(6), .mn-tbl td:nth-child(6) { padding-right: 0; text-align: right; }
  .mn-tbl .mn-nm { gap: 6px; }
  .mn-nm img { width: 24px; height: 24px; }
  .mn-nm b { font-size: 9.8px; line-height: 1.25; }
  .mn-nm span { font-size: 8.4px; }
}
@media (max-width: 900px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .dash-cols2 { grid-template-columns: minmax(0, 1fr); }
  .m-nav { box-sizing: border-box; width: 100%; }
  .mn-tbl td { overflow: hidden; }
  .mn-nm { min-width: 0; }
  .mn-nm b { white-space: normal; overflow-wrap: anywhere; }
  .mn-tbl .mn-nm span { white-space: nowrap; }
}
@media (max-width: 900px) {
  .mn-tbl th:nth-child(3), .mn-tbl td:nth-child(3) { width: 50px; }
  .mn-tbl th:nth-child(5), .mn-tbl td:nth-child(5) { width: 40px; }
  .mn-tbl th:nth-child(6), .mn-tbl td:nth-child(6) { width: 62px; }
  .mn-tbl th:nth-child(6), .mn-tbl td:nth-child(6) { font-size: 9.2px; }
}
.gd-list2 { height: auto; padding-bottom: 2px; }
