:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #203b33;
  background: #f3f1ea;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d5ddd6;
  border-radius: 12px;
  background: #fff;
  color: #203b33;
  cursor: pointer;
  font-weight: 700;
  touch-action: manipulation;
}
button:active {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #c58e32;
  outline-offset: 3px;
}
header {
  height: 88px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dddcd3;
  background: #faf9f5;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 2px;
}
.mark {
  background: #173e35;
  color: #fff;
  border-radius: 11px;
  font: 30px Georgia;
  padding: 8px 15px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 7px;
  color: #68746c;
}
.connection {
  font-size: 13px;
  padding: 9px 13px;
  border-radius: 20px;
  background: #e1ebe3;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 28px 4%;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  margin: 8px 0 22px;
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
h3 {
  margin: 28px 0 16px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #717f73;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.nav .selected {
  background: #173e35;
  color: white;
}
.selling {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: start;
}
.catalogue-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
  color: #68746c;
  font-size: 14px;
}
.catalogue-head input {
  width: 180px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product {
  position: relative;
  min-height: 210px;
  border: 1px solid #e0e0d5;
  padding: 14px;
  text-align: left;
  background: #faf9f5;
  border-radius: 18px;
}
.product img {
  display: block;
  object-fit: contain;
  width: 100%;
  height: 120px;
  margin-bottom: 12px;
}
.product strong {
  display: block;
  font-size: 17px;
}
.product .price {
  display: block;
  margin-top: 7px;
  color: #727c72;
  font-size: 14px;
  font-weight: 400;
}
.badge {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 32px;
  height: 32px;
  padding: 5px;
  text-align: center;
  background: #173e35;
  color: white;
  border-radius: 50%;
  font-size: 18px;
}
.panel {
  background: white;
  border: 1px solid #e0e2da;
  border-radius: 18px;
  padding: 25px;
}
.narrow {
  max-width: 480px;
  margin: 40px auto;
}
.basket {
  position: sticky;
  top: 20px;
}
.basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basket-head h2 {
  margin: 0;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px;
  font-size: 13px;
  color: #6f7a71;
}
.line {
  padding: 18px 0;
  border-bottom: 1px solid #eceee7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.line small {
  display: block;
  color: #7a827c;
  margin-top: 6px;
}
.line button {
  padding: 8px;
  min-width: 42px;
  min-height: 42px;
}
.line .qty {
  padding: 0 10px;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.total strong {
  font-size: 28px;
  letter-spacing: -1px;
}
.payments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payments .cash {
  grid-column: 1/-1;
  background: #173e35;
  color: white;
  font-size: 20px;
  min-height: 65px;
}
.payments button {
  min-height: 56px;
}
.muted {
  color: #778076;
  font-size: 14px;
  line-height: 1.6;
}
.small {
  font-size: 12px;
}
.empty {
  padding: 42px 12px;
  color: #7a827c;
  text-align: center;
  grid-column: 1/-1;
  line-height: 1.7;
}
.primary {
  background: #173e35;
  color: white;
  width: 100%;
  margin-top: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid #ccd4cc;
  border-radius: 9px;
  background: #fff;
  min-height: 48px;
}
textarea {
  min-height: 80px;
}
hr {
  border: 0;
  border-top: 1px solid #e6e9e2;
  margin: 28px 0;
}
#notice:not(:empty) {
  padding: 14px 4%;
  background: #fff0ca;
  color: #674d15;
  font-size: 14px;
}
.queue {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 14px;
  color: #855a17;
}
footer {
  padding: 30px 4%;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7a867a;
  display: flex;
  justify-content: space-between;
}
#shiftList p {
  padding: 14px;
  border-bottom: 1px solid #e5e8e2;
}
.pending {
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .selling {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .toolbar {
    display: block;
  }
  .nav {
    margin-bottom: 24px;
  }
}
@media (max-width: 640px) {
  header {
    height: 74px;
  }
  .connection {
    max-width: 150px;
    font-size: 11px;
  }
  main {
    padding: 20px 4%;
  }
  h1 {
    font-size: 30px;
  }
  .selling {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .product {
    padding: 10px;
    min-height: 158px;
    border-radius: 12px;
  }
  .product img {
    height: 80px;
  }
  .product strong {
    font-size: 14px;
  }
  .product .price {
    font-size: 12px;
  }
  .basket {
    position: static;
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .catalogue-head {
    font-size: 12px;
  }
  .catalogue-head input {
    width: 145px;
  }
  .badge {
    min-width: 25px;
    height: 25px;
    font-size: 14px;
    right: 5px;
    top: 5px;
  }
  .panel {
    padding: 18px;
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.metric {
  background: #f3f1ea;
  padding: 20px;
  border-radius: 12px;
}
.metric span {
  display: block;
  color: #68746c;
  font-size: 13px;
  line-height: 1.5;
}
.metric strong {
  display: block;
  font-size: 25px;
  margin-top: 10px;
}
