:root {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: #183b46;
  background: #f4f7f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #183b46;
  --deep: #164e63;
  --deep-hover: #103f51;
  --muted: #82959c;
  --line: #e6ecee;
  --panel: #fff;
  --mist: #f5f8f9;
  --mint: #a7f3d0;
  --mint-deep: #c9f7e2;
  --red: #d85c55;
  --shadow: 0 9px 32px rgba(23, 59, 70, .045);
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(22, 78, 99, .24); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 226px; flex: 0 0 226px; display: flex; flex-direction: column; padding: 26px 16px 18px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand img { border-radius: 13px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { color: var(--deep); font-size: 21px; letter-spacing: -.9px; font-weight: 800; }
.brand-copy small { margin-top: 3px; color: #92a1a5; font-size: 10px; letter-spacing: .1px; }
.nav-caption { margin: 49px 0 11px 11px; color: #9aabb0; font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { width: 100%; height: 45px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 0 12px; color: #71868c; background: transparent; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-link:hover { color: var(--deep); background: #f4f8f9; }
.nav-link:active { transform: scale(.985); }
.nav-link.is-active { color: var(--deep); background: #eaf3f4; }
.nav-icon { width: 20px; font-size: 20px; line-height: 1; text-align: center; font-weight: 500; }
.nav-shortcut { margin-left: auto; padding: 3px 5px; border: 1px solid #dfe9eb; border-radius: 5px; color: #81979e; font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.local-note { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 9px; color: #75888e; background: #f6f8f9; font-size: 9px; font-weight: 600; }
.local-dot, .footer-dot { width: 7px; height: 7px; border-radius: 99px; background: #65bb91; box-shadow: 0 0 0 3px rgba(101, 187, 145, .13); }
.sidebar-version { padding: 20px 10px 0; color: #a0afb3; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; }
.main-area { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 30px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); }
.topbar-title .eyebrow, .section-kicker { color: #94a7ac; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; }
.topbar h1 { margin: 4px 0 0; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.55px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.scanner-status { display: flex; align-items: center; gap: 7px; color: #6f858b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-pulse { width: 7px; height: 7px; border-radius: 99px; background: #5eb98d; box-shadow: 0 0 0 4px rgba(94,185,141,.12); }
.scan-field { width: min(270px, 25vw); height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 11px; border: 1px solid #e3eaec; border-radius: 9px; background: #fafcfc; transition: border-color .16s ease, box-shadow .16s ease; }
.scan-field:focus-within { border-color: #8bb6c2; box-shadow: 0 0 0 3px rgba(22,78,99,.08); }
.scan-icon { color: #7c979e; font-size: 22px; line-height: 1; transform: rotate(-15deg); }
.scan-field input, .search-box input { min-width: 0; flex: 1; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 10px; }
.scan-field input::placeholder, .search-box input::placeholder { color: #9aabaf; }
kbd { border: 1px solid #e1e8e9; border-radius: 4px; padding: 2px 4px; color: #92a2a5; background: #fff; font-family: inherit; font-size: 9px; }
.avatar { width: 34px; height: 34px; border: 1px solid #dce9eb; border-radius: 50%; color: var(--deep); background: #eaf3f4; font-size: 9px; font-weight: 800; cursor: default; }
.page-view { display: none; flex: 1; min-height: 0; }
.page-view.is-visible { display: block; }
#view-kasse { padding: 22px 24px 16px; }
.sale-layout { height: calc(100vh - 147px); min-height: 510px; display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 18px; }
.panel { min-width: 0; border: 1px solid #e8edef; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.catalog-area { display: flex; flex-direction: column; overflow: hidden; padding: 23px 23px 20px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2, .cart-heading h2 { margin: 5px 0 0; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.5px; }
.muted { margin: 5px 0 0; color: #96a6aa; font-size: 10px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; white-space: nowrap; }
.button:active, .checkout-button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--deep); box-shadow: 0 3px 8px rgba(22,78,99,.12); }
.button-primary:hover { background: var(--deep-hover); box-shadow: 0 5px 13px rgba(22,78,99,.18); }
.button-soft { min-height: 34px; border-color: #e2ebed; color: var(--deep); background: #fff; }
.button-soft:hover, .button-quiet:hover { border-color: #c3d6da; background: #f6f9fa; }
.button-quiet { border-color: #e3eaec; color: #6f858b; background: #fff; }
.button-plus { font-size: 15px; line-height: 0; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 14px; }
.search-box { width: min(310px, 62%); height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px 0 11px; border: 1px solid #e7edef; border-radius: 8px; background: #fbfcfc; color: #8ca0a5; }
.search-box > span { font-size: 17px; line-height: 1; }
.search-box input { font-size: 10px; }
.search-box kbd { margin-left: auto; }
.catalog-hint { color: #9babad; font-size: 9px; white-space: nowrap; }
.hint-key { margin-right: 5px; color: #b1bdc0; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.product-grid { min-height: 0; flex: 1; display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 11px; overflow: auto; padding: 1px 3px 6px 1px; scrollbar-color: #dce7e9 transparent; scrollbar-width: thin; }
.product-card { min-height: 113px; position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 14px 14px 12px; border: 1px solid #e8edef; border-radius: 11px; background: #fff; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.product-card::before { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: transparent; content: ''; transition: background .16s ease; }
.product-card:hover { transform: translateY(-2px); border-color: #c7dde0; box-shadow: 0 6px 15px rgba(22,78,99,.08); }
.product-card:hover::before { background: var(--mint); }
.product-card:active { transform: scale(.985); }
.product-name { max-width: 100%; overflow: hidden; color: #274954; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.product-barcode { display: block; max-width: 100%; overflow: hidden; margin-top: 6px; color: #a1afb2; font-size: 8px; letter-spacing: .3px; text-overflow: ellipsis; white-space: nowrap; }
.product-card-bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 15px; }
.product-price { color: var(--deep); font-size: 14px; font-weight: 800; letter-spacing: -.45px; }
.product-plus { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #316b72; background: #ecf6f2; font-size: 16px; line-height: 1; }
.product-card:hover .product-plus { background: var(--mint); }
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.empty-state h3 { margin: 10px 0 0; font-size: 14px; }
.empty-state p { max-width: 270px; margin: 6px 0 16px; color: #92a3a7; font-size: 10px; line-height: 1.6; }
.empty-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--deep); background: #e8f4ef; font-size: 23px; }
.no-results { padding: 35px 12px; color: #96a6aa; font-size: 11px; text-align: center; }
.hidden { display: none !important; }
.cart-panel { display: flex; flex-direction: column; overflow: hidden; padding: 22px 18px 14px; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 17px; border-bottom: 1px solid #edf1f2; }
.cart-heading h2 { display: flex; align-items: center; gap: 8px; }
.cart-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 99px; color: var(--deep); background: #eaf4f3; font-size: 9px; letter-spacing: 0; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e7edef; border-radius: 8px; color: #91a0a4; background: #fff; font-size: 15px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.icon-button:hover { color: var(--deep); background: #f5f9f9; }
.cart-lines { flex: 1; min-height: 0; overflow: auto; padding: 5px 2px; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; padding: 12px 0; border-bottom: 1px solid #f0f3f4; animation: line-in .2s ease both; }
.cart-line-main { min-width: 0; }
.cart-line-name { overflow: hidden; color: #35545d; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-each { margin-top: 4px; color: #9aabad; font-size: 8px; }
.cart-line-total { padding-top: 1px; color: var(--deep); font-size: 10px; font-weight: 800; text-align: right; white-space: nowrap; }
.qty-controls { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.qty-button { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #e4ebed; border-radius: 6px; color: #66818a; background: #fff; font-size: 12px; cursor: pointer; }
.qty-button:hover { border-color: #c6dcdf; background: #f3f8f8; }
.qty-value { min-width: 12px; color: #557078; font-size: 9px; font-weight: 800; text-align: center; }
.remove-line { margin-left: 2px; border: 0; color: #a2b0b3; background: transparent; font-size: 13px; cursor: pointer; }
.remove-line:hover { color: var(--red); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; color: #91a3a7; text-align: center; }
.basket-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 13px; color: #8ea9ae; background: #f2f7f7; font-size: 25px; }
.cart-empty strong { color: #617a81; font-size: 10px; }
.cart-empty span { max-width: 185px; margin-top: 5px; font-size: 9px; line-height: 1.5; }
.cart-footer { padding-top: 10px; border-top: 1px solid #eaf0f1; }
.subtotal-line, .total-line { display: flex; align-items: center; justify-content: space-between; }
.subtotal-line { padding: 5px 2px 9px; color: #8c9da1; font-size: 9px; }
.subtotal-line span:last-child { color: #5e767d; font-weight: 700; }
.total-line { padding: 5px 2px 14px; color: #48636b; font-size: 11px; font-weight: 700; }
.total-line strong { color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.checkout-button { width: 100%; min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border: 0; border-radius: 9px; color: #fff; background: var(--deep); font-size: 10px; font-weight: 800; cursor: pointer; transition: background .16s ease, transform .16s ease; }
.checkout-button:hover:not(:disabled) { background: var(--deep-hover); }
.checkout-button:disabled { color: #a9b5b8; background: #edf1f2; }
.checkout-arrow { font-size: 16px; }
.checkout-note { display: flex; align-items: center; justify-content: center; gap: 5px; padding-top: 10px; color: #a0afb2; font-size: 8px; }
.lock-icon { color: #78a98d; font-weight: 800; }
.app-footer { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 29px 11px; color: #96a6a9; font-size: 8px; }
.app-footer > span:first-child { display: flex; align-items: center; gap: 7px; }
.footer-dot { width: 6px; height: 6px; }
.content-page { max-width: 1120px; margin: 0 auto; padding: 33px 38px 35px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-intro h2 { margin: 6px 0 4px; color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.8px; }
.page-intro p { margin: 0; color: #889ba0; font-size: 11px; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.table-search { width: min(370px, 72%); }
.table-count { color: #91a1a5; font-size: 10px; }
.table-wrap { overflow: hidden; border: 1px solid #e6edef; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead { background: #f8fafb; }
th { height: 42px; padding: 0 17px; color: #92a3a7; font-size: 8px; font-weight: 800; letter-spacing: .9px; text-align: left; }
td { height: 59px; padding: 8px 17px; border-top: 1px solid #eff3f4; color: #587078; font-size: 10px; }
.align-right { text-align: right; }
.table-product { color: #284b55; font-weight: 800; }
.table-barcode { color: #9aabad; font-size: 9px; letter-spacing: .3px; }
.table-price { color: var(--deep); font-weight: 800; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.table-action { min-height: 28px; padding: 0 9px; border: 1px solid #e6edef; border-radius: 7px; color: #6d858c; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.table-action:hover { color: var(--deep); border-color: #c9dde0; background: #f7fafa; }
.table-action.delete:hover { color: var(--red); border-color: #f0d6d4; background: #fff8f7; }
.table-empty { padding: 35px 20px; color: #92a3a6; font-size: 11px; text-align: center; }
.sales-total-card { min-width: 160px; display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border: 1px solid #dcece5; border-radius: 10px; background: #f1faf5; }
.sales-total-card span { color: #85a198; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.sales-total-card strong { color: var(--deep); font-size: 18px; letter-spacing: -.4px; }
.sale-ref { color: #9aabad; font-size: 9px; }
.receipt-dialog, .product-dialog { width: min(440px, calc(100% - 28px)); max-width: 440px; max-height: calc(100dvh - 36px); padding: 0; overflow: auto; border: 1px solid #e2eaec; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(17,46,54,.2); }
.product-dialog::backdrop, .receipt-dialog::backdrop { background: rgba(20, 43, 49, .34); backdrop-filter: blur(3px); }
.product-dialog form { padding: 23px 25px 22px; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.dialog-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--deep); background: #eaf5f1; font-size: 20px; }
.dialog-close { border: 0; font-size: 22px; }
.product-dialog h2, .receipt-dialog h2 { margin: 5px 0 0; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.55px; }
.dialog-description { margin: 6px 0 20px; color: #8ea0a4; font-size: 10px; }
.form-label { display: block; margin: 13px 0 6px; color: #49666f; font-size: 9px; font-weight: 800; }
.form-input { width: 100%; height: 39px; border: 1px solid #e2eaec; border-radius: 8px; padding: 0 11px; color: #294a54; background: #fbfcfc; font-size: 11px; }
.form-input::placeholder { color: #a4b0b3; }
.form-input:focus { border-color: #83b2bf; outline: none; box-shadow: 0 0 0 3px rgba(22,78,99,.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { min-width: 0; }
.price-input { position: relative; }
.price-input > span { position: absolute; top: 11px; left: 11px; color: #8b9b9f; font-size: 11px; }
.price-input .form-input { padding-left: 27px; }
.optional { margin-left: 4px; color: #a4b0b3; font-size: 8px; font-weight: 500; }
.form-error { margin-top: 10px; padding: 8px 10px; border: 1px solid #f1ddda; border-radius: 7px; color: #b24e49; background: #fff8f7; font-size: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.dialog-actions .button-primary span, .receipt-done span { margin-left: 5px; font-size: 15px; }
.receipt-dialog { width: min(390px, calc(100% - 28px)); padding: 27px; }
.receipt-top { text-align: center; }
.receipt-check { width: 43px; height: 43px; display: grid; place-items: center; margin: 0 auto 13px; border: 5px solid #edf8f2; border-radius: 50%; color: #208558; background: #d6f4e5; font-size: 18px; font-weight: 800; }
.receipt-top h2 { font-size: 19px; }
.receipt-top p { margin: 5px 0 18px; color: #91a1a4; font-size: 9px; }
.receipt-lines { max-height: 200px; overflow: auto; padding: 3px 0; border-top: 1px dashed #dae4e6; border-bottom: 1px dashed #dae4e6; }
.receipt-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 1px; color: #70868c; font-size: 10px; }
.receipt-line strong { color: #385761; font-size: 10px; white-space: nowrap; }
.receipt-total { display: flex; align-items: center; justify-content: space-between; padding: 15px 1px 17px; color: #617980; font-size: 11px; }
.receipt-total strong { color: var(--ink); font-size: 19px; font-weight: 800; }
.receipt-done { width: 100%; }
.toast-region { position: fixed; z-index: 20; right: 22px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 220px; max-width: min(370px, calc(100vw - 36px)); display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #dceae3; border-radius: 9px; color: #31554a; background: #f5fbf7; box-shadow: 0 8px 30px rgba(21,62,49,.11); font-size: 10px; font-weight: 700; animation: toast-in .2s ease both; pointer-events: auto; }
.toast.error { border-color: #f0d9d7; color: #a74d49; background: #fff9f8; }
.toast-symbol { width: 19px; height: 19px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: #55a77c; font-size: 11px; }
.toast.error .toast-symbol { background: var(--red); }
.toast-link { margin-left: auto; border: 0; color: var(--deep); background: transparent; text-decoration: underline; font-size: 9px; font-weight: 800; cursor: pointer; pointer-events: auto; }
@keyframes line-in { from { opacity: .3; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1050px) {
  .sidebar { width: 190px; flex-basis: 190px; padding-inline: 12px; }
  .sale-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
  #view-kasse { padding-inline: 15px; }
  .catalog-area { padding: 19px 17px; }
  .cart-panel { padding-inline: 15px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 820px) {
  .sidebar { width: 68px; flex-basis: 68px; align-items: center; padding: 19px 8px 13px; }
  .brand { justify-content: center; padding: 0; }
  .brand-copy, .nav-caption, .nav-link > span:not(.nav-icon), .sidebar-bottom { display: none; }
  .primary-nav { width: 100%; margin-top: 38px; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-icon { font-size: 21px; }
  .topbar { padding-inline: 20px; }
  .sale-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .scanner-status { display: none; }
  .content-page { padding-inline: 24px; }
}
@media (max-width: 640px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; z-index: 4; top: 0; width: 100%; height: 57px; flex-direction: row; justify-content: space-between; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand img { width: 34px; height: 34px; }
  .brand-copy { display: flex; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .primary-nav { width: auto; display: flex; gap: 4px; margin: 0; }
  .nav-link { width: 38px; height: 37px; }
  .nav-link > span:not(.nav-icon) { display: none; }
  .topbar { min-height: 68px; gap: 8px; padding: 8px 14px; }
  .topbar h1 { font-size: 16px; }
  .topbar-title .eyebrow { font-size: 7px; }
  .topbar-actions { gap: 7px; }
  .scan-field { width: min(205px, 49vw); height: 36px; gap: 5px; padding-inline: 7px; }
  .scan-field input { font-size: 9px; }
  .scan-icon { font-size: 18px; }
  .scan-field kbd, .avatar { display: none; }
  #view-kasse { padding: 10px 10px 18px; }
  .sale-layout { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .catalog-area { min-height: 440px; padding: 15px 12px; }
  .panel-heading h2, .cart-heading h2 { font-size: 15px; }
  .muted { max-width: 200px; font-size: 9px; line-height: 1.4; }
  .button-soft { min-height: 31px; padding-inline: 8px; font-size: 9px; }
  .catalog-tools { margin: 13px 0 11px; }
  .catalog-hint { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { min-height: 100px; padding: 11px; }
  .product-price { font-size: 13px; }
  .cart-panel { min-height: 265px; max-height: 470px; padding: 15px 13px 13px; }
  .cart-lines { max-height: 185px; }
  .cart-empty { min-height: 105px; }
  .cart-footer { padding-top: 6px; }
  .app-footer { padding: 2px 13px 13px; font-size: 7px; }
  .app-footer > span:last-child { text-align: right; }
  .content-page { padding: 22px 13px; }
  .page-intro { align-items: flex-start; margin-bottom: 17px; }
  .page-intro h2 { font-size: 20px; }
  .page-intro p { max-width: 220px; font-size: 9px; line-height: 1.5; }
  .page-intro > .button { min-height: 34px; padding-inline: 9px; font-size: 9px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 550px; }
  th { padding-inline: 11px; }
  td { padding-inline: 11px; }
  .sales-total-card { min-width: 115px; padding: 9px 10px; }
  .sales-total-card strong { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .product-dialog form { padding: 20px; }
  .toast-region { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Einstellungen, Zahlarten und Gutscheinausgabe */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 265px; align-items: start; gap: 16px; }
.settings-panel { padding: 23px; }
.settings-panel-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #edf1f2; }
.settings-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--deep); background: #eaf5f1; font-size: 19px; }
.settings-panel-heading h3 { margin: 0; color: #294a54; font-size: 13px; font-weight: 800; }
.settings-panel-heading p { margin: 5px 0 0; color: #91a2a5; font-size: 9px; }
.payment-add-form { padding: 4px 0 19px; }
.payment-add-row { display: flex; gap: 8px; }
.payment-add-row .form-input { min-width: 0; flex: 1; }
.payment-add-row .button { height: 39px; }
.payment-add-row .button span { font-size: 15px; }
.payment-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 7px; border-top: 1px solid #edf1f2; color: #91a3a7; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.payment-list { display: grid; }
.payment-item { min-height: 47px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f3f4; }
.payment-item-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: #398269; background: #eaf6ef; font-size: 11px; font-weight: 800; }
.payment-item-name { flex: 1; color: #47636b; font-size: 10px; font-weight: 700; }
.table-action:disabled { opacity: .45; cursor: not-allowed; }
.settings-note { display: flex; gap: 10px; padding: 14px; border: 1px solid #e1edeb; border-radius: 12px; color: #71868a; background: #f5faf8; }
.settings-note-mark { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--deep); background: #e2f1eb; font-family: Georgia, serif; font-size: 12px; font-style: italic; font-weight: 700; }
.settings-note strong { color: #42646c; font-size: 9px; }
.settings-note p { margin: 5px 0 0; color: #8a9d9f; font-size: 9px; line-height: 1.55; }
.product-badge { display: inline-block; margin-left: 7px; padding: 2px 5px; border-radius: 4px; color: #357864; background: #eaf7f0; vertical-align: 1px; font-size: 7px; font-weight: 800; }
.type-label { color: #758a8e; font-size: 9px; }
.voucher-type { padding: 4px 7px; border-radius: 5px; color: #357864; background: #eaf7f0; font-weight: 700; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 12px; border: 1px solid #e2efea; border-radius: 8px; background: #f7fbf8; cursor: pointer; }
.checkbox-row input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--deep); }
.checkbox-row span { display: flex; flex-direction: column; gap: 3px; }
.checkbox-row strong { color: #42636a; font-size: 9px; }
.checkbox-row small { color: #92a3a5; font-size: 8px; }
.checkout-dialog { width: min(455px, calc(100% - 28px)); max-width: 455px; max-height: calc(100dvh - 36px); padding: 0; overflow: auto; border: 1px solid #e2eaec; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(17,46,54,.2); }
.checkout-dialog::backdrop { background: rgba(20, 43, 49, .34); backdrop-filter: blur(3px); }
.checkout-dialog form { padding: 23px 25px 22px; }
.checkout-dialog h2 { margin: 5px 0 0; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.55px; }
.checkout-dialog select.form-input { margin-bottom: 5px; }
.voucher-code-section { margin-top: 15px; padding: 13px; border: 1px solid #dceee4; border-radius: 10px; background: #f7fbf8; }
.voucher-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.voucher-section-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #367d62; background: #e0f4e8; font-size: 14px; }
.voucher-section-heading div { display: flex; flex-direction: column; gap: 3px; }
.voucher-section-heading strong { color: #3c6355; font-size: 9px; }
.voucher-section-heading small { color: #8ca39a; font-size: 8px; }
.voucher-code-fields { display: grid; gap: 8px; }
.voucher-code-field { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 9px; color: #627d74; font-size: 9px; font-weight: 700; }
.voucher-code-field .form-input { height: 35px; font-size: 10px; }
.checkout-dialog-total { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 13px 1px 0; border-top: 1px solid #eaf0f1; color: #607981; font-size: 10px; font-weight: 700; }
.checkout-dialog-total strong { color: var(--ink); font-size: 19px; font-weight: 800; }
.voucher-receipt-codes { margin-top: 11px; padding: 10px 11px; border: 1px solid #dceee4; border-radius: 8px; background: #f7fbf8; }
.voucher-receipt-item { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; color: #688279; font-size: 9px; }
.voucher-receipt-item strong { color: #347454; font-size: 10px; letter-spacing: .35px; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 820px) {
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-note { max-width: none; }
}
@media (max-width: 640px) {
  .settings-panel { padding: 16px 13px; }
  .settings-panel-heading { align-items: flex-start; }
  .settings-panel-heading h3 { font-size: 12px; }
  .payment-add-row .button { padding-inline: 9px; font-size: 9px; }
  .checkout-dialog form { padding: 20px; }
  .voucher-code-field { grid-template-columns: 1fr; gap: 4px; }
}

.voucher-code-list { color: #448369; font-size: 9px; font-weight: 700; overflow-wrap: anywhere; }

.voucher-redemption-section { margin-top: 15px; padding: 13px; border: 1px solid #dceee4; border-radius: 10px; background: #f7fbf8; }
.voucher-redeem-input-row { display: flex; gap: 7px; }
.voucher-redeem-input-row .form-input { min-width: 0; flex: 1; }
.voucher-redeem-input-row .button { min-height: 35px; padding-inline: 10px; font-size: 9px; }
.voucher-balance-status { margin-top: 8px; padding: 8px 9px; border-radius: 7px; color: #426d59; background: #eaf6ef; font-size: 9px; line-height: 1.5; }
.voucher-balance-status.is-error { color: #a74d49; background: #fff1ef; }
.voucher-balance-status.is-success { color: #347454; background: #eaf6ef; }
.checkout-split { margin-top: 10px; padding-top: 10px; border-top: 1px solid #deebe4; }
.split-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-amounts > div { display: flex; flex-direction: column; gap: 4px; }
.split-amounts span { color: #82978d; font-size: 8px; font-weight: 700; }
.split-amounts strong { color: #365d4b; font-size: 12px; }
#remainder-payment-wrap { margin-top: 7px; }
.voucher-redemption-receipt { margin-top: 10px; padding: 10px 11px; border: 1px solid #dceee4; border-radius: 8px; background: #f7fbf8; }
.voucher-redemption-receipt-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voucher-redemption-receipt-item > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.voucher-redemption-receipt-item strong { color: #3c6355; font-size: 9px; }
.voucher-redemption-receipt-item small { color: #7d9489; font-size: 8px; overflow-wrap: anywhere; }
.voucher-redemption-receipt-item > span { flex: 0 0 auto; color: #347454; font-size: 11px; font-weight: 800; }
