.app-content{padding:28px;min-height:100vh;background:#f4f6f8}.dark-panel{background:linear-gradient(135deg,#070b14,#111827 55%,#0f172a);color:#fff;border-radius:26px;padding:28px;box-shadow:0 18px 45px rgba(15,23,42,.18)}.dark-panel.compact{padding:24px 28px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:22px}.page-header h1{font-size:32px;line-height:1.1;margin:6px 0 8px;font-weight:850}.page-header p{color:#cbd5e1;margin:0}.breadcrumb{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#7dd3fc!important;font-weight:800}.page-actions,.table-actions,.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn-primary,.btn-light,.btn-muted{border:0;text-decoration:none;border-radius:14px;padding:11px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.btn-primary{background:#16a34a;color:#fff;box-shadow:0 10px 20px rgba(22,163,74,.22)}.btn-light{background:#fff;color:#0f172a}.btn-muted{background:#eef2f7;color:#111827}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-black{background:#050816;color:#fff;border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.12)}.stat-black span{display:block;color:#94a3b8;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.stat-black strong{display:block;font-size:26px;margin:8px 0 4px}.stat-black small{color:#cbd5e1}.text-warning{color:#fbbf24!important}.text-danger{color:#fb7185!important}.white-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.06);padding:20px;margin-bottom:18px}.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;align-items:end}.filter-grid label,.product-form label,.import-form label{font-size:12px;color:#475569;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.filter-grid input,.filter-grid select,.product-form input,.product-form select,.import-form input{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #dbe3ee;border-radius:13px;padding:12px 13px;background:#fff;color:#111827;font-size:14px;outline:none}.filter-grid input:focus,.filter-grid select:focus,.product-form input:focus{border-color:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.10)}.table-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.table-title-row h2,.form-section-title h2{margin:0;color:#0f172a;font-size:20px}.table-title-row p,.form-section-title p{margin:4px 0 0;color:#64748b}.table-responsive{overflow:auto}.clean-table{width:100%;border-collapse:separate;border-spacing:0}.clean-table th{background:#f8fafc;color:#475569;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;padding:13px;border-bottom:1px solid #e5e7eb}.clean-table td{padding:13px;border-bottom:1px solid #eef2f7;color:#1f2937;vertical-align:middle}.clean-table tr:hover td{background:#fbfdff}.product-title{font-weight:850;color:#0f172a}.clean-table small{color:#64748b}.code-pill{display:inline-flex;background:#eef2ff;color:#3730a3;border-radius:999px;padding:5px 9px;font-weight:850;font-size:12px}.stock-badge{border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px}.stock-badge.ok{background:#dcfce7;color:#166534}.stock-badge.warning{background:#fef3c7;color:#92400e}.stock-badge.danger{background:#ffe4e6;color:#be123c}.status-text{font-weight:900;font-size:12px}.status-text.ok{color:#16a34a}.status-text.warning{color:#d97706}.status-text.danger{color:#e11d48}.actions-cell{display:flex;gap:8px;align-items:center;min-width:250px}.btn-mini,.stock-mini-form button{border:0;background:#eef2f7;color:#111827;text-decoration:none;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:850;cursor:pointer}.btn-mini.danger{background:#ffe4e6;color:#be123c}.stock-mini-form{display:flex;gap:6px;align-items:center}.stock-mini-form input{width:54px;border:1px solid #dbe3ee;border-radius:10px;padding:7px}.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.pagination a{padding:8px 11px;border-radius:10px;background:#f1f5f9;color:#0f172a;text-decoration:none;font-weight:800}.pagination a.active{background:#111827;color:#fff}.empty-state{text-align:center;color:#64748b;padding:28px!important}.form-grid{display:grid;gap:14px;margin-bottom:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.product-form>label{display:block;margin-bottom:14px}.form-section-title{margin-bottom:18px}.form-actions{justify-content:flex-end;margin-top:18px}.import-card{max-width:760px}.import-help{display:grid;gap:8px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:15px;margin:14px 0;color:#475569}.import-help b{color:#0f172a}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:1fr 1fr}.page-header{align-items:flex-start;flex-direction:column}.form-grid.three,.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.app-content{padding:16px}.stats-grid,.filter-grid,.form-grid.two,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.actions-cell{flex-direction:column;align-items:flex-start}.page-header h1{font-size:26px}}
/* MODO COMPACTO SOLFARMA */
.app-content{
  padding:20px;
}

.dark-panel{
  border-radius:18px;
  padding:20px 22px;
}

.page-header{
  margin-bottom:16px;
}

.page-header h1{
  font-size:26px;
}

.white-card{
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
}

.table-title-row{
  margin-bottom:12px;
}

.table-title-row h2{
  font-size:18px;
}

.clean-table th{
  padding:9px 10px;
  font-size:11px;
}

.clean-table td{
  padding:9px 10px;
  font-size:13px;
}

.btn-primary,
.btn-light,
.btn-muted{
  border-radius:10px;
  padding:8px 12px;
  font-size:13px;
}

.btn-mini,
.stock-mini-form button{
  border-radius:8px;
  padding:6px 8px;
  font-size:11px;
}

.code-pill{
  padding:4px 8px;
  font-size:11px;
}

.status-text{
  font-size:11px;
}

.actions-cell{
  gap:6px;
  min-width:220px;
}

input,
select,
textarea{
  padding:9px 10px;
  font-size:13px;
}

/* MENU LATERAL COMPACTO SOLFARMA */
.sidebar{
  width:220px;
  padding:18px 14px;
}

.main{
  margin-left:220px;
}

.brand{
  gap:8px;
  margin-bottom:20px;
}

.brand-icon{
  width:30px;
  height:30px;
  border-radius:9px;
  font-size:15px;
}

.brand-name{
  font-size:18px;
  letter-spacing:-.03em;
}

.brand-badge{
  padding:4px 7px;
  font-size:10px;
  border-radius:7px;
}

.side-nav{
  gap:3px;
}

.nav-title{
  font-size:10px;
  margin:16px 6px 8px;
  padding-top:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.nav-item{
  gap:10px;
  padding:9px 10px;
  border-radius:9px;
  font-size:13px;
  font-weight:750;
}

.nav-item span{
  width:18px;
  font-size:14px;
}

.nav-item.active,
.nav-item:hover{
  background:#ecfdf5;
  color:#15803d;
}

.logout-form{
  padding-top:14px;
}

.logout-form button{
  font-size:13px;
  font-weight:700;
}

.topbar{
  height:58px;
}

.avatar{
  width:34px;
  height:34px;
  font-size:13px;
}

.user-pill{
  gap:8px;
  font-size:13px;
}

.user-pill small{
  font-size:11px;
}

.menu-btn,
.icon-btn{
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:18px;
}

@media(max-width:800px){
  .sidebar{
    width:auto;
    padding:16px;
  }

  .main{
    margin-left:0;
  }
}


/* ===== GLOW CELESTE DASHBOARD SOLFARMA ===== */

.metric-card.dark{
  position:relative;
  overflow:hidden;
}

.metric-card.dark::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at 35% 35%,
    rgba(56,189,248,.22),
    rgba(14,165,233,.10) 35%,
    transparent 65%);
  pointer-events:none;
}

