/* Baoha Ơi — distinctive horizontal warranty-register navigation */
:root{--primary:#2563EB;--primary-hover:#1D4ED8;--primary-soft:#EFF6FF;--page:#F8FAFC;--surface:#fff;--border:#E2E8F0;--text:#0F172A;--muted:#64748B}
.app-shell{min-height:100vh;display:flex;flex-direction:column}
/* Replace the generic left SaaS sidebar with a compact register masthead */
.sidebar{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;margin:0!important;padding:14px clamp(18px,4vw,58px)!important;background:#fff!important;border:0!important;border-bottom:1px solid #E2E8F0!important;border-right:0!important;border-radius:0!important;box-shadow:0 2px 10px rgba(15,23,42,.025)!important;display:grid!important;grid-template-columns:minmax(190px,245px) minmax(0,1fr) auto!important;align-items:center!important;gap:clamp(16px,3vw,42px)!important;z-index:30!important;transform:none!important}
.brand{padding:0!important;gap:11px!important;min-width:0;color:var(--text)!important;text-decoration:none}
.brand-mark{width:43px!important;height:43px!important;flex:none;border-radius:12px!important;background:#EFF6FF!important;color:#2563EB!important;box-shadow:inset 0 0 0 1px #DBEAFE!important;display:grid;place-items:center}
.brand-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.brand strong{display:block;color:#0F172A!important;font-size:17px!important;font-weight:800;letter-spacing:-.65px}
.brand small{display:block;color:#94A3B8!important;font-size:8px!important;letter-spacing:1.05px;font-weight:800;margin-top:3px}
.side-label{display:none!important}
.side-nav{display:flex!important;align-items:stretch!important;justify-content:center;gap:clamp(12px,2vw,30px)!important;min-width:0;overflow-x:auto;scrollbar-width:none}
.side-nav::-webkit-scrollbar{display:none}
.nav-item{position:relative;display:inline-flex!important;align-items:center!important;justify-content:center;gap:8px!important;width:auto!important;min-height:48px;padding:0 4px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#64748B!important;font-size:12px!important;font-weight:650!important;white-space:nowrap;box-shadow:none!important;transition:color .18s ease}
.nav-item:hover{background:transparent!important;color:#2563EB!important}
.nav-item.active{background:transparent!important;color:#1D4ED8!important;font-weight:800!important;box-shadow:none!important}
.nav-item.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#2563EB}
.nav-icon{width:17px!important;height:17px!important;display:grid;place-items:center;font-size:0;color:currentColor}
.nav-icon svg{width:17px!important;height:17px!important;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.nav-count{margin-left:2px!important;min-width:18px;text-align:center;padding:2px 6px!important;border-radius:20px;background:#FFF7ED!important;color:#C2410C!important;font-size:9px!important;font-weight:800}
.sidebar-bottom{margin:0!important;display:flex!important;align-items:center;justify-content:flex-end;gap:15px;min-width:max-content}
.sidebar-bottom .settings-nav{min-height:38px!important;padding:0 5px!important;color:#64748B!important;font-size:11px!important}
.sidebar-bottom .settings-nav.active:after{display:none}
.donate-link{display:inline-flex!important;align-items:center;gap:5px;margin:0!important;padding:8px 12px!important;border:1px solid #DBEAFE!important;border-radius:8px!important;background:#F8FBFF;color:#2563EB!important;font-size:10px!important;font-weight:750!important;text-decoration:none}
.donate-link:hover{background:#EFF6FF;border-color:#BFDBFE;color:#1D4ED8!important}
.privacy-card{display:none!important}
.mobile-menu{display:none!important}
.main-area{margin:0!important;width:100%;min-height:calc(100vh - 72px);background:#F8FAFC}
.topbar{height:59px!important;padding:0 clamp(18px,4vw,58px)!important;background:rgba(255,255,255,.92)!important;border-bottom:1px solid #E2E8F0!important;box-shadow:none!important;position:sticky;top:0;z-index:20;backdrop-filter:blur(14px);gap:18px}
.breadcrumb{font-size:11px;color:#94A3B8}
.breadcrumb strong{color:#334155;font-weight:750}
.topbar-right{gap:12px!important}
.top-search{width:min(310px,28vw)!important;height:36px!important;border-radius:9px!important;background:#F8FAFC!important;box-shadow:none!important}
.sync-indicator{font-size:9px!important}
.user-chip{padding-left:10px;border-left:1px solid #E2E8F0;font-size:10px!important}
.avatar{width:29px!important;height:29px!important}
.page-wrap{max-width:1240px!important;padding:34px clamp(18px,4vw,52px) 30px!important}
.dashboard{padding-top:29px!important}
.welcome-row{border-radius:15px!important}
.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.site-footer{max-width:1240px;width:100%;margin:0 auto;padding:18px clamp(18px,4vw,52px) 24px!important}
/* Make the warranty register feel like a useful records desk, not a generic app panel */
.page-heading-row h1,.welcome-row h1{letter-spacing:-1.1px}
.section-heading{margin-top:32px}
.inventory-heading{padding-top:2px}
.item-card{box-shadow:0 1px 2px rgba(15,23,42,.03),0 7px 18px rgba(15,23,42,.035)!important}
.item-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,23,42,.08)!important}
.modal-card{box-shadow:0 24px 70px rgba(15,23,42,.18)!important}
@media(max-width:1050px){
  .sidebar{grid-template-columns:190px minmax(0,1fr) auto!important;gap:16px!important;padding-left:20px!important;padding-right:20px!important}
  .side-nav{gap:16px!important;justify-content:flex-start}
  .nav-item{font-size:11px!important}
  .sidebar-bottom{gap:8px}
  .donate-link{padding:7px 9px!important}
  .topbar{padding-left:20px!important;padding-right:20px!important}
}
@media(max-width:760px){
  .sidebar{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"brand actions" "nav nav"!important;row-gap:9px!important;padding:11px 15px 0!important;gap:8px!important}
  .brand{grid-area:brand}
  .sidebar-bottom{grid-area:actions;gap:6px}
  .side-nav{grid-area:nav;justify-content:flex-start!important;gap:22px!important;overflow-x:auto;padding:0 2px}
  .nav-item{min-height:42px!important;font-size:11px!important}
  .nav-item.active:after{bottom:0}
  .sidebar-bottom .settings-nav{font-size:0!important;width:34px;min-width:34px;padding:0!important}
  .sidebar-bottom .settings-nav .nav-icon{width:18px!important}
  .donate-link{font-size:0!important;width:34px;height:34px;justify-content:center;padding:0!important}
  .donate-link span{font-size:14px}
  .topbar{height:54px!important;padding:0 15px!important}
  .breadcrumb span,.breadcrumb b{display:none}
  .top-search{display:none!important}
  .topbar-right{gap:8px!important}
  .sync-indicator{display:none!important}
  .user-chip span:not(.avatar){display:none}
  .user-chip{border:0;padding-left:0}
  .page-wrap{padding:23px 15px 24px!important}
  .welcome-row{padding:20px!important}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .stat-card{padding:12px 10px!important;min-height:100px!important}
  .stat-value{font-size:24px!important}
  .site-footer{padding:16px 15px 22px!important}
}
@media(max-width:430px){
  .brand-mark{width:39px!important;height:39px!important}
  .brand strong{font-size:15px!important}
  .brand small{font-size:7px!important}
  .side-nav{gap:18px!important}
  .nav-item{font-size:10px!important;gap:6px!important}
  .nav-icon,.nav-icon svg{width:15px!important;height:15px!important}
  .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .stat-top{font-size:8px!important}
  .stat-foot{font-size:7px!important}
  .stat-icon{width:24px!important;height:24px!important}
}
