.orders-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid #d8d0c6;
  background: #f6f1ea;
  color: #0c0c0a;
  font-family: "Satoshi", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.orders-inline-action:hover:enabled {
  background: #ece4da;
  border-color: #b8aa98;
}

.orders-inline-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.orders-inline-action--primary {
  border-color: transparent;
  background: #0c0c0a;
  color: #ffffff;
}

.orders-inline-action--primary:hover:enabled {
  background: #242220;
  border-color: transparent;
}

.order-card-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.order-card-actions .orders-inline-action {
  width: 100%;
  min-height: 46px;
}

.order-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.orders-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.orders-row:hover {
  background: #f5f1ea;
}

.table-menu-cell {
  width: 1%;
  white-space: nowrap;
}

.order-assignment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 10, 0.12);
  backdrop-filter: blur(0.5px);
  z-index: 2100;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.order-assignment-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.order-assignment-drawer {
  width: min(620px, calc(100vw - 16px));
  max-width: 100vw;
  height: 100%;
  background: #fcfaf7;
  border-radius: 16px 0 0 16px;
  box-shadow: -24px 0 60px rgba(12, 12, 10, 0.16);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-assignment-overlay:not(.hidden) .order-assignment-drawer {
  transform: translateX(0);
}

.order-assignment-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e5ddd3;
}

.order-assignment-drawer__header-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-assignment-drawer__header-copy h2 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: #0c0c0a;
}

.order-assignment-drawer__eyebrow,
.order-assignment-summary__eyebrow,
.order-assignment-panel__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c746a;
}

.order-assignment-drawer__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5b5752;
}

.order-assignment-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.order-assignment-drawer__close:hover {
  background: #efe8df;
}

.order-assignment-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-assignment-summary,
.order-assignment-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: #f7f1e8;
  border: 1px solid #ebdfd0;
  flex-shrink: 0;
}

.order-assignment-summary__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-assignment-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-assignment-summary__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 9999px;
  background: #eeebe5;
  border: 1px solid transparent;
  color: #0c0c0a;
  font-size: 13px;
  font-weight: 400;
}

.order-assignment-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-assignment-summary h3,
.order-assignment-panel h3 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #0c0c0a;
}

.order-assignment-summary p,
.order-assignment-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b5752;
}

.order-assignment-panel--muted {
  background: #f5f3ef;
}

.order-assignment-panel__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-assignment-panel__countdown {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #0c0c0a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-assignment-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.order-assignment-toolbar {
  position: sticky;
  top: -24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-assignment-search-field {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e7e0d8;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.order-assignment-search-field:hover {
  background: #ded6cc;
}

.order-assignment-search-field:focus-within {
  border-color: #0c0c0a;
}

.order-assignment-search-icon {
  color: #918d8a;
  flex-shrink: 0;
}

.order-assignment-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: "Satoshi", sans-serif;
  color: #0c0c0a;
  outline: none;
}

.order-assignment-search-input::placeholder {
  color: #918d8a;
  font-weight: 400;
}

.order-assignment-toolbar__row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.order-assignment-toolbar__sort {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.order-assignment-toolbar__sort span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8177;
}

.order-assignment-toolbar__sort select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d8d0c6;
  background: #ffffff;
  color: #0c0c0a;
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  outline: none;
}

.order-assignment-toolbar__sort select:focus {
  border-color: #0c0c0a;
}

.order-assignment-toolbar__results {
  min-width: 86px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f2ece3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #4f473f;
  font-size: 13px;
  font-weight: 500;
}

.order-assignment-toolbar__results strong {
  font-size: 16px;
  font-weight: 700;
  color: #0c0c0a;
}

.order-assignment-candidate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-assignment-candidate {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #ece4da;
}

.order-assignment-candidate__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-assignment-candidate__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e7e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Satoshi", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0c0c0a;
  flex-shrink: 0;
}

.order-assignment-candidate__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.order-assignment-candidate__info h3 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0c0c0a;
}

.order-assignment-candidate__subtitle {
  font-size: 13px;
  color: #6a635b;
}

