/* Usta kabineti: the working side of the site. Same tokens and theme, no show. */

body.desk { background: var(--bg-alt); padding-block: 2rem 5rem; }
.desk h1 { font: 800 clamp(3rem, 9vw, 4.5rem)/0.88 var(--display); text-transform: uppercase; }
.desk h2 { font-size: 1.25rem; font-weight: 700; }

.desk__login { display: grid; gap: 1.5rem; max-width: 26rem; margin: 12vh auto 0; }
.desk__card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--surface);
}

.desk__head { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; }
.desk__head p { margin-right: auto; padding-bottom: 0.4rem; color: var(--text-soft); }

.desk__days { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block: 2rem 1.25rem; }
.desk__days .btn { min-height: 46px; padding-inline: 1.1rem; }
.desk__days input {
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-tile);
  background: var(--surface);
}
.desk__days h2 { flex-basis: 100%; margin-top: 0.75rem; }

.desk__cols { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .desk__cols { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
  .desk__days h2 { flex-basis: auto; margin: 0 0 0 1rem; }
}

.desk__col { padding: 1.25rem; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--surface); }
.desk__col > h3 { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.25rem; font-weight: 700; }
.desk__col > h3 span { font-weight: 500; color: var(--text-soft); }
.desk__empty { margin-top: 1rem; color: var(--text-soft); }

.slot {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.slot__time { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot__time small { display: block; font-weight: 500; color: var(--text-soft); }
.slot__who { font-weight: 700; overflow-wrap: anywhere; }
.slot__meta { color: var(--text-soft); overflow-wrap: anywhere; }
.slot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.slot .btn { min-height: 38px; padding-inline: 1rem; font-size: 0.9375rem; }
.slot--block .slot__who { font-weight: 500; color: var(--text-soft); }
.slot--past { opacity: 0.55; }

.desk__add { margin-top: 2rem; }
.desk__add .btn { justify-self: start; }

/* ---- sections, orders, products */

.desk__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.desk__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
#tabOrders, #tabProducts { margin-top: 2rem; }

.order__items { display: grid; gap: 0.3rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.order__items li, .order__total { display: flex; justify-content: space-between; gap: 1rem; }
.order__items li span:last-child, .order__total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.order__total { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); font-weight: 700; }
.order .slot__actions { margin-top: 1rem; }
.order .btn { min-height: 40px; padding-inline: 1rem; font-size: 0.9375rem; }
.order--closed { opacity: 0.6; }

.prow {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  align-items: center;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.prow:first-child { padding-top: 0; border-top: 0; }
.prow:last-child { padding-bottom: 0; }
.prow__thumb {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-tile);
  background: var(--surface-2);
  font-size: 0.75rem;
  color: var(--text-soft);
}
.prow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prow__volume { margin-left: 0.5rem; font-weight: 400; color: var(--text-soft); }
.prow .slot__actions { grid-column: 1 / -1; margin-top: 0; }
.prow .btn { min-height: 38px; padding-inline: 0.9rem; font-size: 0.9375rem; }
.prow--out .slot__who { color: var(--text-soft); }
.desk__add input[type="file"] { padding-block: 0.85rem; }
@media (min-width: 900px) {
  .prow { grid-template-columns: 3.5rem minmax(0, 1fr) auto; }
  .prow .slot__actions { grid-column: auto; justify-content: flex-end; }
}
.chip[aria-pressed="true"] .desk__badge { background: var(--on-solid); color: var(--solid); }
