@import url("/fonts.css");
:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #203d35;
  background: #f4f5ef;
  font-synthesis: none;
  --green: #173f35;
  --lime: #dfff72;
  --muted: #6c7d75;
  --line: #e0e6da;
  --orange: #df743d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
.loading {
  padding: 80px;
  text-align: center;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.4px;
  margin-bottom: 9px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.55;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: var(--lime);
  color: var(--green);
  border-radius: 13px;
  font-size: 24px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #bacdc3;
  margin-top: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--green);
  color: #fff;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 54px;
}
.nav-item {
  border: 0;
  text-align: left;
  background: transparent;
  color: #c7d7ce;
  border-radius: 12px;
  padding: 14px 15px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-weight: 500;
}
.nav-item.active {
  background: var(--lime);
  color: var(--green);
  font-weight: 700;
}
.nav-item:hover:not(.active) {
  background: #ffffff0c;
  color: white;
}
.nav-icon {
  font-size: 19px;
  width: 23px;
}
.sidebar .bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar .mini {
  padding: 18px;
  border: 1px solid #ffffff20;
  border-radius: 15px;
  margin-bottom: 22px;
}
.sidebar .mini p {
  font-size: 12px;
  color: #b9cfc3;
  margin: 8px 0 0;
}
.logout {
  color: #dce8dc;
  background: transparent;
  border: 0;
  padding: 10px;
}
.main {
  min-width: 0;
  padding: 0 38px 40px;
}
.topbar {
  height: 89px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 12px;
}
.avatar {
  background: #e7ebcf;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  font-weight: 750;
  color: var(--green);
}
.user {
  display: flex;
  gap: 12px;
  align-items: center;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  min-height: 44px;
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--green);
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--green);
}
.btn.danger {
  color: #a53c30;
  background: #fff2eb;
  border-color: #ffd7c3;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.notice {
  padding: 13px 17px;
  background: #fff2db;
  border: 1px solid #ebd5a1;
  color: #71511f;
  font-size: 12px;
  border-radius: 10px;
  margin-bottom: 23px;
}
.notice strong {
  font-weight: 750;
}
.hero {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 24px;
}
.hero-copy {
  padding: 29px 31px;
  align-self: center;
}
.hero h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 13px 0 11px;
  max-width: 340px;
}
.hero p {
  font-size: 12px;
  color: #ccdacc;
  max-width: 350px;
  margin-bottom: 18px;
}
.hero img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.metric label {
  font-size: 12px;
  color: var(--muted);
}
.metric .value {
  font-weight: 750;
  font-size: 28px;
  letter-spacing: -1px;
  margin: 17px 0 7px;
}
.metric:first-child {
  background: var(--lime);
  border-color: var(--lime);
}
.metric small {
  font-size: 10px;
}
.columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 17px;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 150px;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 22px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
  position: relative;
}
.bar {
  min-height: 3px;
  width: 70%;
  border-radius: 5px 5px 0 0;
  background: #b3c67d;
}
.bar-col:nth-child(3n) .bar {
  background: var(--green);
}
.bar-col small {
  font-size: 9px;
  position: absolute;
  bottom: -19px;
}
.rank {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eff1eb;
}
.rank:last-child {
  border-bottom: 0;
}
.rank .number {
  color: #8c9a89;
  font-size: 12px;
}
.rank strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.rank .qty {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}
.photo {
  background-image: url("/assets/cantina-original.png");
  background-size: 260%;
  width: 53px;
  height: 53px;
  border-radius: 12px;
  background-position: 50% 88%;
  flex-shrink: 0;
}
.photo.sandwich {
  background-position: 0% 54%;
}
.photo.sweets {
  background-position: 100% 55%;
}
.photo.drinks {
  background-position: 58% 0%;
}
.photo.combo {
  background-size: cover;
  background-position: center;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 9px 17px;
  font-size: 12px;
  color: var(--muted);
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.search {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.search input {
  max-width: 330px;
}
input,
select,
textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ccd6c7;
  border-radius: 9px;
  padding: 11px 12px;
  color: #233d32;
  font-size: 13px;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 80px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #53685c;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9fb367;
  border-color: #9fb367;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.product-image {
  height: 152px;
  background-size: 150%;
  border-radius: 0;
  width: 100%;
}
.product-card .body {
  padding: 18px;
}
.product-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.product-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.product-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
}
.price {
  font-weight: 750;
  font-size: 18px;
}
.tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: #eff2e9;
  color: #617357;
}
.tag.paid {
  background: #e6f2d9;
  color: #376a39;
}
.tag.warn {
  background: #fff0db;
  color: #94601f;
}
.tag.bad {
  background: #fde8e0;
  color: #a64b3b;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-weight: 500;
  color: #7b887d;
  background: #f7f8f3;
  padding: 13px 12px;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid #edf0e8;
  padding: 15px 12px;
  vertical-align: middle;
}
td strong {
  display: block;
  margin-bottom: 4px;
}
td .actions {
  flex-wrap: nowrap;
}
tr:last-child td {
  border: 0;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: var(--muted);
}
.empty .symbol {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.wide {
  grid-column: 1/-1;
}
.checks {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.date-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-range input {
  width: 150px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-visual {
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 45px;
  justify-content: space-between;
  overflow: hidden;
}
.login-visual .brand {
  position: relative;
  z-index: 1;
}
.login-visual h1 {
  font-size: 53px;
  line-height: 1.08;
  max-width: 500px;
  margin: 55px 0 26px;
  letter-spacing: -2px;
}
.login-visual h1 span {
  color: var(--lime);
}
.login-visual img {
  width: calc(100% + 90px);
  margin: 10px -45px -45px;
  max-height: 390px;
  object-fit: cover;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form form {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 31px;
  margin-bottom: 12px;
}
.login-form .field {
  margin-top: 23px;
}
.login-form .btn {
  margin-top: 28px;
  width: 100%;
}
.login-note {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 25px;
  color: #7b8678;
}
.login-error {
  color: #a1392b;
  font-size: 12px;
  margin-top: 15px;
  min-height: 18px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 6px 30px #163e3540;
  display: none;
  z-index: 200;
  max-width: 90%;
  font-size: 13px;
}
#toast.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  width: min(680px, 94vw);
  max-height: 90vh;
  color: var(--green);
  box-shadow: 0 20px 90px #0b322955;
}
dialog::backdrop {
  background: #0a2b2570;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 23px;
}
.section-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.code {
  font-family: Consolas, monospace;
  font-size: 11px;
  word-break: break-all;
}
.order-detail {
  padding: 12px 0;
}
.order-detail ul {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}
.error {
  border: 1px solid #e8c5b5;
  background: #fff2e9;
  border-radius: 12px;
  padding: 24px;
}
.kiosk-preview {
  min-height: 100vh;
  background: #f4f2e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}
.kiosk-preview h1 {
  font-size: 64px;
  line-height: 1.05;
  max-width: 700px;
}
.kiosk-preview img {
  width: 540px;
  max-width: 100%;
  border-radius: 35px;
  margin: 22px 0;
}
.kiosk-preview .btn {
  font-size: 20px;
  padding: 22px 48px;
}
.kiosk-preview .brand {
  margin-bottom: 28px;
}
.kiosk-preview .muted {
  font-size: 18px;
  max-width: 600px;
}
.kiosk-preview .notice {
  margin-top: 28px;
}
body.print-report .sidebar,
body.print-report .topbar,
body.print-report .actions {
  display: none;
}
@media (min-width: 1550px) {
  .main {
    max-width: 1550px;
    margin: 0 auto;
    width: 100%;
    padding-left: 50px;
    padding-right: 50px;
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1150px) {
  .main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 26px 14px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 16px;
  }
  .heading {
    align-items: flex-start;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-copy {
    padding: 24px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 15px;
    gap: 14px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin: 0;
    gap: 5px;
  }
  .nav-item {
    padding: 10px;
    white-space: nowrap;
    font-size: 12px;
  }
  .nav-icon {
    display: none;
  }
  .sidebar .bottom {
    display: none;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .main {
    padding: 0 16px 25px;
  }
  .topbar {
    height: 62px;
    margin-bottom: 22px;
  }
  .heading {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 29px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: 230px;
  }
  .hero-copy {
    padding: 22px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric .value {
    font-size: 25px;
  }
  .panel {
    padding: 18px;
  }
  .product-grid {
    gap: 11px;
  }
  .product-image {
    height: 130px;
  }
  .product-card .body {
    padding: 13px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  .product-card .foot {
    flex-wrap: wrap;
    gap: 10px;
  }
  .login {
    display: block;
  }
  .login-visual {
    padding: 26px;
  }
  .login-visual h1 {
    font-size: 34px;
    margin: 28px 0 20px;
  }
  .login-visual img {
    display: none;
  }
  .login-form {
    padding: 35px 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .date-range {
    flex-wrap: wrap;
  }
  .date-range input {
    width: 135px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
}
.choice-panel {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
}
.choice-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
.choice-panel .section-note {
  margin: 12px 0;
}
.component-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0e8;
  padding: 7px 0;
}
.component-row > .field {
  width: 85px;
  flex-shrink: 0;
}
.sidebar nav {
  scrollbar-width: none;
}
.sidebar nav::-webkit-scrollbar {
  display: none;
}
@media print {
  .sidebar,
  .topbar,
  .notice,
  .heading .actions,
  button,
  dialog,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
  }
  body {
    background: white;
  }
  .panel,
  .metric {
    break-inside: avoid;
  }
  .hero {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}