.metric-card.dark > *{
  position:relative;
  z-index:1;
}

.metric-card strong{
  color:#ffffff !important;
  text-shadow:
    0 0 6px rgba(125,211,252,.95),
    0 0 14px rgba(56,189,248,.80),
    0 0 28px rgba(14,165,233,.45);
}

.metric-card small,
.metric-card em{
  color:#dff7ff !important;
  text-shadow:
    0 0 5px rgba(56,189,248,.65);
}

/* ==========================================================
   HERO DASHBOARD SOLFARMA - EFECTO GLOW VERDE
   ========================================================== */

.dark-panel{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

/* Halo superior izquierdo */
.dark-panel::before{
    content:"";
    position:absolute;
    width:520px;
    height:520px;

    top:-250px;
    left:-180px;

    border-radius:50%;

    background:radial-gradient(circle,
        rgba(74,255,174,.35) 0%,
        rgba(34,197,94,.18) 35%,
        rgba(34,197,94,.08) 55%,
        transparent 72%);

    filter:blur(18px);

    z-index:0;
}

/* Halo inferior derecho */
.dark-panel::after{
    content:"";
    position:absolute;

    width:420px;
    height:420px;

    right:-120px;
    bottom:-220px;

    border-radius:50%;

    background:radial-gradient(circle,
        rgba(120,255,190,.18) 0%,
        rgba(34,197,94,.10) 45%,
        transparent 70%);

    filter:blur(22px);

    z-index:0;
}

/* Todo el contenido por encima del brillo */
.dark-panel>*{
    position:relative;
    z-index:2;
}

/* ==========================================================
   TEXTOS CON GLOW VERDE
   ========================================================== */

.dark-panel h1{

    color:#ffffff;

    text-shadow:
        0 0 8px rgba(134,255,196,.90),
        0 0 18px rgba(74,255,174,.60),
        0 0 34px rgba(34,197,94,.35);

}

.dark-panel .breadcrumb{

    color:#9dffd4 !important;

    text-shadow:
        0 0 8px rgba(74,255,174,.65);

}

.dark-panel p{

    color:#dcfce7;

    text-shadow:
        0 0 5px rgba(34,197,94,.35);

}

/* ================= LOGIN SOLFARMA ================= */

.login-layout{
    min-height:100vh;
    display:grid;
    grid-template-columns:65% 35%;
    background:#eef5fb;
}

.login-banner{
  min-height:100vh;
  background-image:url('/img/login-bg.png');
  background-repeat:no-repeat;
  background-position:center center;
  background-size:100% 100%;
  background-color:#eafafa;
}

.login-form-panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:50px;
  background:
    radial-gradient(circle at top right, rgba(20,184,166,.10), transparent 35%),
    radial-gradient(circle at bottom left, rgba(37,99,235,.10), transparent 35%),
    #ffffff;
}

