/* assets/css/navbar.css */

/* =========================
   HEADER / NAVBAR (2026)
========================= */

/* Top header: TRANSPARENT (merge con la página) */
#kt_app_header {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
}

#kt_app_header_container {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

#kt_app_header_wrapper {
    gap: 8px;
    margin-right: 12px;
    flex-wrap: nowrap;
}

.reesell-navbar-2026 {
  gap: 8px;
  flex-wrap: nowrap;
}

.reesell-iconbtn {
  border-radius: 5px !important;
}

/* Heading (optional hook) */
.reesell-page-heading h1 {
  line-height: 1.1;
}

/* Search (top) */
.reesell-topsearch {
  width: min(520px, 46vw);
}

.reesell-topsearch-input {
  height: 38px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
}

.reesell-topsearch-input:focus {
  background: #fff;
  box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), 0.12);
}

.reesell-topsearch-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
}

.reesell-topsearch-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(15, 23, 42, .45);
  background: rgba(15, 23, 42, .04);
  border-radius: 5px;
  padding: 2px 8px;
}

/* Selects */
.reesell-navbar-label {
  font-size: 12px;
}

.reesell-navbar-select {
  height: 36px !important;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 23, 42, .06) !important;
  font-size: 13px;
  cursor: pointer;
}

.reesell-currency-select {
    /* min-width: 160px !important; */
    width: 130px;
    padding: 0 0 0 25px;
}

.reesell-navbar-scope-toolbar {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: nowrap;
}

.reesell-navbar-scope-wrap {
  flex: 0 1 auto;
}

.reesell-navbar-scope-type {
  min-width: 250px;
  width: 250px;
}

.reesell-navbar-scope-actor {
  min-width: 210px;
  width: 210px;
}

.reesell-navbar-scope-toolbar .select2-container {
  min-width: 250px !important;
  width: 250px !important;
}

.reesell-navbar-scope-toolbar .select2-selection {
  height: 36px !important;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: none !important;
  width: 100% !important;
}

.reesell-navbar-scope-toolbar .select2-selection__rendered {
  line-height: 34px !important;
  font-size: 13px;
  color: #343a40;
}

.reesell-navbar-scope-toolbar .select2-selection__arrow {
  height: 34px !important;
}

.reesell-navbar-scope-toolbar .select2-dropdown {
  box-shadow: none !important;
}

.reesell-navbar-scope-toolbar .select2-container--disabled .select2-selection {
  background: #f6f7f9 !important;
  color: #8a8f96 !important;
  cursor: not-allowed !important;
  width: 100% !important;
}

/* Avatar */
.reesell-avatar {
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  border-radius: 12px;
  overflow: hidden;
}

/* =========================
   SIDEBAR
========================= */

.reesell-sidebar-2026 {
  background: transparent !important;
}

