/* 레이아웃: 상단 메뉴 한 줄 + 공통 조회 조건 한 줄 + 화면별 표·그래프. 장식 없이 표 중심 */
:root{
  /* 색은 그린링크와 같은 녹색 계열 */
  --bg:#f2f5f3; --surface:#ffffff; --fg:#1a211e; --muted:#5f6d66; --line:#e4e9e6;
  --head:#d3e2d9; --head-top:#e6efe9; --head-ink:#0f1f17; --head-strong:#1f4d36; --sec:#e6eee9; --s-buy:#e7f1eb; --s-imp:#e9eef3; --s-sell:#f3efe5; --head-line:#a9b9af; --cell-line:#e1e8e4; --accent:#178a56; --accent-ink:#ffffff; --accent-soft:#f0f7f4;
  --brand:#14532d; --lime:#9ee050;
  --s2:#6250d6; --up:#c2372a; --down:#2160b0; --dim:#cfd6d2;
  --font-body:"Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --font-head:var(--font-body);
  color-scheme:light;  /* 휴대폰이 어두운 화면 설정이어도 PC와 같은 밝은 바탕으로 */
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wrap{max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
header.top{background:var(--surface);border-bottom:1px solid var(--line)}
header.top .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;padding-block:10px}
.sys{font-family:var(--font-head);font-weight:700;letter-spacing:-0.02em;font-size:17px;color:var(--fg);white-space:nowrap;display:inline-flex;align-items:center;gap:8px}
.sys .logo{display:block;flex:none}
nav{display:flex;flex-wrap:wrap;gap:2px;flex:1}
nav button{border:0;background:none;color:var(--fg);font:inherit;padding:6px 12px;cursor:pointer;border-bottom:2px solid transparent}
nav button[aria-current="page"]{color:var(--fg);border-bottom-color:var(--accent);font-weight:700}
nav button:hover{color:var(--fg)}
nav .sep{width:1px;background:var(--line);margin:4px 8px}
.meta{color:var(--muted);font-size:12.5px;white-space:nowrap}
.link{border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;cursor:pointer;text-decoration:underline;padding:0}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

/* 조회 조건 (시안 A): 흰 카드 한 장, 칸 이름은 칸 안 위쪽에 작게, 기본값과 다르게 고른 칸은 녹색 */
.filters{background:var(--bg);border-bottom:0}
.filters .wrap{display:block;padding-block:14px 0}
.fcard{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:var(--surface);border:1px solid #cfd9d3;border-radius:10px;padding:8px 12px 8px 16px;box-shadow:0 1px 3px rgba(20,40,30,.06)}
.filters .fbody{display:contents}
.ftitle{font-weight:700;font-size:14px;color:var(--fg);padding-right:14px;margin-right:2px;border-right:1px solid var(--line);align-self:stretch;display:flex;align-items:center;white-space:nowrap}
.filters .f{position:relative;gap:0}
.filters .f label{position:absolute;left:13px;top:6px;font-size:11px;font-weight:500;color:var(--muted);pointer-events:none;line-height:1.2}
.filters select{appearance:none;-webkit-appearance:none;height:46px;min-width:104px;padding:17px 32px 3px 12px;border:1px solid #cfd9d3;border-radius:8px;font-size:14px;font-weight:600;
  background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f6d66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;cursor:pointer;transition:border-color .15s,background-color .15s}
.filters #fRaw{min-width:140px}
.filters #fQu,.filters #fMu{min-width:92px}
.filters select:hover{border-color:var(--accent)}
.filters .f.changed label{color:var(--fg)}
.filters select.changed{border-color:var(--accent);background-color:var(--accent-soft);color:var(--fg)}
.filters .chk{margin-left:auto;font-size:13px;color:var(--muted);padding-right:4px;min-height:46px}
.filters .chk.changed{color:var(--fg);font-weight:700}
.filters .fbody{display:contents}
.f{display:flex;flex-direction:column;gap:2px}
.f label,.f .lb{font-size:12px;color:var(--muted)}
select,input[type=text],input[type=password],input[type=search],input[type=email],input[type=date]{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:5px 8px;min-height:32px}
.chk{display:flex;align-items:center;gap:6px;font-size:13px;min-height:32px}
.btn{font:inherit;border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);border-radius:3px;padding:6px 14px;cursor:pointer;min-height:32px}
.btn.sub{background:var(--surface);color:var(--fg)}
.btn:disabled{opacity:.5;cursor:default}

main .wrap{padding-block:20px 48px;display:flex;flex-direction:column;gap:24px}
h1{font-family:var(--font-head);font-weight:600;font-size:20px;margin:0;text-wrap:balance}
h2{font-family:var(--font-head);font-weight:600;font-size:15.5px;margin:0 0 8px}
.lead{color:var(--muted);margin:2px 0 0;font-size:13px;max-width:75ch}
.note{color:var(--muted);font-size:12.5px;margin:6px 0 0}
section.view{display:flex;flex-direction:column;gap:24px}
.block{min-width:0}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:14px 16px}