.order-assignment-badge {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-assignment-badge--fit {
  background: #0c0c0a;
  color: #ffffff;
}

.order-assignment-badge--eligible {
  background: #e7f5ea;
  color: #186239;
}

.order-assignment-badge--hold {
  background: #fff1dc;
  color: #8c5a00;
}

.order-assignment-badge--suspended {
  background: #fff1f1;
  color: #b92e2e;
}

.order-assignment-badge--busy {
  background: #fce8d0;
  color: #8a4a00;
}

.order-assignment-badge--review {
  background: #f2ece3;
  color: #6a635b;
}

.order-assignment-badge--strong {
  background: #e7f5ea;
  color: #186239;
}

.order-assignment-badge--tight {
  background: #fff1dc;
  color: #8c5a00;
}

.order-assignment-writing-window {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #f2ece3;
  border: 1px solid #e0d4c3;
  font-size: 13px;
  font-weight: 500;
  color: #4f473f;
}

.order-assignment-writing-window--tight {
  background: #fff1dc;
  border-color: #f0d49a;
  color: #8c5a00;
}

.order-assignment-writing-window--critical {
  background: #fff1f1;
  border-color: #efc4c4;
  color: #b92e2e;
}

.order-assignment-candidate__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-assignment-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-assignment-stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8177;
}

.order-assignment-stat__value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0c0c0a;
}

.order-assignment-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9e5c;
  flex-shrink: 0;
}

.order-assignment-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-assignment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 9999px;
  background: #eeebe5;
  border: 1px solid transparent;
  color: #0c0c0a;
  font-size: 13px;
  font-weight: 400;
}

.order-assignment-chip--good {
  background: #e7f5ea;
  color: #186239;
}

.order-assignment-chip--warning {
  background: #fff1dc;
  color: #8c5a00;
}

.order-assignment-chip--dark {
  background: #0c0c0a;
  color: #ffffff;
}

.order-assignment-candidate__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.order-assignment-candidate__calendar {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid #d8d0c6;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5b5752;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.order-assignment-candidate__calendar:hover {
  background: #f2ece3;
  border-color: #b8aa98;
}

.order-assignment-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-assignment-calendar-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 10, 0.2);
  backdrop-filter: blur(1px);
}

.order-assignment-calendar-modal__panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  background: #fcfaf7;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(12, 12, 10, 0.18);
  overflow: hidden;
}

.order-assignment-calendar-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5ddd3;
}

.order-assignment-calendar-modal__header h3 {
  margin: 0;
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0c0c0a;
}

.order-assignment-calendar-modal__body {
  padding: 24px;
}

.order-assignment-calendar-modal__body p {
  margin: 0;
  font-size: 14px;
  color: #5b5752;
  line-height: 1.5;
}

.admin-cal__legend {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-cal__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5b5752;
}

.admin-cal__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.admin-cal__legend-dot--available {
  background: #2d9e5c;
}

.admin-cal__legend-dot--locked {
  background: #d4a04a;
}

.admin-cal__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-cal__month-title {
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0c0c0a;
  margin-bottom: 10px;
  text-align: center;
}

.admin-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}

.admin-cal__weekday {
  font-size: 11px;
  font-weight: 600;
  color: #8a8177;
  text-transform: uppercase;
  padding: 4px 0;
}

.admin-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.admin-cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-size: 13px;
  font-weight: 500;
  color: #0c0c0a;
  border-radius: 50%;
}

.admin-cal__day--empty {
  visibility: hidden;
}

.admin-cal__day.is-muted {
  color: #ccc5bb;
}

.admin-cal__day.is-selected {
  background: #2d9e5c;
  color: #fff;
}

.admin-cal__day.is-locked {
  background: #d4a04a;
  color: #fff;
}

.admin-cal__summary {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #5b5752;
}

.order-assignment-alert {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f1;
  border: 1px solid #efc4c4;
  color: #b92e2e;
  font-size: 14px;
}

.order-assignment-empty {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px dashed #d9ccbc;
}

.order-assignment-empty__title {
  margin: 0 0 6px;
  font-family: "Satoshi", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #0c0c0a;
}

.order-assignment-empty__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b5752;
}

.order-assignment-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-assignment-loading__line,
.order-assignment-loading__card {
  border-radius: 14px;
  background: linear-gradient(90deg, #f1ebe3 0%, #faf5ee 50%, #f1ebe3 100%);
  background-size: 240px 100%;
  animation: order-assignment-shimmer 1.1s linear infinite;
}

.order-assignment-loading__line {
  height: 14px;
}

.order-assignment-loading__line--short {
  width: 55%;
}

.order-assignment-loading__card {
  height: 160px;
}

@keyframes order-assignment-shimmer {
  from {
    background-position: -240px 0;
  }

  to {
    background-position: 240px 0;
  }
}

@media (max-width: 900px) {
  .order-assignment-drawer {
    width: 100%;
    border-radius: 0;
  }

  .order-assignment-toolbar,
  .order-assignment-summary,
  .order-assignment-panel,
  .order-assignment-candidate__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-assignment-toolbar__row {
    flex-direction: column;
  }

  .order-assignment-candidate__stats {
    grid-template-columns: 1fr;
  }
}
