.markato-reference-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background-color: #050912;
}

.account-transfer-date-label {
  margin: 0 0 4px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.1;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.markato-transfers-table tbody tr.account-date-separator-row {
  display: none !important;
}

.markato-reference-table thead tr {
  background-color: #0b1220;
}

.markato-reference-table thead th {
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  height: 32px;
  min-height: 32px;
  line-height: 1.1;
  text-align: left;
  vertical-align: middle;
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background-color: #0b1220;
  white-space: nowrap;
}

.markato-reference-table thead th:last-child {
  border-right: 0;
}

.markato-reference-table tbody tr[data-account-row="true"] {
  background-color: #060b13;
  height: 30px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.markato-reference-table tbody tr[data-account-row="true"]:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.015);
}

.markato-reference-table tbody tr[data-account-row="true"]:hover td {
  background-color: rgba(59, 130, 246, 0.1);
}

.markato-reference-table tbody tr[data-account-row="true"].is-selected td {
  background-color: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 1px 0 rgba(34, 197, 94, 0.22), inset 0 -1px 0 rgba(34, 197, 94, 0.22);
}

.markato-reference-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding: 2px 8px;
  height: 30px;
  min-height: 30px;
  line-height: 1.1;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  white-space: nowrap;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #fff;
  background-color: transparent;
  vertical-align: middle;
  text-align: left;
}

.markato-reference-table tbody td:last-child {
  border-right: 0;
}

.markato-reference-table .sheet-cell-input,
.markato-reference-table .sheet-readonly-cell {
  width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 2px 8px;
  border-radius: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.05;
  text-align: left;
  margin: 0;
  box-sizing: border-box;
}

.markato-reference-table .sheet-readonly-cell {
  color: rgba(255, 255, 255, 0.96);
}

.markato-reference-table .sheet-cell-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.markato-reference-table .sheet-cell-input:focus {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.9);
}

.markato-reference-table td[data-account-status-cell="true"],
.markato-reference-table td[data-account-action-cell="true"],
.markato-reference-table td[data-account-document-cell="true"] {
  padding-top: 2px;
  padding-bottom: 2px;
  vertical-align: middle;
}

.markato-reference-table td[data-account-status-cell="true"] > *,
.markato-reference-table td[data-account-action-cell="true"] > *,
.markato-reference-table td[data-account-document-cell="true"] > * {
  margin: 0;
  min-height: 0;
  box-sizing: border-box;
}

.markato-reference-table td[data-account-number-cell="true"],
.markato-reference-table td[data-account-number-cell="true"] .sheet-cell-input,
.markato-reference-table td[data-account-status-cell="true"],
.markato-reference-table td[data-account-status-cell="true"] select,
.markato-reference-table td[data-account-action-cell="true"],
.markato-reference-table td[data-account-document-cell="true"] {
  text-align: left;
}

.markato-reference-table td[data-account-number-cell="true"] {
  font-variant-numeric: tabular-nums;
}

.markato-reference-table td[data-account-note-cell="true"],
.markato-reference-table td[data-account-receiver-cell="true"],
.markato-reference-table td[data-account-phone-cell="true"],
.markato-reference-table td[data-account-supplier-cell="true"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.markato-reference-table td[data-account-status-cell="true"] select {
  width: 100%;
  max-width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
}

.markato-reference-table td[data-account-status-cell="true"] {
  display: table-cell;
  padding: 1px 4px;
  vertical-align: middle;
}

.markato-reference-table td[data-account-status-cell="true"] > div {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] {
  padding: 0 4px;
}

.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] > div,
.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] > span,
.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] > label {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] > * {
  flex: 1 1 auto;
}

.markato-reference-table td[data-account-status-cell="true"] > div > select,
.markato-reference-table td[data-account-status-cell="true"] > select {
  align-self: center;
  margin: 0;
}

.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] .sheet-cell-input,
.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] select {
  width: 100%;
  height: 100%;
  min-height: 26px;
  max-height: 30px;
  padding: 1px 8px;
  margin: 0;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0.9375rem;
}

