.ma-preaccounting__views {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: space-between;
}

.ma-preaccounting__view-buttons,
.ma-preaccounting__export-scope {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.ma-preaccounting__export-controls {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-left: auto;
  min-width: max-content;
  padding-bottom: 1.15rem;
  position: relative;
}

.ma-preaccounting__export-controls[hidden],
.ma-preaccounting__export-controls > [hidden] {
  display: none !important;
}

.ma-preaccounting__export-scope {
  background: #f5f1fb;
  border: 1px solid rgba(103, 19, 233, .16);
  border-radius: 999px;
  flex-direction: column;
  gap: .05rem;
  padding: .28rem .42rem;
}

.ma-preaccounting__export-scope label {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: .78rem;
  gap: .28rem;
  padding: .15rem .3rem;
}

.ma-preaccounting__export-scope input {
  margin: 0;
}

.ma-preaccounting__export-feedback {
  bottom: 0;
  color: #676170;
  font-size: .76rem;
  min-height: 1em;
  position: absolute;
  right: 0;
  text-align: right;
  width: 100%;
}

.ma-preaccounting__export-feedback[data-kind="error"] {
  color: #9a2630;
}

.ma-preaccounting__export-feedback[data-kind="success"] {
  color: #126437;
}

.ma-preaccounting__view-button[aria-pressed="true"] {
  background: #6713e9;
  border-color: #6713e9;
  color: #fff !important;
}

.ma-preaccounting__document-view,
.ma-preaccounting-pc3 {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}

.ma-preaccounting__document-view[hidden],
.ma-preaccounting-pc3[hidden] {
  display: none !important;
}

.ma-preaccounting-pc3 .ma-field[hidden] {
  display: none !important;
}

.ma-preaccounting-pc3__notice {
  margin: 0;
}

.ma-preaccounting-pc3__movement-source[hidden] {
  display: none !important;
}

.ma-preaccounting-pc3__source-declaration {
  background: #f8f5fc;
  border: 1px solid rgba(103, 19, 233, .16);
  border-radius: 14px;
  margin-top: .85rem;
  padding: .9rem;
}

.ma-preaccounting-pc3__source-declaration h6 {
  margin: 0 0 .8rem;
}

.ma-preaccounting-pc3__source-data {
  display: grid;
  gap: .65rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-preaccounting-pc3__source-data .ma-preaccounting-pc3__result {
  align-items: flex-start;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__source-data strong {
  text-align: left;
}

.ma-preaccounting-pc3__source-note {
  color: #676170;
  display: block;
  margin-top: .8rem;
}

@media (max-width: 1100px) {
  .ma-preaccounting-pc3__source-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ma-preaccounting-pc3__source-data {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ma-preaccounting-pc3__status {
  align-items: center;
  background: linear-gradient(135deg, rgba(103, 19, 233, .09), rgba(17, 113, 194, .08));
  border: 1px solid rgba(103, 19, 233, .18);
  border-radius: 16px;
  display: grid;
  gap: .35rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: .9rem 1rem;
}

.ma-preaccounting-pc3__status strong {
  background: #fff;
  border: 1px solid rgba(103, 19, 233, .2);
  border-radius: 999px;
  color: #6713e9;
  padding: .3rem .75rem;
}

.ma-preaccounting-pc3__status span {
  color: #666171;
  font-size: .82rem;
}

.ma-preaccounting-pc3__summary,
.ma-preaccounting-pc3__detail-grid,
.ma-preaccounting-pc3__mini-summary {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ma-preaccounting-pc3__detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-preaccounting-pc3__mini-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-preaccounting-pc3__credit-groups,
.ma-preaccounting-pc3__credit-scenarios {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ma-preaccounting-pc3__credit-group,
.ma-preaccounting-pc3__credit-scenario {
  background: #faf9fd;
  border: 1px solid rgba(103, 19, 233, .14);
  border-radius: 14px;
  display: grid;
  gap: .55rem;
  min-width: 0;
  padding: .85rem;
}

.ma-preaccounting-pc3__credit-group > span,
.ma-preaccounting-pc3__credit-scenario > span {
  color: #6713e9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ma-preaccounting-pc3__credit-group > strong,
.ma-preaccounting-pc3__credit-scenario > strong {
  color: #241832;
  line-height: 1.35;
}

.ma-preaccounting-pc3__credit-scenario > small {
  color: #6b6672;
}

.ma-preaccounting-pc3__credit-scenario > .ma-preaccounting-pc3__credit-scenario-periods {
  color: #7b2e75;
  font-weight: 700;
  line-height: 1.35;
}

.ma-preaccounting-pc3__credit-scenarios {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ma-preaccounting-pc3__credit-alerts,
.ma-preaccounting-pc3__credit-list {
  display: grid;
  gap: .65rem;
}

.ma-preaccounting-pc3__credit-alert {
  background: #f5f1fb;
  border-left: 4px solid #6713e9;
  border-radius: 10px;
  color: #51495b;
  line-height: 1.5;
  margin: 0;
  padding: .75rem .85rem;
}

.ma-preaccounting-pc3__credit-alert--complementary,
.ma-preaccounting-pc3__credit-complementary {
  background: #fff4ec;
  border-color: #d96b1f;
  color: #75380f;
}

.ma-preaccounting-pc3__credit-note {
  border: 1px solid rgba(28, 37, 68, .14);
  border-radius: 12px;
  min-width: 0;
  overflow: clip;
}

.ma-preaccounting-pc3__credit-note > summary {
  align-items: center;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  list-style: none;
  padding: .8rem .9rem;
}

.ma-preaccounting-pc3__credit-note > summary::-webkit-details-marker {
  display: none;
}

.ma-preaccounting-pc3__credit-note > summary > div {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.ma-preaccounting-pc3__credit-note > summary span {
  color: #686270;
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__credit-note > summary b {
  background: #f2ecfb;
  border-radius: 999px;
  color: #6713e9;
  flex: 0 0 auto;
  font-size: .75rem;
  padding: .28rem .6rem;
}

.ma-preaccounting-pc3__credit-note > summary b.ma-preaccounting-pc3__credit-badge--warning {
  background: #fff0e5;
  color: #a4470a;
}

.ma-preaccounting-pc3__credit-note-body {
  background: #faf9fd;
  border-top: 1px solid rgba(28, 37, 68, .1);
  display: grid;
  gap: .75rem;
  padding: .85rem;
}

.ma-preaccounting-pc3__credit-note-body > p {
  line-height: 1.5;
  margin: 0;
  padding: .65rem .75rem;
}

.ma-preaccounting-pc3__credit-values {
  display: grid;
  gap: .55rem .85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-preaccounting-pc3__metric {
  background: #fff;
  border: 1px solid rgba(28, 37, 68, .12);
  border-radius: 14px;
  display: grid;
  gap: .25rem;
  min-width: 0;
  padding: .85rem;
}

.ma-preaccounting-pc3__metric > span {
  color: #6713e9;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ma-preaccounting-pc3__metric > strong {
  color: #21172f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__metric--money {
  gap: .55rem;
}

.ma-preaccounting-pc3__metric--diot {
  align-content: start;
  gap: .55rem;
}

.ma-preaccounting-pc3__metric--diot > strong {
  font-size: 1rem;
  line-height: 1.35;
}

.ma-preaccounting-pc3__metric--diot > .ma-button {
  justify-self: start;
  margin-top: auto;
}

.ma-preaccounting-pc3__money-line {
  align-items: end;
  border-top: 1px solid rgba(28, 37, 68, .08);
  display: grid;
  gap: .5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: .45rem;
}

.ma-preaccounting-pc3__money-line > div {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.ma-preaccounting-pc3__money-line span {
  color: #6b6672;
  font-size: .72rem;
}

.ma-preaccounting-pc3__money-line strong {
  color: #241832;
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__money-line--total {
  border-top: 0;
  padding-top: 0;
}

.ma-preaccounting-pc3__money-line--total > div:first-child strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.ma-preaccounting-pc3__rounded {
  text-align: right;
}

.ma-preaccounting-pc3__rounded strong {
  color: #6713e9;
}

.ma-preaccounting-pc3__money-breakdown {
  background: #faf9fd;
  border-radius: 10px;
  display: grid;
  padding: .1rem .55rem .55rem;
}

.ma-preaccounting-pc3__reconciliation {
  background: #f7f3fd;
  border-left: 4px solid #6713e9;
  border-radius: 10px;
  color: #51495b;
  line-height: 1.5;
  margin: 0;
  padding: .75rem .85rem;
}

.ma-preaccounting-pc3__metric > small {
  color: #6b6672;
  line-height: 1.35;
}

.ma-preaccounting-pc3__balance-group {
  align-content: start;
  align-self: start;
  padding: 0;
}

.ma-preaccounting-pc3__balance-group > summary {
  cursor: pointer;
  display: grid;
  gap: .25rem;
  list-style: none;
  min-width: 0;
  padding: .85rem 2.7rem .85rem .85rem;
  position: relative;
}

.ma-preaccounting-pc3__balance-group > summary::-webkit-details-marker {
  display: none;
}

.ma-preaccounting-pc3__balance-group > summary::after {
  border-bottom: 2px solid #6713e9;
  border-right: 2px solid #6713e9;
  content: "";
  height: .48rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .15s ease;
  width: .48rem;
}

.ma-preaccounting-pc3__balance-group[open] > summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.ma-preaccounting-pc3__balance-group > summary > span {
  color: #6713e9;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ma-preaccounting-pc3__balance-group > summary > strong {
  color: #21172f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__balance-group > summary > small {
  color: #6b6672;
  line-height: 1.35;
}

.ma-preaccounting-pc3__balance-group:not([open]) > .ma-preaccounting-pc3__balance-tax-list {
  display: none;
}

.ma-preaccounting-pc3__balance-tax-list {
  border-top: 1px solid rgba(28, 37, 68, .1);
  display: grid;
  gap: .7rem;
  padding: .75rem;
}

.ma-preaccounting-pc3__section {
  border: 1px solid rgba(28, 37, 68, .14);
  border-radius: 18px;
  overflow: clip;
  overflow-anchor: none;
}

.ma-preaccounting-pc3__section-summary {
  align-items: center;
  background: #faf9fd;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 1rem 1.1rem;
}

.ma-preaccounting-pc3__section-summary::-webkit-details-marker {
  display: none;
}

.ma-preaccounting-pc3__section-summary::after {
  color: #6713e9;
  content: "▾";
  font-size: 1.05rem;
  font-weight: 900;
}

.ma-preaccounting-pc3__section[open] > .ma-preaccounting-pc3__section-summary::after {
  content: "▴";
}

.ma-preaccounting-pc3__section-summary span {
  color: #6713e9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ma-preaccounting-pc3__section-summary h5,
.ma-preaccounting-pc3__section-summary p,
.ma-preaccounting-pc3__subform h6,
.ma-preaccounting-pc3__form > h6 {
  margin: 0;
}

.ma-preaccounting-pc3__section-summary h5 {
  margin-top: .15rem;
}

.ma-preaccounting-pc3__section-summary p {
  color: #67616f;
  font-size: .88rem;
  margin-top: .25rem;
}

.ma-preaccounting-pc3__section-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.ma-preaccounting-pc3__categories,
.ma-preaccounting-pc3__form-grid,
.ma-preaccounting-pc3__subform-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-preaccounting-pc3__form-grid {
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-preaccounting-pc3__form-grid--determination {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ma-preaccounting-pc3__signed-field {
  align-content: start;
}

.ma-preaccounting-pc3__reference-field input[readonly] {
  background: #f4f1f8;
  color: #3f3850;
  cursor: default;
  font-weight: 800;
}

.ma-preaccounting-pc3__favor-toggle {
  align-items: center;
  color: #51495b;
  cursor: pointer;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .45rem;
  justify-self: start;
  margin: 0;
}

.ma-preaccounting-pc3__favor-toggle input {
  min-height: 0;
  padding: 0;
  width: auto;
}

.ma-preaccounting-pc3__subform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ma-preaccounting-pc3__origin-field {
  grid-column: 1 / -1;
}

.ma-preaccounting-pc3__origin-field select {
  box-sizing: border-box;
  height: auto;
  min-height: 3rem;
  overflow-wrap: anywhere;
  white-space: normal;
  width: 100%;
}

.ma-preaccounting-pc3__origin-field option {
  overflow-wrap: anywhere;
  white-space: normal;
}

.ma-preaccounting-pc3__category,
.ma-preaccounting-pc3__subform,
.ma-preaccounting-pc3__declaration {
  background: #faf9fd;
  border: 1px solid rgba(103, 19, 233, .12);
  border-radius: 14px;
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: .9rem;
}

.ma-preaccounting-pc3__category p,
.ma-preaccounting-pc3__balance-body p {
  color: #67616f;
  margin: 0;
}

.ma-preaccounting-pc3__wide {
  grid-column: 1 / -1;
}

.ma-preaccounting-pc3__results {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-preaccounting-pc3__tax-results {
  background: #f7f8fc;
  border-radius: 14px;
  display: grid;
  overflow: hidden;
}

.ma-preaccounting-pc3__tax-results h6 {
  color: #6713e9;
  margin: 0;
  padding: .7rem .8rem .35rem;
}

.ma-preaccounting-pc3__result {
  align-items: center;
  border-bottom: 1px solid rgba(28, 37, 68, .08);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  min-width: 0;
  padding: .65rem .8rem;
}

.ma-preaccounting-pc3__result span {
  color: #5f5968;
  min-width: 0;
}

.ma-preaccounting-pc3__result strong {
  color: #241832;
  text-align: right;
}

.ma-preaccounting-pc3__result-values {
  display: grid;
  flex: 0 0 auto;
  gap: .08rem;
  justify-items: end;
  text-align: right;
}

.ma-preaccounting-pc3__result-values small {
  color: #6b6672;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.ma-preaccounting-pc3__result-values small strong {
  color: #6713e9;
  font-size: inherit;
}

.ma-preaccounting-pc3__result .ma-preaccounting-pc3__result-rounded span {
  color: #6b6672;
}

.ma-preaccounting-pc3__result--subline {
  background: rgba(255, 255, 255, .62);
  padding-left: 1.35rem;
}

.ma-preaccounting-pc3__result--subline > span {
  font-size: .84rem;
}

.ma-preaccounting-pc3__result--strong {
  background: rgba(103, 19, 233, .08);
}

.ma-preaccounting-pc3__result--strong strong {
  color: #6713e9;
}

.ma-preaccounting-pc3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.ma-preaccounting-pc3__form > .ma-preaccounting-pc3__actions {
  border-top: 1px solid rgba(28, 37, 68, .1);
  margin-top: .35rem;
  padding-top: 1rem;
}

.ma-preaccounting-pc3__balance-list,
.ma-preaccounting-pc3__declaration-list,
.ma-preaccounting-pc3__files {
  display: grid;
  gap: .7rem;
}

.ma-preaccounting-pc3__balance {
  border: 1px solid rgba(28, 37, 68, .12);
  border-radius: 12px;
  overflow: hidden;
}

.ma-preaccounting-pc3__balance > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: .75rem .85rem;
}

.ma-preaccounting-pc3__balance > summary div,
.ma-preaccounting-pc3__declaration header div {
  display: grid;
  gap: .12rem;
}

.ma-preaccounting-pc3__balance > summary span,
.ma-preaccounting-pc3__declaration header span {
  color: #6a6470;
  font-size: .8rem;
}

.ma-preaccounting-pc3__balance-body {
  border-top: 1px solid rgba(28, 37, 68, .1);
  display: grid;
  padding: .55rem .8rem;
}

.ma-preaccounting-pc3__balance > summary .ma-preaccounting-pc3__balance-amount,
.ma-preaccounting-pc3__balance-amount {
  align-items: end;
  display: grid;
  flex: 0 0 auto;
  gap: .35rem;
  justify-items: end;
}

.ma-preaccounting-pc3__balance-amount b {
  white-space: nowrap;
}

.ma-preaccounting-pc3 .ma-preaccounting-pc3__delete-chip {
  border-radius: 999px;
  font-size: .74rem;
  line-height: 1.2;
  min-height: 0;
  padding: .25rem .55rem;
}

.ma-preaccounting-pc3__movement-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
  min-width: 0;
}

.ma-preaccounting-pc3__movement-list:empty {
  display: none;
}

.ma-preaccounting-pc3__movement-list h6 {
  color: #30223f;
  font-size: .95rem;
  margin: 0;
}

.ma-preaccounting-pc3__movement {
  background: #faf9fd;
  border: 1px solid rgba(103, 19, 233, .15);
  border-radius: 12px;
  padding: .75rem .85rem;
}

.ma-preaccounting-pc3__movement > header {
  align-items: start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.ma-preaccounting-pc3__movement > header > div:first-child {
  display: grid;
  gap: .3rem;
  min-width: 0;
}

.ma-preaccounting-pc3__movement small,
.ma-preaccounting-pc3__movement p {
  color: #6a6470;
  font-size: .8rem;
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__movement p {
  margin: .6rem 0 0;
}

.ma-preaccounting-pc3__delete-error {
  color: #9a2630 !important;
  display: block;
  padding: .6rem .8rem;
}

.ma-preaccounting-pc3__delete-error[hidden] {
  display: none !important;
}

.ma-preaccounting-pc3__delete-dialog {
  padding: 1.3rem;
}

.ma-preaccounting-pc3__delete-dialog h4 {
  margin: 0 0 .75rem;
}

.ma-preaccounting-pc3__delete-dialog p {
  line-height: 1.5;
  margin: 0 0 1rem;
}

.ma-preaccounting-pc3__declaration header,
.ma-preaccounting-pc3__files > div {
  align-items: center;
  display: flex;
  gap: .7rem;
  justify-content: space-between;
}

.ma-preaccounting-pc3__declaration-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ma-preaccounting-pc3__files > div {
  background: #fff;
  border-radius: 10px;
  padding: .45rem .65rem;
}

.ma-preaccounting-pc3__files span,
.ma-preaccounting-pc3__file-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ma-preaccounting-pc3__file-link {
  color: #6713e9;
  font-weight: 700;
  text-align: right;
}

.ma-preaccounting-pc3__attachment-stage {
  border-top: 1px solid rgba(28, 37, 68, .1);
  display: grid;
  gap: .75rem;
  padding-top: .75rem;
}

.ma-preaccounting-pc3__attachment-stage h6,
.ma-preaccounting-pc3__attachment-stage p {
  margin: 0;
}

.ma-preaccounting-pc3__attachment-stage p {
  color: #686270;
}

.ma-preaccounting-pc3__attachment-rows {
  display: grid;
  gap: .7rem;
}

.ma-preaccounting-pc3__attachment-row {
  align-items: start;
  background: #faf9fd;
  border: 1px solid rgba(103, 19, 233, .12);
  border-radius: 12px;
  display: grid;
  gap: .7rem;
  grid-template-columns: minmax(170px, .7fr) minmax(240px, 1.3fr) auto;
  min-width: 0;
  padding: .75rem;
}

.ma-preaccounting-pc3__attachment-row > .ma-field {
  align-self: start;
  margin-bottom: 0;
}

.ma-preaccounting-pc3__attachment-row > .ma-button {
  align-self: start;
  margin-top: 1.45rem;
}

.ma-preaccounting-pc3__alerts {
  background: #fff8e8;
  border: 1px solid #efd48c;
  border-radius: 12px;
  color: #5e4a18;
  margin: 0;
  padding: .8rem 1rem .8rem 2rem;
}

.ma-preaccounting-pc3__alerts--error {
  background: #fff1f1;
  border-color: #efb4b4;
  color: #7b2525;
}

.ma-preaccounting-pc3__confirm,
.ma-preaccounting-pc3__reopen {
  align-items: flex-start;
  display: flex;
  gap: .65rem;
}

.ma-preaccounting-pc3__confirm input {
  margin-top: .2rem;
}

.ma-preaccounting-pc3__closure > .ma-preaccounting-pc3__confirm {
  margin: .75rem 0 0;
}

.ma-preaccounting-pc3__closure > .ma-preaccounting-pc3__confirm + .ma-button {
  margin-top: .75rem;
}

.ma-preaccounting-pc3__reopen {
  align-items: end;
}

.ma-preaccounting-pc3__reopen .ma-field {
  flex: 1;
}

.ma-preaccounting-pc3__reopening-history {
  display: grid;
  gap: .55rem;
  margin: .75rem 0;
}

.ma-preaccounting-pc3__reopening-history .ma-preaccounting-pc3__reopening-reason {
  margin: 0;
}

.ma-preaccounting-pc3__empty {
  color: #686270;
  margin: 0;
}

@media (max-width: 1050px) {
  .ma-preaccounting-pc3__summary,
  .ma-preaccounting-pc3__detail-grid,
  .ma-preaccounting-pc3__form-grid,
  .ma-preaccounting-pc3__subform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-preaccounting-pc3__form-grid--determination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-preaccounting-pc3__credit-groups,
  .ma-preaccounting-pc3__credit-scenarios,
  .ma-preaccounting-pc3__credit-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ma-preaccounting__views,
  .ma-preaccounting-pc3__declaration header,
  .ma-preaccounting-pc3__reopen {
    align-items: stretch;
    flex-direction: column;
  }

  .ma-preaccounting__views .ma-button {
    width: 100%;
  }

  .ma-preaccounting__view-buttons,
  .ma-preaccounting__export-controls {
    align-items: stretch;
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .ma-preaccounting__export-controls {
    min-width: 0;
    padding-bottom: 0;
    position: static;
  }

  .ma-preaccounting__export-scope {
    align-self: stretch;
    border-radius: 14px;
    justify-content: center;
  }

  .ma-preaccounting__export-feedback {
    position: static;
    text-align: left;
    width: auto;
  }

  .ma-preaccounting-pc3__status,
  .ma-preaccounting-pc3__summary,
  .ma-preaccounting-pc3__detail-grid,
  .ma-preaccounting-pc3__mini-summary,
  .ma-preaccounting-pc3__categories,
  .ma-preaccounting-pc3__form-grid,
  .ma-preaccounting-pc3__subform-grid,
  .ma-preaccounting-pc3__credit-groups,
  .ma-preaccounting-pc3__credit-scenarios,
  .ma-preaccounting-pc3__credit-values,
  .ma-preaccounting-pc3__results,
  .ma-preaccounting-pc3__declaration-data {
    grid-template-columns: minmax(0, 1fr);
  }

  .ma-preaccounting-pc3__attachment-row {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }


  .ma-preaccounting-pc3__form-grid--determination {
    grid-template-columns: minmax(0, 1fr);
  }

  .ma-preaccounting-pc3__attachment-row > .ma-button {
    margin-top: 0;
  }

  .ma-preaccounting-pc3__status {
    justify-items: start;
  }

  .ma-preaccounting-pc3__result {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .ma-preaccounting-pc3__result strong {
    text-align: left;
  }

  .ma-preaccounting-pc3__result-values {
    justify-items: start;
    text-align: left;
  }

  .ma-preaccounting-pc3__files > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ma-preaccounting-pc3__file-link {
    text-align: left;
  }

  .ma-preaccounting-pc3__credit-note > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
.ma-preaccounting-pc3__declaration-copy {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--ma-line, #d9d4df);
}

.ma-preaccounting-pc3__declaration-copy h6,
.ma-preaccounting-pc3__declaration-copy p {
  margin: 0;
}

.ma-preaccounting-pc3__declaration-copy p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
