:root {
  --botica-primary: #0f766e;
  --botica-primary-dark: #0b4f4a;
  --botica-secondary: #16a34a;
  --botica-soft: #ecfdf5;
  --botica-border: #bbf7d0;
  --botica-text: #16332f;
}

/* Identidad general de botica */
.skin-blue .main-header .navbar,
.skin-blue .main-header .logo,
.cabecera-m {
  background: linear-gradient(135deg, var(--botica-primary-dark), var(--botica-primary)) !important;
}

.skin-blue .main-sidebar,
.botica-sidebar {
  background: #102f2c !important;
}

/* Nombre completo de la empresa en la cabecera.
   AdminLTE lo mostraba en una sola línea y recortaba el texto largo. */
.main-header .logo {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px 10px !important;
  line-height: normal !important;
}

.main-header .logo .empresa-nombre-header {
  display: -webkit-box !important;
  width: 100%;
  max-height: 42px;
  overflow: hidden;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.18;
  letter-spacing: .15px;
  text-align: center;
  text-transform: uppercase;
}

.main-header .logo .empresa-nombre-header b {
  font-weight: 700;
}

/* Al contraer el menú se conserva únicamente el isotipo, sin deformarlo. */
@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .main-header .logo {
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  .main-header .logo .empresa-nombre-header {
    font-size: 14px;
    max-height: 42px;
  }
}

.sidebar-menu > li > a { color: #d9f7ef !important; }
.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a {
  background: #0f766e !important;
  border-left-color: #4ade80 !important;
  color: #fff !important;
}

.sidebar-menu .treeview-menu { background: #0c2523 !important; }
.sidebar-menu .treeview-menu > li > a { color: #bde9df !important; }
.sidebar-menu .treeview-menu > li.active > a,
.sidebar-menu .treeview-menu > li > a:hover { color: #fff !important; background: rgba(22,163,74,.2) !important; }

.botica-menu-principal > a { box-shadow: inset 3px 0 #4ade80; }

.btn-success,
.btn-primary.btn-agm,
.login-button {
  background: linear-gradient(135deg, var(--botica-secondary), var(--botica-primary)) !important;
  border-color: var(--botica-primary) !important;
}

.botica-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 11px 0 0 10px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #eafff7;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 600;
}

.botica-form-section {
  margin: 14px 0 18px;
  padding: 16px 16px 4px;
  border: 1px solid var(--botica-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fffb, var(--botica-soft));
}

.botica-form-title {
  margin: -16px -16px 15px;
  padding: 11px 16px;
  border-radius: 10px 10px 0 0;
  color: #fff;
  background: linear-gradient(135deg, var(--botica-primary), var(--botica-secondary));
  font-weight: 700;
}

.botica-form-title small { float: right; color: #dcfce7; font-weight: 400; }
.botica-safe-note { border-left: 4px solid var(--botica-secondary); }
.botica-modal-header { background: linear-gradient(135deg, var(--botica-primary-dark), var(--botica-primary)); color: #fff; }
.botica-presentacion-form { background: var(--botica-soft); padding: 16px; border-radius: 9px; border: 1px solid var(--botica-border); margin-bottom: 18px; }
.botica-label { display: inline-block; margin-top: 5px; font-size: 10px; }

.botica-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #0b4f4a, #0f766e 58%, #16a34a);
  box-shadow: 0 10px 24px rgba(15,118,110,.22);
}
.botica-welcome h3 { margin: 0 0 6px; font-weight: 700; }
.botica-welcome p { margin: 0; color: #dcfce7; }
.botica-welcome .botica-welcome-icon { font-size: 42px; opacity: .9; }

/* Login específico para botica */
.container-login::before {
  background: linear-gradient(135deg, rgba(4,47,46,.96), rgba(15,118,110,.86)) !important;
}
.left-panel .descrih1tion {
  background: linear-gradient(135deg, #ffffff, #86efac) !important;
  -webkit-background-clip: text !important;
}
.security-tips { border-left-color: #4ade80 !important; }
.security-tips i,
.container-login .form-group:focus-within .form-control-icon { color: #4ade80 !important; }
.right-panel [type="text"]:focus,
.right-panel [type="password"]:focus { border-color: #22c55e !important; box-shadow: 0 0 0 4px rgba(34,197,94,.16) !important; }

@media (max-width: 767px) {
  .botica-header-badge { display: none; }
  .botica-form-title small { float: none; display: block; margin-top: 3px; }
  .botica-welcome { align-items: flex-start; }
  .botica-welcome .botica-welcome-icon { font-size: 30px; }
}
