:root {
  --top: #E6F6A8;
  --side: #F2FBD2;
  --side-2: #DBF08F;
  --side-line: #CFE583;
  --side-ink: #2B3631;
  --lime: #14532D;
  --top-hi: #14201B; --top-ink: #3A4540; --top-mute: #6B7A73; --top-hover: rgba(0, 0, 0, .06); --top-line: rgba(0, 0, 0, .1); --top-btn: rgba(0, 0, 0, .25);
  --side-hot: #C2312D; --side-hi: #14201B; --side-mute: #6B7A73; --side-sub: #DBF08F; --side-ss: #4A5852; --side-subink: #46534D; --side-soon: #8A968F; --side-soonline: #C9D2CD; --side-sel: #14532D;
  --bg: #F3F5F4;
  --surface: #FFFFFF;
  --ink: #1B2420;
  --muted: #69766F;
  --line: #E1E6E3;
  --jade: #1B6B57;
  --jade-deep: #0F4A3B;
  --jade-soft: #E1F0E9;
  --amber: #8A5A0C;
  --amber-soft: #FBEFD2;
  --brick: #C2312D;
  --brick-soft: #FBE3E1;
  --teal: #0E9BA8;
  --blue: #2F6FDE;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.6 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--jade-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
[hidden] { display: none !important; }
.sp { flex: 1; }

/* ── 위쪽 바 ── */
.top { height: 52px; background: var(--top); color: var(--top-hi); display: flex; align-items: center; gap: 6px; padding: 0 16px 0 8px; position: sticky; top: 0; z-index: 30; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: var(--top-ink); cursor: pointer; }
.icon-btn:hover { background: var(--top-hover); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--top-hi); padding-right: 18px; margin-right: 6px; border-right: 1px solid var(--top-line); }
.brand:hover { text-decoration: none; }
.brand-ico { border-radius: 7px; display: block; }
.bn { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.bs { font-size: 12px; color: var(--top-mute); font-weight: 400; }
.topnav { display: flex; gap: 2px; }
.topnav a { color: var(--top-ink); font-weight: 500; font-size: 13.5px; padding: 6px 12px; border-radius: 6px; }
.topnav a:hover { background: var(--top-hover); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--top-hi); background: color-mix(in srgb, var(--lime) 20%, transparent); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tl { background: none; border: 1px solid var(--top-btn); color: var(--top-hi); border-radius: 14px; padding: 2px 12px; font-size: 12.5px; cursor: pointer; }
.tl:hover { background: var(--top-hover); }

/* ── 몸통 ── */
.body { display: flex; min-height: calc(100vh - 52px); }
.side { width: 236px; flex: none; background: var(--side); color: var(--side-ink); transition: margin .2s; }
.collapsed .side { margin-left: -236px; }
.main { flex: 1; min-width: 0; }
.scrim { display: none; }

.profile { text-align: center; padding: 26px 20px 20px; border-bottom: 1px solid var(--side-line); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--top); margin: 0 auto 10px; display: grid; place-items: center; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 28%, transparent); }
.avatar img { border-radius: 10px; display: block; }
.profile b { display: block; font-size: 17px; color: var(--side-hi); font-weight: 700; }
.profile small { color: var(--side-mute); font-size: 12px; }

.sidestat { margin: 16px; padding: 12px 14px; background: var(--side-2); border-radius: 6px; font-size: 13px; }
.ss-h { display: flex; align-items: baseline; justify-content: space-between; color: var(--side-hi); font-weight: 700; margin-bottom: 6px; }
.ss-h small { font-weight: 400; color: var(--side-mute); font-size: 11.5px; }
.ss-row { display: flex; justify-content: space-between; padding: 2px 0; color: var(--side-ss); }
.ss-row b { color: var(--side-hi); font-weight: 600; }
.ss-row b.hot { color: var(--side-hot); }

