/* Shared presentation for calculation archives and generated reports. */

.calculator-save-panel {
  display: block;
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
}

.calculator-save-panel__header {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-divider, #e2e7e6);
}

.calculator-save-panel__eyebrow {
  color: var(--color-primary, #2d7078);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.calculator-save-panel__header h2 {
  margin: 5px 0 0;
  font-family: inherit;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.calculator-save-panel__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 22px;
  min-width: 0;
}

.calculator-save-panel__body > :only-child,
.calculator-save-panel__body > .anchor-project-grid,
.calculator-save-panel__body > .frame-savebar__identity {
  flex: 1 1 680px;
}

.calculator-save-panel__body > .anchor-saved-row,
.calculator-save-panel__body > .anchor-action-message,
.calculator-save-panel__body > .frame-message {
  flex: 1 0 100%;
}

.calculator-save-panel .crane-save-fields {
  flex: 1 1 720px;
  width: auto;
}

.calculator-save-panel .crane-action-buttons,
.calculator-save-panel .frame-savebar__actions {
  flex: 0 1 auto;
}

.calculator-archive-section {
  width: 100%;
}

.calculation-archive-panel {
  --structcat-control-height: 44px;
  --archive-button-width: 124px;
  --archive-disabled-text: color-mix(in srgb, var(--color-text-muted) 90%, var(--color-text));
  --archive-delete-color: var(--color-danger, #b42318);
  width: 100%;
}

.calculation-archive-panel .calculator-save-panel__header {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}

.calculation-archive-panel .calculator-save-panel__header h2 {
  margin-top: 0;
}

.calculation-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr) var(--archive-button-width);
  gap: 14px;
  align-items: end;
}

.calculation-archive-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.calculation-archive-field > span {
  min-height: 18px;
  color: var(--color-text-muted, #77736c);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Unified calculator fields. Native inputs and selects keep their editing
   behavior while dedicated indicators provide stable, browser-neutral controls. */
[data-structcat-form-scope] {
  --structcat-control-height: 46px;
  --structcat-control-radius: 11px;
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]),
[data-structcat-form-scope] select,
[data-structcat-form-scope] textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--structcat-control-height);
  padding: 10px 12px;
  border: 1px solid var(--color-border-strong, var(--color-border, rgba(40, 37, 29, .18)));
  border-radius: var(--structcat-control-radius);
  background-color: var(--color-surface, #f9f8f5);
  color: var(--color-text, #28251d);
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]),
[data-structcat-form-scope] select,
[data-structcat-form-scope] .structcat-number-control,
[data-structcat-form-scope] .structcat-select-control {
  height: var(--structcat-control-height);
  min-height: var(--structcat-control-height);
}

[data-structcat-form-scope] select {
  appearance: none;
  padding-right: 50px;
  cursor: pointer;
}

