html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--fv-neutral-500, rgba(100, 116, 139, 1));
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


html, body {
  height: 100%;
  margin: 0;
}

/* cel� app shell cez cel� v��ku */
#wrapper.app-shell {
  min-height: 100vh;
}



html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* <-- zru�� scroll na pravej strane str�nky */
}

/* wrapper je cel� viewport */
#wrapper.app-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

  /* header a footer maj� prirodzen� v��ku */
  #wrapper.app-shell header,
  #wrapper.app-shell footer {
    flex: 0 0 auto;
  }

  /* TU m� by� jedin� vertik�lny scroll */
  #wrapper.app-shell .main-content {
    flex: 1 1 auto;
    min-height: 0; /* kritick� pre flex scroll */
    overflow: hidden !important;
  }

/* zru� star� fixy typu height:380px / min-height:100vh na main-content */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* nech je nad sidebarom aj gridom */
}

#LightAppBar {
  z-index: 1000;
}

/* Podpolo�ky (vnoren� UL) mierne doprava */
.sidebar-treeview .e-treeview .e-ul .e-ul {
  margin-left: 16px; /* posun doprava */
  padding-left: 10px; /* jemn� vn�torn� odsaden� */
}

/* Volite�n�: jemn� vodiaca �iara, aby bolo vidie� hierarchiu */
.sidebar-treeview .e-treeview .e-ul .e-ul {
  border-left: 1px solid rgba(0,0,0,.10);
}

/* grid, aby posuvatko neslo pod footer*/
:root {
  --app-footer-height: 0px; /* povodne 32px. nastav re�lnu v��ku footeru */
  --app-header-height: 63px; /* ak m� top navbar */
}

:root {
  --fv-negative-bg: #FDECEA;
  --fv-negative-text: #B00020;
}

.page-wrapper {
  height: calc(100vh - var(--app-footer-height) - var(--app-header-height));
  overflow: hidden;
}

.grid-wrapper {
  height: 100%;
}

  .grid-wrapper .e-grid {
    height: 100% !important;
  }

/* grid, aby posuvatko neslo pod footer*/



/*User avatar hore var pravo*/
.user-menu {
  display: flex;
  align-items: center;
}

.user-dd.e-dropdown-btn {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-avatar.initials {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: #2d3748; /* tmav� modern� */
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

/* Light AppBar */
.e-appbar.e-light .user-avatar.initials {
  background: #e2e8f0;
  color: #1f2937;
}

/* Hover */
.user-avatar.initials:hover {
  filter: brightness(0.95);
}

/*zrusenie sipky pod dropdownom na ikone uzivatela hore v pravo*/
.user-dd .e-caret {
  display: none !important;
}

/* ==========================================================
   FIXVENTORY HEADER
   ========================================================== */

:root {
  --app-header-bg: #f4f7fb;
  --app-header-border: #e4eaf2;
  --app-header-hover: #e7edf5;
  --app-header-height: 63px;
}

/* Header container */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex: 0 0 auto;
  background: var(--app-header-bg);
  border-bottom: 1px solid var(--app-header-border);
}

/* Syncfusion AppBar and all its internal wrappers */
#LightAppBar,
#LightAppBar.e-appbar,
#LightAppBar.e-appbar.e-light,
#LightAppBar .e-appbar-content {
  min-height: var(--app-header-height);
  height: var(--app-header-height);
  padding: 0 16px;
  box-sizing: border-box;
  background-color: var(--app-header-bg) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Left section: hamburger + brand */
.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-width: 0;
  background: var(--app-header-bg);
}

/* ==========================================================
   HAMBURGER TOOLBAR
   ========================================================== */

#resToolbar,
#resToolbar.e-toolbar,
#resToolbar .e-toolbar-items,
#resToolbar .e-toolbar-left,
#resToolbar .e-toolbar-item {
  width: auto !important;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--app-header-bg) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

  #resToolbar .e-toolbar-items {
    display: flex;
    align-items: center;
  }

  /* Hamburger button */
  #resToolbar #menuButton,
  #resToolbar #menuButton.e-btn,
  #resToolbar #menuButton.e-tbar-btn,
  #resToolbar #menuButton.e-icon-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: var(--app-header-bg) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    outline: none !important;
  }

    #resToolbar #menuButton:hover,
    #resToolbar #menuButton:focus,
    #resToolbar #menuButton:focus-visible,
    #resToolbar #menuButton:active,
    #resToolbar #menuButton.e-active {
      background-color: var(--app-header-hover) !important;
      box-shadow: none !important;
      outline: none !important;
    }

    /* Custom SVG hamburger */
    #resToolbar #menuButton .e-icons.e-menu {
      display: inline-block !important;
      width: 24px !important;
      min-width: 24px !important;
      height: 24px !important;
      min-height: 24px !important;
      margin: 0 !important;
      padding: 0 !important;
      background-color: transparent !important;
      background-image: url("/images/mynaui_menu.svg") !important;
      background-repeat: no-repeat !important;
      background-position: center !important;
      background-size: 24px 24px !important;
      font-size: 0 !important;
      line-height: 0 !important;
    }

      #resToolbar #menuButton .e-icons.e-menu::before {
        content: "" !important;
        display: none !important;
      }

/* ==========================================================
   FIXVENTORY BRAND
   ========================================================== */

.fixventory-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  min-width: 0;
  padding: 0 6px;
  box-sizing: border-box;
  background: var(--app-header-bg);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

  .fixventory-brand:hover,
  .fixventory-brand:focus,
  .fixventory-brand:active {
    text-decoration: none;
  }

.fixventory-brand-logo {
  display: block;
  width: 166px;
  min-width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ==========================================================
   RIGHT USER AREA
   ========================================================== */

.user-menu {
  display: flex;
  align-items: center;
  background: var(--app-header-bg);
}

.user-dd.e-dropdown-btn {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.user-avatar.initials {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: #e2e8f0;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
}

  .user-avatar.initials:hover {
    filter: brightness(0.95);
  }

.user-dd .e-caret {
  display: none !important;
}

/* ==========================================================
   HEADER RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {
  #LightAppBar,
  #LightAppBar.e-appbar,
  #LightAppBar.e-appbar.e-light,
  #LightAppBar .e-appbar-content {
    padding: 0 10px;
  }

  .fixventory-brand-text {
    display: none;
  }

  .fixventory-brand {
    padding: 0;
  }
}



.e-small-icon::before {
  font-family: 'e-grid-rowheight' !important;
  content: '\e707' !important;
}

.e-medium-icon::before {
  font-family: 'e-grid-rowheight' !important;
  content: '\e701' !important;
}

.e-big-icon::before {
  font-family: 'e-grid-rowheight' !important;
  content: '\e702' !important;
}