.menu { border-top: 1px solid var(--side-line); }
.m-top { display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 48px; color: var(--side-ink); font-weight: 500; border-bottom: 1px solid var(--side-line); }
.m-top:hover { background: var(--side-2); text-decoration: none; }
.m-top[aria-current="page"] { color: var(--side-sel); box-shadow: inset 3px 0 0 var(--lime); background: var(--side-2); }
.m-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 20px; background: none; border: 0; border-bottom: 1px solid var(--side-line); color: var(--side-ink); font-weight: 500; text-align: left; cursor: pointer; }
.m-head:hover { background: var(--side-2); }
.m-head svg { transition: transform .15s; opacity: .7; }
.m-grp.closed .m-head svg { transform: rotate(-90deg); }
.m-head.is-soon { cursor: default; color: var(--side-soon); }
.m-head.is-soon:hover { background: none; }
.soon { font-style: normal; font-size: 11px; color: var(--side-mute); border: 1px solid var(--side-soonline); border-radius: 10px; padding: 0 8px; }
.m-sub { background: var(--side-sub); border-bottom: 1px solid var(--side-line); }
.m-grp.closed .m-sub { display: none; }
.m-sub a { display: block; padding: 9px 20px 9px 32px; color: var(--side-subink); font-size: 13.5px; }
.m-sub a:hover { color: var(--side-sel); text-decoration: none; background: var(--side-2); }
.m-sub a[aria-current="page"] { color: var(--lime); font-weight: 500; }