.heads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--surface);border:1px solid var(--line);border-radius:4px}
.heads>div{padding:12px 16px;border-left:1px solid var(--line);min-width:0}
.heads>div:first-child{border-left:0}
.heads .k{font-size:12.5px;color:var(--muted)}
.heads .v{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.heads .v small{font-size:13px;font-weight:400;color:var(--muted);margin-left:3px}
.heads .d{font-size:12.5px;font-variant-numeric:tabular-nums}
@media (max-width:720px){.heads{grid-template-columns:repeat(2,minmax(0,1fr))}.heads>div:nth-child(3){border-left:0}.heads>div:nth-child(n+3){border-top:1px solid var(--line)}}

.tw{overflow-x:auto;background:var(--surface);border:1px solid #b9c9bf;border-radius:8px;box-shadow:0 2px 8px rgba(15,70,45,.08)}
table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:13.5px}
th,td{padding:9px 12px;border-bottom:1px solid var(--cell-line);white-space:nowrap;text-align:left}
/* 머리글: 옅은 회녹색 바탕(위가 조금 더 밝게), 진한 글씨, 아래 진한 녹색 선, 글자는 가운데.
   칸 사이 점선은 머리글 안에서는 위아래를 조금 띄워 짧게 긋는다 */
thead th{background:linear-gradient(180deg,var(--head-top),var(--head));color:var(--head-ink);font-weight:700;font-size:12.5px;
  letter-spacing:.01em;text-align:center;vertical-align:middle;position:sticky;top:0;padding:12px 12px 11px;
  border-bottom:2px solid var(--head-strong)}
thead th .u{font-weight:400;color:var(--muted);font-size:11.5px;margin-left:3px;letter-spacing:0}
thead tr.g th.grp{color:var(--fg);font-weight:700;padding-bottom:9px;border-bottom:1px solid var(--head-line)}
thead tr.g th[rowspan]{border-bottom:2px solid var(--head-strong)}
th+th{border-left:0}
th+th::before,thead tr+tr th:first-child::before{content:"";position:absolute;left:0;top:24%;bottom:24%;border-left:1px solid var(--head-line)}
td+td{border-left:1px solid var(--cell-line)}
td.n{text-align:right}
tbody tr:hover td{background:color-mix(in srgb,var(--accent) 5%,transparent)}
/* 묶음 줄 (매입·수입·매출) */
tr.sec td{background:var(--surface);font-weight:700;color:var(--head-strong);font-size:12.5px;letter-spacing:.04em;padding-top:12px;padding-bottom:6px;
  border-top:1px solid #c6d3cb;border-bottom:1px solid var(--cell-line)}
tbody tr.sec:first-child td{border-top:0}
/* 합계 줄 */
tr.tot td{font-weight:700;background:#f3f6f4;color:#111814;border-top:1.5px solid var(--head-strong);border-bottom:1px solid #c6d3cb}
tr.sub td:first-child{padding-left:28px;color:var(--muted)}
/* 줄 이름(구분·제품·업체·월 등 기준) 칸은 모든 표에서 가운데 정렬. 들여쓰기 대신 글자 굵기·색으로 묶음을 나눈다 */
.tw tbody td:first-child:not([colspan]){text-align:center}
.tw tbody tr.sub td:first-child{padding-left:12px}
td.mute,span.mute{color:var(--muted)}
.up{color:var(--up)} .down{color:var(--down)}
tbody tr:last-child td{border-bottom:0}

.toolbar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end;margin-bottom:10px}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;margin-top:8px;color:var(--muted);font-size:13px}
.pager .pg{display:flex;gap:4px;align-items:center}
.pager button{font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:3px;padding:3px 10px;cursor:pointer}
.pager button:disabled{opacity:.4;cursor:default}

.chart{position:relative}
.chart svg{display:block;width:100%;height:auto}
.chart text{fill:var(--muted);font-size:15px;font-family:var(--font-body)}
.legend{display:flex;gap:16px;font-size:12.5px;color:var(--muted);margin-bottom:4px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{display:inline-block;width:14px;height:2px}
.tip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--line);border-radius:3px;padding:6px 9px;font-size:12.5px;box-shadow:0 2px 8px rgba(0,0,0,.12);white-space:nowrap;font-variant-numeric:tabular-nums;z-index:2}
.tip b{display:block;font-weight:700;margin-bottom:2px}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
@media (max-width:900px){.grid2{grid-template-columns:minmax(0,1fr)}}

.drop{border:1px dashed var(--line);border-radius:4px;padding:20px;display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;background:var(--surface)}
.drop .mute{flex-basis:100%;font-size:13px}
dl.res{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin:10px 0 0}
dl.res dt{color:var(--muted)} dl.res dd{margin:0;font-variant-numeric:tabular-nums}
ol.q{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;max-width:85ch}
ol.q b{font-weight:700}
ul.plain{margin:0;padding-left:18px;max-width:85ch}
.sample{color:var(--muted);font-size:12px}
@media (max-width:760px){nav{flex-basis:100%;order:3;flex-wrap:nowrap;overflow-x:auto}nav button{white-space:nowrap}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* 서버 화면 추가분 */
a{color:var(--fg)}
nav a{color:var(--fg);text-decoration:none;padding:6px 12px;border-bottom:2px solid transparent;white-space:nowrap}
nav a[aria-current="page"]{color:var(--fg);border-bottom-color:var(--accent);font-weight:700}
nav a:hover{color:var(--fg)}
a.link{color:var(--muted);font-size:12.5px}
.pager a,.pager span.off{border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:3px;padding:3px 10px;text-decoration:none}
.pager span.off{opacity:.4}
.err{color:var(--up)}
.ok{color:var(--fg)}
tr.dimrow td{color:var(--muted)}
form.inline{display:inline}
.sys span{font-family:var(--font-body);font-weight:500;font-size:14px;color:var(--fg)}
h1,h2,.lead,.note{word-break:keep-all}

/* ---- 그린링크와 같은 맨 위 띠 ---- */
.brand-bar{height:4px;background:var(--brand);display:flex}
.brand-bar span{display:block;width:64px;height:100%;background:var(--lime)}
.btn-lg{min-height:44px;padding:0 22px;font-size:15px;font-weight:600}
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;border-radius:6px}

/* ---- 로그인 ---- */
.login-page{max-width:400px;margin:0 auto;padding:80px 16px 48px;display:flex;flex-direction:column;align-items:stretch;gap:16px}
.login-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:28px 24px;display:flex;flex-direction:column;gap:14px}
.login-card h1{font-size:20px;font-weight:700;letter-spacing:-0.02em}
.login-card h1 a{color:var(--fg);text-decoration:none}
.login-logo{display:block}
.login-card h1 span{font-weight:500;font-size:15px;color:var(--fg);letter-spacing:0}
.login-card .co{color:var(--muted);font-size:13px;margin-top:-8px}
.login-card input[type=password],.login-card input[type=email]{min-height:42px}
.login-page .back{text-align:center;color:var(--muted);font-size:13px;text-decoration:none}
.login-page .back:hover{color:var(--fg)}

/* ---- 처음 화면 ----
   흔한 AI 생성 화면 티를 빼기 위해 쓰지 않는 것: 유리처럼 비치는 판(흐림 효과), 형광 연두 버튼, 제목 옆 화살표,
   창 흉내 머리띠, 마우스 올리면 확대·떠오르기, 카드 위 색 띠, 가운데 정렬 소제목, 큰 그림자, 카드 속 카드 */
