:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: #eef7f4; color: #14231f; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
.offline-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; color: #fff; background: #047857; }
.offline-header div { display: grid; }
.offline-header span { font-size: .78rem; opacity: .9; }
.status { min-height: 32px; display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: #065f46; font-weight: 700; }
.status.online { background: #dcfce7; color: #166534; }
.offline-main { width: min(760px, 100%); margin: auto; padding: 16px 14px calc(28px + env(safe-area-inset-bottom)); }
.card { margin-bottom: 14px; padding: 16px; border: 1px solid #d6e7e1; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(15, 59, 47, .06); }
h1, h2 { margin: 0 0 14px; } h1 { font-size: 1.25rem; } h2 { font-size: 1.05rem; }
.summary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.summary-row div { display: grid; padding: 14px; border-radius: 14px; color: #fff; background: #065f46; }
.summary-row strong { font-size: 1.5rem; }.summary-row span { font-size: .8rem; }
.message { margin-bottom: 14px; padding: 11px 13px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: .9rem; }
.message.success { background: #dcfce7; color: #166534; }
.form-grid { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: #40544e; font-size: .86rem; font-weight: 650; }
input, select, button, .button { min-height: 48px; width: 100%; border-radius: 10px; font: inherit; font-size: 16px; }
input, select { padding: 10px 12px; border: 1px solid #bdd3cb; background: #fff; color: #14231f; }
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }.product-row button { grid-column: 1 / -1; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 0; text-decoration: none; cursor: pointer; font-weight: 750; }
.primary { color: #fff; background: #047857; }.secondary { color: #065f46; background: #e1f2ec; }.full { margin-top: 10px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.table-wrap { overflow-x: auto; }table { width: 100%; border-collapse: collapse; font-size: .86rem; }th, td { padding: 9px 6px; border-bottom: 1px solid #e5eeeb; text-align: right; }th:first-child, td:first-child { text-align: left; }.remove { min-height: 44px; width: 44px; border: 0; color: #b91c1c; background: #fee2e2; }
.totals { display: grid; gap: 6px; margin: 14px 0; text-align: right; }.totals span:last-child { font-size: 1.12rem; }
.notice { margin-top: 15vh; text-align: center; }.notice p { color: #52645f; }.print-receipt { display: none; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; }.product-row { grid-template-columns: 1fr 1fr auto; align-items: end; }.product-row button { grid-column: auto; width: 120px; } }
@media print { body > :not(.print-receipt) { display: none !important; }.print-receipt { display: block; padding: 16px; }.print-receipt table { font-size: 12px; } }
