/* --- Menú vertical para plantilla de búsqueda --- */
.hidden {
  display: none !important;
}
.mobile-menu-store {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--menu-bg, #fff) !important;
  box-shadow: 2px 0 8px rgba(0,0,0,0.12);
  z-index: 1000;
  transition: left 0.3s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 1.5rem;
}
.mobile-menu-store:not(.hidden) {
  left: -12px;
}
.mobile-menu-btn {
  color: #1976d2 !important;
  background: #e3edfa !important;
  border: 2px solid #1976d2 !important;
  margin: 0.18rem 1rem;
  text-align: left;
  font-size: 1.12rem;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 18px;
  display: block;
}
.btn-panel.btn-blue.mobile-menu-btn {
  color: #fff !important;
  background: #1976d2 !important;
  border-color: #1976d2 !important;
}
.btn-panel.btn-red.mobile-menu-btn {
  width: auto !important;
  display: block;
  color: #fff !important;
  background: #e74c3c !important;
  border-color: #e74c3c !important;
}
.btn-gray.mobile-menu-btn {
  color: #fff !important;
  background: #9e9e9e !important;
  border-color: #9e9e9e !important;
}
#closeMenuBtn {
  background: none;
  border: none;
  font-size: 1.7em;
  color: #1976d2;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 1001;
}
.btn-panel {
  text-decoration: none !important;
}
#menuToggleBtn {
  margin-left: 10px;
}

/* Estilos para los botones de menú agrupados */
.d-flex.gap-05 .menu-toggle-btn {
  margin-left: 0;
}

.d-flex.gap-05 .menu-toggle-btn:first-child {
  margin-left: 10px;
}
.menu-title-row {
    display: flex;
    align-items: center;
    justify-content: center !important;
    gap: 0.5rem;
}
.mobile-menu-store form#logoutAllFormMenu {
  margin-top: 0;
}

/* --- Migración de estilos inline desde edit_subuser.html --- */
.label-flex {
  justify-content: flex-start;
}
.w-100 {
  width: 100%;
}
.ml-0 {
  margin-left: 0;
}

/* --- Migración de estilos inline desde search.html --- */
.flex-between {
  display: flex;
  justify-content: space-between;
}
.align-items-flex-start {
  align-items: flex-start;
}
.mb-05 {
  margin-bottom: 0.5rem;
}

/* --- Migración de estilos inline desde search.html (menú móvil) --- */
.menu-mobile-fixed {
  position: fixed;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.menu-title-row-custom {
  padding: 0.7rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-menu-bar {
  font-size: 1.3em;
  color: #000000;
}
.h3-menu-title {
  margin: 0;
  font-size: 1.25em;
  color: #000000;
}

/* --- Migración de estilos inline desde manage_subusers.html --- */
.ml-07 {
  margin-left: 0.7rem;
}

/* Solo para el botón Menú en manage_subusers.html */
body.manage-subusers-page #menuToggleBtn {
  margin-left: 0.7rem !important;
}

/* ================== ESTILOS PARA EDIT API ================== */

/* Estilos específicos para edit_api.html */
.store-container-padding {
  padding: 1.2rem;
}

.api-key-help {
  display: none;
}

.drive-folder-id-field {
  display: none;
}

.drive-subtitles-fields {
  margin-top: 1rem;
  display: none;
}

.drive-subtitles-warning {
  display: none;
  font-size: 0.98em;
}