/* ==========================================================================
   NOVA RADIUS — Unified brand glyph
   v1.7.0
   Uses the official monochrome glyph as a CSS mask.
   The visible color follows currentColor / var(--bs-primary), including
   Vuexy Template Customizer changes.
   ========================================================================== */

.nova-brand-glyph {
  display: inline-block;
  inline-size: var(--nova-brand-glyph-width, 2rem);
  block-size: var(--nova-brand-glyph-height, 2rem);
  flex: 0 0 auto;
  color: var(--nova-brand-glyph-color, var(--bs-primary, #6d5df6));
  background-color: currentColor;
  -webkit-mask:
    url("../../branding/nova-radius-glyph-mask.png")
    center / contain no-repeat;
  mask:
    url("../../branding/nova-radius-glyph-mask.png")
    center / contain no-repeat;
  transition:
    color .2s ease,
    background-color .2s ease,
    filter .2s ease,
    opacity .2s ease;
}

/* Sidebar */
.nova-sidebar-premium .app-brand-logo.demo .nova-brand-glyph {
  --nova-brand-glyph-width: 2.5rem;
  --nova-brand-glyph-height: 2.5rem;
  color: var(--bs-primary, #6d5df6);
  filter: drop-shadow(0 .2rem .45rem rgba(var(--bs-primary-rgb, 109, 93, 246), .16));
}

html.layout-menu-collapsed:not(.layout-menu-hover)
  .nova-sidebar-premium
  .app-brand-logo.demo
  .nova-brand-glyph,
body.layout-menu-collapsed:not(.layout-menu-hover)
  .nova-sidebar-premium
  .app-brand-logo.demo
  .nova-brand-glyph,
.layout-menu-collapsed:not(.layout-menu-hover)
  .nova-sidebar-premium
  .app-brand-logo.demo
  .nova-brand-glyph {
  --nova-brand-glyph-width: 2rem;
  --nova-brand-glyph-height: 2rem;
}

/* Login desktop brand */
.auth-cover-brand .nova-brand-glyph {
  --nova-brand-glyph-width: 2rem;
  --nova-brand-glyph-height: 2rem;
  color: var(--bs-primary, #6d5df6);
  filter: drop-shadow(0 .25rem .55rem rgba(var(--bs-primary-rgb, 109, 93, 246), .18));
}

/* Login mobile brand */
.nova-login-mobile-brand-logo .nova-brand-glyph {
  --nova-brand-glyph-width: 1.75rem;
  --nova-brand-glyph-height: 1.75rem;
  color: var(--bs-primary, #6d5df6);
  filter: drop-shadow(0 .2rem .45rem rgba(var(--bs-primary-rgb, 109, 93, 246), .16));
}

/* Dark mode still follows the active primary selected in Template Customizer. */
html[data-bs-theme="dark"] .nova-brand-glyph,
html.dark-style .nova-brand-glyph,
body[data-bs-theme="dark"] .nova-brand-glyph,
body.dark-style .nova-brand-glyph {
  color: var(--bs-primary, #6d5df6);
  filter:
    drop-shadow(0 .25rem .65rem rgba(0, 0, 0, .24))
    drop-shadow(0 0 .65rem rgba(var(--bs-primary-rgb, 109, 93, 246), .12));
}

@media (prefers-reduced-motion: reduce) {
  .nova-brand-glyph {
    transition: none !important;
  }
}

/* NOVA_SIDEBAR_NO_HSCROLL (2026-11-20): the vertical scrollbar narrowed .menu-inner (250px) while items kept
   the full menu width (260px), so the sidebar could be dragged sideways. Items now fit the inner width. */
.layout-menu .menu-inner {
    overflow-x: hidden !important;
}
.layout-menu .menu-inner > .menu-item,
.layout-menu .menu-inner > .menu-header {
    inline-size: 100% !important;
    max-inline-size: 100%;
    box-sizing: border-box;
}

/* NOVA_SIDEBAR_ACTIVE_PARENT_ICON (2026-11-20): in light mode an open parent of the active page sits on a
   light-grey background, so the white "active" icon disappeared. White stays only on the purple leaf item. */
html:not([data-bs-theme="dark"]) #layout-menu .menu-item.active.open > .menu-link.menu-toggle .menu-icon,
html:not([data-bs-theme="dark"]) #layout-menu .menu-item.active > .menu-link.menu-toggle .menu-icon {
    color: var(--bs-primary) !important;
    filter: none !important;
}


/* NOVA_NUMBERS_LATIN (2026-11-20): number fields never show up/down spinner arrows (every page). */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
}
input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}


/* NOVA modal close button inside the dialog corner (2026-11-21).
   Vuexy pushes .btn-close outside the dialog; with RTL it floated beside the header. */
.modal .modal-header .btn-close,
.modal .modal-content > .btn-close {
    position: absolute !important;
    top: .9rem !important;
    left: auto !important;
    right: auto !important;
    inset-inline-end: .9rem !important;
    margin: 0 !important;
    transform: none !important;
    inline-size: 2rem;
    block-size: 2rem;
    padding: 0;
    border-radius: .6rem;
    box-shadow: none !important;
    background-color: transparent;
    z-index: 2;
}
.modal .modal-header .btn-close:hover,
.modal .modal-content > .btn-close:hover { background-color: rgba(var(--bs-secondary-rgb), .12); }
.modal .modal-header { position: relative; padding-inline-end: 3.4rem; }

/* drag-target fix 2026-11-21: Vuexy puts an invisible 40px swipe strip on the menu side of the screen
   when the sidebar is collapsed (tablet/phone). In RTL it covered the first column of every table
   (checkboxes), so clicks there did nothing. Mouse: never intercept. Touch: keep a thin edge for swiping. */
.layout-wrapper .drag-target{width:12px!important}
@media (hover:hover) and (pointer:fine){.layout-wrapper .drag-target{pointer-events:none!important}}
