/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.app-brand.demo {
  height: 64px;
  margin-top: 0;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


/* ===== clean_code overrides ===================================================
   Appended by the clean_code app (not part of the stock Sneat theme).
   Loaded by every page, so these apply site-wide. */

/* 1. Wider content area: the stock .container-xxl caps at 1388px, which wastes
      screen space on the admin tables and the menu tree. */
.container-xxl {
  max-inline-size: 100% !important;
  padding-inline: 2rem;
}
@media (max-width: 767.98px) {
  .container-xxl { padding-inline: 1rem; }
}

/* One breadcrumb baseline shared by the admin and template page layouts. */
.bl-breadcrumb {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  margin-block: 0 1.25rem;
  padding: 0;
}
.bl-breadcrumb .breadcrumb {
  align-items: center;
  min-height: 1.5rem;
  font-size: .875rem;
  line-height: 1.5rem;
}
.bl-breadcrumb .breadcrumb-item a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}
.bl-breadcrumb .breadcrumb-item a:hover { color: var(--bs-primary); }
.bl-breadcrumb .breadcrumb-item.active { color: var(--bs-body-color); font-weight: 500; }
.bl-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--bs-secondary-color); }
.bl-breadcrumb .breadcrumb-item i { vertical-align: -1px; }

/* Sidebar brand row: stock logo+wordmark replaced with the side.svg
   illustration as a plain background image (the earlier animated
   particle-canvas version was removed per request - see git history /
   prior conversation if it needs to come back). URL is relative to this
   stylesheet's own path (public/assets/css/demo.css), so ../../side.svg
   resolves to public/side.svg, served at /side.svg via the .htaccess rule
   added alongside the existing logo.svg one. */
