/* AELIN Shopee Capital — scoped, mobile-first finance tab styles. */
#shopeeCapitalPanel {
  --sc-navy: #10213d;
  --sc-navy-2: #18345e;
  --sc-blue: #2f68a6;
  --sc-blue-soft: #e9f1f8;
  --sc-gold: #c49a42;
  --sc-gold-soft: #fff7df;
  --sc-border: #d9e2ec;
  --sc-ink: #17243a;
  --sc-muted: #65758b;
  --sc-surface: #ffffff;
  --sc-surface-soft: #f7f9fc;
  --sc-yellow: #9a6b00;
  --sc-yellow-soft: #fff3c4;
  --sc-transit: #4f6884;
  --sc-transit-soft: #e9f1f8;
  --sc-released: #217a52;
  --sc-released-soft: #e5f5ed;
  --sc-problem: #b4232f;
  --sc-problem-soft: #fdebed;
  color: var(--sc-ink);
}

#shopeeCapitalPanel[hidden],
#shopeeCapitalPanel [hidden] {
  display: none !important;
}

#shopeeCapitalPanel .sc-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
}

#shopeeCapitalPanel .sc-hero {
  align-items: center;
  background:
    radial-gradient(circle at 92% 10%, rgba(196, 154, 66, 0.24), transparent 34%),
    linear-gradient(135deg, var(--sc-navy), var(--sc-navy-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(16, 33, 61, 0.18);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
}

#shopeeCapitalPanel .sc-hero h2,
#shopeeCapitalPanel .sc-card h3 {
  margin: 4px 0 6px;
}

#shopeeCapitalPanel .sc-hero p,
#shopeeCapitalPanel .sc-card header p,
#shopeeCapitalPanel .sc-forecast-rule p {
  line-height: 1.55;
  margin: 0;
}

#shopeeCapitalPanel .sc-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
}

#shopeeCapitalPanel .sc-eyebrow {
  color: var(--sc-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#shopeeCapitalPanel .sc-hero-actions {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
}

#shopeeCapitalPanel .sc-hero-actions > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

#shopeeCapitalPanel .btn.light {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--sc-navy);
}

#shopeeCapitalPanel button,
#shopeeCapitalPanel input,
#shopeeCapitalPanel select {
  font: inherit;
}

#shopeeCapitalPanel button {
  min-height: 44px;
}

#shopeeCapitalPanel .sc-message,
#shopeeCapitalPanel .sc-setup,
#shopeeCapitalPanel .sc-forecast-rule {
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  padding: 14px 16px;
}

#shopeeCapitalPanel .sc-message {
  background: var(--sc-blue-soft);
  color: var(--sc-navy-2);
  font-weight: 650;
}

#shopeeCapitalPanel .sc-message.success {
  background: #eef3f9;
  border-color: #bccde0;
  color: var(--sc-navy-2);
}

#shopeeCapitalPanel .sc-message.warning {
  background: var(--sc-yellow-soft);
  border-color: #ead17a;
  color: #745000;
}

#shopeeCapitalPanel .sc-message.error {
  background: var(--sc-problem-soft);
  border-color: #efb8be;
  color: var(--sc-problem);
}

#shopeeCapitalPanel .sc-setup {
  align-items: center;
  background: var(--sc-gold-soft);
  border-color: #ead391;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

#shopeeCapitalPanel .sc-setup p {
  color: #735c26;
  margin: 5px 0 0;
}

#shopeeCapitalPanel .sc-forecast-rule {
  align-items: center;
  background: #eef4fb;
  border-left: 5px solid var(--sc-blue);
  display: flex;
  gap: 14px;
}

#shopeeCapitalPanel .sc-forecast-rule > span {
  background: var(--sc-navy);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  padding: 7px 10px;
}

#shopeeCapitalPanel .sc-forecast-rule p {
  color: var(--sc-muted);
  font-size: 0.88rem;
}

#shopeeCapitalPanel .sc-loading {
  align-items: center;
  color: var(--sc-muted);
  display: flex;
  font-size: 0.88rem;
  gap: 10px;
  justify-content: center;
  padding: 8px;
}

