.incident-work-sheet-editor .incident-template-form {
  padding: 0;
}
.worksheet-format-library {
  border-bottom: 1px solid #dde5ef;
}
.worksheet-format-library > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 24px;
  color: #526b87;
  font-size: 12px;
  cursor: pointer;
}
.worksheet-format-library > summary small {
  color: #6683b5;
  font-size: 11px;
}
.worksheet-format-library .incident-format-library {
  padding-bottom: 20px;
}
.incident-work-sheet-editor .incident-template-groups > .incident-tab-panel {
  padding: 20px;
}
.incident-work-sheet-editor
  .incident-template-groups
  > .incident-tab-panel:first-child {
  padding: 0;
}
.incident-work-sheet-editor .worksheet-topbar {
  scroll-margin-block-start: 90px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  border-block: 1px solid var(--ui-line, #dde4ef);
  background: #fff;
}
.worksheet-document {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
.worksheet-document-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  border: 1px solid #d8e2f5;
  border-radius: 7px;
  background: #f3f6fd;
  color: #3659c9;
}
.worksheet-document-icon svg {
  width: 20px;
  height: 20px;
}
.worksheet-document strong,
.worksheet-document small {
  display: block;
}
.worksheet-document strong {
  font-size: 15px;
  font-weight: 600;
  color: #203a57;
}
.worksheet-document small {
  margin-top: 4px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #7c8da3;
}
.worksheet-save-state {
  color: #597c6b;
  font-size: 11px;
}
.worksheet-save-state[data-dirty="true"] {
  color: #a1692e;
}
.worksheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.incident-work-sheet-editor .worksheet-actions .incident-template-actions {
  margin: 0;
  padding: 0;
  border: 0;
}
.incident-work-sheet-editor .worksheet-actions .button {
  min-height: 34px;
  font-size: 11px;
  padding: 7px 11px;
}
.worksheet {
  border-block: 1px solid #dfe5ee;
}
.worksheet-ribbon {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #dce3ee;
}
.worksheet-type-tools,
.worksheet-insert-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 6px;
}
.worksheet-type-tools {
  padding-right: 16px;
  border-right: 1px solid #dfe5ee;
}
.worksheet-type-tools .field {
  margin: 0;
  gap: 3px;
  min-width: 0;
}
.worksheet-type-tools .field > span {
  color: #788aa1;
  font-size: 11px;
  font-weight: 400;
}
.worksheet-type-tools select {
  min-height: 30px;
  padding: 5px 20px 5px 8px;
  font-size: 11px;
  max-width: 155px;
  background: #fff;
}
.worksheet-type-tools .field-error {
  display: none;
}
.worksheet-insert-tools .button {
  min-height: 30px;
  padding: 5px 10px;
  border-color: transparent;
  background: transparent;
  font-size: 11px;
  color: #435f7d;
}
.worksheet-insert-tools .button:hover {
  border-color: #cddaf1;
  background: #fff;
}
.worksheet-layout {
  display: grid;
  grid-template-columns: 138px minmax(300px, 1fr) 250px;
  min-width: 0;
  align-items: stretch;
}
.worksheet-navigation {
  padding: 23px 12px;
  background: #fbfcfe;
  border-right: 1px solid #e0e6ee;
}
.worksheet-kicker {
  display: block;
  margin-bottom: 16px;
  color: #8092a7;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
}
.worksheet-section-links,
.worksheet-more-navigation {
  display: grid;
  gap: 5px;
}
.worksheet-section-links .button,
.worksheet-more-navigation .button {
  justify-content: start;
  padding: 9px 6px;
  min-height: 0;
  color: #5d7289;
  text-align: left;
  font-size: 11px;
  white-space: normal;
}
.worksheet-section-links .button[aria-current="true"] {
  background: #eaf0fc;
  color: #3456b3;
}
.worksheet-section-number {
  display: inline-block;
  margin-right: 7px;
  color: #9aa9ba;
  font-size: 11px;
}
.worksheet-navigation > p {
  margin: 26px 4px 12px;
  padding-top: 19px;
  border-top: 1px solid #e2e8ef;
  color: #8999aa;
  font-size: 11px;
  line-height: 1.8;
}
.worksheet-reference-count {
  margin: 0 4px 24px;
  color: #5174ad;
  font-size: 11px;
  line-height: 1.8;
}
.worksheet-more-navigation {
  border-top: 1px solid #e2e8ef;
  padding-top: 12px;
}
.worksheet-canvas {
  min-width: 0;
  padding: 22px 22px 28px;
  background: #edf1f5;
  overflow-x: auto;
}
.worksheet-ruler {
  display: flex;
  justify-content: space-between;
  max-width: 690px;
  margin: 0 auto 10px;
  color: #96a4b5;
  font: 11px/1.4 var(--ui-font, sans-serif);
  border-bottom: 1px solid #d1dae4;
  padding-bottom: 6px;
}
.worksheet-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 690px;
  min-height: 830px;
  margin: auto;
  padding: 40px;
  border: 1px solid #d6dee8;
  background: white;
  box-shadow: 0 2px 8px #304b6710;
  color: #242e3b;
  font:
    14px/1.55 Calibri,
    sans-serif;
  overflow-wrap: anywhere;
}
.worksheet-sheet[data-font="Arial"] {
  font-family: Arial, sans-serif;
}
.worksheet-sheet[data-font="Times New Roman"] {
  font-family: "Times New Roman", serif;
}
.worksheet-sheet[data-size="10"] {
  font-size: 13px;
}
.worksheet-sheet[data-size="12"] {
  font-size: 16px;
}
.worksheet-sheet[data-size="14"] {
  font-size: 18px;
}
.worksheet-sheet[data-margin="15"] {
  padding: 26px;
}
.worksheet-sheet[data-margin="20"] {
  padding: 34px;
}
.worksheet-sheet[data-margin="30"] {
  padding: 50px;
}
.worksheet-sheet[data-paper="Letter"] {
  min-height: 785px;
}
html .incident-work-sheet-editor .worksheet-sheet [hidden] {
  display: none !important;
}
html .incident-work-sheet-editor .worksheet-sheet .worksheet-writing-field {
  font: inherit;
  color: inherit;
}
html .incident-work-sheet-editor .worksheet-sheet .worksheet-writing-input {
  font: inherit;
  color: inherit;
  border-color: transparent;
  background: transparent;
}
html
  .incident-work-sheet-editor
  .worksheet-sheet
  .worksheet-writing-input:hover {
  background: #fafcff;
  border-color: #e2e9f5;
}
html
  .incident-work-sheet-editor
  .worksheet-sheet
  .worksheet-writing-input:focus {
  background: #fbfcff;
  border-color: #b5c6ef;
}
.worksheet-sheet .worksheet-writing-field {
  margin: 0;
  gap: 4px;
  padding: 8px 0;
  display: block;
}
.worksheet-writing-field > span {
  display: block;
  margin-bottom: 5px;
  color: #98a6b5;
  font: 11px/1.3 var(--ui-font, sans-serif);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.worksheet-writing-field > small:not(.field-error) {
  display: none;
}
.worksheet-writing {
  display: grid;
  min-width: 0;
}
.worksheet-writing .worksheet-writing-size,
.worksheet-sheet .worksheet-writing-input {
  box-sizing: border-box;
  grid-area: 1 / 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  color: inherit;
  line-height: inherit;
  text-align: inherit;
}
.worksheet-writing .worksheet-writing-size {
  visibility: hidden;
  pointer-events: none;
}
.worksheet-sheet .worksheet-writing-input {
  min-height: 34px;
  resize: none;
  overflow: hidden;
  outline-offset: 1px;
  box-shadow: none;
}
.worksheet-sheet .worksheet-writing-input:hover {
  background: #fafcff;
  border-color: #e2e9f5;
}
.worksheet-sheet .worksheet-writing-input:focus {
  background: #fbfcff;
  border-color: #b5c6ef;
  outline: 2px solid #e6edff;
}
.worksheet-sheet .worksheet-writing-title {
  margin: 18px 0 14px;
}
.worksheet-sheet .worksheet-writing-title .worksheet-writing {
  text-align: center;
  font-weight: 700;
  font-size: 1.2em;
}
.worksheet-sheet[data-layout="letter"] .worksheet-writing-title textarea,
.worksheet-sheet[data-layout="reference"] .worksheet-writing-title textarea {
  text-decoration: underline;
}
.worksheet-sheet[data-alignment="both"] .worksheet-writing-body,
.worksheet-sheet[data-alignment="both"] .worksheet-writing-closing {
  text-align: justify;
}
.worksheet-sheet .worksheet-writing-closing {
  margin-top: 12px;
}
.worksheet-paper-header .incident-paper-brand {
  margin-bottom: 8px;
}
.worksheet-paper-header .incident-paper-brand img {
  max-width: 100px;
  max-height: 70px;
  object-fit: contain;
}
.worksheet-paper-header .incident-letter-company {
  margin-bottom: 0;
  font-size: 0.85em;
}
.worksheet-paper-header .incident-letter-company small {
  font-size: 0.8em;
}
.worksheet-paper-identity .incident-letter-identity {
  margin: 0 0 12px;
  font-size: 0.85em;
}
.worksheet-paper-identity .incident-reference-date {
  margin: 0 0 14px;
  font-size: 0.85em;
}
.worksheet-paper-footer .incident-paper-signatures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
}
.worksheet-paper-footer .incident-paper-signature,
.worksheet-paper-footer .incident-paper-worker {
  margin-top: 26px;
  gap: 3px;
  font-size: 0.85em;
  min-width: 0;
}
.worksheet-paper-footer .incident-paper-worker {
  align-items: center;
  text-align: center;
}
.worksheet-paper-footer .incident-paper-signature img {
  width: 120px;
  max-width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
}
.worksheet-sheet[data-signature-alignment="center"] .incident-paper-signature {
  align-items: center;
  text-align: center;
}
.worksheet-sheet[data-signature-alignment="right"] .incident-paper-signature {
  align-items: end;
  text-align: right;
}
.worksheet-sheet[data-layout="reference"] .incident-paper-signature img {
  max-height: 85px;
}
.worksheet-sheet[data-signature-width="20"] .incident-paper-signature img {
  width: 60px;
}
.worksheet-sheet[data-signature-width="21"] .incident-paper-signature img {
  width: 63px;
}
.worksheet-sheet[data-signature-width="22"] .incident-paper-signature img {
  width: 66px;
}
.worksheet-sheet[data-signature-width="23"] .incident-paper-signature img {
  width: 69px;
}
.worksheet-sheet[data-signature-width="24"] .incident-paper-signature img {
  width: 72px;
}
.worksheet-sheet[data-signature-width="25"] .incident-paper-signature img {
  width: 75px;
}
.worksheet-sheet[data-signature-width="26"] .incident-paper-signature img {
  width: 78px;
}
.worksheet-sheet[data-signature-width="27"] .incident-paper-signature img {
  width: 81px;
}
.worksheet-sheet[data-signature-width="28"] .incident-paper-signature img {
  width: 84px;
}
.worksheet-sheet[data-signature-width="29"] .incident-paper-signature img {
  width: 87px;
}
.worksheet-sheet[data-signature-width="30"] .incident-paper-signature img {
  width: 90px;
}
.worksheet-sheet[data-signature-width="31"] .incident-paper-signature img {
  width: 93px;
}
.worksheet-sheet[data-signature-width="32"] .incident-paper-signature img {
  width: 96px;
}
.worksheet-sheet[data-signature-width="33"] .incident-paper-signature img {
  width: 99px;
}
.worksheet-sheet[data-signature-width="34"] .incident-paper-signature img {
  width: 102px;
}
.worksheet-sheet[data-signature-width="35"] .incident-paper-signature img {
  width: 105px;
}
.worksheet-sheet[data-signature-width="36"] .incident-paper-signature img {
  width: 108px;
}
.worksheet-sheet[data-signature-width="37"] .incident-paper-signature img {
  width: 111px;
}
.worksheet-sheet[data-signature-width="38"] .incident-paper-signature img {
  width: 114px;
}
.worksheet-sheet[data-signature-width="39"] .incident-paper-signature img {
  width: 117px;
}
.worksheet-sheet[data-signature-width="40"] .incident-paper-signature img {
  width: 120px;
}
.worksheet-sheet[data-signature-width="41"] .incident-paper-signature img {
  width: 123px;
}
.worksheet-sheet[data-signature-width="42"] .incident-paper-signature img {
  width: 126px;
}
.worksheet-sheet[data-signature-width="43"] .incident-paper-signature img {
  width: 129px;
}
.worksheet-sheet[data-signature-width="44"] .incident-paper-signature img {
  width: 132px;
}
.worksheet-sheet[data-signature-width="45"] .incident-paper-signature img {
  width: 135px;
}
.worksheet-sheet[data-signature-width="46"] .incident-paper-signature img {
  width: 138px;
}
.worksheet-sheet[data-signature-width="47"] .incident-paper-signature img {
  width: 141px;
}
.worksheet-sheet[data-signature-width="48"] .incident-paper-signature img {
  width: 144px;
}
.worksheet-sheet[data-signature-width="49"] .incident-paper-signature img {
  width: 147px;
}
.worksheet-sheet[data-signature-width="50"] .incident-paper-signature img {
  width: 150px;
}
.worksheet-sheet[data-signature-width="51"] .incident-paper-signature img {
  width: 153px;
}
.worksheet-sheet[data-signature-width="52"] .incident-paper-signature img {
  width: 156px;
}
.worksheet-sheet[data-signature-width="53"] .incident-paper-signature img {
  width: 159px;
}
.worksheet-sheet[data-signature-width="54"] .incident-paper-signature img {
  width: 162px;
}
.worksheet-sheet[data-signature-width="55"] .incident-paper-signature img {
  width: 165px;
}
.worksheet-sheet[data-signature-width="56"] .incident-paper-signature img {
  width: 168px;
}
.worksheet-sheet[data-signature-width="57"] .incident-paper-signature img {
  width: 171px;
}
.worksheet-sheet[data-signature-width="58"] .incident-paper-signature img {
  width: 174px;
}
.worksheet-sheet[data-signature-width="59"] .incident-paper-signature img {
  width: 177px;
}
.worksheet-sheet[data-signature-width="60"] .incident-paper-signature img {
  width: 180px;
}
.worksheet-sheet[data-signature-width="61"] .incident-paper-signature img {
  width: 183px;
}
.worksheet-sheet[data-signature-width="62"] .incident-paper-signature img {
  width: 186px;
}
.worksheet-sheet[data-signature-width="63"] .incident-paper-signature img {
  width: 189px;
}
.worksheet-sheet[data-signature-width="64"] .incident-paper-signature img {
  width: 192px;
}
.worksheet-sheet[data-signature-width="65"] .incident-paper-signature img {
  width: 195px;
}
.worksheet-sheet[data-signature-width="66"] .incident-paper-signature img {
  width: 198px;
}
.worksheet-sheet[data-signature-width="67"] .incident-paper-signature img {
  width: 201px;
}
.worksheet-sheet[data-signature-width="68"] .incident-paper-signature img {
  width: 204px;
}
.worksheet-sheet[data-signature-width="69"] .incident-paper-signature img {
  width: 207px;
}
.worksheet-sheet[data-signature-width="70"] .incident-paper-signature img {
  width: 210px;
}
.worksheet-page-caption {
  margin: 18px 0 0;
  color: #8a99ab;
  font-size: 11px;
  text-align: center;
  line-height: 1.6;
}
.worksheet-resources {
  min-width: 0;
  padding: 22px 16px;
  border-left: 1px solid #dfe6ee;
  background: #fcfdff;
}
.worksheet-resources > h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #25425e;
}
.worksheet-resources > p,
.worksheet-resource-note {
  margin: 0 0 18px;
  font-size: 11px;
  color: #8796a8;
  line-height: 1.7;
}
.worksheet-resource-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border-radius: 6px;
  background: #eef2f8;
}
.worksheet-resource-tabs .button {
  flex: 1;
  min-height: 29px;
  padding: 5px;
  color: #7a8ca3;
  font-size: 11px;
}
.worksheet-resource-tabs .button[aria-pressed="true"] {
  background: #fff;
  color: #365ca3;
  box-shadow: 0 1px 4px #1e416412;
}
.worksheet-resources [hidden] {
  display: none !important;
}
.worksheet-resources .field > span {
  font-size: 11px;
}
.worksheet-resources .field input,
.worksheet-resources .field select,
.worksheet-resources .field textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 7px;
  font-size: 11px;
}
.worksheet-resources .field {
  margin: 10px 0;
}
.worksheet-resources .incident-template-tokens {
  padding: 0;
  background: transparent;
  border: 0;
}
.worksheet-resources .incident-template-tokens summary {
  font-size: 11px;
}
.worksheet-resources .incident-template-tokens p {
  color: #8b99ac;
  font-size: 11px;
}
.worksheet-resources .incident-template-tokens > div {
  display: grid;
  gap: 6px;
}
.worksheet-resources .incident-template-tokens > div .button {
  display: flex;
  justify-content: start;
  min-height: 33px;
  padding: 7px 9px;
  border-color: #dfe7f4;
  border-radius: 5px;
  background: #f4f7fd;
  color: #4f70a1;
  font-size: 11px;
  white-space: normal;
  text-align: left;
}
.worksheet-resources .incident-template-tokens > div .button::before {
  content: "{ }";
  margin-right: 7px;
  color: #8ca5cf;
  font-size: 11px;
}
.worksheet-document-options {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e0e7f0;
}
.worksheet-document-options > summary {
  color: #69809c;
  font-size: 11px;
  cursor: pointer;
}
.worksheet-document-options > div {
  padding-top: 10px;
  display: grid;
  min-width: 0;
  gap: 10px;
}
.worksheet-document-options .incident-template-presets {
  padding: 0;
}
.worksheet-document-options .button {
  font-size: 11px;
  white-space: normal;
}
.worksheet-article-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 18px;
}
.worksheet-article-list > .button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px;
  border: 1px solid #e0e7f1;
  white-space: normal;
  font-size: 11px;
  color: #3f628b;
}
.worksheet-article-list > .button small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: #8998aa;
}
.worksheet-article-list > .message {
  padding: 8px;
  font-size: 11px;
}
.worksheet-resources .incident-contract-articles {
  padding: 10px;
  border-radius: 6px;
}
.worksheet-resources .incident-contract-articles h3 {
  font-size: 12px;
}
.worksheet-resources .incident-contract-articles header {
  display: block;
}
.worksheet-resources .incident-contract-articles header p {
  font-size: 11px;
}
.worksheet-resources .incident-contract-symbol {
  display: none;
}
.worksheet-resources .incident-contract-count {
  display: inline-block;
  margin: 6px 0;
}
.worksheet-resources .incident-contract-row {
  display: block;
  padding: 8px;
}
.worksheet-resources .incident-contract-articles .button {
  font-size: 11px;
  white-space: normal;
}
.worksheet-resources .incident-logo-status {
  padding: 9px;
  font-size: 11px;
}
.worksheet-resources .incident-logo-status img {
  width: 40px;
  height: 40px;
}
.incident-work-sheet-editor .incident-template-feedback {
  padding: 10px 22px 16px;
  margin: 0;
}
@media (min-width: 1200px) {
  .settings-workspace:has(.incident-work-sheet-editor) {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }
}
@media (max-width: 1200px) {
  .worksheet-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .worksheet-navigation {
    display: none;
  }
  .worksheet-canvas {
    padding: 20px 14px;
  }
  .worksheet-sheet {
    padding: 26px;
  }
}
@media (max-width: 800px) {
  .worksheet-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .worksheet-resources {
    border-left: 0;
    border-top: 1px solid #dfe6ee;
  }
  .worksheet-resource-data .incident-template-tokens > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .worksheet-canvas {
    padding: 15px 10px;
  }
  .worksheet-sheet,
  .worksheet-sheet[data-margin] {
    padding: 18px;
    min-height: 650px;
  }
  .worksheet-sheet .worksheet-writing-input {
    font-size: 13px;
  }
  .worksheet-sheet .worksheet-writing-title .worksheet-writing {
    font-size: 16px;
  }
  .worksheet-paper-footer .incident-paper-signatures {
    gap: 12px;
  }
  .worksheet-topbar {
    gap: 9px;
  }
  .worksheet-save-state {
    margin-left: auto;
  }
  .worksheet-actions {
    width: 100%;
  }
  .worksheet-ribbon {
    padding: 10px;
    gap: 8px;
  }
  .worksheet-type-tools {
    padding: 0;
    border: 0;
  }
  .worksheet-type-tools select {
    max-width: 125px;
  }
  .worksheet-type-tools .field > span {
    font-size: 11px;
  }
  .worksheet-actions .button {
    flex: 1;
  }
}