.markato-reference-table.markato-transfers-table td[data-account-status-cell="true"] select {
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  background-clip: padding-box;
}

.markato-reference-table.markato-sheet-table tbody td {
  padding: 1px 8px;
  height: 30px;
  min-height: 30px;
  line-height: 1.05;
  font-size: 0.9375rem;
}

.markato-reference-table.markato-sheet-table tbody tr[data-account-row="true"] {
  height: 30px;
}

.markato-reference-table.markato-sheet-table thead th {
  padding: 3px 8px;
  height: 32px;
  min-height: 32px;
  line-height: 1.05;
}

.markato-reference-table.markato-sheet-table td .sheet-cell-input,
.markato-reference-table.markato-sheet-table td .sheet-readonly-cell,
.markato-reference-table.markato-sheet-table td input,
.markato-reference-table.markato-sheet-table td textarea {
  width: 100%;
  min-height: 26px;
  height: 26px;
  max-height: 30px;
  padding: 1px 8px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.05;
  box-sizing: border-box;
}

.markato-reference-table.markato-sheet-table td .sheet-readonly-cell,
.markato-reference-table.markato-sheet-table td .sheet-cell-input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.markato-reference-table td[data-account-action-cell="true"] > div,
.markato-reference-table td[data-account-document-cell="true"] > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  flex-wrap: nowrap;
}

.markato-reference-table td[data-account-action-cell="true"] button,
.markato-reference-table td[data-account-document-cell="true"] button {
  min-height: 22px;
  height: 22px;
  padding: 1px 6px;
  border-radius: 4px;
  gap: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 0;
  box-sizing: border-box;
}

.markato-reference-table .account-document-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
}

.markato-reference-table.markato-sheet-table td[data-account-action-cell="true"] > div {
  height: 100%;
}

.markato-reference-table.markato-purchases-table tbody td {
  padding: 3px 8px;
  height: 34px;
  min-height: 34px;
  font-size: 1rem;
  line-height: 1.1;
}

.markato-reference-table.markato-purchases-table tbody tr[data-account-row="true"] {
  height: 34px;
}

.markato-reference-table.markato-purchases-table thead th {
  height: 34px;
  min-height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.markato-reference-table.markato-purchases-table td .sheet-readonly-cell,
.markato-reference-table.markato-purchases-table td .sheet-cell-input,
.markato-reference-table.markato-purchases-table td input,
.markato-reference-table.markato-purchases-table td textarea {
  min-height: 28px;
  height: 28px;
  font-size: 1rem;
  line-height: 1.1;
}

.account-table-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  opacity: 0.3;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.account-table-resize-handle::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 1px;
  width: 2px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.6);
}

.markato-reference-table thead th:hover .account-table-resize-handle,
.markato-reference-table thead th:focus-within .account-table-resize-handle,
.account-table-is-resizing .account-table-resize-handle {
  opacity: 1;
}

body.account-table-is-resizing,
body.account-table-is-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

[data-account-purchase-modal="true"] {
  width: min(720px, calc(100vw - 40px));
  max-height: min(88vh, 860px);
  border-radius: 24px;
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

[data-account-purchase-modal-header="true"] {
  align-items: center;
  padding: 20px 24px 18px;
}

[data-account-purchase-modal-header="true"] h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

[data-account-purchase-modal-close="true"] {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

[data-account-purchase-modal-body="true"] {
  padding: 20px 24px 24px;
}

[data-account-purchase-modal-grid="true"] {
  gap: 18px 20px;
}

[data-account-purchase-modal-grid="true"] label {
  gap: 8px;
}

[data-account-purchase-modal-grid="true"] label span {
  display: inline-block;
  margin: 0;
}

[data-account-purchase-modal-grid="true"] input {
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 16px;
}

[data-account-purchase-modal-footer="true"] {
  margin-top: 22px;
  padding-top: 16px;
  gap: 12px;
}

[data-account-purchase-modal-footer="true"] button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
}