#shopeeCapitalPanel .sc-loading i {
  animation: sc-spin 0.9s linear infinite;
  border: 3px solid #dce6f0;
  border-radius: 50%;
  border-top-color: var(--sc-blue);
  height: 18px;
  width: 18px;
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

#shopeeCapitalPanel .sc-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-metric {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 33, 61, 0.07);
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

#shopeeCapitalPanel .sc-metric::before {
  background: var(--sc-blue);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

#shopeeCapitalPanel .sc-metric > div {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

#shopeeCapitalPanel .sc-metric small,
#shopeeCapitalPanel .sc-capital-band small {
  color: var(--sc-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

#shopeeCapitalPanel .sc-metric strong {
  color: var(--sc-navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#shopeeCapitalPanel .sc-metric p {
  color: var(--sc-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

#shopeeCapitalPanel .sc-metric.asset::before { background: var(--sc-gold); }
#shopeeCapitalPanel .sc-metric.forecast::before { background: var(--sc-blue); }
#shopeeCapitalPanel .sc-metric.transit::before { background: #8ca7c1; }
#shopeeCapitalPanel .sc-metric.waiting::before { background: #d5a816; }
#shopeeCapitalPanel .sc-metric.released::before { background: var(--sc-released); }
#shopeeCapitalPanel .sc-metric.problem::before,
#shopeeCapitalPanel .sc-metric.debt::before { background: var(--sc-problem); }

#shopeeCapitalPanel .sc-chip {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

#shopeeCapitalPanel .sc-chip.asset {
  background: var(--sc-gold-soft);
  border-color: #ead391;
  color: #765918;
}

#shopeeCapitalPanel .sc-chip.forecast {
  background: #e8f0fb;
  border-color: #bfd2e8;
  color: #2c5d95;
}

#shopeeCapitalPanel .sc-chip.transit,
#shopeeCapitalPanel .sc-chip.in-transit {
  background: var(--sc-transit-soft);
  border-color: #c5d5e4;
  color: var(--sc-transit);
}

#shopeeCapitalPanel .sc-chip.waiting {
  background: var(--sc-yellow-soft);
  border-color: #ead17a;
  color: var(--sc-yellow);
}

#shopeeCapitalPanel .sc-chip.released {
  background: var(--sc-released-soft);
  border-color: #b8dfcc;
  color: var(--sc-released);
}

#shopeeCapitalPanel .sc-chip.problem,
#shopeeCapitalPanel .sc-chip.debt {
  background: var(--sc-problem-soft);
  border-color: #efb8be;
  color: var(--sc-problem);
}

#shopeeCapitalPanel .sc-capital-band {
  background: var(--sc-navy);
  border-radius: 18px;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

#shopeeCapitalPanel .sc-capital-band article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 20px;
}

#shopeeCapitalPanel .sc-capital-band article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

#shopeeCapitalPanel .sc-capital-band article.estimated {
  background: rgba(47, 104, 166, 0.34);
}

#shopeeCapitalPanel .sc-capital-band article.coverage {
  background: rgba(196, 154, 66, 0.16);
}

#shopeeCapitalPanel .sc-capital-band small { color: var(--sc-gold); }

#shopeeCapitalPanel .sc-capital-band strong {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  overflow-wrap: anywhere;
}

#shopeeCapitalPanel .sc-capital-band span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  line-height: 1.4;
}

#shopeeCapitalPanel .sc-two-column {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(16, 33, 61, 0.055);
  min-width: 0;
  padding: 18px;
}

#shopeeCapitalPanel .sc-card > header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

#shopeeCapitalPanel .sc-card header p,
#shopeeCapitalPanel .sc-muted {
  color: var(--sc-muted);
  font-size: 0.82rem;
}

#shopeeCapitalPanel .sc-form,
#shopeeCapitalPanel .sc-import-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-form label,
#shopeeCapitalPanel .sc-import-form label {
  color: #506178;
  display: grid;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.035em;
  min-width: 0;
}

#shopeeCapitalPanel .sc-form input,
#shopeeCapitalPanel .sc-form select,
#shopeeCapitalPanel .sc-import-form input,
#shopeeCapitalPanel .sc-import-form select {
  background: #fff;
  border: 1px solid #cbd7e4;
  border-radius: 10px;
  color: var(--sc-ink);
  min-height: 44px;
  min-width: 0;
  padding: 9px 11px;
  width: 100%;
}

