
.workshop-open-button::before {
  content: none;
}


.workshop-panel {
  min-height: 430px;
  padding: 6px;
  border: 1px solid #c8d4e1;
  background: #fff;
}

.workshop-title {
  margin: 0 0 16px 24px;
  color: #001c9f;
  font-weight: 700;
}

.workshop-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 24px 12px;
}

.workshop-title-row .workshop-title {
  margin: 0;
}

.workshop-table table {
  min-width: 940px;
}

.workshop-open-button {
  width: auto;
  min-width: 44px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.workshop-detail-screen {
  width: min(100%, 1180px);
  display: none;
  background: #f7fbfc;
  border: 1px solid #c8d4e1;
  border-top: 0;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(0, 40, 55, 0.12);
  padding: 18px;
}

.workshop-detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.workshop-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#workshopDetailExit {
    transform: translateY(-16px);
}

#workshopStickerButton {
  min-width: 104px;
  padding-inline: 12px;
}

.workshop-detail-title {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 22px;
  letter-spacing: 0;
}

.workshop-detail-grid {
  display: grid;

  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
}


.workshop-detail-grid > .workshop-detail-field:nth-child(-n+4) {
    grid-column: span 5;
}

.workshop-detail-grid > .workshop-detail-field:nth-child(n+5):nth-child(-n+9) {
    grid-column: span 4;
}

.workshop-detail-grid .workshop-detail-wide {
    grid-column: 1 / 16;
}
.workshop-detail-grid > #openJobDescListButton {
    grid-column: 16 / 21;
}
.workshop-meta-row {
  display: grid;
  grid-template-columns: 120px minmax(160px, 210px) minmax(190px, 250px) minmax(180px, 260px);
  gap: 14px;
  align-items: end;
  margin: 0 0 16px;
  justify-content: start;
}

.workshop-job-no {
  display: grid;
  gap: 4px;
  color: #c80020;
}

.workshop-job-no span {
  color: #687790;
  font-size: 13px;
}

.workshop-job-no strong {
  color: #c80020;
  font-size: 17px;
}

.workshop-detail-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  min-width: 0;
}

.workshop-detail-field span {
  color: #687790;
}

.workshop-detail-field strong {
  min-height: 24px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.workshop-detail-prn-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workshop-detail-prn-line strong {
  min-width: 0;
}

.workshop-prn-beneficiary-button {
  width: 36px;
  min-width: 36px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.workshop-detail-field input,
.workshop-detail-field select,
.workshop-prep-control,
.workshop-action-row select,
.workshop-action-row strong {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #c6dce5;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}

.workshop-prep-control:disabled {
  color: #627386;
  background: transparent;
  border-color: transparent;
  opacity: 1;
  padding-left: 0;
}

.workshop-action-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px) auto auto minmax(150px, 220px) 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 4px 0 14px;
  font-size: 13px;
}

.workshop-action-row label {
  color: #687790;
}

#workshopSubmitButton,
#workshopClaimButton {
  width: 88px;
  min-width: 88px;
  justify-self: start;
  padding-inline: 10px;
}

.workshop-detail-wide {
  grid-column: span 2;
}

.workshop-item-field {
  grid-column: 2;
}

.workshop-size-field {
  grid-column: 3;
}

.workshop-qty-field {
  grid-column: 4;
  max-width: 92px;
}

.workshop-item-used-field[hidden] {
  display: none;
}

.workshop-worker-qty {
  width: 46px;
  min-height: 30px;
  padding: 4px 6px;
  text-align: center;
}

.workshop-row-action {
  width: 34px;
  min-width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
  font-size: 16px;
  line-height: 1;
}

.workshop-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.workshop-panel-heading h2 {
  margin: 0;
}

.workshop-detail-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid #c8d4e1;
}

.workshop-detail-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #526577;
  font-weight: 700;
  cursor: pointer;
}

.workshop-detail-tab.active {
  border-color: #c8d4e1;
  background: #fff;
  color: var(--brand);
}

.workshop-tab-pane {
  display: none;
}

.workshop-tab-pane.active {
  display: block;
}

.workshop-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin: 8px 0 0 0;
}

.workshop-detail-status {
  color: #000;
  font-size: 20px;
  font-weight: 800;
  text-align: left;
  align-self: end;
  padding-bottom: 2px;
}

.workshop-detail-panels {
  display: block;
}

.workshop-detail-panel {
  min-width: 0;
  border: 1px solid #c8d4e1;
  background: #fff;
  padding: 10px;
  overflow: hidden;
}

.workshop-timing-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 8px;
}

.workshop-detail-panel h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--brand);
}

.workshop-detail-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: auto;
}

