﻿:root {
  --lte-sidebar-width: 250px;
  --lte-sidebar-bg: #172033;
  --lte-sidebar-color: #dce5f2;
  --lte-sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --lte-sidebar-active-bg: #0d6efd;
}

body {
  background: #f4f6f9;
}

.app-wrapper {
  min-height: 100vh;
}

.app-header {
  min-height: 58px;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(18, 38, 63, 0.05);
}

.sidebar-toggle,
.header-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #495057;
  border-radius: 6px;
}

.sidebar-toggle {
  justify-content: center;
  width: 42px;
  font-size: 21px;
}

.header-logout {
  padding-inline: 12px;
}

.sidebar-toggle:hover,
.header-logout:hover {
  background: #eef2f7;
  color: #111827;
}

.app-section-caption {
  display: none;
}

@media (max-width: 575.98px) {
  .warehouse-product-controls {
    grid-template-columns: minmax(0, 1fr) auto 44px;
  }

  .warehouse-product-search {
    grid-column: 1 / -1;
  }
}
.header-account-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-account-actions form {
  margin: 0;
}

.header-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 12px;
  color: #495057;
  border-radius: 6px;
}

.header-profile:hover,
.header-profile.active {
  background: #eef2f7;
  color: #0d6efd;
}

@media (max-width: 575.98px) {
  .header-profile span {
    display: none;
  }

  .header-profile {
    justify-content: center;
    width: 42px;
    padding: 0;
  }
}
.global-products-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-inline: auto 14px;
  padding: 5px 7px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #f5f9ff;
}

.global-products-refresh .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.products-refresh-time {
  max-width: 210px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-products-refresh.is-fresh {
  border-color: #bfe5cf;
  background: #edfdf4;
}

.global-products-refresh.is-fresh .products-refresh-time {
  color: #087443;
}

.global-products-refresh .spin {
  animation: recommendation-spin 1s linear infinite;
}

.active-cabinet-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 300px;
  margin-right: 10px;
  padding: 5px 8px;
  color: #344054;
  background: #eef5ff;
  border: 1px solid #cfe0f7;
  border-radius: 8px;
}

.active-cabinet-control.credentials-missing {
  color: #8a4b00;
  background: #fff8e6;
  border-color: #f1d49b;
}

.active-cabinet-label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.active-cabinet-control strong,
.active-cabinet-control select {
  min-width: 0;
  max-width: 205px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-cabinet-control select {
  height: 32px;
  padding: 3px 28px 3px 8px;
  color: inherit;
  background-color: #fff;
  border: 1px solid #bfd2ea;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .global-products-refresh {
    margin-left: 8px;
    margin-right: 8px;
  }

  .products-refresh-time {
    max-width: 120px;
  }

  .active-cabinet-label {
    display: none;
  }

  .active-cabinet-control {
    max-width: 190px;
    margin-right: 4px;
  }
}

@media (max-width: 640px) {
  .app-header .container-fluid {
    gap: 6px;
  }

  .global-products-refresh {
    flex: 1 1 auto;
    justify-content: space-between;
    margin: 0 4px;
    padding: 4px;
  }

  .global-products-refresh .btn {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .global-products-refresh .btn span {
    display: none;
  }

  .products-refresh-time {
    flex: 1;
    max-width: none;
    font-size: 11px;
  }

  .header-account-actions {
    gap: 2px;
  }

  .active-cabinet-control {
    max-width: 118px;
    padding: 3px;
  }

  .active-cabinet-control strong,
  .active-cabinet-control select {
    max-width: 110px;
    font-size: 11px;
  }
}
/* Keep sidebar background full-height on long pages. */
.app-wrapper {
  min-height: 100vh;
  background: #f4f6f9;
}

.app-sidebar {
  position: fixed !important;
  top: 0;
  bottom: 0;
  left: 0;
  min-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  background: #172033 !important;
  box-shadow: 10px 0 28px rgba(18, 32, 51, 0.12);
}

.app-main,
.app-footer {
  margin-left: var(--lte-sidebar-width);
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 1040;
  }

  .sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-main,
  .app-footer {
    margin-left: 0;
  }
}

.app-sidebar .sidebar-wrapper,
.app-sidebar .sidebar-menu,
.app-sidebar .service-nav {
  background: transparent !important;
}

.app-sidebar .service-nav {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0 8px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.app-sidebar .service-nav .nav-item {
  width: 100%;
}

.app-sidebar .service-nav .nav-link,
.app-sidebar .service-nav .service-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent !important;
  color: #dfe8f6 !important;
  box-shadow: none !important;
  text-align: left;
  overflow: visible;
}

.app-sidebar .service-nav .nav-link p,
.app-sidebar .service-nav .service-tab p {
  margin: 0;
  min-width: 0;
  color: inherit !important;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.app-sidebar .service-nav .nav-icon {
  color: inherit !important;
  opacity: 1;
}

.app-sidebar .service-nav .nav-link:hover,
.app-sidebar .service-nav .service-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.app-sidebar .service-nav .nav-link.active,
.app-sidebar .service-nav .service-tab.active {
  background: rgba(13, 110, 253, 0.22) !important;
  color: #ffffff !important;
}

.app-version {
  position: fixed;
  left: 18px;
  bottom: 12px;
  z-index: 1041;
  padding: 2px 6px;
  border-radius: 6px;
  color: rgba(223, 232, 246, 0.48);
  background: rgba(23, 32, 51, 0.82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .app-version {
    position: absolute;
  }
}

.app-content-header .container-fluid {
  width: min(1320px, calc(100vw - 32px));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 640px) {
  .app-content-header .container-fluid {
    width: 100%;
    padding-inline: 8px;
  }
}

.return-admin-cabinet {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #0d6efd;
  background: #fff;
  border: 1px solid #bfd2ea;
  border-radius: 6px;
  text-decoration: none;
}

.return-admin-cabinet:hover {
  color: #fff;
  background: #0d6efd;
}

/* Locally hosted Inter is the single UI typeface across the application. */
@font-face{font-family:"Inter";src:url("/assets/vendor/inter/InterVariable.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
html,body,body *{font-family:"Inter","Segoe UI",Arial,sans-serif!important}