#shopeeCapitalPanel .sc-form input:focus,
#shopeeCapitalPanel .sc-form select:focus,
#shopeeCapitalPanel .sc-import-form input:focus,
#shopeeCapitalPanel .sc-import-form select:focus {
  border-color: var(--sc-blue);
  box-shadow: 0 0 0 3px rgba(47, 104, 166, 0.15);
  outline: none;
}

#shopeeCapitalPanel .sc-form .wide,
#shopeeCapitalPanel .sc-import-form .wide {
  grid-column: 1 / -1;
}

#shopeeCapitalPanel .sc-form-source,
#shopeeCapitalPanel .sc-form-note {
  background: var(--sc-surface-soft);
  border-radius: 9px;
  color: var(--sc-muted);
  font-size: 0.74rem;
  line-height: 1.45;
  margin: 0;
  padding: 9px 11px;
}

#shopeeCapitalPanel .sc-file-field {
  background: var(--sc-blue-soft);
  border: 1px dashed #9eb7d0;
  border-radius: 12px;
  padding: 12px;
}

#shopeeCapitalPanel .sc-file-field small {
  color: var(--sc-muted);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

#shopeeCapitalPanel .sc-file-summary {
  background: var(--sc-surface-soft);
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  color: var(--sc-muted);
  font-size: 0.78rem;
  padding: 10px 12px;
}

#shopeeCapitalPanel .sc-file-summary.ready {
  background: var(--sc-blue-soft);
  border-color: #b7cce1;
  color: var(--sc-navy-2);
}

#shopeeCapitalPanel .sc-file-summary.problem {
  background: var(--sc-problem-soft);
  border-color: #efb8be;
  color: var(--sc-problem);
}

#shopeeCapitalPanel .sc-preview {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#shopeeCapitalPanel .sc-preview-totals {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-preview-total {
  background: var(--sc-surface-soft);
  border: 1px solid var(--sc-border);
  border-radius: 9px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

#shopeeCapitalPanel .sc-preview-total small {
  color: var(--sc-muted);
  font-size: 0.62rem;
}

#shopeeCapitalPanel .sc-preview-total b {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

#shopeeCapitalPanel .sc-preview-total.waiting { background: var(--sc-yellow-soft); border-color: #ead17a; color: var(--sc-yellow); }
#shopeeCapitalPanel .sc-preview-total.released { background: var(--sc-released-soft); border-color: #b8dfcc; color: var(--sc-released); }
#shopeeCapitalPanel .sc-preview-total.problem { background: var(--sc-problem-soft); border-color: #efb8be; color: var(--sc-problem); }
#shopeeCapitalPanel .sc-preview-total.forecast { background: #e8f0fb; border-color: #bfd2e8; color: #2c5d95; }

#shopeeCapitalPanel .sc-preview-table-wrap {
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#shopeeCapitalPanel .sc-preview table {
  border-collapse: collapse;
  font-size: 0.72rem;
  min-width: 620px;
  width: 100%;
}

#shopeeCapitalPanel .sc-preview th,
#shopeeCapitalPanel .sc-preview td {
  border-bottom: 1px solid #e7edf3;
  max-width: 220px;
  overflow: hidden;
  padding: 8px 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shopeeCapitalPanel .sc-preview th {
  background: #eef3f8;
  color: var(--sc-navy);
  position: sticky;
  top: 0;
}

#shopeeCapitalPanel .sc-preview > small {
  color: var(--sc-muted);
  line-height: 1.45;
}

#shopeeCapitalPanel .sc-checkpoint-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-checkpoint {
  background: var(--sc-surface-soft);
  border: 1px solid var(--sc-border);
  border-radius: 13px;
  padding: 14px;
}

#shopeeCapitalPanel .sc-checkpoint.empty {
  border-style: dashed;
}

#shopeeCapitalPanel .sc-checkpoint > div,
#shopeeCapitalPanel .sc-history-row > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#shopeeCapitalPanel .sc-checkpoint > div small,
#shopeeCapitalPanel .sc-history-row > div small {
  color: var(--sc-muted);
  margin-left: auto;
}

