html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.app-header {
  position: relative;
  z-index: 1100;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(13, 110, 253, 0.16);
}

.app-header .navbar-nav .nav-link {
  border-radius: 0.45rem;
  margin: 0 0.08rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.app-header .navbar-nav .nav-link:hover,
.app-header .navbar-nav .nav-link:focus {
  background-color: rgba(0, 0, 0, 0.16);
}

.app-header .navbar-nav .nav-link.active,
.app-header .navbar-nav .nav-link.active:hover,
.app-header .navbar-nav .nav-link.active:focus {
  background-color: rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.app-header .dropdown-menu {
  z-index: 1120;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.app-header .dropdown-item.active,
.app-header .dropdown-item:active {
  background-color: #0d6efd;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
  display: block;
}

.user-profile-menu {
  position: relative;
}

.user-profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 240px;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-profile-toggle:hover,
.user-profile-toggle:focus,
.user-profile-toggle.show {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(255, 255, 255, 0.16);
}

.user-profile-toggle::after {
  margin-left: 0;
}

.user-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #0d6efd;
  background: #ffffff;
  font-size: 0.95rem;
}

.user-profile-avatar-lg {
  width: 58px;
  height: 58px;
  font-size: 1.45rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.user-profile-name {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.92rem;
}

.user-profile-dropdown {
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(107, 114, 128, 0.18);
}

.user-profile-nickname {
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.user-profile-username {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.35;
  word-break: break-word;
}

.user-profile-details {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.85rem;
}

.user-profile-detail {
  display: grid;
  gap: 0.15rem;
}

.user-profile-detail span {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-profile-detail strong {
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 991.98px) {
  .user-profile-menu {
    margin-top: 0.75rem;
  }

  .user-profile-toggle {
    justify-content: space-between;
    width: 100%;
    max-width: none;
  }

  .user-profile-name {
    max-width: none;
    flex: 1;
    text-align: left;
  }

  .user-profile-dropdown {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 20px;
}

#modalProveedor .modal-dialog {
    margin-top: 80px;
}
