
.cmr, .cmr-filters {
  --cmr-ink: #182231;
  --cmr-muted: #4b596b;
  --cmr-line: #dfe5ec;
  --cmr-orange: #fd5c05;
  color: var(--cmr-ink);
  min-width: 0;
}

.cmr,
.cmr-list-section,
.cmr-records,
.cmr-details,
.cmr-filters {
  display: grid;
  gap: 10px;
}

.cmr-metrics,
[data-ceplink-mobile-cari-summary],
[data-ceplink-mobile-account-summary],
[data-ceplink-mobile-inventory-summary] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cmr-metric,
[data-ceplink-mobile-cari-summary] > *,
[data-ceplink-mobile-account-summary] > *,
[data-ceplink-mobile-inventory-summary] > * {
  min-width: 0;
  min-height: 0;
  padding: 10px;
}
.cmr-metric {
  display: grid;
  gap: 4px;
  border: 1px solid var(--cmr-line);
  border-radius: 13px;
  background: #fff;
}
.cmr-metric:first-child,
[data-ceplink-mobile-cari-summary] > :last-child,
[data-ceplink-mobile-account-summary] > :last-child {
  grid-column: 1 / -1;
}
.cmr-metric > span,
.cmr-records span,
.cmr-heading > span {
  color: var(--cmr-muted);
  font-size: 13px;
}
.cmr-metric > strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.cmr [data-tone="income"] strong,
.cmr strong[data-tone="income"] { color: #186747; }
.cmr [data-tone="expense"] strong,
.cmr strong[data-tone="expense"] { color: #a02729; }

.cmr-heading,
.cmr-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cmr-heading { justify-content: space-between; }
.cmr-heading > strong { min-width: 0; overflow-wrap: anywhere; }
.cmr-heading > strong:last-child { text-align: right; }
.cmr-heading h2 { margin: 0; font-size: 17px; }
.cmr-primary,
.cmr-clear,
.cmr-search,
.cmr-details,
.cmr-records li,
.cmr-filters select,
.cmr-empty {
  min-width: 0;
  border: 1px solid var(--cmr-line);
  border-radius: 12px;
  background: #fff;
}
.cmr-primary,
.cmr-clear {
  min-height: 46px;
  padding: 8px 12px;
  color: var(--cmr-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cmr-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cmr-orange);
  border-color: var(--cmr-orange);
}
.cmr-search {
  padding: 0 10px;
  min-height: 46px;
}
.cmr-search input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
}
.cmr-details { padding: 0 10px; }
.cmr-details > summary {
  display: list-item;
  padding: 12px 0;
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
  box-sizing: border-box;
}
.cmr-details[open] > .cmr-filters { padding: 0 0 10px; }
.cmr-filters[data-ceplink-mobile-filters="inline"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cmr-filters label { min-width: 0; display: grid; gap: 5px; }
.cmr-filters label span { font-size: 13px; color: var(--cmr-muted); }
.cmr-filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 9px;
  color: var(--cmr-ink);
  font: inherit;
  font-size: 16px;
}
.cmr-records { list-style: none; margin: 0; padding: 0; }
.cmr-records li { display: grid; gap: 4px; padding: 10px; font-size: 14px; }
.cmr-records p { margin: 0; overflow-wrap: anywhere; }
.cmr-empty { margin: 0; padding: 14px 10px; color: var(--cmr-muted); }

[data-ceplink-mobile-inventory-actions] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
[data-ceplink-mobile-inventory-actions] > * {
  min-width: 0;
  min-height: 46px;
  padding: 8px;
}
[data-ceplink-mobile-inventory-actions] > * > :first-child {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
}
[data-ceplink-mobile-inventory-actions] > * > :last-child { display: none; }

[data-ceplink-mobile-account-list] > :first-child { display: none; }
[data-ceplink-mobile-account-row] {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  padding: 10px;
}
[data-ceplink-mobile-account-field] { min-width: 0; overflow-wrap: anywhere; }
[data-ceplink-mobile-account-field]::before {
  content: attr(data-ceplink-mobile-account-field);
  display: block;
  font-size: 12px;
  color: #4b596b;
}
[data-ceplink-mobile-account-row] > :first-child { grid-column: 1 / -1; }
[data-ceplink-mobile-account-row] > :last-child { grid-column: 1 / -1; }