.lp-actions{display:flex;flex-wrap:wrap;gap:10px}
.frame{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface);box-shadow:0 1px 3px rgba(20,40,30,.06)}
.frame img{display:block;width:100%;height:auto}
.shot-note{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.band{padding-block:72px}
.band.alt{background:var(--surface);border-block:1px solid var(--line)}
.band-head{max-width:760px;margin:0 0 36px}
.band-head h2{font-size:26px;font-weight:700;letter-spacing:-0.02em;line-height:1.35;margin:0 0 10px}
.band-head p{color:var(--muted);font-size:15.5px;line-height:1.75;margin:0}
.feature{display:grid;grid-template-columns:minmax(0,0.8fr) minmax(0,1.4fr);gap:48px;align-items:center}
.feature+.feature{margin-top:64px;padding-top:64px;border-top:1px solid var(--line)}
.feature.flip{grid-template-columns:minmax(0,1.4fr) minmax(0,0.8fr)}
.feature.flip .feature-text{order:2}
.feature h3{font-size:20px;font-weight:700;letter-spacing:-0.015em;margin:0 0 10px}
.feature p{color:var(--muted);font-size:15px;line-height:1.75;margin:0 0 14px}
.feature ul{margin:0;padding-left:18px;font-size:14.5px;line-height:1.9}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--fg)}
.step{padding:20px 24px 4px 0}
.step+.step{padding-left:24px;border-left:1px solid var(--line)}
.step .n{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:8px;font-variant-numeric:tabular-nums}
.step h3{font-size:17px;margin:0 0 8px;font-weight:700}
.step p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.75}
.rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--fg)}
.rules>div{padding:18px 24px 18px 0;border-bottom:1px solid var(--line)}
.rules>div:nth-child(even){padding-left:24px;border-left:1px solid var(--line)}
.rules h3{font-size:15.5px;margin:0 0 6px;font-weight:700}
.rules p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.75}
.lp-cta{background:var(--accent-soft);border-top:1px solid var(--line)}
.lp-cta .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-block:44px}
.lp-cta h2{font-size:21px;font-weight:700;margin:0 0 4px}
.lp-cta p{margin:0;color:var(--muted)}
.site-footer{border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:12.5px}
.site-footer .wrap{padding-block:24px;display:flex;flex-direction:column;gap:4px}
.site-footer p{margin:0}
@media (max-width:900px){
  .feature,.feature.flip{grid-template-columns:minmax(0,1fr);gap:24px}
  .feature.flip .feature-text{order:0}
  .steps,.rules{grid-template-columns:minmax(0,1fr)}
  .step,.step+.step,.rules>div,.rules>div:nth-child(even){padding-left:0;border-left:0}
  .step+.step{border-top:1px solid var(--line)}
  .band{padding-block:52px}
  .band-head h2{font-size:22px}
}

/* ---- 처음 화면 맨 위: 흐린 예시 화면 배경 + 짙은 녹색 그라데이션 ---- */
.hero{position:relative;color:#fff;isolation:isolate;overflow:hidden}
.hero::before{content:"";position:absolute;inset:-20px;z-index:-2;background:url("/static/landing-bg.jpg") center/cover no-repeat}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:
  linear-gradient(115deg,rgba(8,38,23,.95) 0%,rgba(14,66,40,.9) 40%,rgba(20,110,68,.8) 75%,rgba(60,140,70,.7) 100%)}