.reesell-sidebar-card {
  background: #f5f6f8;
  border-right: 1px solid rgba(15, 23, 42, .08);
  height: calc(100vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.reesell-sidebar-2026 .app-sidebar-logo {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding-top: 1.25rem;
  padding-bottom: .75rem;
}

.reesell-sidebar-search {
  display: block;
  width: 100%;
}

.reesell-action-badge-warning { background: #f59e0b; } /* naranja */
.reesell-action-badge-danger  { background: #ef4444; } /* rojo */
.reesell-action-badge-success { background: #22c55e; } /* verde */

/* Tooltips coloreados
.tooltip-reesell-warning .tooltip-inner { background: #f59e0b; }
.tooltip-reesell-warning .tooltip-arrow::before { border-right-color: #f59e0b !important; }

.tooltip-reesell-danger .tooltip-inner { background: #ef4444; }
.tooltip-reesell-danger .tooltip-arrow::before { border-right-color: #ef4444 !important; }

.tooltip-reesell-success .tooltip-inner { background: #22c55e; }
.tooltip-reesell-success .tooltip-arrow::before { border-right-color: #22c55e !important; }
*/
/* Sidebar search */
.reesell-sidebar-search .form-control {
  background: rgb(255 255 255) !important;
  height: 38px !important;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  width: 100%;
  padding-right: 54px;
}

.reesell-sidebar-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .7;
}

.reesell-sidebar-search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(15, 23, 42, .45);
}

/* Headings */
.reesell-menu-heading-label {
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, .55);
  padding: 12px 12px 6px 12px;
}

/* Menu items */
.reesell-menu-item .menu-link {
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 6px;
  transition: background .15s ease, transform .15s ease;
}

.reesell-menu-item .menu-title {
  font-size: 14px !important;
  color: #5c6165 !important;
}

.reesell-menu-item .menu-link:hover {
  background: #e6e9f0 !important;
  transform: translateY(-1px);
}

/* Active look */
.reesell-menu-item .menu-link.active,
.reesell-menu-item .menu-link.here,
.reesell-menu-item .menu-link.show {
  background: rgba(var(--bs-primary-rgb), 0.10);
}

/* Footer button */
.reesell-sidebar-footer-btn {
  border-radius: 5px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, .06) !important;
}

.reesell-powered {
  display: block;
  width: 100%;
  text-align: center;
}

/* Metronic layout adjustments */
[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-logo {
  border: none !important;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon i {
  color: #5c6165 !important;
}


/* Actions section: make badges pop a bit */
.reesell-menu-item .menu-badge .badge {
  border-radius: 6px;
  font-weight: 600;
}

[data-kt-app-header-fixed=true] .app-header {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

/* Make navbar split: left title, right controls */
.reesell-navbar-2026 {
  width: 100%;
}

.reesell-navbar-left {
  flex: 0 0 auto;
}

.reesell-navbar-right {
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: .35rem;
}

.reesell-navbar-right .app-navbar-item {
  margin-left: 0 !important;
}

.reesell-navbar-right [data-language-switcher="1"] {
  width: 115px;
}

.reesell-navbar-right [data-currency-switcher="1"] {
  width: 115px;
}

@media (min-width: 992px) {
  #kt_app_header_wrapper,
  .reesell-navbar-2026,
  .reesell-navbar-right {
    flex-wrap: nowrap !important;
  }

  .reesell-navbar-left {
    max-width: 34vw;
    min-width: 0;
  }
}

/* =========================
   TABLET OPTIMIZATION
========================= */

@media (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
  #kt_app_header {
    position: relative !important;
  }

  #kt_app_header_container {
    flex-wrap: nowrap;
    align-items: center;
  }

  #kt_app_header_wrapper {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
  }

  #kt_app_sidebar_mobile_toggle {
    position: fixed;
    top: 92%;
    left: 90%;
    z-index: 1050;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }

  .reesell-navbar-right {
    display: flex !important;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .reesell-navbar-right .app-navbar-item {
    margin-left: 0.35rem !important;
  }

  .reesell-navbar-right,
  .reesell-navbar-2026 {
    align-items: center;
  }

  .reesell-navbar-right .app-navbar-item {
    display: flex;
    align-items: center;
  }

  .reesell-mobile-search-toggle {
    display: none !important;
  }

  .reesell-topsearch {
    width: min(240px, 32vw);
  }

  .reesell-navbar-scope-type {
    min-width: 160px;
  }

  .reesell-navbar-scope-actor,
  .reesell-navbar-scope-toolbar .select2-container {
    min-width: 220px !important;
  }

  .reesell-navbar-left {
    max-width: 42vw;
    min-width: 0;
  }

  .reesell-page-heading h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 767.98px) and (orientation: portrait) {
  #kt_app_header_container,
  #kt_app_header_wrapper,
  .reesell-navbar-2026,
  .reesell-navbar-right {
    align-items: center;
  }

  .reesell-navbar-right .app-navbar-item {
    display: flex;
    align-items: center;
  }

  .reesell-mobile-search-toggle {
    display: none !important;
  }

  .reesell-navbar-scope-wrap {
    width: 100%;
  }

  .reesell-navbar-scope-toolbar {
    width: 100%;
  }

  .reesell-navbar-scope-type,
  .reesell-navbar-scope-actor,
  .reesell-navbar-scope-toolbar .select2-container {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 100%;
  }
}

@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  #kt_app_sidebar {
    height: 100vh;
    min-height: 100vh;
  }

  .reesell-sidebar-card {
    height: 100vh;
  }

  #kt_app_header_wrapper,
  .reesell-navbar-2026,
  .reesell-navbar-right {
    flex-wrap: nowrap;
  }

  .reesell-navbar-right {
    gap: 0.35rem;
    max-width: 100%;
  }

  .reesell-navbar-right .app-navbar-item {
    margin-left: 0.35rem !important;
  }

  .reesell-navbar-select {
    height: 32px !important;
    font-size: 12px;
    padding: 0 8px;
    max-width: 140px;
  }

  .reesell-currency-select {
    width: 110px;
    padding-left: 20px;
  }

  .reesell-topsearch {
    width: min(320px, 30vw);
  }

  .reesell-navbar-scope-type {
    min-width: 150px;
  }

  .reesell-navbar-scope-actor,
  .reesell-navbar-scope-toolbar .select2-container {
    min-width: 200px !important;
  }

  .reesell-navbar-left {
    max-width: 38vw;
    min-width: 0;
  }

  .reesell-page-heading h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
