
:root{
  --navy:#16365f;--navy2:#0d2746;--blue:#245b97;--ink:#1f2937;
  --muted:#6b7280;--line:#dfe5ec;--soft:#f4f7fa;--white:#fff;
  --accent:#d84b32;--shadow:0 9px 28px rgba(15,39,70,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:#f3f5f8;color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic","Meiryo",sans-serif;
}
.topbar{background:var(--navy2);color:#d9e4f1;font-size:12px}
.shell{width:min(1240px,calc(100% - 32px));margin:auto}
.topbar .shell{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.topbar a{color:#fff;text-decoration:none}
.header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:14px}
.logo{
  width:52px;height:52px;border-radius:12px;background:linear-gradient(145deg,var(--navy),#2d65a1);
  color:#fff;display:grid;place-items:center;font-weight:900;font-size:20px;box-shadow:0 5px 14px rgba(22,54,95,.18)
}
.brand h1{margin:0;font-size:25px}
.brand p{margin:3px 0 0;color:var(--muted);font-size:12px;letter-spacing:.05em}
.badge{font-size:12px;color:var(--navy);background:#edf4fb;border:1px solid #d6e3f1;border-radius:999px;padding:8px 13px;font-weight:700}
.hero{background:linear-gradient(135deg,var(--navy2),var(--navy));color:#fff}
.hero .shell{padding:31px 0 33px}
.hero h2{margin:0;font-size:27px}
.hero p{margin:6px 0 0;color:#dce7f4;font-size:13px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:21px}
.stat{padding:13px 15px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08)}
.stat small{display:block;color:#c7d7e9;font-size:11px}
.stat strong{display:block;margin-top:3px;font-size:20px}
main.shell{padding:23px 0 54px}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden}
.controls{
  display:grid;grid-template-columns:minmax(300px,1.8fr) minmax(170px,.7fr) minmax(160px,.65fr) minmax(145px,.55fr);
  gap:12px;padding:18px;border-bottom:1px solid var(--line)
}
.field label{display:block;margin-bottom:5px;font-size:11px;font-weight:700;color:var(--muted)}
.input,select{width:100%;height:42px;border:1px solid #d4dce5;border-radius:8px;background:#fff;padding:0 12px;font-size:13px;outline:none}
.input:focus,select:focus{border-color:#6f93ba;box-shadow:0 0 0 3px rgba(36,91,151,.1)}
.search{position:relative}
.search .input{padding-left:38px}
.search svg{position:absolute;left:12px;bottom:11px;width:18px;height:18px;color:#7a8796}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 18px;background:#fafbfd;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.actions{display:flex;gap:7px;flex-wrap:wrap}
.btn{height:34px;border:1px solid #d6dde5;background:#fff;border-radius:7px;padding:0 11px;cursor:pointer;font-size:12px;font-weight:700;color:#41536a}
.btn:hover{background:#f4f7fa}
.btn.primary{background:var(--navy);border-color:var(--navy);color:#fff}
.table-wrap{overflow:auto;max-height:72vh}
table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}
thead th{
  position:sticky;top:0;z-index:5;background:#eaf0f6;color:#30465f;
  padding:12px 14px;text-align:left;border-bottom:1px solid #ccd7e3;font-size:12px;white-space:nowrap
}
thead th:nth-child(1){width:62px;text-align:center}
thead th:nth-child(2){width:115px}
thead th:nth-child(3){width:165px}
thead th:nth-child(5){width:165px;text-align:right}
thead th:nth-child(6){width:90px;text-align:center}
tbody td{padding:12px 14px;border-bottom:1px solid #edf1f4;vertical-align:top;font-size:13px}
tbody tr:hover{background:#fbfcfe}
.idx{text-align:center;color:#9aa4b0}
.store{font-weight:700;color:#5e6c7e}
.code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:800;color:var(--navy);word-break:break-all}
.name{line-height:1.67}
.price{text-align:right;font-weight:800;font-size:15px;white-space:nowrap}
.copy{text-align:center}
.copy button{height:29px;border:1px solid #d5dde6;background:#fff;border-radius:6px;font-size:11px;cursor:pointer;color:#43576f}
.empty{display:none;text-align:center;padding:55px 20px;color:var(--muted)}
.pager{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line)}
.page-buttons{display:flex;align-items:center;gap:7px}
.pagebtn{height:33px;min-width:58px;border:1px solid #d6dde5;background:#fff;border-radius:6px;cursor:pointer}
.pagebtn:disabled{opacity:.4;cursor:not-allowed}
.pageinfo{font-size:12px;color:var(--muted)}
.note{margin-top:12px;font-size:11px;color:#7b8490;text-align:right}
footer{background:#132a48;color:#bdcad8}
footer .shell{padding:23px 0;display:flex;justify-content:space-between;align-items:center;font-size:12px}
footer strong{color:#fff;font-size:15px}
.toast{position:fixed;right:18px;bottom:18px;padding:10px 14px;background:#172b44;color:#fff;border-radius:8px;opacity:0;transform:translateY(8px);transition:.18s;pointer-events:none;font-size:12px;box-shadow:0 7px 22px rgba(0,0,0,.2)}
.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:900px){.controls{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.stats{grid-template-columns:1fr 1fr}}
@media(max-width:650px){
  .shell{width:min(100% - 18px,1240px)}
  .topbar .shell{display:block;padding:7px 0}.topbar .right{margin-top:2px}
  .header-inner{min-height:74px}.logo{width:43px;height:43px}.brand h1{font-size:20px}.badge{display:none}
  .hero .shell{padding:24px 0}.hero h2{font-size:22px}.stats{grid-template-columns:1fr 1fr}
  .controls{grid-template-columns:1fr}.search-field{grid-column:auto}.toolbar{align-items:flex-start;flex-direction:column}
  .pager{flex-direction:column}.pageinfo{text-align:center}footer .shell{display:block}footer .copyr{margin-top:7px}
}
@media print{
  .topbar,.header,.hero,.controls,.toolbar,.pager,footer,.note,.toast{display:none!important}
  body,main.shell{background:#fff;width:100%;padding:0}.panel{border:0;box-shadow:none}
  .table-wrap{overflow:visible;max-height:none}thead th{position:static}tbody td{font-size:9px;padding:6px}
  thead th:last-child,tbody td:last-child{display:none}
}