.app-brand.demo {
  background-image: url(../../side.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.app-brand.demo .app-brand-logo,
.app-brand.demo .app-brand-text {
  display: none;
}
/* core.css's own ".menu .app-brand .layout-menu-toggle" sets border:7px -
   overridden here rather than editing that vendor file directly. */
.menu .app-brand .layout-menu-toggle {
  border-width: 3px;
}

.navbar-clock-logo {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

/* The detached navbar has only a narrow content area on phones. Keep all
   primary actions visible by compacting its spacing; the logo stays visible
   at every width, while the clock glyph and WITA badge return from 576px up. */
.layout-navbar .navbar-nav-right { min-inline-size: 0; }
.layout-navbar .navbar-mobile-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
@media (max-width: 575.98px) {
  .layout-navbar.navbar-detached { padding-inline: .75rem; }
  .layout-navbar .navbar-wita { min-inline-size: 0; padding-inline: 0 !important; }
  .layout-navbar .navbar-mobile-actions > .nav-item { margin-inline: 0 !important; }
  .layout-navbar .navbar-mobile-actions .nav-link { padding: .75rem .5rem; }
}

/* Utilitas .min-w-0 — dipakai 40+ kali di seluruh aplikasi (dashboard,
   daftar member, IT support, dsb.) pada pola flex "flex-grow-1 min-w-0" >
   "text-truncate" untuk memotong teks panjang. Sneat/Bootstrap 5 build ini
   TIDAK menyertakan utilitas itu, jadi kolom flex tetap min-width:auto dan
   menolak menyusut di bawah lebar teksnya: text-truncate tak pernah aktif,
   nama kategori/supplier/produk yang panjang mendorong kartu melebar, dan di
   layar HP seluruh halaman jadi lebih lebar dari viewport sehingga navbar
   fixed ikut tergeser keluar layar. Mendefinisikannya sekali di sini
   memulihkan semua pemotongan teks itu. */
.min-w-0 { min-inline-size: 0 !important; }

/* Sidebar navigation: consistent spacing, clear active state and touch-sized
   links make the database-driven menu easier to scan on every screen size. */
.layout-menu .menu-inner {
  padding-block: .25rem .75rem;
}
/* Group titles (menu_items.type = 'header') as callouts: a lightly tinted box
   as wide as the links, with a .25rem primary rule on its leading edge and the
   label in the theme's primary text-emphasis shade. The box is ::after, drawn
   behind the label, because core.css fixes .menu-header at the full menu width
   and owns ::before - in the collapsed rail that becomes the short dash that is
   then the group's only marker. isolation keeps the z-index: -1 box above the
   menu's own white background; inset-inline (1rem) is the links' margin, so the
   box lines up with them. Keep the label at 4.5:1 or better on the tint. */
.layout-menu .menu-header {
  isolation: isolate;
  display: flex;
  flex-direction: row; /* core.css gives .menu-header column */
  align-items: center;
  margin-block: 1rem .375rem;
  padding-block: .5rem;
  padding-inline: 1.875rem 1.625rem;
  font-size: .6875rem;
  line-height: 1rem;
}
.layout-menu .menu-header .menu-header-text {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bs-primary-text-emphasis);
  font-weight: 700;
  letter-spacing: .06em;
}
.layout-menu .menu-header::before {
  content: none;
}
.layout-menu .menu-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline: 1rem;
  border-inline-start: .25rem solid var(--bs-primary);
  border-radius: .375rem;
  background-color: rgba(var(--bs-primary-rgb), .08);
}
/* Collapsed rail: equal margins (same 1.375rem total as above, so nothing
   jumps when hovering expands the menu) and a vertically centred dash put the
   marker midway between the two icon groups. Same specificity as core.css's
   collapsed rules, which live in this same media query - a collapsed
   preference carried into the <1200px drawer must not reach these. */
@media (min-width: 1200px) {
  .layout-menu-collapsed:not(.layout-menu-hover, .layout-menu-offcanvas, .layout-menu-fixed-offcanvas) .layout-menu.menu-vertical .menu-inner > .menu-header {
    margin-block: .6875rem;
  }
  .layout-menu-collapsed:not(.layout-menu-hover, .layout-menu-offcanvas, .layout-menu-fixed-offcanvas) .layout-menu.menu-vertical .menu-inner > .menu-header::before {
    inset-block: 50% auto;
  }
  .layout-menu-collapsed:not(.layout-menu-hover, .layout-menu-offcanvas, .layout-menu-fixed-offcanvas) .layout-menu .menu-header::after {
    display: none;
  }
}
.layout-menu .menu-item > .menu-link {
  min-block-size: 2.75rem;
  margin-block: .125rem;
  margin-inline: .5rem;
  border-radius: .625rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.layout-menu .menu-inner > .menu-item > .menu-link {
  padding-inline: .75rem;
  /* Sneat's dropdown-arrow (.menu-toggle::after) is positioned via
     calc(var(--bs-menu-vertical-link-padding-x) + .3rem) from the right
     edge. That variable still holds the stock 0.9375rem default from
     core.css even though the padding above was shrunk to .75rem, so the
     arrow sits further left than the real padding allows - overlapping a
     badge on any top-level item that has both (e.g. "Dashboards"). Redefine
     the variable to match the actual padding so the arrow recalculates
     correctly, scoped to this exact link so nested .menu-sub items (which
     keep the stock padding) are unaffected. */
  --bs-menu-vertical-link-padding-x: .75rem;
}
/* The line above uses the padding-inline SHORTHAND, which also clobbers
   core.css's own ".menu-toggle { padding-inline-end: calc(padding-x +
   1.76em) }" - the stock rule that reserves room on the right of a toggle
   link for its arrow. Losing that reservation is the actual cause of the
   badge/arrow overlap (fixing the variable above only moves the arrow to
   the correct edge, it doesn't stop a badge's ms-auto from flowing into the
   same space). Re-reserve that space for exactly the items that toggle. */
.layout-menu .menu-inner > .menu-item > .menu-link.menu-toggle {
  padding-inline-end: calc(var(--bs-menu-vertical-link-padding-x) + 1.76em);
}
.layout-menu .menu-item > .menu-link .menu-icon {
  flex: 0 0 auto;
  margin-inline-end: .7rem;
}
.layout-menu .menu-item:not(.active) > .menu-link:hover {
  background-color: rgb(var(--bs-primary-rgb) / 7%);
  transform: translateX(.125rem);
}
.layout-menu .menu-item.active > .menu-link {
  box-shadow: 0 .125rem .5rem rgb(var(--bs-primary-rgb) / 12%);
  font-weight: 600;
}
.layout-menu .menu-link:focus-visible {
  outline: 2px solid rgb(var(--bs-primary-rgb) / 65%);
  outline-offset: 2px;
}
.layout-menu .menu-sub {
  padding-block: .125rem;
}
.layout-menu .menu-sub > .menu-item > .menu-link {
  min-block-size: 2.5rem;
  margin-block: .075rem;
}
/* Menu typography. The stock .9375rem (15px) ellipsised the longer item names:
   inside the 16.25rem (260px) sidebar a sub-item has only ~182px of text room
   on desktop - 260 less the link's 2 x .5rem margin, its 2.9375rem start
   padding and its .9375rem end padding - while "Fast & Slow Moving Product" is
   24 characters and needs roughly that much at 15px, so it lost its tail.
   Shrinking the label and trimming the sub-item's start padding (the bullet
   itself is absolutely positioned at 1.4375rem and does not move, only the gap
   after it narrows) leaves it comfortably inside the sidebar.

   Sizes live in these two variables, not scattered across selectors: if a
   future menu name is longer still, lower --cc-menu-sub-font-size here and
   nothing else. Any label that overflows anyway stays readable on hover -
   MenuPresenter::render() puts the full title in a title= attribute. */
:root {
  --cc-menu-font-size: .875rem;       /* top level: shares the row with an icon and a toggle arrow */
  --cc-menu-sub-font-size: .8125rem;  /* sub-items: the longest names live here */
}
.layout-menu .menu-inner > .menu-item > .menu-link {
  font-size: var(--cc-menu-font-size);
}
/* Four classes deep on purpose: core.css's own ".menu-vertical .menu-item
   .menu-link { font-size: .9375rem; }" and ".menu-vertical .menu-sub
   .menu-link { padding-inline-start: 2.9375rem; }" are three, so a
   three-class selector here would only win on load order - which is true today
   but silently breaks the moment the two files are concatenated the other way. */
.layout-menu .menu-sub > .menu-item > .menu-link {
  font-size: var(--cc-menu-sub-font-size);
  padding-inline-start: 2.5rem;
}
/* The last few pixels come from the right padding rather than from shrinking
   the text further - measured in Chrome at both breakpoints, the longest label
   goes from 26px short of its box to 12px inside it. Scoped to :not(.menu-toggle)
   because core.css reserves the end padding of a toggle link for its dropdown
   arrow (`.menu-toggle { padding-inline-end: calc(padding-x + 1.76em) }`), and
   this selector is specific enough to win: a third menu level added later would
   otherwise lose the room for its own arrow. */
.layout-menu .menu-sub > .menu-item > .menu-link:not(.menu-toggle) {
  padding-inline-end: .625rem;
}
@media (max-width: 1199.98px) {
  .app-brand.demo {
    margin-block-end: .35rem;
    padding: .65rem .75rem;
  }
  /* The stock theme reuses the desktop absolute position (15.2rem) when
     opening the mobile drawer. Keep the close control inside the brand row. */
  .layout-menu-expanded .menu .app-brand.demo .layout-menu-toggle {
    position: static !important;
    display: flex !important;
    flex: 0 0 2.25rem;
    inset: auto !important;
    margin-inline-start: auto !important;
    border: 0 !important;
    background-color: rgb(255 255 255 / 16%);
    box-shadow: none;
  }
  /* A collapsed desktop preference can persist into a mobile viewport. The
     theme keeps only the 5.25rem brand in that state, which makes its toggle
     overlap the menu. Always use the full off-canvas width on mobile. */
  .layout-menu-collapsed .layout-menu .app-brand.demo {
    inline-size: 100% !important;
  }
  .layout-menu-collapsed .layout-menu .app-brand.demo .app-brand-link,
  .layout-menu-collapsed .layout-menu .app-brand.demo .sidebar-user-name {
    margin-inline: 0 !important;
  }
  .layout-menu-collapsed .layout-menu .app-brand.demo .layout-menu-toggle {
    position: relative;
    inset: auto !important;
    opacity: 1 !important;
    margin-inline-start: auto !important;
  }
  .app-brand-text.demo.sidebar-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .layout-menu .menu-inner {
    padding-block: .4rem 1rem;
  }
  .layout-menu .menu-header {
    margin-block: 1.25rem .5rem;
  }
  .layout-menu .menu-item > .menu-link {
    min-block-size: 3rem;
    margin-inline: .625rem;
  }
  .layout-menu .menu-inner > .menu-item > .menu-link {
    padding-inline: .875rem;
  }
  .layout-menu .menu-sub > .menu-item > .menu-link {
    min-block-size: 2.875rem;
  }
}

/* 2. Colour the sidebar sub-menu bullets per item, matching the colour the
      same item gets in the menu manager tree. The stock rule paints every
      dot --bs-gray-400; these are one class more specific so they win. */
.menu .menu-sub > .menu-item.menu-dot-primary > .menu-link::before { background-color: var(--bs-primary); }
.menu .menu-sub > .menu-item.menu-dot-success > .menu-link::before { background-color: var(--bs-success); }
.menu .menu-sub > .menu-item.menu-dot-info > .menu-link::before { background-color: var(--bs-info); }
.menu .menu-sub > .menu-item.menu-dot-warning > .menu-link::before { background-color: var(--bs-warning); }
.menu .menu-sub > .menu-item.menu-dot-danger > .menu-link::before { background-color: var(--bs-danger); }
.menu .menu-sub > .menu-item.menu-dot-secondary > .menu-link::before { background-color: var(--bs-secondary); }

/* Extended icon palette shared by sidebar, tree editor and menu preview. */
:root {
  --bl-menu-blue: #0d6efd;
  --bl-menu-indigo: #6610f2;
  --bl-menu-purple: #8b5cf6;
  --bl-menu-pink: #d63384;
  --bl-menu-orange: #fd7e14;
  --bl-menu-teal: #20c997;
  --bl-menu-cyan: #0dcaf0;
  --bl-menu-gray: #6c757d;
}
.menu-color-primary, .icon-swatch-primary { color: var(--bs-primary); }
.menu-color-success, .icon-swatch-success { color: var(--bs-success); }
.menu-color-info, .icon-swatch-info { color: var(--bs-info); }
.menu-color-warning, .icon-swatch-warning { color: var(--bs-warning); }
.menu-color-danger, .icon-swatch-danger { color: var(--bs-danger); }
.menu-color-secondary, .icon-swatch-secondary { color: var(--bs-secondary); }
.menu-color-dark, .icon-swatch-dark { color: var(--bs-dark); }
.menu-color-blue, .icon-swatch-blue { color: var(--bl-menu-blue); }
.menu-color-indigo, .icon-swatch-indigo { color: var(--bl-menu-indigo); }
.menu-color-purple, .icon-swatch-purple { color: var(--bl-menu-purple); }
.menu-color-pink, .icon-swatch-pink { color: var(--bl-menu-pink); }
.menu-color-orange, .icon-swatch-orange { color: var(--bl-menu-orange); }
.menu-color-teal, .icon-swatch-teal { color: var(--bl-menu-teal); }
.menu-color-cyan, .icon-swatch-cyan { color: var(--bl-menu-cyan); }
.menu-color-gray, .icon-swatch-gray { color: var(--bl-menu-gray); }
.icon-color-swatch.icon-swatch-primary { background: var(--bs-primary); }
.icon-color-swatch.icon-swatch-success { background: var(--bs-success); }
.icon-color-swatch.icon-swatch-info { background: var(--bs-info); }
.icon-color-swatch.icon-swatch-warning { background: var(--bs-warning); }
.icon-color-swatch.icon-swatch-danger { background: var(--bs-danger); }
.icon-color-swatch.icon-swatch-secondary { background: var(--bs-secondary); }
.icon-color-swatch.icon-swatch-dark { background: var(--bs-dark); }
.icon-color-swatch.icon-swatch-blue { background: var(--bl-menu-blue); }
.icon-color-swatch.icon-swatch-indigo { background: var(--bl-menu-indigo); }
.icon-color-swatch.icon-swatch-purple { background: var(--bl-menu-purple); }
.icon-color-swatch.icon-swatch-pink { background: var(--bl-menu-pink); }
.icon-color-swatch.icon-swatch-orange { background: var(--bl-menu-orange); }
.icon-color-swatch.icon-swatch-teal { background: var(--bl-menu-teal); }
.icon-color-swatch.icon-swatch-cyan { background: var(--bl-menu-cyan); }
.icon-color-swatch.icon-swatch-gray { background: var(--bl-menu-gray); }
.icon-color-swatch.icon-swatch-auto {
  background: linear-gradient(135deg, var(--bs-primary) 0 25%, var(--bs-info) 25% 50%, var(--bs-success) 50% 75%, var(--bs-warning) 75%);
}
.menu .menu-item.menu-dot-blue > .menu-link .menu-icon { color: var(--bl-menu-blue); }
.menu .menu-sub > .menu-item.menu-dot-blue > .menu-link::before { background-color: var(--bl-menu-blue); }
.menu .menu-item.menu-dot-indigo > .menu-link .menu-icon { color: var(--bl-menu-indigo); }
.menu .menu-sub > .menu-item.menu-dot-indigo > .menu-link::before { background-color: var(--bl-menu-indigo); }
.menu .menu-item.menu-dot-purple > .menu-link .menu-icon { color: var(--bl-menu-purple); }
.menu .menu-sub > .menu-item.menu-dot-purple > .menu-link::before { background-color: var(--bl-menu-purple); }
.menu .menu-item.menu-dot-pink > .menu-link .menu-icon { color: var(--bl-menu-pink); }
.menu .menu-sub > .menu-item.menu-dot-pink > .menu-link::before { background-color: var(--bl-menu-pink); }
.menu .menu-item.menu-dot-orange > .menu-link .menu-icon { color: var(--bl-menu-orange); }
.menu .menu-sub > .menu-item.menu-dot-orange > .menu-link::before { background-color: var(--bl-menu-orange); }
.menu .menu-item.menu-dot-teal > .menu-link .menu-icon { color: var(--bl-menu-teal); }
.menu .menu-sub > .menu-item.menu-dot-teal > .menu-link::before { background-color: var(--bl-menu-teal); }
.menu .menu-item.menu-dot-cyan > .menu-link .menu-icon { color: var(--bl-menu-cyan); }
.menu .menu-sub > .menu-item.menu-dot-cyan > .menu-link::before { background-color: var(--bl-menu-cyan); }
.menu .menu-item.menu-dot-gray > .menu-link .menu-icon { color: var(--bl-menu-gray); }
.menu .menu-sub > .menu-item.menu-dot-gray > .menu-link::before { background-color: var(--bl-menu-gray); }

/* 3. Icon buttons inside tables: the stock rule
      `.table .btn-icon { color: var(--bs-table-color) }` repaints every icon
      button with the table's grey text colour and, having the same
      specificity as .btn:hover but coming later, swallows the hover colour
      too - leaving a grey glyph on a solid coloured button. Buttons that
      declare their own variant keep that variant's colours, so the icon
      turns white on hover like everywhere else. */
.table .btn-icon[class*="btn-label-"],
.table .btn-icon[class*="btn-outline-"] {
  color: var(--bs-btn-color);
}
.table .btn-icon[class*="btn-label-"]:hover,
.table .btn-icon[class*="btn-label-"]:focus,
.table .btn-icon[class*="btn-outline-"]:hover,
.table .btn-icon[class*="btn-outline-"]:focus {
  color: var(--bs-btn-hover-color);
}

/* 4. Badge hitung anak di sidebar: ukuran diperkecil dan warnanya dipakai
      versi muda, supaya tiga angka di menu tidak berebut perhatian dengan
      labelnya sendiri (permintaan 2026-10-08: "perkecil ukuran badge dan
      angka di dalamnya, warnanya lebih muda - misal hijau muda, biru muda,
      merah muda").

      Dua bagian, dan keduanya harus di sini, bukan di tabel menu_items:

      1. UKURAN - lewat variabel --bs-badge-* yang dipakai rule `.badge`
         core.css, bukan menimpa properti padding/font-size langsung, supaya
         perubahannya tetap mengalir ke `border-radius` dan aturan badge lain
         yang memakai variabel yang sama.

      2. WARNA - class `text-bg-*` dari core.css memakai `background-color`
         dan `color` ber-`!important` (itulah yang membuat badge sekarang
         pekat/ solid), jadi palet muda di bawah juga harus `!important`.
        Selektor dilimit ke `.layout-menu .menu-link > .badge` - di luar
         sidebar (tabel, kartu dashboard, editor menu) badge tetap solid
         sesuai pilihan warna di Manajemen Menu.

      Memetakan semua varian yang bisa dipilih di form Manajemen Menu, bukan
      hanya tiga warna yang dipakai sekarang, sehingga menu baru otomatis ikut
      tampil muda tanpa menyentuh CSS ini lagi. */
.layout-menu .menu-link > .badge {
  --bs-badge-font-size: 0.625rem;   /* 10px - core.css memakai 0.8667em */
  --bs-badge-padding-y: 0.175rem;
  --bs-badge-padding-x: 0.45rem;
  --bs-badge-font-weight: 600;
  line-height: 1.15;
}
.layout-menu .menu-link > .badge.text-bg-primary {
  background-color: #e9eaff !important;
  color: #4f52e0 !important;
}
.layout-menu .menu-link > .badge.text-bg-success {
  background-color: #e2f7e9 !important;
  color: #1f9d55 !important;
}
.layout-menu .menu-link > .badge.text-bg-info {
  background-color: #dcf2fd !important;
  color: #147fbf !important;
}
.layout-menu .menu-link > .badge.text-bg-warning {
  background-color: #fff3d9 !important;
  color: #a86a00 !important;
}
.layout-menu .menu-link > .badge.text-bg-danger {
  background-color: #ffe4e0 !important;
  color: #d23f33 !important;
}
.layout-menu .menu-link > .badge.text-bg-secondary {
  background-color: #eef0f2 !important;
  color: #6b7480 !important;
}
.layout-menu .menu-link > .badge.text-bg-dark {
  background-color: #e4e6e8 !important;
  color: #384551 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
 * Marquee label menu sidebar.
 *
 * Nama menu yang lebih lebar dari sidebar tidak lagi hanya dipotong ellipsis:
 * teksnya dibungkus .ml-move (MenuPresenter). div pembungkusnya tetap kotak
 * pemotong bawaan Sneat (.menu-link > div: overflow hidden + nowrap).
 * cc-sidebar-marquee (admin_end.php) mengukur tiap .ml-move; yang meluap diberi
 * .ml-on pada div-nya plus --ml-dist/--ml-time, lalu teksnya berjalan pelan
 * bolak-balik supaya terbaca utuh. Hanya baris yang memang meluap yang bergerak.
 * ──────────────────────────────────────────────────────────────────────────── */
#layout-menu .menu-link > div .ml-move {
  display: inline-block;
  white-space: nowrap;
  max-width: none;
}

#layout-menu .menu-link > div.ml-on {
  overflow: hidden;
}

#layout-menu .menu-link > div.ml-on .ml-move {
  animation: cc-marquee var(--ml-time, 9s) linear infinite;
  will-change: transform;
}

/* Berhenti saat disorot/difokus supaya mudah dibaca. */
#layout-menu .menu-link:hover > div.ml-on .ml-move,
#layout-menu .menu-link:focus-visible > div.ml-on .ml-move {
  animation-play-state: paused;
}

@keyframes cc-marquee {
  0%, 10%   { transform: translateX(0); }
  45%, 55%  { transform: translateX(calc(-1 * var(--ml-dist, 0px))); }
  90%, 100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  #layout-menu .menu-link > div.ml-on .ml-move { animation: none; }
}
