.order-card {
  position: relative;
}

.cards .order-card,
.order-card[data-book-card] {
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.cards .order-card:hover,
.order-card[data-book-card]:hover,
.cards .order-card:focus-visible,
.order-card[data-book-card]:focus-visible {
  border-color: var(--leaf);
  box-shadow: 0 4px 14px rgba(23, 63, 43, .1);
  outline: none;
}

.order-card h3 {
  margin-right: 34px;
}

.order-meta {
  align-items: center;
  gap: 10px;
}

.pin {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: #909090;
  font-size: 22px;
  line-height: 1;
}

.pin.active {
  color: #b08013;
}

.order-actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.booking-actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.book-time {
  color: var(--forest);
  background: #ffe8ed;
}

.machine-time {
  color: #36556d;
  background: #e7eef3;
}

.material-time {
  color: #5d4819;
  background: #f1ecd9;
}

.order-totals {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-pdf {
  color: #7a321f;
  background: #f4e8e3;
}

form[data-form="entry"] label {
  margin: 11px 0;
}

form[data-form="order"] label {
  margin: 11px 0;
}

form[data-form="machineEntry"] label,
form[data-form="machine"] label {
  margin: 11px 0;
}

form[data-form="entry"] .actions {
  margin-top: 12px;
}

form[data-form="order"] .actions {
  margin-top: 12px;
}

.order-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-create-actions button {
  width: 228px;
}

@media (max-width: 600px) {
  .orders-head {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .order-create-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .order-create-actions button {
    width: 100%;
  }
}

.week-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px 18px;
  margin-bottom: 28px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.week-panel:hover,
.week-panel:focus-visible {
  border-color: var(--leaf);
  box-shadow: 0 4px 14px rgba(23, 63, 43, .1);
  outline: none;
}

.week-panel.history {
  display: grid;
  gap: 28px;
}

.history-week + .history-week {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.week-head h2 {
  margin: 0;
  font-size: 18px;
}

.week-head strong {
  font-size: 18px;
  color: var(--forest);
}

.week-chart {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 14px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.week-day {
  height: 100%;
  display: grid;
  grid-template-rows: 22px 1fr 38px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.week-value {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.bar-fill {
  width: min(48px, 68%);
  min-height: 2px;
  background: var(--leaf);
  border-radius: 3px 3px 0 0;
}

.week-panel .week-chart {
  gap: 7px;
}

.week-panel .bar-fill {
  width: min(72px, 100%);
}

.week-day.today .bar-fill {
  background: var(--forest);
}

.week-day.today .day-label {
  color: var(--forest);
  font-weight: 800;
}

.day-label {
  display: grid;
  align-content: center;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .week-panel { padding: 18px 12px 14px; }
  .week-chart { gap: 5px; height: 170px; }
  .week-day { font-size: 11px; grid-template-rows: 20px 1fr 36px; }
  .bar-fill { width: 72%; }
  .week-panel .week-chart { gap: 3px; }
  .week-panel .bar-fill { width: 100%; }
}

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .pinned-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .pinned-grid { grid-template-columns: 1fr; }
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.profile .profile-actions button {
  margin: 0;
}

.profile .password-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 15px;
}

.profile .logout-button {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.profile .logout-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile .password-button:hover,
.profile .password-button:focus-visible,
.profile .logout-button:hover,
.profile .logout-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