#shopeeCapitalPanel .sc-checkpoint p,
#shopeeCapitalPanel .sc-empty {
  color: var(--sc-muted);
  font-size: 0.82rem;
  margin: 12px 0 0;
}

#shopeeCapitalPanel dl {
  margin: 12px 0 0;
}

#shopeeCapitalPanel .sc-checkpoint dl,
#shopeeCapitalPanel .sc-history-row dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#shopeeCapitalPanel .sc-checkpoint dl div,
#shopeeCapitalPanel .sc-history-row dl div {
  display: grid;
  gap: 3px;
}

#shopeeCapitalPanel dt {
  color: var(--sc-muted);
  font-size: 0.68rem;
}

#shopeeCapitalPanel dd {
  color: var(--sc-navy);
  font-size: 0.83rem;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

#shopeeCapitalPanel dd.released { color: var(--sc-released); }
#shopeeCapitalPanel dd.problem { color: var(--sc-problem); }

#shopeeCapitalPanel .sc-history {
  display: grid;
  gap: 10px;
}

#shopeeCapitalPanel .sc-history-row {
  align-items: center;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr);
  padding: 12px;
}

#shopeeCapitalPanel .sc-history-row dl {
  margin: 0;
}

#shopeeCapitalPanel .sc-data-list,
#shopeeCapitalPanel .sc-position-list {
  display: grid;
  gap: 9px;
}

#shopeeCapitalPanel .sc-data-row,
#shopeeCapitalPanel .sc-position-row {
  align-items: center;
  background: var(--sc-surface-soft);
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  padding: 12px;
}

#shopeeCapitalPanel .sc-data-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

#shopeeCapitalPanel .sc-data-row > div,
#shopeeCapitalPanel .sc-position-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#shopeeCapitalPanel .sc-data-row > div:last-child {
  justify-items: end;
}

#shopeeCapitalPanel .sc-data-row small,
#shopeeCapitalPanel .sc-position-row small {
  color: var(--sc-muted);
  font-size: 0.72rem;
}

#shopeeCapitalPanel .sc-data-row span {
  color: var(--sc-muted);
  font-size: 0.76rem;
}

#shopeeCapitalPanel .sc-position-row {
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.4fr);
}

#shopeeCapitalPanel .sc-position-row .sc-chip {
  justify-self: start;
}

#shopeeCapitalPanel .sc-position-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#shopeeCapitalPanel .sc-position-row dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

#shopeeCapitalPanel .sc-position-row dl div {
  display: grid;
  gap: 3px;
}

#shopeeCapitalPanel .sc-import-issues {
  background: var(--sc-problem-soft);
  border: 1px solid #efb8be;
  border-radius: 10px;
  color: #7e2530;
  display: grid;
  gap: 8px;
  padding: 11px;
}

#shopeeCapitalPanel .sc-import-issues ul {
  margin: 0;
  padding-left: 18px;
}

#shopeeCapitalPanel .sc-mapping-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr);
}

#shopeeCapitalPanel .sc-mapping-row > span {
  display: grid;
  font-size: 0.74rem;
  font-weight: 750;
  gap: 3px;
}

#shopeeCapitalPanel .sc-mapping-row select {
  background: #fff;
  border: 1px solid #d69da4;
  border-radius: 9px;
  color: var(--sc-ink);
  min-height: 42px;
  min-width: 0;
  padding: 7px 9px;
  width: 100%;
}

#shopeeCapitalPanel .sc-bootstrap {
  background: linear-gradient(135deg, #fff9e9, #fffdf7);
  border: 1px solid #e4c777;
  border-left: 5px solid var(--sc-gold, #b58a24);
  border-radius: 14px;
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr);
  padding: 16px;
}

#shopeeCapitalPanel .sc-bootstrap > div:first-child,
#shopeeCapitalPanel .sc-bootstrap-status {
  display: grid;
  gap: 5px;
}

#shopeeCapitalPanel .sc-bootstrap h4,
#shopeeCapitalPanel .sc-bootstrap p,
#shopeeCapitalPanel .sc-bootstrap-status ul {
  margin: 0;
}

#shopeeCapitalPanel .sc-bootstrap > div:first-child,
#shopeeCapitalPanel .sc-bootstrap-status {
  grid-column: 1 / -1;
}

