/* Enterprise workspace theme. Fonts, icons and assets are served locally. */
:root {
  --blue: #295fe8;
  --line: #e3e8f0;
  --muted: #758197;
  color: #1b2b43;
  background: #f4f6fa;
  font-size: 14px;
}
body {
  letter-spacing: -0.12px;
}
button {
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
input,
select {
  min-height: 43px;
  border-color: #dce3ed;
  border-radius: 7px;
  box-shadow: 0 1px 2px #182b4b03;
}
input::placeholder {
  color: #a0aabd;
}
input:focus,
select:focus {
  outline: 3px solid #295fe818;
  border-color: #799bf2;
}
label {
  font-size: 12px;
  line-height: 1.5;
  color: #516079;
  font-weight: 600;
}
button {
  border-radius: 7px;
  padding: 11px 18px;
  font-size: 12px;
  line-height: 1.5;
}
button.secondary {
  background: #fff;
  color: #53637e;
  border: 1px solid #dce3ed;
}
.mark {
  background: #295fe8;
  box-shadow: 0 4px 12px #0b1f4e18;
  font-size: 16px;
}
.sidebar {
  width: 246px;
  background: #111f35;
  border-right: 0;
  padding: 30px 17px;
  color: #eaf0fb;
}
.brand {
  font-size: 21px;
  color: #f1f5ff;
  margin: 0 10px 40px;
  gap: 12px;
}
.brand .mark {
  width: 37px;
  height: 37px;
}
.brand b {
  color: #a9c1ff;
  background: #273b5b;
  font-size: 9px;
  padding: 4px 6px;
}
.brand small {
  color: #7386a4;
  font-size: 8px;
  letter-spacing: 1.7px;
}
.nav-label {
  color: #687d9c;
  font-size: 9px;
  margin-bottom: 13px;
  letter-spacing: 1.8px;
}
nav {
  gap: 6px;
}
nav button {
  position: relative;
  gap: 13px;
  padding: 13px 15px;
  color: #96a8c3;
  font-size: 12px;
  border-radius: 7px;
  min-height: 45px;
}
nav button:hover {
  background: #1b2b45;
  color: #dce6fb;
}
nav button.active {
  background: #233b63;
  color: #e6efff;
  box-shadow: inset 3px 0 #79a1ff;
}
.nav-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
}
.nav-icon svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  border-top: 1px solid #26334a;
  color: #8b9db9;
  padding: 20px 11px 0;
  font-size: 10px;
}
.sidebar-bottom .text-button {
  color: #b5c2d7;
  margin-top: 10px;
  font-size: 11px;
}
.main {
  margin-left: 246px;
}
header {
  height: 102px;
  padding: 21px 36px;
  background: #fff;
  box-shadow: 0 1px 4px #243b5a03;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #8692a7;
}
.context {
  gap: 13px;
  margin-top: 8px;
}
.context label {
  font-size: 10px;
  color: #8d99ac;
  font-weight: 500;
  gap: 10px;
}
.context select {
  min-height: 30px;
  border: 1px solid #e8ecf3;
  border-radius: 5px;
  padding: 4px 23px 4px 9px;
  font-size: 12px;
  color: #374c6c;
  background: #fafbfd;
  max-width: 235px;
}
.divider {
  color: #d3dae7;
}
.profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6d89;
}
.profile:before {
  content: "";
  display: block;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 8px solid #eef3fd;
  background: #a9bff0;
}
main {
  padding: 34px 36px 45px;
  max-width: 1600px;
  margin: auto;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  line-height: 1.25;
  color: #1b2a42;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-weight: 600;
}
.page-heading {
  margin-bottom: 27px;
  gap: 20px;
}
.page-heading p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.55px;
  border-radius: 5px;
  padding: 7px 10px;
  background: #edf3ff;
  color: #6181bc;
  border: 1px solid #e0e9fb;
  white-space: nowrap;
}
.grid {
  gap: 19px;
}
.card {
  padding: 25px;
  border-radius: 10px;
  border-color: #e1e7f0;
  box-shadow: 0 3px 10px #1b365c03;
}
.card > .eyebrow {
  color: #7c8aa2;
  font-size: 9px;
}
.card .metric {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 12px 0 5px;
}
.card p {
  line-height: 1.7;
}
.section {
  margin-top: 23px;
}
.section-title {
  margin-bottom: 20px;
}
.section-title > .muted {
  font-size: 10px;
}
.table-wrap {
  margin: 0 -25px -10px;
}
table {
  font-size: 12px;
}
th {
  padding: 13px 25px;
  font-size: 9px;
  font-weight: 650;
  color: #8995a8;
  background: #f8fafd;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
}
td {
  padding: 16px 25px;
  color: #52647f;
}
td:first-child {
  font-weight: 600;
  color: #304562;
}
.empty {
  padding: 42px 20px;
  font-size: 12px;
  line-height: 1.8;
}
.note {
  padding: 14px 16px;
  background: #f6f8fc;
  border-color: #e8edf5;
  color: #8490a6 !important;
  border-radius: 7px;
  font-size: 10px !important;
}
.module-list {
  gap: 9px;
}
.industry {
  min-height: 115px;
}
.industry h3 {
  font-size: 13px;
}
.industry p {
  font-size: 10px;
}
.industry input {
  min-height: 18px;
}
.split {
  gap: 23px;
  grid-template-columns: minmax(0, 1fr) 335px;
}
.product-grid {
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-tile {
  padding: 15px;
  border-color: #e3e9f2;
  border-radius: 9px;
}
.product-tile:hover {
  border-color: #a4bdf5;
  box-shadow: 0 3px 14px #295fe80b;
}
.product-tile .tile-art {
  height: 80px;
  background: #f4f7fc;
  color: #a1b5d5;
  font-size: 27px;
}
.product-tile strong {
  color: #354967;
  font-size: 12px;
}
.product-tile small {
  font-size: 10px;
}
.price {
  font-size: 13px;
}
.cart {
  align-self: start;
  position: sticky;
  top: 24px;
}
.cart .section-title h2 {
  font-size: 16px;
}
.cart-line {
  font-size: 11px;
}
.cart-line p {
  font-size: 10px;
  margin: 5px 0 0;
}
.cart-total {
  font-size: 16px;
}
.cart .text-button {
  font-size: 10px;
  color: #90a0ba;
}
.cart-line button {
  margin-left: 7px;
  border-radius: 4px;
}
.cart .checkout {
  min-height: 43px;
}
.toolbar {
  margin-bottom: 20px;
}
.toolbar label {
  font-size: 11px;
}
footer {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9aa7bc;
  padding: 17px 36px;
  background: #f4f6fa;
}
footer span {
  font-size: 9px;
  color: #98a6b9;
}
#notice:not(:empty) {
  font-size: 12px;
  border-radius: 7px;
  background: #edf4ff;
  padding: 13px 17px;
  border-color: #dce8fb;
  margin-bottom: 22px;
}
.forms {
  margin-top: 20px;
}
/* The same real form controls are used in both modes: values never move to a separate draft. */
.form-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin: 14px 0 0;
  border-top: 1px solid #edf0f5;
}
.form-mode-caption {
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 650;
  color: #909db1;
}
.mode-switch {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: #f0f3f8;
  border: 1px solid #e5eaf2;
  border-radius: 7px;
}
.mode-switch button {
  padding: 6px 15px;
  background: transparent;
  color: #8b97a9;
  font-size: 11px;
  min-width: 75px;
  box-shadow: none;
}
.mode-switch button[aria-pressed="true"] {
  color: #325eaf;
  background: white;
  box-shadow: 0 1px 4px #162c4d13;
}
form[data-enhanced] {
  display: block;
  margin-top: 0;
}
.workflow-step {
  padding: 0;
  border: 0;
  min-width: 0;
  margin: 6px 0 24px;
}
.workflow-step legend {
  font-size: 12px;
  color: #3f5474;
  font-weight: 650;
  margin-bottom: 17px;
  width: 100%;
  padding: 4px 0 12px;
  border-bottom: 1px solid #edf0f5;
}
.workflow-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px 22px;
}
.workflow-fields input,
.workflow-fields select {
  font-size: 12px;
}
.workflow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 19px;
  border-top: 1px solid #edf0f5;
}
.workflow-actions button {
  min-width: 110px;
}
.workflow-actions button.secondary {
  margin-right: auto;
}
.wizard-progress {
  display: flex;
  list-style: none;
  padding: 20px 0 22px;
  margin: 0;
  gap: 17px;
}
.wizard-progress li {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #9ba6b7;
  flex: 1;
}
.wizard-progress li:not(:last-child):after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3e9f2;
  margin-left: 6px;
}
.step-number {
  border: 1px solid #dfe6f0;
  background: #f9fbfe;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 650;
  flex-shrink: 0;
}
.wizard-progress .current {
  color: #3e64a9;
  font-weight: 650;
}
.wizard-progress .current .step-number {
  color: #fff;
  background: #3567df;
  border-color: #3567df;
  box-shadow: 0 0 0 4px #eff4ff;
}
.wizard-progress .complete .step-number {
  color: #3c7f6d;
  background: #ecf7f3;
  border-color: #d5ece3;
}
.wizard-status {
  font-size: 11px;
  color: #7c8ca5;
  margin: 0 0 17px;
}
.review-list {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2fr;
  font-size: 12px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  overflow: hidden;
}
.review-list dt,
.review-list dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f6;
  overflow-wrap: anywhere;
}
.review-list dt {
  background: #f9fbfe;
  color: #8b99ad;
  font-size: 11px;
}
.review-list dd {
  color: #394f6f;
  font-weight: 500;
}
.review-list dt:nth-last-child(2),
.review-list dd:last-child {
  border-bottom: 0;
}
form[aria-busy="true"] {
  opacity: 0.65;
  pointer-events: none;
}
.workflow-review > .muted {
  font-size: 12px;
}
/* Sign-in */
.login {
  background: #fff;
  grid-template-columns: 1fr 1fr;
}
.login-card {
  max-width: 450px;
  padding: 52px 40px;
}
.login-card > .mark {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  margin-bottom: 38px;
}
.login-card > .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8695ae;
  margin-bottom: 17px;
}
.login h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1.3px;
  margin-bottom: 18px;
}
.login-card > .muted {
  font-size: 12px;
  line-height: 1.8;
  max-width: 330px;
  color: #8592a6;
}
.login form {
  margin-top: 31px;
  gap: 20px;
}
.login form label {
  font-size: 11px;
}
.login form input {
  min-height: 47px;
  font-size: 13px;
  margin-top: 2px;
}
.login form button {
  margin-top: 7px;
  min-height: 46px;
  font-size: 12px;
  box-shadow: 0 4px 10px #295fe815;
}
.login-aside {
  position: relative;
  overflow: hidden;
  background: #13233d;
  padding: 85px 70px;
  color: white;
}
.login-aside:before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #304568;
  border-radius: 50%;
  right: -245px;
  top: -180px;
  box-shadow:
    0 0 0 70px #ffffff02,
    0 0 0 140px #ffffff02;
  pointer-events: none;
}
.login-aside > .eyebrow {
  color: #849bc0;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.login-aside h2 {
  font-size: 46px;
  line-height: 1.23;
  letter-spacing: -1.6px;
  font-weight: 550;
  max-width: 420px;
  margin-bottom: 23px;
  color: #f3f7ff;
}
.login-aside > p {
  font-size: 12px;
  color: #92a6c5;
  line-height: 1.9;
  max-width: 310px;
}
.login-workflow {
  margin-top: 31px;
  display: grid;
  gap: 20px;
}
.login-workflow > div {
  display: grid;
  grid-template-columns: 33px 1fr;
  column-gap: 15px;
  align-items: center;
}
.login-workflow span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #354866;
  border-radius: 8px;
  font-size: 9px;
  color: #8ca9d7;
  background: #1d304e;
}
.login-workflow strong {
  font-size: 11px;
  color: #c4d2e8;
  font-weight: 550;
  line-height: 1.7;
}
.login-workflow small {
  font-size: 10px;
  color: #6f88ac;
}
.login-aside-footer {
  position: absolute;
  bottom: 28px;
  left: 70px;
  right: 40px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #617b9f;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.login-aside-footer span {
  letter-spacing: 0;
  color: #7790b3;
}
@media (min-width: 1650px) {
  .login-aside {
    padding-left: 100px;
  }
  .login-aside-footer {
    left: 100px;
  }
}
@media (max-width: 1200px) {
  .workflow-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    width: 216px;
  }
  .main {
    margin-left: 216px;
  }
  main {
    padding: 28px;
  }
  .login-aside {
    padding: 75px 45px;
  }
  .login-aside h2 {
    font-size: 39px;
  }
  .login-aside-footer {
    left: 45px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .login-aside {
    padding: 60px 35px;
  }
  .login-aside-footer {
    left: 35px;
  }
  .login-aside-footer span {
    display: none;
  }
  .login-card {
    padding: 40px 30px;
  }
  .login h1 {
    font-size: 30px;
  }
  .wizard-progress {
    gap: 10px;
  }
  .wizard-progress li {
    font-size: 9px;
    gap: 7px;
  }
  .wizard-progress li:after {
    display: none;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px;
  }
  .main {
    margin-left: 0;
  }
  .brand {
    margin: 0 0 15px;
    font-size: 19px;
  }
  .brand .mark {
    width: 33px;
    height: 33px;
  }
  .sidebar nav {
    gap: 6px;
    padding-bottom: 2px;
  }
  .sidebar nav button {
    min-height: 35px;
    padding: 8px 12px;
    font-size: 10px;
  }
  .sidebar nav button.active {
    box-shadow: none;
  }
  .nav-icon {
    display: none;
  }
  .sidebar-bottom,
  .nav-label {
    display: none;
  }
  header {
    height: auto;
    padding: 17px;
  }
  .context {
    gap: 5px;
  }
  .context label {
    font-size: 9px;
    gap: 5px;
  }
  .context select {
    font-size: 10px;
    max-width: 135px;
    min-height: 31px;
    padding: 5px;
  }
  .profile {
    display: none;
  }
  main {
    padding: 23px 16px 32px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .card {
    padding: 20px;
  }
  .table-wrap {
    margin: 0 -20px -8px;
  }
  th,
  td {
    padding-left: 20px;
    padding-right: 20px;
  }
  .workflow-fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .wizard-progress {
    flex-wrap: wrap;
    gap: 13px;
    padding-top: 15px;
  }
  .wizard-progress li {
    flex: none;
    font-size: 9px;
  }
  .step-number {
    width: 23px;
    height: 23px;
  }
  .review-list {
    grid-template-columns: 1fr 1.5fr;
    font-size: 11px;
  }
  .review-list dd,
  .review-list dt {
    padding: 11px;
  }
  .workflow-actions button {
    min-width: 95px;
  }
  .form-mode-caption {
    font-size: 8px;
  }
  .mode-switch button {
    min-width: 66px;
    padding: 6px 12px;
  }
  .login {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .login-card {
    padding: 40px 30px;
    max-width: 420px;
  }
  .login-aside {
    display: none;
  }
  .login h1 {
    font-size: 34px;
  }
  .login-card > .mark {
    margin-bottom: 34px;
  }
  .product-grid {
    gap: 12px;
  }
  .product-tile {
    padding: 12px;
  }
  .product-tile .tile-art {
    height: 66px;
  }
  .grid {
    gap: 15px;
  }
  .section {
    margin-top: 18px;
  }
  footer {
    padding: 16px;
    font-size: 7px;
  }
  footer span {
    max-width: 180px;
    font-size: 8px;
    text-align: right;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
}

.mobile-logout {
  display: none;
}
@media (max-width: 720px) {
  .mobile-logout {
    display: block;
    font-size: 10px;
    padding: 6px 9px;
    margin-left: 10px;
    white-space: nowrap;
  }
  header > div:first-child {
    min-width: 0;
  }
  .context {
    flex-wrap: wrap;
  }
}
/* Package roadmap and configuration hub; no browser-side entitlement enforcement. */
.package-tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.package-tiers .module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.configuration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.config-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.config-tile .section-title {
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.config-tile h3 {
  margin: 0;
}
.config-tile p {
  margin: 0;
  flex: 1;
}
.config-tile button {
  align-self: flex-start;
}
.badge.planned {
  background: #f1f5f9;
  color: #64748b;
}
.package-tiers ~ section td {
  white-space: normal;
  min-width: 180px;
  vertical-align: top;
}
.package-tiers ~ section th {
  min-width: 180px;
}
@media (max-width: 800px) {
  .package-tiers,
  .configuration-grid {
    grid-template-columns: 1fr;
  }
}
#register-takeover {
  background: #fff;
  color: #17243c;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 28px;
  max-width: min(480px, 92vw);
}
#register-takeover::backdrop {
  background: #0b1324aa;
}
#register-takeover-seconds {
  font-size: 28px;
}
#register-takeover-error {
  color: #b91c1c;
}
/* High-density terminal: reusable exact-cent calculations, no financial posting. */
.pos-terminal {
  font-variant-numeric: tabular-nums;
}
.terminal-tools {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.scan-control {
  flex: 1;
  min-width: 220px;
}
.scan-control input {
  width: 100%;
  margin: 6px 0 0;
}
.terminal-modes {
  display: flex;
  gap: 6px;
}
.terminal-modes button[aria-pressed="true"],
.terminal-categories button[aria-pressed="true"] {
  background: #e8efff;
  color: #2456c4;
  border-color: #9eb8f4;
}
.terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}
.terminal-work {
  min-width: 0;
}
.terminal-categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 0 0 14px;
}
.terminal-categories button {
  white-space: nowrap;
  padding: 9px 12px;
  font-size: 12px;
}
.terminal-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding: 2px 2px 14px;
}
.terminal-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  background: #fff;
  color: #17243c;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}
