:root {
  --app-bg: #f4f6f4;
  --app-panel: #ffffff;
  --app-ink: #18211f;
  --app-muted: #6b756f;
  --app-line: #dfe5e1;
  --app-accent: #7c6aa8;
  --app-accent-2: #4f8a80;
  --app-danger: #b83232;
  --app-radius: 8px;
}

* {
  letter-spacing: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #ededed;
  color: var(--app-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

img,
video {
  height: auto;
}

form {
  margin: 0;
}

label {
  font-weight: 700;
}

textarea.form-control {
  min-height: 96px;
}

.form-control,
.form-select,
.btn {
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: normal;
  line-height: 1.2;
}

.btn-sm {
  gap: 4px;
}

.close {
  border: 0;
  background: transparent;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.close:hover {
  color: #000;
}

.input-group-prepend,
.input-group-append {
  display: flex;
}

.table-responsive,
.report-table-wrap {
  -webkit-overflow-scrolling: touch;
}

.table td,
.table th {
  vertical-align: middle;
}

/* Compatibility for older Bootstrap 4 class names still used by legacy views. */
.float-right {
  float: right !important;
}

.float-left {
  float: left !important;
}

.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }

.app-navbar {
  background: #f3effa;
  border-bottom: 1px solid #d9d0ea;
  box-shadow: 0 8px 22px rgba(73, 62, 105, 0.08);
  min-height: 42px;
  padding: 3px 0;
}

.app-navbar .nav-link,
.app-navbar .navbar-brand,
.app-navbar .btn {
  color: #4c416d;
  font-weight: 800;
}

.app-navbar .nav-link:hover,
.app-navbar .navbar-brand:hover,
.app-navbar .dropdown-toggle.show {
  color: #7460a8;
}

.app-navbar .btn-outline-dark {
  border-color: #b9aed2;
  color: #4c416d;
}

.app-navbar .btn-outline-dark:hover {
  background: #7c6aa8;
  border-color: #7c6aa8;
  color: #fff;
}

.app-navbar .navbar-toggler {
  border-color: #c7bddc;
}

.app-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876, 65, 109, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand strong,
.navbar-brand small {
  display: block;
  line-height: 1.05;
}

.navbar-brand small {
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #d8cff0;
  border: 1px solid #c6b9e6;
  color: #5b4b80;
}

.brand-mark-lg {
  width: 54px;
  height: 54px;
  font-size: 1.4rem;
}

.app-shell {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 14px 18px;
}

body:has(.pos-screen) {
  overflow: hidden;
}

.app-shell:has(.pos-screen) {
  width: 100%;
  height: calc(100vh - 67px);
  max-width: none;
  padding: 0 20px 10px;
  overflow: hidden;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 33, 31, 0.78), rgba(24, 33, 31, 0.2)),
    url("../image/resim.jpg") center / cover no-repeat fixed;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 430px);
  margin-left: clamp(0px, 8vw, 110px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--app-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.register-panel {
  width: min(100%, 560px);
}

.login-toplink {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.login-toplink a {
  color: var(--app-accent);
  font-weight: 800;
  text-decoration: none;
}

.login-toplink a:hover {
  text-decoration: underline;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-brand h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.login-brand p {
  margin: 4px 0 0;
  color: var(--app-muted);
}

.login-form .form-control {
  display: block;
  width: 100%;
  border-color: var(--app-line);
  border-radius: var(--app-radius);
}

.login-form .form-label {
  display: block;
  margin-bottom: 6px;
}

.login-form .btn {
  min-height: 48px;
}

.h404,
.error-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 32px 16px;
  text-align: center;
}

.h404 img,
.error-page img {
  max-width: min(420px, 90vw);
}

.h404 h1,
.error-page h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.2vw, 2.3rem);
  font-weight: 900;
}

.page-band {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  box-shadow: 0 10px 28px rgba(24, 33, 31, 0.06);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-line);
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 12px;
  padding: 16px;
}

.table-button {
  min-height: 104px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
  color: var(--app-ink);
  display: grid;
  place-items: center;
  gap: 6px;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.table-button:hover {
  transform: translateY(-2px);
  border-color: var(--app-accent);
  box-shadow: 0 12px 26px rgba(31, 122, 91, 0.12);
}

.table-button.is-busy {
  background: #fff5f3;
  border-color: #ecc3ba;
  color: var(--app-danger);
}

.table-button i {
  font-size: 1.7rem;
}

.table-state {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--app-muted);
}