#shopeeCapitalPanel .sc-bootstrap-status {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #eadcae;
  border-radius: 10px;
  color: #6d581f;
  padding: 11px 12px;
}

#shopeeCapitalPanel .sc-bootstrap-status.ready {
  background: #eef8f3;
  border-color: #91cdb2;
  color: #155e45;
}

#shopeeCapitalPanel .sc-bootstrap-status.done {
  background: #eef3fa;
  border-color: #aabbd3;
  color: var(--sc-navy);
}

#shopeeCapitalPanel .sc-bootstrap-status.problem {
  background: var(--sc-problem-soft);
  border-color: #efb8be;
  color: #7e2530;
}

#shopeeCapitalPanel .sc-bootstrap > button {
  align-self: end;
  min-height: 48px;
}

#shopeeCapitalPanel .sc-bootstrap.sc-reconciliation {
  background: linear-gradient(135deg, #f3f5ff, #fbfcff);
  border-color: #aebbe2;
  border-left-color: var(--sc-navy);
}

#shopeeCapitalPanel .sc-reconciliation .sc-bootstrap-status {
  border-color: #c9d1ea;
  color: var(--sc-navy);
}

#shopeeCapitalPanel form button[type="submit"] {
  background: var(--sc-navy);
  border-color: var(--sc-navy);
}

#shopeeCapitalPanel form button[type="submit"]:hover:not(:disabled) {
  background: var(--sc-navy-2);
}

#shopeeCapitalPanel form button:disabled,
#shopeeCapitalPanel form input:disabled,
#shopeeCapitalPanel form select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

@media (max-width: 1060px) {
  #shopeeCapitalPanel .sc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #shopeeCapitalPanel .sc-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  #shopeeCapitalPanel .sc-shell { gap: 12px; }
  #shopeeCapitalPanel .sc-hero { align-items: stretch; border-radius: 16px; flex-direction: column; padding: 18px; }
  #shopeeCapitalPanel .sc-hero-actions { align-items: stretch; flex-direction: row; justify-content: space-between; }
  #shopeeCapitalPanel .sc-hero-actions > span { align-self: center; }
  #shopeeCapitalPanel .sc-forecast-rule { align-items: flex-start; flex-direction: column; }
  #shopeeCapitalPanel .sc-metrics { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-capital-band { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-capital-band article + article { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  #shopeeCapitalPanel .sc-form,
  #shopeeCapitalPanel .sc-import-form,
  #shopeeCapitalPanel .sc-checkpoint-grid { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-form .wide,
  #shopeeCapitalPanel .sc-import-form .wide { grid-column: 1; }
  #shopeeCapitalPanel .sc-bootstrap { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-preview-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #shopeeCapitalPanel .sc-history-row { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-position-row { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-position-row dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #shopeeCapitalPanel .sc-setup { align-items: stretch; flex-direction: column; }
}

@media (max-width: 430px) {
  #shopeeCapitalPanel .sc-hero,
  #shopeeCapitalPanel .sc-card { border-radius: 13px; padding: 14px; }
  #shopeeCapitalPanel .sc-hero-actions { flex-direction: column; }
  #shopeeCapitalPanel .sc-hero-actions > span { align-self: flex-start; }
  #shopeeCapitalPanel .sc-hero-actions .btn { width: 100%; }
  #shopeeCapitalPanel .sc-card > header { flex-direction: column; }
  #shopeeCapitalPanel .sc-card > header > .sc-chip { align-self: flex-start; }
  #shopeeCapitalPanel .sc-preview-totals { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-checkpoint dl,
  #shopeeCapitalPanel .sc-history-row dl { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-checkpoint > div small,
  #shopeeCapitalPanel .sc-history-row > div small { margin-left: 0; width: 100%; }
  #shopeeCapitalPanel .sc-data-row,
  #shopeeCapitalPanel .sc-mapping-row { grid-template-columns: 1fr; }
  #shopeeCapitalPanel .sc-data-row > div:last-child { justify-items: start; }
  #shopeeCapitalPanel .sc-position-row dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #shopeeCapitalPanel .sc-loading i { animation-duration: 2s; }
}
