:root{
  --bg: #f6f7fb;
  --bg2:#eef1f7;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line: rgba(15,23,42,.10);
  --shadow: 0 12px 28px rgba(15,23,42,.08);
  --shadow2: 0 6px 14px rgba(15,23,42,.06);
  --radius: 16px;
  --radius2: 20px;
  --max: 1140px;
  --brand: #2563eb;
  --brand2:#10b981;
  --brand3:#0ea5e9;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(246,247,251,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand .logo{
  width:44px; height:44px;
  border-radius: 12px;
  background: #fff;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
  padding:7px;
}
.brand .name{display:flex; flex-direction:column; line-height:1.1}
.brand .name strong{font-size:14px; letter-spacing:.2px}
.brand .name span{font-size:12px; color:var(--muted2); margin-top:2px}
.menu{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.menu a{
  font-size:13px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--muted);
}
.menu a:hover{
  border-color: var(--line);
  background: rgba(15,23,42,.02);
  color: var(--text);
}
.menu a.active{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  color: var(--text);
}
.pill{
  font-size:12px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--muted);
}
.hero{padding:34px 0 18px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 920px){ .hero-grid{grid-template-columns:1fr} }
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.hero-card{
  position:relative;
  overflow:hidden;
  min-height: 360px;
  display:flex;
}
.hero-card::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 46%, rgba(255,255,255,.58) 66%, rgba(255,255,255,.28) 100%),
    radial-gradient(700px 420px at 18% 18%, rgba(37,99,235,.10), transparent 60%),
    url("/images/background.webp");
  background-size: cover;
  /* Keep the important area inside the frame (more like "auto-fit") */
  background-position: 88% 92%;
  filter: saturate(1.03) contrast(1.02);
}
.hero-card::after{
  content:"";
  position:absolute; inset:0;
  /* subtle inner vignette for depth */
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06), inset 0 -120px 140px rgba(15,23,42,.04);
  pointer-events:none;
}
.hero-card .inner{
  position:relative;
  padding:26px;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.65);
  width: fit-content;
}
.h1{
  margin:0;
  font-size:40px;
  line-height:1.08;
  letter-spacing:-.6px;
}
@media (max-width: 520px){ .h1{font-size:32px} }
.lead{
  margin:0;
  color: var(--muted);
  font-size:15px;
  line-height:1.8;
  max-width: 62ch;
}
.cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--text);
  font-size:13px;
  box-shadow: var(--shadow2);
}
.btn:hover{transform: translateY(-1px); transition:.15s ease}
.btn.primary{
  border-color: rgba(37,99,235,.30);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(16,185,129,.10));
}
.btn.ghost{background: rgba(255,255,255,.45);}
.hero-aside{
  position:relative;
  overflow:hidden;
  min-height: 360px;
  display:flex;
  flex-direction:column;
}
.hero-aside::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.96) 60%, rgba(255,255,255,1) 100%),
    radial-gradient(700px 420px at 25% 15%, rgba(16,185,129,.10), transparent 60%),
    radial-gradient(700px 420px at 85% 25%, rgba(37,99,235,.10), transparent 60%)
  background-size: cover;
  background-position: center;
  filter: saturate(1.03) contrast(1.01);
}
.hero-aside .inner{position:relative;padding:20px 20px 12px;}
.hero-aside h3{margin:0 0 8px; font-size:14px; letter-spacing:.2px}
.hero-aside p{margin:0; color:var(--muted); font-size:13px; line-height:1.75}
.meta{
  position:relative;
  margin-top:auto;
  padding:14px 16px;
  border-top: 1px solid var(--line);
  display:flex; gap:8px; flex-wrap:wrap;
  background: rgba(255,255,255,.80);
}
.tag{
  padding:8px 10px;
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.65);
}
.section{padding:18px 0}
.h2{margin:0 0 10px;font-size:18px;letter-spacing:-.2px;}
.muted{color:var(--muted)}
.grid3{display:grid; gap:12px; grid-template-columns: repeat(3, 1fr);}
@media (max-width: 920px){ .grid3{grid-template-columns:1fr} }
.feature{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow2);
}
.feature h4{margin:0 0 6px; font-size:14px}
.feature p{margin:0; color:var(--muted); font-size:13px; line-height:1.7}
.split{display:grid; gap:14px; grid-template-columns: 1fr 1fr;}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }
.content{padding:18px}
.content ul{margin:10px 0 0 18px; color:var(--muted); line-height:1.9}
.content li{margin:6px 0}
.banner{
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.banner img{width:100%; height:auto}
.banner .cap{
  padding:12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  background: rgba(255,255,255,.85);
}
.table{
  width:100%;
  border-collapse: collapse;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  vertical-align:top;
}
.table th{color:var(--text); text-align:left; background: rgba(15,23,42,.02)}
.table td{color:var(--muted)}
.table tr:last-child td{border-bottom:none}
.notice{
  border:1px solid rgba(37,99,235,.20);
  background: rgba(37,99,235,.06);
  padding:14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.kdocs{
  width:100%;
  height: 70vh;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.footer{
  margin-top:24px;
  border-top:1px solid var(--line);
  padding:18px 0 28px;
  color:var(--muted2);
  font-size:12px;
}
.footer a{color:var(--muted2)}
.footer a:hover{color:var(--text)}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}


/* Inventory advanced */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 920px){ .kpi-grid{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .kpi-grid{grid-template-columns:1fr} }

.kpi{
  padding:14px 16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}
.kpi .label{font-size:12px; color: var(--muted2)}
.kpi .value{font-size:22px; margin-top:6px; letter-spacing:-.3px}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
}
.toolbar .left, .toolbar .right{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.input, select.select{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.input{min-width: 320px; max-width: 520px; width: 44vw;}
@media (max-width: 520px){ .input{min-width: 100%; width: 100%;} }

select.select{width:auto}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px}
.chip{
  padding:8px 10px;
  font-size:12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  cursor:pointer;
  user-select:none;
}
.chip:hover{transform: translateY(-1px); transition:.15s ease}
.chip.active{
  border-color: rgba(37,99,235,.24);
  background: rgba(37,99,235,.10);
  color: var(--text);
}

.table-wrap{
  margin-top: 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:auto;
  background:#fff;
  box-shadow: var(--shadow);
}
.table{
  margin:0;
  border:none;
  min-width: 860px;
}
.table th, .table td{
  white-space: nowrap;
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  background: rgba(246,247,251,.95);
  backdrop-filter: blur(8px);
}
.table tbody tr:hover td{
  background: rgba(37,99,235,.04);
}
.th-sort{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.sort-ind{
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  opacity:.55;
}
.sort-ind.up{border-bottom:7px solid rgba(15,23,42,.55)}
.sort-ind.down{border-top:7px solid rgba(15,23,42,.55)}
.sort-ind.off{border-top:7px solid rgba(15,23,42,.25)}
.pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
  flex-wrap:wrap;
}
.pager .muted{font-size:12px}
.pager .btn{
  padding:10px 12px;
  border-radius: 12px;
}
