.package-task {
  width: 100%;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  box-shadow: none;
  box-sizing: border-box;
}
.package-task-table-wrap {
  width: 100%;
  margin: 0 0 10px;
  overflow-x: auto;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}
.package-task-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #222;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.package-task-table th,
.package-task-table td {
  padding: 6px 7px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  vertical-align: middle;
}
.package-task-table th:nth-child(-n+3),
.package-task-table td:nth-child(-n+3) {
  padding-left: 5px;
  padding-right: 5px;
}
.package-task-table th {
  height: 28px;
  background: #fafafa;
  color: #222;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.package-task-table tbody tr:last-child td {
  border-bottom: 0;
}
.package-task-row:hover td {
  background: #fcfcfc;
}
.package-task-col-source { width: 96px; }
.package-task-col-type { width: 66px; }
.package-task-col-photo { width: 54px; }
.package-task-col-name { width: 29%; }
.package-task-col-variant { width: 27%; }
.package-task-col-qty { width: 58px; }
.package-task-col-cost { width: 70px; }
.package-task-col-price { width: 60px; }
.package-task-col-actions { width: 136px; }
.package-task-source-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.package-task-source-cell strong,
.package-task-source-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-task-source-cell strong {
  color: #222;
  font-size: 12px;
  font-weight: 900;
}
.package-task-source-cell span {
  color: #666;
  font-size: 12px;
  font-weight: 800;
}
.package-task-type-cell span,
.package-task-type-cell b {
  height: 18px;
  margin: 0 0 3px;
  padding: 0 5px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.package-task-type-cell b {
  margin-bottom: 0;
}
.package-task-photo-cell {
  text-align: center;
}
.package-task-cell-input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1.5px solid #d6d6d6;
  border-radius: 7px;
  background: #fff;
  color: #222;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
  outline: none;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-task-cell-input:focus {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(34,34,34,.08);
}
.package-task-cell-input[readonly] {
  background: #f8f8f8;
  color: #222;
  border-color: #d8d8d8;
}
.package-task-cell-input::placeholder,
.package-task-field input::placeholder {
  color: #aaa;
  font-weight: 400;
}
.package-task-num-cell,
.package-task-money-cell {
  text-align: right;
}
.package-task-num-cell .package-task-cell-input,
.package-task-money-cell .package-task-cell-input {
  padding: 0 6px;
  text-align: center;
}
.package-task-action-cell {
  text-align: right;
}
.package-task-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.package-task-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 18px;
  margin-bottom: 5px;
}
.package-task-source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}
.package-task-tags {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.package-task-tags b {
  height: 18px;
  padding: 0 6px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #555;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.package-task-photo {
  width: 42px;
  height: 42px;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f8f8;
  color: #777;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}
.package-task-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.package-task-photo.has-image {
  background: #fff;
  border-color: #cfcfcf;
}
.package-task-fields {
  display: grid;
  grid-template-columns: minmax(116px, 1.35fr) minmax(116px, 1.35fr) minmax(66px, .52fr) minmax(74px, .58fr) minmax(60px, .48fr);
  gap: 7px;
  padding: 0;
  align-items: end;
}
.package-task-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.package-task-field span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.package-task-field input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1.5px solid #d6d6d6;
  border-radius: 7px;
  background: #fff;
  color: #222;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
  outline: none;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
}
.package-task-field input:focus {
  border-color: #222;
  box-shadow: 0 0 0 3px rgba(34,34,34,.08);
}
.package-task-field input[readonly] {
  background: #f8f8f8;
  color: #222;
  border-color: #d8d8d8;
}
.package-task-actions,
.package-task footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0;
}
.package-task-btn {
  height: 34px;
  min-width: 58px;
  padding: 0 10px;
  border: 1.5px solid #222;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  font-family: "Inter Tight", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
}
.package-task-btn.primary { background: #222; color: #fff; }
.package-task-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.package-task-legacy {
  color: #666;
  background: #fafafa;
}
@media (min-width: 761px) {
  .package-task header {
    padding: 0;
    border-bottom: 0;
  }
}
@media (max-width: 760px) {
  .package-task-main {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }
  .package-task header {
    align-items: flex-start;
  }
  .package-task-fields {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .package-task-field:first-child,
  .package-task-field:nth-child(2) {
    grid-column: 1 / -1;
  }
  .package-task-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .package-task header {
    display: grid;
    gap: 5px;
  }
  .package-task-source {
    white-space: normal;
  }
  .package-task-fields {
    grid-template-columns: 1fr;
  }
  .package-task-field:first-child,
  .package-task-field:nth-child(2) {
    grid-column: auto;
  }
  .package-task-actions,
  .package-task footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .package-task-btn {
    min-width: 0;
    width: 100%;
    padding: 0 6px;
  }
}
