/* ============================================================
   StockPadi Brand Theme — Blue + Orange (black/white accents)
   Loaded after app.css / pos-enhance.css. Also loaded by the
   standalone landing page (welcome.blade.php) which has no
   AdminLTE styles.
   ============================================================ */

:root {
  --sp-primary:        #2563eb;
  --sp-primary-hover:  #1d4ed8;
  --sp-primary-light:  #dbeafe;
  --sp-primary-subtle: #eff6ff;
  --sp-primary-soft:   rgba(37, 99, 235, .10);

  --sp-accent:        #f97316;
  --sp-accent-hover:  #ea580c;
  --sp-accent-light:  #ffedd5;
  --sp-accent-subtle: #fff7ed;
}

/* ── 1. POS / app brand controls ── */

/* Buttons that used fixed teal/green, force blue + orange */
.pos-page .sp-express-btn {
  background: #f97316 !important;
}
.pos-page .sp-express-btn:hover {
  background: #ea580c !important;
}

/* Primary CTAs */
.sp-recent-btn,
.sp-btn-primary {
  background: var(--sp-primary) !important;
}

/* Focus rings */
.btn:focus, a:focus, button:focus {
  outline-color: var(--sp-primary) !important;
}

/* ── 2. AdminLTE / blueprint skin remap to blue ── */
.skin-blue .main-header .navbar,
.skin-blue-light .main-header .navbar,
.skin-purple .main-header .navbar,
.skin-purple-light .main-header .navbar,
.sidebar-toggle:hover {
  background-color: #1d4ed8 !important;
}

/* ── 3. Dashboard hero gradient: blue → orange ── */
#home-hero,
.home-hero {
  background: linear-gradient(118deg, #0037c1 0%, #2563eb 52%, #f97316 135%) !important;
}

#home-hero .tw-bg-primary-800,
#home-hero [class*="tw-bg-primary"],
#home-hero [class*="tw-bg-purple"] {
  background-color: #2563eb !important;
}

/* ── 4. Fixed POS action bar: one clean scroll strip ── */
.pos-page .sp-action-row {
  overflow: visible !important;
}
.pos-page .sp-action-row > div {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.pos-page .sp-action-row > div::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ============================================================
   Section: Download App popup (PWA install)
   Shared by landing page + dashboard. Self contained so it can
   render on the standalone welcome page too.
   ============================================================ */

.sp-download-app-popup {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  z-index: 1090;
  display: none;
}

.sp-download-app-popup.is-open {
  display: block;
  animation: sp-download-in .32s ease both;
}

@keyframes sp-download-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.sp-download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .22), 0 4px 12px rgba(15, 23, 42, .10);
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.sp-download-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #f97316 135%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}

.sp-download-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sp-download-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 2px;
}

.sp-download-sub {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.sp-download-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-download-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
  padding: 10px 14px;
  white-space: nowrap;
  transition: all .15s ease;
}

.sp-download-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #f97316 135%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}

.sp-download-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .45);
}

.sp-download-btn-close {
  color: #475569;
  background: #f1f5f9;
}

.sp-download-btn-close:hover {
  background: #e2e8f0;
}

.sp-download-hint {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.sp-download-hint.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .sp-download-app-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
    width: auto;
  }
  @keyframes sp-download-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .sp-download-card {
    flex-wrap: wrap;
    padding: 12px;
  }
  .sp-download-actions {
    flex-direction: row;
    width: 100%;
  }
  .sp-download-actions .sp-download-btn {
    flex: 1 1 0;
    text-align: center;
  }
}

/* ============================================================
   Section: Landing page (welcome) quick brand accents
   ============================================================ */
.sp-landing-cta {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #f97316 135%) !important;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .35) !important;
}