.login-card{
  width:100%;
  max-width:440px;
  padding:42px;
  border-radius:24px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 24px 70px rgba(15,23,42,.12);
}

.login-form-logo{
  text-align:center;
  margin-bottom:24px;
}

.login-form-logo img{
  width:230px;
  max-width:100%;
}

.login-card h2{
  margin:0;
  text-align:center;
  font-size:34px;
  color:#0f172a;
  font-weight:900;
}

.login-card p{
  margin:10px 0 28px;
  text-align:center;
  color:#64748b;
}

.login-card label{
  display:block;
  margin-bottom:18px;
  color:#0f172a;
  font-size:14px;
  font-weight:800;
}

.login-card input{
  width:100%;
  margin-top:8px;
  padding:14px 15px;
  border:1px solid #cbd5e1;
  border-radius:13px;
  font-size:15px;
  outline:none;
}

.login-card input:focus{
  border-color:#14b8a6;
  box-shadow:0 0 0 4px rgba(20,184,166,.14);
}

.login-card .primary{
  width:100%;
  margin-top:12px;
  padding:15px;
  border:0;
  border-radius:14px;
  background:linear-gradient(90deg,#10b981,#0f766e,#0b5fc7);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(15,118,110,.22);
}

.login-card .primary:hover{
  filter:brightness(1.05);
}

@media(max-width:900px){
  .login-layout{
    grid-template-columns:1fr;
  }

  .login-banner{
    display:none;
  }

  .login-form-panel{
    padding:24px;
  }

  .login-card{
    padding:30px;
  }
}