#information-commercial-offer {
  padding-bottom: 34px;
}

/* v1029: keep the commercial-offer workspace readable on ultra-wide screens. */
@media (min-width: 3000px) {
  #information-commercial-offer.sg-cp-page {
    max-width: 1760px !important;
  }
}

#information-commercial-offer * {
  box-sizing: border-box;
}

.sg-cp-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sg-border, #252c32);
}

.sg-cp-heading .us-main-shop-title {
  margin: 3px 0 16px;
}

.sg-cp-heading p {
  margin: 0;
  color: var(--sg-muted, #a2a9af);
  font-size: 13px;
}

.sg-cp-eyebrow {
  color: var(--sg-red, #ef171c);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.sg-cp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
  align-items: start;
  gap: 20px;
}

.sg-cp-editor {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.sg-cp-card,
.sg-cp-preview-panel {
  overflow: visible;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 12px;
  background: var(--sg-surface, #10151a);
  box-shadow: var(--sg-shadow, 0 14px 38px rgba(0, 0, 0, .2));
}

.sg-cp-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--sg-border, #252c32);
}

.sg-cp-card__head--actions > div {
  min-width: 0;
  flex: 1 1 auto;
}

.sg-cp-card__head h2 {
  margin: 0 0 2px;
  color: var(--sg-text, #f5f7f8);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.sg-cp-card__head p {
  margin: 0;
  color: var(--sg-muted, #a2a9af);
  font-size: 11px;
  line-height: 1.35;
}

.sg-cp-card__number {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(239, 23, 28, .55);
  border-radius: 9px;
  background: rgba(239, 23, 28, .09);
  color: var(--sg-red, #ef171c);
  font-size: 12px;
  font-weight: 900;
}

.sg-cp-card__body {
  padding: 16px;
}

.sg-cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sg-cp-btn:hover {
  transform: translateY(-1px);
}

.sg-cp-btn--quiet {
  border-color: var(--sg-border, #252c32);
  background: var(--sg-surface-2, #151b20);
  color: var(--sg-text, #f5f7f8);
}

.sg-cp-btn--quiet:hover,
.sg-cp-btn--quiet:focus-visible {
  border-color: rgba(239, 23, 28, .7);
  color: var(--sg-red, #ef171c);
}

.sg-cp-btn--primary {
  border-color: var(--sg-red, #ef171c);
  background: var(--sg-red, #ef171c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 23, 28, .2);
}

.sg-cp-btn--primary:hover,
.sg-cp-btn--primary:focus-visible {
  border-color: var(--sg-red-hover, #c90f14);
  background: var(--sg-red-hover, #c90f14);
  color: #fff;
}

.sg-cp-fields,
.sg-cp-custom-seller {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sg-cp-field {
  min-width: 0;
}

.sg-cp-field--wide {
  grid-column: 1 / -1;
}

.sg-cp-field label,
.sg-cp-item__control label {
  display: block;
  margin: 0 0 5px;
  color: var(--sg-muted, #a2a9af) !important;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.sg-cp-field label b {
  color: var(--sg-red, #ef171c);
}

#information-commercial-offer input,
#information-commercial-offer textarea,
#information-commercial-offer select {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--sg-border, #252c32) !important;
  border-radius: 7px !important;
  outline: 0;
  background: var(--sg-surface-2, #151b20) !important;
  color: var(--sg-text, #f5f7f8) !important;
  font-size: 11px;
  box-shadow: none !important;
}

#information-commercial-offer textarea {
  resize: vertical;
}

#information-commercial-offer input:focus,
#information-commercial-offer textarea:focus,
#information-commercial-offer select:focus {
  border-color: var(--sg-red, #ef171c) !important;
  box-shadow: 0 0 0 2px rgba(239, 23, 28, .11) !important;
}

#information-commercial-offer input.sg-cp-invalid,
#information-commercial-offer textarea.sg-cp-invalid {
  border-color: var(--sg-red, #ef171c) !important;
}

.sg-cp-search {
  position: relative;
  z-index: 8;
}

.sg-cp-search > i {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 2;
  color: var(--sg-muted, #a2a9af);
  transform: translateY(-50%);
}

#information-commercial-offer .sg-cp-search input {
  height: 44px;
  padding-right: 108px;
  padding-left: 38px;
  font-size: 12px;
}

.sg-cp-search__status {
  position: absolute;
  top: 50%;
  right: 12px;
  max-width: 92px;
  overflow: hidden;
  color: var(--sg-muted, #a2a9af);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
}

.sg-cp-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: auto;
  max-height: 360px;
  padding: 6px;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 9px;
  background: var(--sg-surface, #10151a);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .36);
}

.sg-cp-search-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 6px 7px;
  border: 0;
  border-bottom: 1px solid var(--sg-border, #252c32);
  background: transparent;
  color: var(--sg-text, #f5f7f8);
  text-align: left;
  cursor: pointer;
}

.sg-cp-search-result:last-child {
  border-bottom: 0;
}

.sg-cp-search-result:hover,
.sg-cp-search-result:focus-visible {
  border-radius: 7px;
  outline: 0;
  background: rgba(239, 23, 28, .07);
}

.sg-cp-search-result img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 7px;
  background: var(--sg-surface-2, #151b20);
}

.sg-cp-search-result strong,
.sg-cp-search-result small {
  display: block;
}

.sg-cp-search-result strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-cp-search-result small {
  margin-top: 2px;
  color: var(--sg-muted, #a2a9af);
  font-size: 8px;
}

.sg-cp-search-result__price {
  color: var(--sg-text, #f5f7f8);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.sg-cp-search-result__add {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  background: var(--sg-red, #ef171c);
  color: #fff;
}

.sg-cp-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sg-cp-item {
  display: grid;
  grid-template-columns: 48px minmax(160px, 1.3fr) minmax(250px, .9fr) 110px 34px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 9px;
  background: var(--sg-surface-2, #151b20);
}

.sg-cp-item__image {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 8px;
  background: var(--sg-surface, #10151a);
  color: var(--sg-muted, #a2a9af);
}

.sg-cp-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sg-cp-item__identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#information-commercial-offer .sg-cp-item__identity input {
  min-height: 27px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
}

#information-commercial-offer .sg-cp-item__identity input + input {
  color: var(--sg-muted, #a2a9af) !important;
  font-size: 8px;
  font-weight: 600;
}

.sg-cp-item__numbers {
  display: grid;
  grid-template-columns: 64px minmax(96px, 1fr) 66px;
  gap: 7px;
}

.sg-cp-item__control {
  min-width: 0;
}

#information-commercial-offer .sg-cp-item__control input {
  min-height: 31px;
  padding: 5px 7px;
  font-size: 10px;
}

.sg-cp-item__sum span,
.sg-cp-item__sum strong {
  display: block;
  text-align: right;
}

.sg-cp-item__sum span {
  margin-bottom: 5px;
  color: var(--sg-muted, #a2a9af);
  font-size: 8px;
  font-weight: 700;
}

.sg-cp-item__sum strong {
  color: var(--sg-text, #f5f7f8);
  font-size: 11px;
  white-space: nowrap;
}

.sg-cp-item__remove,
.sg-cp-icon-btn {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--sg-border, #252c32);
  border-radius: 8px;
  background: var(--sg-surface, #10151a);
  color: var(--sg-muted, #a2a9af);
  cursor: pointer;
}

.sg-cp-item__remove:hover,
.sg-cp-item__remove:focus-visible,
.sg-cp-icon-btn:hover,
.sg-cp-icon-btn:focus-visible {
  border-color: var(--sg-red, #ef171c);
  color: var(--sg-red, #ef171c);
  outline: 0;
}

.sg-cp-empty {
  display: grid;
  min-height: 150px;
  margin-top: 12px;
  padding: 18px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--sg-border, #252c32);
  border-radius: 9px;
  color: var(--sg-muted, #a2a9af);
  text-align: center;
}

.sg-cp-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 23, 28, .08);
  color: var(--sg-red, #ef171c);
}

.sg-cp-empty strong {
  color: var(--sg-text, #f5f7f8);
  font-size: 11px;
}

.sg-cp-empty p {
  margin: 3px 0 0;
  font-size: 9px;
}

.sg-cp-totals {
  display: grid;
  justify-content: end;
  gap: 0;
  margin-top: 14px;
}

.sg-cp-totals > div {
  display: grid;
  grid-template-columns: 150px 125px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--sg-border, #252c32);
  color: var(--sg-muted, #a2a9af);
  font-size: 10px;
  font-weight: 700;
}

.sg-cp-totals strong {
  color: var(--sg-text, #f5f7f8);
  text-align: right;
  white-space: nowrap;
}

.sg-cp-total-delivery label {
  margin: 0;
  color: var(--sg-muted, #a2a9af) !important;
  font-size: 10px;
}

#information-commercial-offer .sg-cp-total-delivery input {
  width: 88px;
  min-height: 28px;
  margin-left: auto;
  padding: 4px 6px;
  text-align: right;
}

.sg-cp-total-delivery strong {
  display: none;
}

.sg-cp-totals .sg-cp-total-grand {
  min-height: 42px;
  border-bottom: 0;
  color: var(--sg-text, #f5f7f8);
  font-size: 13px;
  font-weight: 900;
}

.sg-cp-total-grand strong {
  color: var(--sg-red, #ef171c);
  font-size: 17px;
}

.sg-cp-preview-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.sg-cp-preview-toolbar,
.sg-cp-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sg-border, #252c32);
}

.sg-cp-preview-toolbar strong,
.sg-cp-preview-toolbar span {
  display: block;
}

.sg-cp-preview-toolbar strong {
  color: var(--sg-text, #f5f7f8);
  font-size: 12px;
}

.sg-cp-preview-toolbar span {
  margin-top: 2px;
  color: var(--sg-muted, #a2a9af);
  font-size: 8px;
}

.sg-cp-preview-close {
  display: none;
}

.sg-cp-paper-wrap {
  overflow: auto;
  max-height: calc(100vh - 190px);
  padding: 13px;
  background: #090d10;
}

.sg-cp-paper {
  min-height: 595px;
  padding: 26px 27px 22px;
  background: #fff;
  color: #20262b;
  font-family: Arial, sans-serif;
  font-size: 8px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.sg-cp-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 13px;
  border-bottom: 2px solid #d71c27;
}

.sg-cp-doc-logo {
  color: #151a1e;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.8px;
}

.sg-cp-doc-logo span {
  color: #d71c27;
}

.sg-cp-doc-logo small {
  display: block;
  margin-top: 3px;
  color: #697580;
  font-size: 4px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.sg-cp-doc-kind {
  color: #697580;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
  text-align: right;
}

.sg-cp-doc-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0 12px;
}

.sg-cp-doc-title h2 {
  margin: 0 0 2px;
  color: #20262b;
  font-size: 14px;
}

.sg-cp-doc-title span,
.sg-cp-doc-valid span {
  color: #697580;
  font-size: 6px;
}

.sg-cp-doc-valid {
  text-align: right;
}

.sg-cp-doc-valid strong {
  display: block;
  margin-top: 2px;
  font-size: 8px;
}

.sg-cp-doc-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dfe4e8;
  border-bottom: 1px solid #dfe4e8;
}

.sg-cp-doc-parties section {
  min-width: 0;
  padding: 11px 12px 11px 0;
}

.sg-cp-doc-parties section + section {
  padding-right: 0;
  padding-left: 12px;
  border-left: 1px solid #e8ebee;
}

.sg-cp-doc-parties section > span {
  display: block;
  margin-bottom: 5px;
  color: #697580;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .8px;
}

.sg-cp-doc-parties strong {
  display: block;
  font-size: 7px;
  line-height: 1.35;
}

.sg-cp-doc-parties p {
  margin: 5px 0 0;
  color: #596570;
  font-size: 6px;
  line-height: 1.45;
  white-space: pre-line;
}

.sg-cp-paper h3 {
  margin: 13px 0 6px;
  color: #20262b;
  font-size: 8px;
}

.sg-cp-doc-items {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.sg-cp-doc-items th,
.sg-cp-doc-items td {
  padding: 6px 5px;
  border-bottom: 1px solid #e5e8eb;
  overflow-wrap: anywhere;
}

.sg-cp-doc-items th {
  background: #f2f4f6;
  color: #596570;
  font-size: 5px;
  text-align: left;
}

.sg-cp-doc-items th:first-child {
  width: 52%;
}

.sg-cp-doc-items th:not(:first-child),
.sg-cp-doc-items td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.sg-cp-doc-item-model {
  display: block;
  margin-top: 2px;
  color: #697580;
  font-size: 5px;
}

.sg-cp-doc-empty-row td {
  padding: 18px 5px;
  color: #8a949d;
  text-align: center !important;
}

.sg-cp-doc-totals {
  width: 58%;
  margin: 9px 0 0 auto;
}

.sg-cp-doc-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  padding: 3px 5px;
}

.sg-cp-doc-totals > div:last-child {
  border-top: 1.5px solid #20262b;
  font-size: 9px;
  font-weight: 900;
}

.sg-cp-doc-terms {
  margin-top: 12px;
  padding-top: 1px;
  page-break-inside: avoid;
}

.sg-cp-doc-terms dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.sg-cp-doc-terms dl > div {
  min-width: 0;
}

.sg-cp-doc-terms dt {
  color: #697580;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.sg-cp-doc-terms dd {
  margin: 3px 0 0;
  font-size: 6px;
}

.sg-cp-doc-terms > p {
  margin: 9px 0 0;
  padding: 7px 8px;
  border-left: 2px solid #d71c27;
  background: #f6f7f8;
  font-size: 6px;
  white-space: pre-line;
}

.sg-cp-doc-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #dfe4e8;
  color: #697580;
  font-size: 5px;
}

.sg-cp-preview-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--sg-border, #252c32);
  border-bottom: 0;
}

.sg-cp-preview-actions .sg-cp-btn {
  width: 100%;
}

.sg-cp-mobile-bar {
  display: none;
}

html[data-sg-theme="light"] .sg-cp-paper-wrap {
  background: #e6e9ec;
}

@media (max-width: 1199px) {
  .sg-cp-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .sg-cp-item {
    grid-template-columns: 42px minmax(130px, 1fr) minmax(220px, .9fr) 92px 32px;
    gap: 7px;
  }

  .sg-cp-item__image {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 991.98px) {
  #information-commercial-offer {
    padding-bottom: 100px;
  }

  .sg-cp-layout {
    display: block;
  }

  .sg-cp-preview-panel {
    position: fixed;
    z-index: 10080;
    inset: 0;
    display: none;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: var(--sg-bg, #080c0f);
  }

  .sg-cp-preview-panel.is-open {
    display: block;
  }

  body.sg-cp-preview-active {
    overflow: hidden;
  }

  .sg-cp-preview-panel .sg-cp-preview-toolbar {
    position: sticky;
    z-index: 4;
    top: 0;
    background: var(--sg-surface, #10151a);
  }

  .sg-cp-preview-close {
    display: grid;
  }

  .sg-cp-paper-wrap {
    max-height: none;
    padding: 12px;
  }

  .sg-cp-paper {
    width: min(100%, 720px);
    min-height: 0;
    margin: 0 auto;
  }

  .sg-cp-preview-actions {
    position: sticky;
    bottom: 0;
    background: var(--sg-surface, #10151a);
  }

  .sg-cp-mobile-bar {
    position: fixed;
    z-index: 10020;
    right: 10px;
    bottom: 72px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 9px 10px 9px 14px;
    border: 1px solid rgba(239, 23, 28, .5);
    border-radius: 13px;
    background: rgba(16, 21, 26, .97);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
    backdrop-filter: blur(12px);
  }

  .sg-cp-mobile-bar span,
  .sg-cp-mobile-bar strong {
    display: block;
  }

  .sg-cp-mobile-bar span {
    color: #a2a9af;
    font-size: 8px;
  }

  .sg-cp-mobile-bar strong {
    margin-top: 1px;
    color: #fff;
    font-size: 15px;
  }
}

@media (max-width: 767.98px) {
  #information-commercial-offer.sg-cp-page {
    width: calc(100% - 20px) !important;
  }

  .sg-cp-heading {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .sg-cp-heading .sg-cp-btn {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
  }

  .sg-cp-heading .sg-cp-btn span {
    display: none;
  }

  .sg-cp-heading p {
    max-width: 290px;
    font-size: 11px;
  }

  .sg-cp-card__head {
    min-height: 60px;
    padding: 10px 11px;
  }

  .sg-cp-card__head--actions {
    flex-wrap: wrap;
  }

  .sg-cp-card__head--actions .sg-cp-manual-add {
    width: 100%;
    margin-left: 42px;
  }

  .sg-cp-card__body {
    padding: 11px;
  }

  .sg-cp-fields,
  .sg-cp-custom-seller {
    grid-template-columns: 1fr;
  }

  .sg-cp-field--wide {
    grid-column: auto;
  }

  .sg-cp-search-results {
    position: fixed;
    z-index: 10100;
    top: 105px;
    right: 10px;
    bottom: 82px;
    left: 10px;
    max-height: none;
    padding: 8px;
  }

  .sg-cp-search-result {
    grid-template-columns: 46px minmax(0, 1fr) auto 28px;
    min-height: 60px;
  }

  .sg-cp-search-result img {
    width: 46px;
    height: 46px;
  }

  .sg-cp-item {
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: start;
    padding: 8px;
  }

  .sg-cp-item__image {
    grid-row: 1;
    grid-column: 1;
  }

  .sg-cp-item__identity {
    grid-row: 1;
    grid-column: 2;
  }

  .sg-cp-item__numbers {
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: 68px minmax(105px, 1fr) 72px;
  }

  .sg-cp-item__sum {
    display: flex;
    grid-row: 3;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    padding-top: 6px;
    border-top: 1px solid var(--sg-border, #252c32);
  }

  .sg-cp-item__sum span,
  .sg-cp-item__sum strong {
    margin: 0;
    text-align: left;
  }

  .sg-cp-item__remove {
    grid-row: 1;
    grid-column: 3;
  }

  .sg-cp-totals {
    justify-content: stretch;
  }

  .sg-cp-totals > div {
    grid-template-columns: 1fr auto;
  }

  .sg-cp-paper {
    padding: 20px 18px;
  }

  .sg-cp-doc-parties,
  .sg-cp-doc-terms dl {
    grid-template-columns: 1fr;
  }

  .sg-cp-doc-parties section + section {
    padding-left: 0;
    border-top: 1px solid #e8ebee;
    border-left: 0;
  }

  .sg-cp-doc-totals {
    width: 72%;
  }
}

@media (max-width: 420px) {
  .sg-cp-doc-items th:nth-child(2),
  .sg-cp-doc-items td:nth-child(2) {
    width: 13%;
  }

  .sg-cp-paper {
    padding: 17px 13px;
  }

  .sg-cp-doc-kind {
    font-size: 5px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  body > *:not(#information-commercial-offer),
  #information-commercial-offer > *:not(.sg-cp-layout),
  #information-commercial-offer .sg-cp-editor,
  #information-commercial-offer .sg-cp-preview-toolbar,
  #information-commercial-offer .sg-cp-preview-actions,
  #information-commercial-offer .sg-cp-mobile-bar {
    display: none !important;
  }

  #information-commercial-offer,
  #information-commercial-offer .sg-cp-layout,
  #information-commercial-offer .sg-cp-preview-panel,
  #information-commercial-offer .sg-cp-paper-wrap {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  #sg-cp-paper {
    position: static !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .sg-cp-doc-items thead {
    display: table-header-group;
  }

  .sg-cp-doc-items tr,
  .sg-cp-doc-parties,
  .sg-cp-doc-totals,
  .sg-cp-doc-terms,
  .sg-cp-doc-footer {
    page-break-inside: avoid;
  }
}
