/* Potwierdzenia KPO są częścią zlecenia i istniejącego okna adnotacji. */
.task-kpo-field {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--sb-line, #d8ddd7);
  border-radius: 9px;
  background: var(--sb-paper, #f6f7f5);
}
.task-kpo-field > label { display: block; margin-bottom: 7px; font-weight: 700; color: var(--sb-ink, #102e3b); }
:is(#modal, #bagModal) .task-kpo-field input[type="file"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--sb-ink, #102e3b);
  font: inherit;
}
.task-kpo-field input[type="file"]::file-selector-button {
  margin: 0 10px 4px 0;
  padding: 9px 13px;
  border: 1px solid #bdc7ba;
  border-radius: 7px;
  background: #fff;
  color: var(--sb-ink, #102e3b);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.task-kpo-field input[type="file"]:not(:disabled)::file-selector-button:hover { background: var(--sb-panel, #eef0ec); }
.task-kpo-status { margin: 7px 0 0; color: var(--sb-muted, #5b6869); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.task-kpo-status:empty { margin: 0; }
.task-kpo-status.is-error { color: #9a2929; }
.task-kpo-help { display: block; margin: 7px 0 0; color: var(--sb-muted, #5b6869); font-size: 13px; line-height: 1.45; }
#driverAnnotationKpo[hidden] { display: none !important; }
#driverAnnotationKpo:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #dc9b9b;
  border-radius: 8px;
  background: #fff4f4;
  color: #842121;
  overflow-wrap: anywhere;
}
#driverAnnotationKpo > strong,
#driverAnnotationKpo > .task-kpo-details,
#driverAnnotationKpo > .task-kpo-status { flex: 1 1 100%; min-width: 0; margin: 0; }
.task-kpo-details { font-size: 14px; line-height: 1.5; }
#driverAnnotationKpo :is(.task-kpo-download, .task-kpo-retry),
.task-kpo-field .task-kpo-retry {
  box-sizing: border-box;
  flex: 0 1 auto;
  width: auto;
  min-width: min(100%, 180px);
  min-height: 44px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #b85d5d;
  border-radius: 7px;
  background: #fff;
  color: #842121;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.4;
  font: inherit;
  font-weight: 700;
}
.task-kpo-field .task-kpo-retry {
  display: block;
  margin-top: 8px;
  border-color: #bdc7ba;
  color: var(--sb-ink, #102e3b);
}
#driverAnnotationKpo :is(.task-kpo-download, .task-kpo-retry)[hidden] { display: none !important; }
#driverAnnotationKpo :is(.task-kpo-download, .task-kpo-retry):not(:disabled):hover { background: #fbe7e7; }
#driverSchedule .driver-task-actions button.driver-action-button.has-kpo {
  border-color: #d78686 !important;
  background: #fff0f0 !important;
  color: #9a2424 !important;
}
@media (max-width: 600px) {
  #driverAnnotationKpo :is(.task-kpo-download, .task-kpo-retry) { width: 100%; margin-right: 0; }
}