.terminal-product:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.terminal-product:hover:enabled {
  border-color: #739df0;
  background: #f8faff;
}
.terminal-product strong {
  display: block;
  font-size: 13px;
}
.terminal-product small {
  display: block;
  font-size: 10px;
  color: #64748b;
  overflow-wrap: anywhere;
}
.terminal-product b {
  font-size: 16px;
}
.product-art {
  display: grid;
  place-items: center;
  min-height: 64px;
  background: #edf3ff;
  border-radius: 8px;
  color: #426ac3;
  font-size: 24px;
  font-weight: 700;
}
.stock-pill {
  font-size: 10px;
  border-radius: 5px;
  background: #eef2f7;
  color: #64748b;
  padding: 5px;
}
.stock-pill.in {
  background: #e7f7ee;
  color: #067047;
}
.stock-pill.low {
  background: #fff3da;
  color: #92520e;
}
.stock-pill.out {
  background: #feecec;
  color: #aa2020;
}
.terminal-lines {
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 12px;
  padding: 16px;
}
.terminal-ledger {
  min-width: 900px;
  font-size: 12px;
}
.terminal-ledger td {
  vertical-align: top;
  padding: 10px;
}
.terminal-ledger input,
.terminal-ledger select {
  padding: 7px;
  margin: 0;
  min-width: 70px;
  max-width: 130px;
}
.terminal-ledger button {
  padding: 6px 9px;
  font-size: 12px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 3px;
}
.quantity-control input {
  width: 75px;
}
.bottle-returns {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 10px;
}
.bottle-returns input {
  display: block;
  width: 65px;
}
.terminal-checkout {
  align-self: start;
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  padding: 22px;
}
.terminal-checkout h2 {
  margin: 8px 0 20px;
}
.terminal-checkout dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
}
.terminal-checkout dd {
  margin: 0;
  font-weight: 650;
}
.terminal-checkout dl > div:last-child {
  border-top: 1px solid #e2e8f0;
  padding-top: 18px;
  font-size: 21px;
  font-weight: 750;
}
.terminal-checkout label {
  font-size: 11px;
  margin-top: 12px;
  display: block;
}
.terminal-checkout input {
  width: 100%;
  margin: 6px 0;
}
.terminal-tenders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.terminal-tenders button {
  padding: 10px 4px;
  font-size: 11px;
}
.terminal-change {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #eaf6f0;
  color: #085f3d;
  border-radius: 8px;
  margin-top: 16px;
}
.terminal-change strong {
  font-size: 20px;
}
.terminal-actions {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.terminal-actions button {
  font-size: 12px;
}
.terminal-warning {
  font-size: 11px;
  line-height: 1.6;
  color: #64748b;
}
#terminal-error {
  color: #b91c1c;
  font-size: 12px;
}
.pos-terminal[data-layout="ledger"] .terminal-products {
  display: flex;
  gap: 6px;
  max-height: 150px;
  flex-wrap: wrap;
}
.pos-terminal[data-layout="ledger"] .terminal-product {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 210px;
  max-width: 280px;
  padding: 10px;
}
.pos-terminal[data-layout="ledger"] .product-art {
  display: none;
}
.master-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.pack-row {
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
}
#master-review {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2f6fc;
  padding: 16px;
  border-radius: 8px;
  font-size: 12px;
}
#master-status.error {
  color: #b91c1c;
}
#product-master-form section[hidden] {
  display: none;
}
#product-master-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
@media (max-width: 1180px) {
  .terminal-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .terminal-checkout {
    padding: 16px;
  }
}
@media (max-width: 900px) {
  .terminal-layout {
    grid-template-columns: 1fr;
  }
  .terminal-checkout {
    position: static;
  }
  .terminal-products {
    max-height: 360px;
  }
}
@media (max-width: 560px) {
  .terminal-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .terminal-product {
    padding: 10px;
  }
  .terminal-product b {
    font-size: 14px;
  }
  .terminal-tools {
    gap: 10px;
  }
  .scan-control {
    min-width: 100%;
  }
  .terminal-modes {
    flex-wrap: wrap;
  }
  .master-toolbar {
    flex-wrap: wrap;
  }
}
.pos-terminal .terminal-tools {
  height: auto;
  min-height: 0;
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.scan-control {
  position: relative;
}
.scan-control kbd {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 10px;
  color: #64748b;
  border: 1px solid #dbe3ef;
  padding: 1px 5px;
  border-radius: 4px;
}
.terminal-title {
  margin: 0 0 18px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger {
  min-width: 0;
}
.pos-terminal[data-layout="touch"] .terminal-ledger thead {
  display: none;
}
.pos-terminal[data-layout="touch"] .terminal-ledger tbody {
  display: block;
}
.pos-terminal[data-layout="touch"] .terminal-ledger tr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td {
  display: block;
  padding: 0;
  border: 0;
  white-space: normal;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(2) {
  grid-column: span 2;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:last-child {
  position: absolute;
  top: 8px;
  right: 6px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(1)::before {
  content: "Barcode";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(3)::before {
  content: "UOM / pack";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(4)::before {
  content: "Quantity";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(5)::before {
  content: "Unit price";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(6)::before {
  content: "Discount";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(7)::before {
  content: "Line total";
  display: block;
  color: #64748b;
  font-size: 10px;
}
.pos-terminal[data-layout="touch"] .terminal-ledger button {
  min-height: 36px;
}
.pos-terminal[data-layout="touch"] .bottle-returns {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .pos-terminal[data-layout="touch"] .terminal-ledger tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pos-terminal[data-layout="touch"] .terminal-ledger td:nth-child(2) {
    grid-column: span 1;
  }
  .quantity-control input {
    width: 60px;
    min-width: 50px;
  }
  .terminal-ledger input {
    max-width: 100%;
  }
}

.product-art img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  border-radius: 8px;
}