.work-surface {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 16px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.liste {
  font-size: 0.86rem;
  min-height: 340px;
  max-height: 52vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.yemekBtn,
.category-button {
  min-height: 72px;
  border-radius: var(--app-radius);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.product-button {
  min-height: 84px;
  white-space: normal;
  border-radius: var(--app-radius);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.summary-box {
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.summary-box span {
  display: block;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.report-page {
  display: grid;
  gap: 14px;
}

.report-filter {
  display: grid;
  grid-template-columns: 220px 220px 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
}

.page-band .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.page-band .form-label,
.report-filter .form-label {
  margin-bottom: 5px;
}

.report-filter label {
  display: block;
  margin-bottom: 4px;
  color: #5f6864;
  font-weight: 800;
  font-size: 0.82rem;
}

.report-title {
  display: grid;
  justify-items: end;
  align-self: center;
}

.report-title strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.report-title span {
  color: var(--app-muted);
  font-weight: 700;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.report-summary > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
}

.report-summary span {
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-summary strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.report-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
}

.report-table-wrap {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
}

.report-section-title {
  padding: 12px 14px;
  border-bottom: 1px solid var(--app-line);
  font-weight: 900;
}

.report-table {
  margin: 0;
  font-size: 0.9rem;
}

.report-table thead,
.report-table tfoot {
  background: #f2f4f2;
}

.report-table th {
  white-space: nowrap;
  font-weight: 900;
}

.report-table td {
  white-space: nowrap;
}

.user-action-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 250px;
}

.user-password-form,
.user-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.user-password-form .form-control {
  width: 132px;
}

.branch-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f8f7fb;
  border-top: 1px solid var(--app-line);
}

.branch-edit-grid label {
  display: grid;
  gap: 5px;
}

.branch-edit-grid label span {
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.branch-edit-wide {
  grid-column: span 3;
}

.branch-edit-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}

.report-badge {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
}

.report-badge.is-closed {
  background: #d9f0dc;
  color: #10671b;
}

.report-badge.is-open {
  background: #fff1c7;
  color: #8a5b00;
}

.radius5 {
  border-radius: var(--app-radius);
}

.modal-content,
.card,
.btn,
.form-control,
.input-group-text,
.dropdown-menu {
  border-radius: var(--app-radius);
}

.table {
  vertical-align: middle;
}

.tt-menu,
.tt-dropdown-menu {
  width: 100%;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  box-shadow: 0 12px 28px rgba(24, 33, 31, 0.12);
  padding: 8px 0;
}

.tt-suggestion {
  padding: 8px 14px;
}

.tt-suggestion:hover {
  cursor: pointer;
  background: var(--app-accent);
  color: #fff;
}

@media (max-width: 992px) {
  .app-shell {
    padding: 12px;
  }

  .work-surface {
    grid-template-columns: 1fr;
  }

  .login-panel {
    margin: 0 auto;
  }

  .report-filter,
  .report-split {
    grid-template-columns: 1fr;
  }

  .branch-edit-grid {
    grid-template-columns: 1fr;
  }

  .branch-edit-wide {
    grid-column: auto;
  }

  .report-title {
    justify-items: start;
  }
}

/* POS screens */
.pos-screen {
  background: #f8f8f8;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pos-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
}

.pos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pos-tab {
  min-width: 86px;
  height: 44px;
  border: 1px solid #c9c9c9;
  background: linear-gradient(#fff, #e9e9e9);
  color: #333;
  font-weight: 700;
  border-radius: 3px;
}

.pos-tab:hover {
  background: #f4c431;
}

.pos-tab.is-active {
  background: #f4c431;
  border-color: #d79d00;
  color: #111;
}

.pos-merge-button {
  min-width: 210px;
  height: 44px;
  border: 0;
  background: #d5e53f;
  color: #1d2711;
  font-weight: 900;
  border-radius: 5px;
}

.pos-table-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(86px, 1fr));
  gap: 7px;
  height: calc(100% - 116px);
  overflow: auto;
  padding: 10px 14px 14px;
  align-content: start;
}

.pos-table-tile {
  min-height: 108px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, filter 0.12s ease, background 0.18s ease;
}

.pos-table-tile:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.pos-table-tile.is-empty {
  background: #008a08;
}

.pos-table-tile.is-empty:hover {
  background: #00a60c;
}

.pos-table-tile.is-busy {
  background: #f51017;
}

.pos-table-tile.is-payment {
  background: #061bf4;
}

.pos-table-name {
  font-size: 1.1rem;
}

.pos-table-meta {
  font-size: 0.8rem;
  line-height: 1.2;
}

.pos-statusbar {
  min-height: 48px;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 9px 18px;
  background: #252525;
  color: #f4c431;
  font-weight: 800;
}

.pos-order-screen,
.pos-payment-screen {
  display: grid;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.pos-order-screen {
  grid-template-columns: 410px minmax(520px, 1fr) 188px;
}

.pos-payment-screen {
  grid-template-columns: 330px 240px minmax(430px, 1fr);
}

.pos-ticket,
.pos-product-panel,
.pos-category-panel,
.pos-payment-center,
.pos-payment-actions {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pos-ticket {
  background: #fff;
  border-right: 1px solid #ddd;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.pos-customer-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  color: #202020;
  font-size: 1.25rem;
}

.pos-customer-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.pos-customer-button:hover .pos-plus {
  background: #d5df31;
  color: #172300;
}

.pos-customer-button strong,
.pos-customer-button small {
  display: block;
  line-height: 1.15;
}

.pos-customer-button small {
  margin-top: 5px;
  color: #777;
  font-size: 0.8rem;
  font-weight: 700;
}

.pos-clear-customer {
  width: 100%;
  min-height: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-weight: 800;
}

.pos-clear-customer:hover {
  border-color: #ef4d57;
  color: #ef4d57;
}

.pos-plus {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeeeee;
  color: #fff;
  font-size: 2rem;
}

.pos-table-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.pos-table-info > div {
  border-right: 1px solid #ddd;
  padding: 0 10px;
}

.pos-table-info > div:last-child {
  border-right: 0;
}

.pos-table-info span {
  display: block;
  color: #c8c8c8;
  font-weight: 700;
  font-size: 0.83rem;
}

.pos-table-info strong {
  display: block;
  margin-top: 7px;
  font-size: 1.15rem;
}

.pos-action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pos-small-action {
  min-height: 36px;
  border: 0;
  border-radius: 3px;
  background: #d5df31;
  color: #333;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
}

.pos-ticket-list {
  min-height: 0;
  flex: 1;
  overflow: auto;
  border: 1px solid #ddd;
}

.pos-ticket-list thead {
  background: #d8d8d8;
}

.pos-ticket-list tbody tr:nth-child(even) {
  background: #f0f0f0;
}

.pos-ticket-total {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 1.25rem;
}

.pos-product-panel {
  min-height: 0;
  padding: 14px 0 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.pos-product-header {
  display: grid;
  grid-template-columns: minmax(200px, 320px) auto;
  gap: 12px;
  align-items: center;
}

.pos-product-header strong {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  font-size: 1.05rem;
}

.pos-product-header span {
  color: #666;
  font-weight: 800;
}

.pos-product-scroll {
  overflow-y: auto;
  padding-right: 4px;
  min-height: 0;
}

.pos-product-section {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
  margin-bottom: 7px;
}

.pos-product-section.is-active {
  display: grid;
}

.pos-empty-products {
  min-height: 90px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #ddd;
  color: #777;
  font-weight: 800;
}

.pos-product-tile {
  width: 100%;
  min-height: 88px;
  border: 0;
  border-radius: 4px;
  background: #addff0;
  color: #2c4b55;
  font-weight: 800;
  line-height: 1.1;
  padding: 8px;
}

.pos-product-tile:hover {
  background: #469abd;
  color: #fff;
}

.pos-product-tile small {
  display: block;
  margin-top: 5px;
}

.pos-category-panel {
  padding: 14px 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-left: 1px solid #e0e0e0;
  min-height: 0;
  overflow: hidden;
}

.pos-category-button {
  min-height: 60px;
  display: grid;
  place-items: center;
  background: #f5bd20;
  color: #3b2b00;
  border: 0;
  border-radius: 5px;
  font-weight: 900;
  text-decoration: none;
}

.pos-category-button:hover {
  background: #ffd14b;
  color: #111;
}

.pos-category-button.is-active {
  background: #d5df31;
  color: #172300;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.pos-bottom-actions,
.pos-payment-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-bottom: 0;
}

.pos-payment-bottom {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pos-bottom-actions > *,
.pos-payment-bottom > * {
  min-width: 0;
}

.pos-danger-action,
.pos-back-action,
.pos-print-action,
.pos-pay-action,
.pos-finish-action {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.pos-danger-action {
  background: #ef4d57;
}

.pos-back-action {
  background: #252525;
  color: #f4c431;
}

.pos-print-action {
  background: #f5c744;
  color: #2b2b2b;
}

.pos-pay-action {
  background: #a8cf2b;
  color: #172300;
}

.pos-finish-action {
  background: #252525;
  color: #f4c431;
}

.pos-change-text {
  color: #b83232;
}

.pos-payment-center {
  padding: 18px 0;
  min-height: 0;
  overflow: auto;
}

.pos-amount-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
}

.pos-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.pos-amount-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  color: #777;
  font-size: 0.86rem;
}

.pos-keypad {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.pos-key {
  min-height: 56px;
  border: 0;
  border-radius: 4px;
  background: #addff0;
  color: #24424c;
  font-size: 1.35rem;
}

.pos-key.is-clear {
  background: #a8cf2b;
  color: #172300;
  font-weight: 900;
}

.pos-payment-actions {
  padding: 14px 18px 14px 0;
  overflow: auto;
}

.pos-payment-methods,
.pos-discount-grid,
.pos-payment-tools {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.pos-payment-methods {
  grid-template-columns: repeat(4, minmax(82px, 1fr));
}

.pos-pay-method {
  min-height: 58px;
  border: 0;
  border-radius: 4px;
  background: #addff0;
  color: #263f47;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.pos-pay-method.is-active,
.pos-payment-tools button.is-active {
  background: #a8cf2b;
  color: #172300;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.pos-payment-mode-label {
  display: block;
  margin-top: 6px;
  color: #5f6a35;
  font-size: 0.8rem;
  font-weight: 900;
}

#paymentAmount.is-active {
  border-color: #a8cf2b;
  box-shadow: 0 0 0 0.18rem rgba(168, 207, 43, 0.18);
}

.pos-discount-grid {
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  border-top: 1px solid #ddd;
  padding-top: 14px;
}

.pos-discount-grid button {
  min-height: 52px;
  border: 0;
  border-radius: 4px;
  background: #e9e9e9;
  font-weight: 900;
}

.pos-discount-grid button:hover,
.pos-payment-tools button:hover,
.pos-key:hover {
  filter: brightness(0.96);
}

.pos-payment-tools {
  grid-template-columns: repeat(5, minmax(66px, 1fr));
  border-top: 1px solid #ddd;
  padding-top: 12px;
}

.pos-payment-tools button {
  min-height: 54px;
  border: 0;
  border-radius: 4px;
  background: #addff0;
  font-weight: 900;
}

.pos-paid-list {
  margin-top: 14px;
  max-height: 122px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
}

.receipt-print {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }

  #receiptPrintArea,
  #receiptPrintArea * {
    visibility: visible;
  }

  #receiptPrintArea {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    width: 80mm;
    padding: 0;
    color: #000;
    background: #fff;
  }

  .receipt-paper {
    width: 80mm;
    padding: 8mm 5mm;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 12px;
  }

  .receipt-paper h1 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
  }

  .receipt-paper p {
    margin: 4px 0 10px;
    text-align: center;
  }

  .receipt-meta,
  .receipt-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    padding: 8px 0;
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
  }

  .receipt-paper table {
    width: 100%;
    margin: 8px 0;
    border-collapse: collapse;
  }

  .receipt-paper th,
  .receipt-paper td {
    padding: 4px 0;
    border-bottom: 1px dotted #999;
  }

  .receipt-paper th:nth-child(2),
  .receipt-paper td:nth-child(2) {
    text-align: center;
  }

  .receipt-paper th:last-child,
  .receipt-paper td:last-child {
    text-align: right;
  }

  .receipt-thanks {
    border-top: 1px dashed #000;
    padding-top: 8px;
    font-weight: 800;
  }
}

@media (max-width: 1200px) {
  .pos-table-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  .pos-order-screen,
  .pos-payment-screen {
    grid-template-columns: 1fr;
  }

  .pos-ticket,
  .pos-product-panel,
  .pos-category-panel,
  .pos-payment-center,
  .pos-payment-actions {
    min-height: auto;
  }

  .pos-category-panel {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    border-left: 0;
  }
}