/* ── 공지 줄 ── */
.notice { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.ntag { background: #ECEFED; color: var(--muted); font-size: 11.5px; padding: 1px 8px; border-radius: 3px; flex: none; }
.notice a, .notice span:not(.ntag) { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.notice time { color: var(--muted); font-size: 12px; flex: none; margin-left: auto; }

.page { padding: 20px 28px 64px; }
.page-h { margin: 4px 0 16px; }
h1 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.02em; }
.sub { color: var(--muted); margin-top: 4px; }

/* ── 카드 ── */
.grid-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: 1 / -1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; }
.grid-main .card, .grid-cards .card { margin-bottom: 0; }
.card.flush { margin-top: 14px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); min-height: 58px; }
.card-h h2 { white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.cico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.cico.green { background: #1FB26B; } .cico.lime { background: #7BC043; } .cico.red { background: #EF5B55; } .cico.teal { background: #1AA7B3; } .cico.blue { background: #3D7BE8; }
.tag { font-size: 11.5px; color: var(--muted); background: #EEF1EF; border-radius: 10px; padding: 0 9px; }
.stamp { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: #8B968F; font-size: 12px; cursor: pointer; padding: 2px 4px; }
.stamp:hover { color: var(--jade); }
.more { font-size: 12.5px; color: var(--muted); }

/* 주문 흐름 */
.flow { display: flex; align-items: stretch; padding: 22px 28px 20px; }
.fi { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fi .ft { color: #3A4540; font-size: 13.5px; font-weight: 500; }
.fi b { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.fi b small { font-size: 19px; margin-left: 2px; font-weight: 400; }
.fi b.txt { font-size: 22px; padding-top: 4px; }
.fi b.dim { color: #A2ACA6; }
.fi .fn { color: var(--muted); font-size: 12px; margin-top: -2px; }
.fchev { display: grid; place-items: center; color: #C3CBC6; padding: 0 18px; }
.fchev svg { transform: rotate(-90deg); }
.strip { display: flex; margin: 0 20px 20px; background: #F4F6F5; border-radius: 4px; padding: 10px 6px; }
.strip > div { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border-left: 1px solid #DDE3DF; font-size: 13px; color: var(--muted); }
.strip > div:first-child { border-left: 0; }
.strip b { font-size: 15px; font-weight: 500; color: var(--ink); }
.strip b.hot { color: var(--brick); }

/* 큰 숫자 줄 */
.bigs { padding: 6px 20px 14px; }
.bigrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #EEF1EF; }
.bigrow:last-child { border-bottom: 0; }
.bl { font-weight: 500; color: #2A3530; white-space: nowrap; }
.bl small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.bigrow b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; text-align: right; }
.bigrow.flat span { color: var(--muted); text-align: right; font-size: 13px; }

/* 숫자 목록 */
.stats { padding: 8px 20px 14px; }
.stat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: #2A3530; }
.stat b { font-size: 20px; font-weight: 500; }
.stat b.hot, .n-red { color: var(--brick); } .n-teal { color: var(--teal); } .n-blue { color: var(--blue); }
.stat.dim span { color: var(--muted); }
.stat b.dim, .dim b { opacity: .55; }

/* 아래 카드 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 16px 20px 20px; }
.sub-h { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pillbtn { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 19px; border: 1px solid #CDD6D1; background: #fff; color: #2A3530; font-weight: 500; cursor: pointer; }
.pillbtn:hover { border-color: var(--jade); text-decoration: none; }
.pillbtn.on { background: #1FB26B; border-color: #1FB26B; color: #fff; }
.pillbtn[disabled] { opacity: .5; cursor: default; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #F0F2F1; font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }
.feed li a { flex: 1; min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { color: #8B968F; font-size: 12px; flex: none; }

/* 칩 */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 1px 10px; border-radius: 99px; background: var(--jade-soft); color: var(--jade-deep); font-weight: 500; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.bad { background: var(--brick-soft); color: var(--brick); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.idle { background: #E8ECEA; color: var(--muted); }
.chip.dark { background: rgba(20, 83, 45, .14); color: #14532D; font-size: 12px; }
.chip.dark.bad { background: rgba(194, 49, 45, .14); color: #A12622; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 4px; border: 1px solid #CDD6D1; background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #9DAAA3; text-decoration: none; }
.btn.primary { background: #1FB26B; border-color: #1FB26B; color: #fff; }
.btn.primary:hover { background: #179A5C; border-color: #179A5C; }
.btn.sm { min-height: 32px; font-size: 13px; padding: 0 12px; }
.btn.block { width: 100%; margin-top: 14px; min-height: 44px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* 단계 */
.steps { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.step { display: flex; gap: 12px; padding: 18px 18px 16px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #E8ECEA; color: var(--muted); flex: none; }
.step.done .mark { background: #1FB26B; color: #fff; }
.step.now .mark { background: #fff; color: var(--jade-deep); box-shadow: inset 0 0 0 2px #1FB26B; }
.step.bad .mark { background: var(--brick); color: #fff; }
.st-body h3 { font-size: 14.5px; font-weight: 700; }
.step.later h3 { color: var(--muted); font-weight: 500; }
.st-body p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.st-act { margin-top: 10px; }

/* 표 */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid #CDD6D1; border-radius: 4px; padding: 0 10px; height: 36px; min-width: 280px; color: var(--muted); background: #fff; }
.search input { border: 0; outline: 0; font: inherit; width: 100%; background: none; color: var(--ink); }
.search:focus-within { border-color: var(--jade); }
.counter { color: var(--muted); font-size: 13px; }
.counter b { color: var(--ink); }
.tablewrap { overflow-x: auto; border-top: 1px solid var(--line); }
.card > .tablewrap, .card .tablewrap { border-top: 1px solid var(--line); }
table.grid { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13px; }
.grid th, .grid td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #EDF0EE; vertical-align: top; }
.grid th { font-weight: 500; color: #4B5852; background: #F5F7F6; font-size: 12.5px; position: sticky; top: 0; white-space: nowrap; }
.grid tbody tr:hover { background: #FAFCFB; }
.grid tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; }
.grid .ck { width: 38px; padding-right: 0; }
.grid .addr { min-width: 220px; } .grid .memo { max-width: 20em; } .grid .code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 12px; color: var(--muted); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 0 8px; border-radius: 3px; white-space: nowrap; }
.pill.wait { background: #FFB43D; color: #4A2F00; }
.empty { padding: 28px 16px; color: var(--muted); }
.empty.sm { padding: 6px 0; }

.note { margin: 0 20px 4px; padding: 12px 14px; border-radius: 4px; background: var(--amber-soft); color: #4D3306; }
.note.bad { background: var(--brick-soft); color: #5E1C1B; margin: 0; }
.note ul { margin: 6px 0 0 18px; list-style: disc; }
.card .note:first-child { margin-top: 16px; }

/* 연결 상태 */
.rows2 { padding: 0 20px; }
.line { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid #EEF1EF; flex-wrap: wrap; }
.line:last-child { border-bottom: 0; }
.line b { font-weight: 500; }
.line .msg { color: var(--muted); font-size: 12.5px; max-width: 34em; }
.stack { display: grid; gap: 4px; justify-items: end; }
.card-foot { padding: 4px 20px 18px; }
.card > div > .sub, .card .sub { padding: 14px 20px 0; }

/* 로그인 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--top); }
.login form { width: 100%; max-width: 360px; background: #fff; border-radius: 8px; padding: 32px 28px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.brand-ico.lg { width: 44px; height: 44px; border-radius: 10px; }
.login h1 { font-size: 24px; }
.login label { display: block; margin: 24px 0 6px; font-weight: 500; }
.login input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #B7C2BC; border-radius: 4px; background: #fff; font: inherit; }
.err { color: var(--brick); margin-top: 10px; min-height: 1.6em; }

.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }

/* 좁은 화면 */
@media (max-width: 1180px) {
  .grid-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span3, .span4 { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; } .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .side { position: fixed; top: 52px; bottom: 0; left: 0; z-index: 40; margin-left: -250px; overflow-y: auto; transition: margin .2s; }
  .app.open .side { margin-left: 0; }
  .app.collapsed .side { margin-left: -250px; } .app.open.collapsed .side { margin-left: 0; }
  .app.open .scrim { display: block; position: fixed; inset: 52px 0 0 0; background: rgba(0, 0, 0, .4); z-index: 35; }
  .topnav, .bs { display: none; }
  .page { padding: 16px 16px 56px; }
  .notice { padding: 0 16px; }
  .notice time { display: none; }
  .flow { flex-wrap: wrap; row-gap: 18px; padding: 18px; }
  .fi { flex: 1 1 40%; } .fchev { display: none; }
  .strip { flex-wrap: wrap; gap: 8px 0; } .strip > div { flex: 1 1 50%; }
  .strip > div:nth-child(3) { border-left: 0; }
  .two-col { grid-template-columns: 1fr; gap: 22px; }
  .chip.dark { display: none; }
  .card-h .stamp { display: none; }
}
@media (max-width: 640px) {
  .grid-main, .grid-cards { grid-template-columns: 1fr; }
  .span2, .span3, .span4 { grid-column: auto; }
  .steps { grid-template-columns: 1fr; } .step { border-left: 0; border-top: 1px solid var(--line); } .step:first-child { border-top: 0; }
  .search { min-width: 0; flex: 1 1 100%; }
}

/* 고객 리스트 / 원본 주문 보관 */
.phones { white-space: nowrap; }
.ph { display: inline-block; margin-right: 8px; }
.ph.safe { color: #9aa5a0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #F3F8F5; }
.cust textarea { width: 100%; box-sizing: border-box; margin: 12px 0 8px; padding: 10px 12px; border: 1px solid #D5DCD9; border-radius: 6px; font: inherit; resize: vertical; }
.hint { color: #5b6b64; font-size: 13px; }
.card .pills { margin-top: 14px; }
.card-h .more { font-size: 13px; color: #3b6b57; text-decoration: none; }
.card .stats + .pills { padding: 0 20px 20px; }
.grid .nw { white-space: nowrap; }

/* 메인 카드 정렬 보정 */
.feedbox { padding: 6px 20px 12px; }
.stats.h3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 20px 6px; }
.stats.h3 .stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 0 14px; border-left: 3px solid #E3EAE6; }
.stats.h3 .stat:first-child { border-left-color: var(--teal); }
.stats.h3 .stat span { color: var(--muted); font-size: 13px; }
.stats.h3 .stat b { font-size: 24px; }
.card .stats.h3 + .pills { padding: 14px 20px 20px; margin-top: 0; }
@media (max-width: 640px) { .stats.h3 { grid-template-columns: 1fr; } }

/* 분석 화면 */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.kpi small { color: var(--muted); font-size: 12px; }
.bar { height: 10px; background: #E9EEEB; border-radius: 5px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: #2FA36B; border-radius: 5px; }
.bar.teal i { background: var(--teal); }
.barcell { width: 26%; }
.hrow { display: grid; grid-template-columns: 90px 1fr 60px; gap: 12px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hrow b { text-align: right; font-weight: 500; }
.padbox { padding: 14px 20px 18px; }
.hint.pad { padding: 12px 20px 16px; }
.grid-main.gap-top { margin-bottom: 14px; }
.page > div > .card { margin-bottom: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr; } }
.padbox .hint { margin-top: 10px; }

/* 정산 */
.row-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mnav { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.mnav b { min-width: 96px; text-align: center; font-size: 16px; letter-spacing: -0.02em; }
.mn-b { width: 32px; height: 32px; border: 0; background: none; border-radius: 6px; font-size: 22px; line-height: 1; color: #3a4540; cursor: pointer; }
.mn-b:hover { background: #EEF2EF; }
.kpis.k5 { grid-template-columns: 1.4fr repeat(4, 1fr); }
.kpi.pos b { color: #0F6B3E; } .kpi.neg b { color: var(--brick); }
.calwrap { padding: 16px 20px 18px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-w { text-align: center; font-size: 12.5px; color: var(--muted); padding: 2px 0 4px; }
.cal-w.we { color: #9aa5a0; }
.cal-c { min-height: 84px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; cursor: pointer; position: relative; }
.cal-c.blank { border: 0; background: none; cursor: default; }
.cal-c .cd { font-size: 12px; color: var(--muted); }
.cal-c .cp { font-size: 17px; font-weight: 600; letter-spacing: -0.03em; margin-top: auto; }
.cal-c .cp.dim { color: #c3cbc6; font-weight: 400; }
.cal-c small { color: #7b8982; font-size: 11px; min-height: 14px; }
.cal-c.pos { background: color-mix(in srgb, #2FA36B calc(var(--heat) * 28%), #fff); border-color: color-mix(in srgb, #2FA36B calc(var(--heat) * 45%), var(--line)); }
.cal-c.pos .cp { color: #0F5F37; }
.cal-c.neg { background: color-mix(in srgb, #D9453D calc(var(--heat) * 30%), #fff); border-color: color-mix(in srgb, #D9453D calc(var(--heat) * 50%), var(--line)); }
.cal-c.neg .cp { color: #B3261E; }
.cal-c.today .cd { color: #14532D; font-weight: 700; }
.cal-c.today::after { content: ''; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: #14532D; }
.cal-c.sel { outline: 2px solid #14532D; outline-offset: 1px; }
.cal-c:hover:not(.blank) { border-color: #14532D; }
.cal-detail { margin-top: 14px; }
.formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 16px 20px 6px; }
.fx { background: #F4F6F5; border-radius: 8px; padding: 8px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 112px; }
.fx span { font-size: 12px; color: var(--muted); } .fx b { font-size: 17px; font-weight: 600; }
.fx.eq { margin-left: auto; min-width: 150px; } .fx.eq.pos { background: #DDF3E6; } .fx.eq.pos b { color: #0F5F37; } .fx.eq.neg { background: #FBE3E1; } .fx.eq.neg b { color: #B3261E; }
.negt { color: var(--brick); } .post { color: #0F6B3E; }
.estb { display: inline-block; margin-left: 6px; font-size: 10.5px; background: #FBEFD2; color: #8A5A0C; border-radius: 8px; padding: 0 6px; vertical-align: 1px; }
.apib { display: inline-block; margin-left: 6px; font-size: 10.5px; background: #DDF3E6; color: #0F5F37; border-radius: 8px; padding: 0 6px; }
.adin { width: 110px; text-align: right; border: 1px solid #D5DCD9; border-radius: 4px; padding: 5px 8px; font: inherit; background: #fff; }
.adin.left { text-align: left; width: 90px; }
.adin:focus { outline: 2px solid #14532D; outline-offset: -1px; }
.adtab tr.we td { background: #FAFBFA; }
.adtab tfoot td { border-top: 2px solid var(--line); padding-top: 10px; background: #F4F6F5; }
.toolbar.pad { padding: 14px 20px; gap: 12px; }
.ads-info { display: flex; flex-direction: column; gap: 10px; }
.ads-info .ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mut { color: var(--muted); }
.mtab td.lab { color: #3a4540; }
.mtab tr.strong td, .mtab tr.profit td { font-weight: 600; background: #F6F9F7; }
.mtab tr.profit td { font-size: 15px; }
.mtab tr.sep td { padding: 3px 0; background: #EEF2EF; }
.feerow { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; } .feerow .adin { width: 80px; }
@media (max-width: 900px) { .kpis.k5 { grid-template-columns: 1fr 1fr; } .cal-c { min-height: 64px; padding: 6px; } .cal-c small { display: none; } .cal-c .cp { font-size: 13px; } }
.kpis.k5 .kpi b { font-size: 22px; white-space: nowrap; } .kpis.k5 .kpi:first-child b { font-size: 26px; }
