/* PERFECT BUD 0.15.4 – dopracowanie wizualne procesów ZAM i Transport.
   Rozszerzenia pod przestrzenią pbops, bez zmiany wyglądu formularzy pozostałych działów. */
:root {
  --pbops-ink: #142b43;
  --pbops-muted: #71829a;
  --pbops-border: #dde8ed;
  --pbops-teal: #008e83;
  --pbops-bg: #f3f7fa;
}
.sidebar {
  background: #11243b;
  box-shadow: 3px 0 26px rgba(17, 36, 59, 0.1);
}
.nav-item {
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.nav-item:hover {
  transform: translateX(2px);
}
.nav-item.active {
  box-shadow: inset 3px 0 #26c5bc;
}
.content {
  max-width: 1680px;
}
.panel,
.pb-doc-card {
  box-shadow: 0 5px 20px rgba(20, 45, 70, 0.035);
}
.btn {
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}
.btn-primary:hover {
  box-shadow: 0 7px 16px rgba(0, 149, 135, 0.16);
}
.pbops-doc-container {
  margin: 16px 0 12px;
  border-top: 1px solid var(--pbops-border);
  padding-top: 15px;
}
.pbops-doc-command {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}
.pbops-claim-btn {
  background: #ecfbf7;
  color: #086d5c;
  border: 1px solid #a8ddd1;
}
.pbops-claim-state {
  display: inline-block;
  background: #dff9ed;
  padding: 8px 12px;
  border-radius: 8px;
  color: #086b51;
  font-weight: 700;
  font-size: 12px;
}
.pbops-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  align-items: stretch;
  gap: 16px;
  margin: 16px 0 6px;
}
.pbops-order-column {
  min-width: 0;
  border: 1px solid #dde6ec;
  border-radius: 14px;
  background: white;
  box-shadow: 0 6px 18px rgba(18, 47, 67, 0.045);
  overflow: hidden;
}
.pbops-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e4ecf0;
  padding: 16px 18px;
  background: linear-gradient(115deg, #fff, #f8fcfd);
}
.pbops-col-title h3 {
  margin: 0;
  color: #142c43;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.pbops-col-title p {
  margin: 6px 0 0;
  font-size: 11px;
  color: #606f82;
  line-height: 1.4;
}
.pbops-success {
  white-space: nowrap;
  color: #0e765a;
  font-weight: 800;
  background: #dff7e9;
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
}
.pbops-offer-doc {
  padding: 18px 17px;
  color: #24364b;
  font-size: 12px;
}
.pbops-offer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4eaf0;
}
.pbops-offer-logo img {
  width: 154px;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.pbops-offer-logo div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pbops-offer-logo strong {
  font-size: 19px;
  color: #14263a;
}
.pbops-offer-logo span {
  font-size: 11px;
  color: #606f83;
}
.pbops-offer-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0;
}
.pbops-offer-facts > div {
  background: #f5f8fa;
  border: 1px solid #e3ebef;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.pbops-offer-facts small {
  font-size: 10px;
  color: #5c6f82;
  font-weight: 800;
  letter-spacing: 0.7px;
}
.pbops-offer-facts strong {
  color: #19334b;
  overflow-wrap: anywhere;
}
.pbops-offer-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e9eff3;
  padding: 12px 0;
  font-size: 11px;
  color: #5d6f83;
}
.pbops-offer-terms b {
  color: #263f54;
}
.pbops-table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid #dce6ec;
  border-radius: 8px;
}
.pbops-offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 550px;
}
.pbops-offer-table th {
  color: #32465d;
  background: #eef3f7;
  font-weight: 800;
  white-space: nowrap;
}
.pbops-offer-table td,
.pbops-offer-table th {
  padding: 10px 7px;
  vertical-align: top;
  border-bottom: 1px solid #e6edf1;
}
.pbops-offer-table tbody tr:last-child td {
  border-bottom: 0;
}
.pbops-offer-table td:first-child,
.pbops-offer-table th:first-child {
  text-align: center;
}
.pbops-offer-table td strong {
  display: block;
  font-weight: 650;
  line-height: 1.4;
}
.pbops-offer-table td small {
  display: block;
  color: #5d6f83;
  margin-top: 3px;
  font-size: 10px;
}
.pbops-offer-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pbops-offer-bottom {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 13px;
}
.pbops-offer-bottom p {
  font-size: 11px;
  color: #5d6f83;
  line-height: 1.5;
  max-width: 290px;
}
.pbops-offer-bottom > div {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pbops-offer-bottom span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.pbops-offer-bottom > div > strong {
  display: block;
  text-align: right;
  color: #096a54;
  background: #e3f9ee;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 14px;
}
.pbops-offer-notes {
  background: #fbfaf4;
  padding: 10px;
  border-radius: 8px;
  color: #556477;
}
.pbops-delivery-form,
.pbops-scheduled {
  padding: 18px;
}
.pbops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.pbops-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #344c60;
  font-size: 11px;
  font-weight: 750;
}
.pbops-form-grid input,
.pbops-form-grid select,
.pbops-form-grid textarea {
  width: 100%;
  padding: 11px 10px;
  border-radius: 8px;
  border: 1px solid #d6e1e9;
  background: white;
  color: #172f47;
  font-size: 12px;
  min-width: 0;
  box-sizing: border-box;
}
.pbops-form-grid input:focus,
.pbops-form-grid select:focus,
.pbops-form-grid textarea:focus {
  outline: 3px solid var(--pb-focus);
  border-color: var(--pbops-teal);
}
.pbops-form-grid textarea {
  resize: vertical;
}
.pbops-help {
  font-size: 11px;
  color: #5e6f81;
  line-height: 1.5;
  margin: 13px 0;
}
.pbops-wide {
  display: flex;
  width: 100%;
  padding: 13px;
}
.pbops-scheduled {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #253c52;
}
.pbops-scheduled p {
  color: #5d6f83;
  line-height: 1.5;
  font-size: 12px;
}
.pbops-inline-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.pbops-transport-inbox {
  margin: 0 0 18px;
  border: 1px solid #f3c573;
  background: #fff9ed;
  border-radius: 13px;
  overflow: hidden;
}
.pbops-inbox-banner {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.pbops-inbox-symbol {
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #ffedd2;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
}
.pbops-inbox-banner > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.pbops-inbox-banner strong {
  display: block;
  font-size: 14px;
  color: #3b3b2b;
}
.pbops-inbox-banner p {
  font-size: 11px;
  color: #776c59;
  margin: 5px 0 0;
  line-height: 1.4;
}
.pbops-inbox-banner .btn {
  border-color: #e7bc68;
  color: #6a5325;
}
.pbops-inbox-body {
  border-top: 1px solid #f2d7a1;
  background: #fffdf7;
  padding: 10px 16px;
}
.pbops-inbox-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1e9d9;
  flex-wrap: wrap;
}
.pbops-inbox-task > div {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pbops-inbox-task strong {
  color: #283e50;
  font-size: 13px;
}
.pbops-inbox-task span {
  color: #5f6e82;
  font-size: 11px;
}
.pbops-inbox-standby {
  padding: 12px 0 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.pbops-inbox-standby strong {
  font-size: 11px;
  color: #876334;
  margin-right: 5px;
}
@media (max-width: 1200px) {
  .pbops-order-layout {
    grid-template-columns: 1fr;
  }
  .pbops-offer-bottom p {
    max-width: 60%;
  }
}
@media (max-width: 700px) {
  .pbops-form-grid {
    grid-template-columns: 1fr;
  }
  .pbops-offer-facts {
    grid-template-columns: 1fr;
  }
  .pbops-offer-logo {
    align-items: flex-start;
    flex-direction: column;
  }
  .pbops-offer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .pbops-offer-bottom > div {
    min-width: 0;
  }
  .pbops-inbox-banner {
    flex-wrap: wrap;
  }
  .pbops-inbox-banner .btn {
    width: 100%;
  }
  .pbops-doc-command > * {
    flex: 1;
  }
}
/* Widok godzina/samochód i boczny panel dyspozytora */
.pbops-transport-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.75fr);
  gap: 14px;
  align-items: start;
}
.pbops-transport-calendar {
  min-width: 0;
}
.pbops-transport-calendar .timeline-panel {
  overflow: hidden;
}
.pbops-transport-calendar .timeline-scroll {
  border-color: #dfe8ee;
}
.pbops-transport-calendar .timeline-vehicle-heading {
  background: #f6f9fb;
  color: #234158;
}
.pbops-transport-calendar .timeline-job {
  cursor: pointer;
  border: 2px solid #2385c5 !important;
  background: #e9f5ff !important;
  color: #183c58 !important;
  box-shadow: 0 4px 12px rgba(37, 113, 172, 0.13);
  border-radius: 8px;
}
.pbops-transport-calendar .timeline-job:hover {
  filter: brightness(0.98);
  box-shadow: 0 6px 15px rgba(31, 102, 156, 0.2);
}
.pbops-transport-calendar .timeline-job strong,
.pbops-transport-calendar .timeline-job span {
  color: inherit;
}
.pbops-transport-side {
  background: white;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(16, 41, 59, 0.05);
  padding: 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  min-width: 0;
}
.pbops-transport-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  min-height: 250px;
}
.pbops-transport-placeholder h3 {
  margin: 6px 0 0;
  font-size: 16px;
}
.pbops-transport-placeholder p {
  color: #5e6f82;
  font-size: 12px;
  line-height: 1.5;
}
.pbops-side-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.pbops-side-head > div:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pbops-side-head strong {
  font-size: 15px;
  color: #1c364d;
}
.pbops-side-head p {
  font-size: 11px;
  color: #5a7085;
  margin: 5px 0 0;
}
.pbops-side-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #def7ef;
  display: grid;
  place-items: center;
  font-size: 19px;
  flex: 0 0 42px;
}
.pbops-side-badge {
  font-size: 10px;
  color: #0f6594;
  background: #eaf5ff;
  border-radius: 999px;
  padding: 5px 7px;
  font-weight: 750;
}
.pbops-side-close {
  border: none;
  background: none;
  color: #5f6f81;
  font-size: 20px;
  padding: 6px;
}
.pbops-side-source {
  background: #edf5ff;
  border: 1px solid #d2e5fa;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  flex-direction: column;
}
.pbops-side-source small {
  color: #497191;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.pbops-side-source strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.pbops-side-source .btn {
  border-color: #c7dbed;
  color: #1d638d;
}
.pbops-side-materials {
  margin: 12px 0;
  border: 1px solid #e2eaf0;
  border-radius: 9px;
  padding: 10px;
}
.pbops-side-materials summary {
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  padding: 4px;
}
.pbops-side-materials > div {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  border-top: 1px solid #eef3f6;
  margin-top: 8px;
  padding-top: 8px;
  font-size: 11px;
  line-height: 1.4;
}
.pbops-side-materials > div span {
  flex: 1;
}
.pbops-side-materials > div b {
  white-space: nowrap;
}
.pbops-side-form {
  margin-top: 14px;
}
.pbops-side-bottom {
  border-top: 1px solid #e4edf1;
  margin-top: 13px;
  padding-top: 12px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
@media (max-width: 1280px) {
  .pbops-transport-workspace {
    grid-template-columns: 1fr;
  }
  .pbops-transport-side {
    position: static;
    max-height: none;
  }
}
