:root {
  --calema-primary: #2563eb;
  --calema-bg: #f6f8fb;
  --calema-text: #1f2937;
}

body {
  background: var(--calema-bg);
  color: var(--calema-text);
}

.container-narrow {
  max-width: 1180px;
  margin: 0 auto;
}

.login-wrap {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-wrap .card {
  width: 100%;
  max-width: 460px;
}

.btn-primary {
  background: var(--calema-primary);
  border-color: var(--calema-primary);
}

.metric-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .04);
}

.card {
  border-radius: 1rem;
}

.table thead th {
  color: #64748b;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom-width: 1px;
}

.menu-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .1) !important;
}

.pin-input {
  letter-spacing: .4rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  main.container-fluid {
    padding-left: .8rem;
    padding-right: .8rem;
  }
}

.client-menu-table .day-separator td {
  border-top: 1px solid rgba(37, 99, 235, .18);
  border-bottom: 1px solid rgba(37, 99, 235, .12);
}

@media (max-width: 768px) {
  .client-menu-table thead {
    display: none;
  }

  .client-menu-table,
  .client-menu-table tbody,
  .client-menu-table tr,
  .client-menu-table td {
    display: block;
    width: 100%;
  }

  .client-menu-table tr:not(.day-separator) {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
  }

  .client-menu-table tr:not(.day-separator) td {
    border: 0;
    padding: .25rem 0;
  }

  .client-menu-table tr:not(.day-separator) td::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .05rem;
  }

  .client-menu-table td.text-end {
    text-align: left !important;
  }

  .client-menu-table td.text-end .btn {
    width: 100%;
    margin-top: .35rem;
  }
}


.coffee-type-card,
.coffee-order-card {
  transition: transform .15s ease, box-shadow .15s ease;
}

.coffee-type-card:hover,
.coffee-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .1) !important;
}

@media (max-width: 768px) {
  .coffee-break-grid .card-body {
    padding: 1rem !important;
  }

  .coffee-break-grid .btn {
    padding-top: .85rem;
    padding-bottom: .85rem;
    font-weight: 700;
  }

  .coffee-type-card .card-body {
    padding: .85rem 1rem;
  }
}


.menu-item-row {
  background: #fff;
}

@media (max-width: 768px) {
  .menu-item-row .btn {
    margin-top: .25rem;
  }
}

.order-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
}

.order-choice-grid-sm {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.order-choice-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: 100%;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 1rem;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.order-choice-card:hover,
.order-choice-card:focus-within,
.order-choice-card:has(input:checked) {
  border-color: rgba(37, 99, 235, .6);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.order-choice-card:has(input:checked) {
  background: rgba(37, 99, 235, .045);
}

.order-choice-card input[type="radio"] {
  margin-top: .2rem;
  flex: 0 0 auto;
}

.order-choice-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.order-choice-type {
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.order-choice-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
}

.order-choice-action {
  margin-top: .35rem;
  font-size: .82rem;
  color: #2563eb;
  font-weight: 600;
}

.order-details-panel {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .order-form {
    padding: 1rem !important;
  }

  .order-choice-grid,
  .order-choice-grid-sm {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .order-choice-card {
    min-height: auto;
    padding: 1rem;
  }

  .order-choice-title {
    font-size: 1.05rem;
  }

  .order-choice-action {
    display: inline-flex;
    width: fit-content;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
  }

  .order-details-panel-waiting {
    display: none;
  }

  .order-details-panel .btn {
    width: 100%;
  }
}

.coffee-break-order-form {
  scroll-margin-top: 90px;
}

.coffee-break-choice-card {
  min-height: 128px;
}

.coffee-break-details-panel {
  border-top: 1px solid rgba(15, 23, 42, .08);
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .coffee-break-order-form {
    padding: 1rem !important;
  }

  .coffee-break-choice-grid {
    grid-template-columns: 1fr;
  }

  .coffee-break-choice-card {
    min-height: auto;
  }

  .coffee-break-details-panel .btn {
    width: 100%;
  }
}

.client-menu-row-ordered {
  background: rgba(34, 197, 94, .045);
}

.client-menu-row-ordered td {
  border-color: rgba(34, 197, 94, .16);
}

.order-choice-card-ordered {
  border-color: rgba(34, 197, 94, .55);
  background: rgba(34, 197, 94, .055);
}

.order-choice-card-ordered:hover,
.order-choice-card-ordered:focus-within,
.order-choice-card-ordered:has(input:checked) {
  border-color: rgba(34, 197, 94, .75);
  box-shadow: 0 12px 26px rgba(22, 163, 74, .11);
}

.order-already-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: .25rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #166534;
  font-size: .8rem;
  font-weight: 700;
}

.time-picker-wrapper {
  position: relative;
}

.time-picker-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  z-index: 1080;
  width: min(16rem, 100%);
  max-height: 15rem;
  overflow-y: auto;
  padding: .35rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .15);
  border-radius: .85rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.time-picker-menu.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
}

.time-picker-option {
  border: 0;
  border-radius: .55rem;
  background: transparent;
  padding: .45rem .35rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.time-picker-option:hover,
.time-picker-option:focus,
.time-picker-option.active {
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  outline: 0;
}

@media (max-width: 768px) {
  .time-picker-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-height: 18rem;
  }

  .time-picker-menu.show {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .time-picker-option {
    padding: .55rem .25rem;
  }
}

.date-picker-wrapper {
  position: relative;
}

.date-picker-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + .25rem);
  z-index: 1090;
  width: min(21rem, 100%);
  padding: .7rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .15);
  border-radius: .95rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.date-picker-menu.show {
  display: block;
}

.date-picker-header {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: .35rem;
  margin-bottom: .45rem;
}

.date-picker-title {
  text-align: center;
  font-weight: 800;
  color: #1f2937;
  text-transform: capitalize;
}

.date-picker-nav {
  border: 0;
  border-radius: .7rem;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  padding: .45rem .35rem;
}

.date-picker-nav:hover,
.date-picker-nav:focus {
  background: rgba(37, 99, 235, .14);
  outline: 0;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .25rem;
}

.date-picker-weekdays {
  margin-bottom: .25rem;
  color: #64748b;
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}

.date-picker-day {
  border: 0;
  border-radius: .65rem;
  background: transparent;
  padding: .48rem .15rem;
  color: #1f2937;
  font-weight: 700;
  text-align: center;
}

.date-picker-day:hover,
.date-picker-day:focus {
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  outline: 0;
}

.date-picker-day.muted {
  color: #94a3b8;
}

.date-picker-day.today {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .35);
}

.date-picker-day.active {
  background: #2563eb;
  color: #fff;
}

.date-picker-day.disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .date-picker-menu {
    right: 0;
    width: 100%;
  }

  .date-picker-day {
    padding: .62rem .15rem;
  }
}
