/* ==========================================================================
   TexERP — Page-specific styles (login, dashboard, reports hub, catalog …)
   ========================================================================== */

/* ---------- auth / login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--erp-surface); }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(145deg, color-mix(in srgb, var(--erp-primary) 92%, #000) 0%, color-mix(in srgb, var(--erp-primary) 55%, #0b1020) 100%);
  background-size: cover; background-position: center;
}
.auth-hero.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--erp-primary) 80%, #000) 0%, rgba(11, 16, 32, .75) 100%); }
.auth-hero > * { position: relative; z-index: 2; }
.auth-weave { position: absolute !important; inset: 0; z-index: 1 !important; opacity: .18; background:
  repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .55) 22px 24px),
  repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .55) 22px 24px);
  -webkit-mask-image: radial-gradient(circle at 80% 90%, #000, transparent 65%); mask-image: radial-gradient(circle at 80% 90%, #000, transparent 65%); }
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand img { width: 62px; height: 62px; border-radius: 0; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); }
.auth-brand b { display: block; font-family: var(--erp-font-head); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.auth-brand small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-logo img { width: 168px; max-width: 60%; height: auto; }
.auth-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; color: #fff; max-width: 520px; }
.auth-hero p.lead { color: rgba(255, 255, 255, .78); max-width: 480px; font-size: 1.02rem; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; max-width: 480px; }
.auth-points li { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, .92); font-weight: 500; }
.auth-points li i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; backdrop-filter: blur(6px); }
.auth-foot { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--erp-bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card .form-control { height: 46px; }
.auth-card .btn-lg { height: 48px; }
.auth-demo { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--erp-primary-softer); border: 1px dashed rgba(var(--erp-primary-rgb), .35); font-size: 12.5px; color: var(--erp-text-2); }
.auth-mobile-brand { display: none; }
@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
  .auth-mobile-brand img { width: 42px; height: 42px; border-radius: 12px; }
  .auth-mobile-brand b { font-family: var(--erp-font-head); font-size: 20px; font-weight: 800; }
}

/* ---------- dashboard ---------- */
.welcome-card { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--erp-primary) 95%, #000), color-mix(in srgb, var(--erp-primary) 60%, #1b0b4a)); }
.welcome-card::after { content: ''; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.welcome-card::before { content: ''; position: absolute; right: 90px; bottom: -90px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.welcome-card h3 { color: #fff; font-size: 1.45rem; font-weight: 800; }
.welcome-card .text-white-75 { color: rgba(255, 255, 255, .78); }
.welcome-card .btn-light { --bs-btn-color: var(--erp-primary); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #f1f2ff; --bs-btn-hover-color: var(--erp-primary-700); box-shadow: none; }
.welcome-card .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.welcome-card .btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.chart-box { min-height: 290px; }
.mini-list .ml-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--erp-border); }
.mini-list .ml-item:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list .ml-item:first-child { padding-top: 0; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--t); }

/* ---------- report hub ---------- */
.report-tile { display: flex; gap: 16px; padding: 20px; height: 100%; color: inherit; }
.report-tile:hover { color: inherit; }
.report-tile .rt-icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 25px; flex-shrink: 0; color: color-mix(in srgb, var(--t) var(--tone-text-pct), var(--tone-mix)); background: color-mix(in srgb, var(--t) 12%, var(--erp-surface)); }
.report-tile h5 { font-size: 15px; margin: 0 0 3px; }
.report-tile p { margin: 0; font-size: 12.5px; color: var(--erp-muted); }

/* ---------- catalog (available stock) ---------- */
.stock-card { overflow: hidden; }
.stock-card .sc-body { padding: 14px 16px 16px; }
.stock-card .sc-title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.stock-card .sc-sub { font-size: 12px; color: var(--erp-muted); }
.stock-card .sc-qty { font-family: var(--erp-font-head); font-weight: 800; font-size: 17px; }

/* ---------- misc ---------- */
.profile-cover { height: 130px; border-radius: 18px 18px 0 0; background: linear-gradient(120deg, color-mix(in srgb, var(--erp-primary) 90%, #000), color-mix(in srgb, var(--erp-primary) 55%, #1b0b4a)); position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(0deg, transparent 0 14px, #fff 14px 15px), repeating-linear-gradient(90deg, transparent 0 14px, #fff 14px 15px); }
.profile-avatar { margin-top: -44px; border: 4px solid var(--erp-surface); }
.matrix-check { width: 20px; height: 20px; cursor: pointer; }
.sticky-top-offset { position: sticky; top: calc(var(--erp-topbar-h) + 18px); }
.link-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--erp-border); border-radius: 14px; background: var(--erp-surface); color: inherit; transition: .15s; }
.link-card:hover { border-color: rgba(var(--erp-primary-rgb), .4); background: var(--erp-primary-softer); color: inherit; transform: translateY(-1px); }
.rack-cell { border: 1px solid var(--erp-border); border-radius: 12px; padding: 12px; background: var(--erp-surface); font-size: 12.5px; transition: .15s; }
.rack-cell:hover { border-color: rgba(var(--erp-primary-rgb), .45); box-shadow: var(--erp-shadow-md); }
.rack-cell .rc-title { font-weight: 700; font-size: 13px; }
.floor-tile { border-radius: 16px; padding: 18px 20px; border: 1px solid var(--erp-border); background: var(--erp-surface); }
.pill-nav .nav-link { border-radius: 20px; padding: 6px 14px; font-size: 13px; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.border-dashed { border-style: dashed !important; }
