* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #172126; --muted: #667278; --paper: #ffffff; --wash: #f3f6f4; --line: #dbe3df; --accent: #0d6b5b; --accent-dark: #094d42; --danger: #a43f3f; --shadow: 0 10px 30px rgba(23, 33, 38, .07); }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .container { width: min(100% - 32px, 1100px); margin: 0 auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 500; letter-spacing: 0; }
.container { padding: 44px 0 72px; }
.intro { margin-bottom: 30px; max-width: 720px; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 7px; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; } h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 12px; letter-spacing: .01em; } h2 { font-size: 1.05rem; margin: 0; letter-spacing: .06em; } h3 { font-size: 1rem; margin-bottom: 5px; } h4 { font-size: .82rem; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
.lede { color: var(--muted); margin-bottom: 0; }
.entry-panel, .preview-panel, .history-panel, .toolbar-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 24px; padding: clamp(20px, 4vw, 32px); }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; } label { font-size: .86rem; font-weight: 700; } label span { color: var(--muted); font-weight: 400; }
input, select, textarea { background: #fff; border: 1px solid #bfcac5; border-radius: 5px; color: var(--ink); font: inherit; min-height: 46px; padding: 10px 12px; width: 100%; } textarea { resize: vertical; } input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(13, 107, 91, .25); outline-offset: 2px; border-color: var(--accent); }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 22px; gap: 15px; } .list-status { align-items: center; display: flex; gap: 10px; } .count-badge { background: #e6f1ed; border-radius: 99px; color: var(--accent-dark); font-size: .78rem; padding: 5px 10px; white-space: nowrap; }
.product-lines { display: grid; gap: 14px; margin-bottom: 18px; } .product-line { align-items: end; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) 130px 160px auto; padding-bottom: 14px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 5px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 750; justify-content: center; min-height: 44px; padding: 10px 15px; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; } .button-primary { background: var(--accent); color: #fff; } .button-primary:hover { background: var(--accent-dark); } .button-secondary { background: #fff; border-color: #aebcb6; color: var(--ink); } .button-secondary:hover { border-color: var(--accent); color: var(--accent-dark); } .button-danger { background: #fff5f3; border-color: #e8c4bf; color: var(--danger); } .button-danger:hover { background: #fbe5e1; } .button-small { font-size: .82rem; min-height: 38px; padding: 7px 11px; }
.purchase-preview { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; } .purchase-preview h3 { font-size: 1.25rem; letter-spacing: .03em; } .preview-meta { color: var(--muted); margin-bottom: 24px; } .preview-category { margin-bottom: 20px; } .preview-category ul { list-style: none; margin: 0; padding: 0; } .preview-category li { border-bottom: 1px solid #edf0ee; padding: 7px 0; } .preview-category li span { color: var(--muted); } .preview-note { border-top: 1px solid var(--line); padding-top: 16px; } .preview-note p { margin-bottom: 0; white-space: normal; }
.actions, .toolbar-panel { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; } .toolbar-panel { margin-top: 0; } .status-message { color: var(--accent-dark); font-size: .86rem; font-weight: 700; min-height: 20px; } .status-message.is-error { color: var(--danger); } .notice { border-radius: 5px; margin-bottom: 20px; padding: 12px 15px; } .success { background: #e5f2ec; color: #185a48; } .error { background: #fae8e5; color: #84302e; }
.hidden-file { display: none; }
.lists-history { display: grid; gap: 10px; } .history-item { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; } .history-item.is-open { border-color: rgba(13, 107, 91, .45); } .history-summary { align-items: center; background: #fff; border: 0; color: var(--ink); cursor: pointer; display: flex; gap: 12px; min-height: 64px; padding: 12px 14px; text-align: left; width: 100%; } .history-summary:hover { background: #f8faf9; } .history-summary strong { display: block; font-size: .98rem; } .history-summary small { color: var(--muted); display: block; font-size: .82rem; margin-top: 2px; } .history-arrow { color: var(--accent); font-size: .9rem; width: 18px; } .history-actions, .history-current { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; } .history-current { color: var(--muted); font-size: .86rem; } .empty-state { color: var(--muted); margin-bottom: 0; }
.product-catalog { display: grid; gap: 10px; } .catalog-card { align-items: center; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 14px; grid-template-columns: 1fr auto auto; padding: 16px; } .catalog-card h3, .catalog-card p { margin-bottom: 0; } .catalog-card p { color: var(--muted); font-size: .88rem; } .status { border-radius: 99px; font-size: .76rem; font-weight: 800; padding: 4px 9px; } .is-active { background: #e5f2ec; color: #185a48; } .is-inactive { background: #eef0f0; color: #667278; } .card-actions { display: flex; gap: 7px; } .inline-form, .unit-row form { margin: 0; } .product-form { align-items: end; } .form-submit { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; } .unit-list { border-top: 1px solid var(--line); margin-bottom: 20px; } .unit-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 54px; gap: 10px; } .unit-add { align-items: end; display: flex; gap: 12px; } .unit-add .field { flex: 1; } .copy-helper { left: -9999px; opacity: 0; position: fixed; top: 0; }
@media (max-width: 700px) { .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; } .header-inner .button { width: 100%; } .container { padding-top: 30px; } .form-grid, .product-line { grid-template-columns: 1fr; } .field-wide { grid-column: auto; } .product-line { align-items: stretch; gap: 10px; } .remove-line { width: 100%; } .list-status { align-items: flex-start; flex-direction: column; } .catalog-card { align-items: stretch; grid-template-columns: 1fr auto; } .catalog-card > div:first-child { grid-column: 1 / -1; } .card-actions { grid-column: 1 / -1; } .card-actions .button { flex: 1; } .unit-add { align-items: stretch; flex-direction: column; } .actions .button { flex: 1; } }
@media print { @page { size: A4; margin: 18mm; } body { background: #fff; color: #000; } .site-header, .intro, #shopping-form, .actions, .notice, .toolbar-panel, .history-panel { display: none !important; } .container { margin: 0; padding: 0; width: 100%; } .preview-panel { border: 0; box-shadow: none; margin: 0; padding: 0; } .section-heading { display: none; } .purchase-preview { border-left: 0; padding: 0; } .purchase-preview h3 { font-size: 18pt; } .preview-category h4 { border-bottom: 1px solid #000; padding-bottom: 4px; } .preview-category li { border-bottom: 0; padding: 3px 0; } }