/* Unwrapped selects retain their DOM structure for older calculators. */
[data-structcat-form-scope] select:not([data-structcat-select-field]) {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='%23576b6d' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'/%3E%3C/svg%3E"),
    linear-gradient(to right, var(--color-divider, #ddd9d2) 1px, var(--color-surface-offset, #f0ede8) 1px);
  background-position: right 13px center, right center;
  background-repeat: no-repeat;
  background-size: 12px 12px, 38px 100%;
}

.structcat-select-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.calc-field > .structcat-select-control,
.calculation-archive-field > .structcat-select-control {
  width: 100%;
  min-width: 0;
}

.structcat-select-control > select {
  display: block;
  padding-right: 50px !important;
}

.structcat-select-indicator {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: flex;
  width: 37px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--color-border, rgba(40, 37, 29, .12));
  border-radius: 0 10px 10px 0;
  background: var(--color-surface-offset, #f0ede8);
  color: var(--color-text-muted, #77736c);
  pointer-events: none;
}

.structcat-select-indicator::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.structcat-select-control.is-disabled {
  opacity: .72;
}

.structcat-select-control.is-disabled > select {
  opacity: 1;
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not(:disabled):not([readonly]):hover,
[data-structcat-form-scope] select:not(:disabled):hover,
[data-structcat-form-scope] textarea:not(:disabled):not([readonly]):hover {
  border-color: color-mix(in srgb, var(--color-primary, #01696f) 46%, var(--color-border, rgba(40, 37, 29, .12)));
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):focus,
[data-structcat-form-scope] select:focus,
[data-structcat-form-scope] textarea:focus {
  border-color: var(--color-primary, #01696f);
  box-shadow: none;
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):focus-visible,
[data-structcat-form-scope] select:focus-visible,
[data-structcat-form-scope] textarea:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #01696f) 12%, transparent);
}

[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):disabled,
[data-structcat-form-scope] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"])[readonly],
[data-structcat-form-scope] select:disabled,
[data-structcat-form-scope] textarea:disabled,
[data-structcat-form-scope] textarea[readonly] {
  border-color: var(--color-border, rgba(40, 37, 29, .12));
  background-color: var(--color-surface-offset, #f0ede8);
  color: var(--color-text-muted, #77736c);
  cursor: default;
  opacity: .72;
}

/* Unified calculator checkbox. Add .structcat-checkbox-control to a label
   containing a native checkbox and its caption. */
[data-structcat-form-scope] .structcat-checkbox-control {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: var(--structcat-control-height);
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-strong, var(--color-border, rgba(40, 37, 29, .18)));
  border-radius: var(--structcat-control-radius);
  background: var(--color-surface-offset, #f0ede8);
  color: var(--color-text, #28251d);
  cursor: pointer;
  user-select: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

[data-structcat-form-scope] .structcat-checkbox-control:not(:has(input:disabled)):hover {
  border-color: color-mix(in srgb, var(--color-primary, #01696f) 46%, var(--color-border, rgba(40, 37, 29, .12)));
}

[data-structcat-form-scope] .structcat-checkbox-control:has(input:focus-visible) {
  border-color: var(--color-primary, #01696f);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #01696f) 12%, transparent);
}

[data-structcat-form-scope] .structcat-checkbox-control:not(:has(input:disabled)):active {
  border-color: var(--color-primary, #01696f);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #01696f) 12%, transparent);
}

[data-structcat-form-scope] .structcat-checkbox-control > input[type="checkbox"] {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border-strong, var(--color-border, rgba(40, 37, 29, .18)));
  border-radius: 3px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: var(--color-primary, #01696f);
  cursor: pointer;
  outline: none;
  transition: border-color .14s ease, background-color .14s ease;
}

[data-structcat-form-scope] .structcat-checkbox-control > input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0;
  transform: rotate(45deg);
}

[data-structcat-form-scope] .structcat-checkbox-control > input[type="checkbox"]:checked {
  border-color: var(--color-primary, #01696f);
  background: transparent;
}

[data-structcat-form-scope] .structcat-checkbox-control > input[type="checkbox"]:checked::after {
  opacity: 1;
}

[data-structcat-form-scope] .structcat-checkbox-control > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

[data-structcat-form-scope] .structcat-checkbox-control strong {
  color: var(--color-text, #28251d);
  font-size: .85rem;
}

[data-structcat-form-scope] .structcat-checkbox-control small {
  color: var(--color-text-muted, #77736c);
  font-size: .72rem;
}

[data-structcat-form-scope] .structcat-checkbox-control:has(input:disabled) {
  cursor: default;
  opacity: .62;
}

[data-structcat-form-scope] .structcat-checkbox-control > input[type="checkbox"]:disabled {
  cursor: default;
}

[data-structcat-form-scope] .load-calculation-actions > .structcat-checkbox-control {
  width: auto;
  flex: 0 0 auto;
}

/* Compact checkmarks use the same square glyph without turning toolbars or
   data-table selection cells into full-width option cards. */
[data-structcat-form-scope] :is(
  label:not(.frame-visibility-icon):not(.frame-context-menu__icon-toggle):not(.frame-context-menu__rotate-toggle) > input[type="checkbox"],
  .anchor-edge-head > input[type="checkbox"],
  th > input[type="checkbox"]
):not(.structcat-checkbox-control > input) {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border-strong, var(--color-border, rgba(40, 37, 29, .18)));
  border-radius: 3px;
  appearance: none;
  background: transparent;
  box-shadow: none;
  color: var(--color-primary, #01696f);
  cursor: pointer;
}

[data-structcat-form-scope] :is(
  label:not(.frame-visibility-icon):not(.frame-context-menu__icon-toggle):not(.frame-context-menu__rotate-toggle) > input[type="checkbox"],
  .anchor-edge-head > input[type="checkbox"],
  th > input[type="checkbox"]
):not(.structcat-checkbox-control > input)::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  opacity: 0;
  transform: rotate(45deg);
}

[data-structcat-form-scope] :is(
  label:not(.frame-visibility-icon):not(.frame-context-menu__icon-toggle):not(.frame-context-menu__rotate-toggle) > input[type="checkbox"],
  .anchor-edge-head > input[type="checkbox"],
  th > input[type="checkbox"]
):not(.structcat-checkbox-control > input):checked {
  border-color: var(--color-primary, #01696f);
}

[data-structcat-form-scope] :is(
  label:not(.frame-visibility-icon):not(.frame-context-menu__icon-toggle):not(.frame-context-menu__rotate-toggle) > input[type="checkbox"],
  .anchor-edge-head > input[type="checkbox"],
  th > input[type="checkbox"]
):not(.structcat-checkbox-control > input):checked::after {
  opacity: 1;
}

[data-structcat-form-scope] :is(
  label:not(.frame-visibility-icon):not(.frame-context-menu__icon-toggle):not(.frame-context-menu__rotate-toggle) > input[type="checkbox"],
  .anchor-edge-head > input[type="checkbox"],
  th > input[type="checkbox"]
):not(.structcat-checkbox-control > input):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--color-primary, #01696f) 35%, transparent);
  outline-offset: 2px;
}

/* Unified native disclosure panel. The left control cell remains stationary;
   only the chevron rotates when the panel opens. */
[data-structcat-form-scope] details.structcat-disclosure {
  overflow: hidden;
  border: 1px solid var(--color-border-strong, var(--color-border, rgba(40, 37, 29, .18)));
  border-radius: var(--structcat-control-radius);
  background: var(--color-surface, #f9f8f5);
  transition: border-color .14s ease, box-shadow .14s ease;
}

[data-structcat-form-scope] details.structcat-disclosure:hover {
  border-color: color-mix(in srgb, var(--color-primary, #01696f) 46%, var(--color-border, rgba(40, 37, 29, .12)));
}

[data-structcat-form-scope] details.structcat-disclosure > summary {
  position: relative;
  box-sizing: border-box;
  display: flex;
  height: var(--structcat-control-height);
  min-height: var(--structcat-control-height);
  align-items: center;
  margin: 0;
  padding: 0 16px 0 62px;
  border: 0;
  background: transparent;
  color: var(--color-text, #28251d);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

[data-structcat-form-scope] details.structcat-disclosure > summary::-webkit-details-marker {
  display: none;
}

[data-structcat-form-scope] details.structcat-disclosure > summary::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46px;
  border-right: 1px solid var(--color-divider, #ddd9d2);
  border-radius: calc(var(--structcat-control-radius) - 1px) 0 0 calc(var(--structcat-control-radius) - 1px);
  background: var(--color-surface-offset, #f0ede8);
  content: "";
}

[data-structcat-form-scope] details.structcat-disclosure > summary::after {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-primary, #01696f);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform .16s ease;
}

[data-structcat-form-scope] details.structcat-disclosure[open] > summary {
  border-bottom: 1px solid var(--color-divider, #ddd9d2);
}

[data-structcat-form-scope] details.structcat-disclosure[open] > summary::before {
  border-bottom-left-radius: 0;
}

[data-structcat-form-scope] details.structcat-disclosure[open] > summary::after {
  transform: translateY(-35%) rotate(225deg);
}

[data-structcat-form-scope] details.structcat-disclosure > summary:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-primary, #01696f) 18%, transparent);
}

@media (max-width: 620px) {
  [data-structcat-form-scope] details.structcat-disclosure > summary {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.structcat-number-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: normal;
}

.calculation-archive-field > .structcat-number-control {
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: normal;
}

.structcat-number-control > input {
  width: 100%;
  padding-right: 44px !important;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.structcat-native-number-control > input[type="number"] {
  appearance: textfield;
}

.structcat-native-number-control > input[type="number"]::-webkit-inner-spin-button,
.structcat-native-number-control > input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

/* Editing tables and the frame's fixed-size context menu use the same field
   treatment at compact density, so neither overflows its existing layout. */
[data-structcat-form-scope] :is(.frame-context-menu, .frame-edit-table, .frame-load-combinations__table, .snow-data-table, .settlement-table--intervals) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]),
  select,
  .structcat-number-control
) {
  height: 34px;
  min-height: 34px;
  border-radius: 8px;
}

[data-structcat-form-scope] :is(.frame-context-menu, .frame-edit-table, .frame-load-combinations__table, .snow-data-table, .settlement-table--intervals) :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]),
  select
) {
  padding-top: 5px;
  padding-bottom: 5px;
}

.structcat-number-stepper {
  position: absolute;
  right: 2px;
  z-index: 1;
  width: 36px;
  height: calc(50% - 2px);
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-border, rgba(40, 37, 29, .12));
  background: color-mix(in srgb, var(--color-surface-offset, #f0ede8) 72%, transparent);
  color: var(--color-text-muted, #77736c);
  font: inherit;
  font-size: 0;
  cursor: pointer;
}

.structcat-number-stepper::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  transform: translate(-50%, -50%);
}

.structcat-number-stepper--up {
  top: 2px;
  border-bottom: 1px solid var(--color-border, rgba(40, 37, 29, .12));
  border-radius: 0 9px 0 0;
}

.structcat-number-stepper--up::before {
  border-bottom: 5px solid currentColor;
}

.structcat-number-stepper--down {
  bottom: 2px;
  border-radius: 0 0 9px 0;
}

.structcat-number-stepper--down::before {
  border-top: 5px solid currentColor;
}

.structcat-number-stepper:hover:not(:disabled) {
  background: color-mix(in srgb, var(--color-surface-offset, #f0ede8) 72%, transparent);
  color: var(--color-text-muted, #77736c);
}

.structcat-number-control:not(.is-disabled):hover > input:not(:disabled):not([readonly]) {
  border-color: color-mix(in srgb, var(--color-primary, #01696f) 46%, var(--color-border, rgba(40, 37, 29, .12)));
}

.structcat-number-stepper:active:not(:disabled) {
  background: color-mix(in srgb, var(--color-primary, #01696f) 23%, var(--color-surface-offset, #f0ede8));
}

.structcat-number-stepper:disabled {
  cursor: default;
  opacity: .35;
}

.structcat-number-control.is-disabled {
  opacity: .72;
}

.structcat-number-control > input[aria-invalid="true"] {
  border-color: var(--color-danger, #b42318);
}

.calculation-archive-field.is-disabled select {
  background: var(--color-surface-offset, #f0ede8);
}

/* Use a single disabled text color instead of multiplying the opacity of the
   field, select wrapper and native select. The background still marks it disabled. */
.calculation-archive-panel .calculation-archive-field.is-disabled > span,
.calculation-archive-panel select:disabled {
  color: var(--archive-disabled-text);
  opacity: 1;
}

.calculation-archive-panel .structcat-select-control.is-disabled {
  opacity: 1;
}

.calculation-archive-primary-action {
  display: flex;
  align-items: end;
}

.calculation-archive-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 16px;
}

.calculation-archive-save-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-archive,
.btn-archive-delete {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: var(--archive-button-width, 124px);
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: none;
  box-shadow: none;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-archive {
  background: var(--color-primary);
  color: var(--color-inverse);
}

.btn-archive-delete {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--archive-delete-color, #b42318);
}

.btn-archive:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.btn-archive-delete:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--archive-delete-color, #b42318) 36%, var(--color-border));
  background: color-mix(in srgb, var(--archive-delete-color, #b42318) 8%, var(--color-surface));
}

.btn-archive:focus-visible,
.btn-archive-delete:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.btn-archive:disabled,
.btn-archive-delete:disabled {
  opacity: .55;
  cursor: default;
}

.calculation-archive-message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--color-text-muted, #77736c);
  font-size: .86rem;
}

.calculation-archive-message.is-error {
  color: #9a3f35;
}

.calculation-archive-message.is-success {
  color: #286b55;
}

.calculation-archive-message:empty {
  display: none;
}

.calculation-archive-project-link {
  display: block;
  margin-top: 14px;
  color: var(--color-primary);
  font-size: .78rem;
}

.calculation-archive-project-link a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calculation-report-panel {
  width: 100%;
}

.calculation-report-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.calculation-report-panel__state {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--color-border, rgba(40, 37, 29, .12));
  border-radius: var(--radius-full, 999px);
  background: var(--color-surface-offset, #f0ede8);
  color: var(--color-text-muted, #77736c);
  font-size: .78rem;
  font-weight: 700;
}

.calculation-report-panel__state.is-ready {
  border-color: color-mix(in srgb, #286b55 28%, var(--color-border));
  background: color-mix(in srgb, #286b55 9%, var(--color-surface));
  color: #286b55;
}

.calculation-report-panel__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
}

.calculation-report-panel__body p {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-muted, #77736c);
  line-height: 1.6;
}

.calculation-report-panel__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.calculation-report-panel__actions .btn {
  min-width: 138px;
  text-align: center;
}

.calculation-report-panel__actions .is-disabled {
  pointer-events: none;
  opacity: .48;
}

.calculation-report-panel__message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--color-text-muted, #77736c);
  font-size: .86rem;
}

.calculation-report-panel__message.is-error {
  color: #9a3f35;
}

.calculation-report-panel__message.is-success {
  color: #286b55;
}

@media (max-width: 760px) {
  .calculator-save-panel {
    padding: 22px 18px;
  }

  .calculator-save-panel__body,
  .calculator-save-panel .crane-save-fields {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .calculator-save-panel .crane-action-buttons,
  .calculator-save-panel .frame-savebar__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .calculator-save-panel .btn {
    width: 100%;
  }

  .calculation-archive-grid,
  .calculation-archive-save-row {
    grid-template-columns: 1fr;
  }

  .calculation-archive-primary-action,
  .calculation-archive-primary-action .btn,
  .calculation-archive-save-actions,
  .calculation-archive-save-actions .btn {
    width: 100%;
  }

  .calculation-archive-save-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculation-report-panel__header,
  .calculation-report-panel__body {
    align-items: stretch;
    flex-direction: column;
  }

  .calculation-report-panel__state {
    align-self: flex-start;
  }

  .calculation-report-panel__actions {
    width: 100%;
  }

  .calculation-report-panel__actions .btn {
    flex: 1 1 50%;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .calculation-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculation-archive-primary-action .btn {
    flex-basis: auto;
    width: 100%;
  }
}
