.remoteHeaderActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.movideskTicketButton {
  border: 1px solid #15803d;
  background: #ecfdf3;
  color: #166534;
  font-weight: 800;
}

.movideskTicketButton:hover:not(:disabled) {
  background: #dcfce7;
}

.movideskTicketButton.created {
  background: #15803d;
  color: #fff;
}

.movideskPendingButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid #d97706;
  background: #fffbeb;
  color: #92400e;
  font-weight: 800;
  white-space: nowrap;
}

.movideskPendingButton:hover:not(:disabled),
.movideskPendingButton.hasPendencies {
  background: #fef3c7;
}

.movideskPendingButton span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #d97706;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.movideskPendingFloatingButton {
  position: fixed;
  right: 18px;
  bottom: 46px;
  z-index: 19000;
  margin-left: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

body.movideskModalOpen .movideskPendingFloatingButton {
  display: none;
}

.ticketNumber {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
}

.ticketNumber.pending {
  background: #f1f5f9;
  color: #64748b;
}

.movideskTicketModal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(2px);
}

.movideskTicketModal.hidden {
  display: none;
}

.movideskTicketDialog {
  width: min(980px, 96vw);
  max-height: 94vh;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(2, 6, 23, .45);
}

.movideskPendingDialog {
  width: min(900px, 96vw);
}

.movideskPendingBody {
  padding: 18px 22px 22px;
}

.movideskPendingList {
  display: grid;
  gap: 12px;
}

.movideskPendingEmpty {
  padding: 28px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.movideskPendingItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #fbbf24;
  border-radius: 10px;
  background: #fffbeb;
}

.movideskPendingItem strong,
.movideskPendingItem span {
  display: block;
}

.movideskPendingItem strong {
  color: #78350f;
  font-size: 14px;
}

.movideskPendingMeta,
.movideskPendingReason {
  margin-top: 4px;
  color: #92400e;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.movideskPendingReason {
  color: #475569;
}

.movideskPendingOpen {
  border-color: #b45309;
  background: #b45309;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.movideskPendingOpen:hover:not(:disabled) {
  background: #92400e;
}

.movideskTicketDialogHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.movideskTicketDialogHeader h2 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.movideskTicketEyebrow {
  color: #b91c1c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.movideskTicketCustomer {
  color: #475569;
  font-size: 12px;
}

.movideskTicketClose {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  line-height: 1;
}

.movideskTicketForm {
  padding: 20px 22px 22px;
}

.movideskTicketGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.movideskTicketField {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.movideskTicketField.wide {
  grid-column: 1 / -1;
}

.movideskTicketField.half {
  grid-column: span 6;
}

.movideskTicketField label,
.movideskTicketField > span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.movideskTicketField input,
.movideskTicketField select,
.movideskTicketField textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  padding: 8px 10px;
  font: inherit;
}

.movideskTicketField input:focus,
.movideskTicketField select:focus,
.movideskTicketField textarea:focus {
  outline: 2px solid rgba(220, 38, 38, .18);
  border-color: #dc2626;
}

.movideskTicketField input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.movideskVersionFields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.movideskVersionFields.hidden {
  display: none;
}

.movideskTicketState {
  min-height: 38px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.movideskTicketState.success {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.movideskTicketState.warning {
  border-color: #f59e0b;
  border-left-width: 4px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.movideskTicketState.error {
  border-color: #dc2626;
  border-left-width: 4px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.movideskTicketState.warning::before,
.movideskTicketState.error::before {
  content: "⚠ ";
}

.movideskTicketFooter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.movideskPendingShortcut {
  margin-right: auto;
  border-color: #d97706;
  background: #fffbeb;
  color: #92400e;
  font-weight: 800;
}

.movideskPendingShortcut span {
  font-weight: 900;
}

.movideskTicketForm.loading {
  cursor: wait;
}

body.movideskModalOpen {
  overflow: hidden;
}

@media (max-width: 760px) {
  .movideskPendingButton {
    margin-left: 0;
  }

  .movideskPendingItem {
    grid-template-columns: 1fr;
  }

  .movideskPendingFloatingButton {
    right: 10px;
    bottom: 42px;
  }

  .movideskTicketField,
  .movideskTicketField.half {
    grid-column: 1 / -1;
  }

  .movideskVersionFields {
    grid-template-columns: 1fr;
  }
}
