.wf-workspace {
  color: #20334f;
  min-width: 0;
  max-width: 1520px;
  margin: 0 auto;
}
.wf-workspace *,
.wf-dialog * {
  box-sizing: border-box;
}
.wf-workspace .page-title {
  gap: 16px;
  align-items: flex-start;
}
.wf-server {
  background: #e6f2ee;
  color: #236650;
  border: 1px solid #c7e3d7;
  border-radius: 20px;
  padding: 8px 13px;
  white-space: nowrap;
  font-size: 12px;
}
.wf-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0;
}
.wf-actions button {
  min-height: 38px;
}
.wf-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0;
}
.wf-summary > div {
  background: white;
  border: 1px solid #e0e7f0;
  padding: 18px 23px;
  border-radius: 12px;
}
.wf-summary small,
.wf-summary b {
  display: block;
}
.wf-summary b {
  font-size: 27px;
  margin-top: 4px;
}
.wf-card {
  background: #fff;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  margin: 18px 0;
  padding: 24px;
  box-shadow: 0 4px 16px #17345003;
}
.wf-card > header {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e9edf3;
}
.wf-card h2 {
  font-size: 18px;
  margin: 0;
}
.wf-card header p,
.wf-note {
  font-size: 13px;
  color: #63748a;
  line-height: 1.7;
  margin: 7px 0 0;
}
.wf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.wf-equipment {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.wf-field,
.wf-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}
.wf-field input,
.wf-field textarea,
.wf-field select,
.wf-dialog input,
.wf-dialog select,
.wf-filters input,
.wf-filters select {
  font: inherit;
  color: #223851;
  border: 1px solid #ccd6e2;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
  min-width: 0;
}
.wf-field textarea {
  resize: vertical;
  line-height: 1.6;
}
.wf-field input:focus,
.wf-field textarea:focus,
.wf-field select:focus {
  outline: 2px solid #719be8;
  outline-offset: 1px;
}
.wf-field [aria-invalid='true'] {
  border-color: #c33a48;
}
.wf-wide {
  grid-column: 1/-1;
}
.wf-field small:empty {
  display: none;
}
.wf-workspace [data-error] {
  color: #b42f43;
  font-weight: 500;
  font-size: 12px;
}
.wf-document-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.wf-document-fields:disabled input,
.wf-document-fields:disabled textarea,
.wf-document-fields:disabled select {
  opacity: 1;
  color: #35485d;
  background: #f5f7fa;
}
.wf-document-fields:disabled button,
.wf-document-fields:disabled .wf-upload {
  display: none;
}
.wf-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 500;
}
.wf-check input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: #285bb3;
  margin: 3px 0;
}
.wf-hazards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}
.wf-hazards .wf-check {
  background: #f7f9fc;
  border-radius: 7px;
  padding: 10px;
}
.wf-days {
  display: grid;
  gap: 12px;
}
.wf-day {
  border: 1px solid #dce4ef;
  border-radius: 10px;
  overflow: hidden;
}
.wf-day header {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f3f6fb;
  padding: 12px 16px;
}
.wf-day header > b {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e2eafa;
  text-align: center;
  line-height: 28px;
  color: #28539b;
}
.wf-day header .wf-check {
  margin-left: auto;
}
.wf-day fieldset {
  border: 0;
  padding: 15px;
  min-width: 0;
}
.wf-day fieldset:disabled {
  display: none;
}
.wf-day > p {
  margin: 12px 16px;
  font-size: 13px;
  color: #7d8796;
}
.wf-day-fields {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(160px, 2fr) 110px;
  gap: 12px;
  align-items: start;
}
.wf-day-fields textarea {
  min-height: 43px;
}
.wf-risk-rows {
  display: grid;
  gap: 14px;
}
.wf-risk-rows article {
  border-left: 3px solid #789cd8;
  background: #f7f9fc;
  padding: 18px;
  border-radius: 0 8px 8px 0;
}
.wf-risk-rows h3 {
  font-size: 14px;
  margin: 0 0 16px;
}
.wf-table-scroll {
  overflow-x: auto;
}
.wf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 650px;
}
.wf-table th {
  font-weight: 600;
  background: #f3f6fa;
  color: #62748c;
  text-align: left;
  padding: 13px 14px;
  white-space: nowrap;
}
.wf-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e9edf2;
  vertical-align: middle;
}
.wf-table td small {
  display: block;
  font-size: 12px;
  color: #758297;
  margin-top: 5px;
}
.wf-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.wf-filters input {
  max-width: 400px;
}
.wf-filters select {
  width: 150px;
}
.wf-empty {
  text-align: center;
  padding: 40px;
  color: #758297;
}
.wf-document-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: #193657;
  color: white;
  border-radius: 12px;
  gap: 15px;
}
.wf-document-head b {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.wf-document-head small {
  display: block;
  color: #c3d3e6;
  margin-top: 7px;
}
.wf-message {
  padding: 14px 18px;
  border: 1px solid #cbdcee;
  color: #28527b;
  background: #eff6fd;
  border-radius: 9px;
  line-height: 1.7;
  font-size: 13px;
  margin: 15px 0;
  overflow-wrap: anywhere;
}
.wf-error {
  color: #a42d3d;
  background: #fff0f2;
  border-color: #ebc5cb;
}
.wf-route {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.wf-route li {
  flex: 1;
  min-width: 160px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  padding: 16px;
  background: #f9fafc;
}
.wf-route small,
.wf-route b,
.wf-route span {
  display: block;
}
.wf-route b {
  margin: 7px 0;
}
.wf-route small,
.wf-route span {
  font-size: 12px;
  color: #66798f;
}
.wf-route p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wf-route .wf-current {
  border-color: #5384cc;
  background: #eff5ff;
}
.wf-route img {
  display: block;
  max-width: 100px;
  max-height: 65px;
  object-fit: contain;
  margin-top: 8px;
}
.wf-history {
  padding: 0;
  list-style: none;
  max-height: 350px;
  overflow: auto;
}
.wf-history li {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #e8edf4;
  padding: 12px 0;
  font-size: 12px;
  flex-wrap: wrap;
}
.wf-history time {
  color: #7a8797;
}
.wf-pledges {
  padding-left: 25px;
  font-size: 13px;
  line-height: 1.9;
}
.wf-pledges li {
  padding: 4px 0;
}
.wf-attendees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.wf-attendees article {
  padding: 15px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  min-width: 0;
}
.wf-attendees img,
.wf-sign-empty {
  width: 100%;
  height: 80px;
  object-fit: contain;
  display: block;
  text-align: center;
  line-height: 80px;
  margin: 12px 0;
  background: #f8fafc;
  color: #8291a3;
  font-size: 12px;
}
.wf-attendees .wf-actions {
  margin-bottom: 0;
}
.wf-attendees button {
  font-size: 12px;
  padding: 7px 9px;
}
.wf-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.wf-photos article {
  border: 1px dashed #c3d2e3;
  border-radius: 9px;
  padding: 12px;
  font-size: 13px;
}
.wf-photos img,
.wf-photo-empty {
  width: 100%;
  aspect-ratio: 85/75;
  object-fit: contain;
  background: #f2f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #8392a4;
  margin: 12px 0;
}
.wf-upload {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0;
  color: #41618b;
  max-width: 100%;
}
.wf-upload input {
  max-width: 100%;
  font-size: 11px;
}
.wf-files {
  padding: 0;
  list-style: none;
}
.wf-files li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.wf-dialog {
  border: 1px solid #d6dfeb;
  border-radius: 16px;
  width: min(800px, 94vw);
  max-height: 88vh;
  overflow: auto;
  padding: 25px;
  color: #20334f;
  box-shadow: 0 24px 80px #12213655;
}
.wf-dialog::backdrop {
  background: #10203988;
}
.wf-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.wf-dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.wf-dialog-head button {
  font-size: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.wf-dialog p {
  font-size: 13px;
  line-height: 1.7;
}
.wf-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f6fa;
  padding: 15px;
  font-size: 12px;
  max-height: 55vh;
  overflow: auto;
}
.wf-dialog .solid-btn {
  margin-top: 18px;
}
.wf-dialog #wfDialogError {
  color: #b12c42;
}
.wf-sign-preview {
  display: block;
  width: 200px;
  height: 100px;
  object-fit: contain;
  background: #f5f7fa;
}
.wf-risk-picker {
  max-height: 50vh;
  overflow: auto;
  margin: 14px 0;
}
.wf-risk-picker label {
  flex-direction: row;
  font-weight: 400;
  padding: 13px 5px;
  border-bottom: 1px solid #e2e8f0;
}
.wf-risk-picker input {
  width: 16px;
  height: 16px;
}
.wf-risk-picker small {
  display: block;
  margin-top: 6px;
  color: #748295;
}
.wf-dialog canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #b8c8da;
  border-radius: 8px;
  background: #fff;
  touch-action: none;
}
.wf-workspace[aria-busy='true'] {
  cursor: progress;
}
.wf-workspace details > summary {
  cursor: pointer;
  font-size: 13px;
  color: #41648a;
}
.wf-inbox {
  margin-bottom: 25px;
}
.wf-inbox .wf-card {
  border-color: #a8bfdd;
}
.wf-document-fields:disabled .wf-day fieldset:not([disabled]) {
  display: block;
}
.wf-filters {
  flex-wrap: wrap;
}
.wf-filters input {
  flex: 1 1 180px;
}
.wf-filters input[type='date'] {
  max-width: 190px;
}
.wf-filters select {
  flex: 0 0 140px;
}
@media (min-width: 1251px) {
  .wf-days {
    gap: 0;
    border: 1px solid #dce4ef;
    border-radius: 9px;
    overflow: hidden;
  }
  .wf-day {
    border: 0;
    border-bottom: 1px solid #dce4ef;
    border-radius: 0;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .wf-day:last-child {
    border-bottom: 0;
  }
  .wf-day header {
    align-content: center;
    flex-wrap: wrap;
    gap: 7px;
  }
  .wf-day header .wf-check {
    margin-left: 0;
    width: 100%;
  }
  .wf-day > p {
    align-self: center;
  }
  .wf-day fieldset {
    padding: 12px;
  }
  .wf-day-fields {
    grid-template-columns: minmax(100px, 1fr) minmax(150px, 2fr) 90px;
  }
}
@media (max-width: 1250px) {
  .wf-attendees,
  .wf-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wf-equipment {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wf-hazards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wf-day-fields {
    grid-template-columns: 1fr 2fr;
  }
  .wf-day-fields > .wf-field:last-child {
    grid-column: 1/-1;
    max-width: 150px;
  }
}
@media (max-width: 700px) {
  .wf-card {
    padding: 16px;
  }
  .wf-grid,
  .wf-hazards {
    grid-template-columns: 1fr;
  }
  .wf-equipment {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wf-summary {
    gap: 8px;
  }
  .wf-summary > div {
    padding: 13px;
  }
  .wf-summary b {
    font-size: 23px;
  }
  .wf-workspace .page-title {
    flex-direction: column;
  }
  .wf-day-fields {
    grid-template-columns: 1fr;
  }
  .wf-day header {
    gap: 9px;
    flex-wrap: wrap;
  }
  .wf-route {
    flex-direction: column;
  }
  .wf-photos,
  .wf-attendees {
    grid-template-columns: 1fr;
  }
  .wf-document-head {
    padding: 16px;
    align-items: flex-start;
  }
  .wf-document-head small {
    font-size: 11px;
  }
  .wf-dialog {
    padding: 18px;
  }
  .wf-filters {
    flex-wrap: wrap;
  }
  .wf-actions button {
    font-size: 12px;
  }
  .wf-photos img,
  .wf-photo-empty {
    max-height: 260px;
  }
  .wf-server {
    font-size: 11px;
  }
  .wf-table {
    min-width: 630px;
  }
}