.workshop-detail-table th,
.workshop-detail-table td {
  border: 1px solid #d8e5eb;
  padding: 6px 8px;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workshop-detail-table th {
  background: #eaf5f6;
}

.workshop-detail-table input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #c6dce5;
  border-radius: 6px;
  background: #fff;
  font: inherit;
}

@media (max-width: 640px) {
  .workshop-detail-screen,
  .workshop-detail-header,
  .workshop-detail-grid,
  .workshop-meta-row,
  .workshop-detail-panels,
  .workshop-detail-panel,
  .workshop-tab-pane,
  .workshop-bottom-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .workshop-detail-screen {
    padding: 10px;
    overflow-x: hidden;
  }

  .workshop-detail-header,
  .workshop-detail-grid,
  .workshop-meta-row {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .workshop-detail-grid > *,
  .workshop-meta-row > *,
  .workshop-detail-grid .workshop-detail-wide,
  .workshop-detail-grid > #openJobDescListButton {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .workshop-detail-title {
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .workshop-detail-actions,
  .inline-actions,
  .workshop-bottom-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #workshopDetailExit {
    transform: none;
    margin-left: auto;
  }

  .workshop-detail-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .workshop-detail-panel,
  .workshop-tab-pane.active {
    overflow-x: auto;
  }

  .workshop-detail-field {
    grid-template-columns: 1fr !important;
  }

  .workshop-detail-field input,
  .workshop-detail-field select,
  .workshop-detail-field textarea,
  .workshop-detail-screen .ts-wrapper,
  .workshop-detail-screen .ts-control {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}

.workshop-item-use-table th:nth-child(1),
.workshop-item-use-table td:nth-child(1) {
  width: 182px;
}

.workshop-item-use-table th:nth-child(2),
.workshop-item-use-table td:nth-child(2) {
  width: auto;
}

.workshop-item-use-table th:nth-child(3),
.workshop-item-use-table td:nth-child(3) {
  width: 80px;
  text-align: center;
}

.workshop-item-use-table th:nth-child(4),
.workshop-item-use-table td:nth-child(4) {
  width: 70px;
}

.workshop-item-use-table th:nth-child(5),
.workshop-item-use-table td:nth-child(5) {
  width: 150px;
}

.workshop-item-use-table th:nth-child(6),
.workshop-item-use-table td:nth-child(6) {
  width: 44px;
  text-align: center;
}

.workshop-item-use-table .ts-wrapper {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.workshop-item-use-qty {
  text-align: center;
}

.workshop-item-use-warehouse {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #c6dce5;
  border-radius: 6px;
  background: #f7fbfc;
  font: inherit;
  box-sizing: border-box;
  line-height: 1.4;
}

.workshop-timing-table th:nth-child(1),
.workshop-timing-table td:nth-child(1) {
  width: 55%;
}

.workshop-timing-table {
  width: 100%;
  min-width: 0;
}

.workshop-timing-table th:nth-child(2),
.workshop-timing-table td:nth-child(2),
.workshop-timing-table th:nth-child(3),
.workshop-timing-table td:nth-child(3) {
  width: 22.5%;
  text-align: center;
}

.workshop-timing-total {
  display: grid;
  grid-template-columns: 1fr 58px 58px;
  gap: 4px;
  align-items: center;
  margin-top: 0;
  font-size: 13px;
}

.workshop-timing-total span {
  text-align: right;
  font-weight: 700;
  padding-right: 8px;
}

.workshop-timing-total strong {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d4e1;
  background: #fff;
  font-weight: 600;
}

.record-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 365px;
  color: #4b5a6b;
  font-size: 12px;
}


.workshop-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.workshop-action-row label {
    white-space: nowrap;
}

#workshopSubmitToSelect {
    width: 500px;
}

#workshopReceivedLocation {
    width: 220px;
}

#workshopReceivedDate {
    min-width: 100px;
    display: inline-block;
}

#workshopSubmitButton,
#workshopLocationButton,
#workshopClaimButton {
    width: 70px;
    min-width: 70px;
}

.workshop-worker-row select:first-child {
    width: 260px;
    font-size: 12px;
}

.workshop-worker-table select {
    width: 150px !important;
    font-size: 12px !important;
}

.workshop-worker-table .ts-wrapper {
    width: 150px;
    font-size: 12px;
}


.workshop-locked-control:disabled {
  background: #f0f4f7;
  color: #555;
  cursor: not-allowed;
  opacity: 1;
  border-color: #d0dce5;
}



.bom-select-panel {
  max-width: 480px;
  width: 90%;
}

.bom-select-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.bom-select-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #c6dce5;
  border-radius: 8px;
  background: #f7fbfc;
  cursor: pointer;
  font: inherit;
}

.bom-select-item:hover { background: #eaf3fb; border-color: var(--brand); }
.bom-select-item strong { color: var(--brand); font-size: 14px; }
.bom-select-item span { color: var(--muted); font-size: 12px; }
