.sarma-buyout-page,
.sarma-buyout-cabinet {
  color: #071b47;
  font-family: "Golos Text", Arial, sans-serif;
}

.sarma-buyout-page {
  min-height: 100vh;
  padding: 118px 0 58px;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 42%, #f7fbff 100%);
}

.sarma-buyout-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.sarma-buyout-back {
  display: inline-block;
  margin: 0 0 16px;
  color: #075bd8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.sarma-buyout-header,
.sarma-buyout-instructions,
.sarma-buyout-section,
.sarma-buyout-terms,
.sarma-buyout-consent,
.sarma-buyout-cabinet-section,
.sarma-buyout-summary {
  border: 1px solid #d5e3f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(12, 54, 122, .07);
}

.sarma-buyout-header {
  padding: 22px 24px;
}

.sarma-buyout-header h1 {
  margin: 0 0 4px;
  font-size: 40px;
  line-height: 46px;
  font-weight: 600;
}

.sarma-buyout-header p,
.sarma-buyout-instructions p {
  margin: 0;
  color: #61708c;
  font-size: 14px;
  line-height: 20px;
}

.sarma-buyout-instructions {
  margin-top: 12px;
  padding: 0 18px;
}

.sarma-buyout-instructions summary {
  padding: 15px 0;
  color: #075bd8;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  cursor: pointer;
}

.sarma-buyout-instructions p { padding: 0 0 16px; }
.sarma-buyout-form { display: grid; gap: 12px; margin-top: 12px; }
.sarma-buyout-section,
.sarma-buyout-terms { padding: 18px; }
.sarma-buyout-section h2,
.sarma-buyout-terms h2,
.sarma-buyout-cabinet h3 { margin: 0 0 14px; font-size: 16px; line-height: 22px; font-weight: 600; }

.sarma-buyout-public-item { overflow: hidden; border: 1px solid #d5e3f7; border-radius: 14px; background: #fff; }
.sarma-buyout-public-item + .sarma-buyout-public-item { margin-top: 12px; }
.sarma-buyout-item-heading,
.sarma-buyout-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sarma-buyout-item-heading { min-height: 50px; padding: 13px 16px; color: #075bd8; cursor: pointer; list-style: none; }
.sarma-buyout-item-heading::-webkit-details-marker { display: none; }
.sarma-buyout-item-heading strong { font-size: 15px; line-height: 20px; font-weight: 600; }
.sarma-buyout-item-heading button { padding: 0; border: 0; color: #a42a23; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.sarma-buyout-item-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 16px; align-items: stretch; padding: 16px; border-top: 1px solid #e0e9f6; }
.sarma-buyout-item-fields,
.sarma-buyout-customer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sarma-buyout-item-fields .is-wide,
.sarma-buyout-customer-grid .is-wide { grid-column: 1 / -1; }
.sarma-buyout-page label,
.sarma-buyout-cabinet label { display: grid; gap: 6px; min-width: 0; }
.sarma-buyout-page label > span,
.sarma-buyout-cabinet label > span { color: #384b70; font-size: 13px; line-height: 18px; font-weight: 500; }
.sarma-buyout-page input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
.sarma-buyout-page select,
.sarma-buyout-cabinet input,
.sarma-buyout-cabinet select,
.sarma-buyout-cabinet textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #cbdcf3;
  border-radius: 14px;
  color: #071b47;
  background: #fff;
  font: 400 14px/20px "Golos Text", Arial, sans-serif;
}
.sarma-buyout-page input:focus,
.sarma-buyout-page select:focus,
.sarma-buyout-cabinet input:focus,
.sarma-buyout-cabinet select:focus,
.sarma-buyout-cabinet textarea:focus { outline: 2px solid rgba(7, 91, 216, .18); border-color: #075bd8; }
.sarma-buyout-upload { position: relative; min-height: 100%; overflow: hidden; padding: 14px; border: 1px dashed #9fc4f6; border-radius: 10px; align-content: center; justify-items: center; text-align: center; background: #f8fbff; cursor: pointer; }
.sarma-buyout-upload input[type="file"] { position: absolute; width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; opacity: 0; }
.sarma-buyout-upload strong { color: #075bd8; font-size: 14px; }
.sarma-buyout-upload small { color: #6f7d98; font-size: 12px; }
.sarma-buyout-upload.has-file { border-style: solid; border-color: #58b77d; background: #f4fff8; }
.sarma-buyout-page .se-combobox input {
  min-height: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.sarma-buyout-add { min-height: 38px; margin-top: 12px; padding: 7px 13px; border: 1px solid #075bd8; border-radius: 8px; color: #075bd8; background: #fff; font: 600 13px/18px "Golos Text", Arial, sans-serif; cursor: pointer; }
.sarma-buyout-terms ul { margin: 0; padding-left: 18px; color: #384b70; font-size: 14px; line-height: 22px; }
.sarma-buyout-consent { display: grid; grid-template-columns: 1fr; align-items: center; padding: 22px; }
.sarma-buyout-consent label,
.sarma-buyout-consent .sarma-public-offer-check label { display: flex; grid-template-columns: none; align-items: center; gap: 10px; color: #071b47; line-height: 1.35; }
.sarma-buyout-consent input[type="checkbox"],
.sarma-buyout-consent .sarma-public-offer-check input[type="checkbox"][data-sarma-offer] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  flex: 0 0 18px;
  place-content: center;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0 !important;
  color: #fff;
  background: #fff;
  border: 1.5px solid #b8cae8;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  accent-color: #075bd8;
}
.sarma-buyout-consent input[type="checkbox"]:checked,
.sarma-buyout-consent .sarma-public-offer-check input[type="checkbox"][data-sarma-offer]:checked {
  background: #075bd8;
  border-color: #075bd8;
}
.sarma-buyout-consent input[type="checkbox"]:checked::after,
.sarma-buyout-consent .sarma-public-offer-check input[type="checkbox"][data-sarma-offer]:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sarma-buyout-consent input[type="checkbox"]:focus-visible,
.sarma-buyout-consent .sarma-public-offer-check input[type="checkbox"][data-sarma-offer]:focus-visible {
  outline: 3px solid rgba(7, 91, 216, .22);
  outline-offset: 2px;
}
.sarma-buyout-consent .sarma-public-offer-link {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  color: #075bd8;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.sarma-buyout-submit { justify-self: start; min-width: 260px; min-height: 58px; padding: 0 28px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0d47a1, #1479f6); font: 600 15px/20px "Golos Text", Arial, sans-serif; cursor: pointer; box-shadow: 0 12px 28px rgba(13, 71, 161, .2); }
.sarma-buyout-submit:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }

.sarma-buyout-cabinet { display: grid; gap: 12px; }
.sarma-buyout-cabinet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.sarma-buyout-cabinet-main { display: grid; gap: 12px; min-width: 0; }
.sarma-buyout-cabinet-section,
.sarma-buyout-summary { padding: 16px; }
.sarma-buyout-cabinet-section { min-width: 0; }
.sarma-buyout-alert {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 14px;
  border: 1px solid #f1c97a;
  border-radius: 8px;
  background: #fffaf0;
  color: #713f12;
  box-shadow: 0 18px 42px rgba(7, 31, 82, .18);
  font-size: 13px;
  line-height: 18px;
}
.sarma-buyout-alert[hidden] { display: none; }
.sarma-buyout-alert button {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #713f12;
  background: transparent;
  font: 600 18px/24px "Golos Text", Arial, sans-serif;
  cursor: pointer;
}
.sarma-buyout-alert button:hover { background: rgba(113, 63, 18, .08); }
.sarma-buyout-cabinet-strip { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 11px 14px; border: 1px solid #d5e3f7; border-radius: 8px; color: #5b6c89; background: #f8fbff; font-size: 13px; }
.sarma-buyout-summary { padding: 0; border: 1px solid #d5e3f7; border-radius: 8px; background: rgba(248, 251, 255, .76); box-shadow: none; }
.sarma-buyout-summary > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 10px 44px 10px 16px; color: #09245d; font: 600 14px/20px "Golos Text", Arial, sans-serif; list-style: none; cursor: pointer; position: relative; }
.sarma-buyout-summary > summary::-webkit-details-marker { display: none; }
.sarma-buyout-summary > summary::after { content: ""; position: absolute; top: 50%; right: 18px; width: 8px; height: 8px; border-right: 2px solid #075bd8; border-bottom: 2px solid #075bd8; transform: translateY(-70%) rotate(45deg); transition: transform .18s ease; }
.sarma-buyout-summary[open] > summary::after { transform: translateY(-25%) rotate(225deg); }
.sarma-buyout-summary > summary strong { color: #075bd8; font-variant-numeric: tabular-nums; }
.sarma-buyout-summary-body { padding: 0 16px 16px; border-top: 1px solid #e1ebf8; }
.sarma-buyout-summary dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 14px; }
.sarma-buyout-summary dl div { display: grid; gap: 4px; padding: 12px 14px; border-right: 1px solid #e1ebf8; font-size: 13px; }
.sarma-buyout-summary dl div:last-child { border-right: 0; }
.sarma-buyout-summary dt { color: #5f6f8c; }
.sarma-buyout-summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sarma-buyout-summary .is-total { font-size: 15px; }
.sarma-buyout-summary-actions { display: flex; align-items: end; justify-content: flex-end; gap: 10px; }
.sarma-buyout-summary-actions label { min-width: 220px; }
.sarma-buyout-summary-actions .sarma-button { min-width: 190px; }
.sarma-buyout-table-wrap { display: block; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; }
.sarma-buyout-table { width: 100%; min-width: 1390px; border-collapse: collapse; table-layout: fixed; }
.sarma-buyout-table th { padding: 8px; color: #526383; background: #f6f9fe; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; }
.sarma-buyout-table td { padding: 8px; border-top: 1px solid #e0e9f6; vertical-align: top; font-size: 13px; }
.sarma-buyout-table th:nth-child(1) { width: 120px; }
.sarma-buyout-table th:nth-child(2) { width: 210px; }
.sarma-buyout-table th:nth-child(3) { width: 230px; }
.sarma-buyout-table th:nth-child(4) { width: 150px; }
.sarma-buyout-table th:nth-child(5) { width: 120px; }
.sarma-buyout-table th:nth-child(6) { width: 72px; }
.sarma-buyout-table th:nth-child(7) { width: 110px; }
.sarma-buyout-table th:nth-child(8) { width: 160px; }
.sarma-buyout-table th:nth-child(9) { width: 118px; }
.sarma-buyout-table th:nth-child(10) { width: 120px; }
.sarma-buyout-table textarea { min-height: 56px; margin-top: 5px; resize: vertical; }
.sarma-buyout-table [data-buyout-source-other] { margin-top: 5px; }
.sarma-buyout-issued { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #c8d9f2; border-radius: 7px; }
.sarma-buyout-issued label { position: relative; display: block; }
.sarma-buyout-issued input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; pointer-events: none; }
.sarma-buyout-issued span { display: block; padding: 7px 8px; color: #536887; background: #fff; text-align: center; font-size: 12px !important; line-height: 16px !important; cursor: pointer; }
.sarma-buyout-issued label + label span { border-left: 1px solid #c8d9f2; }
.sarma-buyout-issued input:checked + span { color: #fff; background: #075bd8; font-weight: 600; }
.sarma-buyout-issued-at { display: block; margin-top: 5px; color: #6d7d98; font-size: 11px; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.sarma-buyout-remove-item { display: inline-flex; width: auto; min-width: 72px; min-height: 30px; align-items: center; justify-content: center; padding: 5px 9px; color: #b42335; font-size: 12px; line-height: 16px; font-weight: 600; border: 1px solid #f2b8c0; border-radius: 7px; background-color: #fff7f8; cursor: pointer; }
.sarma-buyout-remove-item::before { content: "Удалить"; }
.sarma-buyout-remove-item:disabled { cursor: not-allowed; opacity: .32; }
.sarma-buyout-row-actions { display: grid; justify-items: start; gap: 6px; align-items: start; }
.sarma-buyout-row-save { min-height: 32px; padding: 6px 9px; font-size: 12px; line-height: 16px; }
.sarma-buyout-block-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid #dbe7f7; }
.sarma-buyout-block-actions .sarma-button { min-width: 150px; }
.sarma-buyout-row-actions [data-buyout-delete-reason] { min-height: 64px; margin: 0; }
.sarma-buyout-table tr.is-locked input:not([type="hidden"]),
.sarma-buyout-table tr.is-locked select,
.sarma-buyout-table tr.is-locked textarea {
  color: #475569;
  background: #f8fafc;
}
.sarma-buyout-table tr.is-locked .sarma-buyout-issued span {
  cursor: default;
}
.sarma-buyout-table tr.is-locked [data-buyout-row-save],
.sarma-buyout-table tr.is-locked [data-buyout-cabinet-remove],
.sarma-buyout-table tr.is-locked [data-buyout-delete-reason] {
  display: none !important;
}
.sarma-buyout-table tr.is-editing [data-buyout-row-edit] {
  display: none !important;
}
.sarma-buyout-cabinet:not(.is-buyout-editing) .sarma-buyout-add {
  cursor: not-allowed;
  opacity: .42;
}
.sarma-buyout-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sarma-buyout-gallery figure { margin: 0; padding: 10px; border: 1px solid #d5e3f7; border-radius: 8px; }
.sarma-buyout-gallery figcaption { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.sarma-buyout-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; object-fit: contain; background: #f6f9fe; }

.sarma-buyout-inner-nav { display: flex; gap: 4px; margin-top: 7px; }
.sarma-buyout-inner-nav a { padding: 5px 8px; border-radius: 6px; color: #5f6f8c; font-size: 12px; line-height: 16px; text-decoration: none; }
.sarma-buyout-inner-nav a:hover,
.sarma-buyout-inner-nav a.is-active { color: #075bd8; background: #edf5ff; }
.sarma-buyout-parent-status { min-width: 220px; display: grid; gap: 3px; padding: 10px 14px; border: 1px solid #d9e2ef; border-radius: 8px; background: #fff; }
.sarma-buyout-parent-status span,
.sarma-buyout-parent-status small { color: #65758b; font-size: 12px; }
.sarma-buyout-parent-status strong { color: #12213a; font-size: 14px; font-weight: 600; }
.sarma-buyout-item-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sarma-buyout-item-identity > span:last-child { display: grid; gap: 3px; min-width: 0; }
.sarma-buyout-item-thumb { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; align-items: center; justify-content: center; border: 1px solid #d5e3f7; border-radius: 6px; background: #f6f9fe; }
.sarma-buyout-item-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sarma-buyout-item-thumb.is-empty::before { content: ""; width: 19px; height: 16px; border: 1.5px solid #9aabc4; border-radius: 3px; background: linear-gradient(145deg, transparent 48%, #9aabc4 49%, #9aabc4 54%, transparent 55%); opacity: .75; }
.sarma-buyout-product-link { color: #075bd8; font-size: 11px; line-height: 15px; text-decoration: none; }
.sarma-buyout-product-link:hover { text-decoration: underline; }
.sarma-buyout-lightbox { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 28px; background: rgba(5, 18, 44, .82); }
.sarma-buyout-lightbox[hidden] { display: none; }
.sarma-buyout-lightbox img { display: block; max-width: min(1100px, 92vw); max-height: 88vh; border-radius: 6px; object-fit: contain; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.sarma-buyout-lightbox > button { position: fixed; top: 18px; right: 18px; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .42); border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .28); font: 400 28px/38px Arial, sans-serif; cursor: pointer; }
body.is-buyout-lightbox-open { overflow: hidden; }

.sarma-buyout-workspace { display: grid; gap: 12px; min-width: 0; }
.sarma-buyout-workspace-head,
.sarma-buyout-summary-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-workspace-head h2,
.sarma-buyout-summary-detail-head h2 { margin: 0 0 4px; color: #071b47; font-size: 18px; line-height: 24px; }
.sarma-buyout-workspace-head p,
.sarma-buyout-summary-detail-head p { margin: 0; color: #64748b; font-size: 13px; line-height: 18px; }
.sarma-buyout-sources-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 12px; }
.sarma-buyout-work-card { padding: 16px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-work-card h3 { margin: 0 0 14px; font-size: 15px; line-height: 20px; }
.sarma-buyout-source-form { display: grid; gap: 12px; }
.sarma-buyout-source-form label,
.sarma-buyout-summary-source-picker label,
.sarma-buyout-summary-meta label { display: grid; gap: 6px; }
.sarma-buyout-source-form label span,
.sarma-buyout-summary-source-picker label span,
.sarma-buyout-summary-meta label span { color: #526383; font-size: 12px; line-height: 16px; }
.sarma-buyout-source-form input,
.sarma-buyout-summary-source-picker select,
.sarma-buyout-summary-meta input,
.sarma-buyout-collector-table select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #cbdcf3; border-radius: 6px; color: #071b47; background: #fff; font: 400 13px/18px "Golos Text", Arial, sans-serif; }
.sarma-buyout-source-list { display: grid; }
.sarma-buyout-source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e4edf8; }
.sarma-buyout-source-row:first-child { border-top: 0; }
.sarma-buyout-source-row > div { display: grid; gap: 2px; }
.sarma-buyout-source-row small { color: #8090aa; font-size: 11px; }
.sarma-buyout-source-row.is-archived { opacity: .58; }
.sarma-buyout-summary-source-picker { display: grid; grid-template-columns: minmax(240px, 360px) auto; gap: 10px; align-items: end; padding: 14px 16px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-summary-form { display: grid; gap: 12px; }
.sarma-buyout-summary-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-code-upload input[type="file"] { padding: 6px; }
.sarma-buyout-summary-actions { display: flex; justify-content: flex-end; }
.sarma-buyout-collector-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-collector-table { width: 100%; min-width: 1960px; border-collapse: collapse; }
.sarma-buyout-collector-table th { padding: 9px 10px; color: #526383; background: #f6f9fe; text-align: left; font-size: 12px; font-weight: 500; }
.sarma-buyout-collector-table td { padding: 9px 10px; border-top: 1px solid #e4edf8; color: #1d3157; vertical-align: middle; font-size: 12px; }
.sarma-buyout-collector-status-column { width: 190px; min-width: 190px; }
.sarma-buyout-collector-link { display: grid; gap: 2px; min-width: 138px; }
.sarma-buyout-collector-link a { width: fit-content; color: #075bd8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sarma-buyout-collector-link small { color: #70809a; font-size: 10px; line-height: 14px; }
.sarma-buyout-collector-link.is-missing { color: #8a97aa; font-size: 11px; }
.sarma-buyout-status-pill,
.sarma-buyout-summary-state { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; color: #17583a; background: #eaf8f0; font-size: 11px; line-height: 15px; font-weight: 600; }
.sarma-buyout-summary-list { display: grid; gap: 8px; }
.sarma-buyout-summary-card { display: grid; grid-template-columns: 56px minmax(220px, 1.2fr) 100px 180px 120px; gap: 14px; align-items: center; min-height: 72px; padding: 8px 14px; border: 1px solid #d5e3f7; border-radius: 8px; color: #071b47; background: #fff; text-decoration: none; }
.sarma-buyout-summary-card:hover { border-color: #94b9ec; background: #fbfdff; }
.sarma-buyout-summary-card > img,
.sarma-buyout-code-placeholder { display: block; width: 52px; height: 52px; border: 1px solid #d5e3f7; border-radius: 6px; object-fit: contain; background: #fff; }
.sarma-buyout-summary-card > span { display: grid; gap: 3px; }
.sarma-buyout-summary-card small,
.sarma-buyout-summary-card time { color: #6b7c97; font-size: 11px; }
.sarma-buyout-summary-detail-head > div { display: grid; gap: 2px; }
.sarma-buyout-summary-detail-head > div > span { color: #6b7c97; font-size: 11px; text-transform: uppercase; }
.sarma-buyout-summary-code { width: 74px; height: 74px; padding: 4px; border: 1px solid #d5e3f7; border-radius: 6px; background: #fff; cursor: zoom-in; }
.sarma-buyout-summary-code img { display: block; width: 100%; height: 100%; object-fit: contain; }

.sarma-buyout-overview-filters { display: grid; grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(180px, 1fr)) auto auto; gap: 10px; align-items: end; padding: 14px 16px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-overview-filters label { display: grid; gap: 6px; min-width: 0; }
.sarma-buyout-overview-filters label span { color: #526383; font-size: 12px; line-height: 16px; }
.sarma-buyout-overview-filters input,
.sarma-buyout-overview-filters select,
.sarma-buyout-overview-table select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #cbdcf3; border-radius: 6px; color: #071b47; background: #fff; font: 400 13px/18px "Golos Text", Arial, sans-serif; }
.sarma-buyout-overview-metrics { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 14px; border: 1px solid #e0e9f6; border-radius: 8px; color: #5f6f8c; background: #f8fbff; font-size: 12px; }
.sarma-buyout-overview-metrics span { display: inline-flex; align-items: baseline; gap: 5px; }
.sarma-buyout-overview-metrics strong { color: #071b47; font-size: 15px; }
.sarma-buyout-overview-form { display: grid; gap: 10px; min-width: 0; }
.sarma-buyout-overview-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-overview-table { width: 100%; min-width: 2140px; border-collapse: collapse; table-layout: fixed; }
.sarma-buyout-overview-table th { padding: 9px 10px; color: #526383; background: #f6f9fe; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500; }
.sarma-buyout-overview-table td { padding: 9px 10px; border-top: 1px solid #e4edf8; color: #1d3157; vertical-align: top; font-size: 12px; line-height: 17px; overflow-wrap: anywhere; }
.sarma-buyout-overview-table th:nth-child(1) { width: 140px; }
.sarma-buyout-overview-table th:nth-child(2) { width: 180px; }
.sarma-buyout-overview-table th:nth-child(3) { width: 72px; }
.sarma-buyout-overview-table th:nth-child(4) { width: 150px; }
.sarma-buyout-overview-table th:nth-child(5) { width: 190px; }
.sarma-buyout-overview-table th:nth-child(6) { width: 210px; }
.sarma-buyout-overview-table th:nth-child(7) { width: 130px; }
.sarma-buyout-overview-table th:nth-child(8) { width: 120px; }
.sarma-buyout-overview-table th:nth-child(9) { width: 70px; }
.sarma-buyout-overview-table th:nth-child(10) { width: 210px; }
.sarma-buyout-overview-table th:nth-child(11) { width: 170px; }
.sarma-buyout-overview-table th:nth-child(12) { width: 240px; }
.sarma-buyout-overview-actions { display: flex; justify-content: flex-end; }
.sarma-buyout-row-status-form { min-width: 160px; }
.sarma-buyout-row-status-form select { transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.sarma-buyout-row-status-form.is-saving select { cursor: progress; background-color: #f3f7fd; }
.sarma-buyout-row-status-form.is-saved select { border-color: #79b995; box-shadow: 0 0 0 2px rgba(64, 157, 104, 0.12); }
.sarma-buyout-row-status-form.is-error select { border-color: #d66b6b; box-shadow: 0 0 0 2px rgba(190, 55, 55, 0.1); }
.sarma-buyout-row-save-state { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.sarma-buyout-order-link { display: grid; gap: 3px; width: fit-content; color: #075bd8; text-decoration: none; }
.sarma-buyout-order-link:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.sarma-buyout-order-link small,
.sarma-buyout-cell-stack small { color: #70809a; font-size: 10px; line-height: 14px; }
.sarma-buyout-cell-stack { display: grid; gap: 3px; min-width: 0; }
.sarma-buyout-cell-stack > a { color: #075bd8; text-decoration: none; }
.sarma-buyout-cell-stack > a:hover { text-decoration: underline; }
.sarma-buyout-finance-cell { display: grid; gap: 2px; min-width: 170px; color: #263a5f; font-variant-numeric: tabular-nums; }
.sarma-buyout-finance-cell strong { color: #071b47; }
.sarma-buyout-finance-cell small { margin-top: 2px; color: #64748b; font-size: 10px; line-height: 14px; }
.sarma-buyout-assembly-tabs { display: flex; gap: 4px; width: fit-content; padding: 3px; border: 1px solid #d5e3f7; border-radius: 8px; background: #fff; }
.sarma-buyout-assembly-tabs a { padding: 7px 12px; border-radius: 6px; color: #5f6f8c; font-size: 12px; line-height: 16px; text-decoration: none; }
.sarma-buyout-assembly-tabs a.is-active { color: #075bd8; background: #edf5ff; font-weight: 600; }
.sarma-buyout-bulk-transitions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #d5e3f7; border-radius: 8px; background: #f8fbff; }
.sarma-buyout-bulk-transitions > span { color: #64748b; font-size: 12px; line-height: 17px; }
.sarma-buyout-bulk-transitions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sarma-buyout-bulk-transitions button:disabled { opacity: .48; cursor: not-allowed; }
.sarma-buyout-archive-action { display: flex; justify-content: flex-end; }
.sarma-buyout-archive-action .sarma-button-light { color: #8b3340; border-color: #efcbd1; background: #fffafa; }
.sarma-buyout-cancel-panel { margin-top: 14px; border: 1px solid #efcbd1; border-radius: 8px; background: #fffafa; }
.sarma-buyout-cancel-panel > summary { padding: 12px 14px; color: #8b3340; font-size: 13px; font-weight: 600; cursor: pointer; }
.sarma-buyout-cancel-panel form { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 10px; align-items: end; padding: 0 14px 14px; }
.sarma-buyout-cancel-panel label { display: grid; gap: 6px; }
.sarma-buyout-cancel-panel label span { color: #80515a; font-size: 12px; }
.sarma-buyout-cancel-panel textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid #dfb7bf; border-radius: 6px; resize: vertical; font: 400 13px/18px "Golos Text", Arial, sans-serif; }

.se-orders-icon-buyout::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4a2 2 0 0 0-2 2v1H5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-2V6a2 2 0 0 0-2-2H9Zm0 3V6h6v1H9Zm-5 5h7v2h2v-2h7v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4a2 2 0 0 0-2 2v1H5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3h-2V6a2 2 0 0 0-2-2H9Zm0 3V6h6v1H9Zm-5 5h7v2h2v-2h7v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .sarma-buyout-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sarma-buyout-summary dl div { border-bottom: 1px solid #e1ebf8; }
  .sarma-buyout-summary dl div:nth-child(2n) { border-right: 0; }
  .sarma-buyout-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sarma-buyout-sources-layout,
  .sarma-buyout-summary-meta,
  .sarma-buyout-overview-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sarma-buyout-overview-filters .is-wide { grid-column: 1 / -1; }
  .sarma-buyout-bulk-transitions { align-items: flex-start; flex-direction: column; }
  .sarma-buyout-bulk-transitions > div { justify-content: flex-start; }
  .sarma-buyout-summary-card { grid-template-columns: 56px minmax(0, 1fr) 90px 150px; }
  .sarma-buyout-summary-card time { display: none; }
}

@media (max-width: 680px) {
  .sarma-buyout-page { padding: 98px 0 46px; }
  .sarma-buyout-wrap { width: min(100% - 24px, 1180px); }
  .sarma-buyout-header { padding: 18px; }
  .sarma-buyout-header h1 { font-size: 30px; line-height: 36px; }
  .sarma-buyout-item-grid,
  .sarma-buyout-item-fields,
  .sarma-buyout-customer-grid { grid-template-columns: 1fr; }
  .sarma-buyout-item-fields .is-wide,
  .sarma-buyout-customer-grid .is-wide { grid-column: auto; }
  .sarma-buyout-upload { min-height: 130px; }
  .sarma-buyout-submit { width: 100%; }
  .sarma-buyout-summary dl { grid-template-columns: 1fr; }
  .sarma-buyout-summary dl div { border-right: 0; }
  .sarma-buyout-summary-actions { align-items: stretch; flex-direction: column; }
  .sarma-buyout-summary-actions label,
  .sarma-buyout-summary-actions .sarma-button { width: 100%; min-width: 0; }
  .sarma-buyout-gallery { grid-template-columns: 1fr; }
  .sarma-buyout-sources-layout,
  .sarma-buyout-summary-meta,
  .sarma-buyout-summary-source-picker,
  .sarma-buyout-overview-filters { grid-template-columns: 1fr; }
  .sarma-buyout-overview-filters .is-wide { grid-column: auto; }
  .sarma-buyout-overview-filters .sarma-button,
  .sarma-buyout-overview-actions .sarma-button { width: 100%; }
  .sarma-buyout-overview-metrics { gap: 9px 16px; }
  .sarma-buyout-bulk-transitions > div,
  .sarma-buyout-bulk-transitions .sarma-button { width: 100%; }
  .sarma-buyout-cancel-panel form { grid-template-columns: 1fr; }
  .sarma-buyout-cancel-panel .sarma-button { width: 100%; }
  .sarma-buyout-workspace-head,
  .sarma-buyout-summary-detail-head { align-items: flex-start; }
  .sarma-buyout-summary-card { grid-template-columns: 48px minmax(0, 1fr); }
  .sarma-buyout-summary-card > img,
  .sarma-buyout-code-placeholder { width: 44px; height: 44px; }
  .sarma-buyout-summary-card > span:nth-of-type(2),
  .sarma-buyout-summary-card .sarma-buyout-summary-state { grid-column: 2; }
}
