/* ============================================================
   v1.3.46 — 실매입가 간편 입력

   입고 건마다 세 칸을 채우던 것을, 주유소·유종·기간을 고르고
   리터당 실매입가 한 칸만 넣으면 되게 바꿨다. 그 화면의 모양이다.
   PC·폰·어두운 화면 모두에서 읽혀야 하므로 화면 크기를 가리지 않는다.
   ============================================================ */

.cost-simple-panel .form-help strong { font-weight: 900; }
.cost-simple-panel .form-help em { font-style: normal; font-weight: 800; }

.cost-simple-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin: 12px 0 6px;
}
.cost-simple-form > label {
  display: grid;
  gap: 5px;
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted, #647f99);
  min-width: 0;
}
.cost-simple-form select,
.cost-simple-form input {
  min-height: 42px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 700;
  padding: 0 10px;
}
/* 기간은 두 칸을 한 줄로 */
.cost-simple-form > label:has(#profitSimpleFrom) {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px 6px;
}
.cost-simple-form > label:has(#profitSimpleFrom) > input { grid-row: 2; }
.cost-simple-tilde { grid-row: 2; padding: 0 2px; color: var(--muted, #7a8fa6); }

/* 실매입가 — 이 화면에서 가장 중요한 칸이라 눈에 띄게 */
.cost-simple-price > input {
  min-width: 150px;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -.02em;
}
.cost-simple-form > button {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
}

/* 하루만 고르기 */
.cost-simple-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 2px;
}
.cost-simple-quick:empty { display: none; }
.cost-simple-quick-label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted, #647f99);
  margin-right: 2px;
}
.cost-simple-day {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* 적용 대상 미리보기 */
.cost-simple-preview { margin-top: 10px; }
.cost-simple-sum {
  margin: 0 0 7px;
  font-size: .9rem;
  line-height: 1.5;
}
.cost-simple-sum b { font-weight: 900; font-variant-numeric: tabular-nums; }
.cost-simple-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cost-simple-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line, #dfe8f2);
  background: rgba(120, 150, 180, .07);
  font-size: .78rem;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cost-simple-chips b { font-weight: 900; }
.cost-simple-more { opacity: .75; }

/* 상세 입력은 이제 보조 수단이라는 표시 */
.cost-optional {
  font-size: .78rem;
  font-weight: 700;
  opacity: .72;
}

@media (max-width: 720px) {
  .cost-simple-form { gap: 9px 10px; }
  .cost-simple-form > label,
  .cost-simple-form > button { width: 100%; }
  .cost-simple-price > input { text-align: left; }
}

/* PC 밝은 화면에서는 앞선 판들과 같은 색 언어로 */
@media (min-width: 960px) {
  html:not([data-theme="dark"]) .cost-simple-panel {
    border: 1px solid #cfe3f5 !important;
    background: linear-gradient(150deg, #ffffff 0%, #f4fbff 100%) !important;
  }
  html:not([data-theme="dark"]) .cost-simple-price > input {
    border-color: #8cc2ee !important;
    background: #ffffff !important;
  }
  html:not([data-theme="dark"]) .cost-simple-chips span {
    background: #f6fafe !important;
    border-color: #dceaf6 !important;
    color: #43617e !important;
  }
  html:not([data-theme="dark"]) .cost-simple-sum b { color: #12466f !important; }
}

html[data-theme="dark"] .cost-simple-panel {
  border-color: rgba(120, 160, 200, .28);
}
html[data-theme="dark"] .cost-simple-chips span {
  background: rgba(120, 160, 200, .12);
  border-color: rgba(120, 160, 200, .28);
}
