/* R359 — 오늘 업무 '재고·주문 계산' 팝업과 홈의 단추 줄. 이 파일의 규칙은 .vh-stockcalc / .sc-* 안에서만 적용된다. */
.vh-stockcalc{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border:1px solid #c9d8ee;border-radius:14px;background:#f2f7ff}
.vh-stockcalc>div{flex:1 1 220px;min-width:0}
.vh-stockcalc strong{display:block;font-size:1.05rem;color:#1b2a41}
.vh-stockcalc small{display:block;margin-top:2px;color:#4a5d78;font-size:.88rem;line-height:1.4}
.vh-stockcalc button{flex:0 0 auto;min-height:48px;padding:10px 18px;border:0;border-radius:12px;background:#1456c8;color:#fff;font-weight:800;font-size:1rem;cursor:pointer;white-space:nowrap}
@media(max-width:720px){.vh-stockcalc button{flex:1 1 100%}}
dialog.sc-dialog{width:min(860px,96vw);max-height:94vh;padding:0;border:0;border-radius:16px;background:#fff;color:#1b2a41;box-shadow:0 18px 50px rgba(15,32,60,.4);overflow:auto}
dialog.sc-dialog::backdrop{background:rgba(15,32,60,.55)}
.sc-box{padding:0 0 16px}
.sc-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 16px;background:#1f3b5c;color:#fff}
.sc-head h2{margin:0;font-size:1.25rem;color:#fff}
.sc-head p{margin:2px 0 0;font-size:.9rem;color:#dbe7f7}
.sc-close{flex:0 0 auto;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:#fff;color:#1f3b5c;font-weight:800;cursor:pointer;white-space:nowrap}
.sc-ctl{padding:12px 16px 4px}
.sc-stname{margin:0 0 8px;font-weight:800}
.sc-station{display:flex;flex-direction:column;gap:3px;margin:0 0 8px;font-weight:700;font-size:.9rem}
.sc-station select,.sc-pick input,.sc-pick select{min-height:44px;padding:4px 10px;border:1px solid #b7c6dc;border-radius:10px;font-size:1rem;background:#fff}
.sc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.sc-chip{min-height:44px;padding:4px 14px;border:1px solid #b7c6dc;border-radius:999px;background:#fff;color:#1b2a41;font-weight:700;font-size:.95rem;cursor:pointer;white-space:nowrap}
.sc-chip small{margin-left:6px;color:#56677f;font-weight:600}
.sc-chip.on{background:#1456c8;border-color:#1456c8;color:#fff}.sc-chip.on small{color:#e3ecff}
.sc-pick{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.sc-pick label{display:flex;flex-direction:column;gap:3px;font-weight:700;font-size:.9rem}
.sc-go{min-height:44px;padding:0 16px;border:1px solid #1456c8;border-radius:10px;background:#fff;color:#1456c8;font-weight:800;cursor:pointer}
.sc-msg{margin:10px 16px 0;min-height:1.2em;color:#33475f;font-size:.92rem}
.sc-body{padding:8px 16px 0;display:grid;gap:12px}
.sc-top{padding:12px 14px;border-radius:12px;font-size:1.05rem}
.sc-top.bad{background:#fde9e7;color:#8a1c12;border:1px solid #f0b5ae}.sc-top.ok{background:#e3f4e8;color:#14532d;border:1px solid #a9d6b5}
.sc-row{border:1px solid #d3deec;border-left-width:6px;border-radius:12px;padding:12px 14px;background:#fff}
.sc-row.bad{border-left-color:#d63c3c}.sc-row.ok{border-left-color:#2f9e5a}.sc-row.unknown{border-left-color:#8a96a8}
.sc-row>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.sc-row>header strong{font-size:1.2rem}
.sc-badge{padding:3px 12px;border-radius:999px;font-size:.88rem;font-weight:800}
.sc-badge.bad{background:#fde1de;color:#8a1c12}.sc-badge.ok{background:#dff3e5;color:#14532d}.sc-badge.unknown{background:#e8ecf2;color:#44566f}
.sc-row dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 14px;margin:0}
.sc-row dl>div{min-width:0}
.sc-row dt{font-size:.85rem;color:#56677f}
.sc-row dd{margin:2px 0 0;font-size:1.08rem;font-weight:800;word-break:keep-all}
.sc-line{margin:10px 0 0;font-size:1.1rem}
.sc-neg{color:#b42318}.sc-pos{color:#166534}
.sc-why,.sc-hint{margin:6px 0 0;font-size:.9rem;color:#56677f;line-height:1.5}
.sc-order{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-top:12px;padding-top:12px;border-top:1px dashed #cfd9e8}
.sc-order label{display:flex;flex-direction:column;gap:3px;font-weight:700;font-size:.9rem}
.sc-qty{width:150px;min-height:48px;padding:4px 10px;border:2px solid #9fb3cf;border-radius:10px;font-size:1.15rem;font-weight:800;text-align:right}
.sc-trucks{flex:1 1 140px;color:#33475f;font-size:.92rem;align-self:center}
.sc-send,.sc-all{min-height:48px;padding:0 18px;border:0;border-radius:12px;background:#1456c8;color:#fff;font-weight:800;font-size:1rem;cursor:pointer}
.sc-all{width:100%;background:#0f6b3d}
.sc-sent{margin:10px 0 0;padding:8px 12px;border-radius:10px;background:#e3f4e8;color:#14532d;font-weight:700}
.sc-empty{padding:14px;color:#56677f}
.sc-foot{margin:12px 16px 0;color:#56677f;font-size:.85rem;line-height:1.5}
@media(max-width:720px){
  dialog.sc-dialog{width:100vw;max-width:100vw;height:100vh;max-height:100vh;border-radius:0;margin:0}
  .sc-qty{width:100%}.sc-order label{flex:1 1 100%}.sc-send{flex:1 1 100%}
  .sc-row dl{grid-template-columns:1fr 1fr}
}
.sc-until{display:flex;flex-direction:column;gap:2px;margin:0 0 10px;padding:10px 12px;border-radius:10px;background:#f4f7fb}
.sc-until small{font-size:.82rem;color:#56677f;font-weight:700}
.sc-until b{font-size:1.25rem;line-height:1.35;word-break:keep-all}
.sc-until.bad b{color:#b42318}.sc-until.ok b{color:#166534}.sc-until.unknown{display:none}
.sc-tank{margin-top:10px;min-height:48px;padding:0 18px;border:1px solid #1456c8;border-radius:12px;background:#fff;color:#1456c8;font-weight:800;font-size:1rem;cursor:pointer}
/* R369 — 날짜별 남는 기름 달력(14일): 색+막대+글자(바닥/만/천)로 색만으로 구분하지 않는다. 칸 높이 56px 이상(터치). */
.sc-cal{margin:10px 16px 0;padding:12px;border:1px solid #d3deec;border-radius:12px;background:#fbfdff}
.sc-cal-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.sc-cal-head strong{font-size:1.1rem}
.sc-cal-head .sc-chips{margin:0}
.sc-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.sc-dow{text-align:center;font-weight:800;font-size:.85rem;color:#56677f}
.sc-dow:first-child{color:#b42318}.sc-dow:nth-child(7){color:#1456c8}
.sc-blank{min-height:1px}
.sc-day{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:3px;min-height:64px;padding:5px 4px;border:2px solid transparent;border-radius:10px;background:#eef1f6;color:#1b2a41;cursor:pointer;text-align:center;font:inherit}
.sc-day small{font-size:.74rem;font-weight:700;color:#44566f;white-space:nowrap}
.sc-day b{font-size:1rem;line-height:1.1}
.sc-bar{display:block;height:6px;border-radius:3px;background:rgba(0,0,0,.1);overflow:hidden}
.sc-bar i{display:block;height:100%;border-radius:3px;background:currentColor}
.sc-day.ok{background:#e3f4e8;color:#166534}.sc-day.warn{background:#fff1d6;color:#8a4b00}.sc-day.bad{background:#fde1de;color:#a3180d}.sc-day.unknown,.sc-day.wait{background:#eef1f6;color:#56677f}
.sc-day b,.sc-day small{color:#1b2a41}.sc-day.bad b{color:#a3180d}
.sc-day.sel{border-color:#1456c8;box-shadow:0 0 0 2px #cfe0ff}
.sc-legend{margin:8px 0 0;font-size:.82rem;color:#44566f;line-height:1.7}
.sc-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 3px 0 8px;vertical-align:-1px}
.sc-legend i:first-child{margin-left:0}
.sc-legend i.ok{background:#8ed1a3}.sc-legend i.warn{background:#f3c46b}.sc-legend i.bad{background:#ee8b84}.sc-legend i.unknown{background:#c5ccd8}
@media(max-width:720px){.sc-cal{margin:10px 8px 0;padding:8px}.sc-grid{gap:4px}.sc-day{min-height:60px;padding:4px 2px}.sc-day small{font-size:.66rem}.sc-day b{font-size:.92rem}}
.sc-cal-sum{margin:0 0 8px;font-size:1.02rem;line-height:1.4}.sc-cal-sum b{font-size:1.1rem}