.hero-bar .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:18px}
.hero-bar .sys{color:#fff;text-decoration:none;font-size:19px}
.hero-bar .sys span{color:rgba(255,255,255,.86);font-weight:500;letter-spacing:0;text-shadow:0 1px 3px rgba(0,0,0,.45)}
.hero-bar nav{flex:0 1 auto;gap:2px}
.hero-bar nav a{color:rgba(255,255,255,.94);font-size:15px;font-weight:500;letter-spacing:0;text-shadow:0 1px 3px rgba(0,0,0,.45);text-decoration:none;padding:7px 14px;border-radius:7px;border-bottom:0}
.hero-bar nav a:hover{color:#fff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.btn-light{background:#fff;border-color:#fff;color:#0e3a24}
.btn-light:hover{background:#eef6f1}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.08)}
.hero-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;padding-block:56px 72px}
.hero-body.solo{grid-template-columns:minmax(0,1fr)}  /* 예시 집계 카드를 뺀 뒤 글자만 한 칸 */
.hero h1{font-size:46px;line-height:1.22;font-weight:700;letter-spacing:-.025em;margin:0 0 44px}
.hero .lede{margin:18px 0 32px;color:#d3ebdd;font-size:17px;line-height:1.7;max-width:30ch}
/* 실적 판: 비치지 않는 진한 판 + 칸 사이 선 */
.glass{background:rgba(5,26,16,.84);border:1px solid rgba(255,255,255,.14);border-radius:8px}
.glass .cap{display:flex;justify-content:space-between;align-items:baseline;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.12);font-size:14px;font-weight:600;color:#fff}
.glass .cap span:last-child{color:#a9cdb8;font-weight:400;font-size:12.5px}
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.kpis>div{padding:16px 20px;min-width:0;border-bottom:1px solid rgba(255,255,255,.12)}
.kpis>div:nth-child(even){border-left:1px solid rgba(255,255,255,.12)}
.kpis .k,.spark .k{font-size:13px;color:#bfd9c9}
.kpis .v{font-size:26px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:4px;letter-spacing:-.01em}
.kpis .v small{font-size:13px;font-weight:400;color:#bfd9c9;margin-left:4px}
.kpis .d{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:2px}
.kpis .d.up{color:#ff9e8f} .kpis .d.down{color:#9fc6ff}
.spark{padding:14px 20px 8px}
.spark svg{display:block;width:100%;height:56px;margin-top:6px}
.glass-note{margin:0;padding:10px 20px 14px;font-size:12.5px;color:#9fc3ae}
.quick{display:block;background:var(--surface);border-bottom:1px solid var(--line)}
.quick .wrap{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
.quick a{padding:16px 18px;border-left:1px solid var(--line);text-decoration:none;color:var(--fg)}
.quick a:first-child{border-left:0;padding-left:0}
.quick a:hover b{color:var(--fg);text-decoration:underline;text-underline-offset:4px}
.quick b{display:block;font-size:15px;font-weight:600}
.quick span{display:block;color:var(--muted);font-size:13px}
.hero,.feature,.band-head,.step,.rules{word-break:keep-all}
@media (max-width:900px){
  .hero-body{grid-template-columns:minmax(0,1fr);gap:32px;padding-block:28px 44px}
  .hero h1{font-size:34px}
  .hero-bar nav{display:none}
  .hero-bar .sys span{display:none}
  .quick .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick a,.quick a:first-child{padding-left:0}
  .quick a:nth-child(even){padding-left:16px}
  .quick a:nth-child(odd){border-left:0}
  .quick a:nth-child(n+3){border-top:1px solid var(--line)}
  .kpis .v{font-size:21px}
  .kpis>div{padding:14px 16px}
}

/* 실사 사진 배경: 사진이 보이도록 녹색 대신 어두운 막을 왼쪽(글자 쪽)만 진하게 */
.hero-photo::before{background-image:url("/static/landing-photo.jpg");filter:saturate(.85)}
.hero-photo::after{background:
  linear-gradient(90deg,rgba(6,16,11,.90) 0%,rgba(6,16,11,.78) 38%,rgba(6,16,11,.45) 70%,rgba(6,16,11,.30) 100%),
  linear-gradient(0deg,rgba(6,16,11,.35),rgba(6,16,11,0) 40%)}

/* 매트릭스: 색 칠하기 없이 줄·합계로 읽게 */
.unit-line{margin:0 0 6px;font-size:12.5px;color:var(--muted)}
.mx td.lab{position:sticky;left:0;background:var(--surface);z-index:1}
.mx tr.tot td.lab{background:#f3f6f4}
.mx th:first-child{position:sticky;left:0;z-index:2}
.mx td.sum,.mx th.sum{border-left:1px solid var(--head-line)}
.mx tbody tr:hover td.lab{background:color-mix(in srgb,var(--accent) 5%,var(--surface))}

/* ---- 처음 화면: 집계 결과 표 (예시 데이터) ---- */
.dataview{background:rgba(5,22,14,.86);border:1px solid rgba(255,255,255,.16);border-radius:8px;color:#fff;overflow:hidden}
.dv-head,.dv-foot{display:flex;justify-content:space-between;gap:12px;padding:12px 18px;font-size:12.5px;color:rgba(255,255,255,.72)}
.dv-head{border-bottom:1px solid rgba(255,255,255,.14)}
.dv-head span:first-child{color:#fff;font-weight:600;font-size:14px}
.dv-foot{border-top:1px solid rgba(255,255,255,.14)}
.dataview table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.dataview th,.dataview td{padding:10px 18px;border-bottom:1px solid rgba(255,255,255,.08);border-left:0;background:transparent;color:#fff;font-size:14px}
.dataview th{font-size:12.5px;font-weight:600;color:#fff;position:static;border-bottom:1px solid rgba(255,255,255,.2)}
.dataview th+th,.dataview td+td{border-left:1px solid rgba(255,255,255,.12)}
.dataview tbody tr:last-child td{border-bottom:0}
.dataview tbody tr:hover td{background:rgba(255,255,255,.04)}
.dataview td.up{color:#ff9e8f} .dataview td.down{color:#9fc6ff}
/* 사양표: 항목 · 내용 */
table.spec td:first-child{font-weight:600;white-space:nowrap;width:1%}
table.spec td{white-space:normal;line-height:1.65;vertical-align:top;padding-block:11px}
.st-on{color:var(--fg);font-weight:600;white-space:nowrap}
.st-plan{color:var(--muted);white-space:nowrap}
/* 처리 흐름: 실제 순서가 있는 단계 */
.pipeline{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--fg)}
.pipeline li{padding:18px 18px 4px 0;word-break:keep-all}
.pipeline li+li{padding-left:18px;border-left:1px solid var(--head-line)}
.pipeline .n{display:block;font-size:13px;font-weight:600;color:var(--fg);font-variant-numeric:tabular-nums;margin-bottom:6px}
.pipeline b{display:block;font-size:16px;margin-bottom:6px}
.pipeline p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
@media (max-width:900px){
  .pipeline{grid-template-columns:minmax(0,1fr)}
  .pipeline li,.pipeline li+li{padding-left:0;border-left:0}
  .pipeline li+li{border-top:1px solid var(--line)}
  .dataview th,.dataview td{padding:9px 12px;font-size:13px}
}
/* 로그인 화면: 회사 정보는 화면 맨 아래에 붙인다 */
body.login-body{min-height:100vh;display:flex;flex-direction:column}
body.login-body .login-page{flex:1 0 auto}
.login-card h1 span{display:block;margin-top:4px;font-size:15px;font-weight:600}

/* 맨 위로 버튼: 오른쪽 아래에 따라다닌다 */
.totop{position:fixed;right:max(20px,env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:50;
  padding:9px 14px;background:var(--surface);color:var(--fg);border:1px solid var(--head-line);border-radius:6px;
  font-size:13px;font-weight:600;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.totop:hover{border-color:var(--accent);color:var(--fg)}
.totop[hidden]{display:none}
@media print{.totop{display:none}}

/* 처음 화면 집계 예시 아래 그래프 */
.dv-chart{padding:12px 18px 6px;border-top:1px solid rgba(255,255,255,.14)}
.dv-chart-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12.5px;color:#fff;font-weight:600}
.dv-legend{display:flex;align-items:center;gap:6px}
.dv-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.dv-legend .lg-bar{background:#6fd39d;margin-left:4px}
.dv-legend .lg-line{background:#f4d58d;height:2px;width:14px;margin-left:8px}
.dv-chart-svg{display:block;width:100%;height:auto;margin-top:6px}
.dv-chart-svg text{fill:rgba(255,255,255,.78);font-size:11px}
@media (max-width:480px){
  .dataview th,.dataview td{padding:8px 7px;font-size:12px}
  .dataview th:first-child,.dataview td:first-child{padding-left:12px}
  .dataview th:last-child,.dataview td:last-child{padding-right:12px}
  .dv-chart{padding:10px 12px 4px}
  .dv-chart-svg text{font-size:17px}
}

/* 매트릭스: 머리글 가운데, 제품 칸과 1월 사이 실선, 합계 칸은 옅은 바탕 */
.mx th:first-child,.mx td.lab{border-right:1px solid var(--head-line)}
.mx th:first-child+th,.mx td.lab+td{border-left:1px solid var(--head-line)}
/* 줄 이름 칸·합계 칸 옆은 머리글부터 끝까지 이어진 선이 있으므로, 머리글의 짧은 칸 사이 선은 겹치지 않게 뺀다 */
.mx th:first-child+th::before,.mx th.sum::before{display:none}
.mx tr.tot td{border-bottom:2px solid #c6d3cb}
.mx td.sum{background:#f7faf8}
.mx tr.tot td.sum{background:#eaf1ed}
.dataview th::before{display:none}
/* 조건을 바꿔 새 내용을 받는 동안: 0.15초 넘게 걸릴 때만 살짝 흐리게 */
#gb-main{transition:opacity .2s}
body.gb-loading #gb-main{opacity:.65;transition:opacity .2s .15s}

/* ---- 휴대폰 ---- */
.ftoggle{display:none}
@media (max-width:640px){
  header.top .wrap{gap:4px 12px;padding-block:8px 0}
  header.top .sys{font-size:16px}
  header.top .sys span{display:none}
  header.top .link{margin-left:auto}
  nav{margin:0 -16px;padding:0 8px;scrollbar-width:none}
  nav::-webkit-scrollbar{display:none}
  nav a{padding:8px 10px;font-size:14.5px}
  /* 조회 조건은 접어 두고 한 줄 요약만 보인다 */
  .ftoggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border:0;background:none;
    font:inherit;color:var(--fg);font-size:14px;cursor:pointer;text-align:left}
  .ftoggle b{font-weight:600}
  .ftoggle span{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;text-align:right}
  .ftoggle i{font-style:normal;color:var(--fg);font-size:13px;flex:none}
  .filters .wrap{display:block;padding-block:0}
  .filters{background:var(--surface);border-bottom:1px solid var(--line)}
  .fcard{display:block;border:0;box-shadow:none;padding:0;border-radius:0;background:none}
  .ftitle{display:none}
  .filters select{min-width:0}
  .filters .chk{margin-left:0;min-height:36px}
  .filters .fbody{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding-bottom:12px}
  .filters.open .fbody{display:grid}
  .filters .fbody .f select{width:100%}
  .filters .fbody .chk{grid-column:1/-1}
  main .wrap{padding-block:16px 40px;gap:20px}
  h1{font-size:19px}
  .lead{font-size:12.5px}
  .heads .v{font-size:18px}
  .heads>div{padding:10px 12px}
  .toolbar .f{flex:1 1 140px}
  .toolbar .f select,.toolbar .f input{width:100%}
  /* 표: 글자·간격을 줄이고, 옆으로 밀어도 첫 칸(구분·업체)은 그대로 보이게 */
  th,td{padding:8px 9px;font-size:12.5px}
  thead th{padding:10px 9px 9px;font-size:12px}
  .tw tbody td:first-child,.tw thead tr:first-child th:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--line)}
  .tw thead tr:first-child th:first-child{z-index:3;background:linear-gradient(180deg,var(--head-top),var(--head))}
  .tw tr.sec td:first-child{position:static;box-shadow:none}
  .tw tr.sec td .stick{position:sticky;left:9px}
  .tw tr.tot td:first-child{background:#f3f6f4}
  .tw tr.sub td:first-child{padding-left:18px}
  /* 그래프 글자는 작은 화면에서 크게 */
  .chart text{font-size:22px}
  .grid2{gap:12px}
  .pager{font-size:12.5px}
}

/* 로그인 버튼: 단색 녹색, 그림자는 아주 옅게 */
.btn-main{background:#178a56;border:1px solid #178a56;color:#fff;letter-spacing:-.01em;box-shadow:0 1px 2px rgba(0,0,0,.12);transition:background .15s}
.btn-main:hover{background:#13784a;border-color:#13784a}
.btn-main .arr{margin-left:10px;transition:transform .15s}
.btn-main:hover .arr{transform:translateX(3px)}
/* 사진 위 보조 버튼: 반투명 유리 느낌 */
.btn-glass{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.32);color:#fff;font-weight:600;letter-spacing:-.01em;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);transition:background .15s,border-color .15s}
.btn-glass:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5)}
.hero-bar .btn-glass{min-height:36px;padding:0 16px;font-size:14px}

/* 처음 화면 집계 예시: 반투명 대신 실제 조회 화면과 같은 흰 카드 */
.dataview{background:rgba(255,255,255,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.55);border-radius:10px;color:#1a211e;box-shadow:0 18px 40px rgba(0,0,0,.32)}
.dv-head,.dv-foot{color:#3d4a43}
.dv-head{border-bottom:1px solid rgba(60,80,70,.15)}
.dv-head span:first-child{color:#1a211e;font-weight:700}
.dv-foot{border-top:1px solid rgba(60,80,70,.15)}
.dataview th{color:#1f2d26;background:linear-gradient(180deg,rgba(255,255,255,.35),rgba(236,242,238,.5));border-bottom:2px solid #2f5d46}
.dataview td{color:#111814;border-bottom:1px solid rgba(60,80,70,.18)}
.dataview th+th,.dataview td+td{border-left:1px solid rgba(60,80,70,.25)}
.dataview tbody tr:hover td{background:rgba(23,138,86,.07)}
.dataview td.up{color:#c2372a} .dataview td.down{color:#2160b0}
.dv-chart{border-top:1px solid rgba(60,80,70,.15)}
.dv-chart-head{color:#1a211e}
.dv-chart-svg text{fill:#3d4a43}
.dv-legend .lg-bar{background:#178a56}
.dv-legend .lg-line{background:#2b3b33}

/* 요약 맨 위: 총매입·국내 매입·수입·매출 × 거래량·평균단가 */
.kgrid>.kc{padding:14px 18px 12px;display:flex;flex-direction:column;gap:8px}
.kgrid .k{font-size:14px;font-weight:700;color:var(--fg)}
.kgrid .k span{font-size:12px;font-weight:500;color:var(--muted);margin-left:4px}
.kgrid .kr{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:8px;align-items:baseline}
.kgrid .kr+.kr{padding-top:8px;border-top:1px solid var(--cell-line)}
.kgrid .rl{grid-row:1/3;font-size:12px;color:var(--muted);padding-top:6px}
.kgrid .v{font-size:21px}
.kgrid .kr+.kr .v{font-size:18px}
.kgrid .d{grid-column:2;font-size:12px;color:var(--muted)}
.kgrid .kc.total{background:linear-gradient(180deg,var(--head-top),var(--head));border-radius:4px 0 0 4px}
.kgrid .kc.total .k{color:var(--head-strong)}
@media (max-width:640px){
  .kgrid>.kc{padding:10px 12px}
  .kgrid .kr{grid-template-columns:1fr}
  .kgrid .rl{grid-row:auto;padding-top:0}
  .kgrid .d{grid-column:1}
  .kgrid .v{font-size:17px} .kgrid .kr+.kr .v{font-size:15.5px}
  .kgrid .kc.total{border-radius:4px 0 0 0}
}
/* 요약 맨 위 강조: 모양은 그대로 두고, 가장자리를 녹색 테두리로 칠하고 그림자를 넣어 떠 보이게 */
.kgrid{border:1.5px solid #8fbfa5;border-radius:8px;box-shadow:0 6px 18px rgba(15,70,45,.13),0 1px 3px rgba(15,70,45,.08);overflow:hidden}
.kgrid .kc.total{border-radius:0}

/* 주간 보고: 최근 6주 그래프 제목 */
h3.ch{font-size:14px;font-weight:700;margin:0 0 6px}
h3.ch span{font-size:12px;font-weight:400;color:var(--muted);margin-left:6px}

/* 요약: 매입 구성 (비율 막대 한 줄 + 항목·비중·거래량) */
.h2s{font-size:12.5px;font-weight:400;color:var(--muted);margin-left:8px}
.card2{display:grid;grid-template-columns:1fr 1fr;background:var(--surface);border:1px solid #b9c9bf;border-radius:8px;box-shadow:0 2px 8px rgba(15,70,45,.07)}
.sh{padding:14px 20px 14px;min-width:0}
.sh+.sh{border-left:1px solid var(--cell-line)}
.sh-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:9px}
.sh-top b{font-size:13.5px;font-weight:700}
.sh-top span{font-size:12px;color:var(--muted);white-space:nowrap}
.sh-top em{font-style:normal;font-weight:700;color:var(--fg);font-variant-numeric:tabular-nums}
.sh-bar{display:flex;height:10px;background:#eef2ef;gap:2px}
.sh-bar i{display:block;height:100%}
.sh-leg{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:10px;font-size:13px}
.sh-leg span{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}
.sh-leg i{width:9px;height:9px;display:inline-block;align-self:center}
.sh-leg b{font-weight:700;font-variant-numeric:tabular-nums}
.sh-leg small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
@media (max-width:760px){.card2{grid-template-columns:1fr}.sh+.sh{border-left:0;border-top:1px solid var(--cell-line)}.sh{padding:12px 14px}}

/* 그래프: 가장 최근 값 숫자·이름은 진하게 */
.chart text.vl{fill:var(--fg);font-weight:700}
.chart text.on{fill:var(--fg);font-weight:600}

/* 매트릭스: 총매입 합계 (국내+수입) 줄은 한 단계 더 진하게 */
.mx tr.grand td{background:#e6efe9;border-top:1.5px solid var(--head-strong);border-bottom:2px solid var(--head-strong)}
.mx tr.grand td.lab{background:#e6efe9;color:var(--head-strong)}
/* 월별 집계표: 다른 화면과 같은 폭 안에 12개월 + 합계가 들어가도록 칸을 좁게 */
.mx th,.mx td{padding:7px 6px;font-size:12.5px}
.mx thead th{font-size:12px}
.mx td.lab{white-space:nowrap}

/* ===================================================================
   유리 테마 (시안 A2): 옅은 빛이 깔린 바탕 위에 반투명 유리판.
   표·그래프·요약 칸·조회 조건·맨 위 메뉴·업로드·로그인 카드를 모두 같은 유리판으로 맞춘다.
   처음 화면(사진)은 따로 둔다.
   =================================================================== */
:root{
  --glass-bg:linear-gradient(160deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,0) 32%),
             linear-gradient(135deg,rgba(255,255,255,.66) 0%,rgba(255,255,255,.42) 55%,rgba(255,255,255,.52) 100%);
  --glass-line:rgba(40,48,56,.05);  /* 카드 가장자리: 거의 보이지 않게 (담당자 요청) */
  --glass-shadow:0 16px 40px rgba(20,60,40,.12),0 2px 6px rgba(20,60,40,.05);
  --glass-blur:blur(18px) saturate(1.35);
  --glass-solid:rgba(249,251,250,.96);  /* 옆으로 밀 때 고정되는 칸처럼 뒤가 비치면 안 되는 곳 */
}

/* 유리판 */
.tw,.panel,.heads,.card2,.fcard,.drop,.login-card,.site-footer{
  background:var(--glass-bg);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
.tw,.panel,.heads,.card2,.drop{border-radius:14px}
.fcard,.login-card{border-radius:14px}
.kgrid{border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
.drop{border-style:solid}
.site-footer{border-width:1px 0 0;border-radius:0;box-shadow:none}

/* 맨 위 메뉴: 위에 붙어 따라오는 유리 띠 */
header.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.62);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  border-bottom:1px solid rgba(255,255,255,.85);box-shadow:0 4px 18px rgba(20,60,40,.06)}
.filters{background:transparent}

/* 표 안쪽: 머리글은 옅은 녹색이 비치는 유리, 본문은 투명, 합계는 옅은 흰 유리 */
thead th{background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(214,232,222,.6));color:#0f1f17;border-bottom:1.5px solid rgba(31,77,54,.6)}
td{border-bottom-color:rgba(31,77,54,.09)}
td+td{border-left-color:rgba(31,77,54,.1)}
tr.sec td{background:transparent;border-top-color:rgba(31,77,54,.2);border-bottom-color:rgba(31,77,54,.09)}
tr.tot td{background:rgba(255,255,255,.45);border-top:1px solid rgba(31,77,54,.45);border-bottom-color:rgba(31,77,54,.15)}
tbody tr:hover td{background:rgba(255,255,255,.45)}
.mx td.lab{background:var(--glass-solid)}
.mx tr.tot td.lab{background:rgba(244,248,246,.97)}
.mx td.sum{background:rgba(255,255,255,.35)}
.mx tr.tot td.sum{background:rgba(255,255,255,.55)}
.mx tr.grand td{background:rgba(214,232,222,.55)}
.mx tr.grand td.lab{background:rgba(226,238,231,.98)}

/* 요약 칸·매입 구성 */
.heads>div{border-left-color:rgba(31,77,54,.1)}
.kgrid .kc.total{background:linear-gradient(180deg,rgba(214,232,222,.65),rgba(226,238,231,.4))}
.kgrid .kr+.kr{border-top-color:rgba(31,77,54,.14)}
.sh+.sh{border-left-color:rgba(31,77,54,.1)}
.sh-bar{background:rgba(31,77,54,.08)}

/* 조회 조건 칸·버튼 */
.filters select{background-color:rgba(255,255,255,.7);border-color:rgba(31,77,54,.2)}
.filters select.changed{background-color:rgba(214,232,222,.75)}
.pager a,.pager span.off{background:rgba(255,255,255,.6);border-color:rgba(31,77,54,.15)}
.tip{background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-color:rgba(255,255,255,.9)}

@media (max-width:640px){
  .tw tbody td:first-child,.tw thead tr:first-child th:first-child{background:var(--glass-solid)}
  .tw thead tr:first-child th:first-child{background:rgba(232,241,236,.98)}
  .tw tr.tot td:first-child{background:rgba(244,248,246,.97)}
  .filters{background:rgba(255,255,255,.55);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
}
@media print{body:not(.lp){background:#fff}.tw,.panel,.heads,.card2,.fcard{box-shadow:none;backdrop-filter:none}}

/* ---- 유리 테마 다듬기: 아이폰 새 디자인처럼 가장자리에 빛이 맺히는 유리, 더 둥글게, 더 깊게 ---- */
:root{
  --glass-edge:linear-gradient(rgba(40,48,56,.05),rgba(40,48,56,.05));  /* 가장자리: 흰 빛 대신 거의 보이지 않는 회색 선 (담당자: 테두리가 보이지 않게). 카드는 그림자로 뜬다 */
  --glass-shadow:0 22px 48px rgba(18,55,38,.14),0 3px 8px rgba(18,55,38,.06);
  --glass-r:20px;
}
/* 가장자리 빛: 테두리 자리를 빛 그라데이션으로 채운다 */
.tw,.panel,.heads,.card2,.fcard,.drop,.login-card{
  border:1px solid transparent;
  background:var(--glass-bg) padding-box,var(--glass-edge) border-box;
  border-radius:var(--glass-r);box-shadow:var(--glass-shadow)}
.kgrid{border:1px solid transparent}
.kgrid .kc.total{border-radius:0}
.filters select{border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.btn{border-radius:12px}
header.top{background:rgba(255,255,255,.55);box-shadow:0 6px 24px rgba(18,55,38,.07),inset 0 -1px 0 rgba(255,255,255,.8)}

/* 휴대폰: 아래에 떠 있는 유리 메뉴 막대 */
@media (max-width:640px){
  header.top nav{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));
    bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40;margin:0;padding:6px;display:flex;gap:0;justify-content:space-between;
    background:var(--glass-bg) padding-box,var(--glass-edge) border-box;border:1px solid transparent;border-radius:24px;
    -webkit-backdrop-filter:blur(22px) saturate(1.5);backdrop-filter:blur(22px) saturate(1.5);
    box-shadow:0 14px 34px rgba(18,55,38,.2),inset 0 1px 1px rgba(255,255,255,.95);overflow-x:auto}
  header.top nav a{flex:1 0 auto;text-align:center;font-size:12.5px;padding:9px 8px;border-bottom:0;color:var(--fg)}
  header.top nav a[aria-current="page"]{color:var(--fg);font-weight:700}
  main .wrap{padding-bottom:96px}
  .site-footer .wrap{padding-bottom:96px}
  .totop{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  header.top .wrap{padding-block:10px}
  .tw,.panel,.heads,.card2{--glass-r:16px}
}
@media (max-width:640px){
  /* 흐림 효과가 걸린 상자 안에서는 '화면에 고정'이 그 상자 기준이 되므로, 휴대폰에서는 맨 위 띠의 흐림을 끄고 메뉴 막대를 화면 아래에 고정 */
  header.top{position:static;-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(255,255,255,.72)}
}
@media (max-width:640px){
  header.top nav{padding:5px 4px;overflow:hidden}
  header.top nav a{flex:1 1 0;min-width:0;font-size:11.5px;padding:9px 2px;letter-spacing:-.02em;white-space:nowrap}
}
@media (max-width:440px){
  header.top nav a{font-size:11px;white-space:normal;word-break:keep-all;line-height:1.2;padding:6px 1px;display:flex;align-items:center;justify-content:center}
}
@media (max-width:640px){
  /* 휴대폰 조회 조건: 둥근 카드 대신 맨 위 띠에 붙은 평평한 유리 줄 */
  .fcard{background:none;border:0;border-radius:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;padding:0}
  .filters{border-bottom:1px solid rgba(255,255,255,.85);box-shadow:0 6px 18px rgba(18,55,38,.05)}
}
/* 머리글 밑줄: 두 줄짜리 칸·아래 줄 칸 모두 같은 굵기·색으로 한 줄로 이어지게 (묶음 칸 아래 점선은 그대로) */
thead th,thead tr.g th[rowspan]{border-bottom:2px solid var(--head-strong)}
thead tr.g th.grp{border-bottom:1px solid rgba(31,77,54,.35)}
/* 맨 위 메뉴 띠는 흰색 그대로 (유리 효과 없이) */
header.top{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(18,55,38,.05)}
@media (max-width:640px){header.top{background:#fff}}

.legend{flex-wrap:wrap;row-gap:4px}
.legend b{color:var(--fg);font-weight:700;margin-left:2px;font-variant-numeric:tabular-nums}

/* 바탕: 차분한 회색(#e0e4e8)으로 한 단계 낮춰 흰 카드·표가 떠 보이게 (담당자가 고른 A안). 바탕 규칙은 여기 한 곳만 둔다 */
body:not(.lp){background:
  radial-gradient(900px 520px at 6% -4%,#e8ebee 0%,rgba(232,235,238,0) 62%),
  radial-gradient(760px 520px at 104% 104%,#d6dce2 0%,rgba(214,220,226,0) 62%),
  #e0e4e8;background-attachment:fixed}

/* ===== 맨 위 띠 (시안 A): 화면 끝에서 살짝 띄운 둥근 흰 유리 막대. 휴대폰은 지금처럼 아래 유리 메뉴 ===== */
@media (min-width:641px){
  .brand-bar{display:none}
  header.top{position:sticky;top:0;z-index:20;background:transparent;border:0;box-shadow:none;padding-top:12px;
    -webkit-backdrop-filter:none;backdrop-filter:none}
  header.top .wrap{width:calc(100% - 2 * max(16px,env(safe-area-inset-left,0px)));max-width:1248px;margin:0 auto;padding:8px 12px 8px 18px;border-radius:18px;border:1px solid transparent;
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.80)) padding-box,var(--glass-edge) border-box;
    -webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);
    box-shadow:0 10px 30px rgba(18,40,30,.10),inset 0 1px 1px #fff}
  header.top nav a{position:relative;border-bottom:0;padding:7px 12px}
  header.top nav a[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:1px;height:2px;background:var(--accent);border-radius:2px}
  header.top .link{padding-right:6px}
}

/* ===== 처음 화면: 사진 위 메뉴는 떠 있는 유리 막대, 사진 아래는 조회 화면과 같은 회색 바탕 + 흰 유리 카드 ===== */
body.lp{background:
  radial-gradient(900px 520px at 6% 30%,#ffffff 0%,rgba(255,255,255,0) 62%),
  radial-gradient(760px 520px at 104% 90%,#e2e7ed 0%,rgba(226,231,237,0) 62%),
  #eceff2}
.hero-bar .wrap{padding-block:16px 0}
.hero-bar .wrap>*{position:relative}
.hero-bar .wrap::before{content:"";position:absolute;inset:16px max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));
  border-radius:18px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.hero-bar .wrap{position:relative;padding-left:calc(max(16px,env(safe-area-inset-left,0px)) + 16px);padding-right:calc(max(16px,env(safe-area-inset-right,0px)) + 10px);min-height:72px}
.hero-body{padding-bottom:96px}
.dataview{border-radius:20px;border:1px solid transparent;background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(255,255,255,.66)) padding-box,var(--glass-edge) border-box}
.quick{background:transparent;border:0;position:relative;z-index:2;margin-top:-44px}
.quick .wrap{gap:10px}
.quick a,.quick a:first-child{padding:13px 16px;border:1px solid transparent;border-radius:16px;
  background:var(--glass-bg) padding-box,var(--glass-edge) border-box;background-color:rgba(255,255,255,.55);
  -webkit-backdrop-filter:blur(18px) saturate(1.35);backdrop-filter:blur(18px) saturate(1.35);box-shadow:var(--glass-shadow)}
.band.alt{background:transparent;border:0}
.frame{border-radius:16px;border:1px solid rgba(255,255,255,.9);box-shadow:var(--glass-shadow)}
@media (max-width:760px){
  .quick a,.quick a:first-child,.quick a:nth-child(even){padding:12px 14px;border-top:1px solid transparent}
  .hero-body{padding-bottom:72px}
}

/* 처음 화면 제목 아래 한 줄 소개 */
.hero h1:has(+ .lede){margin-bottom:0}
.hero .lede{margin:16px 0 40px;color:rgba(255,255,255,.82);font-size:17px;max-width:none}
/* 거래 내역: 조건 칸 더 많이 (날짜도 고르기 칸), 머리글 눌러 정렬 */
.toolbar .f-range .rng{display:flex;align-items:center;gap:4px}
.toolbar .f-range .rng i{font-style:normal;color:var(--muted)}
/* 조건 칸(제목·고른 값·검색어)은 가운데 정렬 */
.toolbar .f{text-align:center}
.toolbar .f label{display:block;text-align:center}
.toolbar select{text-align:center;text-align-last:center}
.toolbar input[type=search],.toolbar input[type=text]{text-align:center}
.toolbar .reset{align-self:center;font-size:12.5px}
.toolbar .tb-links{display:flex;gap:14px;align-self:center;font-size:12.5px;padding-top:16px}
.toolbar .tb-more{flex-basis:100%;display:flex;flex-wrap:wrap;gap:10px 14px;padding-top:10px;border-top:1px solid rgba(31,77,54,.1)}
.toolbar .tb-more[hidden]{display:none}
.lsum{margin:0 0 8px;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
thead th a.sorth{color:inherit;text-decoration:none}
thead th a.sorth:hover,thead th a.sorth.on{color:var(--fg)}
.warn{color:#c2410c;font-weight:700}  /* 주의할 내용만 주황 굵은 글씨 */
td.note-c{white-space:normal;min-width:120px;max-width:240px}
/* 신유 묶음 소계: 합계보다 한 단계 옅게, 위에 실선과 옅은 녹색 바탕으로 눈에 띄게 */
tr.sy-sub td{font-weight:700;color:#111814;background:rgba(214,232,222,.45);border-top:1px solid rgba(31,77,54,.35);border-bottom:1px solid rgba(31,77,54,.2)}
tr.sy-sub td:first-child{color:var(--fg)}
/* 원료 구분별 표: 왼쪽에 원료 구분(여러 줄을 한 칸으로), 오른쪽에 제품명. 큰 묶음 사이는 진한 실선 */
.tw table tbody tr.raw-top + tr.raw-top > td,.tw table tbody tr.raw-item + tr.raw-top > td{border-top:1px solid rgba(31,77,54,.32)}
.tw table tbody td.raw-b{text-align:center;vertical-align:middle;background:transparent}
.tw table tbody tr.raw-has td.raw-b + td{border-left:1px solid rgba(31,77,54,.1)}
.tw table tbody td.raw-p{text-align:center}
/* 표의 줄 이름(구분·제품·업체·월·이름 등)은 진하게. 거래 내역·업로드 이력(날짜·시각)은 그대로 */
.tw table:not(.plain):not(.spec) tbody td:first-child:not([colspan]),.mx td.lab,.tw table tbody td.raw-p{font-weight:700;color:#111814}
.tw table:not(.plain) tbody tr.sub td:first-child{font-weight:600;color:#3b4a42}
/* 짧은 값 칸(매출/매입·거래타입·제품명·날짜·단위 등)은 가운데 */
.tw th.c,.tw td.c{text-align:center}
