:root { color-scheme: light; --green: #166c4b; --green-dark: #10563c; --text: #17211c; --muted: #65716a; --border: #dce3df; --surface: #f5f7f5; --danger: #9b2c2c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { min-height: 38px; border: 1px solid var(--green); border-radius: 6px; padding: 8px 15px; background: var(--green); color: #fff; cursor: pointer; font-weight: 650; }
button:hover { background: var(--green-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { border-color: #bfc9c3; background: #fff; color: var(--text); }
button.secondary:hover { border-color: var(--green); color: var(--green); }
.login-page { display: grid; width: auto; min-height: 100vh; place-items: center; margin: 0; padding: 20px; }
.login-card { display: grid; width: min(100%, 400px); gap: 18px; border: 1px solid var(--border); border-radius: 8px; padding: 30px; background: #fff; }
.login-card h1 { margin: 0; font-size: 26px; }
.login-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.login-card label, .toolbar label { display: grid; gap: 6px; font-weight: 650; }
input, select { width: 100%; min-height: 40px; border: 1px solid #bfc9c3; border-radius: 6px; padding: 8px 10px; background: #fff; color: var(--text); }
input:focus, select:focus, button:focus-visible { outline: 3px solid rgb(22 108 75 / 18%); outline-offset: 1px; }
.brand-mark { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text) !important; font-weight: 750; }
.brand-mark span { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 5px; background: var(--green); color: #fff; }
.contact-info { margin: 0 0 18px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.contact-info strong { color: var(--green-dark); white-space: nowrap; }
.login-card .contact-info { border-top: 1px solid var(--border); padding-top: 14px; }
.quote-shell { min-height: 100vh; }
.quote-header { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 10px max(24px, calc((100% - 1280px) / 2)); background: #fff; }
.quote-header small { display: block; margin: 3px 0 0 38px; color: var(--muted); }
main { width: min(100% - 48px, 1280px); margin: 0 auto; padding: 30px 0 60px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading h1 { margin: 0; font-size: 28px; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.page-heading > .status-ok, .page-heading > .status-warning { border-left: 3px solid; padding: 5px 10px; }
.page-heading > .status-ok { border-color: var(--green); color: var(--green); }
.page-heading > .status-warning { border-color: #a6711d; color: #805713; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 190px auto; align-items: end; gap: 12px; border: 1px solid var(--border); border-radius: 8px; padding: 14px; background: #fff; }
.result-count, .footnote { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--border); padding: 13px 14px; vertical-align: middle; }
th { background: #edf2ef; font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.price { color: var(--green-dark); font-size: 18px; font-weight: 750; white-space: nowrap; }
.state { white-space: nowrap; }
.state::before { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.state--available { color: var(--green); }
.state--paused { color: #9a681a; }
.state--disabled { color: #7a817d; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.error, .notice { border-left: 3px solid; padding: 10px 13px; background: #fff; }
.error { border-color: var(--danger); color: var(--danger) !important; }
.notice { border-color: #a6711d; color: #805713; }
.empty { display: grid; justify-items: center; gap: 5px; padding: 38px 20px; color: var(--muted); }
.empty strong { color: var(--text); }
@media (max-width: 700px) {
  .quote-header { align-items: start; padding: 12px 16px; }
  .quote-header small { margin-left: 0; }
  main { width: calc(100% - 24px); padding-top: 22px; }
  .page-heading { align-items: start; flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar button { width: 100%; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table, tbody { display: block; width: 100%; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr:not(.empty-row) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; border: 1px solid var(--border); border-radius: 8px; padding: 13px; background: #fff; }
  tbody tr:not(.empty-row) td { min-width: 0; border: 0; padding: 0; white-space: normal; }
  tbody tr:not(.empty-row) td::before { display: block; margin-bottom: 4px; color: var(--muted); content: attr(data-label); font-size: 11px; font-weight: 650; }
  tbody tr:not(.empty-row) .product-cell { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 11px; }
  tbody tr:not(.empty-row) .product-cell::before { display: none; }
  tbody tr:not(.empty-row) .product-cell strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
  tbody tr:not(.empty-row) td:nth-child(5) { grid-column: 1 / span 2; }
  tbody tr:not(.empty-row) td:last-child button { width: 100%; min-height: 36px; padding-inline: 8px; }
  .empty-row, .empty-row td { display: block; width: 100%; }
  .empty-row td { border: 1px solid var(--border); border-radius: 8px; padding: 0; background: #fff; }
}
